The strategy buys on the first bar where the close moves above the 9-period EMA while RSI(14) is above 50, after both conditions were absent on the prior bar. It closes the long on any bar that closes below the 9-period EMA.
Best run of 9. Nasdaq 100, 4 hours, spread 3, from run sweeps:2026-10-04-NAS100-4h-opt.tsv:68.
| Period | Up to 2026-10-04 |
| Instrument | Nasdaq 100, 4 hours |
| Spread | 3 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 |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | 4 hours | n/a | 2,266 | 32.44 | 10,613 EUR | -4,195 |
| USD/JPY | Daily | n/a | 967 | 31.23 | 813,800 USD | -520,620 |
| Nikkei 225 | 4 hours | n/a | 1,946 | 30.73 | 14,467 USD | -11,119 |
| Dow Jones | Daily | n/a | 1,126 | 34.81 | 13,528 EUR | -8,189 |
| DAX 40 | 4 hours | n/a | 2,247 | 32.18 | 12,868 EUR | -3,257 |
| Dow Jones | 4 hours | n/a | 771 | 32.43 | 8,894 EUR | -5,861 |
| GBP/USD | Daily | n/a | 1,002 | 31.34 | 8,240 USD | -7,718 |
| Nasdaq 100 | Daily | n/a | 902 | 33.15 | 6,961 EUR | -5,094 |
| Gold | 4 hours | n/a | 2,202 | 31.47 | 2,227 EUR | -1,184 |
Charts
The code
// ============================================================== // First Break Above EMA And RSI // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ema = ExponentialAverage[9](close) myRsi = RSI[14](close)
13 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 9 market and timeframe combinations. The best run by trade count was Nasdaq 100, 4 hours, with 2,266 trades.
The best run had a maximum drawdown of 4,195 EUR at the tested position size, against a net result of 10,613 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.