It goes long after closes rise over 3 bars while %K, read 1 bar back, is above 50 and below its 3-bar average, and shorts the mirror setup. Longs also need the 18-bar average above the index, and shorts need it below.
Best run of 2. USD/JPY, 10 min, spread 1, from run pf:2026-10-12-USDJPY-10m.tsv:1.
| Period | Up to 2026-10-12 |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | 10 min | 1.18 | 1,911 | 46.00 | 511,990 USD | -110,870 |
| DAX 40 | 30 min | n/a | 3,278 | 46.89 | 7,446 EUR | -5,953 |
Charts
The code
// ============================================================== // Stochastic Reversal With Smart Money Index // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 10 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE possmi = 0 ONCE nres = 1 hh = Highest[14](high) ll = Lowest[14](low)
52 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 2 market and timeframe combinations. The best run was USD/JPY, 10 minutes, with a profit factor of 1.18 over 1,911 trades.
The best run had a maximum drawdown of 110,870 USD at the tested position size, against a net result of 511,990 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.