Pattern
Pattern Recognition — Candlestick pattern detection.
- All functions return an integer array where:
100 = bullish signal -100 = bearish signal 0 = no pattern detected
Functions
CDL2CROWS — Two Crows (bearish) CDL3BLACKCROWS — Three Black Crows (bearish) CDL3WHITESOLDIERS — Three White Soldiers (bullish) CDL3INSIDE — Three Inside Up/Down CDL3OUTSIDE — Three Outside Up/Down CDLDOJI — Doji CDLDOJISTAR — Doji Star CDLENGULFING — Engulfing Pattern CDLHAMMER — Hammer (bullish) CDLHARAMI — Harami Pattern CDLHARAMICROSS — Harami Cross Pattern CDLMARUBOZU — Marubozu CDLMORNINGSTAR — Morning Star (bullish, 3-candle) CDLMORNINGDOJISTAR — Morning Doji Star (bullish, 3-candle) CDLEVENINGSTAR — Evening Star (bearish, 3-candle) CDLEVENINGDOJISTAR — Evening Doji Star (bearish, 3-candle) CDLSHOOTINGSTAR — Shooting Star (bearish) CDLSPINNINGTOP — Spinning Top
- ferro_ta.pattern.CDL2CROWS(open, high, low, close)[source]
Two Crows — bearish 3-candle reversal pattern.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
-100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDL3BLACKCROWS(open, high, low, close)[source]
Three Black Crows — bearish 3-candle reversal.
Three consecutive long bearish candles, each opening within the prior body and closing near its low.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
-100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDL3INSIDE(open, high, low, close)[source]
Three Inside Up/Down — harami followed by confirmation candle.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish Three Inside Up), -100 (bearish Three Inside Down), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDL3LINESTRIKE(open, high, low, close)[source]
Three-Line Strike — 4-candle reversal pattern.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDL3OUTSIDE(open, high, low, close)[source]
Three Outside Up/Down — engulfing followed by confirmation candle.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish Three Outside Up), -100 (bearish Three Outside Down), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDL3STARSINSOUTH(open, high, low, close)[source]
Three Stars In The South — 3-candle bullish reversal.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDL3WHITESOLDIERS(open, high, low, close)[source]
Three White Soldiers — bullish 3-candle reversal.
Three consecutive long bullish candles, each opening within the prior body and closing near its high.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLABANDONEDBABY(open, high, low, close)[source]
Abandoned Baby — 3-candle reversal with gapping doji in the middle.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLADVANCEBLOCK(open, high, low, close)[source]
Advance Block — 3 bullish candles with weakening momentum, bearish warning.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
-100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLBELTHOLD(open, high, low, close)[source]
Belt-hold — single candle opening at extreme with long body.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLBREAKAWAY(open, high, low, close)[source]
Breakaway — 5-candle reversal pattern.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLCLOSINGMARUBOZU(open, high, low, close)[source]
Closing Marubozu — candle with no shadow on the closing side.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLCONCEALBABYSWALL(open, high, low, close)[source]
Concealing Baby Swallow — 4-candle bullish reversal.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLCOUNTERATTACK(open, high, low, close)[source]
Counterattack Lines — 2-candle pattern with opposite candles closing at same price.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLDARKCLOUDCOVER(open, high, low, close)[source]
Dark Cloud Cover — 2-candle bearish reversal.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
-100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLDOJI(open, high, low, close)[source]
Doji — open ≈ close, reflecting market indecision.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLDOJISTAR(open, high, low, close)[source]
Doji Star — doji that gaps away from the prior large candle.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLDRAGONFLYDOJI(open, high, low, close)[source]
Dragonfly Doji — doji with long lower shadow.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLENGULFING(open, high, low, close)[source]
Engulfing Pattern.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLEVENINGDOJISTAR(open, high, low, close)[source]
Evening Doji Star — 3-candle bearish reversal with doji star.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
-100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLEVENINGSTAR(open, high, low, close)[source]
Evening Star — 3-candle bearish reversal pattern.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
-100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLGAPSIDESIDEWHITE(open, high, low, close)[source]
Up/Down-Gap Side-by-Side White Lines — 3-candle continuation.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (upside gap), -100 (downside gap), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLGRAVESTONEDOJI(open, high, low, close)[source]
Gravestone Doji — doji with long upper shadow.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
-100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLHAMMER(open, high, low, close)[source]
Hammer — small body at top, long lower shadow.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLHANGINGMAN(open, high, low, close)[source]
Hanging Man — same shape as hammer but bearish warning.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
-100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLHARAMI(open, high, low, close)[source]
Harami Pattern — small candle inside the prior large candle’s body.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLHARAMICROSS(open, high, low, close)[source]
Harami Cross — doji inside the prior large candle’s body.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLHIGHWAVE(open, high, low, close)[source]
High-Wave Candle — small body with very long upper and lower shadows.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLHIKKAKE(open, high, low, close)[source]
Hikkake Pattern — inside bar followed by false breakout then reversal.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLHIKKAKEMOD(open, high, low, close)[source]
Modified Hikkake Pattern — hikkake with delayed confirmation.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLHOMINGPIGEON(open, high, low, close)[source]
Homing Pigeon — 2 bearish candles, second inside the first body.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLIDENTICAL3CROWS(open, high, low, close)[source]
Identical Three Crows — 3 bearish candles each opening at prior close.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
-100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLINNECK(open, high, low, close)[source]
In-Neck Pattern — bearish then bullish closing near prior close, bearish continuation.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
-100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLINVERTEDHAMMER(open, high, low, close)[source]
Inverted Hammer — small body at bottom, long upper shadow.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLKICKING(open, high, low, close)[source]
Kicking — two opposite marubozu candles with a gap.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLKICKINGBYLENGTH(open, high, low, close)[source]
Kicking by the Longer Marubozu — direction determined by longer marubozu.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLLADDERBOTTOM(open, high, low, close)[source]
Ladder Bottom — 5-candle bullish reversal.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLLONGLEGGEDDOJI(open, high, low, close)[source]
Long Legged Doji — doji with long upper and lower shadows.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLLONGLINE(open, high, low, close)[source]
Long Line Candle — long body candle (body >= 70% of range).
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLMARUBOZU(open, high, low, close)[source]
Marubozu — full body candle with no or minimal shadows.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLMATCHINGLOW(open, high, low, close)[source]
Matching Low — 2 bearish candles with equal closes, bullish reversal.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLMATHOLD(open, high, low, close)[source]
Mat Hold — 5-candle bullish continuation pattern.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLMORNINGDOJISTAR(open, high, low, close)[source]
Morning Doji Star — 3-candle bullish reversal with doji star.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLMORNINGSTAR(open, high, low, close)[source]
Morning Star — 3-candle bullish reversal pattern.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLONNECK(open, high, low, close)[source]
On-Neck Pattern — bearish then bullish reaching only prior low, bearish continuation.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
-100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLPIERCING(open, high, low, close)[source]
Piercing Pattern — bearish then bullish piercing past midpoint, bullish reversal.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLRICKSHAWMAN(open, high, low, close)[source]
Rickshaw Man — doji with long shadows and body near center.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLRISEFALL3METHODS(open, high, low, close)[source]
Rising/Falling Three Methods — 5-candle continuation pattern.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLSEPARATINGLINES(open, high, low, close)[source]
Separating Lines — 2-candle continuation with same open, opposite direction.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLSHOOTINGSTAR(open, high, low, close)[source]
Shooting Star — small body at bottom, long upper shadow.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
-100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLSHORTLINE(open, high, low, close)[source]
Short Line Candle — small body (body <= 30% of range).
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLSPINNINGTOP(open, high, low, close)[source]
Spinning Top — small body with shadows longer than the body.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLSTALLEDPATTERN(open, high, low, close)[source]
Stalled Pattern — 3 bullish candles with stalling on the third, bearish warning.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
-100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLSTICKSANDWICH(open, high, low, close)[source]
Stick Sandwich — 2 bearish candles surrounding a bullish, same close.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLTAKURI(open, high, low, close)[source]
Takuri — Dragonfly Doji with very long lower shadow (>= 3x body).
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLTASUKIGAP(open, high, low, close)[source]
Tasuki Gap — 3-candle gap continuation with partial fill.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLTHRUSTING(open, high, low, close)[source]
Thrusting Pattern — bearish then bullish reaching below midpoint, bearish continuation.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
-100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLTRISTAR(open, high, low, close)[source]
Tristar Pattern — 3 dojis with reversal implication.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLUNIQUE3RIVER(open, high, low, close)[source]
Unique 3 River — 3-candle bullish reversal.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLUPSIDEGAP2CROWS(open, high, low, close)[source]
Upside Gap Two Crows — 3-candle bearish reversal.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
-100 where pattern is detected, 0 otherwise.
- Return type:
numpy.ndarray[int32]
- ferro_ta.pattern.CDLXSIDEGAP3METHODS(open, high, low, close)[source]
Upside/Downside Gap Three Methods — 3-candle gap fill continuation.
- Parameters:
open (array-like) – OHLC price arrays.
high (array-like) – OHLC price arrays.
low (array-like) – OHLC price arrays.
close (array-like) – OHLC price arrays.
- Returns:
100 (bullish), -100 (bearish), or 0.
- Return type:
numpy.ndarray[int32]