Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change account number programatically

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

    Change account number programatically

    Hello,

    Is it possible within the strategy to flip between sim and real accounts via programming.

    Regards,
    Alex

    #2
    Hello Alex,

    Thanks for your post.

    Strategies will only be allowed to submit orders to the account they are enabled on. It would not be possible to have a strategy flip between sim and real accounts programmatically. For NinjaTrader 7, you could enable the 2 instances of the strategy on both a real and simulation account, and then you could use the same logic to control when sim trading would be active and when live trading would be active.

    In NinjaTrader 8, you could create your own order submission logic using the AddOn framework to have the strategy submit orders to multiple accounts.

    Please let us know if we can be of further assistance.

    Comment


      #3
      Hi Jim,

      Thanks a lot for explaining it.

      Regards,
      redduke

      Comment


        #4
        Hi Jim,

        I am trying to find way to build something like this - For NinjaTrader 7, you could enable the 2 instances of the strategy on both a real and simulation account, and then you could use the same logic to control when sim trading would be active and when live trading would be active.
        Would you mind to refer any link or website with more information or guidelines?

        Thank you very much

        mcosta72
        NinjaTrader Ecosystem Vendor - Quant-Wise

        Comment


          #5
          Hello mcosta72,

          Thanks for your question.

          There would not be much more said for guidelines. Two strategies could be made where one would be applied to the Sim101 account and another could be assigned to the live account. Those strategies would have logic to take different actions and would then be applied to separate accounts.

          The logic within each strategy determines when that strategy should take actions and when it shouldn't take actions.

          Let me know if you have any additional questions.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          574 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          332 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X