PureBytes Links
Trading Reference Links
|
-----Message d'origine-----
De : Gary Fritz <fritz@xxxxxxxx>
À : omega-list@xxxxxxxxxx <omega-list@xxxxxxxxxx>; code-list@xxxxxxxxxxxxx
<code-list@xxxxxxxxxxxxx>
Date : mardi 4 mai 1999 18:50
Objet : CL_Re: How to see internal calculations in EL
> 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.
====
Maybe @#%@#$# TS do not allow print statement in your systems ( a feature
that I also required), however it is possible to do so.
But TS4 allow it if you try to be smart and find some documentation
I use a global DLL that I call from the system where I put the values of
the system that I want to plot.
( I export the data series to be plotted to global variables, called by an
user function).
Its just one line of code, hat I remove when debugging is finished
Then I have an indicator that import from the global dll and that plots in
the same chart ( you need of course to set mbb indicator to the same value
to avoid lag or advance).
You may even use the alternate TS KIT. DLL that is on my web site and that
has 5 global variables.
I wrote an arrticle in TS Express in 1994 if I remember and used this DLL to
plot the equity curve from the system when this was not possible ( before
TS4).
This one can be used for the same purpose, or you may use one sold by Doug
Deming, more versatile.
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.
====
Yes, but the DLL solution is far more better and easier.
Doug Deming had also an advanced print log feature.
Now, if only I had ROOM in my system (under the @#%@#$# TS 64k limit)
to add this in... :-)
Gary
=====
You may update to TS2000i that has no ore 64kb limit.
However , I do not know if upgrade are allowed from #%@#$# TS to TS2000i
Let me tell you something:
Instead of always claiming and shouting everywhere and spent a great deal
of time as soon as you encounter some difficulties, you should try to get
informaton from some solution providers that may help you.
>From my side, I got the info 6 years ago by reading the TS_kit DLL doc and
dfownloaded materials from the Omega site ( BBS at this time, then aol)
And never asked anything to anybody.
TS can make a lot of things and there are a lot of things that it cannot do
if you do not take time to find a solution.
Regardless where it could be located, and most of the time in your brain, if
you use it without any a priori thinking.
Be positive, it will be rewarding.
Sincerely,
-Pierre Orphelin
Représentant exclusif de Omega Research en France.
web: http://www.sirtrade.com
http://www.markbrown.com
|