Hodrick Prescott Indicator

The Hodrick Prescott Filter (HPF) is a tool used to remove fluctuations from static economic series and for detrending. In dynamic series like FOREX quotes it will be constantly changing. The attached indicator is something like a Moving Average equivalent that shows the HPF value for a given bar so it won’t repaint.


Some of the features are:


  •  It shows market trend based on selectable trend strength
  •  It can display(or not) HPF
  •  It displays up to 2 bands centered on “MA” or on HPF
  •  MTF support

The inputs are:


  •  nobs: the number of HPF bars
  •  lambda: the dambing factor
  •  timeframe: the applied timeframe
  •  price: the price on which HPF is evaluated, same as iMA()
  •  delay: shows the “MA” by delaying (or advancing if negative) the HPF
  •  trend: selects the trend strength (how many consecutive HPF bars to check)
  •  future: shows HPF future bars
  •  bands: if >0 the number of bars for band calculation
  •  band#: the deviation for # band (if<0) then centered on HPF
  •  type#: the # band type -1=HPF 0=applied price 1=mean 2=extreme price 3=closest price 4=median 5=typical 6=weighted
  •  repaint: if true processes each tick
  •  points: if true plots up/downtrend as point on “MA”
  •  alerts: enable alerting
  •  audio: the filename of a .WAV file to be used for audio alers
  •  history: the number of history bars to process, 0=all history(takes time to load the indicator)


MT4 Indicator Download – Instructions

[post-title] is a Metatrader 4 (MT4) indicator and the essence of the forex indicator is to transform the accumulated history data.

[post-title] provides for an opportunity to detect various peculiarities and patterns in price dynamics which are invisible to the naked eye.

Based on this information, traders can assume further price movement and adjust their strategy accordingly.

How to install [post-title].mq4?

  • Download [post-title].mq4
  • Copy [post-title].mq4 to your Metatrader Directory / experts / indicators /
  • Start or restart your Metatrader Client
  • Select Chart and Timeframe where you want to test your indicator
  • Search “Custom Indicators” in your Navigator mostly left in your Metatrader Client
  • Right click on [post-title].mq4
  • Attach to a chart
  • Modify settings or press ok
  • Indicator [post-title].mq4 is available on your Chart

How to remove [post-title].mq4 from your Metatrader 4 Chart?

  • Select the Chart where is the Indicator running in your Metatrader Client
  • Right click into the Chart
  • “Indicators list”
  • Select the Indicator and delete

MT4 Indicators Download below:

Hodrick Prescott Indicator

Leave a Reply

Your email address will not be published. Required fields are marked *

scroll to top
Password Reset
Please enter your e-mail address. You will receive a new password via e-mail.