i try to do a trailing stop with "setstoploss" for e-mini but it doesn't work and set a stop under my entry price when the price goes down. Here is the code :
// condition set 3
if (Position.MarketPosition == MarketPosition.Long
&&Position.GetProfitLoss(Close[0], PerformanceUnit.Points) > 2)
{
SetStopLoss("Long", CalculationMode.Ticks, 5, false);
}
}
thanks for the help !

Comment