Table of Contents

Class Momentum

Namespace
StockSharp.Algo.Indicators
Assembly
StockSharp.Algo.dll

Momentum.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Momentum", Description = "Momentum")]
[Doc("topics/api/indicators/list_of_indicators/momentum.html")]
public class Momentum : LengthIndicator<decimal>, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
Inheritance
Momentum
Implements
Derived
Inherited Members
Extension Methods

Remarks

Constructors

Momentum()

Initializes a new instance of the Momentum.

public Momentum()

Properties

Measure

public override IndicatorMeasures Measure { get; }

Property Value

IndicatorMeasures

NumValuesToInitialize

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

public override int NumValuesToInitialize { get; }

Property Value

int

Methods

CalcIsFormed()

Calc IsFormed.

protected override bool CalcIsFormed()

Returns

bool

IsFormed

GetCapacity()

Gets the capacity of the buffer for data storage.

protected override int GetCapacity()

Returns

int

The capacity of the buffer. By default, it is equal to Length.

OnProcessDecimal(IIndicatorValue)

To handle the input value.

protected override decimal? OnProcessDecimal(IIndicatorValue input)

Parameters

input IIndicatorValue

The input value.

Returns

decimal?

The new value of the indicator.