Skip to content

CDLMATHOLD

Summary

A five-candle bullish continuation pattern: a long white candle, an upside real-body-gapped small black candle, two more small falling candles that hold within the first body, and a final white candle closing above the reaction days' highs. Signals continuation of the prior uptrend. Hit = bullish continuation of the existing uptrend.

Notes

  • The colors of the third and fourth (reaction) candles are not checked, although they are classically black.
  • The continuation reading assumes a prior uptrend, which is not verified.

Inputs

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

Outputs

  • outInteger — +100 when the bullish Mat Hold is detected, 0 otherwise. Never emits -100

Parameters

  • optInPenetration — Max fraction of the 1st white body the reaction days (3rd, 4th) may penetrate; default 0.5

Implementation

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

Native File
C ta_CDLMATHOLD.c
Rust cdlmathold.rs
Java Core.java

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

Aliases

Mat Hold

See Also

CDLRISEFALL3METHODS · CDLXSIDEGAP3METHODS