Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trading multiple accounts with one strategy

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

    Trading multiple accounts with one strategy

    I know there might be an answer somewhere in this forum, but I couldn't find it:
    If I have access to several accounts through one connection, how can I address these accounts from one NinjaScript program, I mean opening and closing trades programmatically and specifying an account to each trade?

    #2
    Hello Loki45,

    You would create a separate strategy instance for each account you want to run it against. When you run a strategy, you select a specific account from a drop down menu. You can setup the same strategy for multiple accounts.

    Additional help for running NinjaScript strategies is available here:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks Ryan,
      if I want one strategy instance to respond to what's happening in the other instances, how do I access the other instance's variables and objects? Is there something like a "master" object referencing an entire strategy?
      For example, in other programming languages I would have something like a master program that starts sub-programs using their class definitions, and each sub-program returns an object that can be referenced in the master program. Is there a comparable structure in NinjaScript?
      Last edited by Loki45; 10-14-2010, 11:22 AM.

      Comment


        #4
        There is no cross communication between strategy instances. All variables are local to the instance you're running.

        If this is what you're looking for, you might consider using an external file to write information to and read this file from the various instances.

        You may also consider using C# global variables, but this is not supported. You should be able to find some examples of this searching our forums.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Adding Multiple Live Accounts

          Hi,

          I'm using NinjaTrader to trade multiple TradeStation strategies. I've been able to manage this so far in simulation by adding multiple simulation accounts in order to keep track of each strategy/parameter set/market traded.

          How do I do this with live accounts? In simulation I can go to Tools|Options and from the Simulator tab I can hit the Accounts button to get the "Manage Simulation Accounts" to add multiple simulation accounts. But what about adding multiple real accounts with my broker? I see under Tools | Options and the Data tab is an "Account Groups" window, but I don't see how to add the live accounts.

          Please help,

          Tinfoilhat

          Comment


            #6
            Hi Tinfoilhat,

            Live account access is controlled with the account connections you have setup under Tools > Acccount Connections. Please see here for a connection guide to our supported brokers.
            Get the support you want and need 24/5 and join a community of active futures traders for trader-to-trader support. Learn more!


            A live NinjaTrader license is required for placing trades to live accounts.
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            649 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            370 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            109 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            573 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            576 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X