Jump to content

Hodrick Prescott Indicator


ryaz

Recommended Posts

Here's a Hodrick Prescott "MA" by me

http://stashbox.org/654646/hm.rar
p.[hm]ryaz

It is based on an HP filter implementation by gwpr (http://translate.google.com/translate?hl=el&sl=ru&tl=en&u=http%3A%2F%2Fcodebase.mql4.com%2F5169) and doesn't repaint as HP filter.

More information on HP filter in http://en.wikipedia.org/wiki/Hodrick-Prescott_filter

regards

Link to comment
Share on other sites

Re: Hodrick Prescott Indicator

 

Peachy ;)

Cheers peachess

Here's ver 1.01 for you with a lot more features, like selectable trend strength, no trend detection, filter bands and selectable price bands (disabled if band=0) and display of the Hodrick Precott filter (disabled if trend=0). The HP filter repaints and it's use resembles Center of Gravity, it is disabled from screen for trend=0. The HPMA and the bands don't repaint except for the last bar where repainting can be turned off by setting repaint=false. Increasing the nobs param will increase execution time, the smoothness is increased as labda increases, and trend change detection tends to be slower as trend param increases.

[spoiler:1uztao4u]http://stashbox.org/655677/h1.rar

p.[h1]ryaz[/spoiler:1uztao4u]

regards

Link to comment
Share on other sites

Re: Hodrick Prescott Indicator

 

Cheers peachess

Here's ver 1.01 for you with a lot more features, like selectable trend strength, no trend detection, filter bands and selectable price bands (disabled if band=0) and display of the Hodrick Precott filter (disabled if trend=0). The HP filter repaints and it's use resembles Center of Gravity, it is disabled from screen for trend=0. The HPMA and the bands don't repaint except for the last bar where repainting can be turned off by setting repaint=false. Increasing the nobs param will increase execution time, the smoothness is increased as labda increases, and trend change detection tends to be slower as trend param increases.

[spoiler:ozbmrmx9]http://stashbox.org/655677/h1.rar

p.[h1]ryaz[/spoiler:ozbmrmx9]

regards

 

 

Thank you :D I will try it out .. its so nice to have some experts here \m/

 

Barbara

 

p.s. I like your new avatar

Link to comment
Share on other sites

Re: Hodrick Prescott Indicator

 

initial feedback:

 

<<if it does not repaint...>>>>

 

You have created a gem, a master piece, the best forex inicator

 

This might be IT.

 

Just added to GBPUSD 5M chart, would have kept me in the trade for most of the profits. AWESOME.

 

I didn't even pay attention to all the values, just using default value I thickened the red and blue lines in settings and voila.

 

 

 

Complete feedback: NEXT FRIDAY

Link to comment
Share on other sites

Re: Hodrick Prescott Indicator

 

...Can any one put alert on this for colour changes? ...

Just wait because ver 1.02 will have audio and visual aletrs among other (I even consider some type of convergence/divergence equivalent that I'm testing and looks very promising). For now I'd like your opinion on its usefulness compared to low lag MAs or other indies like CoG (for the filter).

regards

Link to comment
Share on other sites

Re: Hodrick Prescott Indicator

 

...i try to figure out how this stuff works... pls advise...

Actually it isn't a real MA like HMA but shows the HPF value at any given bar. The HPF constantly changes to best fit the data and shows the current trend by removing the noise from the data. So it's basically a trend indicator that you can use it in many ways either alone or as a tool to establish trend for other systems or even set limits for entering/exiting, to name a few.

need help with this....

Correct "lamda" to "lambda" as mentioned earlier

regards

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...