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 aligator, Today, 02:28 PM
    0 responses
    1 view
    0 likes
    Last Post aligator  
    Started by daniel_weber8, Today, 01:21 PM
    1 response
    20 views
    0 likes
    Last Post NinjaTrader_ChristopherS  
    Started by jungsoohuh, Today, 12:07 PM
    1 response
    28 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by SharonSS, Today, 11:54 AM
    1 response
    21 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by crystalet, Today, 11:20 AM
    3 responses
    23 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X