declare array on global scope.
int a[];
you can resize anytime, but declare array on global scope.
Forum on trading, automated trading systems and testing trading strategies
Ilyas, 2015.09.29 11:13
Thank you for your message error reproduced. Fix.![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
Hi
The new build of the Termianl does not allow an array declared in the function as static.
Example:
The Compiler does not complain about it. But the Terminal does (4.00 build 890, 32-bit)
Access violation write to 0x00000008
I used to have these type of arrays before which would keep its contents every time I call the function. The intend was to avoid declaring an array on a global scope.
Any ideas how to implement this idea?