Max - method of object tvPoints
Returns the maximum calculated from values according to the sFilter parameter. By the parameter is it possible, for example, to specify if the maximum value is calculated from the whole buffer or only from the visible part of the buffer.
Max(sFilter As String) As Double
n = oPoints.Max(sFilter)
|sFilter||(String) Range of values from which the maximum 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