Back to Guides
Guide

Homing Pigeon Candlestick Pattern: The Rules

The homing pigeon candlestick pattern is two black candles, the second inside the first. What "inside" means, measured four ways on real bars.

The homing pigeon candlestick pattern is two black candles in a decline, the second one small enough to sit inside the first one's body. It is read as a bullish reversal, which is unusual for a pattern with no white candle in it.

The pages that explain the pattern read "inside" four different ways, and on the same stretch of EURUSD 15-minute bars those readings give 9, 29, 110 and 160 hits. The widest reading finds nearly eighteen times what the strictest one does.

What is the homing pigeon candlestick pattern?

Two black candles, the first long and the second short, with the second one's body contained by the first one's. The rule is published as an exact formula. In words, it looks at two candles, the previous one and the current one. Both must be black, so each candle's close is below its own open. The first candle's real body must be larger than the long-body average, and the second candle's real body must be at or below the short-body average. The second body must sit inside the first: the second candle opens below the first candle's open and closes above the first candle's close.

That settles what the explainers leave open: the containment is body against body, the inequalities are strict, and the shadows are not tested at all.

thinkorswim's candlestick library agrees in two lines: "The first candle is long and bearish and continues the downtrend" and "The second candle is short and bearish and its body is engulfed by the first candle's body." CandleScanner says out loud what the formula implies: "The first line, being a black candle, engulfs the second line, being also a black candle. The length of the candles shadows does not matter."

Is the homing pigeon built into ChartLabs?

Yes. Open the chart's Indicators menu, find Candlestick Patterns under the Patterns heading, and add it. That one indicator carries 61 candle patterns as switches, 41 of them already on, and Homing Pigeon is one of the 41. A completed pattern is marked HP below the second candle's low, drawn on the price pane itself rather than in a pane of its own.

ChartLabs marks the rule exactly as written above. The comparisons are strict, so equal ends do not count, and it does not check the decline before the pattern.

Does "inside" mean the body or the whole candle?

The body. Both libraries that publish a formula say so, and CandleScanner's construction list agrees, asking for the second "candle's body engulfed by the prior candle's body". Three looser readings are also published.

ReadingWhere it comes fromEURUSD M15German index M15
Body inside body, strict inequalitiesthe published formula as written, and what ChartLabs marks932
Body inside body, equal ends allowedthe same formula with <= in place of <2932
Whole range inside whole range, strictIndia Infoline's "within the range of the previous candle"110103
Body inside body with 10% of candle 1's body of slackForexEduLine's "within or near the body"160168

Those readings mix two separate choices, and most write-ups run them together.

The noun, body against range at the same strict operator, takes 9 to 110 on the EURUSD 15-minute series, twelve times the count out of one word.

The operator, strict against equal ends allowed, takes 9 to 29 on the same bars. That one depends on the instrument rather than on the pattern: on the German index, both versions give 32. Two five-decimal forex candles opening at exactly the same price does happen. On an index quoted in hundredths of a point it did not happen once in this sample.

India Infoline is where the range reading comes from, and the same page says body in two places and range in two others. Its answers section then adds something the geometry forbids, "this creates a large gap between the first and second candle", when candle 2's body sits inside candle 1's by construction and the two bodies therefore overlap.

How close does "near" have to be?

Nobody says. ForexEduLine writes that the second candle "forms within or near the body of the previous candle" and never gives "near" a value.

Sweeping that slack, as the fraction of candle 1's body allowed to stick out at either end:

Slack allowedEURUSD M15EURUSD H1EURUSD H4German index M15
0%, the formula as written90132
5%7620490
10%1603311168
25%41711031361

At 10 per cent the count is nearly eighteen times the strict one. A page that writes "or near" and stops has described the pattern rather than defined it.

The same page also states the tight version twice, saying the second candle is a "shorter, bearish candle entirely within the body of the first candlestick" and, a paragraph later, that it "closes entirely inside the first". Only one of its two readings has a threshold you could code.

CandleScanner loosens a different condition: "The second candle can be any black candle appearing both as a short or a long line". Both formulas require a short second body. Dropping that requirement changed nothing here. In all eight symbol-and-timeframe cells, every pair that passed the strict containment test already had a short second body.

