PercentagePriceOscillator
StockSharp.Algo.Indicators
Percentage Price Oscillator (PPO).
Inherits: BaseIndicator
Constructors
PercentagePriceOscillator
public PercentagePriceOscillator()
percentagePriceOscillator = PercentagePriceOscillator()
Initializes a new instance of the PercentagePriceOscillator.
PercentagePriceOscillator
public PercentagePriceOscillator(ExponentialMovingAverage shortEma, ExponentialMovingAverage longEma)
percentagePriceOscillator = PercentagePriceOscillator(shortEma, longEma)
Initializes a new instance of the PercentagePriceOscillator.
- shortEma
- The short-term EMA.
- longEma
- The long-term EMA.
Properties
LongEma
public ExponentialMovingAverage LongEma { get; }
value = percentagePriceOscillator.LongEma
Long EMA.
LongPeriod
public int LongPeriod { get; set; }
value = percentagePriceOscillator.LongPeriod
percentagePriceOscillator.LongPeriod = value
Long period.
Measure
public override IndicatorMeasures Measure { get; }
value = percentagePriceOscillator.Measure
IndicatorMeasures.
NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = percentagePriceOscillator.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 = percentagePriceOscillator.ShortEma
Short EMA.
ShortPeriod
public int ShortPeriod { get; set; }
value = percentagePriceOscillator.ShortPeriod
percentagePriceOscillator.ShortPeriod = value
Short period.
Methods
CalcIsFormed
protected override bool CalcIsFormed()
result = percentagePriceOscillator.CalcIsFormed()
Calc IsFormed.
Returns: IsFormed
Load
public override void Load(SettingsStorage storage)
percentagePriceOscillator.Load(storage)
Load settings.
- storage
- Settings storage.
OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = percentagePriceOscillator.OnProcess(input)
To handle the input value.
- input
- The input value.
Returns: The resulting value.
Save
public override void Save(SettingsStorage storage)
percentagePriceOscillator.Save(storage)
Save settings.
- storage
- Settings storage.
ToString
public override string ToString()
result = percentagePriceOscillator.ToString()
Преобразовать к строковому представлению.
Returns: Строковое представление.