Multi-Indicator Divergence Detection and Visualization Tool (Regular / Hidden, 10 indicator sources, lightweight and efficient)
Core Value
• All-in-one visualization — automatically detects and plots Regular and Hidden divergences, connecting price and indicator pivots with visual lines and clear top/bottom labels.
• Multi-source confluence — includes MACD / MACD Histogram / RSI / Stochastic / CCI / Momentum / OBV / VWMACD / CMF / MFI, allowing you to set a minimum confluence threshold to filter weak signals and focus on stronger divergences.
• Display control — choose to show/hide lines or pivots, full/short/no indicator labels, or display only the latest signal for cleaner charts.
• Lightweight and efficient — limits maximum lookback, line, and label counts, optimized for multi-symbol and multi-timeframe usage.
Recommended Pairs and Market Types
• Best suited for sideways or non-trending pairs, such as AUDCAD, AUDNZD, NZDCAD.
• In trending markets, hidden divergences can signal the end of a pullback for trend continuation; in ranging markets, regular divergences better identify reversal points.
Trading Logic and Strategy Suggestions (for reference only)
Divergences do not guarantee immediate reversals — combine them with structure, patterns, volume, and trend filters, and always apply stop loss and position control.
1) Possible Entry Points
For Long Entries:
• Condition A: Price has just crossed above the Bollinger Band middle line (based on closing price), and two consecutive candles close above it.
• Condition B: Within the last 10 candles, a Bullish divergence was detected.
• When both A + B are met, consider the current level as a potential long reference point (still requires confirmation and risk control).
For Short Entries:
• Condition A: Price has just crossed below the Bollinger Band middle line, and two consecutive candles close below it.
• Condition B: Within the last 10 candles, a Bearish divergence was detected.
• When both A + B are met, consider the level as a potential short reference point (confirmation required).
Tip: Adjust Bollinger Band period and deviation according to your instrument and timeframe.
This framework combines divergence analysis with mean-reversion logic for practical guidance.
2) Multi-Timeframe Confluence
• Observe higher timeframes (e.g., M15 → H1) to confirm divergences or trend direction — stronger when aligned.
• Set the minimum confluence ( showlimit ) to 2–3 to filter out isolated signals.
3) Risk Management
• Place stops beyond recent pivots or at fixed distances.
• Control exposure strictly; avoid trading purely on divergences during high-volatility news events.
How It Works (Overview)
- Pivot Detection: Marks highs/lows based on prd period and chosen price source (Close/High/Low/Weighted).
- Multi-Indicator Calculation: Runs MACD, RSI, Stochastic, CCI, Momentum, OBV, VWMACD, CMF, and MFI in parallel.
- Divergence Evaluation: Detects mismatched direction between price and indicators (Regular/Hidden).
- Confluence and Filtering: Aggregates results; ignores weak signals below showlimit .
- Visualization: Labels list indicator abbreviations and counts; Regular/Hidden styles customizable.
Main Parameters and Display Controls
• Mode: searchdiv = Regular / Hidden / R_H (both)
• Price Source: source (Close / High / Low / Typical / Weighted etc.)
• Confluence Threshold: showlimit (minimum number of confirmed divergences – recommended 2–3)
• Lookback Limits: maxbars (max bars), maxpp (pivot points)
• Display: showlines (lines) / showpivot (pivots) / showindis (label type) / shownum (count) / showlast (latest only)
• Style:
– Regular/Hidden line styles and widths: reg_div_l_style / hid_div_l_style / reg_div_l_width / hid_div_l_width
– Independent color sets: Bullish Regular / Bearish Regular / Bullish Hidden / Bearish Hidden
• Extra: Each indicator module ( calcmacd , calcrsi , etc.) can be toggled on/off.
Compatibility and Support
• Platform: MetaTrader 4 (Build 3200+ recommended)
• Symbols: Works on any timeframe and instrument – Forex, Gold, Indices, Crypto, etc.
• Support: Contact via channels listed on the product page (test thoroughly on demo first).
Disclaimer
This tool serves only as a technical reference aid.
Always test thoroughly in demo conditions and combine with proper risk management before live use.




