Indicator Statement Question 2

 

Along with a moving average crossover, I would like to create one additional condition in my program to check to see if the current price is (below) any valley peak (low) that may be occured in the previous 10 bars before the current bar. Can you assist me on this condition also, please!! Then I can fully get my program online. I will be indebted to you for your help!!

In another software program, they refer to this condition as rangemin -1 to -10 (referring to 1 bar back to 10 bars back, checking for lowest value of previous range to compare to current low value).

Sincerely,

Dave Diebold

ddiebold@sbcglobal.net

713-977-1892

 

Check if current price is lower than the lowest low during 10 previous candles:

PriceBid < Lowest(MODE_LOW,10,10)

Reason: