I modified the NT-Sample "OnOrderUpdate" with one profittarget to two profittargets. http://www.ninjatrader.com/support/f...ead.php?t=7499
The code works in backtest on a 5Min timeframe exactly as it should.
However, in rare cases the stop loss is not set properly.
Here an example from MCD:
As you can see on the marked output.jpeg, a long position is entered 03.03.2014 at 19:35:00.
However, for some reasons the respective stoporder is placed months later on 05.08.2014 (!) at 21:10.
When setting "Exit on close = true" will sell this position (without stop) at the end of the day and seems to work properly.
However, I don't want to experience being invested without stoploss in reality.
This problem also arose with some other stocks. However, I wanted to highlight this issue with the MCD example.I would be very thankful if you could help me with this issue.
Best regards
PaBa



Comment