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.
The finalized PanelDialog2.mqh panel looks as follows:
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
hor: Karputov Vladimir
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!