You have to declare the array size first:
int goodTimesArray[5];Or use ArrayResize(): https://docs.mql4.com/array/ArrayResize . MQL doesn't use dynamic self sizing arrays.
jmca wrote >>
You have to declare the array size first:
Or use ArrayResize(): https://docs.mql4.com/array/ArrayResize . MQL doesn't use dynamic self sizing arrays.Thanks very much.
jmca:
You have to declare the array size first:
Or use ArrayResize(): https://docs.mql4.com/array/ArrayResize . MQL doesn't use dynamic self sizing arrays.It works for me, tq ........................May god guide you.
-
Play videoPlease edit your post.
For large amounts of code, attach it. - Declare a fixed size, resize the arrays first, or make them buffers. learn
to code
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,
I write an Expert Advisors program that stores the Indicator values iEnvelopes, iBands and iMA in an Array.
Unfortunately, the program doesn't work. No prices are stored in the Array.
What must I do?
Thanks very much for each answer.