l load hundred instances of an indicator in same code. Chart freezes and it is normal. But when I close the chart MT is still in hang. How could this be? Does it mean all hundred instances are still there? Even after closing charts?
- Indicator is causing mt5 to Automatically close
- Coding help
- How to change text value after it down?
Yashar Seyyedin: l load hundred instances of an indicator in same code. Chart freezes and it is normal. But when I close the chart MT is still in hang. How could this be? Does it mean all hundred instances are still there? Even after closing charts?
You may be suffering from a memory leak in the code or maybe from RAM fragmentation due to the multiple memory allocation and deallocation for so many buffers.
Don't use so many instance of indicators. 100 is ludicrous. Carry out the calculations in a more efficient manner in the EA with incremental calculations so as not to allocate so many buffers.
Yashar Seyyedin:
l load hundred instances of an indicator in same code. Chart freezes and it is normal. But when I close the chart MT is still in hang. How could this be? Does it mean all hundred instances are still there? Even after closing charts?
l load hundred instances of an indicator in same code. Chart freezes and it is normal. But when I close the chart MT is still in hang. How could this be? Does it mean all hundred instances are still there? Even after closing charts?
Of course, a thread is running for each symbol, not for a chart.
You can check with the MT5 Task Manager (F2 key).
![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