Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Starting multiple strategies at the same time

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

    Starting multiple strategies at the same time

    Hey i run like 5 different strategies on the same instrument at the same time. Now, when for some reason NT shuts down i have to restart those strategies. I have them on 'trade when flat' so every time i restart them the strategies first wait when its flat and then execute. Obviously i dont want that, i can put the strategies on 'immediately trade' but the problem then is that if i activate strategy 1 and it generates a long position, an after that strategy 2 a short, iam net flat but it just placed 2 orders with commision cost on it.

    To make a long story short: How can i start all strategies at the same time with trade execution on 'immedaitely trade' to make a net position without firing orders all over the place?
    Or should i put all those strategies into 1 strategie under different tabs?

    Cheers,
    Bert

    #2
    Hello Bert1995,

    Thank you for your post.

    It would be highly discouraged to run multiple strategies on the same instrument and account simultaneously.

    This is due to the fact that strategies are not aware of each other and running multiple strategies will usually cause issues with your account position.

    For example, if you have two strategies running and one is in a 4 long position; if the other takes a 4 short position, both strategies will show profits/losses, but your account position would effectively be flat and you'd not be in any position at all as you've seen previously. This causes both strategies to be out of sync with your account position.

    We would recommend that if you are using multiple strategies on the same instrument that you run them using different accounts or, if you created the strategies yourself, consider combining all your logic into a single strategy that can then monitor all the orders being fired off as those would be the only ways to keep the strategies in sync with the account position.

    Please let us know if we may be of further assistance to you.

    Comment


      #3
      I'am aware that my account position can be different than my strategy position when using multiple strategies. The thing is; i dont mind that. Its part of my overall strategy. But what is a problem is that i cant start the strategies simultaneously as far as i know. So if strategy 1 generated a long and strategy 2 a short and i have to start them one by one, i first get a long after starting strategy 1 and then it goes to flat after i start startegy 2. I am looking for a possiblility it goes immedaitely flat because i can start them at the same time.

      Also a different question, do i need more NT8 licenses to create more accounts? Or do i need to create different accounts with Dorman?

      Comment


        #4
        Hello Bert1995,

        Thank you for your reply.

        You can start multiple strategies at the same time by holding the control key on the keyboard and clicking them to select them in the strategies tab of the Control Center, then right clicking on the strategies tab > Enable.

        Generally you would only need additional NinjaTrader licenses if you are going to be trading simultaneously on multiple computers. Multiple accounts would need to be something that your broker creates for you and these would need to be linked under a single login and password as most connection types will allow only one connection at a time.

        Please let us know if we may be of further assistance to you.

        Comment


          #5
          Thanks for your quick reply's

          Oke thanks for the help.

          Oke lets say i have in account with Dorman, how can i get more accounts?

          Comment


            #6
            Hello Bert1995,

            Thank you for your reply.

            You would need to speak to your broker regarding setting up multiple accounts under the same login.

            Please let us know if we may be of further assistance to you.

            Comment


              #7
              Hi Kate,

              Planning on a similar setup as OP in this thread. Is it possible to have multiple accounts with NT's brokerage, and manage it that way?

              Best,
              Emil

              Comment


                #8
                Hello Emil,

                From my understanding it is possible to have multiple accounts with a NinjaTrader Brokerage account. Contact the NinjaTrader Brokerage brokeragesupport [at] ninjatrader [dot] com if you want to inquire about NinjaTrader Brokerage accounts.
                If you have any questions, concerns or feedback, or want to open an account, we're here to help. Click here to find the appropriate contact for your needs!
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Hello Kate W,
                  How does on "consider combining all your logic into a single strategy"?
                  Are there any tips or lines of code to add to this effect ?
                  Many thanks,
                  AH

                  Comment


                    #10
                    Originally posted by alhakeem View Post
                    Hello Kate W,
                    How does on "consider combining all your logic into a single strategy"?
                    Are there any tips or lines of code to add to this effect ?
                    Many thanks,
                    AH
                    Hello AH,

                    Thank you for your note.

                    Combining your logic into a single strategy would entail coding all of the entry/exit conditions and actions into the same strategy script rather than using separate scripts. There aren't any specific tips or lines of code for this process. You might be able to begin by copying one of your strategies then copy/paste logic from other strategies into that copy to combine the logic into one script. I suggest using separate signal names for your entries and exits. With that in mind, we do have a strategy sample that demonstrates the use of multiple entry and exit signals here:


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

                    Comment


                      #11
                      I have a problem, where my exit (Profit Booking, Stop Loss) criteria depends on the open Position Qty, but I do not know the open positions are from which named orders.

                      Here is a very simplistic view of what I am facing -

                      Strategy1 that creates two named Long orders say L1a and L1b.

                      When OpenPositionQty = 2
                      I set SL and PB for each
                      SL1a (-40 ticks) & PB1a (+100 ticks) tied to L1a
                      SL1b (-60 ticks) & PB1b (+150 ticks) tied to L1b.

                      When OpenPositionQty = 1 (I know it's always L1b as it was set farther from CMP)
                      I set SL and PB for the L1b,
                      SL1b (-60 ticks) & PB1b (+150 ticks) tied to L1b.

                      So far so good, and this is wonderful as it also lets me adjust the SL and PB for L1b when only one Qty is left open.

                      ======
                      Problem starts here now - as I want to add another entry logic L2 with its own PB2 and SL2 criteria. As highly recommended by support team on many threads, running two simultaneous strategy is not good and I should combine both logics into one strategy.

                      As long as OpenPositionQty = 3, I am good in pacing SL and PB orders tied to their entry orders.
                      But when OpenPositionQty = 2
                      - I do not know which ones are left open - it could be (L1a, L1b) or (L1b, L2). so not able to place SL and PB orders.

                      I browsed and read multiple threads before posting here - I could not find a solution. Can you suggest if this is possible, or any ideas/workarounds so I can know the remaining open positions were created from which named orders to be able to tie the PB and SL orders accordingly, without which of course NT rejects those PB SL orders..

                      thank you!

                      Comment


                        #12
                        Hello pankaj_future,

                        You could check to see if the if the exit order using the fromEntrySignal of the entry signalName is still in a working state.

                        You could keep a List<order> that adds entries when an entry fills and then remove the order when the exit using the fromEntrySignal of the entry fills (which would be basically the same thing).

                        If no signal names and from entry signals are used, it would be first in first out. So you would need to track each entry and number of contracts, then stop tracking when the same number of exit contracts have been filled.
                        Chelsea B.NinjaTrader Customer Service

                        Comment


                          #13
                          ok appreciate the quick reply Chelsea, so all this is through coding/scripting I believe. I am still on the Strategy Builder.

                          Looks like I should consider learning and using the coding - as lot of the limitations I am facing in Strategy Builder can be addressed with feature rich scripting. Thanks!

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by argusthome, 03-08-2026, 10:06 AM
                          0 responses
                          111 views
                          0 likes
                          Last Post argusthome  
                          Started by NabilKhattabi, 03-06-2026, 11:18 AM
                          0 responses
                          59 views
                          0 likes
                          Last Post NabilKhattabi  
                          Started by Deep42, 03-06-2026, 12:28 AM
                          0 responses
                          38 views
                          0 likes
                          Last Post Deep42
                          by Deep42
                           
                          Started by TheRealMorford, 03-05-2026, 06:15 PM
                          0 responses
                          41 views
                          0 likes
                          Last Post TheRealMorford  
                          Started by Mindset, 02-28-2026, 06:16 AM
                          0 responses
                          78 views
                          0 likes
                          Last Post Mindset
                          by Mindset
                           
                          Working...
                          X