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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.