How to calculate the sum of the newest 240 data in the array? - page 2

 
William Roeder #:
Not compiled, not tested, just typed.

Not compiled, not tested, just typed.

Is it possible to do this sum operation via 'MathSum' function? 
 
aunal7673 #: Is it possible to do this sum operation via 'MathSum' function? 

MathSum is only available on MQL5 and it sums ALL the elements of an array, not just part of it.

Documentation on MQL5: Standard Library / Mathematics / Statistics / Subfunctions / MathSum
Documentation on MQL5: Standard Library / Mathematics / Statistics / Subfunctions / MathSum
  • www.mql5.com
MathSum(const double&) - Subfunctions - Statistics - Mathematics - Standard Library - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
aunal7673 #: Is it possible to do this sum operation via 'MathSum' function? 

No. Because there is no MathSum function in MT4.