SetProfitTarget("", CalculationMode.Ticks, TP);
SetStopLoss("", CalculationMode.Ticks, value2, false);
if (dist1 > dist2)
{
TP = entryPrice + dist1;
}
else if (dist1 <= dist2)
{
TP = value1;
}
TP, dist1, dist2, value1, value2 are ALL double variables. We’re OnBarUpdate.
Why the take profit, when the strategy decides to place it, is always only 1 tick up the entry?

Thanks!

Comment