R1 = (HIGH() - LOW()); R1 > R1[1] and R1 > R1[2] Hi, I want to write a script for the widest range in the last seven bars. Is there a simpler way to write it than the above where I would continue what I was doing up until the 7th bar? Thanks,
Hi David,
I would use the Highest High to find the 7 day high value of the range.
Here’s an example script:
V1 = HIGH() - LOW() ; V2 = HIGHESTHIGH(V1, BARS=7, INCBAR=True); V1 == V2
Here is how it would look on a chart:
Thanks Matthew. That works great!