Download MetaTrader 5

Discussion of article "Adding a control panel to an indicator or an Expert Advisor in no time"

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
182662
MetaQuotes Software Corp.  

New article Adding a control panel to an indicator or an Expert Advisor in no time has been published:

Have you ever felt the need to add a graphical panel to your indicator or Expert Advisor for greater speed and convenience? In this article, you will find out how to implement the dialog panel with the input parameters into your MQL4/MQL5 program step by step.

Your MQL4/MQL5 indicator or Expert Advisor may be the most efficient in the world but there is always a room for improvements. In most cases, you need to enter the program's settings to change its inputs. However, this step can be avoided.

Develop your own control panel based on Standard Library classes. This will allow you to change the settings without restarting a program. Besides, this will make your program more attractive allowing it to stand out from the competitors. You can browse through multiple graphical panels in the Market.

In this article, I will show you how to add a simple panel to your MQL4/MQL5 program. You will also find out how to teach a program to read the inputs and react to changes of their values.

2.2. Panel

The finalized PanelDialog2.mqh panel looks as follows:

Panel number two

Fig. 4. Panel number two

What are the benefits of combining the MACD Sample.mq5 EA with the PanelDialog2.mqh panel? This allows us to quickly change the EA parameters (Lots, Trailing Stop Level (in pips), and others), as well as trade event notification settings (Mail, Push, and Alert) on the current timeframe the EA is to be launched at.

Changed EA parameters (Lots, Trailing Stop Level (in pips), and others) are applied after clicking the Apply changes button. Changes of the trade event notification settings (Mail, Push, and Alert) are applied automatically. There is no need to press the Apply changes button.

Author: Karputov Vladimir

Aaditya Bhagra
130
Aaditya Bhagra  
Pretty useful. Thanks.
Vitor Hervatin
290
Vitor Hervatin  
MetaQuotes Software Corp.:

New article Adding a control panel to an indicator or an Expert Advisor in no time has been published:

Aut

MetaQuotes Software Corp.:

New article Adding a control panel to an indicator or an Expert Advisor in no time has been published:

Author: Karputov Vladimir

MetaQuotes Software Corp.:

New article Adding a control panel to an indicator or an Expert Advisor in no time has been published:

Author: Karputov Vladimir

hor: Karputov Vladimir 

 

Hello!

Very nice job! :)

I convert the MACD_exemple in MQ4, to use the grapch function.

works very nice, but when a change the TF more than 2 times, the window was totally desconfigured.

Please, can you help me? 

Look the image, please! 

Files:
Vladimir Karputov
Moderator
50060
Vladimir Karputov  
Vitor Hervatin:
My article is about MetaTrader 5. Although I, too, breaks up the panel (build 1502).
Vitor Hervatin
290
Vitor Hervatin  
Vladimir Karputov:
My article is about MetaTrader 5. Although I, too, breaks up the panel (build 1502).
I know this, but maybe you can help me!
Vladimir Karputov
Moderator
50060
Vladimir Karputov  
Vitor Hervatin:
I know this, but maybe you can help me!
I won't be able to help you - I don't support the old terminal long ago.
Vitor Hervatin
290
Vitor Hervatin  
Vladimir Karputov:
I won't be able to help you - I don't support the old terminal long ago.
Ok ok, no problem! Thanks a lot
To add comments, please log in or register