Table of Contents

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
IPersistable
ICloneable<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 KeltnerChannelMiddle

Middle line.

atr AverageTrueRange

Average True Range.

upper KeltnerChannelBand

Upper line.

lower KeltnerChannelBand

Lower line.

Properties

Length

Period length.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Period", Description = "IndicatorPeriod", GroupName = "General")]
public int Length { get; set; }

Property Value

int

Lower

Lower line.

[Browsable(false)]
public KeltnerChannelBand Lower { get; }

Property Value

KeltnerChannelBand

Middle

Middle line.

[Browsable(false)]
public KeltnerChannelMiddle Middle { get; }

Property Value

KeltnerChannelMiddle

Multiplier

Multiplier for ATR.

public decimal Multiplier { get; set; }

Property Value

decimal

Upper

Upper line.

[Browsable(false)]
public KeltnerChannelBand Upper { get; }

Property Value

KeltnerChannelBand

Methods

CalcIsFormed()

Calc IsFormed.

protected override bool CalcIsFormed()

Returns

bool

IsFormed

OnProcess(IIndicatorValue)

To handle the input value.

protected override IIndicatorValue OnProcess(IIndicatorValue input)

Parameters

input IIndicatorValue

The 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()

Returns

string