PROTECTED SOURCE SCRIPT

MACD DIVERGENCE

59
MACD DIVERGENCE is a momentum oscillator that combines the power of multi-timeframe (MTF) MACD with a regular divergence engine (bullish/bearish) and bias-shift alerts, providing a professional, actionable read of the impulse–correction cycle. 📈🧭

Key Benefits ✅

Selectable MTF MACD: compute MACD from 1m…W or use the chart’s timeframe to align entries with the higher-timeframe bias.

Intelligent visual read: histogram and line colors adapt to reflect inertia and pace changes (acceleration/deceleration).

Robust regular divergences: detects bullish/bearish by comparing oscillator pivots vs. price extremes within configurable search ranges (helps avoid false positives from pivots too far apart or too close).

Ready-to-trade alerts:

Strong Buy: histogram crosses > 0 (bullish bias).

Strong Sell: histogram crosses < 0 (bearish bias). 🔔

Versatile by design: works on crypto, indices, forex, commodities; from intraday to swing.

Recommended Workflow ⚙️

Bias (MTF): choose the MACD timeframe to inherit context (e.g., trade 15m using a 1h MACD).

Trigger: prioritize zero-line crosses accompanied by regular divergences (confluence).

Management: apply your risk plan (position size, SL/TP) and use alerts to synchronize execution.

Core Parameters 🔧

MACD Timeframe (MTF): “same as chart” or manual selection (1, 5, 15, 30, 60, 240, D, W).

MACD Lengths: fast/slow/signal (defaults 12/26/9).

Divergences: enable bullish/bearish, set pivot left/right, and min/max search range to control sensitivity.

Best Practices 🛡️

Match pivot windows and range to the asset’s structure and volatility.

Don’t rely on a single condition; seek confluence (MTF + zero-cross + divergence).

Run backtests/forward tests and document results before scaling up.

Compatibility 🌐
Works on any asset and timeframe supported by TradingView; plotted in a separate panel (overlay=false) to keep the main chart clean.

Disclaimer ⚠️
This product is not financial advice and does not guarantee results. Performance depends on the asset, market conditions, chosen configuration, and the user’s risk management. Trade responsibly.

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。