It buys when the smoothed stochastic %D crosses above 23 and sells short when it crosses below 78.5. It closes longs when %D crosses above 78.5 and shorts when it crosses below 23.
Best run of 13. Brent Crude, 10 min, spread 3, from run sweeps:2026-10-12-BRENT-10m-opt.tsv:9.
| Period | Up to 2026-10-12 |
| Instrument | Brent Crude, 10 minutes |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Brent CrudeBest run | 10 min | n/a | 164 | 70.73 | 9,653 EUR | -5,421 |
| Silver | Daily | n/a | 6 | 100.00 | 33,750 USD | -6,941 |
| Nikkei 225 | 5 min | n/a | 149 | 65.77 | 20,780 USD | -13,555 |
| Dow Jones | 3 min | n/a | 131 | 63.36 | 11,382 EUR | -7,243 |
| Dow Jones | 5 min | n/a | 128 | 72.66 | 11,358 EUR | -7,993 |
| DAX 40 | 5 min | n/a | 148 | 68.92 | 10,630 EUR | -4,249 |
| DAX 40 | 30 min | n/a | 133 | 70.68 | 10,500 EUR | -4,949 |
| FTSE 100 | 30 min | n/a | 136 | 74.26 | 8,693 EUR | -2,804 |
| US Crude Oil | 10 min | n/a | 160 | 71.25 | 6,348 EUR | -5,197 |
| Dow Jones | 2 min | n/a | 127 | 63.78 | 6,203 EUR | -3,679 |
| FTSE 100 | 1 hour | n/a | 67 | 73.13 | 3,704 EUR | -3,298 |
| FTSE 100 | 15 min | n/a | 126 | 69.84 | 2,792 EUR | -2,677 |
| Gold | 1 min | n/a | 144 | 72.22 | 1,575 EUR | -445 |
Charts
Top 10 of 13 runs. The full list is in the table above.
The code
// ============================================================== // Slow Stochastic Band Crossover // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long & short // Timeframe tested: 10 minutes // ============================================================== DEFPARAM CumulateOrders = false hh = highest[400](high) ll = lowest[400](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 13 market and timeframe combinations. The best run by trade count was Brent Crude, 10 minutes, with 164 trades.
The best run had a maximum drawdown of 5,421 EUR at the tested position size, against a net result of 9,653 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.