The strategy buys when the close pulls back to the 50-period EMA and crosses above it in an uptrend. It sells short on the mirrored setup, with ATR-based stops and targets.
Best run of 13. Silver, 4 hours, spread 2, from run pf:2026-10-10-SILVER-4h.tsv:1.
| Period | Up to 2026-10-10 |
| Instrument | Silver, 4 hours |
| Spread | 2 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 4 hours | 5.72 | 877 | 15.51 | 390,444 USD | -24,640 |
| S&P 500 | Daily | 1.49 | 425 | 22.82 | 2,638 EUR | -574 |
| Silver | 1 hour | n/a | 3,454 | 15.63 | 139,882 USD | -42,066 |
| USD/JPY | Daily | n/a | 503 | 20.08 | 30,930 USD | -15,960 |
| Nikkei 225 | Daily | n/a | 264 | 26.52 | 24,238 USD | -10,383 |
| Dow Jones | Daily | n/a | 353 | 24.65 | 12,265 EUR | -8,820 |
| US Crude Oil | Daily | n/a | 295 | 26.10 | 8,583 EUR | -5,824 |
| Nasdaq 100 | Daily | n/a | 322 | 20.19 | 7,741 EUR | -5,049 |
| Dow Jones | 4 hours | n/a | 275 | 21.82 | 7,220 EUR | -4,290 |
| Nasdaq 100 | 4 hours | n/a | 854 | 19.56 | 6,878 EUR | -4,941 |
| S&P 500 | 4 hours | n/a | 887 | 21.20 | 1,111 EUR | -841 |
| Gold | 4 hours | n/a | 835 | 19.52 | 1,001 EUR | -515 |
| Gold | Daily | n/a | 357 | 25.49 | 662 EUR | -576 |
Charts
Top 10 of 13 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // EMA Pullback Continuation ATR Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false emaf = ExponentialAverage[50](close) emas = ExponentialAverage[200](close) myAtr = AverageTrueRange[14](close)
27 more lines: the entry and exit rules.
Setup
S&P 500 had no history beyond the standard run, so both runs used 14,000 bars.
| Bars available | 14,000 |
| Net, standard 200,000-bar run | 2,637.68 EUR |
| Net, long run | 2,701.08 EUR |
| Net on the older data alone | 63.40 EUR |
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 13 market and timeframe combinations. The best run was Silver, 4 hours, with a profit factor of 5.72 over 877 trades.
The best run had a maximum drawdown of 24,640 USD at the tested position size, against a net result of 390,444 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.