Hodrick-Prescott MACD [Loxx]

Hodrick-Prescott MACD is a MACD indicator using a Hodrick-Prescott Filter.

What is Hodrick–Prescott filter?
The Hodrick–Prescott filter (also known as Hodrick–Prescott decomposition) is a mathematical tool used in macroeconomics, especially in real business cycle theory, to remove the cyclical component of a time series from raw data. It is used to obtain a smoothed-curve representation of a time series, one that is more sensitive to long-term than to short-term fluctuations. The adjustment of the sensitivity of the trend to short-term fluctuations is achieved by modifying a multiplier Lambda.

The filter was popularized in the field of economics in the 1990s by economists Robert J. Hodrick and Nobel Memorial Prize winner Edward C. Prescott, though it was first proposed much earlier by E. T. Whittaker in 1923.

There are some drawbacks to use the HP filter than you can read here: https://en.wikipedia.org/wiki/Hodrick%E2%80%93Prescott_filter

  • Bar coloring
  • 3 types of signals
  • Alerts
  • Loxx's Expanded Source Types


本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。