Skip to main content

donchian

Calculate Donchian Channels

Source Code: [link]

openbb.ta.donchian(data: pd.DataFrame, upper_length: int = 20, lower_length: int = 20)

Parameters

NameTypeDescriptionDefaultOptional
datapd.DataFrameDataframe of ohlc pricesNoneFalse
upper_lengthintLength of window to calculate upper channel20True
lower_lengthintLength of window to calculate lower channel20True

Returns

TypeDescription
pd.DataFrameDataframe of upper and lower channels