Carl Schreiber: If the pc(!) is running out of memory you'll get a hint by the OS (in my case Win 7) not mt4 to restart the pc immediately - that's a crash for me!
The problem is the memory consumption of 1 instance of your indicator. How much bars do you have in your chart ? Multiply this by 34 (buffers)... anyway...
MQL5 program stack size. The stack of sufficient size is necessary when executing function recursive calls.
When launching a script
or an Expert Advisor on the chart, the stack of at least 8 MB is
allocated. In case of indicators, the stack size is always fixed and
equal to 1 MB.
When a program is launched in the strategy tester, the stack of 16 MB is always allocated for it.
You can always try to increase the stacksize
#property stacksize// compiler directive (which sets the stack size in bytes), a memory of 8Mb is allocated by default for the stack.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
If the pc(!) is running out of memory you'll get a hint by the OS (in my case Win 7) not mt4 to restart the pc immediately - that's a crash for me!
The problem is the memory consumption of 1 instance of your indicator. How much bars do you have in your chart ? Multiply this by 34 (buffers)... anyway...
stacksize
int
MQL5 program stack size. The stack of sufficient size is necessary when executing function recursive calls.
When launching a script or an Expert Advisor on the chart, the stack of at least 8 MB is allocated. In case of indicators, the stack size is always fixed and equal to 1 MB.
When a program is launched in the strategy tester, the stack of 16 MB is always allocated for it.
You can always try to increase the stacksize