Loading…

Forex Hodrick Prescott Indicator

This Old Kings indicator for MetaTrader 4 is called Forex Hodrick Prescott Indicator. It draws arrows on the chart, can send alerts and can read another timeframe. It has 16 settings, for example nobs (default 150), lambda (default 1600) and timeframe (default 0). Attach it to a chart to see what it draws, then compare it with price on a few timeframes. Inside: 1 indicator file with source code (.mq4) you can open and edit in MetaEditor. Old Kings are classic community tools shared as-is. Not tested by PolyMaria. Try it on a demo account first. Are you the author of this tool? Message us on Telegram (@abumarket_support) and we will credit you or take it down.

Indicator · MT4 · v1.0 · Free

About Forex Hodrick Prescott Indicator

Forex Hodrick Prescott Indicator is an indicator for MetaTrader 4. It draws buy and sell arrows on the chart, can alert you with a pop-up, sound, email or push message and can show data from another timeframe (MTF). It has 16 settings, such as Nobs, Lambda and Timeframe. MQL source code included.

Files in the download: HPMA102.mq4, installation manual.txt.

Settings

SettingDefaultWhat it does
Nobs150Number of bars to process for filter evaluation
Lambda1600Higher lambda leads to the smoother data
Timeframe0The applied timeframe, 0=the same as chart
PricePRICE_CLOSEThe applied price
Delay0Shows the result of delaying (or advancing if negative) the HP filter
Trend10how many consecutive filter bars to check to determine trend
Future8How many bars in the future to display for the HP filter
Bands0how many bars to include in bands calculation
Band12deviations for first band
Band22deviations for second Band
Type20Type for second band as above
RepaintFALSETo repaint last bar, FALSE for faster execution
PointsFALSEPlot up/downtrend as points instead of line
AlertsFALSEEnable visual alert
Audioalert.wavEnable audioalert
History500history bars to display on initialisation, 0 means all history

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Indicators.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the indicator from the Navigator onto a chart and adjust the settings.

Download the PDF guide

Tags: Buy/Sell Arrows · Alerts · Multi-Timeframe (MTF) · MT4 Indicator · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria