The strategy buys when the close crosses above its 30-period simple moving average and sells the long when the close crosses back below it. It trades 1 contract at a time and uses no stop or target.
Best run of 16. DAX 40, 1 hour, spread 3, from run sweeps:2026-10-04-DAX40-1h-opt.tsv:53.
| Period | Up to 2026-10-04 |
| Instrument | DAX 40, 1 hour |
| 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 |
|---|---|---|---|---|---|---|
| DAX 40Best run | 1 hour | n/a | 5,161 | 23.68 | 5,409 EUR | -4,300 |
| EUR/USD | Daily | n/a | 576 | 25.69 | 71,410 USD | -55,988 |
| Nikkei 225 | Daily | n/a | 531 | 27.50 | 37,150 USD | -13,981 |
| Silver | 4 hours | n/a | 1,432 | 22.77 | 28,085 USD | -20,327 |
| Nikkei 225 | 4 hours | n/a | 1,171 | 25.88 | 25,469 USD | -9,959 |
| Dow Jones | Daily | n/a | 657 | 29.53 | 23,266 EUR | -6,825 |
| Nasdaq 100 | 4 hours | n/a | 1,368 | 25.73 | 13,091 EUR | -4,515 |
| Nasdaq 100 | Daily | n/a | 517 | 29.98 | 12,965 EUR | -5,527 |
| DAX 40 | Daily | n/a | 642 | 31.93 | 11,776 EUR | -4,201 |
| Dow Jones | 4 hours | n/a | 462 | 27.49 | 10,357 EUR | -7,534 |
| Brent Crude | Daily | n/a | 244 | 27.87 | 10,312 EUR | -9,634 |
| DAX 40 | 4 hours | n/a | 1,407 | 25.66 | 6,815 EUR | -4,151 |
| Gold | 4 hours | n/a | 1,344 | 25.00 | 2,730 EUR | -1,084 |
| S&P 500 | Daily | n/a | 683 | 28.70 | 2,708 EUR | -927 |
| Gold | Daily | n/a | 642 | 22.90 | 2,271 EUR | -1,326 |
| S&P 500 | 4 hours | n/a | 1,419 | 26.15 | 1,254 EUR | -1,022 |
Charts
Top 10 of 16 runs. The full list is in the table above.
The code
// ============================================================== // Price Crosses 30-Period SMA // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false sma = Average[30](close)
13 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 16 market and timeframe combinations. The best run by trade count was DAX 40, 1 hour, with 5,161 trades.
The best run had a maximum drawdown of 4,300 EUR at the tested position size, against a net result of 5,409 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.