Stealthy Hurst Exponent

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.
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out