Buys when the 10-period simple moving average crosses above the 30-period one and sells when it crosses back below. Only long trades are taken.
Best run of 25. Nasdaq 100, Daily, spread 3, from run pf:2026-10-05-NAS100-D.tsv:15.
| Period | Up to 2026-10-05 |
| 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | Daily | 2.21 | 199 | 49.75 | 21,228 EUR | -3,917 |
| S&P 500 | Daily | 1.97 | 284 | 42.25 | 4,504 EUR | -731 |
| Gold | Daily | 1.95 | 265 | 37.36 | 3,338 EUR | -809 |
| USD/JPY | Daily | n/a | 256 | 41.41 | 1,356,340 USD | -494,300 |
| USD/JPY | 1 hour | n/a | 2,697 | 38.56 | 771,730 USD | -201,510 |
| USD/JPY | 30 min | n/a | 3,843 | 36.27 | 470,870 USD | -179,800 |
| USD/JPY | 15 min | n/a | 3,966 | 34.47 | 186,900 USD | -186,040 |
| Nikkei 225 | Daily | n/a | 220 | 38.64 | 27,928 USD | -18,492 |
| Nikkei 225 | 4 hours | n/a | 495 | 39.80 | 26,724 USD | -12,065 |
| Dow Jones | Daily | n/a | 280 | 41.79 | 20,656 EUR | -6,531 |
| Dow Jones | 30 min | n/a | 1,605 | 38.88 | 14,741 EUR | -10,374 |
| DAX 40 | Daily | n/a | 281 | 46.62 | 14,558 EUR | -4,087 |
| DAX 40 | 1 hour | n/a | 2,134 | 38.89 | 12,950 EUR | -3,616 |
| Nasdaq 100 | 4 hours | n/a | 606 | 40.92 | 12,093 EUR | -5,366 |
| Dow Jones | 4 hours | n/a | 209 | 41.63 | 9,829 EUR | -6,930 |
| DAX 40 | 30 min | n/a | 3,875 | 36.77 | 9,321 EUR | -4,961 |
| Nasdaq 100 | 30 min | n/a | 3,980 | 35.08 | 8,256 EUR | -6,545 |
| Brent Crude | Daily | n/a | 96 | 41.67 | 8,251 EUR | -7,939 |
| Nasdaq 100 | 1 hour | n/a | 2,307 | 36.41 | 7,854 EUR | -4,635 |
| Brent Crude | 1 hour | n/a | 1,216 | 37.75 | 4,954 EUR | -4,418 |
| DAX 40 | 4 hours | n/a | 610 | 40.16 | 4,267 EUR | -3,378 |
| Gold | 1 hour | n/a | 2,270 | 36.48 | 3,346 EUR | -1,168 |
| Gold | 4 hours | n/a | 602 | 40.03 | 2,869 EUR | -1,305 |
| S&P 500 | 4 hours | n/a | 619 | 40.71 | 1,632 EUR | -1,123 |
| Gold | 30 min | n/a | 3,993 | 33.33 | 1,530 EUR | -1,073 |
Charts
Top 10 of 25 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Moving Average Crossover Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false smaf = Average[10](close) smas = Average[30](close)
11 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 | 21,228.20 EUR |
| Net, long run | 21,535.40 EUR |
| Net on the older data alone | 307.20 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 25 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 2.21 over 199 trades.
The best run had a maximum drawdown of 3,917 EUR at the tested position size, against a net result of 21,228 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.