Join waitlist
Strategies / Trend / RSI Alligator Crossover

RSI Alligator Crossover

Compares RSI lines of 5, 13 and 34 periods and buys when a faster line crosses above the slowest. Shorts mirror the signal, and each opposite signal reverses the position, with a 10% stop and 90% target on longs.

TrendLong & shortSwingGold4 hours
n/aProfit factor
2,824Net profit EUR
29.18%Win rate
3,427Trades
-1,262Max drawdown
0.82Avg trade

Best run of 6. Gold, 4 hours, spread 0.6, from run sweeps:2026-10-11-GOLD-4h-opt.tsv:158.

Entry rules, long

  1. Or the 5 period RSI crosses above the 34 period RSI while the 13 period RSI is above it

Entry rules, short

  1. Or the 5 period RSI crosses under the 34 period RSI while the 13 period RSI is below it

Exit rules

  1. A 10% stop loss and 90% take profit are set on each long
  2. An opposite signal reverses the position

Test conditions

PeriodUp to 2026-10-11
InstrumentGold, 4 hours
Spread0.6 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
GoldBest run4 hoursn/a 3,42729.182,824 EUR-1,262
USD/JPYDailyn/a 1,59428.232,287,940 USD-803,840
Brent CrudeDailyn/a 62733.0115,438 EUR-7,574
DAX 404 hoursn/a 3,36429.7914,047 EUR-4,475
GBP/USDDailyn/a 1,62531.0213,219 USD-8,987
GoldDailyn/a 1,54829.462,269 EUR-1,212

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// RSI Alligator Crossover
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

jaw = RSI[34](close)
teeth = RSI[5](close)
lips = RSI[13](close)

16 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.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run RSI Alligator Crossover 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 6 market and timeframe combinations. The best run by trade count was Gold, 4 hours, with 3,427 trades.

How large was the drawdown?

The best run had a maximum drawdown of 1,262 EUR at the tested position size, against a net result of 2,824 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

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

ADX Filtered EMA Cross

Also a trend strategy.

1.15 PF · 607 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