donchian

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.donchian(high: ArrayLike,low: ArrayLike,period: int = 20) -> dict[str, np.ndarray]

Donchian channel: highest high and lowest low of the last period bars, and their mean.

Parameters

NameTypeDefault
highArrayLike
lowArrayLike
periodint20

Indicator: Donchian channel

Classpython
forge.ta.Donchian(**inputs: Any) -> None

Highest high and lowest low of the last N bars, with their midpoint.

Inputs

NameTypeDefaultRange
periodint201 to 5000

upper = the highest high of the last period bars

lower = the lowest low of the last period bars

middle = (upper + lower) / 2