VariablePeriodSum(DataArray, PeriodsArray)
DataArray - Is the array that the indicator should be calculated on.
PeriodsArray - An array of periods that indicate the look-back for calculating the highest high value.
This function is the same as Amibroker's built in function Sum except that it can use an array for periods.