For example, for a long entry and 5-bar low:
SetStopLoss("long entry", CalculationMode.Price, five-bar low, false);
How can I express the five-bar low to return the double value for the SetStopLoss. Should I use mutiple time frames, add barsarray ?
Please help.
And if I want to set my profit target at the number of ticks that the 5 bar high or low is away from my entry price, how can I express that in the SetProfitTarget?
For example, for a long entry and 5-bar low:
SetProfitTarget("long entry", CalculationMode.Price, Position.AvgPrice + (Position.AvgPrice - five-bar low))
Does the above return the double value I need for my profit target or should I use CalculationMode.Ticks and in that case how can I express the price difference in ticks?
Thanks in advance for any help.

Comment