Hurst exponent lookback too high
See original GitHub issuethe problem
Hi thanks for creating this amazing library! 🙏
I’m trying to use the Hurst exponent on my quotes. I understand that Hurst works optimally when it has 100+ lookback data points. But I want to tweak it for a lookback of 30 lag datapoints since I operate on larger time frames.
- For example in Matlab, it is just a recommendation to have more than 50 data series https://www.mathworks.com/matlabcentral/fileexchange/30076-generalized-hurst-exponent but it not enforced. So once can choose as low as 20
- The Python hurst library enforces the 100 data series, but it has a
min_window
parameter of 10 https://github.com/Mottl/hurst/blob/5ca5005485a679e6ce11a2769c948915ae27b2da/hurst/__init__.py#L130-L131 - Here is a Simple hurst exponent from Trading View script that allows 30 data points https://www.tradingview.com/script/Sjf9iGCS-Hurst-Exponent-Simple-pig/
Could you please recommend if I should create my own version of if there is a way to disable the validation in this library?
Issue Analytics
- State:
- Created 9 months ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Lookback period for Hurst Exponent calculation - Quantra
Hi, I've been trying to understand the Hurst Exponent calculation on real asset price time series and I noticed that the data span...
Read more >Estimating the Hurst Exponent
A small Hurst exponent has a higher fractal dimension and a rougher surface. ... The Hurst exponent is not so much calculated as...
Read more >Detecting trends and mean reversion with the Hurst exponent
The Hurst exponent is a single scalar value that indicates if a time series is purely random, trending, or rather mean reverting. Thus,...
Read more >Advanced Indicator Set 1 Help File
The Hurst Exponent is useful for determining how random a price time series is. If the series is very random, then in theory,...
Read more >roll_hurst: Calculate a time series of _Hurst_ exponents over a ...
The function roll_hurst() calculates a time series of Hurst exponents from OHLC prices, over a rolling look-back interval. The Hurst exponent is defined...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh, nice. Thank you for contributing! I’ll take a look and try to review and merge early next week.
Yes, happy to contribute. Thinking of setting it to 20 since I’ve seen a few python libs have a min of 20 lookback series. I’ll send a PR for you to run a validation after your research.