I'm trying to set a simple stop loss in a strategy on a spot forex ($EURUSD) chart.
In Variables, I've put:
private int stop1 = 20;
private int target1 = 40;
In Initialize:
SetStopLoss("LongStopLoss", CalculationMode.Ticks, Stop1, false);
SetProfitTarget("LongProfitTarget1", CalculationMode.Ticks, Target1);
My strategy compiles but it doesn't seem to be working right on the chart.
I'd be very grateful for an explanation of how to set these properly on a forex chart.

Comment