I´m working with fractals and I want to place the sl at the previous fractal, This indicator only shows a value greater that 0 at the bar that has the fractal signal. So is there a way I can look for a value greater than 0 in previous bars.
In the following example value of bwFractal1.Lower[0] is 0, I can´t find the way to know which previous bar has the value greater than 0.
Code:
EnterLong(Convert.ToInt32(Buyqty), "Buy1");
Stop_Price1 = Position.AveragePrice - (Position.AveragePrice-(bwFractal1.Lower[0]));
SetStopLoss("Buy1", CalculationMode.Price, Stop_Price1, false);

Comment