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.

Test this strategy

Run it on your contracts, timeframes, and parameters.

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.

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%
17 trades View →

ES 1D · Bullish Engulfing · 2020-2024

Win rate
52.63%
Profit factor
0.65
Max drawdown
36.86%
19 trades View →

GC 1D · Bullish Engulfing · 2020-2024

Win rate
50.00%
Profit factor
1.65
Max drawdown
19.07%
22 trades View →

NQ 1D · Bullish Harami · 2020-2024

Win rate
73.91%
Profit factor
3.67
Max drawdown
9.71%
23 trades View →

ES 1D · Bullish Harami · 2020-2024

Win rate
75.00%
Profit factor
2.84
Max drawdown
7.64%
16 trades View →

GC 1D · Bullish Harami · 2020-2024

Win rate
53.85%
Profit factor
0.82
Max drawdown
14.74%
13 trades View →

NQ 1D · 2020-2024

Piercing Line

Win rate
80.00%
Profit factor
13.30
Max drawdown
2.56%
5 trades View →

ES 1D · Piercing Line · 2020-2024

Win rate
60.00%
Profit factor
26.28
Max drawdown
0.78%
5 trades View →

GC 1D · Piercing Line · 2020-2024

Win rate
100.00%
Profit factor
0.00
Max drawdown
0.00%
1 trades View →

NQ 1D · 2020-2024

Hammer

Win rate
100.00%
Profit factor
0.00
Max drawdown
0.00%
1 trades View →

NQ 1D · 2020-2024

Inverted Hammer

Win rate
100.00%
Profit factor
0.00
Max drawdown
0.00%
1 trades View →

NQ 1D · 2020-2024

Morning Star

Win rate
33.33%
Profit factor
0.34
Max drawdown
19.73%
3 trades View →

NQ 1D · 2020-2024

Three White Soldiers

Win rate
57.14%
Profit factor
2.45
Max drawdown
4.85%
7 trades View →

NQ 1D · 2020-2024

Bearish Engulfing

Win rate
36.67%
Profit factor
0.71
Max drawdown
60.11%
30 trades View →

NQ 1D · 2020-2024

Shooting Star

Win rate
100.00%
Profit factor
0.00
Max drawdown
0.00%
1 trades View →

NQ 1D · 2020-2024

Hanging Man

Win rate
50.00%
Profit factor
0.75
Max drawdown
7.53%
2 trades View →

NQ 1D · 2020-2024

Evening Star

Win rate
66.67%
Profit factor
1.28
Max drawdown
9.39%
3 trades View →

NQ 1D · 2020-2024

Dark Cloud Cover

Win rate
0.00%
Profit factor
0.00
Max drawdown
33.13%
5 trades View →

NQ 1D · 2020-2024

Three Black Crows

Win rate
0.00%
Profit factor
0.00
Max drawdown
0.00%
0 trades View →

NQ 1D · 2020-2024

Bearish Harami

Win rate
37.93%
Profit factor
0.74
Max drawdown
34.06%
29 trades View →

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.

View preset →

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.

View preset →

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.

View preset →

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.

View preset →

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.

View preset →

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.

View preset →

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.

View preset →

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.

View preset →

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.

View preset →

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.

View preset →

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.

View preset →

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.

View preset →

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.

View preset →

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.

View preset →