Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
ClearOutputWindow with multiple output windows
Collapse
X
-
Maybe better to provide an overload where we can specify the exact window to clear?Originally posted by NinjaTrader_Matthew View PostThanks for your report. There is an issue where the method is defaulting to the Output tab 1. Beta 2 will include a fix where the ClearOutputWindow() method will clear the output tab that was previously set by PrintTo variable.
NTEIGHT-8254
Comment
-
For simplicity, ClearOutputWindow will work as stated, however if you'd like, you can always call NinjaTrader.Code.Output.Reset(PrintTo outputTab) (which will be available in the next beta build)Originally posted by koganam View PostMaybe better to provide an overload where we can specify the exact window to clear?MatthewNinjaTrader Product Management
Comment
-
Which I shall promptly stick in a partial class asOriginally posted by NinjaTrader_Matthew View PostFor simplicity, ClearOutputWindow will work as stated, however if you'd like, you can always call NinjaTrader.Code.Output.Reset(PrintTo outputTab) (which will be available in the next beta build)
So that works really nicely too.Code:protected void ClearOutputWindow(PrintTo outputTab) { NinjaTrader.Code.Output.Reset(outputTab); return; }
Comment
-
ClearOutputWindow with multiple output windows
Thanks, Matthew and particularly, thanks koganam!
Matthew, I would recommend that in this case "simplicity" needs to be superseded in favour of accuracy and extensibility. The potential is not insignificant for "confusing" situations where multiple strategies writing to both windows could cause "unexpected" clearing.
As koganam so eloquently suggests, the functionality really should be to allow the method to have an overload specifying the Output window to be cleared (by index or whatever is appropriate). Of course, two different signatures could be created to allow a convenient form of backwards compatibility -- one with no parameter, as currently, that would function as you indicate; the other with the Output window parameter.
In a separate thread (http://www.ninjatrader.com/support/f...ad.php?t=74170), I recommend extending the Output window functionality, and if this is implemented (please
), such an update to ClearOutputWindow would be essential.
Thanks.
Comment
-
We are in favor of simplicity. Providing an overload still does not prevent situations where another script clears the output window unexpectedly. I will not argue the system can't stand to be improved, but we're interested in seeing what sort of enhanced add-on output window or debugging tools the community can come up with. We'll definitely put your feedback down to be reviewed at the point our plate is cleared to revisit the output system.MatthewNinjaTrader Product Management
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
672 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
379 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 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
577 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
582 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment