WMA(Array, Period) as Array

WMA returns the weighted 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 weighted 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 WMA(TempArr, 10)
End Sub