I am having some trouble getting a stop loss to work for the current strategy that i am working on.
For the back testing i am trying to utilise a stop loss that will be one tick below the current days open and then for the same strategy run it for optimization using a percentage below the days open.
I was just hoping some one could point out the correct code to use for the two situations.
1 tick below
SetStopLoss("long 1", CalculationMode.Price, CurrentDayOHL().CurrentOpen[0] - (1 * TickSize), false);
SetStopLoss("long 1", CalculationMode.Price, CurrentDayOHL().CurrentOpen[0] * 0.995, false);
4blue
Comment