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 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
        119 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