SMA(Array, Period) as Array

SMA returns the simple moving average of the Array of the selected Period.

 

This function has two parameters:
Array   The array that contains the initial values to process the simple moving average.
Period   The period of the moving average. Must be an integer.

 

Example:

' Trix MA
' This is an indicator
Sub Main()
  TempArr = GetIndic("Trix")
  SetIndic SMA(TempArr, 10)
End Sub