I have edited your post. In future please use the CODE button when you insert code.
![MQL5.community - User Memo MQL5.community - User Memo](https://c.mql5.com/36/63/mql5-community-user-memo__4.jpg)
MQL5.community - User Memo
- www.mql5.com
You have just registered and most likely you have questions such as, "How do I insert a picture to my a message?" "How do I format my MQL5 source code?" "Where are my personal messages kept?" You may have many other questions. In this article, we have prepared some hands-on tips that will help you get accustomed in MQL5.community and take full advantage of its available features.
Fernando Carreiro #:
I have edited your post. In future please use the CODE button when you insert code.
Many thanks. Just as an update - not sure how it fixed the problem but I added a button to remove the Expert using the ExpertRemove() function and that did not close the chart, and oddly though, ever since then, removing the EA using MT5 Expert List dialog also does not remove the chart. I realise this does not help anyone but just an update on my process. As a guess, it may be that the debugger did not clean up some condition so it could be that there was no real problem to start with.
![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
I have written an expert advisor (admittedly first attempt) which uses a canvas as well as a cAppDialog to simulate the TradeView trade visualiser and it works great.
However, when removing the EA using the "Expert List" option on MT5, it also closes the chart to which the EA is bound.
I am clearly missing something basic in the logic and would appreciate guidance.
The code is pretty long but the Init and DeInit functions are as follows but do nothing special: