The idea buys after a red candle is followed by a green candle that closes above the prior open, when the close is below the 20 period average. It sells the long when the close moves above the upper Bollinger Band.
Best run of 20. Nikkei 225, 1 hour, spread 10, from run pf:2026-10-04-NIKKEI-1h.tsv:4.
| Period | Up to 2026-10-04 |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nikkei 225Best run | 1 hour | 1.25 | 1,087 | 67.16 | 30,031 USD | -6,736 |
| USD/JPY | 4 hours | n/a | 427 | 69.79 | 320,870 USD | -219,550 |
| Dow Jones | Daily | n/a | 150 | 80.00 | 31,758 EUR | -8,615 |
| Nikkei 225 | 4 hours | n/a | 278 | 68.71 | 22,856 USD | -13,127 |
| Silver | Daily | n/a | 159 | 66.67 | 19,277 USD | -11,315 |
| Dow Jones | 4 hours | n/a | 116 | 78.45 | 14,662 EUR | -11,234 |
| Nasdaq 100 | 4 hours | n/a | 357 | 73.39 | 12,308 EUR | -5,308 |
| DAX 40 | Daily | n/a | 105 | 71.43 | 11,148 EUR | -5,547 |
| Dow Jones | 30 min | n/a | 961 | 73.05 | 10,393 EUR | -6,702 |
| Dow Jones | 1 hour | n/a | 496 | 71.77 | 10,008 EUR | -7,810 |
| Nasdaq 100 | 1 hour | n/a | 1,467 | 70.48 | 8,319 EUR | -5,173 |
| Dow Jones | 5 min | n/a | 2,258 | 69.75 | 6,540 EUR | -6,203 |
| DAX 40 | 4 hours | n/a | 348 | 68.97 | 6,452 EUR | -5,124 |
| FTSE 100 | Daily | n/a | 121 | 73.55 | 4,474 EUR | -2,906 |
| FTSE 100 | 4 hours | n/a | 339 | 71.98 | 3,853 EUR | -2,777 |
| S&P 500 | Daily | n/a | 134 | 76.87 | 3,116 EUR | -1,190 |
| S&P 500 | 30 min | n/a | 2,083 | 71.34 | 2,052 EUR | -1,112 |
| S&P 500 | 1 hour | n/a | 1,434 | 70.78 | 1,976 EUR | -1,070 |
| S&P 500 | 4 hours | n/a | 344 | 69.48 | 1,623 EUR | -1,275 |
| Gold | Daily | n/a | 166 | 68.07 | 886 EUR | -772 |
Charts
Top 10 of 20 runs. The full list is in the table above.
The code
// ============================================================== // Green Candle Reversal Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false basis = Average[20](close) upper = basis + 2 * STD[20](close)
11 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 20 market and timeframe combinations. The best run was Nikkei 225, 1 hour, with a profit factor of 1.25 over 1,087 trades.
The best run had a maximum drawdown of 6,736 USD at the tested position size, against a net result of 30,031 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.