Sells short after price rallies up to the 20-period EMA in a strong trend (ADX above 30), once the close breaks below the prior bar's low. The short position closes when the close rises back above the EMA.
Best run of 1. Brent Crude, Daily, spread 5, from run pf:2026-10-11-BRENT-D.tsv:4.
| Period | Up to 2026-10-11 |
| Instrument | Brent Crude, Daily |
| Spread | 5 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 | 1.87 | 36 | 22.22 | 7,680 EUR | -4,904 |
Charts
The code
// ============================================================== // EMA Pullback Short Continuation // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Short only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE capital = 10000
20 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 one combination, Brent Crude, Daily, with a profit factor of 1.87 over 36 trades.
The best run had a maximum drawdown of 4,904 EUR at the tested position size, against a net result of 7,680 EUR.
It only takes short trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.