Join waitlist
Strategies / Mean reversion / RSI Stochastic Mean Reversion

RSI Stochastic Mean Reversion

Buys when RSI(14) is below 20, stochastic %K(14) is below 25 and price is above 90% of the 200 EMA. Sells short when RSI(14) is above 65, %K(14) is above 75 and price is below the 200 EMA.

Mean reversionLong & shortSwingNasdaq 1001 hour
1.56Profit factor
18,582Net profit EUR
49.54%Win rate
216Trades
-4,383Max drawdown
86.03Avg trade

Best run of 46. Nasdaq 100, 1 hour, spread 3, from run pf:2026-10-05-NAS100-1h.tsv:12.

Entry rules, long

  1. Raw stochastic %K(14) is below 25.
  2. The close is above 90% of the 200 EMA.

Entry rules, short

  1. Raw stochastic %K(14) is above 75.
  2. The close is below the 200 EMA.

Exit rules

  1. A 6% profit target from the fill price closes the trade.

Test conditions

PeriodUp to 2026-10-05
InstrumentNasdaq 100, 1 hour
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-07

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best run1 hour1.56 21649.5418,582 EUR-4,383
Nasdaq 10030 min1.54 21247.6423,934 EUR-4,942
USD/JPY2 minn/a 475.00169,470 USD-116,370
EUR/USD1 hourn/a 8946.0758,058 USD-32,869
Silver2 minn/a 12051.6748,250 USD-16,707
Silver3 minn/a 12651.5947,928 USD-14,942
Dow Jones1 hourn/a 5360.3838,762 EUR-6,442
EUR/USD10 minn/a 1172.7337,717 USD-8,851
EUR/USD15 minn/a 2055.0034,394 USD-19,282
Nikkei 22510 minn/a 9348.3931,452 USD-14,742
Silver1 minn/a 5255.7729,918 USD-6,636
Nikkei 2253 minn/a 5152.9426,991 USD-20,500
Silver5 minn/a 12647.6225,326 USD-9,379
Nikkei 2255 minn/a 6349.2123,722 USD-17,395
EUR/USD3 minn/a 3100.0018,525 USD-5,938
Silver10 minn/a 17346.8217,614 USD-7,619
Nasdaq 10015 minn/a 14647.9516,132 EUR-5,171
Dow Jones10 minn/a 4447.7313,890 EUR-11,599
Silver15 minn/a 20842.7913,645 USD-11,371
DAX 401 hourn/a 17945.2511,878 EUR-4,804
Dow Jones4 hoursn/a 2751.8510,594 EUR-8,906
Nasdaq 1003 minn/a 2955.1710,511 EUR-4,524
GBP/USD30 minn/a 4757.459,864 USD-3,373
GBP/USD4 hoursn/a 6349.219,610 USD-3,242
DAX 4015 minn/a 9047.788,609 EUR-7,907
GBP/USD1 hourn/a 8548.248,471 USD-5,282
Brent Crude10 minn/a 19945.738,228 EUR-4,304
Brent Crude5 minn/a 11947.908,144 EUR-4,644
US Crude Oil15 minn/a 30041.676,392 EUR-5,597
US Crude Oil30 minn/a 36142.386,137 EUR-3,724
US Crude Oil10 minn/a 23743.045,859 EUR-4,815
S&P 50015 minn/a 9453.195,093 EUR-1,504
GBP/USD10 minn/a 1764.714,942 USD-2,129
Nasdaq 1001 minn/a 955.564,368 EUR-3,698
US Crude Oil1 hourn/a 26142.533,998 EUR-3,603
S&P 50030 minn/a 14942.952,969 EUR-2,258
FTSE 1003 minn/a 1457.142,263 EUR-1,178
FTSE 1005 minn/a 1855.562,077 EUR-1,719
S&P 5001 hourn/a 16142.242,068 EUR-1,406
Gold3 minn/a 4351.161,709 EUR-881
Gold2 minn/a 4151.221,577 EUR-1,199
DAX 40Dailyn/a 4040.001,379 EUR-1,333
S&P 5005 minn/a 3050.001,301 EUR-975
S&P 5003 minn/a 2050.001,236 EUR-769
S&P 5002 minn/a 666.67937 EUR-740
GoldDailyn/a 4645.65385 EUR-163

Charts

Results by run

Top 10 of 46 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

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

DEFPARAM CumulateOrders = false

ONCE stochk = 50

ema = ExponentialAverage[200](close)
myRsi = RSI[14](close)
hh = highest[14](high)
ll = lowest[14](low)

21 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

RSIStochasticEMA
Longer historyRe-run on up to 1,000,000 barsNasdaq 100 · 1 hour · older data 419.20 EUR

Nasdaq 100 had no history beyond the standard run, so both runs used 114,000 bars.

Nasdaq 100 · 1 hour

Bars available114,000
Net, standard 200,000-bar run18,581.80 EUR
Net, long run19,001.00 EUR
Net on the older data alone419.20 EUR
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 RSI Stochastic Mean 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 46 market and timeframe combinations. The best run was Nasdaq 100, 1 hour, with a profit factor of 1.56 over 216 trades.

How large was the drawdown?

The best run had a maximum drawdown of 4,383 EUR at the tested position size, against a net result of 18,582 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

Double Sevens

Also a mean reversion strategy.

1.58 PF · 743 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