PrettyGoodOscillator

StockSharp.Algo.Indicators

Pretty Good Oscillator (PGO).

Inherits: DecimalLengthIndicator

Constructors

PrettyGoodOscillator
public PrettyGoodOscillator()
prettyGoodOscillator = PrettyGoodOscillator()

Initializes a new instance of the PrettyGoodOscillator.

Properties

Measure
public override IndicatorMeasures Measure { get; }
value = prettyGoodOscillator.Measure

IndicatorMeasures.

Methods

CalcIsFormed
protected override bool CalcIsFormed()
result = prettyGoodOscillator.CalcIsFormed()

Calc IsFormed.

Returns: IsFormed

OnProcessDecimal
protected override decimal? OnProcessDecimal(IIndicatorValue input)
result = prettyGoodOscillator.OnProcessDecimal(input)

To handle the input value.

input
The input value.

Returns: The new value of the indicator.

Reset
public override void Reset()
prettyGoodOscillator.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).