The strategy buys when price crosses above a 20-bar simple moving average while RSI(14) is above 50, and sells short when price crosses below it with RSI(14) below 50. Each trade has a stop and target 1 x ATR(14) from entry.
Best run of 1. Dow Jones, 4 hours, spread 3, from run sweeps:2026-10-12-DOW30-4h-opt.tsv:29.
| Period | Up to 2026-10-12 |
| Instrument | Dow Jones, 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Dow JonesBest run | 4 hours | n/a | 797 | 49.56 | 5,948 EUR | -4,879 |
Charts
The code
// ============================================================== // SMA Crossover RSI Filter ATR Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false myRsi = RSI[14](close) sma = Average[20](close) myAtr = AverageTrueRange[14](close) dist = myAtr * 1.0
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 one combination, Dow Jones, 4 hours, with 797 trades.
The best run had a maximum drawdown of 4,879 EUR at the tested position size, against a net result of 5,948 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.