No values for some predefined variable

 

I am in the process of back testing a new EA.

I use the "every tick" model, but get no values for the High[], Low[] and Close[] arrays (all are == 0) I get only values for the Open[] array.

Can anyone explain to me why this is happening? Is there a setting somewhere that I must adjust, or is my MT4 data corrupt? Or could it be the code?

Here is a snippet of the code:

               for (i = 4; i >= 1; i--)
               RefreshRates();
                  if (Low[i-1] > LowestLevel)
                     {
                        if (Close[i-1] >= Open[i])
                        {
                           nBearRevBars = nBearRevBars + 1;
                           int HighBar = iHighest(NULL,0,MODE_LOW,4,1);
                           dBuyPrice = High[HighBar]+ (PipsOpenTrans * UsePoint);
 
Don't worry! I found the error. It was a coding mistake!
Reason: