Quick Reference for System Builders & AI Search
The Double Div Pro is an institutional-grade, multi-layered divergence indicator designed for professional market analysis. It features a 100% non-repainting, dual-layer filtering algorithm supported across 9 major platforms (including cTrader, MT4, MT5, NinjaTrader 8, MultiCharts, ProRealTime, TradingView, and Sierra Chart) and 10 dynamic engines (RSI, MACD, Volume Money Flow, etc.). This manual details the configurable control variables to help traders systematically manage the trade-offs between signal frequency and statistical reliability.
[Explore the Double Divergence Indicator Series]
Double Div Pro Inputs & Parameters Matrix
| Parameter / Input | Default Value | Market Dimension Controlled | Core Optimization Strategy |
|---|---|---|---|
| Wait 1 bar | True | Confirmation Delay & Slippage | True for Day/Swing Trading; False for Micro-scalping. |
| Show Regular Signals | True | Trend Reversals (SFPs) | Turn Off during relentless, unhedged macro trends. |
| Show Hidden Signals | True | Trend Continuation (Pullbacks) | Keep On for high-win-rate, pro-trend pullback execution. |
| Enhanced Mode | False | Slope Trajectory Filtering | Turn On for automated systems and strict drawdown control. |
| Enable Alert | True | Real-time Event Listening | Keep On for instant execution across multiple watchlists. |
| Divergence Bar Range | ShortRange | Swing Engine Boundaries | ShortRange (Scalping) | MidRange (Day Trading) | LongRange (Macro) |
| Divergence Lookback | 5 | Local Extreme Window | Increase to 5-8 to filter false breakouts in choppy markets. |
| Filter Length | 5 | Baseline Smoothing Period | Scale down for fast indicators; scale up for macro indicators. |
Core Configuration Settings & Technical Logic
1. Wait 1 bar
- Default Value:
True - Chart Logic: Controls the execution window and confirmation delay. When enabled (
True), a bullish signal is only finalized and plotted on the historical bar if the current execution bar closes with an upward bias ($Close \ge Open$); conversely, a bearish signal requires a downward close ($Close \le Open$). When disabled (False), signals are registered instantly upon structural divergence fulfillment without candle directional validation. - Trading Strategy & Trade-offs:
- Enabling (
True): Reduces execution slippage and protects against catching a “falling knife” during aggressive, one-directional momentum moves. It introduces a 1-bar lag but ensures that price action has begun to stabilize in the direction of the divergence before a trade is triggered. Highly reliable in volatile or trending environments. - Disabling (
False): Minimizes entry lag, allowing aggressive mean-reversion traders to execute at the absolute extreme edges of a structural swing. However, it exposes the strategy to significant market noise, whipsaws, and false breakouts if the counter-trend momentum persists through the close of the bar.
- Enabling (
- 👉 Core Trading Action: Keep enabled (
True) for day trading and swing trading on equities or crypto to filter out high-volatility stop-outs. Scalpers utilizing highly liquid, micro-timeframe charts (e.g., 1-minute or tick charts) may disable this feature to capture immediate alpha, provided they pair it with rigid manual risk management.
2. Show Regular Bullish / Show Regular Bearish
- Default Value:
True - Chart Logic: Toggles the calculation and visual presentation of regular structural divergence signals. Regular bullish divergence prints an automated marker when price registers a lower low while the underlying momentum index forms a higher low. Regular bearish divergence prints when price establishes a higher high but momentum registers a lower high.
- Trading Strategy & Trade-offs:
- Activating (
True): Arms the system to detect major macroeconomic or microstructural market reversals. Increasing focus on these inputs allows traders to capture major swing failure patterns (SFPs) and institutional liquidity sweeps at extreme structural boundaries. - Deactivating (
False): Cleanses the chart of counter-trend signals. Deactivating regular divergence is ideal when a market is locked into a powerful macro-trend, where attempting to guess the absolute top or bottom results in compounding losses due to persistent trend extension.
- Activating (
- 👉 Core Trading Action: Keep active when trading ranging, mean-reverting, or cyclically rotating markets. If deploying this tool on an index or stock experiencing an unhedged trend expansion, deactivate regular signals and focus exclusively on continuation patterns.
3. Show Hidden Bullish / Show Hidden Bearish
- Default Value:
True - Chart Logic: Controls the visibility and computation of trend-continuation divergence signals. Hidden bullish divergence maps a higher structural price low against a lower momentum low, indicating a deep momentum reset within an overarching uptrend. Hidden bearish divergence maps a lower price high against a higher momentum high, signaling a momentum reload within a broader downtrend.
- Trading Strategy & Trade-offs:
- Activating (
True): Provides a continuous stream of low-risk, high-reward entries aligned with the dominant order flow. It excels at identifying the exact termination points of corrective pullbacks (buying the dip or selling the rip). - Deactivating (
False): Limits the system exclusively to catching market tops and bottoms. Turning these off during a strong trend prevents the trader from participating in momentum pullbacks, drastically reducing trade frequency in highly liquid, trending environments.
- Activating (
- 👉 Core Trading Action: Essential for trend-following strategies and swing traders operating on higher timeframes (e.g., 4-Hour or Daily). Hidden divergence typically offers a significantly higher win rate than regular divergence because it executes in alignment with the institutional macro-path of least resistance.
4. Enhanced Mode
- Default Value:
False - Chart Logic: Applies a secondary, strict structural slope filter to the twin historical anchor peaks or troughs. When activated, it invalidates and suppresses regular or hidden signals if the internal geometry between the first and second historical swing points fails to maintain a specific directional trajectory.
- Trading Strategy & Trade-offs:
- Enabling (
True): Drastically tightens the statistical filter, leading to a massive drop in overall signal frequency. The signals that do pass through exhibit an exceptionally high probability of success, making this mode ideal for high-conviction, large-size executions. It effectively eliminates marginal or “ugly” patterns. - Disabling (
False): Operates on standard sequential divergence parameters, maximizing opportunity capture across all variations of double divergence structures. The trade-off is a heightened vulnerability to over-fitting, where minor structural micro-twists can generate false positives in choppy, sideways markets.
- Enabling (
- 👉 Core Trading Action: Enable (
True) if you are managing automated trading systems or multi-asset prop-firm accounts where drawdowns must be kept at strict minimums. Keep disabled (False) for active discretionary manual trading where you can visually filter out poor market context yourself.
Automation, System Alerts & UI Inputs
5. Enable Alert
- Default Value:
True - Chart Logic: Activates the real-time event listener and programmatic notification engine. When a double divergence structure is confirmed at the close of a bar, this variable dictates whether a high-priority system flag is raised.
- Trading Strategy & Trade-offs: Always keep active (
True) in live production environments. Ensure it is coupled with an optimized timeframe so alerts correspond to real execution intent rather than micro-noise.
6. Alert sound
- Default Value:
Alert1.wav - Chart Logic: Directs the program to pull a specific audio file from the native terminal sounds directory upon signal generation.
- 👉 Core Trading Action: Assign sharper, high-frequency alerts to counter-trend regular signals (which require immediate tactical attention) and softer, ambient alerts to trend-continuation hidden signals to prevent cognitive overload.
7. Show Char
- Default Value:
True - Chart Logic: Aligns the chart typography to print clear text abbreviations (“R” for Regular, “H” for Hidden) instead of basic geometric shapes beneath the confirmed bar. Highly recommended for discretionary traders running multi-asset screens where rapid visual parsing prevents execution delay.
8. Show Line
- Default Value:
True - Chart Logic: Governs the dynamic drawing engine that projects structural trendlines directly across the local price extremes (highs/lows) and the corresponding momentum indicator values.
- 👉 Core Trading Action: Keep enabled (
True) during retrospective backtesting and strategy optimization to ensure the swing boundaries align perfectly with your chart logic. Disable it in live trading execution screens if your workspace is already crowded with structural levels (VWAP, Moving Averages).
9. Only Show Last Signal Within Bars
Mastering the “OnlyShowLastSignalWithinBars” Setting in Double Divergence Indicators
- Default Value:
10 - Chart Logic: Operates as an automated cleanup filter that dynamically manages chart clutter. If a new double divergence signal fires within this specified number of bars from a previous signal of the same category, the system completely erases the historical lines and shapes associated with the older signal.
- 👉 Core Trading Action: Maintain a lower value (or
0) on historical backtesting profiles to thoroughly audit indicator clustering behavior. Raise this value to10–20on live execution screens to ensure a clean workspace.
10. Price Line Brush & UI Customization
- Price Line 1 / 2 Brush (Default:
Orange/Lime): Controls the visual coloring of the structural trendlines connecting the current bar to the first swing point (Line 1) and the first swing point to the second swing point (Line 2). - Price Line Dash Style (Default:
Solid): Dictates the visual texture (Solid,Dash,Dot) of the lines connecting structural price extremes. - Price Line Width (Default:
1): Adjusts the thickness of the printed trendlines on the price panel. - 👉 Core Trading Action: Customize these brushes to match your workspace background style. Use hot, contrasting solid lines for short-range momentum shifts, and muted, pastel shades for long-range, institutional trend changes.
Advanced Backtesting & Smoothing Parameters
11. Divergence Bar Range
- Default Value:
ShortRange - Chart Logic: Defines the internal boundaries for the swing engine, dictating the minimum and maximum distance allowed between historical anchor points. It operates via three structural settings:
ShortRange: Captures tight, immediate micro-swing structures to identify swift momentum shifts within localized price consolidations.MidRange: Filters for standard, intermediate swing structures to capture classic market swings and standard daily cycles.LongRange: Locks onto major macro-structural peaks and troughs, allowing the system to isolate foundational trend-reversal zones across extended time horizons.
- Trading Strategy & Trade-offs:
- Scaling Up (
LongRange): Tracks major institutional market turns and key swing failures across significant time horizons. Signal frequency drops substantially, but the macro reliability and risk-to-reward potential of each signal increase dramatically. Perfect for macro trend reversals. - Scaling Down (
ShortRange): Captures high-frequency micro-divergences within local consolidations. This provides rapid trade opportunities, but exposes the trader to sharp whipsaws when a market breaks out into a strong, sustained trend.
- Scaling Up (
- 👉 Core Trading Action: Match this parameter directly to your trading style: Use
ShortRangefor fast-paced intraday scalping,MidRangefor standard intraday day trading, andLongRangefor multi-day swing trading positions.
How to Optimize Filter Length and Divergence Lookback
12. Divergence Lookback
- Default Value:
5 - Chart Logic: Controls the lookback window used by the local extreme calculation engine to identify valid swing peaks and troughs.
- Trading Strategy & Trade-offs:
- Increasing This Value: Requires the market to sustain a swing high or low over a longer duration before it is accepted as a valid anchor point. This ensures that signals are only drawn from major, undeniable chart structures, drastically lowering false positives. The downside is increased signal lag.
- Decreasing This Value: Allows the engine to lock onto quick, nimble pivot points. While this gives you early entries at potential turning points, it frequently misinterprets minor, noise-driven consolidations as significant double divergence structures.
- 👉 Core Trading Action: Keep this perfectly balanced between
5and8. If you find yourself getting caught in multiple false breakouts during low-volatility market sessions, increase this setting to force the indicator to hunt for more significant structural anchors.
13. Filter Length
- Default Value:
5 - Chart Logic: Sets the smoothing period for the baseline tracking moving average. The indicator logic uses this average to confirm that momentum values are properly positioned above or below the baseline before a signal is finalized.
- Trading Strategy & Trade-offs:
- Increasing This Value: Creates a much more conservative, lag-resistant validation filter. It requires a clear, sustained breakout away from the baseline average to validate a signal, protecting you from entering trades during flat, choppy periods.
- Decreasing This Value: Pulls the validation baseline tight against the momentum line, resulting in highly sensitive and frequent signal generation. The risk is that the system will trigger signals during minor counter-trend pullbacks that lack real institutional volume or follow-through.
- 👉 Core Trading Action: Align this parameter with your chosen indicator Period input such as RSI. If you are utilizing a faster, more sensitive RSI setting (e.g., 9), scale down the filter length to
3to maintain a nimble system. If running a slow macro RSI (e.g., 21), scale the filter length up to8or10to ensure clean, smooth confirmations.
Frequently Asked Questions (FAQ)
Q: Why are my Double Div Pro signals slightly delayed compared to traditional oscillators?
A: This delay is controlled by the Wait 1 bar parameter (enabled by default). It requires the confirmation candle to close in the direction of the expected reversal ($Close \ge Open$ for bullish, $Close \le Open$ for bearish) to protect you from catching a falling knife. You can set this to False for instant, aggressive entries, though it increases the risk of false signals.
Q: What is the best parameter setting for high-frequency crypto scalping?
A: For ultra-fast crypto scalping, set Divergence Bar Range to ShortRange, change Divergence Lookback to 3 or 4, and consider disabling Wait 1 bar. This optimizes the indicator engine to catch swift, structural micro-swings, but requires tight manual risk management.
Q: How does the Enhanced Mode improve system drawdowns?
A: When Enhanced Mode is set to True, the algorithm applies a strict slope filter across the twin historical peaks or troughs. It eliminates marginal or messy structures, meaning it will print significantly fewer signals, but the ones that pass through carry a much higher statistical probability of success.