Skip to content

CDLGRAVESTONEDOJI

Summary

Single-candle doji whose open and close sit at the low of the day, leaving a long upper shadow and no lower shadow. A doji variant whose bullish/bearish meaning depends on the surrounding trend, which the code does not judge. A hit marks a gravestone doji; its bullish vs bearish reversal meaning must be read against the prevailing trend, which this function does not check.

Formula

One candle. Detected when all hold: (1) doji body: realbody |close-open| <= BodyDoji average; (2) very short/absent lower shadow: lowerShadow < ShadowVeryShort average; (3) non-short upper shadow: upperShadow > ShadowVeryShort average (open/close at the low with an upper shadow).

Notes

  • Does not verify the prior trend that determines the pattern's bullish/bearish meaning.

Inputs

  • inPriceOHLC — OHLC price series (open, high, low, close)

Outputs

  • outInteger — +100 on a detected gravestone doji, 0 otherwise. Never negative; the positive sign is not a directional signal (evaluate relative to the trend)

Implementation

TA-Lib Definition: cdlgravestonedoji.c · cdlgravestonedoji.yaml

Native File
C ta_CDLGRAVESTONEDOJI.c
Rust cdlgravestonedoji.rs
Java Core.java

TA-Lib is also available for Python, R and more using a wrapper.

Aliases

Gravestone Doji

See Also

CDLDOJI · CDLDRAGONFLYDOJI · CDLLONGLEGGEDDOJI · CDLDOJISTAR