Join waitlist
Strategies / Pattern / RSI Divergence With Exit Levels

RSI Divergence With Exit Levels

Buys when a bullish RSI divergence appears with RSI(14) below 35, and sells short on the bearish mirror with RSI above 76. Longs close at RSI 80 and shorts close at RSI 54.1.

PatternLong & shortIntradayNasdaq 10030 min
n/aProfit factor
6,355Net profit EUR
72.26%Win rate
137Trades
-4,324Max drawdown
46.39Avg trade

Best run of 51. Nasdaq 100, 30 min, spread 3, from run sweeps:2026-10-07-NAS100-30m-opt.tsv:15.

Entry rules, long

  1. The previous pivot must be 5 to 60 bars earlier.
  2. On the confirmation bar, RSI(14) is below 35 and no long is open.

Entry rules, short

  1. The previous pivot must be 5 to 60 bars earlier, RSI(14) is above 76 on the confirmation bar, and no short is open.

Exit rules

  1. A short closes at market when RSI(14) falls to 54.1 or lower.

Test conditions

PeriodUp to 2026-10-07
InstrumentNasdaq 100, 30 minutes
Spread3 points
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-10-10

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best run30 minn/a 13772.266,355 EUR-4,324
USD/JPY4 hoursn/a 2171.43253,210 USD-188,420
USD/JPY5 minn/a 8970.79140,810 USD-85,800
EUR/USDDailyn/a 875.0051,832 USD-37,590
EUR/USD10 minn/a 10256.8626,290 USD-8,866
EUR/USD15 minn/a 10254.9025,673 USD-20,156
Nikkei 22510 minn/a 10863.8925,275 USD-7,554
Dow JonesDailyn/a 683.3323,153 EUR-7,942
Nikkei 22515 minn/a 12263.9322,355 USD-10,256
Silver4 hoursn/a 2588.0021,840 USD-7,883
Nikkei 2255 minn/a 10268.6319,911 USD-8,869
Silver30 minn/a 9965.6617,186 USD-12,192
Nikkei 2254 hoursn/a 1384.6214,135 USD-7,775
Silver1 hourn/a 8066.2513,921 USD-8,176
Dow Jones15 minn/a 9770.1012,508 EUR-11,098
Nikkei 2253 minn/a 11565.2211,846 USD-7,695
Dow Jones4 hoursn/a 683.3311,720 EUR-9,071
Nasdaq 1004 hoursn/a 2272.7310,532 EUR-4,478
Dow Jones1 hourn/a 3369.709,419 EUR-9,243
DAX 401 hourn/a 7367.128,876 EUR-5,761
Dow Jones2 minn/a 9468.098,722 EUR-2,399
Nasdaq 10015 minn/a 12770.088,510 EUR-4,337
Nikkei 2252 minn/a 10862.968,372 USD-6,931
DAX 40Dailyn/a 887.507,965 EUR-1,208
DAX 404 hoursn/a 1573.337,610 EUR-5,779
Nasdaq 1001 hourn/a 8172.847,557 EUR-5,940
DAX 4010 minn/a 10870.377,208 EUR-3,785
FTSE 100Dailyn/a 3100.006,827 EUR-3,226
DAX 4030 minn/a 12866.416,736 EUR-5,879
Brent Crude30 minn/a 7675.006,573 EUR-4,402
FTSE 10030 minn/a 10273.535,805 EUR-1,853
SilverDailyn/a 666.675,751 USD-5,040
Nasdaq 1005 minn/a 10362.145,049 EUR-2,909
Nasdaq 1002 minn/a 9462.774,621 EUR-2,062
S&P 5004 hoursn/a 2095.004,099 EUR-994
GBP/USD15 minn/a 10364.083,371 USD-1,934
S&P 50030 minn/a 11573.042,471 EUR-1,211
FTSE 10010 minn/a 8667.442,343 EUR-1,372
S&P 500Dailyn/a 6100.002,238 EUR-1,190
DAX 401 minn/a 7965.822,020 EUR-1,043
US Crude Oil1 minn/a 7759.741,849 EUR-1,373
S&P 5001 hourn/a 6170.491,701 EUR-1,211
FTSE 1005 minn/a 10670.751,698 EUR-922
S&P 50015 minn/a 12466.941,483 EUR-1,153
FTSE 1003 minn/a 8764.371,292 EUR-940
Gold1 hourn/a 7767.531,283 EUR-604
Gold3 minn/a 8067.50780 EUR-729
Gold2 minn/a 7262.50712 EUR-613
FTSE 1001 minn/a 9164.84592 EUR-476
S&P 5001 minn/a 5856.90459 EUR-203
Nasdaq 100Dailyn/a 1100.00229 EUR-210

Charts

Results by run

Top 10 of 51 runs. The full list is in the table above.

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// RSI Divergence With Exit Levels
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Pattern
// Direction: Long & short
// Timeframe tested: 30 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE lastpl = -1
ONCE prevplrsi = 0
ONCE prevpllow = 0
ONCE lastph = -1
ONCE prevphrsi = 0
ONCE prevphhigh = 0

myRsi = RSI[14](close)
rlo = lowest[5](myRsi)
rhi = highest[5](myRsi)

bull = 0
bear = 0

36 more lines: the entry and exit rules.

Setup

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.

Indicators used

RSI
Read this firstKnown weaknesses3 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 4,324 EUR is large next to the net profit of 6,355 EUR.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run RSI Divergence With Exit Levels in ProOrder?

Yes. The code is ProBuilder and runs as an automated ProOrder system. Backtest it on your own account with your own spread and position size before trading it live.

Which markets was it tested on?

It was tested on 51 market and timeframe combinations. The best run by trade count was Nasdaq 100, 30 minutes, with 137 trades.

How large was the drawdown?

The best run had a maximum drawdown of 4,324 EUR at the tested position size, against a net result of 6,355 EUR.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

Volatility Spike Regression Long

Best run on the same market, Nasdaq 100.

1.22 PF · 1,850 trades

Breakout Reversal

Also a pattern strategy.

n/a PF · 459 trades

Put your name on the ProRealAlgos waitlist to trade a tested portfolio instead of single strategies.

Copy trading on US indices is available to ProRealAlgos members as spots open.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs