OPEN-SOURCE SCRIPT
CM_MACD_Ult_MTF + Entry Signals

This script is an enhanced and updated version of the classic CM_Ult_MacD_MTF originally created by ChrisMoody.
It preserves the full functionality, look, and behavior of the original multi-timeframe MACD, including:
Multi-timeframe MACD calculation
4-color histogram based on momentum direction
Optional MACD and Signal line display
Optional crossover dots
Color-changing MACD line on signal cross
Zero-line reference
This upgraded version adds entry signals based on MACD/Signal crossovers:
New Features Added
LONG @ price label when MACD crosses above Signal
SHORT @ price label when MACD crosses below Signal
Labels appear directly at the crossover point
Full support for Pine Script® v6, making it compatible with TradingView’s latest publishing requirements
Why this version?
The original script was written in an older Pine version and was no longer publishable.
This version keeps the full visual identity and logic of the classic MACD while adding modern compatibility and helpful trading signals.
Credits
Original concept and visual framework: ChrisMoody
Added features, Pine v6 migration, and enhancements: tgambinox
It preserves the full functionality, look, and behavior of the original multi-timeframe MACD, including:
Multi-timeframe MACD calculation
4-color histogram based on momentum direction
Optional MACD and Signal line display
Optional crossover dots
Color-changing MACD line on signal cross
Zero-line reference
This upgraded version adds entry signals based on MACD/Signal crossovers:
New Features Added
LONG @ price label when MACD crosses above Signal
SHORT @ price label when MACD crosses below Signal
Labels appear directly at the crossover point
Full support for Pine Script® v6, making it compatible with TradingView’s latest publishing requirements
Why this version?
The original script was written in an older Pine version and was no longer publishable.
This version keeps the full visual identity and logic of the classic MACD while adding modern compatibility and helpful trading signals.
Credits
Original concept and visual framework: ChrisMoody
Added features, Pine v6 migration, and enhancements: tgambinox
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.