OPEN-SOURCE SCRIPT

Hodrick-Prescott (HP) filter

Actualizado
This indicator is an implamentation of Hodrick-Prescott (HP) filter
This filter is a mathematical model the can remove cyclical components from the price signal to get the trend components.
  • "Lambda" is the smoothing factor and can have a value between 1 and infinity.
  • "Length" is the number of previous prices that are included in the filter.

The default values of lambda and length work well for almost all time frames.

imagen
Notas de prensa
Converted to v5
hodrickprescottHPMoving Averages

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?

Exención de responsabilidad