Back to Guides
Guide

Stick Sandwich Pattern: What "The Same Close" Means

The stick sandwich pattern needs two closes at the same price. Nobody says to how many decimals, and on EURUSD 15-minute bars that is worth almost 18x.

The stick sandwich is three candles: a white one sitting between two black ones, where the two black ones close at the same price. The two outer closes are the "bread", and the pattern is read as a bullish reversal after a decline.

The hard part is the word "same". On a five-decimal forex quote, two closes being identical and two closes being a pip apart are very different populations, and no guide says which one it means. Read exactly, the pattern completes 43 times in 16,520 EURUSD 15-minute bars. Read as "within one pip", 763 times.

What is the stick sandwich pattern?

Three candles, in this order: a black candle, a white candle, and a second black candle that closes where the first one closed. The open-source TA-Lib library's page for it describes "two black candles (1st and 3rd) sandwiching a white candle, where the 3rd black candle closes at the same level as the 1st (the "bread")".

It is read as a bullish reversal, significant after a decline. The same page adds that the rule as written there does not verify the downtrend it assumes.

What are the exact rules for a stick sandwich?

Two specifications, and they agree on the shape. One adds a condition about the middle candle's open.

ConditionThe library quoted above (Stick Sandwich)thinkorswim (StickSandwich)
Candle 1black"The first candle is bearish and continues the downtrend"
Candle 2white, between the two"The second candle is bullish and its Open price is higher than the first candle's Close price"
Candle 3black, "closes at the same level as the 1st""The third candle is bearish again and its Close price is equal to that of the first candle"

thinkorswim's extra condition is the gap on candle 2's open, and it is the only specification that states it. Its trend setup parameter is the prior-downtrend check the library skips.

Two more conditions circulate in the guides and appear in neither specification:

  • Engulfment. Tradingsim requires the third candle to "completely engulf" the second. Patterns Wizard says the same in its identification list: "the middle candle will be shorter. The candles on each side of it will engulf it".
  • The outer candles being wider. Patterns Wizard: "the candles on each side will have bigger trading ranges. This will make them longer than the candle in the middle".

Patterns Wizard also contradicts itself on the one condition thinkorswim cares about. One of its recognition criteria reads "A white body that trades above the close of the previous black body follows", and its requirements paragraph says the white candle "opens at the initial close". At the close or above it, which is the difference between meeting thinkorswim's rule and failing it.

Both extra conditions are legitimate as your own rule. They are not part of the published definition, and each one roughly halves what is left.

What does "the same close" actually mean?

Nobody says, so you have to decide, and the decision is worth almost eighteen times the count.

Here is the ladder on 16,520 EURUSD 15-minute bars from our own data. The skeleton is every black-white-black run of three, counted at every bar where such a run ends, so two runs that share a bar are both counted: 2,056 of them. One pip is 0.0001. We measured the gap between the two closes in tenths of a pip, so a pair sitting exactly on a tolerance line is counted rather than left to rounding: 67 of these pairs sit exactly one pip apart.

Two closes agree toBare skeletonPlus thinkorswim's gapPlus engulfment
Exactly431510
0.1 pip1184425
1 pip76327698
3 pips1,494541175
10 pips1,998721230

Exactly 43, within a pip 763. That is 17.7 times more bars from a tolerance nobody writes down.

The worked example makes the same point in real prices. WR Trading publishes a EUR/USD 5-minute sequence from 13 May 2025 and calls it "a textbook reversal pattern": candle 1 opened at 1.11699 and closed at 1.11666, candle 2 opened at 1.11667 and closed at 1.11696, candle 3 opened at 1.11693 and closed at 1.11676.

Run that example against the definitions and three things fall out:

  • The two closes, 1.11666 and 1.11676, are 1.0 pip apart. Under the specification's "the same level", that is not a stick sandwich. It is one of the 763, not one of the 43.
  • It meets thinkorswim's gap condition by 0.1 pip: candle 2 opened at 1.11667, one tenth of a pip above candle 1's close.
  • It fails the engulfment condition on both legs: candle 3 opened 0.3 pip below candle 2's close, and closed 0.9 pip above candle 2's open.

