Join waitlist
Strategies / Pattern / RSI Divergence Pivot Reversal

RSI Divergence Pivot Reversal

Buys when RSI(9) and price form a bullish divergence between two confirmed pivot lows, including the hidden variant. Exits when RSI(9) crosses above 80 or a bearish divergence appears between pivot highs.

PatternLong onlyIntradayNasdaq 10015 min
n/aProfit factor
11,026Net profit EUR
66.40%Win rate
1,631Trades
-5,152Max drawdown
6.76Avg trade

Best run of 38. Nasdaq 100, 15 min, spread 3, from run sweeps:2026-10-11-NAS100-15m-opt.tsv:5.

Entry rules, long

  1. Hidden bullish divergence: price makes a higher pivot low while RSI(9) makes a lower one, 5 to 60 bars apart.
  2. Pivots are confirmed 3 bars after they form, and buys are taken only when no long is open.

Exit rules

  1. Regular bearish divergence: price makes a higher pivot high while RSI(9) makes a lower one, 5 to 60 bars apart.

Test conditions

PeriodUp to 2026-10-11
InstrumentNasdaq 100, 15 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-11

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best run15 minn/a 1,63166.4011,026 EUR-5,152
USD/JPY4 hoursn/a 28965.74458,140 USD-234,940
EUR/USD3 minn/a 1,36756.1166,989 USD-35,801
EUR/USDDailyn/a 10764.4958,607 USD-52,702
Nikkei 22515 minn/a 1,54664.6238,567 USD-11,776
Nikkei 225Dailyn/a 9270.6538,474 USD-18,398
Nikkei 22510 minn/a 1,53164.1428,437 USD-9,059
Dow JonesDailyn/a 14672.6028,162 EUR-11,142
Nikkei 2254 hoursn/a 23464.5327,096 USD-13,011
SilverDailyn/a 9660.4225,492 USD-13,965
Nikkei 2251 hourn/a 83065.3024,242 USD-12,816
Dow Jones15 minn/a 1,28366.8023,884 EUR-7,822
Nikkei 22530 minn/a 1,58063.3521,450 USD-9,328
Nikkei 2255 minn/a 1,48362.1018,069 USD-10,079
Dow Jones10 minn/a 1,48965.7515,276 EUR-5,173
Nasdaq 1004 hoursn/a 32669.6314,837 EUR-4,450
Dow Jones1 hourn/a 35870.3913,772 EUR-9,893
Nasdaq 100Dailyn/a 11478.0713,609 EUR-5,520
Dow Jones5 minn/a 1,47964.4411,549 EUR-4,816
Nasdaq 10030 minn/a 1,60464.5311,534 EUR-6,128
Nasdaq 1001 hourn/a 1,08166.6010,823 EUR-6,245
Dow Jones30 minn/a 64168.8010,085 EUR-8,797
Nasdaq 1005 minn/a 1,52466.868,909 EUR-3,726
DAX 404 hoursn/a 26968.778,366 EUR-4,135
FTSE 100Dailyn/a 8464.297,545 EUR-2,843
DAX 40Dailyn/a 14272.547,199 EUR-6,034
Brent Crude4 hoursn/a 15269.746,460 EUR-4,947
FTSE 1004 hoursn/a 23367.385,441 EUR-3,146
S&P 5004 hoursn/a 28072.144,700 EUR-1,181
DAX 405 minn/a 1,46264.714,103 EUR-3,437
S&P 500Dailyn/a 15872.783,133 EUR-1,238
S&P 50010 minn/a 1,55065.162,402 EUR-895
S&P 5001 hourn/a 1,05068.192,306 EUR-1,554
Gold1 hourn/a 98065.822,292 EUR-1,023
Gold10 minn/a 1,50463.562,230 EUR-1,262
Gold4 hoursn/a 28171.171,831 EUR-1,125
GoldDailyn/a 13170.991,674 EUR-1,408
S&P 50030 minn/a 1,54064.421,541 EUR-1,494

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// RSI Divergence Pivot Reversal
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Pattern
// Direction: Long only
// Timeframe tested: 15 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE lastplbar = -1
ONCE lastpllow = 0
ONCE lastplosc = 0
ONCE lastphbar = -1
ONCE lastphhigh = 0
ONCE lastphosc = 0
ONCE dist = 0

osc = RSI[9](close)
pl = 0
ph = 0
bull = 0
hbull = 0
bear = 0

50 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 weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • 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 Pivot Reversal 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 38 market and timeframe combinations. The best run by trade count was Nasdaq 100, 15 minutes, with 1,631 trades.

How large was the drawdown?

The best run had a maximum drawdown of 5,152 EUR at the tested position size, against a net result of 11,026 EUR.

Does it trade long, short or both?

It only takes long trades.

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

See how ProRealAlgos combines strategies like this into one automated portfolio.

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