I need to calculate the next thing:
Get last 300 bars ago
Find there X (f.e. 30) bars with MAX SIZE (Math.Abs(High-Low)
And then get the Average of that maxBars.
How can i get that X bars MAX SIZE bars from 300 bars ago? X must be user variable. Thanks
Comment