VI

RSI Divergence Forex Robot

EA finds divergence between price and RSI: regular divergence to catch reversals (default), hidden divergence to trade with the trend, overbought/oversold filter; stop loss beyond the swing that forms the divergence, take profit by R:R.

Robot Forex MT4MT5 GD-8818v1.0 Lifetime 7-day trial 24/11/2026
RSI 14 divergence · H1–RSI of last closed candle41.6Latest low · RSI2631.240 · 28.7Latest high · RSI2668.900 · 63.2Latest divergenceRegular bullish · 24/11 07:00RSI zone filterNo filterRegular divergenceOnHidden divergenceOffOpen positionBUY 1 · SELL 0Waiting for RSI divergence on H111:00 Opened BUY: regular bullish divergence (RSI 24.9 -> 28.7)
The EA panel on a MetaTrader chart (sample figures, default settings). The EA also draws divergence lines joining 2 highs or 2 lows on the chart. The panel can be dragged; click the top-right button to collapse it.
Companion indicator, free
GD-8818 1.00 (XAUUSD,H1)
CommonInputs
VariableValue
ab========================================GENERAL SETTINGS
01Magic number (per product code)
01Max spread to open orders (points, 0 = no limit)
abTrading hours (server time), separate ranges with commas
Timeframe
ab========================================ORDER SETTINGS
½Volume (lot)
Stop loss
01Extra distance beyond the high/low (points)
01Stop Loss in points (0 = none)
½ATR stop loss: ATR 14 multiplier
Take profit
½R:R ratio (take profit = ratio x stop distance)
01Take Profit in points (0 = none)
01Min distance between 2 same-direction orders (points, 0 = no limit)
Close opposite orders on a new signal
ab========================================ORDER LIMITS
01Max total BUY + SELL orders (0 = no limit)
01Max BUY orders (0 = no limit)
01Max SELL orders (0 = no limit)
At most 1 order per candle (of the timeframe)
ab========================================RSI AND SWING SETTINGS
01RSI period
01Candles on each side to confirm a high/low
01Minimum distance between 2 highs/lows (candles)
01Maximum distance between 2 highs/lows (candles)
Accept regular divergence only when RSI is overbought/oversold
½Overbought level
½Oversold level
Draw divergence lines on the chart
ab========================================ENTRY SCENARIOS
Regular divergence: lower price low, higher RSI low BUY (highs opposite SELL)
Hidden divergence: higher price low, lower RSI low BUY (highs opposite SELL)
Trade direction
ab========================================BREAKEVEN AND TRAILING STOP
Move Stop Loss to breakeven
01When the order is in profit by (points)
01Stop Loss beyond entry price (points, to cover costs)
Trailing Stop: Stop Loss follows price
01Start when the order is in profit by (points)
01Keep Stop Loss away from price (points)
01Minimum step (points)
ab========================================OTHER SETTINGS
Phone notification when orders open / close
LoadSave

How the EA works

The EA computes RSI 14 and finds highs and lows on closed candles of the trading timeframe (default H1). Each time a new low (high) is confirmed, the EA compares it with the previous low (high): price and RSI moving in opposite directions is a divergence, a sign that momentum is fading.

705030RSI 14BUYSELLSELLBUYRSI 14Bullish divergenceBearish divergenceEntry point
The same H1 price segment, with RSI 14 (Wilder) computed exactly as the EA does; highs and lows are the highest, lowest candle within 3 candles on each side. Pick a scenario: the green line joins 2 lows (bullish divergence), the red line joins 2 highs (bearish divergence), on both price and RSI; solid is regular divergence, dashed is hidden divergence. The large gold dot is where the EA opens the trade, at the start of the candle after the second high or low is confirmed by 3 candles.

Entry scenarios

  • 1. Regular divergenceDefault: YES
    • BUYLower price low, higher RSI low
    • SELLHigher price high, lower RSI high
  • 2. Hidden divergenceDefault: NO
    • BUYHigher price low, lower RSI low
    • SELLLower price high, higher RSI high

When there is a signal

  1. 1Check conditions

    A new order opens only when all of these hold.

    • Within 00:00 - 23:59 (server time), spread no more than 250 points
    • Fewer than 10 orders, at most 5 BUY and 5 SELL
    • At most 1 order per H1 candle
  2. 2Open the order

    Stop loss beyond the swing that formed the divergence, take profit by R:R.

    • Volume 0.01 lot
    • Stop loss 100 points below the low (above the high)
    • Take profit at 2 times the stop distance
  3. 3Close trades

    Trades close at the stop loss or take profit set.

    • Break even and Trailing Stop can be added if you want
    • Close opposite trades on a new signal: turn on if wanted
  • The EA computes RSI and finds highs and lows itself, no indicator needs to be attached. Signals use closed candles.
  • A low or high is confirmed only after 3 candles, so the EA enters 3 candles after it; in return signals never repaint.
  • Regular divergence suits markets about to reverse; hidden divergence suits strong trends. Turn on the zone filter to accept regular divergence only in overbought or oversold zones.
  • To see divergence lines and signals on the chart without auto trading: RSI divergence indicator CB-8918 (free).
Finds divergence for you

The EA identifies highs and lows on price and compares them with RSI at the same points. No need to hunt for divergence by eye.

Regular divergence catches reversals

Price makes a lower low while RSI makes a higher low: BUY; price makes a higher high while RSI makes a lower high: SELL.

Hidden divergence with the trend

Turn on to trade with a trend that is still strong after a pullback: higher price low, lower RSI low, and the reverse.

