Newbie requires help

 
Can some expert shed light on my EA. I am trying to store tick data into an array, which always stores zeros. I can, however, successfully export ticks into a text file. Attached is my EA and the results
 

Solved

I used Dynamic Array method and it has solved my problem 

 
Prem1978:

Solved

I used Dynamic Array method and it has solved my problem 

Dynamic arrays aren't supported with mql4 unless they are Indicator buffers.  Outside of an Indicator either declare them with a size or use ArrayResize() to increase/decrease their size.
Reason: