Select Language

【MT4/MT5】RSI Divergence Indicator

  • Overview
  • How to install
  • How to set up
search

Display:

Technical Sub-chart
MT4 MT5

download download download

This indicator automatically detects divergences by comparing price highs and lows with RSI highs and lows, and displays both regular and hidden divergences on the price chart and RSI subwindow, supporting trading decisions on potential reversals and trend continuation.

download
Download for MT4 (Vr. 1.00)
download
Download for MT5 (Vr. 1.00)

download download download

ComingSoon
eaChart
eaChart
eaChart

Features: RSI divergence notifications

Identify potential reversals with RSI divergence

It identifies pivot highs and lows for both price and RSI, then automatically detects combinations where divergence occurs. Both bullish and bearish RSI divergences are displayed on both the price chart and the RSI subwindow, allowing you to clearly see which highs and lows to compare and to avoid missing potential market reversals.

Regular divergence example Regular divergence example

Confirm trend continuation with hidden divergence

Hidden RSI divergences, which occur from different price and RSI combinations than regular divergences, are also detected automatically. By indicating potential trend continuation, they help determine whether a pullback is temporary and support better entry timing.

Hidden divergence example Hidden divergence example

Filter signals with RSI zone & trend filters

Monitoring signals across multiple symbols and timeframes can be overwhelming. Use the RSI Zone Filter to limit signals to overbought and oversold zones, or the Trend Filter to show only signals aligned with the moving average direction, helping you focus on the most relevant ones.

RSI zone trend filter RSI zone trend filter

View the main chart and RSI subwindow together

Detected divergences are displayed as paired lines on both the price chart and the RSI, making it easy to see which highs and lows were used. Verify the basis of each signal before incorporating it into your trading decisions.

Paired lines on the price chart and RSI Paired lines on the price chart and RSI

Get notified of divergences

Once an RSI divergence is confirmed, you can receive alerts via pop-up, push notification, or email without having to keep multiple symbol and timeframe charts open and monitored. Each notification includes details such as the symbol, timeframe, and RSI value, so you can quickly identify which chart to check.

Divergence alert example
How to install
How to set up

How to install

To use the RSI Divergence Indicator, install the "[Myforex] RSI Divergence Indicator" file on MetaTrader4/MetaTrader5.

Step 1

Click "File" from the menu bar at the top of MetaTrader4/MetaTrader5 and choose "Open Data Folder".

Open data folder

Step 2

After opening the data folder, double-click the folder "MQL5 (MQL4 for MetaTrader4)" in it to open it.

Open MQL5 folder

Step 3

Double-click to open the "Indicators" folder in the MQL5 file.

Open Indicators folder

Step 4

Save the "[Myforex] RSI Divergence Indicator" in the "Indicators" folder.

Save indicator

Step 5

Once the file is in the folder, right-click "Indicators" in the Navigator and choose "Refresh" from the displayed menu.

Refresh Indicator

Step 6

After checking that the RSI Divergence Indicator is shown in the "Indicators" of the Navigator, apply it to a chart by double-clicking or dragging and dropping.

Apply the RSI Divergence Indicator Apply the RSI Divergence Indicator

Step 7

Refer to the "How to set up" page to make further settings in the "Inputs" tab, then click "OK".

Overview
How to set up

How to set up

After applying the indicator to the chart, set the parameters according to your style.

Step 1

First, open the "Inputs" tab.

Open Inputs tab

Step 2

Set the parameters as follows.

General Settings

Item name Description
Divergence mode Switch between five detection modes: Regular_Only, Hidden_Only, Regular_And_Hidden, RSI_Zone_Filter, and Trend_Filter_Hidden.
RSI period Specifies the RSI calculation period.
Applied price Selects the price type used for RSI calculation.
Overbought level Set the RSI overbought level. This level is also used by the RSI Zone Filter.
Oversold level Set the RSI oversold level. This level is also used by the RSI Zone Filter.
Middle level Specifies the middle line in the RSI subwindow.
Divergence mode
Switch between five detection modes: Regular_Only, Hidden_Only, Regular_And_Hidden, RSI_Zone_Filter, and Trend_Filter_Hidden.
RSI period
Specifies the RSI calculation period.
Applied price
Selects the price type used for RSI calculation.
Overbought level
Set the RSI overbought level. This level is also used by the RSI Zone Filter.
Oversold level
Set the RSI oversold level. This level is also used by the RSI Zone Filter.
Middle level
Specifies the middle line in the RSI subwindow.

