Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategies Running In 2 Different Accounts

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

    Strategies Running In 2 Different Accounts

    Hi all,

    I have 2 different strategies using StartBehavior.AdoptAccountPosition as recovery option any time I have to disable and re-enable them.

    I am trying to enable the 2 strategies on the same instrument XYZ in the following configuration:
    1. Strategy A --> enabled in IB Live Account on the instrument XYZ
    2. Strategy B --> enabled in IB Paper Account on the instrument XYZ
    Now, I get the following error message: "'Strategy B' could not be enabled because 'Strategy A' is already running with the ‘Start behavior’ parameter 'Adopt account position' on 'XXXXXXXX'. The parameter 'Adopt account position' requires that it be the only strategy managing the positions on its account-instrument combo(s). Please disable 'Strategy A' first to be able to enable your strategy."

    This is quite surprising to me since the accounts are different and the strategies as well. I would expect every position to be handled as separate one depending on the selected account.

    Moreover, when I try to enable the second strategy in the "Strategies" tab it works. I am able to enable both of them but I don't know if this can create some conflicts.

    Could you please clarify if this is expected behavior?

    At this point, I am also wondering if the exact same strategy (I also mean same name) can be executed on several different accounts without problems?

    Thanks & Regards.


    #2
    Hello Peppo,

    Thanks for your post.

    This error message will appear if you try to enable a strategy on the same account and same instrument when the strategy uses the AdoptAccountPosition Start Behavior.

    To avoid this error the strategy using the AdoptAccountPosition Start Behavior could be enabled on the same instrument on different accounts.

    See this demonstration video: https://brandonh-ninjatrader.tinytak...OF8yMDg2MjI0Ng

    The demonstration video linked above shows that when enabling a modified version of the SampleMACrossOver strategy using the AdoptAccountPosition Start Behavior on the same instrument and same account (Sim101), the same error message appears.

    When we enable one instance of the strategy on the Sim101 account and a second instance of the strategy on a Sim102 account, and both strategies use the same instrument (ES 03-23) the error does not appear.

    ​Please create a new Simulation Only account by right-clicking in the Accounts tab of the Control Center and selecting 'Add Simulation Account'. Then enable your strategy using the AdoptAccountPosition Start Behavior on the same instrument with 1 instance of the strategy on the Sim101 account and the second instance enabled on the newly created Simulation Only account.

    Do you see the same error message appear when enabling the strategy on the same instrument on different simulation accounts?

    If you do not see the error appear, please test enabling the strategy on your IB live account and IB paper account and ensure that each strategy instance is set to use a different Account in their settings.

    I look forward to assisting further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Hi BrandonH,

      I think the problem I am facing is due to the fact that I was trying to enable both strategies on the same chart and this apparently it is causing the error.

      I confirm that in the strategies tab there is no error raised.

      Anyway, if it possible in the strategy tab why it is not possible to do it on the same chart? This seems to me a bug. Do you confirm the same behavior?

      Thanks & Regards.

      Comment


        #4
        Hello Peppo,

        Thanks for your note.

        I am not able to reproduce the behavior you are reporting. This could be seen in the demonstration video linked in my previous post. I have also linked the demonstration video below.

        See this demonstration video: https://brandonh-ninjatrader.tinytak...OF8yMDg2MjI0Ng

        In the demonstration video we see that when enabling a modified version of the SampleMACrossOver strategy that uses the AdoptAccountPosition Start Behavior on the same instrument and same account (Sim101), the same error message you are seeing appears.

        When we enable one instance of the strategy on the Sim101 account and a second instance of the strategy on a Sim102 account, and both strategies use the same instrument (ES 03-23) the error does not appear.

        Please try testing the behavior seen in the demonstration video. This could be done by creating a new Simulation Only account by right-clicking in the Accounts tab of the Control Center and selecting 'Add Simulation Account'. Then enable your strategy using the AdoptAccountPosition Start Behavior on a chart on the Sim101 account and enable the second instance of the strategy on the newly created Simulation Only account (such as Sim102).

        Do you see the same error message appear when enabling the strategy on the same instrument on different simulation accounts as seen in the demonstration video?

        Let me know if I may assist further.​
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          Hi BrandonH,

          I was able to reproduce your demonstration video and the error does not appear.

          What I am referring to is that the error message appears when I do the same procedure by using only one chart (not 2 charts as you shown in the video).

          If I repeat the same procedure in the Strategy tab everything is working ( I can add all the strategies I want with StartBehavior.AdoptAccountPosition as long I select different accounts).

          I just do not understand why it is not possible to do exactly the same by using only one chart.

          Thanks.

          Comment


            #6
            Hello Peppo,

            Thanks for that information.

            This is a bug and I have reported it to the NinjaTrader Development team. They will look into the bug and implement a fix for this issue.

            In the meantime, you could either enable the strategies on the Strategies tab of the Control Center or on two separate charts that use different accounts but the same instrument.

            Please let me know if I may assist further.
            <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

            Comment


              #7
              Hi BrandonH,

              thanks a lot for the that. Do you have an ID number I can check once the issue is fixed?

              Regards.

              Comment


                #8
                Hello Peppo,

                Thanks for your note.

                This is currently being tracked in an internal ticket under the number QA-5985.

                Please let me know if you have any other questions on this.
                <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by NullPointStrategies, Yesterday, 05:17 AM
                0 responses
                56 views
                0 likes
                Last Post NullPointStrategies  
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                132 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                73 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                45 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                49 views
                0 likes
                Last Post TheRealMorford  
                Working...
                X