The Hodrick Prescott filter is well known in economics. It is very good for those purposes.
It is very clunky. OK for long term economic time series, to eliminate the trend from the cycle. Very clever.
However, it does not address a lot of questions sufficiently. What trend? The residual is the cycle. What lamda? It needs an entire array to compute, not just the last 20 data points or whatever.
Without seeing the code, I question whether it is "true". Can Metatrader perform minimization procedures?
To do this stuff I simply refer to Mr Ehlers cyber cycle, which is freely available. It chops out the trend element, however defined. Or bandpass, if you want to concentrate on a specific frequency.
From the supplied chart, HP seems to be anticipating a reversal at times. This is very good, if you have deep pockets and don't mind stress.
Bookmarks