This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

What does this error mean ?


Back to topics list
avatar
100
mpfx 2005.04.27 14:11 
I keep getting this error in my experts log continually..

ArrayInitialize function internal error

The funny thing is the code works fine and does exactly what I want it to do, it is just these errors in the log.

This is an extract from the code I am using.

double array_price[][6];
double mpfx ;

ArrayInitialize(array_price,0);
ArrayCopyRates(array_price,(Symbol()), PERIOD_W1);

mpfx = array_price[0][1];


Thanks.........
avatar
4464
Slawa 2005.04.27 17:30 
You attempt to initialize an empty array
BTW it is useless to initialize array before copying
avatar
100
mpfx 2005.04.28 00:39 
Thanks as always Slawa...
Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets