Hi,
I’ve searched in the forum and tried a bunch of different things but cant seem to get it right.
Im looking for a way to set an intervall of say 10 – 20 bars and get the highest and lowest from that intervall, the last 0- 10 should not be taken in consideration.
Best,
Christoffer
There you go:
MyHigh = highest[10](high[11])
MyHigh = highest[10](high)[11]
that will scan bars 11,12,….20 (ten bars) starting from the 11th bar prior to the current one.
The returned values are the same for the two lines.
christofferR – Welcome to the forums…. however please re-read the few simple forum rules and make sure that you post in the correct forum with any future topics. I have moved your post to the ProBuilder forum as that is the place for indicator topics.