TA-Lib : Technical Analysis Library

Timeseries.Sma Method 

Simple moving average.

[Visual Basic]
Public Function Sma( _ 
   ByVal period As Integer _ 
) As Timeseries
[C#]
public Timeseries Sma(
   int period
);
[C++]
public: Timeseries* Sma(
   int period
);
[JScript]
public function Sma(
   int period
): Timeseries;

Parameters

period

Return Value

A new time series with a variable named "SMA_x" where x is the period.

See Also

Timeseries Class | TA.Lib Namespace