Donchian Channel
<< Click to Display Table of Contents >> Donchian Channel |
A moving average indicator developed by Richard Donchian. It plots the highest high and lowest low over a specific period.
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]
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.
input |
Indicator source data (?) |
period |
Number of bars used in the calculation |
// Prints the current upper value of a 20 period DonchianChannel using default price type |
You can view this indicator method source code by selecting the menu New > NinjaScript Editor > Indicators within the NinjaTrader Control Center window.