Buys when the close is above a 50-period EMA rising over 5 bars, RSI(3) crosses above 20, ADX(5) is above 30 and the candle body exceeds 60% of its range. Shorts mirror these conditions, with a stop at the signal bar high.
Best run of 6. FTSE 100, 4 hours, spread 2, from run sweeps:2026-10-04-FTSE100-4h-opt.tsv:57.
| Period | Up to 2026-10-04 |
| Instrument | FTSE 100, 4 hours |
| Spread | 2 points |
| Starting capital | 1,000,000 |
| Costs | Spread only. Commissions and overnight financing are not included. |
| Bars | Up to 200,000 bars, fewer where the instrument has less history |
| Last tested | 2026-10-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| FTSE 100Best run | 4 hours | n/a | 301 | 43.52 | 1,591 EUR | -1,167 |
| Dow Jones | Daily | n/a | 142 | 39.44 | 4,436 EUR | -2,466 |
| US Crude Oil | 4 hours | n/a | 262 | 44.27 | 4,395 EUR | -1,670 |
| Brent Crude | Daily | n/a | 48 | 54.17 | 4,009 EUR | -2,331 |
| Dow Jones | 4 hours | n/a | 102 | 41.18 | 2,945 EUR | -2,513 |
| Nasdaq 100 | Daily | n/a | 141 | 34.04 | 2,669 EUR | -1,341 |
Charts
The code
// ============================================================== // Trend Filtered RSI Scalping // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ema = ExponentialAverage[50](close) myRsi = RSI[3](close) myAdx = ADX[5]
32 more lines: the entry and exit rules.
Setup
Questions
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.
It was tested on 6 market and timeframe combinations. The best run by trade count was FTSE 100, 4 hours, with 301 trades.
The best run had a maximum drawdown of 1,167 EUR at the tested position size, against a net result of 1,591 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.