Class KlingerVolumeOscillator
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.Algo.dll
Klinger Volume Oscillator.
[Display(ResourceType = typeof(LocalizedStrings), Name = "KVO", Description = "KlingerVolumeOscillator")]
[IndicatorIn(typeof(CandleIndicatorValue))]
[Doc("topics/api/indicators/list_of_indicators/klinger_volume_oscillator.html")]
[IndicatorOut(typeof(KlingerVolumeOscillatorValue))]
public class KlingerVolumeOscillator : BaseComplexIndicator<KlingerVolumeOscillatorValue>, IComplexIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
- Inheritance
-
KlingerVolumeOscillator
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
KlingerVolumeOscillator()
Initializes a new instance of the KlingerVolumeOscillator.
public KlingerVolumeOscillator()
KlingerVolumeOscillator(ExponentialMovingAverage, ExponentialMovingAverage)
Initializes a new instance of the KlingerVolumeOscillator.
public KlingerVolumeOscillator(ExponentialMovingAverage shortEma, ExponentialMovingAverage longEma)
Parameters
shortEmaExponentialMovingAverageThe short-term EMA.
longEmaExponentialMovingAverageThe long-term EMA.
Properties
LongEma
Long EMA.
[Browsable(false)]
public ExponentialMovingAverage LongEma { get; }
Property Value
LongPeriod
Long period.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Long", Description = "LongPeriod", GroupName = "General")]
public int LongPeriod { get; set; }
Property Value
ShortEma
Short EMA.
[Browsable(false)]
public ExponentialMovingAverage ShortEma { get; }
Property Value
ShortPeriod
Short period.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Short", Description = "ShortPeriod", GroupName = "General")]
public int ShortPeriod { get; set; }
Property Value
Methods
CreateValue(DateTimeOffset)
Create KlingerVolumeOscillatorValue.
protected override KlingerVolumeOscillatorValue CreateValue(DateTimeOffset time)
Parameters
timeDateTimeOffset
Returns
OnProcess(IIndicatorValue)
To handle the input value.
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
inputIIndicatorValueThe 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()