Strategy Detail
Candlestick Patterns
Enter on a named candlestick pattern, hold for a fixed bar count, no stops. Covers the classical patterns most traders learn first, from Hammer to Three Black Crows.
What It Does
Candlestick Patterns runs on a single contract at a single timeframe. On every bar close it inspects the trailing window of bars and asks one question: do these bars form the chosen candlestick pattern?
If the pattern is recognized and the strategy is flat, it enters at the close in the pattern’s direction. Bullish patterns trigger long entries, bearish patterns trigger short entries.
Once in a position, the only exit is a fixed bar-count hold: after hold_bars bars have elapsed since entry, the strategy flattens unconditionally. No stops, no profit targets, no trend filters, no scaling. The pattern selection is the strategy.
Which Patterns Are Available
See the catalog below for the patterns covered. The lineup starts with the classical formations most traders learn first, the ones covered in every Japanese candlestick text, from the Hammer through Three Black Crows. Each pattern has its definition, the classical story behind it, when it tends to work, when it tends to fail, and sample backtests where available.
Timeframe Matters
Candlestick patterns are traditionally read on daily bars, and that is where the presets default. The form lets you pick any timeframe from 15 minutes up to daily. Faster timeframes fire more signals but also more noise. The pattern definitions are shape-based, not timeframe-aware, so the same shape is recognized whether you read 5-minute or daily bars.
Best In
- Liquid markets where each daily bar carries enough conviction that shape-based patterns are not pure noise. Equity index futures and large-cap commodities are the usual candidates.
- Studies that want to test classic chart-folklore claims on equal terms. Run several patterns across the same contract and date range, and the comparison is direct.
- Comparing the same pattern across instruments. Sample runs are available for NQ, ES, and GC at identical defaults, so the same pattern can be read side by side across markets.
Where It Struggles
- Strong trends. A reversal pattern inside a roaring trend often gets run over within the hold window.
- Low-signal regimes. Some patterns are strict and may not fire for months at a stretch on a quiet instrument.
- The bar-count exit is blunt. A signal that briefly works and then reverses against the position will still be held for the full hold period.
Possible Uses
- A control strategy for any candlestick-based idea that adds filters. If a fancier setup tracks the bare pattern entry, the filters are not earning their keep.
- An honest survey of the chart-folklore claims. Run several patterns across instruments and years and see which patterns hold up.
- A starting point for layered work. Combine the pattern trigger with a trend filter, a volatility regime, or a time-of-year window and see whether the conditional edge tightens.
What It Does Not Do
- No stops, no targets, no trailing exit. The bar-count hold is the only exit.
- No partial fills, no scaling, no pyramiding. One signal, one position, one contract count.
- No regime awareness. The pattern fires the same whether the market is trending hard, ranging tight, or churning.
- No awareness of the prior trade’s outcome. A losing streak does not change the next entry size or hold length.
Pattern catalog (14)
Each pattern has its own page with the definition, the classical story, when it tends to work, when it tends to fail, and sample backtests when available.
Bullish reversal
Pattern
Bullish Engulfing
A two-bar bullish reversal where a large up-bar fully wraps the prior down-bar's body, suggesting buyers overwhelmed sellers in a single session.
Pattern
Hammer
A single-bar bullish reversal with a small body near the high and a long lower wick, read as buyers rejecting the session lows.
Pattern
Bullish Harami
A two-bar bullish reversal where a small up-bar sits fully inside the prior down-bar's body, read as bearish momentum stalling rather than reversing outright.
Pattern
Inverted Hammer
A single-bar bullish reversal with a small body near the low and a long upper wick after a downtrend, read as buyers testing higher before sellers fade them.
Pattern
Morning Star
A three-bar bullish reversal sequence (long down-bar, small indecision bar, long up-bar) read as a clear shift from sellers to buyers across the session boundary.
Pattern
Piercing Line
A two-bar bullish reversal where an up-bar opens below the prior down-bar's low and closes back above its midpoint, a partial engulfment that recovers half the prior loss.
Pattern
Three White Soldiers
Three consecutive strong up-bars after a downtrend, each opening within the prior body and closing near its own high, read as sustained accumulation rather than a single-bar bounce.
Bearish reversal
Pattern
Dark Cloud Cover
A two-bar bearish reversal where a down-bar opens above the prior up-bar's high and closes back through its midpoint, a partial engulfment from the opposite side.
Pattern
Bearish Engulfing
A two-bar bearish reversal where a large down-bar fully wraps the prior up-bar's body, the directional mirror of Bullish Engulfing.
Pattern
Evening Star
A three-bar bearish reversal sequence (long up-bar, small indecision bar, long down-bar) and the directional mirror of the Morning Star.
Pattern
Hanging Man
A single-bar bearish reversal with a small body near the high and a long lower wick after an uptrend. Same shape as the Hammer, opposite context.
Pattern
Bearish Harami
A two-bar bearish reversal where a small down-bar sits fully inside the prior up-bar's body, the directional mirror of Bullish Harami.
Pattern
Shooting Star
A single-bar bearish reversal with a small body near the low and a long upper wick after an uptrend, read as sellers rejecting the session highs.
Pattern
Three Black Crows
Three consecutive strong down-bars after an uptrend, each opening within the prior body and closing near its own low, read as sustained distribution rather than a single-bar drop.
Sample runs (20)
Backtests of individual patterns from the catalog above, run at identical defaults so they can be read side by side.
NQ 1D · Bullish Engulfing · 2020-2024
- Win rate
- 47.06%
- Profit factor
- 0.94
- Max drawdown
- 51.40%
ES 1D · Bullish Engulfing · 2020-2024
- Win rate
- 52.63%
- Profit factor
- 0.65
- Max drawdown
- 36.86%
GC 1D · Bullish Engulfing · 2020-2024
- Win rate
- 50.00%
- Profit factor
- 1.65
- Max drawdown
- 19.07%
NQ 1D · Bullish Harami · 2020-2024
- Win rate
- 73.91%
- Profit factor
- 3.67
- Max drawdown
- 9.71%
ES 1D · Bullish Harami · 2020-2024
- Win rate
- 75.00%
- Profit factor
- 2.84
- Max drawdown
- 7.64%
GC 1D · Bullish Harami · 2020-2024
- Win rate
- 53.85%
- Profit factor
- 0.82
- Max drawdown
- 14.74%
NQ 1D · 2020-2024
Piercing Line
- Win rate
- 80.00%
- Profit factor
- 13.30
- Max drawdown
- 2.56%
ES 1D · Piercing Line · 2020-2024
- Win rate
- 60.00%
- Profit factor
- 26.28
- Max drawdown
- 0.78%
GC 1D · Piercing Line · 2020-2024
- Win rate
- 100.00%
- Profit factor
- 0.00
- Max drawdown
- 0.00%
NQ 1D · 2020-2024
Hammer
- Win rate
- 100.00%
- Profit factor
- 0.00
- Max drawdown
- 0.00%
NQ 1D · 2020-2024
Inverted Hammer
- Win rate
- 100.00%
- Profit factor
- 0.00
- Max drawdown
- 0.00%
NQ 1D · 2020-2024
Morning Star
- Win rate
- 33.33%
- Profit factor
- 0.34
- Max drawdown
- 19.73%
NQ 1D · 2020-2024
Three White Soldiers
- Win rate
- 57.14%
- Profit factor
- 2.45
- Max drawdown
- 4.85%
NQ 1D · 2020-2024
Bearish Engulfing
- Win rate
- 36.67%
- Profit factor
- 0.71
- Max drawdown
- 60.11%
NQ 1D · 2020-2024
Shooting Star
- Win rate
- 100.00%
- Profit factor
- 0.00
- Max drawdown
- 0.00%
NQ 1D · 2020-2024
Hanging Man
- Win rate
- 50.00%
- Profit factor
- 0.75
- Max drawdown
- 7.53%
NQ 1D · 2020-2024
Evening Star
- Win rate
- 66.67%
- Profit factor
- 1.28
- Max drawdown
- 9.39%
NQ 1D · 2020-2024
Dark Cloud Cover
- Win rate
- 0.00%
- Profit factor
- 0.00
- Max drawdown
- 33.13%
NQ 1D · 2020-2024
Three Black Crows
- Win rate
- 0.00%
- Profit factor
- 0.00
- Max drawdown
- 0.00%
NQ 1D · 2020-2024
Bearish Harami
- Win rate
- 37.93%
- Profit factor
- 0.74
- Max drawdown
- 34.06%
Presets (14)
Named parameter bundles for this family. Pick one to see its parameters and pre-fill the New Backtest form. The form lets you adjust contract, date range, and capital before running.
Preset
Bullish Engulfing
Long on a bullish engulfing on the daily chart, hold for five sessions. The classic two-bar bullish reversal: a large up-bar fully wraps the prior down-bar, hinting that buyers overwhelmed sellers.
Preset
Hammer
Long on a hammer on the daily chart, hold for five sessions. A long lower wick that closes near the high after a down move, read as rejection of the lows.
Preset
Inverted Hammer
Long on an inverted hammer on the daily chart, hold for five sessions. A long upper wick after a downtrend, read as buyers testing higher before sellers fade them. When followed by an up day, the prior rejection is confirmed.
Preset
Morning Star
Long on a morning star on the daily chart, hold for five sessions. A three-bar bullish reversal: a down-bar, a small indecision bar, then a strong up-bar.
Preset
Piercing Line
Long on a piercing line on the daily chart, hold for five sessions. A bullish reversal where an up-bar closes back through the midpoint of the prior down-bar.
Preset
Three White Soldiers
Long on three consecutive strong up-bars (three white soldiers) on the daily chart, hold for five sessions. Read as sustained accumulation after a decline.
Preset
Bullish Harami
Long on a bullish harami on the daily chart, hold for five sessions. A small up-bar contained inside the prior down-bar, read as bearish momentum stalling.
Preset
Bearish Engulfing
Short on a bearish engulfing on the daily chart, hold for five sessions. A large down-bar fully wraps the prior up-bar, the bearish mirror of the bullish engulfing.
Preset
Shooting Star
Short on a shooting star on the daily chart, hold for five sessions. A long upper wick that closes near the low after an up move, read as rejection of the highs.
Preset
Evening Star
Short on an evening star on the daily chart, hold for five sessions. A three-bar bearish reversal: an up-bar, a small indecision bar, then a strong down-bar.
Preset
Dark Cloud Cover
Short on a dark cloud cover on the daily chart, hold for five sessions. The bearish mirror of the piercing line: a down-bar that closes back through the midpoint of the prior up-bar.
Preset
Three Black Crows
Short on three consecutive strong down-bars (three black crows) on the daily chart, hold for five sessions. Read as sustained distribution after an advance.
Preset
Hanging Man
Short on a hanging man on the daily chart, hold for five sessions. A long lower wick after an up move, the bearish version of the hammer.
Preset
Bearish Harami
Short on a bearish harami on the daily chart, hold for five sessions. A small down-bar contained inside the prior up-bar, the bearish mirror of the bullish harami.