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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      82 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      43 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      56 views
      0 likes
      Last Post CarlTrading  
      Working...
      X