MT4 Version: RSI Divergence MT4
MT5 Version:
Complete User Documentation — MT4 & MT5
1. OVERVIEW
The RSI Divergence indicator identifies potential trend reversals by analyzing divergences between price movements and the Relative Strength Index (RSI). It helps traders spot bullish and bearish divergences, indicating weakening momentum in prevailing trends. This tool is essential for traders looking to enhance their market entry and exit strategies.
Who Should Use It: Retail forex traders seeking to improve their technical analysis and identify potential reversal points.
Main Benefit: Gain insights into market reversals, allowing for more informed trading decisions and improved risk management.
2. INPUT PARAMETERS & SETTINGS
This product shares a common set of general input settings with all Indicator products in this series. The following sections are covered in the common guide: Alert Settings (popup alert, push notification, email alert) and Display Settings (arrow size, colors). For full details refer to the Common General Input Settings Guide. The sections below cover only the product-specific inputs unique to this product.
General Settings
This section controls the visual and functional aspects of the RSI Divergence indicator, allowing customization of its appearance and behavior.
| Setting Name | Type | Default Value | Description | Example |
|---|---|---|---|---|
| Show HH LH LL HL | bool | false | Enables the display of higher highs, lower highs, higher lows, and lower lows on the chart, helping traders visualize key price points. | true - Use this to enhance analysis of price structure during trend evaluations. |
| Min gap between rsi values | double | 10 | Sets the minimum difference required between RSI values for a divergence signal, allowing traders to filter out noise. | 10 - Ideal for traders wanting to ensure significant divergences are highlighted. |
| Line color | color | clrRed | Determines the color of the divergence lines on the chart, enhancing visibility according to trader preferences. | clrGreen - Use this for better contrast against a dark chart background. |
| Line style | ENUM | STYLE_DASH | See options explained below. | STYLE_SOLID - Choose this for a more pronounced visual representation of divergences. |
| Line width | int | 1 | Adjusts the thickness of the divergence lines, allowing for better visibility on different chart resolutions. | 2 - A thicker line can be beneficial in a crowded chart environment. |
| Background line | bool | false | Enables a background line for better context of the divergence signals, enhancing overall chart readability. | true - Useful for traders who prefer a more structured visual layout. |
| Highlight to move | bool | true | Allows users to select and move the lines on the chart, providing flexibility in analysis. | false - Disable this if you prefer a static chart setup. |
| Line's continuation to the right | bool | false | Extends the line to the right, providing a visual cue of potential future price action. | true - Useful for traders wanting to visualize future price movements based on current trends. |
| Hidden in the object list | bool | true | Hides the lines from the object list, reducing clutter for a cleaner workspace. | false - Keep visible if you prefer to manage all objects actively. |
| Priority for mouse click | long | 0 | Sets the click priority for the lines, influencing interaction with other chart objects. | 1 - Increase this if you have overlapping objects that interfere with clicks. |
Rsi Settings
This section defines the parameters specific to the RSI calculations, influencing how the indicator interprets market conditions.
| Setting Name | Type | Default Value | Description | Example |
|---|---|---|---|---|
| RSI Timeframe | ENUM | PERIOD_CURRENT | See options explained below. | PERIOD_H1 - Use this for a broader view of market trends over the hour. |
| RSI Period | int | 14 | Defines the number of periods used to calculate the RSI, affecting its sensitivity to price changes. | 21 - A longer period smooths out fluctuations, useful in volatile markets. |
| RSI price type | ENUM | PRICE_CLOSE | See options explained below. | PRICE_OPEN - Choose this to base RSI calculations on opening prices for a different perspective. |
| RSI upper ENTRY | double | 70 | Sets the upper threshold for the RSI, indicating overbought conditions when exceeded. | 75 - Adjust this for a more conservative approach to identifying overbought levels. |
| RSI lower ENTRY | double | 30 | Establishes the lower threshold for the RSI, signaling oversold conditions when breached. | 25 - A lower value can help capture more aggressive trading opportunities. |
RSI Timeframe — Options Explained
This setting allows traders to select the timeframe for the RSI calculations, impacting how the indicator reacts to price changes.
PERIOD_CURRENT: This option uses the current chart's timeframe, providing immediate signals based on the selected market conditions. Other timeframes can be selected for broader or more granular analysis.
RSI Price Type — Options Explained
This parameter defines which price data is used for calculating the RSI, affecting its sensitivity and signals.
PRICE_CLOSE: This option uses closing prices for calculations, which is standard for most traders. Other price types can be selected to suit different trading strategies.
3. HOW IT WORKS
Core Calculation & Logic
The RSI Divergence indicator calculates the Relative Strength Index (RSI) and identifies divergences between price movements and RSI trends. It helps traders spot potential trend reversals by highlighting instances where price and RSI diverge, indicating weakening momentum.
This indicator primarily monitors market conditions where price makes new highs or lows while RSI fails to do so, suggesting possible trend reversals. The mathematical basis lies in the RSI formula, which measures the speed and change of price movements.
BUY and SELL Signal Conditions
BUY Signal — When does it appear? A bullish divergence occurs when the price makes lower lows while the RSI makes higher lows, indicating a potential reversal to the upside.
SELL Signal — When does it appear? A bearish divergence is identified when the price makes higher highs while the RSI makes lower highs, suggesting a potential reversal to the downside.
Signal Confirmation: Traders will see arrows on the chart indicating buy (green) or sell (red) signals, accompanied by alerts if enabled.
Recommended Action: For confirmation, traders should look for additional signals on higher timeframes and place stop-loss orders below recent lows for buy signals or above recent highs for sell signals.
Step-by-Step Workflow
Step 1: Set Up the Indicator Install the RSI Divergence indicator on your trading platform and apply it to your desired chart.
Step 2: Configure Settings Adjust the RSI period, applied price, and other settings according to your trading strategy.
Step 3: Monitor Signals Observe the arrows on the chart for potential buy or sell signals based on divergence.
Step 4: Confirm with Higher Timeframes Check higher timeframes for additional confirmation before executing trades.
Step 5: Manage Risk Place stop-loss orders according to your risk management strategy to protect your capital.
Step 6: Review Performance Analyze the performance of trades taken based on the signals to refine your strategy.
Step 7: Adjust Settings as Needed Modify the indicator settings based on your trading results and changing market conditions.
4. USAGE TIPS & BEST PRACTICES
Utilizing the RSI Divergence indicator effectively can enhance trading decisions.
| Feature | Description |
|---|---|
| Show HH LH LL HL | This option displays higher highs, lower highs, lower lows, and higher lows on the chart, aiding in trend analysis. |
| Minimum RSI Divergence | Sets the minimum gap between RSI values to identify significant divergences, helping to filter out noise. |
| Line Color | Allows customization of the line color for better visibility and personal preference on the chart. |
| Line Style | Choose the style of the line (solid, dashed, etc.) to enhance chart readability based on trader preference. |
| Alerts | Enables alerts for buy/sell signals, ensuring traders do not miss potential trading opportunities. |
Quick Start Guide
Follow these steps to get started in under 5 minutes:
- Install the Indicator: Download and install the RSI Divergence indicator on your trading platform.
- Apply to Chart: Open a chart of your preferred asset and apply the indicator.
- Adjust Settings: Configure the RSI period and other settings according to your strategy.
- Enable Alerts: Turn on alerts to receive notifications for potential signals.
- Monitor for Signals: Watch for buy and sell arrows indicating divergences.
- Confirm with Higher Timeframes: Check higher timeframes for additional confirmation before trading.
- Execute Trades: Enter trades based on confirmed signals and manage risk appropriately.
You may also be interested in these related products:
Installation Guide for MQL Products | Updating Purchased MQL Products on MT4/MT5 | General Troubleshooting Guide
Check all my products: https://www.mql5.com/en/users/biswait50/seller
Contact me for support: https://www.mql5.com/en/users/biswait50


