Buys when the 3-bar average of a 3-bar z-score of close crosses above its 5-bar average, and sells when it crosses back below. Buys are skipped after 4 rising closes, sells after 4 falling closes, and triggers need 5 bars between them.
Best run of 5. Dow Jones, Daily, spread 3, from run pf:2026-10-13-DOW30-D.tsv:6.
| Period | Up to 2026-10-13 |
| Instrument | Dow Jones, 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-13 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Dow JonesBest run | Daily | 1.34 | 1,808 | 49.89 | 39,631 EUR | -6,273 |
| Dow Jones | 4 hours | n/a | 1,321 | 50.87 | 15,548 EUR | -8,951 |
| Nasdaq 100 | Daily | n/a | 1,394 | 48.64 | 9,039 EUR | -4,768 |
| DAX 40 | Daily | n/a | 1,872 | 48.56 | 7,381 EUR | -5,523 |
| S&P 500 | Daily | n/a | 1,874 | 45.46 | 3,219 EUR | -938 |
Charts
The code
// ============================================================== // Smoothed Z-Score Crossover // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE myZ = 0 ONCE lastentry = -1000 ONCE lastexit = -1000 mean = Average[3](close) sd = STD[3](close)
25 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 5 market and timeframe combinations. The best run was Dow Jones, Daily, with a profit factor of 1.34 over 1,808 trades.
The best run had a maximum drawdown of 6,273 EUR at the tested position size, against a net result of 39,631 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.