Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Combining Strategies

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

    Combining Strategies

    Hello!

    I need an advice for how to combine two strategies into one strategy.
    I plan to merge two strategies into one. The idea is to be able switch between strategy signals based on recent performance of the one.
    For example a combined strategy starts with the signal from the first strategy. When position is closed by 1st strategy signal then the combined strategy will compare 1st and 2nd strategy performance. The 2nd strategy at that time will be in simulated mode - its performance has to be tracked by the code. The challenge here is how to track 2nd strategy performance running of which is simulated?
    I'm looking for a solution with minimal coding as I realize that can be done with a lot of coding by manually tracking simulated entries and exits.

    Thank you.

    #2
    Hello Corrado,

    Strategies can only be applied to one account. There's no way to conditionally change the account it's running against.

    It seems like you're aware of an alternative here - programming your own simulation engine, but this would be a complex project to code.

    What you may consider is running two versions of the strategy.
    One version runs on simulated account no matter what.
    The other version will run on a live account and stop the strategy once your loss limits are hit. This sample can help with setting this up.
    Halting a Strategy Once User Defined Conditions Are Met
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      NinjaTrader_RyanM, Thank you.

      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