Class Momentum
Momentum.
Inherited Members
Namespace: StockSharp.Algo.Indicators
Assembly: StockSharp.Algo.dll
Syntax
[DescriptionLoc("Str769", false)]
public class Momentum : LengthIndicator<Decimal>, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
Remarks
Momentum Simple = C - C-n Where C- closing price of previous period. Where C-n - closing price N periods ago.
Constructors
Momentum()
Initializes a new instance of the Momentum.
Declaration
public Momentum()
Properties
IsFormed
Whether the indicator is set.
Declaration
public override bool IsFormed { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
StockSharp.Algo.Indicators.LengthIndicator<System.Decimal>.IsFormed
Methods
OnProcess(IIndicatorValue)
To handle the input value.
Declaration
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
Type | Name | Description |
---|---|---|
IIndicatorValue | input | The input value. |
Returns
Type | Description |
---|---|
IIndicatorValue | The resulting value. |
Overrides
Implements
Ecng.Serialization.IPersistable
Ecng.Common.ICloneable<>