This is an example of what can be done by combining Legendre polynomials and analytic signals. I get a way of determining a smooth period and relative adaptive strength indicator without adding time lag.
This indicator displays the following:
The Least Squares fit of a polynomial to a DC subtracted time series - a best fit to a cycle.
Collection of Dominant Cycle estimators. Length adaptation used in the Adaptive Moving Averages and the Adaptive Oscillators try to follow price movements and accelerate/decelerate accordingly (usually quite rapidly with a huge range). Cycle estimators, on the other hand, try to measure the cycle period of the current market, which does not reflect price movement...
The Instantaneous Phase Dominant Cycle was created by John Ehlers (Stocks & Commodities V. 18:3 (16-27)) and this is one of many similar indicators that I will be publishing from Ehlers in the next few months that calculate the current dominant cycle period. The cycle period can be used in multiple ways but generally this means that if the stock is currently at a...
Phase Calculation was authored by John F. Elders in the Stocks and Commodities Magazine 11/1996
This indicator will tell you if the stock is in a uptrend or downtrend. A phase number with a low number means it is in a uptrend and a phase number with a high number means it is in a downtrend.
Let me know if you want to see me write code for different indicators!
MESA Phase (By John Ehlers) is a cyclic indicator that predicts market short-term and mid-term movements. It would give you clear divergence signals or you can use it as a price reversal detection indicator.
Please share us any tricks or new useful methods that you determined by using this indicator.