McClellanOscillator

StockSharp.Algo.Indicators

McClellan Oscillator.

Inherits: BaseIndicator

Constructors

McClellanOscillator
public McClellanOscillator()
mcClellanOscillator = McClellanOscillator()

Initializes a new instance of the McClellanOscillator.

Properties

Ema19
public ExponentialMovingAverage Ema19 { get; }
value = mcClellanOscillator.Ema19

Exponential Moving Average with length 19.

Ema39
public ExponentialMovingAverage Ema39 { get; }
value = mcClellanOscillator.Ema39

Exponential Moving Average with length 39.

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

IndicatorMeasures.

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

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

Methods

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

To handle the input value.

input
The input value.

Returns: The resulting value.

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