I'm trying to emulate a split order as I can set up an an ATM strategy. Can you let me know what's wrong with this code? It seems to only place one order when triggered.
Thanks
if ((Position.MarketPosition == MarketPosition.Flat) && (Conditions == true)) { SetProfitTarget(@"scalp", CalculationMode.Ticks, 7); SetStopLoss(@"scalp", CalculationMode.Ticks, 18, false); EnterShortStopMarket(currentStopLong - (TickSize * 7), @"scalp"); SetProfitTarget(@"runner", CalculationMode.Ticks, 28); SetStopLoss(@"runner", CalculationMode.Ticks, 24, false); EnterShortStopMarket(currentStopLong - (TickSize * 8), @"runner"); }
Comment