Donchian Channel
Description
A moving average indicator developed by Richard Donchian. It plots the highest high and lowest low over a specific period.
Syntax
DonchianChannel(int period)
DonchianChannel(ISeries\<double\> input, int period)
**Returns mean value (middle band) at a specified bar index **
DonchianChannel(int period)[int barsAgo]
DonchianChannel(ISeries\<double\> input, int period)[int barsAgo]
**Returns upper band value at a specified bar index **
DonchianChannel(int period).Upper[int barsAgo]
DonchianChannel(ISeries\<double\> input, int period).Upper[int barsAgo]
Returns lower band value at a specified bar index
DonchianChannel(int period).Lower[int barsAgo]
DonchianChannel(ISeries\<double\> input, int period).Lower[int barsAgo]
Return Value
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.
Parameters
Examples
Source Code
You can view this indicator method source code by selecting the menu New > NinjaScript Editor > Indicators within the NinjaTrader Control Center window.

