I'm running into some "Internal Order Handling" errors that I hope someone can help with suggestions.
My entry long code is as follows:
longEntryPrice = Close[0];
longStopPrice = hanick.SignalPrice[0];
longEntry1 = EnterLongLimit(0, true, tradeSize, longEntryPrice, "LE1");
longEntry2 = EnterLongLimit(0, true, tradeSize, longEntryPrice, "LE2");
SetStopLoss("LE1", CalculationMode.Price, longStopPrice, false);
SetStopLoss("LE2", CalculationMode.Price, longStopPrice, false);
I've coded my exit/reverse code as follows:
ExitLong("ExLong2","LE1");
ExitLong("ExLong1", "LE2");
shortEntry1 = EnterShortLimit(0, true, tradeSize, Close[0], "SE1");
shortEntry2 = EnterShortLimit(0, true, tradeSize, Close[0], "SE1");
Any help would be appreciated.
Regards,
Nick

Comment