- Use English language here
- Please use the CODE button (Alt-S) when inserting code — https://www.mql5.com/en/articles/24#insert-code

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.
Moniki Priscilla:
It is possible to make a panel stay on top of all other chart windows in MT5.Hello everybody!
I would like to know if it is possible to make a panel stay on top of each and every other graph window that is created,
In other words, it always stays on top of everything in the metatrader, or at least that when switching chart windows this panel does not minimize...
Below is an example of the base code I used to create this panel.
Thank you in advance for your help from friends
However, the code you provided creates a dialog window, which is different from a panel.
#include <Controls\WndClient.mqh> CWndClient ExtPanel; int OnInit() { if(!ExtPanel.Create(0,"ExtPanel",0,20,20,400,200)) return(INIT_FAILED); ExtPanel.Detach(); ExtPanel.SetZOrder(1); // Bring the panel to the top ExtPanel.Activate(); // Activate the panel to receive events return(INIT_SUCCEEDED); } void OnDeinit(const int reason) { ExtPanel.Destroy(); } void OnChartEvent(const int id, const long& lparam, const double& dparam, const string& sparam) { ExtPanel.ChartEvent(id,lparam,dparam,sparam); }
With this code, the panel will stay on top of all chart windows.
Enjoy!

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
Hello everybody!
I would like to know if it is possible to make a panel stay on top of each and every other graph window that is created,
In other words, it always stays on top of everything in the metatrader, or at least that when switching chart windows this panel does not minimize...
Below is an example of the base code I used to create this panel.