The strategy buys when price crosses above its 50-period simple moving average and sells when it crosses back below it. It holds one long position at a time and takes no short trades.
Best run of 17. Nasdaq 100, Daily, spread 3, from run pf:2026-10-12-NAS100-D.tsv:23.
| Period | Up to 2026-10-12 |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | Daily | 1.84 | 386 | 26.94 | 18,322 EUR | -3,896 |
| S&P 500 | Daily | 1.75 | 498 | 26.31 | 4,037 EUR | -674 |
| Dow Jones | Daily | 1.58 | 497 | 25.75 | 24,175 EUR | -5,036 |
| EUR/USD | Daily | n/a | 420 | 22.86 | 76,469 USD | -51,434 |
| Nikkei 225 | Daily | n/a | 422 | 23.46 | 44,841 USD | -14,130 |
| Silver | 4 hours | n/a | 1,056 | 19.13 | 34,626 USD | -18,376 |
| Nikkei 225 | 4 hours | n/a | 941 | 21.57 | 19,122 USD | -13,273 |
| Dow Jones | 4 hours | n/a | 347 | 23.34 | 12,427 EUR | -6,502 |
| Nasdaq 100 | 4 hours | n/a | 1,039 | 24.06 | 12,084 EUR | -4,198 |
| DAX 40 | Daily | n/a | 493 | 26.98 | 9,980 EUR | -4,988 |
| US Crude Oil | Daily | n/a | 414 | 25.36 | 9,918 EUR | -7,385 |
| Dow Jones | 1 hour | n/a | 1,341 | 22.22 | 9,132 EUR | -6,794 |
| DAX 40 | 4 hours | n/a | 1,078 | 22.91 | 7,147 EUR | -4,772 |
| Nasdaq 100 | 1 hour | n/a | 4,057 | 21.35 | 5,881 EUR | -5,834 |
| Gold | Daily | n/a | 496 | 20.77 | 3,113 EUR | -809 |
| Gold | 4 hours | n/a | 1,025 | 21.95 | 2,624 EUR | -1,027 |
| S&P 500 | 4 hours | n/a | 1,104 | 23.19 | 1,654 EUR | -1,084 |
Charts
Top 10 of 17 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // SMA 50 Crossover Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ma = Average[50](close)
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 17 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 1.84 over 386 trades.
The best run had a maximum drawdown of 3,896 EUR at the tested position size, against a net result of 18,322 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.