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 GLFX005, Today, 03:23 AM
    0 responses
    2 views
    0 likes
    Last Post GLFX005
    by GLFX005
     
    Started by XXtrader, Yesterday, 11:30 PM
    2 responses
    11 views
    0 likes
    Last Post XXtrader  
    Started by Waxavi, Today, 02:10 AM
    0 responses
    6 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    14 views
    0 likes
    Last Post TradeForge  
    Started by Waxavi, Today, 02:00 AM
    0 responses
    3 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Working...
    X