Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop strategy executing historical data

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

    #16
    Correct. When you enable the strategy it will process the historical data just like a back test up the most recent bar. If there is a left open position when it hits the last bar this will cause the strategy to be a yellow state on the Strategies Tab, meaning it is waiting to be flat state before processing live.
    Using if(Historical) return; will stop the strategy from processing historical data and only focus on the live data.
    So if the history was included and the strategy opened/submitted an order just before the first live bar - it would wait (in yellow state) for this to close with live data before starting the strategy setting to Green state and beginning the Performance.Realtime calculations for this strategy run?


    You are correct here as well. This will allow you to determine the prior performance and if the performance is good enough to continue trading or to stop.

    Let me know if I can be of further assistance.
    thank you

    Comment


      #17
      Originally posted by soulfx View Post
      So if the history was included and the strategy opened/submitted an order just before the first live bar - it would wait (in yellow state) for this to close with live data before starting the strategy setting to Green state and beginning the Performance.Realtime calculations for this strategy run?

      You are correct in your process here
      Cal H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      55 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      142 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      160 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      96 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      276 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X