Join waitlist
Strategies / Mean reversion / RSI Pullback With Trend Filter (long only)

RSI Pullback With Trend Filter (long only)

Buys 1 contract when the 14 period RSI is below 30 during an uptrend, where the 11 period SMA is above the 21 period SMA and the close is above both. Sells the long when the RSI is above 70 and the trend turns down.

Mean reversionLong onlyIntradayUSD/JPY3 min
n/aProfit factor
125,420Net profit USD
100.00%Win rate
1Trades
-110,410Max drawdown
125,420Avg trade

Best run of 1. USD/JPY, 3 min, spread 1, from run sweeps:2026-10-04-USDJPY-3m-opt.tsv:9.

Entry rules, long

  1. The close is higher than it was 30 bars earlier.
  2. The 11 period SMA is above the 21 period SMA, and the close is above both averages.

Exit rules

  1. The close is lower than it was 30 bars earlier.
  2. The 11 period SMA is below the 21 period SMA, and the close is below both averages.

Test conditions

PeriodUp to 2026-10-04
InstrumentUSD/JPY, 3 minutes
Spread1 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-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
USD/JPYBest run3 minn/a 1100.00125,420 USD-110,410

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// RSI Pullback With Trend Filter (long only)
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: 3 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

smaone = Average[11](close)
smatwo = Average[21](close)
mom = close - close[30]
myRsi = RSI[14](close)

13 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

MomentumRSISMA
Read this firstKnown weaknesses4 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The best run has only 1 trades, which is a small sample to judge it on.
  • The maximum drawdown of 110,410 USD is large next to the net profit of 125,420 USD.
  • It was only tested on USD/JPY, so there is no evidence from other markets.

Questions

About this strategy

Can I run RSI Pullback With Trend Filter (long only) 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 one combination, USD/JPY, 3 minutes, with 1 trades.

How large was the drawdown?

The best run had a maximum drawdown of 110,410 USD at the tested position size, against a net result of 125,420 USD.

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

EMA 8 21 RSI Filtered Bracket

Best run on the same market, USD/JPY.

1.09 PF · 6,194 trades

ATR Band

Also a mean reversion strategy.

10.31 PF · 53 trades

See how ProRealAlgos combines strategies like this into one automated portfolio.

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