Short Name: xPeriodSum

Definition: Represent an array of sums of values over a period

Usage: xPeriodSum(array,14)

  • Execute an addition of values over a given period
  • If the numeric parameter is 0, cumulate all values on each member of the array
  • Returns an array of values.

  • Returns an array of values.

  • xPeriodSum(close,14) returns an array where each item is the sum of the previous 14 days close values
  • xPeriodSum(volume,0) returns an array where array[0] is the last volume, array[1] the sum of volume0 and volume1, array[2] the sum of volume2 and array[1], etc…