OscillatorOfMovingAverage

StockSharp.Algo.Indicators

Oscillator of Moving Average indicator.

Inherits: BaseIndicator

Constructors

OscillatorOfMovingAverage
public OscillatorOfMovingAverage()
oscillatorOfMovingAverage = OscillatorOfMovingAverage()

Initializes a new instance of the OscillatorOfMovingAverage.

Properties

LongPeriod
public int LongPeriod { get; set; }
value = oscillatorOfMovingAverage.LongPeriod
oscillatorOfMovingAverage.LongPeriod = value

Long period.

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

IndicatorMeasures.

NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = oscillatorOfMovingAverage.NumValuesToInitialize

Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.

ShortPeriod
public int ShortPeriod { get; set; }
value = oscillatorOfMovingAverage.ShortPeriod
oscillatorOfMovingAverage.ShortPeriod = value

Short period.

Methods

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

Calc IsFormed.

Returns: IsFormed

LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = oscillatorOfMovingAverage.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = oscillatorOfMovingAverage.OnProcess(input)

To handle the input value.

input
The input value.

Returns: The resulting value.

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

SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = oscillatorOfMovingAverage.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

ToString
public override string ToString()
result = oscillatorOfMovingAverage.ToString()

Returns a string representation of the tuple, with values separated by commas.

Returns: A string representing the tuple's values.