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 helpwanted, Today, 03:06 AM
        1 response
        12 views
        0 likes
        Last Post sarafuenonly123  
        Started by Brevo, Today, 01:45 AM
        0 responses
        9 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        5 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        242 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        387 views
        1 like
        Last Post Gavini
        by Gavini
         
        Working...
        X