gooly:
You can pass either dynamic array or static if you know the size. I know the size. So if I pass one dimensional array like MqlRates c[200]; CopyRates("AUDUSD", 0, 0, 200, c); that will work. What I need is to pass a sub array from two dimensional array. In C passing the first row of a two dimensional array into a function would be c[0], in mql it doesn't seem to work this way?
What about reading in the editor's reference (hint F1 if the mouse is of the mt4-function) about MqlRates and CopyRates.
What are their dimensions?

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How do I pass a sub-array of a two dimensional array into CopyRates? The code below doesn't work
MqlRates c[3][200];
CopyRates("AUDUSD", 0, 0, 200, c[0]);