Buys when Stochastic RSI %K crosses above 20 with Chaikin Money Flow above 0, ATR above its 20 bar average, and price above the 200 EMA. Sells short when %K crosses below 80 with Chaikin Money Flow below 0 and the same ATR filter.
Best run of 10. Brent Crude, 15 min, spread 3, from run sweeps:2026-10-03-BRENT-15m-opt.tsv:3.
| Period | Up to 2026-10-03 |
| Instrument | Brent Crude, 15 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-03 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Brent CrudeBest run | 15 min | n/a | 1,254 | 39.71 | 8,204 EUR | -7,339 |
| Silver | 2 min | n/a | 1,086 | 38.86 | 21,641 USD | -19,682 |
| US Crude Oil | 4 hours | n/a | 121 | 47.11 | 13,838 EUR | -4,514 |
| Nasdaq 100 | Daily | n/a | 15 | 53.33 | 12,912 EUR | -10,123 |
| Nasdaq 100 | 30 min | n/a | 706 | 43.63 | 12,741 EUR | -5,268 |
| DAX 40 | Daily | n/a | 17 | 58.82 | 9,973 EUR | -5,928 |
| Brent Crude | 1 hour | n/a | 330 | 43.64 | 6,655 EUR | -6,002 |
| GBP/USD | Daily | n/a | 25 | 52.00 | 3,408 USD | -2,759 |
| S&P 500 | Daily | n/a | 15 | 40.00 | 3,247 EUR | -1,984 |
| Gold | 1 min | n/a | 968 | 40.60 | 924 EUR | -653 |
Charts
The code
// ============================================================== // Stochastic RSI And CMF Trend // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 15 minutes // ============================================================== DEFPARAM CumulateOrders = false ema = ExponentialAverage[200](close)
46 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 10 market and timeframe combinations. The best run by trade count was Brent Crude, 15 minutes, with 1,254 trades.
The best run had a maximum drawdown of 7,339 EUR at the tested position size, against a net result of 8,204 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.