Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TakeProfit filled, StopLoss order cancelled, strategy gets disabled anyway

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

    TakeProfit filled, StopLoss order cancelled, strategy gets disabled anyway

    Hello all,

    As stated in the title, one of my strategies had one position open with TakeProfit/StopLoss orders working and when the takeProfit order got filled, the stop loss order got cancelled, but the strategy raised an error and disabled itself anyway saying that the stop loss order was in a un-cancellable state. How is this possible? What am I doing wrong?

    I am using the managed orders mode, thus setting the take profit and stop loss with:
    Code:
    SetProfitTarget("RB", CalculationMode.Ticks, TakeProfit);
    SetStopLoss("RB", CalculationMode.Ticks, StopLoss, false);
    I attached to this message the trace and log files.

    Thanks!
    Last edited by NinjaTrader_James; 06-01-2015, 07:13 AM.

    #2
    Hello nicanor.babula,

    I will need your log file which was not included with your attachment.

    However, your log and trace files should be sent to platformsupport [at] ninjatrader [dot] com and should not be posted publicly on this forum.

    Please send me an email at this address and I will be happy to investigate this with you.

    Also, please include a link to this forum thread.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    640 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    366 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    572 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X