The system buys when the trend flips up after the close breaks above a band around a zero lag moving average, and holds until the trend flips down. It trades the long side only.
Best run of 28. Nasdaq 100, Daily, spread 3, from run pf:2026-10-12-NAS100-D.tsv:22.
| 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 | 2.06 | 161 | 47.83 | 14,933 EUR | -3,488 |
| Gold | 30 min | 1.27 | 2,437 | 42.43 | 3,720 EUR | -553 |
| DAX 40 | 30 min | 1.21 | 2,538 | 42.51 | 22,239 EUR | -3,338 |
| USD/JPY | 30 min | 1.13 | 2,398 | 42.29 | 644,660 USD | -121,530 |
| USD/JPY | Daily | n/a | 165 | 43.64 | 780,880 USD | -649,100 |
| USD/JPY | 1 hour | n/a | 1,713 | 44.37 | 775,190 USD | -270,650 |
| Nikkei 225 | 4 hours | n/a | 319 | 47.96 | 42,683 USD | -7,791 |
| Nikkei 225 | 1 hour | n/a | 1,283 | 42.95 | 27,425 USD | -10,229 |
| Nikkei 225 | Daily | n/a | 161 | 45.34 | 22,691 USD | -13,104 |
| Nikkei 225 | 5 min | n/a | 2,395 | 41.17 | 21,592 USD | -10,806 |
| Nikkei 225 | 30 min | n/a | 2,559 | 41.23 | 19,099 USD | -10,936 |
| Nasdaq 100 | 30 min | n/a | 2,669 | 42.38 | 14,525 EUR | -4,867 |
| Dow Jones | Daily | n/a | 197 | 45.18 | 13,785 EUR | -7,285 |
| DAX 40 | Daily | n/a | 236 | 48.31 | 12,302 EUR | -3,589 |
| Dow Jones | 30 min | n/a | 1,065 | 42.07 | 12,187 EUR | -11,446 |
| Nasdaq 100 | 1 hour | n/a | 1,683 | 42.96 | 11,117 EUR | -3,184 |
| Dow Jones | 4 hours | n/a | 133 | 48.87 | 9,900 EUR | -8,951 |
| Nasdaq 100 | 4 hours | n/a | 438 | 46.12 | 8,363 EUR | -5,262 |
| DAX 40 | 4 hours | n/a | 408 | 44.61 | 7,621 EUR | -5,369 |
| Nasdaq 100 | 15 min | n/a | 2,419 | 40.47 | 5,652 EUR | -5,548 |
| DAX 40 | 1 hour | n/a | 1,501 | 44.10 | 5,080 EUR | -5,008 |
| Gold | 4 hours | n/a | 420 | 45.24 | 2,457 EUR | -920 |
| S&P 500 | Daily | n/a | 204 | 44.61 | 2,449 EUR | -1,027 |
| S&P 500 | 30 min | n/a | 2,633 | 42.65 | 2,180 EUR | -1,251 |
| S&P 500 | 4 hours | n/a | 426 | 45.77 | 2,153 EUR | -1,001 |
| Gold | 1 hour | n/a | 1,558 | 42.68 | 2,153 EUR | -823 |
| Gold | Daily | n/a | 176 | 43.75 | 1,645 EUR | -1,043 |
| S&P 500 | 1 hour | n/a | 1,668 | 40.89 | 1,279 EUR | -1,277 |
Charts
Top 10 of 28 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Zero Lag Trend Band Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE trend = 0 zsrc = close + (close - close[34]) zlema = ExponentialAverage[70](zsrc) vol = highest[210](AverageTrueRange[70](close)) * 1.2 upper = zlema + vol lower = zlema - vol
20 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 28 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 2.06 over 161 trades.
The best run had a maximum drawdown of 3,488 EUR at the tested position size, against a net result of 14,933 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.