added option to switch between sma and avg (default is avg)
added zero line
va := avg(highest(high,2)-lowest(low,2),10)
a different form of averaging very similar to a fast Tenkan-sen from Ichimoku, anyway, I though you should know. Otherwise I think this is correct in format. Good job making this indicator
Thanks for your contribution. This formula make it less erratic.