Join waitlist
Strategies / Pattern / RSI Divergence Ichimoku Filter

RSI Divergence Ichimoku Filter

Trades regular or hidden RSI divergence at 5 bar pivots, filtered by the Ichimoku cloud and a 200 period EMA. Longs close when the RSI crosses above 75, and shorts close when it crosses above 25.

PatternLong & shortIntradayGold5 min
n/aProfit factor
1,327Net profit EUR
51.61%Win rate
1,676Trades
-639Max drawdown
0.79Avg trade

Best run of 12. Gold, 5 min, spread 0.6, from run sweeps:2026-10-11-GOLD-5m-opt.tsv:21.

Entry rules, long

  1. The top of the Ichimoku cloud is above the 200 period EMA

Entry rules, short

  1. The 200 period EMA is above the bottom of the Ichimoku cloud

Exit rules

  1. The 14 period RSI crosses over 25 and closes the short
  2. An opposite signal reverses the position

Test conditions

PeriodUp to 2026-10-11
InstrumentGold, 5 minutes
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 run5 minn/a 1,67651.611,327 EUR-639
USD/JPY4 hoursn/a 35456.21409,030 USD-318,610
EUR/USD2 minn/a 1,64345.5333,732 USD-27,750
EUR/USD15 minn/a 1,62552.0629,066 USD-29,055
Nasdaq 100Dailyn/a 9361.2925,433 EUR-3,031
US Crude Oil4 hoursn/a 23262.5017,342 EUR-4,454
SilverDailyn/a 10658.4914,524 USD-12,385
Brent Crude4 hoursn/a 17457.4710,456 EUR-4,655
FTSE 100Dailyn/a 9157.145,543 EUR-4,341
US Crude Oil5 minn/a 1,67251.974,823 EUR-3,865
S&P 500Dailyn/a 12865.622,417 EUR-1,760
Gold4 hoursn/a 31460.19839 EUR-768

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// RSI Divergence Ichimoku Filter
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Pattern
// Direction: Long & short
// Timeframe tested: 5 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE lastplbar = 0
ONCE lastplosc = 0
ONCE lastpllow = 0
ONCE countpl = 0
ONCE lastphbar = 0
ONCE lastphosc = 0
ONCE lastphhigh = 0
ONCE countph = 0

osc = RSI[14](close)
ema = ExponentialAverage[200](close)
conv = (lowest[9](low) + highest[9](high)) / 2
base = (lowest[26](low) + highest[26](high)) / 2
leadone = (conv + base) / 2
leadtwo = (lowest[52](low) + highest[52](high)) / 2
abovecloud = max(leadone, leadtwo)
belowcloud = min(leadone, leadtwo)

bullsig = 0
bearsig = 0

52 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

RSIEMAIchimoku
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run RSI Divergence Ichimoku Filter 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 12 market and timeframe combinations. The best run by trade count was Gold, 5 minutes, with 1,676 trades.

How large was the drawdown?

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

Breakout Reversal

Also a pattern strategy.

n/a PF · 459 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