Skip to content

Matching Low

Matching Low is a bullish reversal pattern where two consecutive candles have the same low.

Method

tm.ta.cdlmatchinglow(source_open, source_high, source_low, source_close)

Inputs

ParameterArgument typeDescriptionDefault Value
source_openpd.SeriesOpen prices series-
source_highpd.SeriesHigh prices series-
source_lowpd.SeriesLow prices series-
source_closepd.SeriesClose prices series-

Outputs

OutputType
cdlmatchinglownp.ndarray

Example usage

strategy.py
import tradomate as tm
@tm.strategy()
def my_strategy(config: tm.TradomateConfig, data: tm.TradomateData):
# Trying out Matching Low
cdlmatchinglow = tm.ta.cdlmatchinglow(data.open, data.high, data.low, data.close)
# Get the last value and print
last_value = cdlmatchinglow.iloc[-1]
tm.log(f"Last value of Matching Low is {last_value}")
# Plot the values of cdlmatchinglow
tm.plot(cdlmatchinglow, title="Matching Low", overlay=False)