OPEN-SOURCE SCRIPT
Moving Average Convergence Divergence and Momentum

MACD line is difference between 20 EMA and 100 EMA which measures the Longterm trend. If MACD line is above Zero trend is positive. If MACD line is below zero trend is negative. Strategy is classic Buy in uptrend Sell in Downtrend.
To Improve the entry timing MACD histogram is used as Momentum. Histogram is the difference between MACD line and 20 EMA of MACD line. And Hist Momentum is the 20 SMA of histogram.
Advantage of histogram is Smoothness and better reliability than other momentum indicators like RSI which is volatile.
If MACD line is above zero = Trend is positive
and Histogram is above its SMA = Momentum is also positive.
Buy Signal.
If MACD line is above zero = Trend is positive
and Histogram is below its SMA = Trend is positive but Momentum is losing.
Look for Support levels or Break out of support level.
If MACD line is below zero = Trend is Negative
and Histogram is Below its SMA = Momentum is also Negative.
Sell Signal.
If MACD line is Below zero = Trend is Negative
and Histogram is above its SMA = Trend is negative but momentum is improving
Look for Resistance levels or Break out of resistance level.
To Improve the entry timing MACD histogram is used as Momentum. Histogram is the difference between MACD line and 20 EMA of MACD line. And Hist Momentum is the 20 SMA of histogram.
Advantage of histogram is Smoothness and better reliability than other momentum indicators like RSI which is volatile.
If MACD line is above zero = Trend is positive
and Histogram is above its SMA = Momentum is also positive.
Buy Signal.
If MACD line is above zero = Trend is positive
and Histogram is below its SMA = Trend is positive but Momentum is losing.
Look for Support levels or Break out of support level.
If MACD line is below zero = Trend is Negative
and Histogram is Below its SMA = Momentum is also Negative.
Sell Signal.
If MACD line is Below zero = Trend is Negative
and Histogram is above its SMA = Trend is negative but momentum is improving
Look for Resistance levels or Break out of resistance level.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。