Buys when a reversal pattern on closing prices and a smoothed Ergodic CSI both point up, and sells short when both point down. Any open position is closed when the two signals disagree.
Best run of 12. Nasdaq 100, 4 hours, spread 3, from run sweeps:2026-10-12-NAS100-4h-opt.tsv:7.
| Period | Up to 2026-10-12 |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | 4 hours | n/a | 857 | 48.19 | 7,751 EUR | -5,147 |
| Nikkei 225 | Daily | n/a | 67 | 44.78 | 48,515 USD | -10,541 |
| Dow Jones | Daily | n/a | 86 | 54.65 | 29,363 EUR | -9,474 |
| Dow Jones | 4 hours | n/a | 386 | 56.48 | 19,732 EUR | -7,426 |
| Nikkei 225 | 4 hours | n/a | 382 | 44.76 | 19,380 USD | -9,355 |
| Nasdaq 100 | Daily | n/a | 70 | 58.57 | 15,923 EUR | -5,632 |
| DAX 40 | Daily | n/a | 82 | 52.44 | 14,172 EUR | -6,275 |
| Brent Crude | Daily | n/a | 32 | 40.62 | 7,376 EUR | -6,949 |
| DAX 40 | 4 hours | n/a | 617 | 49.27 | 6,022 EUR | -5,515 |
| S&P 500 | Daily | n/a | 94 | 50.00 | 4,829 EUR | -1,273 |
| Gold | Daily | n/a | 79 | 43.04 | 2,868 EUR | -1,387 |
| Gold | 4 hours | n/a | 708 | 46.19 | 1,634 EUR | -1,012 |
Charts
Top 10 of 12 runs. The full list is in the table above.
The code
// ============================================================== // Reversal With Ergodic CSI // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE sincebad = 1000 ONCE plus = 0 ONCE minus = 0 ONCE postwo = 0 ll = lowest[14](low) hh = highest[14](high)
80 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 12 market and timeframe combinations. The best run by trade count was Nasdaq 100, 4 hours, with 857 trades.
The best run had a maximum drawdown of 5,147 EUR at the tested position size, against a net result of 7,750 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.