--- title: donchian description: Learn about Donchian Channels, an indicator formed by upper and lower bands around a midrange or median band. Explore the parameters, returns, and examples. keywords: - Donchian Channels - indicator - upper band - lower band - moving average - security - N periods - Donchian Channel - parameters - data - index column - lower length - upper length - offset - returns - examples --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; Donchian Channels. Three lines generated by moving average calculations that comprise an indicator formed by upper and lower bands around a midrange or median band. The upper band marks the highest price of a security over N periods while the lower band marks the lowest price of a security over N periods. The area between the upper and lower bands represents the Donchian Channel. Parameters ---------- data : List[Data] List of data to be used for the calculation. index : str, optional Index column name to use with `data`, by default "date". lower_length : PositiveInt, optional Number of periods for the lower band, by default 20. upper_length : PositiveInt, optional Number of periods for the upper band, by default 20. offset : int, optional Offset of the Donchian Channel, by default 0. Returns ------- OBBject[List[Data]] The calculated data. Examples -------- ```python from openbb import obb stock_data = obb.equity.price.historical(symbol="TSLA", start_date="2023-01-01", provider="fmp") donchian_data = obb.technical.donchian(data=stock_data.results,lower_length=20,upper_length=20,offset=0) ``` --- ## Parameters This function does not take standardized parameters. --- ## Returns This function does not return a standardized model ---