Okay at each signal I have two orders :
-One with a short TP (8 ticks)
-Another with a large TP (23 ticks)
-Both have the same stop
I would like to move the stop of the second orders to breakeven once the first tp is touched
Why this code doesn't work ? Should I have a "fromEntrySignal" ?
if (Position.MarketPosition == MarketPosition.Long) { if (Close[0] > Position.AvgPrice + 8 * TickSize) { SetStopLoss(CalculationMode.Price, Position.AvgPrice); } } if (Position.MarketPosition == MarketPosition.Short) { if (Close[0] < Position.AvgPrice - 8 * TickSize) { SetStopLoss(CalculationMode.Price, Position.AvgPrice); } }
Comment