Any suggestions about where to start looking will be appreciated.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
problem with output window
Collapse
X
-
problem with output window
all of a sudden my output window is not behaving. i see it flash with output but the output immediately disappears. i do have a ClearOutputWindow command in my strategy but that has always been there. i exited and restarted NT and it worked the first time but not thereafter.
Any suggestions about where to start looking will be appreciated.
Tags: None
-
The output window appears to be behaving consistently and reliable once again with print message output from my indicator and strategy...except that it no longer displays output from both at the same time, whereas it used to do that?
Any thoughts/suggestions will be appreciated.
Comment
-
You may have ClearOutputWindow() somwhere else, where you probably put it to help debug something else, and have now forgotten?Originally posted by joemiller View PostHi Chelsea,
Appears that you are on to something significant. No, it does not happen when I have only Print(Time[0]);
[ie] works exactly as expected with your debug fix.
What now? & thanks.
Comment
-
Is this symptomatic of anything you can think of?
Is this symptomatic of anything you can think of?
upon further investigation, the following consistent output window behavior has been observed:
--- when the strategy analyzer is run, the output window is populated with the expected number of message lines
---after a few reruns the output window goes blank for that rerun
---with the next rerun the scenario is repeated [ie] output window goes blank for one rerun after several 'successful' reruns
---for each rerun only the expected number of message lines are present, suggesting that a clear output window command has been properly executed in the initialization region each time
Comment
-
are there any output window system settings specifying [eg] maximum allowable characters, etc.?
I ask because when I do a strategy analysis resulting in a lot of bars, and therefore a lot of output window messages, some early bar info lines are not there in the output window.
Comment
-
The Output Window does have an undocumented size. It is just another buffer.Originally posted by joemiller View Postare there any output window system settings specifying [eg] maximum allowable characters, etc.?
I ask because when I do a strategy analysis resulting in a lot of bars, and therefore a lot of output window messages, some early bar info lines are not there in the output window.
Comment
-
output window is misbehaving [probably my fault]
My output window is still giving me fits. Nothing seems to make sense. For simplicity, I have reduced the situation to printing to the output window from the code for only one indicator. I do not print from the strategy code. Sometimes the dates go in reverse. I have a simple sequence of print statements, one after the other which should appear in the output window one after the other, but they don't. I also tested with only short print statements [eg] Print(Time[0]+"Debug Tracer 2"); but the results were the same?
I have been messing around with this for three days now. Any suggestions will be appreciated because the output window is useless to me at present.
Comment
-
Hi joemiller,
I would be happy to test your script for you.
Please reduce the code down to only lines necessary to reproduce this issue, then export the script and attach the script to your reply.
To export your script do the following:- Click File -> Utilities -> Export NinjaScript
- Enter a unique name for the file in the value for 'File name:'
- Select the strategy from the objects list on the left -> click the right facing arrow ">" to add the strategy to the export
- Click the 'Export' button -> click 'yes' to add any referenced indicators to the export -> click OK to clear the export location message
By default your exported file will be in the following location:- (My) Documents/NinjaTrader 7/bin/Custom/ExportNinjaScript/<export_file_name.zip>
Below is a link to the help guide on Exporting NinjaScripts.
Chelsea B.NinjaTrader Customer Service
Comment
-
There is only one way to make a guaranteed test.Originally posted by joemiller View PostMy output window is still giving me fits. Nothing seems to make sense. For simplicity, I have reduced the situation to printing to the output window from the code for only one indicator. I do not print from the strategy code. Sometimes the dates go in reverse. I have a simple sequence of print statements, one after the other which should appear in the output window one after the other, but they don't. I also tested with only short print statements [eg] Print(Time[0]+"Debug Tracer 2"); but the results were the same?
I have been messing around with this for three days now. Any suggestions will be appreciated because the output window is useless to me at present.
- Shut down all workspaces.
- Create and open a new workspace.
- Open one chart.
- Load the test indicator.
- Check the output window.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
637 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
366 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
107 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
569 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
571 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment