Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to print more information onto the output window?

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

    How to print more information onto the output window?

    Hello,

    My strategy calculates on each tick and runs on a 30 minute time period.
    The strategy only works for the first 30 minutes of each day. When I run this strategy on a backtest on one day of data, (say: Start Time = 11/15/2021, End Time = 11/15/2021), so much information is printed on the output that it says:

    "You have reached the maximum threshold of the NinjaScript Output window. Some of your output messages have been suppressed." I realize that the output window has a character limit.

    Because of this, the output only has information printed from 11/15/2021 3:00 PM to 11/15/2021 4:00 PM so I can't see what happens when the strategy actually performs actions @ 8:30 AM to 9:00 AM which is suppressed.

    How can I capture and save all of the info that is suppressed and printed on the output window?

    #2
    If you wrote your output to a file, there would be no limit.

    Comment


      #3
      Hello Don22Trader1,

      Thanks for your post.

      The Output Window is limited and has a maximum number of lines.

      If a large amount of data is being tested, I would recommend instead writing this to a file to avoid the maximum number of lines allowed in the Output Window.

      Below is a link to a reference sample that demonstrates writing data to a file.
      https://ninjatrader.com/support/helpGuides/nt8/using_streamwriter_to_write_to.htm

      As well as a link to an example script that writes condition information to a file.
      https://ninjatrader.com/support/foru...nce#post100192

      Let us know if we may assist further.
      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      Comment


        #4
        Brandon,
        How do i limit the prints to once per trade instead of on every bar update?

        Comment


          #5
          You could use OnExecutionUpdate to detect when a new trade is executed and do your logging there...
          Bruce DeVault
          QuantKey Trading Vendor Services
          NinjaTrader Ecosystem Vendor - QuantKey

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          98 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          142 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          69 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          125 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          77 views
          0 likes
          Last Post PaulMohn  
          Working...
          X