PROTECTED SOURCE SCRIPT

Multi timeframe MACD

48
This script is a Dual Multi‑Timeframe MACD tool designed for traders who want stronger confirmation signals by combining two MACDs across different resolutions. It plots both MACD lines, signal lines, and histograms with customizable colors, plus optional dots to mark crossovers.

Key features include:

📊 Dual MACD calculation: choose independent timeframes for MACD1 and MACD2.
🎨 Custom visualization: toggle histograms, signal lines, crossover dots, and dynamic color changes.
🟩🟥 Background & candle coloring: highlights buy/sell zones only when both MACDs agree, with optional toggles.
➖➕ Overbought/oversold reference lines: customizable horizontal levels (e.g., +1 and –1) for quick visual thresholds.
⚡ Overlay markers: optional dots on the main chart to mark MACD color changes.
🛠️ User controls: inputs to enable/disable candle coloring, adjust levels, and fine‑tune display preferences.

This indicator helps filter noise by requiring dual confirmation, making it easier to spot high‑probability trend shifts. It’s flexible enough for scalpers, swing traders, and multi‑timeframe analysts.

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.