S samjesse Active Trader Aug 30, 2011 118 0 27 Oct 28, 2011 #1 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: Sep 28, 2015
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++; }
Enivid Administrator Staff member Nov 30, 2008 19,297 1,529 144 Odesa www.earnforex.com Oct 28, 2011 #2 It's hard to tell without seeing the whole code.