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. It also needs a cumulative volume price trend above its 23-bar average for longs, or below it for shorts.
Best run of 5. USD/JPY, 1 hour, spread 1, from run sweeps:2026-10-11-USDJPY-1h-opt.tsv:25.
| Period | Up to 2026-10-11 |
| Instrument | USD/JPY, 1 hour |
| 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 | 1 hour | n/a | 5,938 | 30.63 | 537,060 USD | -283,120 |
| Nikkei 225 | Daily | n/a | 146 | 34.25 | 14,421 USD | -11,802 |
| DAX 40 | Daily | n/a | 136 | 36.03 | 5,800 EUR | -4,720 |
| Gold | Daily | n/a | 194 | 38.66 | 1,325 EUR | -951 |
| Gold | 4 hours | n/a | 1,264 | 31.57 | 1,189 EUR | -1,008 |
Charts
The code
// ============================================================== // Stochastic Reversal With Price Volume Trend // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE sincebad = 1000 ONCE cum = 0 ONCE postwo = 0 ll = lowest[14](low) hh = highest[14](high)
53 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 5 market and timeframe combinations. The best run by trade count was USD/JPY, 1 hour, with 5,938 trades.
The best run had a maximum drawdown of 283,120 USD at the tested position size, against a net result of 537,060 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.