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 19,001 views
    2. thumb_up 15 thanks given
    3. group 9 followers
    1. forum 20 posts
    2. attach_file 2 attachments




 
Search this Thread

Hurst Exponent

  #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: 844


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?
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
Quant vue
Trading Reviews and Vendors
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #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: 844

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,460 since Jun 2009
Thanks Given: 33,234
Thanks Received: 101,655



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 Twitter 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: 844


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,460 since Jun 2009
Thanks Given: 33,234
Thanks Received: 101,655


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 Twitter 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: 322


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:

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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts