I thought the follwing code would set a stop loss/target 5 points away from entry?
There are some funny graphics plotted as a result
if (trailStopOn == 0)
{
SetStopLoss(signalLong, CalculationMode.Price, 5, false);
}
else
{
SetTrailStop(signalLong, CalculationMode.Price, Trail, false);
}
SetProfitTarget(signalLong, CalculationMode.Price, 5);
if (trailStopOn == 0)
{
SetStopLoss(signalShort, CalculationMode.Price, 5, false);
}
else
{
SetTrailStop(signalShort, CalculationMode.Price, Trail, false);
}
SetProfitTarget(signalShort, CalculationMode.Price, 5);
Comment