Definition
Keltner Channel indicator is based on volatility using a pair of values placed as an "envelope" around the data field.
Syntax
KeltnerChannel(double offsetMutiplier, int period)
KeltnerChannel(IDataSeries inputData, double offsetMutiplier, int period)
Returns midline value
KeltnerChannel(double offsetMutiplier, int period)[int barsAgo]
KeltnerChannel(IDataSeries inputData, double offsetMutiplier, int period)[int barsAgo]
Returns upper band value
KeltnerChannel(double offsetMutiplier, int period).Upper[int barsAgo]
KeltnerChannel(IDataSeries inputData, double offsetMutiplier, int period).Upper[int barsAgo]
Returns lower band value
KeltnerChannel(double offsetMutiplier, int period).Lower[int barsAgo]
KeltnerChannel(IDataSeries inputData, double offsetMutiplier, int period).Lower[int barsAgo]
Return Type
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.
|
Parameters |
|
|
offsetMultiplier |
Value indicating the expansion offset |
|
period |
The number of bars to include in the calculation |
|
inputData |
Indicator source data (?) |
Examples
|
// Prints the current upper value of a 20 period KeltnerChannel using default price type
// Prints the current lower value of a 20 period DonchianChannel using high price type
|
Source Code
You can open up the indicator source code via the NinjaScript Editor.