Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninjascript Output 2?

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

    Ninjascript Output 2?

    I have a second tab on my ninjascript output window, Is there a way to use the second output or is it just there to tease me?

    #2
    Hello,

    Thanks for your post.

    Please see the help guide here (examples are shown in help guide): https://ninjatrader.com/support/help...8/?printto.htm

    Comment


      #3
      Perfect! Thanks.

      Comment


        #4
        The above link is broken. Here's an updated link:



        Comment


          #5
          This latest link is also broken.

          Comment


            #6
            Yep. I see that it's now broken, too.

            1. A user can go to the NinjaTrader Desktop Platform Guide:
            Code:
            https://ninjatrader.com/support/helpguides/nt8/
            2. Click the Search Link in the upper left and enter PrintTo in the search box.
            3. For me the first result was the right one.

            In the NinjaScript of an indicator or strategy you can set which console window, Output1 or Output2, the use of Print("your text") will output to.


            Code:
            protected override void OnStateChange()
            {      
              if (State == State.SetDefaults)
              {
                Name = "Sample PrintTo Indicator #2";
                Description = "@Used to Print updates to Output 2";
            
                //Set this scripts Print() calls to the second output tab
                PrintTo = PrintTo.OutputTab2;
              }      
            }
            
            protected override void OnBarUpdate()
            {                  
              Print("This script will print messages to Output Tab 2");      
            }​
            Last edited by BarzTrading; 09-06-2023, 08:04 PM.

            Comment


              #7
              For some reason, when you paste the links from the Help Guide into the forum, they break. They do work if you click on them, or copy them straight to a browser, but I think they're being reformatted or they contain a redirect that the forum software doesn't work with.
              Bruce DeVault
              QuantKey Trading Vendor Services
              NinjaTrader Ecosystem Vendor - QuantKey

              Comment


                #8
                Long-standing issue, one of many with the Forum software. Typically, the pasting/formatting of links that fail have an extra space character introduced somewhere in the link. Been like that for a looooong time. Sadly. Just another piece of third-party software that needs fixing.

                Thanks.
                Multi-Dimensional Managed Trading
                jeronymite
                NinjaTrader Ecosystem Vendor - Mizpah Software

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by CarlTrading, 03-31-2026, 09:41 PM
                1 response
                41 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by CarlTrading, 04-01-2026, 02:41 AM
                0 responses
                20 views
                0 likes
                Last Post CarlTrading  
                Started by CaptainJack, 03-31-2026, 11:44 PM
                0 responses
                28 views
                1 like
                Last Post CaptainJack  
                Started by CarlTrading, 03-30-2026, 11:51 AM
                0 responses
                45 views
                0 likes
                Last Post CarlTrading  
                Started by CarlTrading, 03-30-2026, 11:48 AM
                0 responses
                37 views
                0 likes
                Last Post CarlTrading  
                Working...
                X