Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ClearOutputWindow with multiple output windows

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

    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.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    #2
    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
    MatthewNinjaTrader Product Management

    Comment


      #3
      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?

      Comment


        #4
        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)
        MatthewNinjaTrader Product Management

        Comment


          #5
          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.

          Comment


            #6
            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.
            Multi-Dimensional Managed Trading
            jeronymite
            NinjaTrader Ecosystem Vendor - Mizpah Software

            Comment


              #7
              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


                #8
                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.
                Multi-Dimensional Managed Trading
                jeronymite
                NinjaTrader Ecosystem Vendor - Mizpah Software

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by mjairg, 07-20-2023, 11:57 PM
                3 responses
                213 views
                1 like
                Last Post PaulMohn  
                Started by TheWhiteDragon, 01-21-2019, 12:44 PM
                4 responses
                544 views
                0 likes
                Last Post PaulMohn  
                Started by GLFX005, Today, 03:23 AM
                0 responses
                3 views
                0 likes
                Last Post GLFX005
                by GLFX005
                 
                Started by XXtrader, Yesterday, 11:30 PM
                2 responses
                12 views
                0 likes
                Last Post XXtrader  
                Started by Waxavi, Today, 02:10 AM
                0 responses
                7 views
                0 likes
                Last Post Waxavi
                by Waxavi
                 
                Working...
                X