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.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    14 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    13 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,983 views
    3 likes
    Last Post jhudas88  
    Working...
    X