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 kujista, Today, 06:23 AM
        0 responses
        1 view
        0 likes
        Last Post kujista
        by kujista
         
        Started by traderqz, Yesterday, 04:32 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by f.saeidi, Today, 05:56 AM
        1 response
        4 views
        0 likes
        Last Post Jltarrau  
        Started by Jltarrau, Today, 05:57 AM
        0 responses
        5 views
        0 likes
        Last Post Jltarrau  
        Started by Stanfillirenfro, Yesterday, 09:19 AM
        7 responses
        53 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X