Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is there a way to close all positions if just ONE contract reaches its target profit?

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

    Is there a way to close all positions if just ONE contract reaches its target profit?

    Is there a way to close all open positions if just ONE contract out of several contracts reaches its target profit? Operating on the futures NQ.

    For example; lets say my strategy orders 5 contracts and will remain open until profit target is reached. Lets say 5 ticks. Is there a way to have Ninjatrader close all active contracts once any of the 5 active contracts reaches the desired profit target of 5 ticks? Even if doing so would cause the activie contracts to sell below the desired 5 ticks.

    Thanks!

    #2
    This sounds doable, but it depends on a few things:

    Are you taking separate entries? As in, are your 5 contracts entering the trade at different prices? If so, you should be able to exit the rest of your positions once 1 position gets to target(5 ticks in your example).

    However if you want to enter all 5 contracts all at once, I'm not sure how only 1 will get to profit target if it was not entered as a standalone position.

    It's also possible that I don't fully understand what you're asking, so take this with a grain of salt
    jaybedreamin
    NinjaTrader Ecosystem Vendor - Zion Trading Algos

    Comment


      #3
      Originally posted by 00nevest View Post
      Is there a way to close all open positions if just ONE contract out of several contracts reaches its target profit? Operating on the futures NQ.

      For example; lets say my strategy orders 5 contracts and will remain open until profit target is reached. Lets say 5 ticks. Is there a way to have Ninjatrader close all active contracts once any of the 5 active contracts reaches the desired profit target of 5 ticks? Even if doing so would cause the activie contracts to sell below the desired 5 ticks.

      Thanks!
      Hello 00nevest,

      Thank you for your post.

      Is the intent behind closing the entire position related to partial fills on limit orders? You could consider using a different order type, such as Stop Market, for your exit orders. Please provide additional context, including what order methods you currently have in place for your exits, so I may better understand and assist you.

      I look forward to your reply.

      Comment


        #4
        Originally posted by jaybedreamin View Post
        This sounds doable, but it depends on a few things:

        Are you taking separate entries? As in, are your 5 contracts entering the trade at different prices? If so, you should be able to exit the rest of your positions once 1 position gets to target(5 ticks in your example).

        However if you want to enter all 5 contracts all at once, I'm not sure how only 1 will get to profit target if it was not entered as a standalone position.

        It's also possible that I don't fully understand what you're asking, so take this with a grain of salt


        jaybedreamin,

        I am running a strategy that orders several contracts that will close or sell at a desired profit target. Since I am running a strategy I am not manually ordering or closing positions as I am sure you know. I have witnessed a scenario in which my profit target is reached but only 2 contracts close and the others stay in the market becuase the market moved below the profit target before the other contracts could close. This is a "mechanical" issues as I see it. So, I am hoping to work around this mechanical issue by closing all posisitons once profit target is met even if the market moves away from the profit target.

        Thanks,​

        Comment


          #5
          Originally posted by NinjaTrader_Emily View Post

          Hello 00nevest,

          Thank you for your post.

          Is the intent behind closing the entire position related to partial fills on limit orders? You could consider using a different order type, such as Stop Market, for your exit orders. Please provide additional context, including what order methods you currently have in place for your exits, so I may better understand and assist you.

          I look forward to your reply.


          Well... the strategy settings do not have "use limit orders" checked. No ATM strategy is used. This strategy was not built with Ninjatrader strategy buidling but instead with Raven and Bloohdhound by Shark Indicators.

          Thanks,

          Comment


            #6
            Originally posted by 00nevest View Post



            Well... the strategy settings do not have "use limit orders" checked. No ATM strategy is used. This strategy was not built with Ninjatrader strategy buidling but instead with Raven and Bloohdhound by Shark Indicators.

            Thanks,
            Since these are not strategies written by you and are from Shark Indicators, please reach out to Shark Indicators directly for additional assistance and guidance on how these strategies behave.

            Thank you for using NinjaTrader.

            Comment


              #7
              Originally posted by NinjaTrader_Emily View Post

              Since these are not strategies written by you and are from Shark Indicators, please reach out to Shark Indicators directly for additional assistance and guidance on how these strategies behave.

              Thank you for using NinjaTrader.


              Shark Indcators do not execute trades. They just generate a signal or indicator. Ninjatrader makes all trades based on the signal but that is moot here becuase the issue is not at the entry of the trade but the exit. The exit in this case cannot be an indicator and would have to come from ninjatrader which is handling the activie trade.




              Comment


                #8
                Hello 00nevest,

                Thank you for your reply.

                Is this a NinjaScript strategy that you are applying to a chart or the Strategies tab of the Control Center? If so, the strategy has coded logic that determines when to enter/exit positions. If the exits are not behaving as expected, that would have to do with the coded logic from the strategy and you would need to reach out to the developer for questions about the code and any unexpected behavior.

                Indicators can also have logic in place to enter/exit positions; is the indicator making a signal and then you are manually placing an entry in NinjaTrader and manually managing the position, or does the indicator automatically place the entries and exits for you?

                I appreciate your patience.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by NullPointStrategies, Today, 05:17 AM
                0 responses
                20 views
                0 likes
                Last Post NullPointStrategies  
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                120 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                63 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                41 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                45 views
                0 likes
                Last Post TheRealMorford  
                Working...
                X