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
| Name | Type | Default |
|---|---|---|
| high | ArrayLike | |
| low | ArrayLike | |
| period | int | 20 |
Classpython
forge.ta.Donchian(**inputs: Any) -> NoneHighest high and lowest low of the last N bars, with their midpoint.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| period | int | 20 | 1 to 5000 |
upper = the highest high of the last period bars
lower = the lowest low of the last period bars
middle = (upper + lower) / 2