Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ClearOutputWindow with multiple output windows

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • jeronymite
    replied
    ClearOutputWindow with multiple output windows

    Thanks, Matthew.

    I totally agree with you that simplicity as a design concept is ideal. The caveat to that is clarity and effectiveness of function.

    Thanks for listening.

    Leave a comment:


  • NinjaTrader_Matthew
    replied
    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.

    Leave a comment:


  • jeronymite
    replied
    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.

    Leave a comment:


  • koganam
    replied
    Originally posted by NinjaTrader_Matthew View Post
    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)
    Which I shall promptly stick in a partial class as
    Code:
    protected void ClearOutputWindow(PrintTo outputTab)
    {
    NinjaTrader.Code.Output.Reset(outputTab);
    return;
    }
    So that works really nicely too.

    Leave a comment:


  • NinjaTrader_Matthew
    replied
    Originally posted by koganam View Post
    Maybe better to provide an overload where we can specify the exact window to clear?
    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)

    Leave a comment:


  • koganam
    replied
    Originally posted by NinjaTrader_Matthew View Post
    Thanks 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
    Maybe better to provide an overload where we can specify the exact window to clear?

    Leave a comment:


  • NinjaTrader_Matthew
    replied
    Thanks 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

    Leave a comment:


  • jeronymite
    started a topic ClearOutputWindow with multiple output windows

    ClearOutputWindow with multiple output windows

    It's not clear from the documentation how one invokes ClearOutputWindow() now that there is more than one output window. Obviously, one wants to be able to clear any single window or both.

Latest Posts

Collapse

Topics Statistics Last Post
Started by kinfxhk, 07-13-2026, 10:18 AM
0 responses
28 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Started by kinfxhk, 07-13-2026, 09:50 AM
0 responses
17 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Started by kinfxhk, 07-13-2026, 07:21 AM
0 responses
25 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Started by kinfxhk, 07-11-2026, 02:11 AM
0 responses
23 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Started by SalmaTrader, 07-07-2026, 10:26 PM
0 responses
138 views
0 likes
Last Post SalmaTrader  
Working...
X