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

Back to topics list To post a new topic, please log in or register
avatar
Moderator
72400
MetaQuotes 2016.02.26 15:06
 

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

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

avatar
249
4evermaat 2016.03.01 06:21 #
 
what is the largest string characters (max character input) that can be accepted by a control panel?  I am wondering if it is longer than the 255 character string input that EA properties dialog box has.
avatar
119
Doerk 2016.03.27 18:07 #
 
4evermaat:
what is the largest string characters (max character input) that can be accepted by a control panel?  I am wondering if it is longer than the 255 character string input that EA properties dialog box has.

Its 64 characters. And by the way: Dont use the standard control libs for serious purposes cause they use too much CPU performance. 


avatar
1
jeanlin2000 2016.03.28 01:25 #
 

Hi Is it allowed to set close price as the take profit or stop loss. If yes How?




Back to topics list  

To add comments, please log in or register