DocumentationMQL5 ReferenceStandard LibraryMathematicsStatisticsSubfunctionsMathSumMathSumMathSumReturns the sum of array elements.double MathSum( const double& array[] // array of values )Parameters array[][in] Array of values.Return Value The sum of the elements.Last updated on 2026-07-24MathMaxMathProduct