sharteel:
I have a probleme with comit extern int value in an array.
I got surprised by this myself recently. Arrays in MQ4 have to be initialised with constant values. What you're trying works in C but not in MQ4 (or MQ5). See https://docs.mql4.com/basis/variables/initialization - the last sentence on that page.
Hi,
i have found a solution:
extern int a = 1; extern int b = 2; extern int c = 3; int array_tmp[]={0,0,0};
int init() { array_tmp[0]=a; array_tmp[1]=b; array_tmp[2]=c; }Tx.
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
Hi,
I have a probleme with comit extern int value in an array.
When i compile, i have theses errors:
Any idea ?
Regards