Buys when the 5-period EMA moves above both the 13 and 26-period EMAs on above-average volume, and sells short on the mirror condition. The stop sits at the signal candle's low or high, capped at 1%, with a 1R or 2R target.
Best run of 3. Dow Jones, 4 hours, spread 3, from run sweeps:2026-10-07-DOW30-4h-opt.tsv:5.
| Period | Up to 2026-10-07 |
| 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-07 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Dow JonesBest run | 4 hours | n/a | 113 | 47.79 | 5,042 EUR | -2,031 |
| Silver | Daily | n/a | 55 | 52.73 | 861 USD | -538 |
| US Crude Oil | Daily | n/a | 45 | 55.56 | 325 EUR | -235 |
Charts
The code
// ============================================================== // EMA 5 Cross Volume Risk Reward // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE longsl = 0 ONCE longhi = 0 ONCE longlo = 0 ONCE longset = 0 ONCE shortsl = 0 ONCE shorthi = 0 ONCE shortlo = 0 ONCE shortset = 0 ONCE kill = 0 emaa = ExponentialAverage[5](close) emab = ExponentialAverage[13](close) emac = ExponentialAverage[26](close)
78 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 3 market and timeframe combinations. The best run by trade count was Dow Jones, 4 hours, with 113 trades.
The best run had a maximum drawdown of 2,031 EUR at the tested position size, against a net result of 5,042 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.