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

ArrayCopyRates error


Back to topics list
avatar
27
darkstonexa 2005.04.08 20:22 


Well what ever you did in build 164
some of my indicators have now died
I never had an issue with the following function before

I use the ArrayCopyRates function and from that I make some calulations to draw objectlines
e.g pivot lines.

The error I get is as follows:

02:09:34 Pivots Daily GBPUSD,H4: 2-nd dimension of destination array is to be equal to 6


now my array is
rates_1 [2] [6]

and I apply function as follows
ArrayCopyRates(rates_d1, Symbol(), PERIOD_D1);

If I compile the mql file my indicator works the first time i.e the lines are drawn on the chart.
If I restart MT4 the lines will be drawn and I get no errors.
If I add the indicator I get no problems.

BUT as soon as I change timeframes the lines disappear and you get the error I have
highlighted above.. it doesn't even matter if I change back to the timeframe I applied it to..
also going into the properties of the indicator does not bring back the lies. either..
avatar
4464
Slawa 2005.04.08 20:27 
we'll check. thanx
avatar
4464
Slawa 2005.04.08 21:01 
fixed. please wait for next build
avatar
27
darkstonexa 2005.04.09 08:30 
fixed. please wait for next build



:) thanks for that... look forward to the next build
avatar
8
William 2005.04.11 05:03 
fixed. please wait for next build



:) thanks for that... look forward to the next build


Thanks Darkstonexa and Slawa for fixing the pivot line problem so soon, anciously waiting for the correction in build 165

Bye

William
Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets