Download MetaTrader 5

mathematical code

To add comments, please log in or register
Develop applications to order. Make profit using Freelance service!
Hans
102
Hans 2013.11.23 16:34 

Hallo,

I need the code for calculating a sum.

not: d=a+b+c

Thanks.

whroeder1
14480
whroeder1 2013.11.23 17:19  
You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
Tonny Obare
1018
Tonny Obare 2013.11.23 18:41  
int start()
{
  double a,b,c;
  ...

  if(Mysum(a,b,c)>10)
    {
       // do something example
    }
}


double MySum(double a,double b,double c)
{
 double d=a+b+c;
return(d);
}
whroeder1
14480
whroeder1 2013.11.23 22:05  
tonny: Read the OP, he said
hansH: not: d=a+b+c
I think he wants to sum array elements.
Tonny Obare
1018
Tonny Obare 2013.11.24 07:29  
WHRoeder:
tonny: Read the OP, he said I think he wants to sum array elements.
The answer i gave is still applicable as he can just alter the function a little i was just giving an idea.
To add comments, please log in or register