GetBufferMin

Finds the minimum value in a buffer within a specified range.

Syntax

GetBufferMin(buffer: number, index1: number, index2: number): number

Parameters

  • buffer - A number representing the buffer index.

  • index1 - A number representing the start of the range.

  • index2 - A number representing the end of the range.

Return Value

Returns a number representing the minimum value found in the specified range of the buffer.

Description

The GetBufferMin method finds the minimum value in a buffer within the range specified by index1 and index2. This can be useful for scaling or normalizing indicator values.

Example

Last updated