Class KeltnerChannels
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.Algo.dll
Keltner Channels indicator.
[Display(ResourceType = typeof(LocalizedStrings), Name = "KC", Description = "KeltnerChannels")]
[IndicatorIn(typeof(CandleIndicatorValue))]
public class KeltnerChannels : BaseComplexIndicator, IComplexIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
- Inheritance
-
KeltnerChannels
- Implements
-
IPersistableICloneable<IIndicator>
- Derived
- Inherited Members
- Extension Methods
Remarks
Constructors
KeltnerChannels()
Initializes a new instance of the KeltnerChannels.
public KeltnerChannels()
KeltnerChannels(KeltnerChannelMiddle, AverageTrueRange, KeltnerChannelBand, KeltnerChannelBand)
Initializes a new instance of the KeltnerChannels.
public KeltnerChannels(KeltnerChannelMiddle middle, AverageTrueRange atr, KeltnerChannelBand upper, KeltnerChannelBand lower)
Parameters
middle
KeltnerChannelMiddleMiddle line.
atr
AverageTrueRangeAverage True Range.
upper
KeltnerChannelBandUpper line.
lower
KeltnerChannelBandLower line.
Properties
Length
Period length.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Period", Description = "IndicatorPeriod", GroupName = "General")]
public int Length { get; set; }
Property Value
Lower
Lower line.
[Browsable(false)]
public KeltnerChannelBand Lower { get; }
Property Value
Middle
Middle line.
[Browsable(false)]
public KeltnerChannelMiddle Middle { get; }
Property Value
Multiplier
Multiplier for ATR.
public decimal Multiplier { get; set; }
Property Value
Upper
Upper line.
[Browsable(false)]
public KeltnerChannelBand Upper { get; }
Property Value
Methods
CalcIsFormed()
Calc IsFormed.
protected override bool CalcIsFormed()
Returns
OnProcess(IIndicatorValue)
To handle the input value.
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
input
IIndicatorValueThe input value.
Returns
- IIndicatorValue
The resulting value.
Reset()
To reset the indicator status to initial. The method is called each time when initial settings are changed (for example, the length of period).
public override void Reset()
ToString()
public override string ToString()