The strategy buys when the 252-bar percentage return crosses above its 12-bar moving average and sells when it crosses below. It trades long positions only.
Best run of 4. Nasdaq 100, 4 hours, spread 3, from run sweeps:2026-10-07-NAS100-4h-opt.tsv:10.
| Period | Up to 2026-10-07 |
| Instrument | Nasdaq 100, 4 hours |
| 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-07 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | 4 hours | n/a | 2,489 | 38.45 | 7,411 EUR | -4,374 |
| Nikkei 225 | Daily | n/a | 938 | 40.09 | 28,224 USD | -17,574 |
| Dow Jones | Daily | n/a | 1,128 | 41.22 | 23,124 EUR | -9,001 |
| Nasdaq 100 | Daily | n/a | 930 | 38.71 | 10,001 EUR | -4,763 |
Charts
The code
// ============================================================== // Return Versus Moving Average Crossover // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ret = (close / close[252] - 1) * 100 retma = Average[12](ret)
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 4 market and timeframe combinations. The best run by trade count was Nasdaq 100, 4 hours, with 2,489 trades.
The best run had a maximum drawdown of 4,374 EUR at the tested position size, against a net result of 7,411 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.