plz!! Help me! I totally don't know why this code don't work..

 

Hi, everyone!! I wish your all success in FX market!!
This is my test code in Expert Adviser.
I expected the results like this.

.....................
2007.02.15 00:00,4996
2007.02.15 04:00,4997
2007.02.15 08:00,4998
2007.02.15 12:00,4999
2007.02.15 16:00,5000

But, I couldn't get this.. otherwise,

2007.02.14 16:00,0
2007.02.14 20:00,0
2007.02.15 00:00,0
2007.02.15 04:00,0
2007.02.15 08:00,0
2007.02.15 12:00,0
2007.02.15 16:00,0

All my array valuable "aa1[]" is 0 ...
I can't find why this has been happened...
plz, help me... I'm novice in programming....
this is code....


int start()
{
//----

int handle;
int i;
int j;
int err;
double aa1[];

for(i=5000; i>=0; i--)
{
aa1[i]= 5000 - i ;
}

return(0);
}

 
your aa1 array is not allocated.

try to use declaration
double aa1[5000];
 
 
Hint is: "search rulez"

'help me find mql4 courses'
Reason: