Thread: MQL4 Learning
View Single Post
  #334 (permalink)  
Old 03-19-2008, 07:55 PM
DooMGuarD DooMGuarD is offline
Member
 
Join Date: Jan 2006
Posts: 30
DooMGuarD is on a distinguished road
Quote:
Originally Posted by Linuxser View Post
Yes of course.

Can calculate different arrays.

Something like:
well Linuxser... i have this idea for code

PHP Code:
int start()
{
  
double A iMAOnArray(GetArray(1),10,5,0,MODE_EMA,0);
  
double B iMAOnArray(GetArray(2),10,5,0,MODE_EMA,1);
  
  Print(
"A= ",A,"  B=",B);

  return(
0);
}

double *GetArray(double Factor// how to define a funcion return as array 
{
  
double Arr[10];
  
  for(
int i=0;i<10;i++) Arr[i] = i*Factor;
 
  return(
Arr);

this code is possible?

if yes, think, a lot of way for systems....

regards

Last edited by DooMGuarD; 03-19-2008 at 08:00 PM.
Reply With Quote