Overbought/oversold filter

Turn on to accept regular divergence only when RSI is already below 30 or above 70, skipping weaker signals.

Clear stop loss and take profit

Stop loss just beyond the swing that formed the divergence, take profit at 2 times the stop distance (R:R adjustable).

Divergence lines and panel on the chart

The EA draws lines joining the 2 highs or 2 lows that form a divergence. A draggable panel shows RSI, the latest high and low, and the latest divergence.

Overview

RSI Divergence Forex Robot (code GD-8818) is an EA for MetaTrader 4 and MetaTrader 5 that trades divergence between price and the RSI indicator. Divergence happens when price and RSI move in opposite directions: price making a lower low while RSI makes a higher low shows selling pressure fading, often ahead of a reversal.

The EA computes RSI 14, finds highs and lows on price (highest, lowest within 3 candles on each side) and compares each new high or low with the previous one 5 to 50 candles back. There are 2 scenarios switched on or off separately: regular divergence (default) to catch reversals and hidden divergence to trade with the trend; turn on the zone filter to accept regular divergence only when RSI is below 30 or above 70. Stop loss goes beyond the swing that formed the divergence, take profit at 2 times the stop distance.

Default settings are made for gold XAUUSD. On brokers quoting gold with 3 decimals (e.g. 2650.125), 1 gold price unit = 1000 points: an extra 100 points beyond the low is 0.1. On brokers with 2 decimals, 1 unit = 100 points, so divide point settings by 10.

Example with default settings on H1: the previous low is at 2634.800 with RSI 24.9, price falls further to a new low of 2631.240 at 07:00 but RSI only drops to 28.7. After 3 candles the 07:00 low is confirmed; at 11:00 the EA opens BUY 0.01 lot at about 2637.500, stop loss 2631.140 (100 points below the low, 6.360 away), take profit twice that distance at 2650.220.

The chart panel shows RSI of the last closed candle, the latest low and high with RSI, the latest divergence, active scenarios and open trades. One single file runs a 7-day trial on demo accounts and runs live with a license. Every trade carries the comment "www.HoangTrong.com", default Magic number 8818.

Changelog

Version 1.024/11/2026

First release of RSI Divergence Forex Robot.

  • Finds divergence for you
  • Regular divergence catches reversals
  • Hidden divergence with the trend
  • Overbought/oversold filter
  • Clear stop loss and take profit
  • Divergence lines and panel on the chart

FAQ

Is the trial version different from the full version?

No. Each product has a single file. Without a license it runs for 7 days on a demo account. Buy a license for your account ID and it runs on your live account, no new download needed.

What is WebRequest and why does the EA need it?

WebRequest is the permission that lets an EA connect to an address on the internet. HoangTrong.com EAs use it to activate the license, then check themselves offline. See how to enable WebRequest.

How do I activate the license?

Buy a license for the correct MetaTrader account ID, then click Activation in the EA. You don't need to enter or store any key. After reinstalling, just activate again.

What if I want to use the EA on another account ID?

A license is permanently tied to the account ID it was bought for. To use the EA on another ID, buy an extra ID right on the product page: if you already own the license, each extra ID costs only 100,000 VND.

Multi-account licenses

Extra IDs only 100,000 VND/ID

Each license includes 1 account ID. Each extra ID is only 100,000 VND, for both retail and COMBO prices, valid forever.

  1. What is an account ID?It's your MT4/MT5 login number, shown in MetaTrader and in the email the broker sends when you open the account.
  2. Buy several IDs at onceEnter IDs separated by commas, for example 12345678, 87654321. Up to 20 IDs per order.
  3. Add IDs laterOnce you have a license, come back to this page, enter the new ID and click Buy a license. You're only charged 100,000 VND per ID, not the license price again.
Buying extra IDs: sign in firstSign in with the website account you bought the license with to get the 100,000 VND per ID price. With a different website account, the system cannot see your license and charges the full license price.
Example1 ID3 ID
Retail price500,000 VND700,000 VND
COMBO price5,000,000 VND5,200,000 VND
Add IDs later100,000 VND per ID (signed in)

Besides RSI Divergence Forex Robot

Other products from HoangTrong.com

View all products
CB-8918IndicatorsMT4MT5

RSI Divergence Indicator

Finds divergence between price and RSI, draws lines joining 2 highs or 2 lows and BUY, SELL arrows on regular or hidden divergence, sends phone alerts.

  • Draws RSI divergence lines
  • Regular and hidden divergence
  • Alert popup, sound and phone notifications
LicensingFree with any EA
Details
GD-8801Indicator-basedMT4MT5

RSI Overbought Oversold Forex Robot

The EA opens BUY and SELL orders on RSI signals in the overbought and oversold zones, with built-in stop loss, take profit, break-even and Trailing Stop.

  • 3 RSI entry scenarios, each can be switched on or off
  • Stop loss, take profit, break-even and Trailing Stop
  • Limits on order count, trading hours, spread, 1 order per candle
Retail price500,000 VND
Details
GD-8805Indicator-basedMT4MT5

Multi-Timeframe RSI Forex Robot

EA opens orders on RSI overbought and oversold signals, filters signals with the RSI of 5 timeframes switched on or off separately, multi-timeframe RSI table right on the chart.

  • 3 RSI entry scenarios, same as GD-8801
  • 5 RSI filter timeframes, each with its own inputs and on/off
  • Multi-timeframe RSI table on the chart, unused filters clearly marked
Retail price500,000 VND
Details

Need a different feature?

Order a custom EA built on your strategy, priced per feature.