Candlesticks · Single-candle patterns
Gravestone doji: meaning, rules and why Finabase files it bullish
How to read a gravestone doji, the exact TA-Lib test behind Finabase’s markers, why the scanner lists it as bullish, and what 351 real gravestones did next.
On this page
The gravestone doji is an upside-down T. The session opens, buyers lift the price well above the open, and by the close all of that gain is gone: the stock finishes at or near its opening price, which is also the low of the day. A long upper shadow stands over a flat base, which is where the grim name comes from.
Classical candlestick writers treat it as one of the clearer bearish warnings when it appears after a rally, because it shows an advance being rejected inside a single session. It is the mirror image of the Dragonfly doji: meaning, TA-Lib rules and a 380-case test.
There is an important wrinkle for Finabase users. TA-Lib, the detection library behind the app's markers, reports every gravestone as +100, the same positive value it uses for bullish patterns. Finabase's scanner sorts by that sign, so the gravestone appears in the Bullish list. This page explains the candle, the exact rule, that labeling quirk, two real gravestones, and what 351 cases on large US stocks did next.
Anatomy of a gravestone doji
The shape has three parts:
- A doji body. The open and close are essentially equal.
- No lower shadow, or almost none. The session never traded meaningfully below the open, so the open is also the low.
- A long upper shadow. Price reached well above the open before falling back.
The more the upper shadow towers over recent candles, the more striking the rejection. In the classical reading the candle matters most after a sustained advance, ideally at a new high for the move or at a known resistance level.
The exact rules Finabase uses
Finabase draws gravestone markers with TA-Lib's CDLGRAVESTONEDOJI, run on daily bars:
| Condition in TA-Lib | Default setting |
|---|---|
| Doji body | Real body ≤ 10% of the average high–low range of the previous 10 candles |
| Very short lower | Lower shadow < 10% of the average high–low range of the previous 10 candles |
| Real upper shadow | Upper shadow > 10% of the average high–low range of the previous 10 candles |
| Trend before it | Not tested |
| Output | +100 on every match, never −100 |
The test is a reflection of the dragonfly's, with the shadows swapped. Three things follow from it.
The upper shadow only has to clear a low bar. One tenth of a typical day's range is enough to count as "not very short". Many gravestones the app marks have modest upper shadows. In our sample only 7 of the 351 had an upper shadow as long as an average day's full range.
There is no trend test. TA-Lib's source comment says the gravestone "must be considered relatively to the trend", then leaves the trend to the user. A gravestone in the middle of a decline is detected exactly like one at the top of a rally.
The output is positive. That is a quirk of TA-Lib's encoding: many single-candle functions report a match as +100 and leave the interpretation to you. It is not a claim that the gravestone is bullish. But any system that sorts patterns by sign, as Finabase's scanner and gauge do, will treat it as one.
The psychology of a failed rally
The upper shadow is a record of a rally that could not hold. Early in the session buyers were confident enough to pay steadily higher prices. At some point the bids dried up and sellers took over, pushing price all the way back to the open by the close. Everyone who bought during the session's advance finished the day holding a loss.
After a long advance that is a meaningful change in tone. The trend had been rewarding buyers day after day; this session punished them. Traders read it as a sign that supply is appearing at higher prices. Whether it marks a top depends on whether the next sessions continue the rejection.
After a decline, the same candle is harder to interpret. It can mean a relief rally was sold, which fits the downtrend, or simply that a volatile, oversold stock had a choppy day. Classical writers mostly ignore gravestones in that position.
Confirmation
For the bearish reading, the usual requirements are:
- The next session closes below the gravestone's low. Because the low and the close are about the same, this is a low bar.
- The gravestone's high is not exceeded in the following sessions. A close above it cancels the warning.
- Volume on the gravestone above the recent average, suggesting the failed rally drew real participation.
Two real gravestones, one at a top and one at a bottom
Intel, March 25, 2025. INTC had rallied 22.3% in ten sessions. On March 25 it opened at $24.18, climbed to $24.75 and closed at $24.20, with a low just 9 cents below the close. It was a textbook gravestone at the end of a sharp advance, although on light volume, under half the 20-day average. The next session closed at $23.42, below the gravestone's low: bearish confirmation. Five sessions later the stock was 8.9% lower, and ten sessions later 25.1% lower, at one point trading at $17.67, as the broad market sell-off of early April 2025 hit. The candle warned correctly. No one should credit a single candle with forecasting a market-wide shock, though; most stocks fell in that window whatever their charts showed.
Adobe, June 24, 2026. ADBE had fallen 17.4% in ten sessions. The June 24 session opened at $195.89, rallied to $202.41 and fell back to close at $196.57: a $5.84 upper shadow over a 68-cent body. The next session closed at $193.41, below the low, which is the same bearish confirmation as the Intel case. This time the selling stopped there. Five sessions later ADBE was 7.3% above the gravestone's close and ten sessions later 13.3% above, trading as high as $230.74. In Finabase this gravestone was listed under Bullish, and the stock did rise, but not for any reason the candle can claim.
Together the two cases show the gravestone's real problem. The shape, and even a "confirming" close, looked the same at a top that broke and at a low that held.
What the data says
We ran CDLGRAVESTONEDOJI over daily bars from October 30, 2024 to October 29, 2026 for 60
large US stocks and ETFs. It fired 351 times on 59 of the 60 symbols; 348 cases had ten
sessions of data after them. Because the detector reports gravestones as bullish, the
first rows show the share higher; the rows marked with an asterisk are our own
bearish-direction cuts of the same data and show the share lower.
| Group | Cases | Result after 5 sessions | Avg 5-session return |
|---|---|---|---|
| Any trading day: share higher | 29,760 | 53.1% higher | +0.35% |
| Every gravestone: share higher | 348 | 53.2% higher | +0.42% |
| Next close above the high, from that close | 63 | 60.3% higher | +0.31% |
| Any trading day: share lower | 29,760 | 46.7% lower | +0.35% |
| * Gravestone after a 10-session advance | 171 | 46.8% lower | +0.44% |
| * After an advance, next close below the low, from there | 64 | 50.0% lower | +0.44% |
The average ten-session return after a gravestone was +0.55%, against +0.66% for any day. 50.9% of the measured gravestones formed after a ten-session decline.
The findings, stated plainly:
- As a bullish signal, which is how the app files it, it did nothing. 53.2% higher against a 53.1% baseline.
- As the textbook bearish signal after an advance, it also did nothing. 46.8% of those 171 cases were lower a week later, the same as any day.
- Confirmation did not rescue it. Even after an advance and a close below the low, the stock was lower five sessions later only half the time, and the average return was positive. That group has 64 cases, so treat it as weak evidence of no effect rather than proof.
Gravestone doji versus look-alikes
| Pattern | Body | Upper shadow | Lower shadow | Typical location |
|---|---|---|---|---|
| Gravestone doji | Doji | Long | Almost none | After an advance |
| Shooting star | Small, near the low | Long (2× body or more) | Very short | After an advance |
| Inverted hammer | Small, near the low | Long | Very short | After a decline |
| Dragonfly doji | Doji | Almost none | Long | After a decline |
| Long-legged doji | Doji | Any | Any | Anywhere |
The shooting star is the closest relative: the same rejection from above, with a small real body allowed. The inverted hammer is the same outline after a decline, read as a possible bullish turn. The fact that the identical shape can be a bearish shooting star or a bullish inverted hammer depending on the trend is the best argument for never reading a gravestone without its context.
An educational outline
This is a framework for study, not a recommendation to trade.
- Require an advance. Ignore gravestones that form during declines for the bearish reading.
- Require a real upper shadow. Compare it with the average range of the last ten sessions. TA-Lib's threshold is a tenth of that.
- Use the high as the invalidation level. A close above the gravestone's high cancels the warning.
- Treat it as risk management first. For a holder, a confirmed gravestone after a big run is a reason to review the position's stop. For someone studying short setups, the risk is the distance from entry to just above the high.
How Finabase shows gravestone dojis
- Chart markers. The Gravestone Doji study marks every
CDLGRAVESTONEDOJIdetection on the chart. Look at the trend to the left of each mark before reading anything into it. - Scanner: listed under Bullish. TA-Lib returns +100 for this pattern, and the candlestick scanner files each detection by the sign of that output, so gravestones appear in the Bullish list (S&P 500 gravestone dojis) and never in the Bearish one. This is a consequence of how TA-Lib encodes the result, not a judgment that the candle is bullish. A gravestone at the top of a rally will be listed alongside hammers and bullish engulfing patterns.
- Signals-tab gauge: counted as Buy. On the Signals tab, each of the 61 candlestick patterns votes from its most recent detection within the last eight bars, positive as Buy and negative as Sell. A gravestone therefore always casts a Buy vote. In our data that happened on 9.0% of stock-days. Because every gravestone is also a doji and a long-legged doji, one gravestone typically adds three Buy votes, which can tip the candlestick gauge to Buy at exactly the moment a chartist would call the candle bearish. Read the gauge with that in mind.
Frequently asked questions
Is a gravestone doji bearish?
After an advance it is traditionally read as a bearish warning, because a rally within the session was completely rejected. In our two-year test that warning did not translate into below-average returns. After a decline it carries little meaning.
Why does Finabase list a gravestone doji under bullish patterns?
TA-Lib returns +100 for every gravestone, and Finabase sorts patterns into Bullish and Bearish by the sign of that number. The label reflects the library's encoding, not the candle's interpretation.
What is the difference between a gravestone doji and a shooting star?
Both have a long upper shadow and close near the low. A gravestone has no real body; a shooting star has a small one. Both are read as bearish after an advance.
What confirms a gravestone doji?
Most traders want the next session to close below the gravestone's low and the high to remain unbroken. In our data even confirmed gravestones after an advance were lower five sessions later only half the time, so confirmation is a risk filter, not a guarantee.
Summary
The gravestone doji shows a rally inside one session that was fully reversed, leaving the close back at the open and the low. Its classic role is a bearish warning after an advance, but TA-Lib does not test the trend and reports every gravestone as +100, so Finabase lists it as bullish and counts it as a Buy vote. In our test of 351 gravestones on large US stocks, neither the bullish label nor the bearish textbook reading beat a random day. Treat a gravestone as a prompt to check the trend, the shadow and the next close, and to know where your stop belongs.
Sources and further reading
- Steve Nison, Japanese Candlestick Charting Techniques (New York Institute of Finance, 1991)
- Thomas N. Bulkowski, Encyclopedia of Candlestick Charts (Wiley, 2008)
- TA-Lib source code — CDLGRAVESTONEDOJI and the default candle settings
- Finabase chart data — daily bars for 60 US stocks and ETFs, 2024-10-30 to 2026-10-29; patterns detected with TA-Lib CDLGRAVESTONEDOJI