It buys on a hammer candle, a small body bar with a long lower wick and a green close, and sells short on the mirror hanging man. Any open position closes once 26 bars have passed since entry.
Best run of 6. Dow Jones, 30 min, spread 3, from run sweeps:2026-10-12-DOW30-30m-opt.tsv:13.
| Period | Up to 2026-10-12 |
| Instrument | Dow Jones, 30 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Dow JonesBest run | 30 min | n/a | 1,355 | 48.27 | 10,266 EUR | -7,845 |
| Nikkei 225 | 4 hours | n/a | 486 | 46.30 | 17,044 USD | -10,859 |
| DAX 40 | Daily | n/a | 192 | 47.92 | 13,131 EUR | -6,382 |
| US Crude Oil | 4 hours | n/a | 322 | 49.69 | 6,407 EUR | -3,986 |
| Gold | 4 hours | n/a | 494 | 51.62 | 1,247 EUR | -901 |
| Gold | Daily | n/a | 210 | 58.10 | 1,059 EUR | -867 |
Charts
The code
// ============================================================== // Hammer And Hanging Man Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE entrybar = 0 ONCE lastpos = 0 body = ABS(close - open) height = high - low lower = MIN(open, close) - low upper = high - MAX(open, close)
28 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 6 market and timeframe combinations. The best run by trade count was Dow Jones, 30 minutes, with 1,355 trades.
The best run had a maximum drawdown of 7,845 EUR at the tested position size, against a net result of 10,266 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.