Enters on an EMA(10) and EMA(21) cross in the direction of the 50-period EMA when ADX confirms a trend and volume is above average. Each trade has a stop-loss 2.2 times the 14-period ATR and a target 2.8 times the ATR.
Best run of 4. Brent Crude, Daily, spread 3, from run sweeps:2026-10-11-BRENT-D-opt.tsv:69.
| Period | Up to 2026-10-11 |
| Instrument | Brent Crude, Daily |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Brent CrudeBest run | Daily | n/a | 19 | 57.89 | 2,324 EUR | -983 |
| Nikkei 225 | Daily | n/a | 10 | 60.00 | 7,782 USD | -2,326 |
| Dow Jones | Daily | n/a | 7 | 71.43 | 7,025 EUR | -2,239 |
| US Crude Oil | Daily | n/a | 15 | 46.67 | 1,283 EUR | -687 |
Charts
The code
// ============================================================== // EMA Ribbon ADX Trend Entry // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false emafast = ExponentialAverage[10](close) emaslow = ExponentialAverage[21](close) ematrend = ExponentialAverage[50](close) dip = DIplus[14](close) dim = DIminus[14](close) myAdx = ADX[14] volma = Average[15](volume) myAtr = AverageTrueRange[14](close) myRsi = RSI[14](close) macdl = MACDLine[12,26,9](close) macds = ExponentialAverage[9](macdl)
25 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 by trade count was Brent Crude, Daily, with 19 trades.
The best run had a maximum drawdown of 983 EUR at the tested position size, against a net result of 2,324 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.