Buys after a dragonfly doji whose low undercuts the lowest low of the prior 50 bars while RSI(14) holds above its prior 50-bar low. Sells short on the mirror gravestone doji, with stops at the candle extreme and targets at 2.5 times the risk.
Best run of 11. Nikkei 225, 1 hour, spread 10, from run pf:2026-10-05-NIKKEI-1h.tsv:5.
| Period | Up to 2026-10-05 |
| 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nikkei 225Best run | 1 hour | 2.07 | 114 | 27.19 | 6,662 USD | -1,392 |
| Nikkei 225 | 4 hours | n/a | 30 | 36.67 | 2,890 USD | -2,302 |
| Nikkei 225 | Daily | n/a | 15 | 40.00 | 2,247 USD | -1,123 |
| US Crude Oil | 4 hours | n/a | 30 | 36.67 | 2,015 EUR | -653 |
| Brent Crude | 4 hours | n/a | 13 | 46.15 | 1,896 EUR | -650 |
| FTSE 100 | Daily | n/a | 12 | 58.33 | 1,605 EUR | -944 |
| DAX 40 | Daily | n/a | 15 | 20.00 | 1,387 EUR | -709 |
| Silver | Daily | n/a | 5 | 40.00 | 869 USD | -292 |
| S&P 500 | Daily | n/a | 11 | 9.09 | 353 EUR | -248 |
| Gold | 4 hours | n/a | 31 | 38.71 | 156 EUR | -53.80 |
| Gold | Daily | n/a | 9 | 55.56 | 50.20 EUR | -26.30 |
Charts
Top 10 of 11 runs. The full list is in the table above.
The code
// ============================================================== // Doji Sweep With RSI Divergence // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false myRsi = RSI[14](close) crange = high - low body = abs(open - close) upwick = high - max(open, close) lowick = min(open, close) - low
31 more lines: the entry and exit rules.
Setup
Nikkei 225 had no history beyond the standard run, so both runs used 90,000 bars.
| Bars available | 90,000 |
| Net, standard 200,000-bar run | 6,662.00 USD |
| Net, long run | 6,662.00 USD |
| Net on the older data alone | 0.00 USD |
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 11 market and timeframe combinations. The best run was Nikkei 225, 1 hour, with a profit factor of 2.07 over 114 trades.
The best run had a maximum drawdown of 1,392 USD at the tested position size, against a net result of 6,662 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.