The strategy buys when the 50-period EMA is above the 200-period EMA and price pulls back to the 50-period EMA, then closes back above it. It sells short on the mirror setup, with stops beyond the 5-bar extreme and targets 2.5 ATR away.
Best run of 4. Silver, 4 hours, spread 2, from run pf:2026-10-04-SILVER-4h.tsv:1.
| Period | Up to 2026-10-04 |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 4 hours | 2.65 | 642 | 41.28 | 178,845 USD | -25,141 |
| Dow Jones | Daily | n/a | 46 | 58.70 | 14,733 EUR | -4,347 |
| US Crude Oil | Daily | n/a | 70 | 48.57 | 4,480 EUR | -3,566 |
| Brent Crude | 4 hours | n/a | 320 | 48.75 | 3,462 EUR | -3,050 |
Charts
The code
// ============================================================== // EMA Pullback Trend Continuation (long and short) 3 // 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) rsival = RSI[14](close) atrval = AverageTrueRange[14](close)
36 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 4 market and timeframe combinations. The best run was Silver, 4 hours, with a profit factor of 2.65 over 642 trades.
The best run had a maximum drawdown of 25,140 USD at the tested position size, against a net result of 178,844 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.