The strategy buys after the 9-period EMA crosses above the 20-period EMA and price pulls back to touch either average on a bullish bar. It sells short on the bearish version and each trade has a stop and a target at 3 times its risk.
Best run of 2. Dow Jones, 30 min, spread 3, from run sweeps:2026-10-03-DOW30-30m-opt.tsv:12.
| Period | Up to 2026-10-03 |
| Instrument | Dow Jones, 30 minutes |
| 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-03 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Dow JonesBest run | 30 min | n/a | 3,567 | 23.89 | 15,955 EUR | -12,425 |
| Dow Jones | 1 hour | n/a | 1,799 | 24.40 | 13,104 EUR | -11,995 |
Charts
The code
// ============================================================== // EMA Pullback Retest Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE allowbuy = 0 ONCE allowsell = 0 emafast = ExponentialAverage[9](close) emaslow = ExponentialAverage[20](close)
33 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 2 market and timeframe combinations. The best run by trade count was Dow Jones, 30 minutes, with 3,567 trades.
The best run had a maximum drawdown of 12,425 EUR at the tested position size, against a net result of 15,955 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.