The idea sells short when a 14-bar stochastic %K reversal pattern coincides with a key reversal down bar. The short is closed when that combined condition no longer holds.
Best run of 1. Brent Crude, Daily, spread 3, from run sweeps:2026-10-11-BRENT-D-opt.tsv:64.
| Period | Up to 2026-10-11 |
| Instrument | Brent Crude, Daily |
| 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 |
|---|---|---|---|---|---|---|
| Brent CrudeBest run | Daily | n/a | 296 | 48.99 | 2,944 EUR | -2,642 |
Charts
The code
// ============================================================== // Stochastic Reversal Key Down Short // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Short only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE sincebad = 1000 ll = lowest[14](low) hh = highest[14](high)
38 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 one combination, Brent Crude, Daily, with 296 trades.
The best run had a maximum drawdown of 2,642 EUR at the tested position size, against a net result of 2,944 EUR.
It only takes short trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.