OPEN-SOURCE SCRIPT
Multi-Mode MACD Signals v2

Multi-Mode MACD Signals v2
Signal Types Explained ⚙️
You can now choose your preferred signal from a dropdown menu in the indicator's settings:
Pullback (Default): The original, high-probability strategy. It identifies "buy the dip" and "sell the rally" opportunities within an established trend.
Buy: Triggers on a bullish MACD/Signal line cross above the zero line.
Sell: Triggers on a bearish MACD/Signal line cross below the zero line.
Standard Crossover: The most common MACD signal. It's a pure momentum signal that triggers whenever the MACD line crosses the signal line, regardless of the trend.
Buy: MACD line crosses above the Signal line.
Sell: MACD line crosses below the Signal line.
Zero Line Cross: A trend-change signal. It identifies when the overall momentum shifts from bullish to bearish or vice-versa.
Buy: MACD line crosses above the Zero line.
Sell: MACD line crosses below the Zero line.
How Signals Are Displayed (Real-time vs. Confirmed)
This indicator addresses your request to have signals "display as it occurs" automatically. Here is how it works:
Real-time Alert (As it Occurs): On a live, developing candle, a "BUY" or "SELL" label may appear the instant the MACD conditions are met. This gives you the earliest possible warning.
Signal Repainting: Because the price is still moving within the live candle, the signal may appear and later disappear if the conditions are no longer met by the time the candle closes. This is known as "repainting".
Confirmed Signal: Once the candle closes, the signal is locked in and will never change. This is the confirmed, non-repainting signal.
To create alerts based on these signals, right-click a label on the chart, select "Add alert on Multi-Mode MACD Signals," and choose "Once Per Bar Close" for a confirmed signal or "Once Per Bar" for an earlier, real-time alert.
Signal Types Explained ⚙️
You can now choose your preferred signal from a dropdown menu in the indicator's settings:
Pullback (Default): The original, high-probability strategy. It identifies "buy the dip" and "sell the rally" opportunities within an established trend.
Buy: Triggers on a bullish MACD/Signal line cross above the zero line.
Sell: Triggers on a bearish MACD/Signal line cross below the zero line.
Standard Crossover: The most common MACD signal. It's a pure momentum signal that triggers whenever the MACD line crosses the signal line, regardless of the trend.
Buy: MACD line crosses above the Signal line.
Sell: MACD line crosses below the Signal line.
Zero Line Cross: A trend-change signal. It identifies when the overall momentum shifts from bullish to bearish or vice-versa.
Buy: MACD line crosses above the Zero line.
Sell: MACD line crosses below the Zero line.
How Signals Are Displayed (Real-time vs. Confirmed)
This indicator addresses your request to have signals "display as it occurs" automatically. Here is how it works:
Real-time Alert (As it Occurs): On a live, developing candle, a "BUY" or "SELL" label may appear the instant the MACD conditions are met. This gives you the earliest possible warning.
Signal Repainting: Because the price is still moving within the live candle, the signal may appear and later disappear if the conditions are no longer met by the time the candle closes. This is known as "repainting".
Confirmed Signal: Once the candle closes, the signal is locked in and will never change. This is the confirmed, non-repainting signal.
To create alerts based on these signals, right-click a label on the chart, select "Add alert on Multi-Mode MACD Signals," and choose "Once Per Bar Close" for a confirmed signal or "Once Per Bar" for an earlier, real-time alert.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。