Simple Moving Average (SMA)
Path: Indicators
Returns simple moving average indicator value.
public double Indicators.SMA(int MA_Period, int BarIndex = 0);
Parameters
MA_Period int
MA_Period is period of simple moving average.
BarIndex int
BarIndex is index of bar to get value.
Returns
value double
Returns double value.
Remarks
SMA is a predefined indicator using this function you can get indicator value.
Example
var value = Indicators.SMA(14, 0);