Based on the request.
https://fxcodebase.com/code/viewtopic.php?f=27&p=148854Volatility= ( ATR - ATR for entire data series )/ Standard deviation for entire data series
Despite trying to optimize the algorithm,
It may be CPU-intensive due to its nature.
Despite being rather rare on longer datasets, Repainting is given.