Buys a bullish hammer candle with volume above the prior bar while the MACD line and its signal are at or below zero. Closes the position when both MACD lines move above zero.
Best run of 19. Nikkei 225, 5 min, spread 10, from run sweeps:2026-10-11-NIKKEI-5m-opt.tsv:4.
| Period | Up to 2026-10-11 |
| Instrument | Nikkei 225, 5 minutes |
| 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 | 5 min | n/a | 493 | 67.14 | 7,068 USD | -5,626 |
| Nikkei 225 | 1 hour | n/a | 159 | 67.92 | 10,853 USD | -4,665 |
| Nasdaq 100 | 4 hours | n/a | 42 | 78.57 | 7,804 EUR | -1,741 |
| Dow Jones | 1 hour | n/a | 98 | 74.49 | 6,495 EUR | -3,362 |
| Nikkei 225 | 4 hours | n/a | 22 | 77.27 | 6,321 USD | -5,116 |
| Nasdaq 100 | 1 hour | n/a | 147 | 71.43 | 5,602 EUR | -2,187 |
| Nikkei 225 | Daily | n/a | 7 | 85.71 | 4,557 USD | -3,599 |
| Nasdaq 100 | 10 min | n/a | 481 | 71.31 | 4,015 EUR | -2,123 |
| Silver | Daily | n/a | 8 | 87.50 | 3,812 USD | -880 |
| DAX 40 | 1 hour | n/a | 113 | 67.26 | 3,474 EUR | -1,251 |
| Brent Crude | Daily | n/a | 11 | 81.82 | 3,393 EUR | -1,207 |
| DAX 40 | Daily | n/a | 10 | 80.00 | 2,722 EUR | -1,088 |
| Brent Crude | 1 hour | n/a | 138 | 68.12 | 2,527 EUR | -2,277 |
| FTSE 100 | 1 hour | n/a | 173 | 75.72 | 1,847 EUR | -1,028 |
| Nasdaq 100 | Daily | n/a | 6 | 100.00 | 1,766 EUR | -1,695 |
| S&P 500 | 1 hour | n/a | 163 | 72.39 | 1,722 EUR | -456 |
| FTSE 100 | 10 min | n/a | 473 | 68.50 | 1,401 EUR | -386 |
| GBP/USD | Daily | n/a | 10 | 80.00 | 1,084 USD | -773 |
| S&P 500 | 4 hours | n/a | 40 | 75.00 | 650 EUR | -566 |
Charts
Top 10 of 19 runs. The full list is in the table above.
The code
// ============================================================== // Hammer Candle Below Zero MACD // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long only // Timeframe tested: 5 minutes // ============================================================== DEFPARAM CumulateOrders = false myMacd = MACDline[12,26,9](close) signal = ExponentialAverage[9](myMacd) abody = abs(close - open) arange = high - low bodytop = max(open, close) bodybottom = min(open, close) shadowtop = high - bodytop shadowbottom = bodybottom - low
14 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 19 market and timeframe combinations. The best run by trade count was Nikkei 225, 5 minutes, with 493 trades.
The best run had a maximum drawdown of 5,626 USD at the tested position size, against a net result of 7,068 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.