The indicator works in three stages: Prefiltering, Length Adaptation and Moving Averages.
Prefiltering is a fast smoothing to get rid of high-frequency (2, 3 or 4 bar) noise.
Adaptation algorithms are roughly subdivided in two categories: classic Length Adaptations and Cycle Estimators (they are also implemented in separate libraries), all are selected in Adaptation dropdown. 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 or the rate of change (the rate of change may also differ depending on the cycle phase, but the cycle period itself usually changes slowly).
- Chande (Price) - based on Chande's Dynamic Momentum Index (CDMI or DYMOI), which is dynamic RSI with this length
- Chande (Volume) - a variant of Chande's algorithm, where volume is used instead of price
- VIDYA - based on VIDYA algorithm. The period oscillates from the Lower Bound up (slow)
- VIDYA-RS - based on Vitali Apirine's modification of VIDYA algorithm (he calls it Relative Strength Moving Average). The period oscillates from the Upper Bound down (fast)
- Kaufman Efficiency Scaling - based on Efficiency Ratio calculation originally used in KAMA
- Deviation Scaling - based on DSSS by John F. Ehlers
- Median Average - based on Median Average Adaptive Filter by John F. Ehlers
- Fractal Adaptation - based on FRAMA by John F. Ehlers
- MESA MAMA Alpha - based on MESA Adaptive Moving Average by John F. Ehlers
- MESA MAMA Cycle - based on MESA Adaptive Moving Average by John F. Ehlers, but unlike Alpha calculation, this adaptation estimates cycle period
- Pearson Autocorrelation* - based on Pearson Autocorrelation Periodogram by John F. Ehlers
- DFT Cycle* - based on Discrete Fourier Transform Spectrum estimator by John F. Ehlers
- Phase Accumulation* - based on Dominant Cycle from Phase Accumulation by John F. Ehlers
Length Adaptation usually take two parameters: Bound From (lower bound) and To (upper bound). These are the limits for Adaptation values. Note that the Cycle Estimators marked with asterisks(*) are very computationally intensive, so the bounds should not be set much higher than 50, otherwise you may receive a timeout error (also, it does not seem to be a useful thing to do, but you may correct me if I'm wrong).
The Cycle Estimators marked with asterisks(*) also have 3 checkboxes: HP (Highpass Filter), SS (Super Smoother) and HW (Hann Window). These enable or disable their internal prefilters, which are recommended by their author - John F. Ehlers. I do not know, which combination works best, so you can experiment.
Chande's Adaptations also have 3 additional parameters: SD Length (lookback length of Standard deviation), Smooth (smoothing length of Standard deviation) and Power (exponent of the length adaptation - lower is smaller variation). These are internal tweaks for the calculation.
Length Adaptaton section offer you a choice of Moving Average algorithms. Most of the Adaptations are originally used with EMA, so this is a good starting point for exploration.
- SMA - Simple Moving Average
- RMA - Running Moving Average
- EMA - Exponential Moving Average
- HMA - Hull Moving Average
- VWMA - Volume Weighted Moving Average
- 2-pole Super Smoother - 2-pole Super Smoother by John F. Ehlers
- 3-pole Super Smoother - 3-pole Super Smoother by John F. Ehlers
- Filt11 -a variant of 2-pole Super Smoother with error averaging for zero-lag response by John F. Ehlers
- Triangle Window - Triangle Window Filter by John F. Ehlers
- Hamming Window - Hamming Window Filter by John F. Ehlers
- Hann Window - Hann Window Filter by John F. Ehlers
- Lowpass - removes cyclic components shorter than length (Price - Highpass)
- DSSS - Derivation Scaled Super Smoother by John F. Ehlers
There are two Moving Averages that are drown on the chart, so length for both needs to be selected. If no Adaptation is selected (None option), you can set Fast Length and Slow Length directly. If an Adaptation is selected, then Cycle multiplier can be selected for Fast and Slow MA.
More information on the algorithms is given in the code for the libraries used. I am also very grateful to other TradingView community members (they are also mentioned in the library code) without whom this script would not have been possible.
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.