Buys 1 contract when the 12 period SMA crosses above the 26 period SMA. Sells the long when the 12 period SMA crosses below the 26 period SMA.
Best run of 21. Nasdaq 100, Daily, spread 3, from run pf:2026-10-04-NAS100-D.tsv:5.
| Period | Up to 2026-10-04 |
| Instrument | Nasdaq 100, Daily |
| 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 |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | Daily | 2.29 | 229 | 48.47 | 22,109 EUR | -4,127 |
| S&P 500 | Daily | 1.75 | 311 | 44.69 | 4,030 EUR | -948 |
| Gold | 1 hour | 1.27 | 2,550 | 38.31 | 3,580 EUR | -818 |
| USD/JPY | Daily | n/a | 279 | 45.16 | 1,242,520 USD | -481,680 |
| USD/JPY | 1 hour | n/a | 2,929 | 39.47 | 1,030,600 USD | -269,140 |
| USD/JPY | 30 min | n/a | 4,209 | 37.73 | 624,370 USD | -199,740 |
| Nikkei 225 | Daily | n/a | 238 | 43.70 | 33,594 USD | -14,584 |
| Nikkei 225 | 4 hours | n/a | 542 | 45.02 | 30,224 USD | -12,465 |
| Dow Jones | Daily | n/a | 301 | 42.86 | 19,497 EUR | -6,748 |
| DAX 40 | Daily | n/a | 301 | 46.18 | 12,556 EUR | -7,940 |
| Dow Jones | 30 min | n/a | 1,789 | 38.29 | 11,586 EUR | -11,024 |
| US Crude Oil | Daily | n/a | 232 | 43.53 | 11,382 EUR | -8,566 |
| DAX 40 | 1 hour | n/a | 2,357 | 40.90 | 10,363 EUR | -3,294 |
| Nasdaq 100 | 4 hours | n/a | 653 | 43.03 | 9,952 EUR | -4,711 |
| Brent Crude | Daily | n/a | 111 | 43.24 | 8,873 EUR | -6,917 |
| DAX 40 | 30 min | n/a | 4,247 | 37.11 | 8,635 EUR | -5,255 |
| Nasdaq 100 | 1 hour | n/a | 2,548 | 37.44 | 7,254 EUR | -4,510 |
| DAX 40 | 4 hours | n/a | 647 | 41.11 | 5,388 EUR | -4,241 |
| Gold | Daily | n/a | 296 | 39.19 | 3,723 EUR | -1,084 |
| Gold | 4 hours | n/a | 684 | 40.50 | 2,328 EUR | -1,511 |
| S&P 500 | 4 hours | n/a | 655 | 43.66 | 1,479 EUR | -1,314 |
Charts
Top 10 of 21 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // SMA Crossover Trend // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false fast = Average[12](close) slow = Average[26](close)
13 more lines: the entry and exit rules.
Setup
Nasdaq 100 had no history beyond the standard run, so both runs used 10,000 bars.
| Bars available | 10,000 |
| Net, standard 200,000-bar run | 22,108.80 EUR |
| Net, long run | 22,321.10 EUR |
| Net on the older data alone | 212.30 EUR |
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 21 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 2.29 over 229 trades.
The best run had a maximum drawdown of 4,127 EUR at the tested position size, against a net result of 22,109 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.