Buys when the close is above 1.0001 times the previous close. Sells the long when the close is at or below 0.999 times the previous close.
Best run of 3. Dow Jones, 1 hour, spread 3, from run sweeps:2026-10-04-DOW30-1h-opt.tsv:50.
| Period | Up to 2026-10-04 |
| Instrument | Dow Jones, 1 hour |
| 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 |
|---|---|---|---|---|---|---|
| Dow JonesBest run | 1 hour | n/a | 5,030 | 37.73 | 12,840 EUR | -12,815 |
| USD/JPY | 2 min | n/a | 216 | 43.52 | 114,770 USD | -78,270 |
| S&P 500 | 1 min | n/a | 447 | 41.61 | 575 EUR | -506 |
Charts
The code
// ============================================================== // Previous Close Momentum Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false
9 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 3 market and timeframe combinations. The best run by trade count was Dow Jones, 1 hour, with 5,030 trades.
The best run had a maximum drawdown of 12,814 EUR at the tested position size, against a net result of 12,840 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.