Buys 1 contract when the close is above the 200 period EMA, the 20 period EMA is above the 50 period EMA, and MACD crosses above its signal line with RSI between 29 and 70. Exits on a 2% stop or 1.5% target.
Best run of 27. US Crude Oil, 30 min, spread 3, from run sweeps:2026-10-04-CRUDE-30m-opt.tsv:2.
| Period | Up to 2026-10-04 |
| Instrument | US Crude Oil, 30 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 |
|---|---|---|---|---|---|---|
| US Crude OilBest run | 30 min | n/a | 1,061 | 58.15 | 3,924 EUR | -2,521 |
| USD/JPY | 10 min | n/a | 157 | 64.33 | 489,090 USD | -235,450 |
| USD/JPY | 1 hour | n/a | 357 | 60.22 | 459,190 USD | -310,640 |
| USD/JPY | 2 min | n/a | 22 | 68.18 | 154,160 USD | -101,800 |
| Dow Jones | 15 min | n/a | 331 | 60.12 | 10,826 EUR | -5,844 |
| Nasdaq 100 | 1 min | n/a | 73 | 65.75 | 5,517 EUR | -4,401 |
| DAX 40 | 4 hours | n/a | 282 | 59.57 | 4,245 EUR | -2,267 |
| Nasdaq 100 | 4 hours | n/a | 314 | 61.46 | 4,043 EUR | -2,940 |
| US Crude Oil | 10 min | n/a | 869 | 59.15 | 3,988 EUR | -3,859 |
| Brent Crude | 3 min | n/a | 411 | 60.34 | 3,844 EUR | -2,068 |
| GBP/USD | Daily | n/a | 137 | 62.04 | 3,556 USD | -1,707 |
| FTSE 100 | 5 min | n/a | 95 | 66.32 | 2,471 EUR | -949 |
| US Crude Oil | 3 min | n/a | 459 | 59.91 | 2,411 EUR | -2,284 |
| FTSE 100 | 10 min | n/a | 213 | 61.03 | 2,294 EUR | -1,063 |
| US Crude Oil | 4 hours | n/a | 270 | 60.00 | 2,259 EUR | -1,202 |
| S&P 500 | 15 min | n/a | 435 | 61.15 | 2,045 EUR | -1,412 |
| Gold | 10 min | n/a | 348 | 62.36 | 1,761 EUR | -1,117 |
| Gold | 15 min | n/a | 420 | 62.14 | 1,626 EUR | -1,189 |
| Gold | 2 min | n/a | 182 | 63.74 | 1,561 EUR | -1,037 |
| Gold | 30 min | n/a | 653 | 59.57 | 1,421 EUR | -867 |
| FTSE 100 | 3 min | n/a | 74 | 62.16 | 1,343 EUR | -1,139 |
| S&P 500 | 5 min | n/a | 149 | 61.74 | 1,300 EUR | -1,087 |
| S&P 500 | 1 hour | n/a | 541 | 59.52 | 1,248 EUR | -1,150 |
| Gold | 1 hour | n/a | 594 | 60.77 | 1,195 EUR | -670 |
| Gold | 4 hours | n/a | 262 | 63.74 | 1,067 EUR | -314 |
| S&P 500 | 1 min | n/a | 32 | 65.62 | 785 EUR | -521 |
| Gold | Daily | n/a | 185 | 59.46 | 408 EUR | -163 |
Charts
Top 10 of 27 runs. The full list is in the table above.
The code
// ============================================================== // Trend Filtered MACD Crossover // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false emaa = ExponentialAverage[20](close) emab = ExponentialAverage[50](close) emac = ExponentialAverage[200](close) myRsi = RSI[14](close) myMacd = MACDLine[12,26,9](close) signal = ExponentialAverage[9](myMacd)
10 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 27 market and timeframe combinations. The best run by trade count was US Crude Oil, 30 minutes, with 1,061 trades.
The best run had a maximum drawdown of 2,521 EUR at the tested position size, against a net result of 3,924 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.