Join today
Strategies / Mean reversion / Inverted RSI Cross

Inverted RSI Cross Strategy

Two moving averages of RSI(14) drive this system, a 6 period and a 14 period. It does the opposite of the usual signal: it buys when the fast average crosses below the slow one and sells short on the cross above. It is always in the market after the first trade.

Mean reversionLong & shortSwingNasdaq 1004 hours
n/aProfit factor
10,208Net profit EUR
58.02%Win rate
2,906Trades
-6,493Max drawdown
3.51Avg trade

Best run of 3. Nasdaq 100, 4 hours, spread 3, from run sweeps:2026-09-22-NAS100-4h-opt.tsv:5.

Entry rules, long

  1. Members only

Entry rules, short

  1. Members only

Exit rules

  1. Members only
  2. No stop loss or target

Test conditions

PeriodUp to 2026-09-22
InstrumentNasdaq 100, 4 hours
Spread3 points
Contracts1
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-09-22

Parameters

positionSize
Contracts per trade
1
rsiPeriod
RSI length
14
fastPeriod
Fast SMA of the RSI
6
slowPeriod
Slow SMA of the RSI
14

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best run4 hoursn/a 2,90658.0210,208 EUR-6,493
DAX 404 hoursn/a 2,85961.008,542 EUR-8,350
Nasdaq 100Dailyn/a 1,06357.767,840 EUR-7,665

Charts

Results by run

Net profit against max drawdown

Net profitMax drawdown
0-10K-5K10K20KNasdaq 100 · 4 hoursDAX 40 · 4 hoursNasdaq 100 · Daily

The code

ProBuilder, rewritten to house standard

Every file in the library uses the same header, the same section order and the same variable names. The numbers above were produced by the original version before the rewrite, and the rewrite has not yet been compiled in ProRealTime.

// ============================================================
// Inverted RSI Cross
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long & short
// Timeframe tested: 4 hours
// ============================================================

// --- Settings ---
DEFPARAM CumulateOrders = false

// --- Parameters ---
positionSize = 1          // contracts per trade
rsiPeriod = 14            // RSI length
fastPeriod = 6            // fast SMA of the RSI
slowPeriod = 14           // slow SMA of the RSI

// --- Indicators ---
fastRsiMA = Average[fastPeriod](RSI[rsiPeriod](close))
slowRsiMA = Average[slowPeriod](RSI[rsiPeriod](close))

22 more lines: the entry and exit rules.

Read this first

Known weaknesses

  • There is no stop loss or target. The only exit is the opposite cross, so a trade can run against you for a long time.
  • Profit factor was not recorded. All results are from parameter sweeps.
  • Drawdowns are close to total profit. DAX 40 4 hours made 8,541.8 EUR with an 8,350.4 EUR drawdown.
  • The average trade on Nasdaq 100 4 hours was 3.51 EUR, so spread and slippage can erase much of the result.

Indicators used

RSISMA

How to load it

  1. Copy the code with the copy button above 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.

Questions

About this strategy

Can it run in ProOrder?

Yes. It is a stop and reverse system, so once started it always holds a position.

Which markets were tested?

Nasdaq 100 4 hours was best with 10,207.5 EUR. DAX 40 4 hours and Nasdaq 100 Daily were also positive at 8,541.8 and 7,840.3 EUR.

How much risk per contract?

On Nasdaq 100 4 hours the worst drawdown was 6,493.2 EUR at 1 contract. With no stop in the code, that figure could be exceeded live.

Why the 4 hour chart?

It gave the best sweep result. The daily chart made less and traded 1063 times over its test.

Related

Strategies like this one

Bollinger Squeeze

Uses the same indicator.

14.30 PF · 86 trades

Negated Hammer

Best run on the same market, Nasdaq 100.

3.20 PF · 372 trades

Monday Dip Buy

Also a mean reversion strategy.

n/a PF · 146 trades

Curious about contrarian systems? The ProRealAlgos waitlist is open.

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