Variations of the Hurst Exponent over time – indicator MetaTrader 4

Variations of the Hurst Exponent over time - indicator for MetaTrader 4
This indicator is based on the assumption that the price variations follow a multi-fractal model. From there, the Hurst exponent H can be easily computed from the fractal dimension (as obtained in The variations of this Hurst exponent can actually be seen as predicting the variations of the volatility, and they therefore provide a time

Hurst Exponent – optimized version – indicator MetaTrader 5

Hurst Exponent - optimized version - indicator for MetaTrader 5
Optimized version of the indicator originally published here : Hurst exponent .  Recommendations: Please read the original description for details the code can be further optimized (by using faster logarithm approximation – that would cause some precision loss – for example and some other code changes), but the gains would not be as “dramatical” as this version