The strategy buys when the close crosses above the 33-period EMA in an uptrend after a pullback below the 165-period EMA. The stop sits at the pullback low and the target at 2.06 times that risk, with trades only when risk exceeds 0.8% of price.
Best run of 10. US Crude Oil, 15 min, spread 3, from run sweeps:2026-10-12-CRUDE-15m-opt.tsv:5.
| Period | Up to 2026-10-12 |
| Instrument | US Crude Oil, 15 minutes |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| US Crude OilBest run | 15 min | n/a | 718 | 33.70 | 3,874 EUR | -3,355 |
| Nikkei 225 | Daily | n/a | 61 | 47.54 | 25,005 USD | -11,518 |
| DAX 40 | Daily | n/a | 92 | 34.78 | 8,742 EUR | -5,263 |
| US Crude Oil | Daily | n/a | 76 | 40.79 | 7,624 EUR | -3,750 |
| Nasdaq 100 | Daily | n/a | 60 | 48.33 | 7,486 EUR | -7,260 |
| S&P 500 | Daily | n/a | 82 | 47.56 | 2,618 EUR | -983 |
| DAX 40 | 2 min | n/a | 5 | 80.00 | 1,830 EUR | -429 |
| S&P 500 | 4 hours | n/a | 177 | 35.03 | 1,569 EUR | -829 |
| Nasdaq 100 | 2 min | n/a | 5 | 60.00 | 1,150 EUR | -560 |
| DAX 40 | 1 min | n/a | 3 | 66.67 | 758 EUR | -484 |
Charts
The code
// ============================================================== // EMA Pullback Risk Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 15 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE maxclose = 0 ONCE maxhigh = 0 ONCE hasabove = 0 ONCE minclose = 0 ONCE minlow = 0 ONCE hasbelow = 0 emalevel = ExponentialAverage[33](close) emalimit = ExponentialAverage[165](close) ematrend = ExponentialAverage[365](close)
53 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 10 market and timeframe combinations. The best run by trade count was US Crude Oil, 15 minutes, with 718 trades.
The best run had a maximum drawdown of 3,355 EUR at the tested position size, against a net result of 3,874 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.