Download MetaTrader 5

MaxValue

Gets the maximal value in the specified range.

virtual double  MaxValue(
   const int   start,     // size
   const int   count,     // amount
   int&        index      // reference 
   ) const

Parameters

start

[in]  Search range initial index.

count

[in]  Search range size (number of elements).

index

[out]  Reference to the variable for placing the found element's index value.

Return Value

The maximal value of a series buffer in the specified range, or EMPTY_VALUE.

Note

The index of the found element is stored by index reference.


Updated: 2016.04.27