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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    47 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    15 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    21 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X