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
shortEma
ExponentialMovingAverageThe short-term EMA.
longEma
ExponentialMovingAverageThe 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
time
DateTimeOffset
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()