Download MetaTrader 5

summation elements for an array.

To add comments, please log in or register
Do you want to become a well-known developer? Execute the orders of traders in the Freelance service!
YousNmed
96
YousNmed 2011.09.28 03:29 

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 2011.09.28 07:52  
What have You written so far? Where are you Stuck? Show your codes using the SRC button above.
Simon Gniadkowski
Moderator
18001
Simon Gniadkowski 2011.09.28 09:36  
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
14519
whroeder1 2011.09.28 16:13  
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 2015.02.03 16:55  

Thanks !!!!!!

To add comments, please log in or register