Join waitlist
Strategies / Mean reversion / Stochastic RSI Long Filter

Stochastic RSI Long Filter

Buys when the smoothed stochastic %K crosses above %D while %K is below 20 and RSI is below 50. Sells when %K crosses below %D while %K is above 80 and RSI is above 60.

Mean reversionLong onlySwingDAX 40Daily
2.89Profit factor
23,157Net profit EUR
75.18%Win rate
141Trades
-5,147Max drawdown
164Avg trade

Best run of 26. DAX 40, Daily, spread 3, from run pf:2026-10-12-DAX40-D.tsv:10.

Entry rules, long

  1. %K is below 20.
  2. RSI (14) is below 50.
  3. Signals are only considered after bar 25.

Exit rules

  1. No stop loss or profit target is set.

Test conditions

PeriodUp to 2026-10-12
InstrumentDAX 40, 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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
DAX 40Best runDaily2.89 14175.1823,157 EUR-5,147
Nasdaq 1001 hour1.45 92669.0118,156 EUR-3,654
S&P 5001 hour1.42 94171.094,746 EUR-1,059
USD/JPY4 hoursn/a 29964.88412,240 USD-330,930
Nikkei 2254 hoursn/a 22170.5937,470 USD-11,804
Nikkei 22530 minn/a 1,48166.2434,391 USD-9,586
Nikkei 2251 hourn/a 77667.1426,354 USD-10,148
Dow JonesDailyn/a 12878.1223,751 EUR-8,615
Dow Jones1 hourn/a 30868.8317,377 EUR-11,112
Nasdaq 1004 hoursn/a 27274.6316,991 EUR-4,971
Nasdaq 10030 minn/a 1,43369.0916,477 EUR-4,137
Dow Jones4 hoursn/a 9174.7315,145 EUR-11,189
Dow Jones30 minn/a 59067.6313,577 EUR-7,915
Dow Jones10 minn/a 1,49168.6812,369 EUR-7,982
FTSE 100Dailyn/a 11078.1811,909 EUR-3,067
Dow Jones15 minn/a 1,22267.7610,988 EUR-9,453
Nasdaq 100Dailyn/a 9073.339,984 EUR-5,361
DAX 401 hourn/a 84766.238,263 EUR-5,436
Brent Crude4 hoursn/a 15370.596,313 EUR-4,892
FTSE 1001 hourn/a 89570.285,075 EUR-2,856
S&P 5004 hoursn/a 28573.334,104 EUR-1,208
DAX 4010 minn/a 1,51767.573,835 EUR-3,773
S&P 500Dailyn/a 12077.503,362 EUR-1,066
S&P 50030 minn/a 1,44768.902,717 EUR-1,154
Gold4 hoursn/a 25166.141,533 EUR-844
S&P 50015 minn/a 1,48068.381,306 EUR-1,077

Charts

Results by run

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

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// Stochastic RSI Long Filter
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE raw = 50

ll = lowest[14](low)
hh = highest[14](high)

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

RSIStochastic
Read this firstKnown weaknesses2 points
  • Results include the spread only. Commissions and overnight financing are not included.
  • The code is published as it was backtested and has not been compiled again since.

Questions

About this strategy

Can I run Stochastic RSI Long 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 26 market and timeframe combinations. The best run was DAX 40, Daily, with a profit factor of 2.89 over 141 trades.

How large was the drawdown?

The best run had a maximum drawdown of 5,147 EUR at the tested position size, against a net result of 23,157 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

Heikin Ashi Color Flip

Best run on the same market, DAX 40.

1.12 PF · 3,692 trades

Oversold Bollinger Band RSI Reversal

Also a mean reversion strategy.

2.87 PF · 118 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