OPEN-SOURCE SCRIPT

Stealthy Hurst Exponent

By stealthy7
Updated
This is my attempt at Hurst Exponent indicator.
Above 0.5 is supposed to indicate a trend is present.
Below 0.5 is noise.
0.5 is supposed to be Brownian Motion or regular market noise.

If you have corrections to the code you want to share, please post it.
I'm not an expert in math or coding, so this shouldn't be copied / ported.
This code didn't work very well as a filter, but you may have a fix or other use.
Release Notes
I moved the averaging to the end after the linear regression stuff.
OscillatorsTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer