Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/1339-standardlibrary-mathematics-stat-mathsubfunctions-statmathrange.md
T
2026-06-23 21:47:51 +08:00

492 B

MathRange

Calculates the minima and maxima of array elements.

bool  MathRange(
   const double&  array[],  // array of values
   double&        min,      // minimum value
   double&        max       // maximum value
   )

Parameters

array[]

[in] Array of values.

min

[out] Variable to store the minimum value.

max

[out] Variable to store the maximum value.

Return Value

Returns true if successful, otherwise false.