Skip to content

Hikkake Pattern

Hikkake Pattern is a bullish or bearish reversal pattern formed by a combination of inside bar patterns.

Method

tm.ta.cdlhikkake(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
cdlhikkakenp.ndarray

Example usage

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