NexusFi: Find Your Edge


Home Menu

 





Hurst Exponent


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one vegasfoster with 6 posts (0 thanks)
    2. looks_two fluxsmith with 5 posts (12 thanks)
    3. looks_3 Big Mike with 2 posts (0 thanks)
    4. looks_4 maxima with 1 posts (0 thanks)
    1. trending_up 28,316 views
    2. thumb_up 15 thanks given
    3. group 9 followers
    1. forum 20 posts
    2. attach_file 2 attachments




 
Search this Thread
  #11 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 845


fluxsmith View Post
I reviewed the video and have to admit that I still don't know what a Hurst MA or a Hurst MACD is, but I think I've correctly come up with a Hurst Exponent indicator. I found it easier to first come up with a Fractal Dimension indicator and the infer the Hurst Exponent from that.

Revised: Solved a divide by 0 error when min(Close, n) == max(Close, n)

Thanks man, will take a look.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
CME Group Fee Schedule Changes Hit All Four Exchanges -- …
Traders Hideout
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
Weekend Update: First Qatari LNG Transit Attempted -- IR …
Traders Hideout
The 50/50 Paradox: Peace and Invasion Each at 20% -- Ira …
Prediction Markets & Event Contracts
The Confluence Meter: A Multi-Layered Signal Framework B …
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
5 thanks
  #12 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 845

Yeah, thanks for all your help, but this is turning out to be more complicated than I anticipated, not getting it to work correctly. I need a mathematician to tell me what he is doing. I will try to find one.


Started this thread Reply With Quote
  #13 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,557



vegasfoster View Post
Yeah, thanks for all your help, but this is turning out to be more complicated than I anticipated, not getting it to work correctly. I need a mathematician to tell me what he is doing. I will try to find one.

Have you tried asking @Richard ?

Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
  #14 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 845


Big Mike View Post
Have you tried asking @ Richard ?

Mike

Ummm, no, think that would work? Ok, I'll give it a shot.


Started this thread Reply With Quote
  #15 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,557


vegasfoster View Post
Ummm, no, think that would work? Ok, I'll give it a shot.

Well he hasn't been on the site in a long time, July 6th was last visit. But if I understood you correctly, you were trying to make sense of some of his work, so it seems like a good place to ask for help

Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
  #16 (permalink)
 
cbritton's Avatar
 cbritton 
Atlanta, Georgia
 
Experience: Intermediate
Platform: NT
Broker: DDT
Trading: ZN, ZB
Posts: 230 since Mar 2010
Thanks Given: 152
Thanks Received: 256

Here's another brief writeup on the hurst indicator and an embedded link to a mt4 version:

Hurst Exponent Indicator For MT4 | Great Trading Systems

It may be interesting to derive results of this indicator based on how accurate it is. i.e. if it's in a range of 0.5 to 1 (which indicates that whatever is happening now is likely to continue), what percentage of the time does the event following actually continue along that path. However, I'm not sure how to define "what is happening now".

Seems more of a novelty to me than something I would use.

Regards,
-C


“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Reply With Quote
  #17 (permalink)
 fluxsmith 
Santa Maria
 
Experience: Advanced
Platform: NinjaTrader, ThinkOrSwim
Broker: Mirus/Zen-Fire
Trading: ES
Posts: 290 since May 2010
Thanks Given: 97
Thanks Received: 323


fluxsmith View Post
...I think I've correctly come up with a Hurst Exponent indicator. I found it easier to first come up with a Fractal Dimension indicator and the infer the Hurst Exponent from that...

There was an error in my FractalDimension implementation, which also caused the Hurst Exponent values to be incorrect. A revised version is in the downloads area:
https://nexusfi.com/free_downloads/ninjatrader-7/indicators/654-download.html?view


Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #18 (permalink)
 maxima 
London
 
Experience: Intermediate
Platform: XT
Posts: 49 since Jan 2010

The Hurst exponent plots exact mirror reflection of your fractal dimensions. is it meant to be like that?


Reply With Quote
  #19 (permalink)
antonioguerrero
Santiago, Chile
 
Posts: 2 since Jul 2013
Thanks Given: 0
Thanks Received: 0


fluxsmith View Post
I reviewed the video and have to admit that I still don't know what a Hurst MA or a Hurst MACD is, but I think I've correctly come up with a Hurst Exponent indicator. I found it easier to first come up with a Fractal Dimension indicator and the infer the Hurst Exponent from that.

Revised: Solved a divide by 0 error when min(Close, n) == max(Close, n)

Could someone give me a brief explination of what that code do?
The zip file comes with 5 indicators, but I don't understand how the calculation of the Hurst Exponent it's being done.


Reply With Quote
  #20 (permalink)
steven8601
New York, NY
 
Posts: 5 since Feb 2017
Thanks Given: 0
Thanks Received: 7


here is a code snippet that implements the Hurst Exponent in Mathematica with 2 different implementations

rets = Differences[Log[FinancialData["^GSPC",All,"Value"]]];

RescaledRange[List_,n_] :=
Mean[Map[Sqrt[n] (Max[Accumulate[#]]-Min[Accumulate[#]]) / Sqrt[Total[#^2]]&,
Map[#-Mean[#] &, Table[List[i,,i+n]], {i,1,Length[List]-n}]]]];

Hurst[data_,lag_] := h/.FindFit[Table[RescaledRange[data,n],{n,2,lag}], {c*x^h}, {c,h}, x];
Hurst[rets, 16]


Hursttq[data_,lag_] := Fit[Log@Table[RescaldRange[data,n], {n,2,lag}], {1,Log[x]}, x] [[2]] [[1]];
Hursttq[rets, 32]

anybody want to implement this code into C++ for SierraChart?

The idea is to calc Hust at every closing price for a range of lags (i think 16-->128 would be ideal), which yields 112 results of Hurst Exponents for each closing price. Then take the avg of those Hust exponents to give you an AvgHustStrength study.

Another option is to output all 112 results, each as a colored pixel on a vertical line.
0 = Blue
0.5 =white
1 = Red
and in-between results are progressively lighter shades of blue or red.

So, a price series with high concentrations of Red = trend is becoming unstable and should be ending (signal to fade)...while a series with a high concentration of blue should be preparing to break out of the recent range (signal to go with a breakout).


Reply With Quote




Last Updated on September 20, 2018


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts