please, could you tell me the way to go with this
The way to go...
if (Position.MarketPosition == MarketPosition.Flat)
{
// Setup 1
EnterLong("","");
// Exit 1 - Set Stop Loss at the min bar ago
if exit1 == true{
double mmstop = Low[miBarsAgo];
SetStopLoss(CalculationMode.Price, mmstop);
}
// Exit 2 - Set ATR Stop Loss
if exit2 == true{
double mmstop = Position.AvgPrice - ATR(periodoATR)[0];
SetStopLoss(CalculationMode.Price, mmstop);
}
}
Best,
Vince.

Comment