Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Live Print statements

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

    Live Print statements

    I'm using Print statements throughout my strategy, so I can monitor prices, indicators, and internal diagnostics in the Output window at regular intervals. This works as expected when running backtests, but I expected my live strategies to be printing to the Output window as well. I'm not getting any output from my live strategies. Are Print statements ignored for live strategies? Is there a setting that controls this?

    j2

    #2
    Prints work in real-time when your strategy is actually processing. Suggest you just try a blank strategy that prints timestamps so you can see how it works.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the suggestion. The live time-stamp test worked fine, so I double-checked my live strategies. The lack of output was due to the connection problem we addressed earlier. My Print statements were in the OnBarUpdate handler for the instrument that wasn't delivering bars. Now that the connection is working, I'm seeing the Outputs I was expecting. Thanks again.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      71 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      39 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X