TA-Lib : Technical Analysis Library

Timeseries.AddOp.Sma Method 

Simple Moving average

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

Parameters

period

Return Value

Add variable named "SMA_X" where X is the period.

See Also

Timeseries.AddOp Class | TA.Lib Namespace