Sum - method of object tvPoints
Returns the sum calculated from values according to the sFilter parameter. By the parameter is it possible, for example, to specify if the sum value is calculated from the whole buffer or only from the visible part of the buffer.
Sum(sFilter As String) As Double
n = oPoints.Sum(sFilter)
|sFilter||(String) Range of values from which the sum is calculated|
"all" - from all values that are in the buffer
"visible" - from the values that are in the moment of calling in the visible part of the buffer
See the example in the Avg