Array access error

samjesse

Active Trader
Aug 30, 2011
118
0
27
Hi
I am getting array access error. please help. Many thx.

MQL5:
// in the indicator file
// GLOBLE VARIABLES
   PAIRS myPairs;
   MYTYPE mt[];
 
 
int OnInit()
  {
   for(uchar i=0;i<ArraySize(myPairs.names);i++)
     {
      for(uchar j=0;j<ArraySize(myPairs.times);j++)
        {
         mt.initialize(myPairs.names[i], myPairs.times[j]); j++; //<<<<<< THE ERROR LINE >>>>>>>
        }
      i++;
     }
 
Last edited by a moderator: