Vladislav Boyko:Is it normal? Or is it a bug?
Don't confuse "variable constants" with "constants/literals". They are not the same thing.
In this case, what the compiler is expecting is "constants/literals" so as to be able to resolve the expression at compile-time.
Works with built-in constants (MQL4):
//... int arrOk2[3] = {OP_SELL + 2, OP_SELL + 3, OP_SELL + 4}; // OK //...
Fernando Carreiro #: Don't confuse "variable constants" with "constants/literals". They are not the same thing. In this case, what the compiler is expecting is "constants/literals" so as to be able to resolve the expression at compile-time.
I'm understood, thank you
![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
Is it normal? Or is it a bug?