So the example runs the loose definition while quoting the strict one. That is the reason to write your own tolerance down in pips before you look at a chart, because on a five-decimal quote "the same" is a choice rather than an observation.

Does ChartLabs mark the stick sandwich?

Yes, with a tolerance it picks rather than one you set. Stick Sandwich is one of the 61 pattern switches inside our Candlestick Patterns indicator. Open the chart's Indicators menu, find the Patterns heading in the Standard list, and add the entry called Candlestick Patterns. It draws on the price pane next to your candles rather than in a pane of its own, and the Stick Sandwich switch is already on when you add it.

The mark is the short code SW on the third candle, below its low. Bullish codes in that indicator always sit under the bar's low and bearish or neutral ones above the high, and since the stick sandwich only ever reads bullish, SW is always the one underneath.

The tolerance is fixed and you cannot edit it: the switch counts the two black closes as the same when they are within 5% of the average high-low range of the five candles before the first one. That moves with the market instead of sitting at a fixed number of pips. If your own rule is written in pips, expect the SW marks and your own count to part company on some bars, and treat the marks as a fixed-tolerance answer standing beside yours.

Is the stick sandwich bullish or bearish?

The sources disagree, and the labels are not a reliable guide.

SourceWhat it publishes
ChartLabs (Stick Sandwich switch)Always bullish. It marks the bar bullish when the pattern is present and never marks it bearish
thinkorswim"Stick Sandwich is a bullish trend reversal candlestick pattern consisting of three candles"
The Forex Geek"It is a bearish reversal signal, indicating that the market may be turning downward after a period of uptrend"

Tradingsim is explicit that the naming is the problem: "Most traders misread it because of the naming convention." Its own reading is that the label describes which candle gets sandwiched, not what happens next.

The Forex Geek is a different matter. Its definition is of a different pattern: "a long black candlestick is followed by a doji (a candlestick with a small body and long wicks on both sides) and then another long black candlestick". Its own later paragraph makes the middle candle "a small white candlestick" instead, contradicting that. And the matching close, the condition the pattern is named for, does not appear on that page in any wording. It also states: "It is also known as the "Three Black Crows" or "Three White Soldiers" pattern, depending on the direction of the trend." Those are two other patterns, each with its own rule in the open-source library's index. Treat that sentence as a named error, not a synonym.

LuxAlgo puts the disagreement down to sample size: on patterns this rare, "samples are too small for dependable base rates, so the traditional bullish or bearish labels rest on the classical literature rather than on strong evidence".

Is there a bearish stick sandwich?

As a name, yes. As a rule of its own, no: the open-source library defines only the bullish form, and that is the one the ChartLabs switch marks.

The mirrored shape is white, black, white, with the two outer closes matching. Patterns Wizard describes the colour pairs directly: "A bearish sandwich will be green-red-green and a bullish sandwich have a red-green-red color".

The open-source library's index lists 61 candlestick patterns and exactly one stick sandwich, which is bullish-only, and the ChartLabs switch never marks it bearish. So if you test the bearish version you are testing your own rule, and you should say so when you report the count. The two-candle relatives, the matching high and the matching low, are separate patterns and not defined here.

How often does a stick sandwich print?

Rarely, and the number depends entirely on your tolerance. Our counts ran on two instruments from our own cleaned data: EURUSD, 246,778 one-minute bars, and GER40, the euro-quoted German 40 index, 225,951 one-minute bars. Both cover 1 January to 31 August 2026, aggregated from 1-minute candles, our lowest timeframe, on history sourced from Dukascopy and cleaned to remove anomalies.

CellBarsSkeletonsExactWithin 1 pip
EURUSD M1516,5202,05643763
EURUSD H14,130512795
EURUSD H41,06812806
EURUSD D12082800
GER40 M1515,1811,9211131
GER40 H13,897451021
GER40 H41,04114003
GER40 D12072100

