Hodrick-Prescott Window

Top  Previous  Next

Category: Advanced Indicator Set 1

 

Input parameters

Name

Setting

Default

Input Series

Input Time Series

Close

Period

Integer >= 3

100

Smoothing

0 < Real < 1e+38

10000

Detrend Flag

Integer 0 or 1

0

 

Calculations

The Hodrick-Prescott Window indicator computes the Hodrick-Prescott Filter indicator in the last Period bars (including current bar) and draws the filter output on the current bar.

Detrend Flag = 0 displays the trend line, Detrend Flag = 1 displays the detrended Input Series, i.e. Input Series minus trend line.

 

Discussion

Unlike Hodrick-Prescott Filter, the Hodrick-Prescott Window indicator can be used in trading strategies or neural nets used in trading strategies. New data bars DO NOT cause the trend line to change the trend through past data.