ShortRange (2 to 7 bar swing horizons), MidRange (8 to 13 bar swing horizons), or LongRange (14 to 19 bar swing horizons).Enhanced = true) to enforce strict geometric peak and trough comparisons across consecutive swings, helping eliminate ambiguous signals in sideways markets.Wait1 Mode)Wait1 is enabled, the indicator requires bar closure and bullish or bearish candle validation before drawing signals or triggering alerts. Once placed on your chart, historical signals remain completely fixed.OnlyShowLastSignalWithinBars parameter, which automatically hides historical signal drawings once they exceed a set bar count.R for Regular, H for Hidden) or standard directional arrow markers (ShowChar).
| Input Parameter | Data Type | Default Value | Description |
| Wait1 | Boolean | true |
Requires bar closure and confirmation before plotting signals. |
| ShowRegularBullish | Boolean | true |
Enables or disables Regular Bullish setup tracking. |
| ShowHiddenBullish | Boolean | true |
Enables or disables Hidden Bullish setup tracking. |
| ShowRegularBearish | Boolean | true |
Enables or disables Regular Bearish setup tracking. |
| ShowHiddenBearish | Boolean | true |
Enables or disables Hidden Bearish setup tracking. |
| Enhanced | Boolean | false |
Enables strict multi-swing geometric filter checks. |
| EnableAlert | Boolean | true |
Master toggle for platform alerts and terminal logging. |
| ShowChar | Boolean | true |
Displays text tags (R/H); sets to arrows when false. |
| ShowLine | Boolean | true |
Draws connecting trendlines on price chart & sub-window. |
| OnlyShowLastSignalWithinBars | Integer | 10 |
Limits maximum visible historical signals on the chart. |
| PriceLine1Color | Color | clrOrange |
Primary connecting trendline color. |
| PriceLine2Color | Color | clrLime |
Secondary connecting trendline color. |
| PriceLineStyle | Line Style | STYLE_SOLID |
On-chart trendline drawing style. |
| PriceLineWidth | Integer | 1 |
Plotted trendline thickness setting. |
| ShowAlertMessageBox | Boolean | true |
Toggles MT5 pop-up alert dialog boxes. |
| RsiPeriod | Integer | 14 |
Calculation period for underlying RSI line. |
| RsiPrice | Price Enum | PRICE_CLOSE |
Applied price source (Close, Open, High, Low, etc.). |
| DivergenceBarRange | Enum | ShortRange |
Swing horizon mode (ShortRange, MidRange, LongRange). |
| DivergenceLookback | Integer | 5 |
Historical lookback window for momentum extrema. |
| FilterLength | Integer | 5 |
Moving average filter length for internal value smoothing. |
| ObjectPrefix | String | "RSI2DIVpro" |
Unique graphic prefix to prevent object name conflicts. |
Visit the Technical Inputs Manual: Double Divergence Pro for full parameter tuning.
Read the master guide on the Double Divergence Indicator Series.

MQL5/Indicators.RsiPeriod, select your ideal DivergenceBarRange based on your trading style, and configure alert preferences.

Copyright @ 2026 Patternsmart - All rights reserved
This website is for educational and informational
purposes only and should not be considered a solicitation to buy or sell a
futures contract or make any other type of investment decision. It's not recommended to use any single indicator as sole evaluation criteria. The companies
and services listed on this website are not to be considered a recommendation
and it is the reader's responsibility to evaluate any product, service, or
company. patternsmart is not responsible for the accuracy or content of any
product, service or company linked to on this website.
Futures trading
contains substantial risk and is not for every investor.Please read the following risk disclosure before considering the
trading of this product:
Futures Risk Disclosure. An investor could
potentially lose all or more than the initial investment. Risk capital is money
that can be lost without jeopardizing ones financial security or life style.
Only risk capital should be used for trading and only those with sufficient risk
capital should consider trading. Past performance is not necessarily indicative
of future results.
Trading stocks, options, futures and forex involves
speculation, and the risk of loss can be substantial.Investor must consider all
relevant risk factors, including their own personal financial situation, before
trading. Trading foreign exchange on margin carries a high level of risk, as
well as its own unique risk factors. Forex investments are subject to
counter-party risk, as there is no central clearing organization for these
transactions. Please read the following risk disclosure before considering the
trading of this product:
Forex Risk Disclosure. Spreads, Straddles, and other multiple-leg option
strategies can entail substantial transaction costs, including multiple
commissions, which may impact any potential return. Options are not suitable for
all investors as the special risks inherent to options trading may expose
investors to potentially rapid and substantial losses. Prior to trading options,
you should carefully read
Characteristics and Risks of Standardized Options.
patternsmart.com
will not be held liable for the loss of money or any damage caused from relying
on the information on this site. Any investment decision you make in your account is solely your responsibility.
TESTIMONIAL DISCLOSURE: TESTIMONIALS APPEARING ON OUR SITE MAY NOT BE REPRESENTATIVE OF THE EXPERIENCE OF OTHER CLIENTS OR CUSTOMERS AND IS NOT A GUARANTEE OF FUTURE PERFORMANCE OR SUCCESS.