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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    156 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    90 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    138 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    130 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X