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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    86 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    48 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    29 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    67 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X