Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Remove Stop Loss Order

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

    Remove Stop Loss Order

    Hi,

    My strategy has a stop loss order set in the Initialize(), I would like to remove it later, say after 10 bars since entry, and then place a ExitLongStop order.

    I'm looking at OnOrderUpdate examples but still not quite understand how to approach it,
    any help is greatly appreciated.

    Thank you.

    #2
    Hello kenlo,
    Thanks for your note.

    Unfortunately you cannot cancel an order as submitted by the Set() method. Also you cannot use the Exit() method and the Set() method together. If there is already an order submitted by the Set() method then the order as submitted by the Exit method will be ignored.

    Please refer to the section "Internal Order Handling Rules that Reduce Unwanted Positions" to know more how Managed approach handles order submission to reduce unwanted methods.
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    656 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    371 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    579 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X