Detection Settings

Item name Description
Left pivot bars Specifies the number of bars to the left used for detecting pivot points (high/low reversals).
Right pivot bars Specifies the number of bars to the right used for detecting pivot points. Pivot points will not be confirmed until these bars have closed.
Minimum pivot distance Sets the minimum bar distance between two pivots to be compared. Divergence will not be detected between pivots that are too close together.
Maximum pivot distance Sets the maximum bar distance between two pivots to be compared. Divergence will not be detected between pivots that are too far apart.
Maximum calculation bars Sets the maximum number of past bars considered for divergence detection.
Use confirmed pivot Enable this option to use only confirmed pivots for divergence detection and prevent signals from disappearing. When disabled, unconfirmed pivots are also used for detection, which may cause signals to disappear as conditions change.
Minimum signal interval Specifies the minimum number of bars required between signals in the same direction (bullish or bearish). Signals in the opposite direction are not affected.
Left pivot bars
Specifies the number of bars to the left used for detecting pivot points (high/low reversals).
Right pivot bars
Specifies the number of bars to the right used for detecting pivot points. Pivot points will not be confirmed until these bars have closed.
Minimum pivot distance
Sets the minimum bar distance between two pivots to be compared. Divergence will not be detected between pivots that are too close together.
Maximum pivot distance
Sets the maximum bar distance between two pivots to be compared. Divergence will not be detected between pivots that are too far apart.
Maximum calculation bars
Sets the maximum number of past bars considered for divergence detection.
Use confirmed pivot
Enable this option to use only confirmed pivots for divergence detection and prevent signals from disappearing. When disabled, unconfirmed pivots are also used for detection, which may cause signals to disappear as conditions change.
Minimum signal interval
Specifies the minimum number of bars required between signals in the same direction (bullish or bearish). Signals in the opposite direction are not affected.

Zone/trend filter settings

Item name Description
RSI zone margin Specifies the overbought/oversold threshold margin used in RSI_Zone_Filter mode.
Trend moving average period Specifies the moving average period used in Trend_Filter_Hidden mode.
Trend moving average method Select the moving average calculation method used to identify trends.
Trend moving average applied price Select the moving average price type used to identify trends.
RSI zone margin
Specifies the overbought/oversold threshold margin used in RSI_Zone_Filter mode.
Trend moving average period
Specifies the moving average period used in Trend_Filter_Hidden mode.
Trend moving average method
Select the moving average calculation method used to identify trends.
Trend moving average applied price
Select the moving average price type used to identify trends.

Display Settings

Item name Description
Show RSI line Enable this option to display the RSI line in the RSI subwindow.
Show RSI levels Enable this option to display the overbought/oversold/middle lines.
Show divergence lines Enable this option to display divergence lines connecting the RSI pivots in the RSI subwindow.
Show price-side divergence lines on the main chart Enable this option to display divergence lines connecting the price pivots in the main chart. When enabled, the RSI divergence line and the corresponding price divergence line are displayed as a pair.
Auto disable divergence lines on M1 Enable this option to automatically hide divergence lines in the RSI subwindow on M1, helping prevent display lag. Lines on the main chart are not affected by this option.
Show arrows Display arrows at divergence points.
Show labels Display labels to indicate divergence types.
Label font size Set the label font size.
Show RSI line
Enable this option to display the RSI line in the RSI subwindow.
Show RSI levels
Enable this option to display the overbought/oversold/middle lines.
Show divergence lines
Enable this option to display divergence lines connecting the RSI pivots in the RSI subwindow.
Show price-side divergence lines on the main chart
Enable this option to display divergence lines connecting the price pivots in the main chart. When enabled, the RSI divergence line and the corresponding price divergence line are displayed as a pair.
Auto disable divergence lines on M1
Enable this option to automatically hide divergence lines in the RSI subwindow on M1, helping prevent display lag. Lines on the main chart are not affected by this option.
Show arrows
Display arrows at divergence points.
Show labels
Display labels to indicate divergence types.
Label font size
Set the label font size.