What "long" and "short" mean as numbers

The open-source TA-Lib library publishes both, on its Candlestick Settings page rather than on the pattern's own page, and ChartLabs uses the same values. The long-body average and the short-body average are each the real body measured against the mean real body of the previous ten bars, with a factor of 1.0, so a long candle is one whose body exceeds that mean and a short one is at or under it. The settings page explains the model in a sentence: each candle feature is measured against the average of a chosen range over a set number of previous bars, scaled by a factor.

That is the threshold behind every count here. The 5, 10 and 25 per cent slack values are ours, because no source publishes one.

Is the homing pigeon the same as a bullish harami?

No, and the difference is a single condition: colour. ForexEduLine states it directly: "In a Harami, the color of the second candle (bullish or bearish) does not matter. In a Homing Pigeon, however, both candles must be bearish."

On the EURUSD 15-minute series there are 990 haramis of any colour following a long candle, and 9 of them have both candles black. The homing pigeon is 0.9 per cent of the harami population, about one in 110.

CandleScanner puts it in the family: the pattern "is a two-line bullish counterpart of the Descending Hawk" and "is also closely related to the Bullish Harami pattern. All these patterns belong to the harami patterns family." The open-source library's page for the pattern links it to the Harami and the Matching Low. The harami and the three inside up have their own rules.

Is there a bearish homing pigeon?

No.

ChartLabs marks the pattern as bullish only, never bearish, and thinkorswim files it under bullish only, with no bearish plot. Two sources name the mirror and both give it its own name: CandleScanner lists "Opposite pattern: Descending Hawk, Bearish Harami", and ForexEduLine says "The opposite of the Homing Pigeon formation is known as the Descending Hawk candlestick pattern."

Why is a two-black-candle pattern read as bullish?

Because the second candle is smaller, so the selling behind the decline has eased. WR Trading puts it as "The second red candle's inability to break lower or even match the size of the first red bar shows that the sellers are running out of strength".

Neither formula tests the lows, and CandleScanner says the length of the shadows does not matter, so candle 2 can print a new low well below candle 1's and still complete the pattern exactly as written.

Measured on the strict rule ChartLabs marks: of the 49 completions across the eight cells, 24 had candle 2 making a lower low than candle 1. On the EURUSD 15-minute series it was 3 of 9, on the German index at 15 minutes 16 of 32, and the single EURUSD 4-hour completion did make a new low.

The reading that forbids a new low is the range reading, and it is a different pattern with a different count, 110 against 9 on the same bars. If "no new low" is part of why you believe the pattern, that is the version to code.

Two of the explainer pages hedge the direction inside their own text, calling the same two candles a bullish reversal in one paragraph and a bearish continuation or a weak signal in another. Neither hedge is sourced on its page, and neither is our view. The open-source library's notes on the pattern carry a third-party finding that also disagrees with the bullish label.

How often does the homing pigeon print?

Often enough to test. All four readings, on our own cleaned data:

CellSeries lengthLong then shortStrict bodyEqual ends allowedRange reading
EURUSD M1516,520 bars938929118
EURUSD H14,130 bars2220233
EURUSD H41,068 bars63118
EURUSD D1208 bars13002
German index M1515,181 bars7643232103
German index H13,897 bars2206635
German index H41,041 bars50119
German index D1207 bars9001

The inputs, so you can run the same thing: EURUSD and a euro-quoted German index, 1 January to 31 August 2026, aggregated from 1-minute bars to the four timeframes above, prices held in whole ticks. That is 472,729 one-minute bars in all, 246,778 of EURUSD and 225,951 of the index. Our data is sourced from Dukascopy, tick-level where it is available, cleaned to remove anomalies, and converted to 1-minute candles as the lowest timeframe. The two daily rows are 208 and 207 bars, which is eight months, so read those small counts with their sample. Daily bars cut at 00:00 UTC, which is where ChartLabs cuts them. Counted on that cut, the EURUSD daily series holds 62 pairs of consecutive black candles.

The range column there allows equal ends, which is why EURUSD at 15 minutes reads 118 rather than the 110 of the strict range test.

