TA-Lib : Technical Analysis Library

Variable.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

Variable named "SMA_X" where X is the period.

See Also

Variable Class | TA.Lib Namespace