Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cancel pending order once one executes.

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

    Cancel pending order once one executes.

    I am having problems cancelling an order once one executes. How would you approach this problem?

    OnBarClose()
    Enter ATM with BUY STOP
    Enter ATM with SELL STOP
    ( Of course the only way to do this is with two different ATM Strategies , I have no problem here) basically a straddle of the candle. One at The HIGH and one at The LOW.)

    Now once one of the orders executes , I need to cancel the other immediately , and not wait until the bar closes.

    Any suggestions? thx.​

    #2
    Hello sdpadre3219,

    If you are submitting ATM strategies you need to use the ATM strategy methods:

    https://ninjatrader.com/support/help...gy_methods.htm
    https://ninjatrader.com/support/help...entryorder.htm

    If you need to do something immediately you need to use OnEachTick processing.

    Comment


      #3
      Not sure if this can be done via Strategy Builder or the managed approach.

      Comment


        #4
        Hello Trader17,

        ATM's cannot be used with the strategy builder or the managed approach so those approaches for strategy creation would not apply here.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        77 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X