SetStopLoss("LE", CalculationMode.Price, StopPrice, true);
SetProfitTarget("LE", CalculationMode.Price, PercentExitPrice);
MyOrder = EnterLongLimit(0, true, 1, MyEntryPrice, "LE");
Notice that the stop loss is simulated. When my long entry limit order is triggered, the stop loss order shows "Trigger Pending" and my limit order for the profit target shows "Working". Everything appears to be correct here.
When I stop my strategy, I clear my orders. If I'm in a trade and restart my strategy, the profit target order is submitted correctly. However, my stop loss order is submitted to the broker (it shows "Accepted") rather than "Trigger Pending" (simulated). My "Start Behavior" is "Immediately Submit".
I'm not sure if I'm doing something wrong or if this is a bug. Thanks in advance.
Comment