Script: VolumeAvg | Mastock Help



Short Name: VolumeAvg

Definition: Array of values representing a mobile exponential average of the volume

Usage: volumeAvg(50) or volumeAvg(50,1000000)

Objective:
  • Retrieve a mobile exponential average of the volume values
  • Returns an array of values.

Note:
  • All parameters are optional
  • The first parameter is a period for moving average, 50 if omitted
  • The second parameter is a divider, 1000000 by default. It is used to make results more readable

Examples:
  • volumeAvg
  • volumeAvg(50)
  • volumeAvg(50,1000000)
  • volume:
  • vol = volume(50,1000)
  • average = volumeAvg(50,1000)
  • notifyresult(vol,average)