Color Settings

Item name Description
Bull regular color Specifies the color of arrows and lines for bullish regular divergences.
Bear regular color Specifies the color of arrows and lines for bearish regular divergences.
Bull hidden color Specifies the color of arrows and lines for bullish hidden divergences.
Bear hidden color Specifies the color of arrows and lines for bearish hidden divergences.
RSI line color Specifies the color of the RSI line in the RSI subwindow.
Line width Specifies the width of divergence lines.
Line style Specifies the line types of divergence lines.
Arrow size Specifies the arrow size used to signal divergences.
Arrow position mode Choose whether to display arrows at the actual RSI pivot points or position them near the overbought/oversold levels.
Arrow RSI offset Specifies the offset distance between the arrows and the RSI line.
Bull regular color
Specifies the color of arrows and lines for bullish regular divergences.
Bear regular color
Specifies the color of arrows and lines for bearish regular divergences.
Bull hidden color
Specifies the color of arrows and lines for bullish hidden divergences.
Bear hidden color
Specifies the color of arrows and lines for bearish hidden divergences.
RSI line color
Specifies the color of the RSI line in the RSI subwindow.
Line width
Specifies the width of divergence lines.
Line style
Specifies the line types of divergence lines.
Arrow size
Specifies the arrow size used to signal divergences.
Arrow position mode
Choose whether to display arrows at the actual RSI pivot points or position them near the overbought/oversold levels.
Arrow RSI offset
Specifies the offset distance between the arrows and the RSI line.

Notification Settings

Item name Description
Enable alert Receive pop-up notifications on MT4/5 when divergence is confirmed.
Enable push notification Receive push notifications on mobile app when divergence is confirmed. MT4/5 push notification settings must be configured first.
Enable email notification Receive email alerts at your registered address when divergence is confirmed. MT4/5 email settings must be configured first.
Enable alert
Receive pop-up notifications on MT4/5 when divergence is confirmed.
Enable push notification
Receive push notifications on mobile app when divergence is confirmed. MT4/5 push notification settings must be configured first.
Enable email notification
Receive email alerts at your registered address when divergence is confirmed. MT4/5 email settings must be configured first.
caution Note on Divergence Line Display

On MT4, divergence lines are not displayed on the price chart when using the weekly (W1) or monthly (MN1) timeframe. Divergence lines in the RSI subwindow are displayed as usual. This limitation does not apply to the MT5 version.

Confirmed divergences remain unchanged during regular price movement. However, reloading historical data, reapplying the indicator, or changing parameters, symbols, or timeframes could cause recalculation and changes to the display.

Overview
How to install

Date

Created

 : 2026.08.19

Update

Last updated

 : 2026.08.25


Disclaimer:arw

All information and content provided on this website is provided for informational purposes only and is not intended to solicit any investment. Although all efforts are made in order to ensure that the information is correct, no guarantee is provided for the accuracy of any content on this website. Any decision made shall be the responsibility of the investor and Myforex does not take any responsibility whatsoever regarding the use of any information provided herein.

The copyright in our content belongs to us.

We welcome your use of our content within appropriate limits, including use through our sharing features, sharing on social media, and quotation. However, please refrain from unauthorized reuse, including but not limited to commercial use, reproduction with modification of content, or reproduction on websites that compete with us. We may take necessary measures, including but not limited to deletion of the relevant content, if we consider that the content has been used in an inappropriate or unauthorized manner.

  • Facebook
  • Twitter
  • LINE

Myforex uses cookies to improve the convenience and functionality of this website. This website may include cookies not only by us but also by third parties (advertisers, log analysts, etc.) for the purpose of tracking the activities of users. Cookie policy

I agree
share
Share
Cancel
Not logged in
close

To download the indicator, you need to login to your Myforex member account.

Please login and try again.