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
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = percentagePriceOscillator.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task
OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = percentagePriceOscillator.OnProcess(input)
To handle the input value.
- input
- The input value.
Returns: The resulting value.
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = percentagePriceOscillator.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task
ToString
public override string ToString()
result = percentagePriceOscillator.ToString()
Returns a string representation of the tuple, with values separated by commas.
Returns: A string representing the tuple's values.