The strategy trades oversold and overbought readings that line up across stochastic, RSI and Awesome Oscillator momentum. It buys when the smoothed %K is below 20 with RSI(10) below 30, and sells short on the mirror setup, using ATR(14) based stops and targets.
Best run of 3. S&P 500, 4 hours, spread 1, from run sweeps:2026-10-11-USA500-4h-opt.tsv:93.
| Period | Up to 2026-10-11 |
| Instrument | S&P 500, 4 hours |
| 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 |
|---|---|---|---|---|---|---|
| S&P 500Best run | 4 hours | n/a | 514 | 54.47 | 347 EUR | -285 |
| Silver | 4 hours | n/a | 412 | 54.13 | 7,969 USD | -3,918 |
| Brent Crude | 4 hours | n/a | 241 | 58.51 | 2,127 EUR | -831 |
Charts
The code
// ============================================================== // Stochastic RSI Bracket Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ao = Average[5](MedianPrice) - Average[34](MedianPrice) hh = highest[14](high) ll = lowest[14](low)
26 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 3 market and timeframe combinations. The best run by trade count was S&P 500, 4 hours, with 514 trades.
The best run had a maximum drawdown of 285 EUR at the tested position size, against a net result of 347 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.