I am running the newest version of Ninjatrader 8, a clean install. I am running the exact same two strategies, one on Sim101 and the other on my Live account.
I have several parts of code such as the following below that should submit TP and SL orders that are associated to other entry orders.
if (BSL2 != null && BSL2 == execution.Order)
{
if (execution.Order.OrderState == OrderState.Filled)
{
TP12 = ExitShortMIT(0, true, Position.Quantity, Open[0] - Trend * TickSize, "TP12", "BSL2");
SL12 = ExitShortStopMarket(0, true, Position.Quantity, KyoriBands2(TwentyFive, Fifty, SeventyFive, Hundred).High3[0], "SL12", "BSL2");
}
}
On Sim101 the TP12/SL12 are submitting as they should, but on my Live account they are simply ignored. And this has been happening multiple times now on my Live account while everything functions properly on the Sim101 account. What is causing this discrepancy? I can send you my entire Ninjascript code through a private mail should that be necessary.
I am looking forward to your reply.
Edit: also, this happens only sometimes, on other occasions the script does function properly on a Live account. Perhaps this could be affected by me making changes to my script and compiling it while the old version is still running?
Comment