[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to see internal calculations in EL



PureBytes Links

Trading Reference Links

> It is true that TradeStation has debugging features reminiscent of
> the 1950's but there is a way to use the "Expert Commentary"
> feature for this purpose. (I originally saw this idea in the
> TSExpress Newsletter and have extended it somewhat.) 

Thank you Bob!!

This is a great feature for debugging indicators.

And it **ALSO** works in systems!!

When debugging complex systems, I usually rely on print statements.  
If I really need to see something complex, or if I want to see more 
information than the 750-line maximum length of the Print Log, I'll 
plot the values of interest on the chart.  This is often very 
valuable, especially since you can see values (e.g. stops) in 
relationship to the price, see the values for many bars at once, etc.

Of course, since @#%@#$# TS doesn't allow plot statements in systems, 
that means I have to copy the system code into an indicator, comment 
out all the system-specific code (buys, sells, exits, MarketPosition, 
etc etc etc) since @#%@#$# TS doesn't allow THOSE in indicators, and 
then add in the plot statements.  And then I have to be careful that 
I don't accidentally make fixes in the *indicator* code instead of in 
the original *system* code, and I have to re-copy and re-edit the 
system code any time I make any significant changes, etc etc etc.  It 
works but it's painful.

This expert-commentary trick is a nice tool to add to the mix.  It 
doesn't let you instantly see important values for the whole chart, 
the way my plotting solution does, but it avoids the copy/edit 
hassles.  It would be messy to try to display stuff dynamically (e.g. 
print a value only if you're inside an "if" condition) like print 
statements can, but I suppose you could do it if you needed to.

Now, if only I had ROOM in my system (under the @#%@#$# TS 64k limit) 
to add this in...   :-)

Gary