Debug window when running same strategy for multiple symbols
Author: gchudublin
Creation Date: 6/4/2018 5:33 PM
profile picture

gchudublin

#1
if I have PrintDebug in the code, it will show the debug window when I run the strategy from the strategy monitor.

But if I have run the same strategy for two symbols, I still see only one debugger window. Anyway for me to know which symbol is on the debugger window? Any way to direct the PrintDebug to a file? so each run can have separate logs?

There is utility can watch the text file whenever it changes, so I can watch detail move of the strategy running on different symbles

Thanks

Greg

profile picture

Eugene

#2
QUOTE:
if I have PrintDebug in the code, it will show the debug window when I run the strategy from the strategy monitor.

The Debug window will NOT show when invoked from the St.Mon. All cosmetic chart and debug log methods are purposefully disabled for SM and Combination Strategies. Perhaps you wanted to say "strategy window" instead?

QUOTE:
But if I have run the same strategy for two symbols, I still see only one debugger window. Anyway for me to know which symbol is on the debugger window?

The Debug window is single-instance only.

QUOTE:
Any way to direct the PrintDebug to a file? so each run can have separate logs?

Sure. On the forum you shall find enough pointers and ideas. For example, CommentaryWindow from C.Components.
profile picture

gchudublin

#3
Any idea of what inside of C:\Commentary.html? Just a raw html file format?
profile picture

Eugene

#4
You will have an idea when you look into the open source code:

Home - Community Components
profile picture

gchudublin

#5
My C# saying CommentaryWindow is obsolete

profile picture

Eugene

#6
Don't use 'legacy' syntax.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).