OPEN-SOURCE SCRIPT

NHPF (Normalized Hodrick-Prescott Filter)

114
This indicator applies a normalized Hodrick–Prescott filter (NHPF) to Bitcoin’s price data. It separates the underlying trend from short-term cyclical fluctuations by recursively smoothing the price using a user-defined lambda (HP Filter Period). The raw trend is then normalized by calculating a ratio between the trend and the current price, which is scaled and shifted according to subjective parameters (Mean and Scale). The result is a dimensionless value that highlights deviations from the long-term trend—serving as a signal for potential overbought (positive values) or oversold (negative values) market conditions. A zero line provides a clear reference, allowing traders to visually gauge when Bitcoin’s price is significantly above or below its expected trajectory.

Feel free to adjust the inputs to best match your analysis preferences.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.