The strategy buys at market when the stochastic reversal state is bullish and the smoothed SMI Ergodic reading is above 0.5, and sells short when both are bearish with the reading below -0.5. Positions close when the two states disagree.
Best run of 10. USD/JPY, 10 min, spread 1, from run sweeps:2026-10-11-USDJPY-10m-opt.tsv:27.
| Period | Up to 2026-10-11 |
| Instrument | USD/JPY, 10 minutes |
| Spread | 1 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | 10 min | n/a | 2,423 | 37.64 | 420,480 USD | -156,250 |
| USD/JPY | Daily | n/a | 161 | 42.86 | 2,025,760 USD | -680,450 |
| Nikkei 225 | Daily | n/a | 140 | 39.29 | 43,163 USD | -14,869 |
| Brent Crude | Daily | n/a | 71 | 39.44 | 13,725 EUR | -7,354 |
| US Crude Oil | 30 min | n/a | 2,297 | 38.66 | 8,409 EUR | -5,436 |
| US Crude Oil | 1 hour | n/a | 1,181 | 39.20 | 7,540 EUR | -6,264 |
| S&P 500 | Daily | n/a | 185 | 36.22 | 2,918 EUR | -2,074 |
| Gold | Daily | n/a | 169 | 38.46 | 1,701 EUR | -1,086 |
| Gold | 1 hour | n/a | 1,524 | 38.65 | 1,658 EUR | -1,224 |
| Gold | 30 min | n/a | 2,350 | 37.11 | 1,405 EUR | -897 |
Charts
The code
// ============================================================== // Stochastic Reversal With SMI Ergodic // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 10 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE possmi = 0 ONCE sincebad = 1000 ONCE smi = 0 ll = lowest[14](low) hh = highest[14](high)
58 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 10 market and timeframe combinations. The best run by trade count was USD/JPY, 10 minutes, with 2,423 trades.
The best run had a maximum drawdown of 156,250 USD at the tested position size, against a net result of 420,480 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.