Download MetaTrader 5

summation elements for an array.

To add comments, please log in or register
YousNmed
96
YousNmed  

hello.

Some one cane help me to write a simple code that can i use to summation elements for an array.

tks.

Ubzen
5394
Ubzen  
What have You written so far? Where are you Stuck? Show your codes using the SRC button above.
Simon Gniadkowski
Moderator
18017
Simon Gniadkowski  
izmnaari:

hello.

Some one cane help me to write a simple code that can i use to summation elements for an array.

tks.

while value<array size

summation += array[value]

value++

whroeder1
15027
whroeder1  
izmnaari:
Some one cane help me to write a simple code that can i use to summation elements for an array.
  1. No Slaves here, learn to code or pay someone. We're not going to code it FOR you. We are willing to HELP you.
  2. xxx summation = 0; for (int iArray = ArraySize(array) - 1; iArray >= 0; iArray--) summation += array[iArray];
yousefselim
17
yousefselim  

Thanks !!!!!!

To add comments, please log in or register