Rajandran R Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in)

Hurst Exponent – Checking for Trend Persistance – Python Notebook

1 min read

Hurst exponent is originally developed by the famous hydrologist Harold Edwin Hurst to study the Long-Term Storage Capacity of Reservoirs. Hurst is developed to model reservoirs but later found to be used in other natural systems to measure the long term memory of time series.

Hurst was looking for a better way to model the levels of the river Nile to construct an appropriately sized reservoir system.

In a Hurst Exponent is used to determining the trend persistence (i.e whether a given time series is trending, mean-reverting or random series)

How to Read Hurst Exponent Values?

Hurst value ranges between 0 < H < 1

i) Trending: If the Hurst value range is between 0.5 < H < 1 indicates persistence in time series. The higher the value of the Hurst exponent more the trendiness of the market structure. For values close to 1 the series is persistent.

ii) Mean Reverting: If the Hurst value range is between 0 < H < 0.5 indicates anti persistence in time series. The lower the value of the Hurst exponent more the mean-reverting behavior (trend reversal). For values close to 0, the series is anti-persistent

iii) Geometrical Brownian Motion: It explains the random walk with the l unpredictability of the time series. If Hurst Exponent value is H = 0.5 then the time series is expected to move in a random walk.

Geometric Brownian Motion is widely used to model stock prices in finance

Jupyter Python Notebook to compute Hurst Exponent for Nifty

[iframe src=”https://www.marketcalls.in/wp-content/uploads/2020/09/Hurst-Exponent-Notebook.html”]

More Readings on Hurst Exponent

  1. H.E. Hurst, 1951, “Long-term storage of reservoirs: an experimental study,” Transactions of the American Society of Civil Engineers, Vol. 116, pp. 770-799.
  2. Bo Qian, Khaled Rasheed, 2004, “Hurst Exponent and financial market predictability,” IASTED conference on “Financial Engineering and Applications”(FEA 2004), pp. 203-209,
  3. Mandelbrot, Benoit B., 2004, “The (Mis)Behavior of Markets, A Fractal View of Risk, Ruin and Reward,” Basic Books, 2004.
  4. Miguel Ángel Sánchez1, Juan E. Trinidad2, José García2, Manuel Fernández, 2015, “The Effect of the Underlying Distribution in Hurst Exponent Estimation
Rajandran R Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in)

[Live Coding Webinar] Build Your First Trading Bridge for…

In this course, you will be learning to build your own trading bridge using Python. This 60-minute session is perfect for traders, Python enthusiasts,...
Rajandran R
1 min read

How to Place Orders Concurrently using ThreadPoolExecutor – Python…

Creating concurrent orders is essential for active traders, especially those handling large funds, as it allows for executing multiple trade orders simultaneously, thereby maximizing...
Rajandran R
2 min read

Host your Python Flask Web Application using pyngrok and…

Ngrok offers several significant advantages for developers, especially when it comes to testing applications or hosting machine learning models. Ngrok allows you to expose...
Rajandran R
1 min read

One Reply to “Hurst Exponent – Checking for Trend Persistance – Python…”

  1. Hi Rajandran, Interesting to see a theoretical concept from you, as I have graduated in same domain.
    I understood the concept and the relationship of the Hurst Exponent values to the time series data. However for practical use, it would be useful to calculate the changing values of the exponent by taking small set of samples from the time series data and keep shifting them in time as we move from the beginning to the end of time series. For example, let us say we have 1000 values in the time series. Then start with first 100 values, calculate Hurst exponent for that set. Then take next 100 and so on. This leads to 10 exponents. We can see how it changes as future unfolds.
    Can you redo the steps you have done for the three different time series data cases and post the Hurst Exponent series?
    Btw, the second link is not working. It went to a page with an error.

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More