Your dynamic array is of size 0
You need to do a ArrayResize before you can use it.
Dominik Egert:
Your dynamic array is of size 0
You need to do a ArrayResize before you can use it.
Thnaks
Anytime I wanna set a value in my array do I need to call ArrayResize ? Or just once is enough?
Soroush:
You need to read carefully the Array documentation... Clearly you don't know how Arrays work in MQL5...
Thnaks
Anytime I wanna set a value in my array do I need to call ArrayResize ? Or just once is enough?
Flavio Jarabeck:
You need to read carefully the Array documentation... Clearly you don't know how Arrays work in MQL5...
You need to read carefully the Array documentation... Clearly you don't know how Arrays work in MQL5...
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hello traders
Look at this part of simple code. I receive "Array out of range" error when running this code. Everything seems correct. Why?