Join waitlist
Strategies / Mean reversion / Simple Average Reversion Long

Simple Average Reversion Long

Buys when the 2-period simple average of close crosses under 0.97 times the 5-period simple average while the 5-period EMA of RSI(2) is below 30. Sells when the 2-period average crosses back over the 5-period average.

Mean reversionLong onlySwingUS Crude OilDaily
n/aProfit factor
6,394Net profit EUR
68.15%Win rate
135Trades
-3,537Max drawdown
47.36Avg trade

Best run of 33. US Crude Oil, Daily, spread 3, from run sweeps:2026-10-11-CRUDE-D-opt.tsv:40.

Entry rules, long

  1. The 5-period EMA of RSI(2) is below 30.

Exit rules

  1. The 2-period simple average crosses over the 5-period simple average, and the position is sold at market for 1 contract.

Test conditions

PeriodUp to 2026-10-11
InstrumentUS Crude Oil, Daily
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
US Crude OilBest runDailyn/a 13568.156,394 EUR-3,537
Nikkei 225Dailyn/a 4479.5513,689 USD-3,546
Silver1 hourn/a 2259.095,039 USD-3,788
Silver5 minn/a 475.004,408 USD-1,709
Nasdaq 100Dailyn/a 5166.674,148 EUR-1,519
Nikkei 2254 hoursn/a 6100.004,113 USD-385
Brent CrudeDailyn/a 6065.003,546 EUR-3,063
DAX 40Dailyn/a 4271.433,430 EUR-3,201
Dow Jones4 hoursn/a 3100.001,996 EUR-852
Nikkei 2251 hourn/a 475.001,723 USD-555
FTSE 100Dailyn/a 1968.421,502 EUR-1,382
Nikkei 22530 minn/a 4100.001,433 USD-298
Silver3 minn/a 2100.001,358 USD-1,179
Brent Crude10 minn/a 3100.001,023 EUR-76.40
Nasdaq 1004 hoursn/a 875.00989 EUR-256
Brent Crude3 minn/a 3100.00926 EUR-98.50
Dow Jones30 minn/a 1100.00826 EUR-0.00
DAX 401 hourn/a 580.00717 EUR-359
Dow Jones1 hourn/a 1100.00644 EUR-1.50
FTSE 1004 hoursn/a 875.00643 EUR-361
Brent Crude15 minn/a 955.56470 EUR-399
S&P 5004 hoursn/a 1172.73386 EUR-95.00
US Crude Oil3 minn/a 366.67333 EUR-60.10
Gold30 minn/a 1100.00180 EUR-25.50
Gold15 minn/a 1100.00167 EUR-1.10
GBP/USD1 hourn/a 1100.00155 USD-75.90
Brent Crude1 minn/a 250.00141 EUR-68.80
Nasdaq 1003 minn/a 1100.00131 EUR-88.70
DAX 4030 minn/a 1100.00130 EUR-3.10
Gold1 hourn/a 2100.0089.80 EUR-0.30
S&P 5001 hourn/a 366.6757.38 EUR-35.75
S&P 5003 minn/a 1100.0051.12 EUR-27.63
FTSE 10030 minn/a 1100.0049.50 EUR-31.90

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Simple Average Reversion Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

smallma = Average[2](close)
bigma = Average[5](close)
buyma = 0.97 * bigma
rsiema = ExponentialAverage[5](RSI[2](close))

10 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

SMAEMARSI
Read this firstKnown weaknesses3 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 3,537 EUR is large next to the net profit of 6,394 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 Simple Average Reversion Long 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 33 market and timeframe combinations. The best run by trade count was US Crude Oil, Daily, with 135 trades.

How large was the drawdown?

The best run had a maximum drawdown of 3,537 EUR at the tested position size, against a net result of 6,394 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

Short Term RSI Pullback Long Short

Best run on the same market, US Crude Oil.

1.33 PF · 493 trades

ATR Band

Also a mean reversion strategy.

10.31 PF · 53 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

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