Good afternoon, I’ve encountered a problem, I’m setting positions using a strategy + setting take profit and stop loss. Several trades go well, but at some point the price may greatly exceed the take profit and stop loss, but the position is not closed. What could be the problem?
The code looks like this:
if (State == State.DataLoaded)
{
if(Profit > 0)
{ //Profit
SetProfitTarget(CalculationMode.Currency, Profit);
}
if(StopLoss>0)
{ //StopLoss
SetStopLoss(CalculationMode.Currency, StopLoss);
}
}
Comment