The strategy sells short after two consecutive lower closes while stochastic %K is above its 3-bar average and below 50, once 4 consecutive bars close at or below their open. Once latched, longs never trigger and shorts close when the reversal state turns +1.
Best run of 4. GBP/USD, 1 hour, spread 1.5, from run sweeps:2026-10-11-GBPUSD-1h-opt.tsv:5.
| Period | Up to 2026-10-11 |
| Instrument | GBP/USD, 1 hour |
| 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 | 1 hour | n/a | 1,105 | 40.72 | 5,634 USD | -3,713 |
| USD/JPY | Daily | n/a | 74 | 47.30 | 1,665,740 USD | -760,190 |
| Brent Crude | Daily | n/a | 31 | 35.48 | 6,352 EUR | -5,930 |
| GBP/USD | 4 hours | n/a | 246 | 42.28 | 5,002 USD | -2,961 |
Charts
The code
// ============================================================== // Stochastic Reversal With Down Bar Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE myK = 0 ONCE kvalid = 0 ONCE revpos = 0 ONCE counter = 0 ONCE posprice = 0 hh = highest[14](high) ll = lowest[14](low)
49 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 4 market and timeframe combinations. The best run by trade count was GBP/USD, 1 hour, with 1,105 trades.
The best run had a maximum drawdown of 3,713 USD at the tested position size, against a net result of 5,634 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.