The strategy buys when price crosses above the 50-period EMA and sells short on a cross below, but only when ADX is at least 25 and volume is above its 20-period average. Each trade uses a stop and target at 4 times the 14-period ATR.
Best run of 3. Silver, 4 hours, spread 2, from run pf:2026-10-12-SILVER-4h.tsv:4.
| Period | Up to 2026-10-12 |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 4 hours | 5.55 | 341 | 32.26 | 312,039 USD | -16,870 |
| Nikkei 225 | Daily | n/a | 26 | 50.00 | 7,233 USD | -7,107 |
| US Crude Oil | Daily | n/a | 31 | 45.16 | 4,094 EUR | -2,583 |
Charts
The code
// ============================================================== // EMA Crossover With ADX and Volume // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ema = ExponentialAverage[50](close) myAdx = ADX[14] volsma = Average[20](volume) myAtr = AverageTrueRange[14](close)
17 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 was Silver, 4 hours, with a profit factor of 5.55 over 341 trades.
The best run had a maximum drawdown of 16,870 USD at the tested position size, against a net result of 312,038 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.