OPEN-SOURCE SCRIPT
Dual-Scale MACD

Dual-Scale MACD is a dual-timeframe momentum indicator that displays a scaled short-term MACD together with a long-term MACD in the same pane.
The short-term MACD can be amplified by a configurable scale ratio, allowing its momentum structure to be visually aligned with the long-term MACD.
All EMA parameters are fully configurable, making this indicator suitable for experimentation with multi-cycle momentum resonance.
Features
Two independent MACD systems (short-term + long-term)
Fully configurable EMA parameters
Adjustable scale ratio for visual alignment
Clean histogram + top-layer signal line
Use cases
Multi-cycle momentum comparison
Trend confirmation & divergence analysis
Studying MACD resonance across time scales
This indicator is intended for analytical and educational purposes.
The short-term MACD can be amplified by a configurable scale ratio, allowing its momentum structure to be visually aligned with the long-term MACD.
All EMA parameters are fully configurable, making this indicator suitable for experimentation with multi-cycle momentum resonance.
Features
Two independent MACD systems (short-term + long-term)
Fully configurable EMA parameters
Adjustable scale ratio for visual alignment
Clean histogram + top-layer signal line
Use cases
Multi-cycle momentum comparison
Trend confirmation & divergence analysis
Studying MACD resonance across time scales
This indicator is intended for analytical and educational purposes.
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.