Skip to content

Unique 3 River

Unique 3 River is a bullish continuation pattern with three consecutive long candles, suggesting ongoing market strength.

Method

tm.ta.cdlunique3river(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
cdlunique3rivernp.ndarray

Example usage

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