Join waitlist
Strategies / Mean reversion / Fair Value Gap RSI Reversion

Fair Value Gap RSI Reversion

Buys after a bullish bar whose high sits below the low from 12 bars earlier, when RSI(14) is below 20 and the close is under both EMAs. Shorts the mirror setup with RSI above 80, and each trade has a 4 times ATR(14) target.

Mean reversionLong & shortSwingSilver1 hour
12.02Profit factor
552,414Net profit USD
77.42%Win rate
155Trades
-35,553Max drawdown
3,564Avg trade

Best run of 24. Silver, 1 hour, spread 2, from run pf:2026-10-12-SILVER-1h.tsv:16.

Entry rules, long

  1. The current high is below the low from 12 bars earlier.
  2. The bar closes above its open.
  3. The close is below both the 20-period EMA and the 100-period EMA.

Entry rules, short

  1. The current low is above the high from 12 bars earlier.
  2. The bar closes below its open.
  3. The close is above both the 20-period EMA and the 100-period EMA.

Exit rules

  1. The short closes once a bar closes at or below the target, 4 times the 14-period ATR below the signal close.
  2. An opposite signal reverses the position, and no stop loss is set.

Test conditions

PeriodUp to 2026-10-12
InstrumentSilver, 1 hour
Spread2 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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
SilverBest run1 hour12.02 15577.42552,414 USD-35,553
FTSE 10030 min2.59 20582.445,993 EUR-854
Dow Jones3 min2.35 15382.359,736 EUR-1,682
Nikkei 2255 minn/a 19878.7915,076 USD-7,134
Nikkei 22510 minn/a 19680.1011,593 USD-6,786
US Crude Oil15 minn/a 17981.018,127 EUR-4,642
Dow Jones2 minn/a 15285.537,109 EUR-2,204
GBP/USDDailyn/a 1776.475,729 USD-3,706
Brent Crude15 minn/a 16676.515,365 EUR-3,736
GBP/USD1 hourn/a 16980.475,127 USD-2,371
US Crude OilDailyn/a 988.893,804 EUR-3,342
FTSE 1001 hourn/a 11482.463,803 EUR-1,008
Brent Crude2 minn/a 15479.223,203 EUR-2,006
FTSE 1004 hoursn/a 2592.002,966 EUR-639
US Crude Oil2 minn/a 14584.832,965 EUR-2,140
EUR/USD1 minn/a 13981.292,814 USD-1,278
Nasdaq 100Dailyn/a 875.002,597 EUR-1,859
Brent Crude1 minn/a 15176.822,390 EUR-1,505
Nasdaq 1002 minn/a 14281.692,384 EUR-1,908
DAX 401 minn/a 10779.441,114 EUR-1,015
S&P 5002 minn/a 12489.521,003 EUR-368
FTSE 1003 minn/a 15778.98553 EUR-535
S&P 5001 minn/a 7286.11455 EUR-177
GBP/USD2 minn/a 14084.29446 USD-380

Charts

Results by run

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

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// Fair Value Gap RSI Reversion
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long & short
// Timeframe tested: 1 hour
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE intrade = 0
ONCE islong = 0
ONCE isshort = 0
ONCE longtp = 0
ONCE shorttp = 0

myRsi = RSI[14](close)
myAtr = AverageTrueRange[14](close)
emalower = ExponentialAverage[20](close)
emaupper = ExponentialAverage[100](close)

41 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

RSIATREMA
Read this firstKnown weaknesses2 points
  • Results include the spread only. Commissions and overnight financing are not included.
  • The code is published as it was backtested and has not been compiled again since.

Questions

About this strategy

Can I run Fair Value Gap RSI Reversion 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 24 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 12.02 over 155 trades.

How large was the drawdown?

The best run had a maximum drawdown of 35,552 USD at the tested position size, against a net result of 552,414 USD.

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

SMA Crossover With RSI Exit

Best run on the same market, Silver.

2.13 PF · 8,999 trades

ATR Band Reversion Long

Also a mean reversion strategy.

10.86 PF · 256 trades

Get the full rules, the complete code and the ProRealAlgos portfolio as a member.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

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