Skip to content

Identical Three Crows

Three black crows is opposite of three white soldiers and is a bearish candlestick pattern used to predict the reversal of a current uptrend

Method

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

Inputs

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

Outputs

OutputType
cdlidentical3crowsnp.ndarray

Example usage

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