The strategy buys at market when the stochastic reversal state is bullish and the pivot oscillator is above 50, and sells short when both are bearish with the oscillator below 50. Positions close when the two states disagree.
Best run of 5. GBP/USD, 4 hours, spread 1.5, from run sweeps:2026-10-11-GBPUSD-4h-opt.tsv:13.
| Period | Up to 2026-10-11 |
| Instrument | GBP/USD, 4 hours |
| Spread | 1.5 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 |
|---|---|---|---|---|---|---|
| GBP/USDBest run | 4 hours | n/a | 2,865 | 31.24 | 5,085 USD | -3,483 |
| USD/JPY | Daily | n/a | 888 | 30.29 | 1,472,250 USD | -638,830 |
| Silver | 4 hours | n/a | 2,022 | 29.13 | 23,648 USD | -15,516 |
| Brent Crude | Daily | n/a | 363 | 35.81 | 13,682 EUR | -5,871 |
| Gold | 4 hours | n/a | 1,986 | 30.26 | 884 EUR | -858 |
Charts
The code
// ============================================================== // Stochastic Reversal With RSI Pivot // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE sincebad = 1000 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 GBP/USD, 4 hours, with 2,865 trades.
The best run had a maximum drawdown of 3,483 USD at the tested position size, against a net result of 5,085 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.