PercentageVolumeOscillator
StockSharp.Algo.Indicators
Percentage Volume Oscillator (PVO).
Inherits: BaseComplexIndicator<IPercentageVolumeOscillatorValue>
Constructors
PercentageVolumeOscillator
public PercentageVolumeOscillator()
percentageVolumeOscillator = PercentageVolumeOscillator()
Initializes a new instance of the PercentageVolumeOscillator.
PercentageVolumeOscillator
public PercentageVolumeOscillator(ExponentialMovingAverage shortEma, ExponentialMovingAverage longEma)
percentageVolumeOscillator = PercentageVolumeOscillator(shortEma, longEma)
Initializes a new instance of the PercentageVolumeOscillator.
- shortEma
- The short-term EMA.
- longEma
- The long-term EMA.
Properties
LongEma
public ExponentialMovingAverage LongEma { get; }
value = percentageVolumeOscillator.LongEma
Long EMA.
LongPeriod
public int LongPeriod { get; set; }
value = percentageVolumeOscillator.LongPeriod
percentageVolumeOscillator.LongPeriod = value
Long period.
Measure
public override IndicatorMeasures Measure { get; }
value = percentageVolumeOscillator.Measure
IndicatorMeasures.
NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = percentageVolumeOscillator.NumValuesToInitialize
Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.
ShortEma
public ExponentialMovingAverage ShortEma { get; }
value = percentageVolumeOscillator.ShortEma
Short EMA.
ShortPeriod
public int ShortPeriod { get; set; }
value = percentageVolumeOscillator.ShortPeriod
percentageVolumeOscillator.ShortPeriod = value
Short period.
Methods
CalcIsFormed
protected override bool CalcIsFormed()
result = percentageVolumeOscillator.CalcIsFormed()
Calc IsFormed.
Returns: IsFormed
CreateValue
protected override IPercentageVolumeOscillatorValue CreateValue(DateTime time)
result = percentageVolumeOscillator.CreateValue(time)
Create .
- time
- Time
Load
public override void Load(SettingsStorage storage)
percentageVolumeOscillator.Load(storage)
Load settings.
- storage
- Settings storage.
OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = percentageVolumeOscillator.OnProcess(input)
To handle the input value.
- input
- The input value.
Returns: The resulting value.
Save
public override void Save(SettingsStorage storage)
percentageVolumeOscillator.Save(storage)
Save settings.
- storage
- Settings storage.
ToString
public override string ToString()
result = percentageVolumeOscillator.ToString()
Преобразовать к строковому представлению.
Returns: Строковое представление.