OPEN-SOURCE SCRIPT

Hodrick-Prescott Filter Cycle Component (YavuzAkbay)

By distinguishing between trend and cyclical components, the HP Filter Cycle Component is an indicator that analyses price movements using a condensed form of the Hodrick-Prescott (HP) filter. In order to smooth out the trend from the price data and display the resulting cycle in a separate window, this script uses an approximate HP filter.

Trend Extraction: Using a programmable smoothness parameter (λ), the HP filter eliminates long-term patterns from the price series. Short-term swings are separated from the underlying price trend using this filter.
Cycle Component: The price-trend cyclical component shows possible cyclical highs and lows by capturing the price deviation around the smoothed trend line.

Important Notes:
  1. The choice of lambda is essential. Recommended lambda levels are 100, 1600 and 14,400.
  2. This indicator will be much more useful if it is used together with another indicator of mine, HP Filter Cycle Component.


Trading is risky, and most traders lose money. The indicators Yavuz Akbay offers are for informational and educational purposes only. All content should be considered hypothetical, selected after the facts to demonstrate my product, and not constructed as financial advice. Decisions to buy, sell, hold, or trade in securities, commodities, and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.

This indicator is experimental and will always remain experimental. The indicator will be updated by Yavuz Akbay according to market conditions.
economicdataeconomicindicatorseconomicseconomyhodrickprescotthodrickprescottfilterOscillatorstrendTrend Analysis

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?


Auch am:

Haftungsausschluss