It buys when the 4-period SMA crosses above the 30-period SMA and closes the long when it crosses below. The strategy has no stop loss or profit target.
Best run of 16. Nasdaq 100, Daily, spread 3, from run pf:2026-10-04-NAS100-D.tsv:1.
| 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 | 1.99 | 294 | 38.10 | 19,010 EUR | -3,745 |
| S&P 500 | Daily | 1.61 | 392 | 35.20 | 3,564 EUR | -709 |
| USD/JPY | Daily | n/a | 360 | 34.17 | 843,860 USD | -461,550 |
| USD/JPY | 1 hour | n/a | 3,615 | 32.42 | 668,870 USD | -219,650 |
| USD/JPY | 30 min | n/a | 5,158 | 30.34 | 516,420 USD | -180,240 |
| Nikkei 225 | Daily | n/a | 304 | 34.54 | 47,097 USD | -12,308 |
| Dow Jones | Daily | n/a | 382 | 39.53 | 25,401 EUR | -6,470 |
| Nikkei 225 | 4 hours | n/a | 694 | 33.86 | 17,603 USD | -15,314 |
| DAX 40 | Daily | n/a | 391 | 40.41 | 12,070 EUR | -3,773 |
| Nasdaq 100 | 1 hour | n/a | 3,085 | 32.58 | 11,592 EUR | -3,853 |
| Dow Jones | 4 hours | n/a | 276 | 39.49 | 11,080 EUR | -7,431 |
| Nasdaq 100 | 4 hours | n/a | 803 | 36.74 | 10,863 EUR | -6,061 |
| DAX 40 | 1 hour | n/a | 2,855 | 33.03 | 10,386 EUR | -3,677 |
| Gold | 4 hours | n/a | 810 | 34.94 | 2,812 EUR | -940 |
| Gold | Daily | n/a | 384 | 30.21 | 2,811 EUR | -1,185 |
| Gold | 1 hour | n/a | 3,080 | 30.94 | 2,741 EUR | -803 |
Charts
Top 10 of 16 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Fast SMA Crossover Long Only // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false smashort = Average[4](close) smalong = Average[30](close)
10 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 | 19,010.40 EUR |
| Net, long run | 19,222.70 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 16 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 1.99 over 294 trades.
The best run had a maximum drawdown of 3,745 EUR at the tested position size, against a net result of 19,010 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.