i want to calculate the sum of an array,is there this fuction ?
thanks
- YALEWANG:
is there this fuction ? - learn to code or pay someone. Asking for such a trivial thing is a waste of your time as well as ours. It took me under 3 minutes to type it below.
- YALEWANG:
i want to calculate the sum of an arraydouble ArraySum(double Array[], int count=WHOLE_ARRAY, int start=0){ int size = ArraySize(Array); if (count == WHOLE_ARRAY) count = size; int iLimit = start + count; if (iLimit > size) iLimit = size; for(double sum=0; start < iLimit; start++) sum += Array[start]; return(sum); }

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register