One source publishes its own frequency. CandleScanner ran its scanner over 502 S&P 500 symbols on daily candles from 1 July 1995 to 30 June 2015, 2,236,421 candles in all, and found 7,922 occurrences, an average of one every 282.3 candles. On the shorter window from 1 July 2010 it found 2,592 in 614,034 candles, one every 236.9. Those are daily stock candles and ours are intraday forex and an index, so the two cannot be pooled.

Every number above counts how often a shape appeared under a published rule. None of it says what price did next, and we make no claim that the pattern predicts anything.

Is there a worked example anywhere?

One, and it holds up. Pocketful gives a daily chart of Tata Consultancy Services: the stock "made a big bearish candle on 31 May 2024, when the stock price opened at INR 3,740 and closed at INR 3,670. On the next trading day, the stock price opened at INR 3,732 and closed at INR 3,702, i.e. inside the body of the previous day's candlestick."

Check it against the formula. 3,732 is below 3,740 and 3,702 is above 3,670, so the second body sits strictly inside the first, both candles are black, and the second is much smaller. That example satisfies the strict reading. The figures are that page's, from an equity daily chart, not ours.

The same page separates it from the pattern people confuse it with: "In the Engulfing pattern, the second candle completely engulfs the body of the first candle and signals a strong trend reversal. However, the second candle in the Homing Pigeon pattern is smaller and is engulfed by the first candle".

How do you test the homing pigeon?

Four choices, written down as numbers before you count anything:

  1. Body containment or range containment. On the EURUSD 15-minute series that is 9 against 110.
  2. Strict inequalities or equal ends allowed. That is 9 against 29 on the same bars and 32 against 32 on the index, so check it on your own instrument rather than assuming it is negligible.
  3. The long and short body thresholds. The built-in uses the ten-bar mean real body; if you use a different window, record it.
  4. Whether candle 2 may make a lower low. Both formulas allow it. If your reasoning depends on it not happening, you want the range reading.

The first choice alone moves the count from 9 to 110 without touching the market, so keep the chain rather than one total: the count after the two-black test, after long-then-short, and after containment. Next to each one, the symbol, the timeframe, the date range and the series length, plus how many of your completions had candle 2 making a new low. On our sample that was about half. Why the same rule answers differently on a pair and on an index is the subject of our forex backtesting guide, and the method underneath all of it is in the beginner's guide to backtesting a strategy.

The built-in marks the strict reading only, and there is no scanner and no price alerts, so a second reading of "inside" is one you write yourself. To do that, use the Pine Script editor, starting from "Example: Mark bars by a rule" on the Pine Scripts tab. A script reads each bar's open, high, low and close, tests whether candle 2's body sits inside candle 1's, and marks the bar with plotshape or a label, so your reading and the built-in can be compared bar for bar. There is no Pine backtesting here, so the counting stays yours to do on the replay. The reason to step through the bars by hand first is in manual versus automated backtesting: a rule with four unstated choices in it is one you want to see on a chart before you automate it.

The same opening as the unique three river bottom

A long black candle with a black harami inside it is the whole of the homing pigeon and the first two candles of the unique three river bottom. On EURUSD that skeleton happens 10, 0, 1 and 0 times at 15 minutes, 1 hour, 4 hours and daily, against this pattern's 9, 0, 1 and 0. On the German index both are 32, 6, 1 and 0.

The three river bottom adds a lower low on candle 2 and a third candle, and it carries its own disagreement about which way that third candle closes.

Which source to take your rule from

The open-source TA-Lib library if you want something to code. It publishes the operators and the body thresholds, and it tells you plainly that it "Does not verify the preceding downtrend".

thinkorswim if you want the rule in two sentences, with the caveat that it publishes no default for its length, trend setup or body factor inputs, so its own "long" is unquantified.

CandleScanner if you want the shadows settled, a named opposite pattern and a published occurrence count with its date range, remembering that it drops the short-second-candle condition both formulas carry.

Facts about each of those come from that vendor's own page. They answer different questions.

Next step

Pick one reading of "inside", write the operator down beside it, and count the chain on a stretch of history you have not studied. Then run the second reading on the same bars.

Start a free trial and step through the bars yourself.

Related Topics

homing-pigeon-candlestick-patterncandlestick-patternstwo-candle-patternsharamibacktesting