Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Automation Initilization Methods

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

    Strategy Automation Initilization Methods

    Currently, when you enable a strategy (for real-time trading) that includes historical bars, you need to sync the market position based on the position the strategy has determined based on historical bars.

    I would like to request to change or preferably add another method of strategy initialization: When you enable a strategy for real-time trading, the historical signals are dis-regarded and you always start the strategy in a flat position. This way you dont need to manually or programatically sync your market position when you enable a strategy.

    #2
    thinking about it a little more, maybe add a vertical line where the (real-time) strategy was initialized. Or some other type of visual queue of where the historical strategy ends. Maybe just remove all the historical signal arrows all together once the strategy goes in to real-time mode.

    Comment


      #3
      I will forward your suggestions to our development team and ask them if they can add this to the list of future considerations for the software.

      Thank you for taking time and post your feedback.

      Comment


        #4
        You can use the following statement at the top of OnBarUpdate():

        if (Historical) return;

        This ensures the strategy that runs in real-time will begin flat. However, this does not guarantee the account is flat as well.

        Comment


          #5
          Originally posted by NinjaTrader_Jason View Post
          You can use the following statement at the top of OnBarUpdate():

          if (Historical) return;

          This ensures the strategy that runs in real-time will begin flat. However, this does not guarantee the account is flat as well.
          Well that is good enough for me. Thanks Jason.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          592 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          343 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          556 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          554 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X