mrtools wrote: Thu Mar 27, 2025 10:10 am
Try now, if you set the period to 1 it should be the same or close to the built-in version.
 
P.S.
I do not understand the moment of averaging. 
((High minus Low 1 + High minus Low 2 + High minus Low 3) divide by (Volume 1 + Volume 2 + Volume 3)), 
This is an absolute value and should not change the value with any type of sliding average, but when I change the type of price, the color of the bars changes. 
Is it possible to make a version of absolute values,
When is the current bar compared with the absolute value of the average value of several bars?