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

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.
      Brandon H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Teebone21, Today, 11:28 PM
      0 responses
      2 views
      0 likes
      Last Post Teebone21  
      Started by newton1, Today, 08:28 PM
      0 responses
      2 views
      0 likes
      Last Post newton1
      by newton1
       
      Started by jjanguda, Today, 06:20 PM
      0 responses
      7 views
      0 likes
      Last Post jjanguda  
      Started by TaZ22, Today, 11:32 AM
      4 responses
      28 views
      0 likes
      Last Post TaZ22
      by TaZ22
       
      Started by barriosmex, Today, 11:53 AM
      1 response
      21 views
      0 likes
      Last Post Amedeus
      by Amedeus
       
      Working...
      X