PROTECTED SOURCE SCRIPT
Updated

CompoundMACD

1 700
CompoundMACD is a study that modifies the basic MACD to use four moving averages.

The fast line of the MACD (red line) is calculated from a fast (alpha) and slow (beta) double EMA.

The slow line of the MACD (blue line) is calculated from a fast (alpha) and slow (beta) smooth moving average (SMA).

The delta (green line) is calculated from the fast and slow lines of the MACD.

Buy signals occur when the candlestick is below momentum and the fast and slow lines crossover each other while under the delta. These are marked by triangles at the bottom pointing up. A BUY ASSET alert is also provided.

Sell signals occur when the candlestick is above momentum and the fast and slow lines crossunder each other while above the delta. These are marked by triangles at the top pointing down. A SELL ASSET alert is also provided.

User configurable setting:

Momentum

MACD fast line: Fast (Alpha) DEMA, Slow (Beta) DEMA

MACD slow line: Fast (Alpha) SMA, Slow (Beta) SMA

MACD Smoothing
Release Notes
Bug fix in momentum functionality... Added a few more bells.
Release Notes
Updated to version 5

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.