Skip to content

Upside Gap Two Crows

The Upside Gap Two Crows, a three-candle pattern, signals a potential reversal lower by indicating a slowdown in uptrend momentum.

Method

tm.ta.cdlupsidegap2crows(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
cdlupsidegap2crowsnp.ndarray

Example usage

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