Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit Stops

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

    Exit Stops

    I am having an issue with a stop order. Basically on 1 bar I am sending a stop using ExitShortStop(), but I am also sending a limit order entry. On the next bar I get filled on both orders, however the stop order only exits the number of contracts I was holding the previous bar. How can I make it exit the contract it entered on the current bar as well?

    #2
    SystemTrading,

    You need to amend your stop order to include the new position. You really need to be mindful of race conditions here too. Whichever order gets filled first is finished. You couldn't amend the stop if it already filled before you entered on your limit.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I have added order amendments for all stop orders under the OnExecution() method. However it is still not working properly. The limit order is being filled before the stop, but the stop is still exiting all except for the entry that took place on that bar.

      Comment


        #4
        SystemTrading,

        I don't recommend such a strategy. For sure just because you submit changes doesn't mean your brokerage will accept them before they fill you on the stop.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 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
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X