On GER40 one point stands in for a pip, since a pip is a forex unit, and the gap is rounded to tenths of a point the same way.

On 208 EURUSD daily bars across eight months there are 28 black-white-black skeletons, zero exact matches and zero within a pip. One appears at three pips and five at ten pips. That is a small sample reported as a small sample: it does not say the pattern cannot occur on a daily chart.

The exact count on GER40 is 1, against 43 on EURUSD, and the reason is quote precision rather than anything about the market. EURUSD prints five decimals on a price near 1.17. GER40 prints three decimals on a price in the twenty thousands, so its smallest step is a far finer slice of the price, and two closes landing on the identical number is a much rarer coincidence there. Loosen the tolerance to one pip, or one point, and the two instruments stop looking so different: 763 against 131.

We checked that the detector fires. A hand-built textbook case written from thinkorswim's wording returns one hit, with and without the extra conditions. The zeros above are the market's.

Why is a stick sandwich rarer on forex than the guides suggest?

Because each published condition multiplies the candidates away, and some of the conditions in circulation are extras that neither specification asks for.

LuxAlgo states the mechanism: "Every added condition (an exact gap, a matching close, a third or fourth qualifying candle) multiplies away candidates", and on the matching close in particular, that it is "one strict condition that turns a routine occurrence into a rarity".

Our numbers put a size on it, on EURUSD 15-minute bars:

  • 2,056 black-white-black skeletons.
  • 43 once the two closes must match exactly.
  • 15 once thinkorswim's gap on candle 2 is added.
  • 10 once engulfment is added too.

From 2,056 to 10 is the cost of taking every published condition at once. Loosen the close to a pip and the same three steps run 763, then 276, then 98.

How do you test a stick sandwich step by step?

  1. Write the tolerance down first, in pips, before you open a chart.
  2. Decide whether the middle candle must open above candle 1's close. thinkorswim requires it, the open-source library's page does not, and Patterns Wizard says both things on one page.
  3. Decide whether the third candle must engulf the second. Tradingsim and Patterns Wizard require it; neither specification does.
  4. Decide whether a prior downtrend is required, and how many candles you check for it. Both libraries leave this to you.
  5. Step bar by bar through a date range chosen before you saw any result, and mark candidates as the third candle closes.
  6. Count the near misses separately, by how they failed: tolerance, gap, or engulfment.
  7. Report the sample next to the count. Ours is eight months and two instruments, and that goes beside every number taken from it.

What should you record for each stick sandwich?

The tolerance in pips, which optional conditions you used, and the near-miss count. Without the tolerance the count means nothing, because one pip is almost eighteen times.

Then the ordinary fields: symbol, timeframe, date range, whether a downtrend preceded it, and what you did after candle 3 closed.

Testing the tolerance in ChartLabs

There is no scanner and no price alerts, so the SW marks on the chart are what the platform gives you. The Wave Tools drawing set, XABCD Pattern, ABCD Pattern and the wave patterns, draws harmonic and wave shapes rather than candle shapes, and all of it is drawn by hand.

What the platform is good for here is the tolerance itself. Replay steps through cleaned history one bar at a time, so you see a three-candle rule complete, or fail by a tenth of a pip, in the order the market produced it. If your tolerance is in pips, the Pine Script editor takes it as a number in a script and marks the bars that satisfy it with a plotted shape or a label, and "Example: Mark bars by a rule" on the Pine Scripts tab opens a copy to start from. The script has to spell the pattern out, and there is no Pine backtesting. A tolerance kept in a script is a tolerance that does not drift between sessions, and the trades CSV export carries a note per trade, so the number you used stays with the trade rather than in your memory.

Related reading

Set your tolerance and count them yourself

Pick a tolerance in pips, pick the optional conditions you believe in, and step through a few months of 15-minute bars. Count the hits and the near misses separately.

Start your free trial and replay the bars yourself.

Related Topics

candlestick-patternsstick-sandwichbullish-reversalforex-patternsbacktesting