I'm trying to develop a quite simple strategy but I have to program the stop loss by myself as I would like it to be set at the low of the signal bar which is the previous of the entry one.
When I first set the stop to a defined number of ticks, the strategy was running right but if I replace the "setstoploss" line in the code, I don't have trade execution any more. In practical terms, I replaced this line:
SetStopLoss("", CalculationMode.Ticks, 5, false);
by this one:
SetStopLoss("", CalculationMode.Price, Low[1]-1*TickSize, false);
Could you please help me on this?
Thanks,
Raph

Comment