OPEN-SOURCE SCRIPT
GMMA-MACD

The indicator itsels is a hybrid of the MACD and GMMA indicators, it has 2 modes, normal and Consensus mode.
The normal mode plots 2 modified MACD, one using the currently highest of the GMMA fast group to calculate the MACD line, and the other one uses the currently lowest of the slow group to do the same.
In Consensus mode all the GMMA moving averages being calculated separately, which means it uses 12 MACD indicators instead of 2, the logic is the same as in the normal MACD, turns bullish if MACD above it's signal line, in this mode also has a Donchian channel to help visualize potential divergences.
This mode can show trend direction and strength more effectively, and potential reversal points, coloring of the indicator is green if all MACD are in consensus of a bullish trend, turns light green if 7-11 of them shows slight/weakening bullish trend, orange for neutral (6-6), light red for 7-11 shows slight/weakening bearish trend, red if all shows bearish trend.
For easier adjustment instead of adjusting every single EMA period, the logic uses a multiplier to adjust the periods as a whole unit.
Tested in a few strategies against the normal MACD, as a trend filter, this one gave at least the same results, usually better, and because it's logic is dynamic it's more future proof than the normal MACD.
The normal mode plots 2 modified MACD, one using the currently highest of the GMMA fast group to calculate the MACD line, and the other one uses the currently lowest of the slow group to do the same.
In Consensus mode all the GMMA moving averages being calculated separately, which means it uses 12 MACD indicators instead of 2, the logic is the same as in the normal MACD, turns bullish if MACD above it's signal line, in this mode also has a Donchian channel to help visualize potential divergences.
This mode can show trend direction and strength more effectively, and potential reversal points, coloring of the indicator is green if all MACD are in consensus of a bullish trend, turns light green if 7-11 of them shows slight/weakening bullish trend, orange for neutral (6-6), light red for 7-11 shows slight/weakening bearish trend, red if all shows bearish trend.
For easier adjustment instead of adjusting every single EMA period, the logic uses a multiplier to adjust the periods as a whole unit.
Tested in a few strategies against the normal MACD, as a trend filter, this one gave at least the same results, usually better, and because it's logic is dynamic it's more future proof than the normal MACD.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。