Buys when a 9-period average of RSI(14) crosses above 45 while price is above the 200-period SMA and ADX(14) is above 20. Sells when that RSI average rises above 75 or price falls below the 50-period SMA.
Best run of 7. US Crude Oil, 1 hour, spread 3, from run sweeps:2026-10-07-CRUDE-1h-opt.tsv:6.
| Period | Up to 2026-10-07 |
| Instrument | US Crude Oil, 1 hour |
| 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-07 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| US Crude OilBest run | 1 hour | n/a | 384 | 28.91 | 2,390 EUR | -1,235 |
| USD/JPY | Daily | n/a | 53 | 35.85 | 362,940 USD | -167,620 |
| Nasdaq 100 | Daily | n/a | 57 | 35.09 | 5,391 EUR | -2,052 |
| Dow Jones | Daily | n/a | 65 | 32.31 | 3,207 EUR | -2,861 |
| Brent Crude | Daily | n/a | 16 | 56.25 | 2,103 EUR | -1,090 |
| S&P 500 | Daily | n/a | 73 | 28.77 | 842 EUR | -429 |
| Gold | 4 hours | n/a | 159 | 30.19 | 368 EUR | -206 |
Charts
The code
// ============================================================== // Smoothed RSI Cross Trend Entry // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false smashort = Average[50](close) smalong = Average[200](close) myRsi = RSI[14](close) rsima = Average[9](myRsi) myAdx = ADX[14]
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 7 market and timeframe combinations. The best run by trade count was US Crude Oil, 1 hour, with 384 trades.
The best run had a maximum drawdown of 1,235 EUR at the tested position size, against a net result of 2,390 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.