The strategy buys at market when the stochastic reversal state is bullish and the smoothed Stochastic RSI is above 80, and sells short when both are bearish with the reading below 20. Positions close when the two states disagree.
Best run of 6. DAX 40, 1 hour, spread 3, from run sweeps:2026-10-11-DAX40-1h-opt.tsv:38.
| Period | Up to 2026-10-11 |
| Instrument | DAX 40, 1 hour |
| Spread | 3 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 |
|---|---|---|---|---|---|---|
| DAX 40Best run | 1 hour | n/a | 3,979 | 39.71 | 5,394 EUR | -5,299 |
| USD/JPY | Daily | n/a | 455 | 42.20 | 2,071,350 USD | -522,400 |
| Nikkei 225 | Daily | n/a | 380 | 42.11 | 23,748 USD | -16,347 |
| Silver | 4 hours | n/a | 1,106 | 38.16 | 23,319 USD | -13,614 |
| Gold | Daily | n/a | 471 | 42.46 | 2,201 EUR | -1,010 |
| Gold | 4 hours | n/a | 1,133 | 39.81 | 1,219 EUR | -757 |
Charts
The code
// ============================================================== // Stochastic Reversal With StochRSI Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE possrsi = 0 ONCE sincebad = 1000 ONCE sincebadr = 1000 ll = lowest[14](low) hh = highest[14](high)
61 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 6 market and timeframe combinations. The best run by trade count was DAX 40, 1 hour, with 3,979 trades.
The best run had a maximum drawdown of 5,299 EUR at the tested position size, against a net result of 5,394 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.