I have an indicator that uses the lowest low in a range, the indicator works, but I want to eliminate some falls signals. To do that I need code that calculates the index number of the bar that forms the lowest low in a defined range.
I looked at iBarShift, but that doesn't produce the bar index number of the specific bar.
Can anyone please tell me what that code is if it exists?
It seems I cannot get it to work properly jet, can anyone tell me what I'm doing wrong here?
The condition I want to ad is that the lowest low in a range to the left from the current bar is below the lower envelope calculated on the bar with the lowest low. In this case the range is called Bars.
The indicator works, but this condition is ignored.