The strategy buys when the Stochastic RSI %K line crosses above %D during a bullish EMA stack and the MACD is below zero but above its signal line. It sells short on the mirror setup, with ATR-based stops and targets.
Best run of 9. Nikkei 225, 1 hour, spread 10, from run sweeps:2026-10-11-NIKKEI-1h-opt.tsv:37.
| Period | Up to 2026-10-11 |
| Instrument | Nikkei 225, 1 hour |
| Spread | 10 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 |
|---|---|---|---|---|---|---|
| Nikkei 225Best run | 1 hour | n/a | 248 | 58.47 | 3,080 USD | -2,048 |
| Dow Jones | Daily | n/a | 35 | 68.57 | 4,926 EUR | -1,251 |
| Silver | Daily | n/a | 36 | 66.67 | 3,870 USD | -715 |
| Brent Crude | 4 hours | n/a | 48 | 62.50 | 2,398 EUR | -591 |
| US Crude Oil | 4 hours | n/a | 66 | 66.67 | 2,232 EUR | -1,545 |
| Dow Jones | 30 min | n/a | 213 | 62.44 | 1,915 EUR | -1,210 |
| FTSE 100 | Daily | n/a | 29 | 75.86 | 1,116 EUR | -338 |
| S&P 500 | 4 hours | n/a | 63 | 63.49 | 352 EUR | -156 |
| Gold | Daily | n/a | 36 | 66.67 | 325 EUR | -92.00 |
Charts
The code
// ============================================================== // Stochastic RSI Trend Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE raw = 50 myRsi = RSI[14](close) rhi = highest[14](myRsi) rlo = lowest[14](myRsi)
33 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 9 market and timeframe combinations. The best run by trade count was Nikkei 225, 1 hour, with 248 trades.
The best run had a maximum drawdown of 2,048 USD at the tested position size, against a net result of 3,080 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.