Your interactive trading laboratory!
 • 
8 users online

WriteToDebugLog

I am working on my first model. I have a WriteToDebugLog statement in the Model. When I backtest the Model I get all of my WriteToDebugLog output. When I run only a single chart I do not get any WriteToDebugLog output. What am I missing?

Attachment

Cancel

Responses

Hmm, I'm not sure, I am getting debug log output in both cases. Are you running the model in a model window using the single symbol tab mode? Or are you talking about dropping a model onto a chart window? The latter case doesn't provide debug log output.

Hmm, I'm not sure, I am getting debug log output in both cases. Are you running the model in a model window using the single symbol tab mode? Or are you talking about dropping a model onto a chart window? The latter case doesn't provide debug log output.

Glitch, I am finally back to this. I select "new C# coded model" and insert a WriteToDebugLog statement in Init and in Exec. I then compile, select chart, enter MSFT and run. I do not get anything in the debug window. I then run backtest and I get all of the debug messages.

Glitch, I am finally back to this. I select "new C# coded model" and insert a WriteToDebugLog statement in Init and in Exec. I then compile, select chart, enter MSFT and run. I do not get anything in the debug window. I then run backtest and I get all of the debug messages.

In Model Settings, if you have a Universe selected instead of Single Symbol mode, then you need to run the backtest before any model related results will appear on the chart. On the other hand, if Single Symbol mode is selected, just typing a symbol in the chart is enough to run the backtest and show the results.

In Model Settings, if you have a Universe selected instead of Single Symbol mode, then you need to run the backtest before any model related results will appear on the chart. On the other hand, if Single Symbol mode is selected, just typing a symbol in the chart is enough to run the backtest and show the results.

Thanks Glitch. I missed that point.

Thanks Glitch. I missed that point.

No problem, this isn't exactly obvious, and I will make a point to document this in the help. It was a tricky set of requirements to balance, what with the two backtest modes :)

No problem, this isn't exactly obvious, and I will make a point to document this in the help. It was a tricky set of requirements to balance, what with the two backtest modes :)
Forum Tips

Please sign in if you want to participate in our forum.

Our forum uses Markdown syntax to format posts.

To embed code snippets, enclose them in [CODE][/CODE] tags.