Click or drag to resize

SimpleMovingAverage Class

Simple moving average.
Inheritance Hierarchy
SystemObject
  CloneableIIndicator
    StockSharp.Algo.IndicatorsBaseIndicator
      StockSharp.Algo.IndicatorsLengthIndicatorDecimal
        StockSharp.Algo.IndicatorsSimpleMovingAverage

Namespace:  StockSharp.Algo.Indicators
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.14.0 (4.4.14)
Syntax
C#
public class SimpleMovingAverage : LengthIndicator<decimal>

The SimpleMovingAverage type exposes the following members.

Constructors
  NameDescription
Public methodSimpleMovingAverage
Initializes a new instance of the SimpleMovingAverage.
Top
Properties
Methods
  NameDescription
Public methodClone
Create a copy of IIndicator.
(Inherited from BaseIndicator.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad
Load settings.
(Inherited from LengthIndicatorTResult.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnProcess
To handle the input value.
(Overrides BaseIndicatorOnProcess(IIndicatorValue).)
Public methodProcess
To handle the input value.
(Inherited from BaseIndicator.)
Protected methodRaiseChangedEvent
To call the event Changed.
(Inherited from BaseIndicator.)
Public methodReset
To reset the indicator status to initial. The method is called each time when initial settings are changed (for example, the length of period).
(Inherited from LengthIndicatorTResult.)
Public methodSave
Save settings.
(Inherited from LengthIndicatorTResult.)
Public methodToString
Returns a string that represents the current object.
(Inherited from LengthIndicatorTResult.)
Top
Events
  NameDescription
Public eventChanged
The indicator change event (for example, a new value is added).
(Inherited from BaseIndicator.)
Public eventReseted
The event of resetting the indicator status to initial. The event is called each time when initial settings are changed (for example, the length of period).
(Inherited from BaseIndicator.)
Top
See Also