OPEN-SOURCE SCRIPT

Dominant Cycle Adaptive MACD

This Indicator is based on classic MACD but with an exceptional smoothing.
This smoothing eliminates the noise of the classic MACD as you see in the Chart

Adaptive MACD is compiled using with two adaptive moving averages, one adaptive to the dominant cycle and the other adaptive to twice the dominant cycle. As the basic behind the MACD is the difference of two moving averages we cannot find much difference between the conventional MACD (12, 26) and the adaptive MACD. However the adaptive MACD is less prone for less whipsaws and it catches the trends very well at the same time the catches the turning points in time. The Adaptive MACD is definite one notch better than the conventional MACD.


Dominant Cycle Period is calculated using Ehler's Method {Mentioned in the code}
This is how the Adaptiveness Impacts the Price Chart

1. (12, 26 EMA) VS Adaptive Dominant Cycle EMA
snapshot

2. See how the Adaptive Lengths {both FastLength and SlowLength changes with time!}
snapshot

Enjoy!
adaptivedominantcycleMoving Average Convergence / Divergence (MACD)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Get Ocs Ai Trader, Your personal Ai Trade Assistant here
ocstrader.com
bit.ly/ocs_ai_trader

About me
AlgoTrading Certification, (University of Oxford, Säid Business School)
PGP Research Analysis, (NISM)
Electronics Engineer
Also on:

Disclaimer