It buys when price is within 2% of its 20 period EMA and within 5% of its 252 bar high, and breaks above the prior 10 bar high on 1.5 times average volume. It exits when the close crosses below the 50 period EMA.
Best run of 20. Brent Crude, 10 min, spread 3, from run sweeps:2026-10-04-BRENT-10m-opt.tsv:15.
| Period | Up to 2026-10-04 |
| Instrument | Brent Crude, 10 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Brent CrudeBest run | 10 min | n/a | 1,428 | 31.37 | 5,886 EUR | -5,428 |
| USD/JPY | 1 hour | n/a | 518 | 36.10 | 270,390 USD | -250,470 |
| USD/JPY | 4 hours | n/a | 123 | 37.40 | 214,240 USD | -78,940 |
| USD/JPY | 10 min | n/a | 905 | 33.15 | 187,610 USD | -92,280 |
| Silver | 1 hour | n/a | 509 | 30.26 | 13,653 USD | -9,264 |
| Silver | 15 min | n/a | 1,080 | 27.31 | 8,489 USD | -6,269 |
| Silver | 4 hours | n/a | 66 | 27.27 | 7,296 USD | -3,224 |
| Dow Jones | 4 hours | n/a | 78 | 44.87 | 5,856 EUR | -3,292 |
| Nasdaq 100 | 30 min | n/a | 1,024 | 35.35 | 5,365 EUR | -3,848 |
| Nasdaq 100 | 10 min | n/a | 1,424 | 31.67 | 4,252 EUR | -4,078 |
| Brent Crude | 4 hours | n/a | 60 | 35.00 | 3,591 EUR | -2,742 |
| Nasdaq 100 | 5 min | n/a | 1,338 | 31.76 | 3,068 EUR | -1,805 |
| Nikkei 225 | Daily | n/a | 5 | 40.00 | 2,839 USD | -2,357 |
| Dow Jones | 5 min | n/a | 1,228 | 29.89 | 2,815 EUR | -2,676 |
| Nasdaq 100 | Daily | n/a | 3 | 100.00 | 2,680 EUR | -692 |
| S&P 500 | 1 hour | n/a | 437 | 38.67 | 1,969 EUR | -640 |
| Gold | 15 min | n/a | 1,033 | 30.20 | 1,076 EUR | -357 |
| Gold | 4 hours | n/a | 127 | 32.28 | 955 EUR | -340 |
| S&P 500 | Daily | n/a | 7 | 57.14 | 698 EUR | -268 |
| Gold | 5 min | n/a | 670 | 29.25 | 316 EUR | -283 |
Charts
Top 10 of 20 runs. The full list is in the table above.
The code
// ============================================================== // Volume Breakout Near Yearly High // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long only // Timeframe tested: 10 minutes // ============================================================== DEFPARAM CumulateOrders = false emafast = ExponentialAverage[20](close) emaslow = ExponentialAverage[50](close) highyear = highest[252](high) avgvol = Average[20](volume) myRsi = RSI[14](close) rsilo = lowest[14](myRsi) rsihi = highest[14](myRsi)
30 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 20 market and timeframe combinations. The best run by trade count was Brent Crude, 10 minutes, with 1,428 trades.
The best run had a maximum drawdown of 5,428 EUR at the tested position size, against a net result of 5,886 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.