It goes long after two consecutive higher closes while stochastic %K is above 50 and below its 3-bar average, and shorts the mirror setup. Longs also need the signal to noise value above its 29-bar average, and shorts need it below.
Best run of 11. USD/JPY, 10 min, spread 1, from run sweeps:2026-10-11-USDJPY-10m-opt.tsv:36.
| 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 | 3,837 | 35.42 | 341,420 USD | -216,130 |
| USD/JPY | Daily | n/a | 253 | 39.53 | 2,037,780 USD | -518,500 |
| USD/JPY | 30 min | n/a | 3,738 | 36.97 | 624,310 USD | -371,750 |
| EUR/USD | Daily | n/a | 245 | 39.59 | 66,741 USD | -61,661 |
| Nikkei 225 | Daily | n/a | 212 | 39.62 | 27,711 USD | -17,161 |
| Brent Crude | Daily | n/a | 96 | 38.54 | 17,997 EUR | -6,721 |
| US Crude Oil | Daily | n/a | 200 | 41.50 | 12,103 EUR | -11,234 |
| DAX 40 | 30 min | n/a | 3,824 | 36.79 | 8,994 EUR | -6,109 |
| Gold | 30 min | n/a | 3,754 | 35.14 | 2,649 EUR | -1,093 |
| Gold | Daily | n/a | 255 | 38.04 | 1,811 EUR | -1,240 |
| Gold | 1 hour | n/a | 2,312 | 35.64 | 1,220 EUR | -1,186 |
Charts
Top 10 of 11 runs. The full list is in the table above.
The code
// ============================================================== // Stochastic Reversal With Signal To Noise // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 10 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE sincebad = 1000 ll = lowest[14](low) hh = highest[14](high)
56 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 11 market and timeframe combinations. The best run by trade count was USD/JPY, 10 minutes, with 3,837 trades.
The best run had a maximum drawdown of 216,130 USD at the tested position size, against a net result of 341,420 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.