OPEN-SOURCE SCRIPT
CM_MacD_Ult_MTF_crosses

CM MACD Ultimate MTF is a technical indicator based on the classic MACD with several visual enhancements:
What it does:
Calculates the standard MACD (fast EMA - slow EMA) and its signal line (SMA of MACD)
Allows using the current chart timeframe or selecting a different one (multi-timeframe)
Visual elements:
MACD Line — changes color (green/red) based on whether it's above or below the signal line
Signal Line — always yellow
Histogram with 4 colors:
Aqua → rising above zero
Blue → falling but still above zero
Red → falling below zero
Maroon → rising but still below zero
Dots/circles at MACD/Signal crossovers, with the custom filter applied:
Green dot only when a bullish cross occurs while MACD is below zero
Red dot only when a bearish cross occurs while MACD is above zero
Cross filter logic:
The filtered crosses highlight higher-quality signals — a bullish crossover is more meaningful when MACD is still in negative territory (recovering momentum), and vice versa for bearish crosses.
What it does:
Calculates the standard MACD (fast EMA - slow EMA) and its signal line (SMA of MACD)
Allows using the current chart timeframe or selecting a different one (multi-timeframe)
Visual elements:
MACD Line — changes color (green/red) based on whether it's above or below the signal line
Signal Line — always yellow
Histogram with 4 colors:
Aqua → rising above zero
Blue → falling but still above zero
Red → falling below zero
Maroon → rising but still below zero
Dots/circles at MACD/Signal crossovers, with the custom filter applied:
Green dot only when a bullish cross occurs while MACD is below zero
Red dot only when a bearish cross occurs while MACD is above zero
Cross filter logic:
The filtered crosses highlight higher-quality signals — a bullish crossover is more meaningful when MACD is still in negative territory (recovering momentum), and vice versa for bearish crosses.
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.