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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        87 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        132 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        118 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        67 views
        0 likes
        Last Post PaulMohn  
        Working...
        X