Skip to content

CDL3LINESTRIKE

Summary

A four-candle pattern: three same-color candles with consecutively higher (or lower) closes, each opening within or near the prior real body, then a fourth opposite-color candle that opens beyond the third close and closes past the first candle's open. TA-Lib emits a signed continuation-style signal keyed to the color of the first three candles. +100 = three-white (bullish) strike, -100 = three-black (bearish) strike; traditionally read as significant only inside a trend matching the first three candles.

Notes

  • Does not verify the surrounding trend the pattern classically assumes for significance.

Inputs

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

Outputs

  • outInteger — +100 for a white (rising) three-line strike, -100 for a black (falling) three-line strike, 0 otherwise. Sign is the color of the first three candles: candlecolor(i-1)*100

Implementation

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

Native File
C ta_CDL3LINESTRIKE.c
Rust cdl3linestrike.rs
Java Core.java

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

Aliases

Three-Line Strike, 3-Line Strike

See Also

CDL3WHITESOLDIERS · CDL3BLACKCROWS