Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Two orders stop Long & Short together

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

    Two orders stop Long & Short together

    Please,

    If i need to get a trade at a breakout (if price touch a Max or a Min) can I send both stop orders at the same bar?

    EnterLongStop for Max

    and

    EnterShortStop for min

    What will happen? I mean, both orders will be alive until price touches one, or not? Do I must to cancel one it's not touched?....

    I did a search but I didn't find anything similar, but I'm sure there are examples of this kind of trading...

    Thanks a lot

    #2
    joanNT, with default order handling on (not the new NT7 unmanaged approach) you would run into 'ignored' orders due the 'under the hood' order handling rules -

    http://www.ninjatrader-support.com/H...verview36.html (bottom section here)

    Best is to work with TraceOrders = true in the Initialize() and then open the output window as you work on / debug the strategy.

    You would need to monitor price and only send one needed order then while canceling the unneeded leg of the bracket.

    Comment


      #3
      Thanks Bertrand,

      with the new unmanaged orders in NT7, can I send a cancel order "CancelOrder(IOrder order)" and an entry opposite stop order simultaneously?

      I mean If I've an:

      long = EnterLongStop(1, true, DefaultQuantity, max_range, "TryUp");

      then at next barupdate:

      CancelOrder(long);
      short = EnterShortStop(1, true, DefaultQuantity, min_range, "TryDown");

      I must say that if I send the cancel order, price will be far enough not to permit a previous filling order.

      is this possible? or it can't be simultaneously and I must cancel first and when agreed send the short stop order.

      Thanks again.

      Comment


        #4
        joanNT, with the new unmanaged approach you could place the full entry bracket (long and short simultaneous) and then cancel as needed, reason being there're no order handling rules anymore preventing you placing the orders in this scenario. As this is unmanaged you would need to keep track of IOrder references yourself to access those later.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        612 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        355 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        561 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        564 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X