Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Best way to remove existing stop&limit orders

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

    Best way to remove existing stop&limit orders

    Hi,

    What is best or actually easiest way to remove Stop and Limit orders defined by a strategy?

    If there has been a simple myEO = EnterLong() or something like that in code and for some reason I want to Disable() the whole strategy but keep position open but remove those limit orders before that defined by SetPofitTarget, SetStopLoss?

    Something like CancelOrder (myEO) but this does not point to those orders if filled..

    #2
    raffu, there's is a setting that would tell NT it should cancel those working exit orders for you on strategy disablement - it's found under Tools > Options > Strategies > NinjaScript > Order Handling section.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    117 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    166 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    85 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    130 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    88 views
    0 likes
    Last Post PaulMohn  
    Working...
    X