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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    56 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X