Watches for a small-range candle whose shadows total at least 2 times its body. Buys when the next candle closes above the pattern high, and sells short when it closes below the pattern low, with stops just past the far end of the pattern.
Best run of 2. DAX 40, Daily, spread 3, from run sweeps:2026-10-12-DAX40-D-opt.tsv:15.
| Period | Up to 2026-10-12 |
| Instrument | DAX 40, Daily |
| 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 |
|---|---|---|---|---|---|---|
| DAX 40Best run | Daily | n/a | 44 | 68.18 | 262 EUR | -192 |
| Nikkei 225 | Daily | n/a | 12 | 75.00 | 66.10 USD | -59.30 |
Charts
The code
// ============================================================== // Long Shadow Candle Breakout // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false body = abs(open - close) hl = high - low shadows = (high - max(open, close)) + (min(open, close) - low)
27 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 2 market and timeframe combinations. The best run by trade count was DAX 40, Daily, with 44 trades.
The best run had a maximum drawdown of 192 EUR at the tested position size, against a net result of 262 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.