Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Determine if an Output window is opened

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

    Determine if an Output window is opened

    Hello:

    In code, is there a way of determining if an Output window is opened such that it can be tested and Printing to it can be bypassed if it is not?

    If so does it work such that:

    1. it can be tested in Startup and detect that an Output window is opened (or not), and then set a switch that can be tested before each Print statement. This would work on initial installation of the indicator or upon a refresh. Note I realize that this can be a setting in the properties section but would not be dynamic as in #2 below, and/or,

    2. it can be tested in the Update section thereby making Printing to the Output window dynamic according to when it is opened?

    Regards,

    Frank

    #2
    Hello Frank,

    Thank you for your note.

    This is not supported in NinjaTrader 7 however this would be possible in NinjaTrader 8 from an Add-On. If you'd like a sample add which does this please let us know.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hi Alan:

      Okay, thanks for the info.

      Yes I would like the sample NT 8 Add-on. BTW what exactly is an add-on? Is this something new in NT8?

      F

      Comment


        #4
        Hello Cheech,

        Add-ons are new in NT8 and I have provided a link to our helpguide which introduces Add-ons,



        I have attached a sample Addon which will print to the output window if an output window is open.

        Please let us know if you need further assistance.
        Attached Files
        Alan P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by love2code2trade, Yesterday, 01:45 PM
        4 responses
        28 views
        0 likes
        Last Post love2code2trade  
        Started by funk10101, Today, 09:43 PM
        0 responses
        7 views
        0 likes
        Last Post funk10101  
        Started by pkefal, 04-11-2024, 07:39 AM
        11 responses
        37 views
        0 likes
        Last Post jeronymite  
        Started by bill2023, Yesterday, 08:51 AM
        8 responses
        44 views
        0 likes
        Last Post bill2023  
        Started by yertle, Today, 08:38 AM
        6 responses
        26 views
        0 likes
        Last Post ryjoga
        by ryjoga
         
        Working...
        X