When I test this, I never see a trade which closes at a small stop loss meaning the BE Move threshold was achieved, the stop was moved to BE, and price eventually bounced back to the BE price level.
I must be missing something obvious, I just can't see what it is.
Thanks for your help.
DaveN
if (Position.MarketPosition != MarketPosition.Flat) { if (Position.MarketPosition == MarketPosition.Long && Position.GetProfitLoss(Close[0], PerformanceUnit.Currency) > BE_Move) { SetStopLoss("GM_LL", CalculationMode.Price, Position.AvgPrice, false); // DrawText("BarCount" + CurrentBar, BarsSinceEntry().ToString(), 0, Low[0] - 15 * TickSize, Color.Cyan); } else if (Position.MarketPosition == MarketPosition.Short && Position.GetProfitLoss(Close[0], PerformanceUnit.Currency) > BE_Move) { SetStopLoss("GM_LS", CalculationMode.Price, Position.AvgPrice, false); // DrawText("BarCount" + CurrentBar, BarsSinceEntry().ToString(), 0, High[0] + 15 * TickSize, Color.Magenta); } }
Comment