Multiply(Array1, Array2) as Array OR Multiply(Array, Number) as Array

Multiply function returns the multiplication of the two arrays, item by item or the multiplication of each item of the array with the number.

 

This function has two parameters:
Array   An array, no matter the size.
Number   The number to multiply at each item of the array

 

Example:

' This is an indicator
' It shows the multiplication of the simple and the exponential moving averages.
Sub Main()
  TArr = SMA(GetClose, 10)
  TArr2 = EMA(GetClose, 10)
  SetIndic(Multiply(TArr, TArr2))
End Sub