DocumentationMQL5 ReferenceStandard LibraryMathematicsStatisticsSubfunctionsMathMaxMathMaxMathMaxReturns the maximum value of all array elements.double MathMax( const double& array[] // array of values )Parameters array[][in] Array of values.Return Value The maximum value.Last updated on 2026-07-24MathMinMathSum