Главная
Каталог статей форекс
English instructions and articles

Для того, чтобы использовать все возможности сайта, мы рекомендуем Вам person_add Зарегистрироваться или person Войти

starРейтинг: 5.0/1

date_range Posted: 01.08.2017

date_range Updated: 01.08.2018

remove_red_eyeReviews: 85

dashboardCategory: English instructions and articles

historyHistory versions

merge_typeType: Библиотека

computerTerminal: МТ4 и МТ5

cloudPanel, To, Library, EA, Your, EAPadPRO, Our, Adding


Read about EAPADPRO LIBRARY - Adding our panel to your EA

Description

Method of programming the information panel in any adviser.

The success of any program is, first of all, the interface of the program and the first impression of the program.

We can not guarantee that the information and interface of the program will give you a profit on transactions, but we will definitely say that even the simplest interface of the program can strengthen the first impression.

In this article, we will tell you how to apply our information panel to the EAPADPRO advisor

 

EAPADPRO - Have the information!

EapadPRO is information that the user of any Expert Advisor receives in real time.

In order to create such a panel it took us about 2 weeks, but to bring the interface of the program to a friendly design (graphical user interface, GUI ), it took us months of painstaking work.

Not having enough experience in the development of such panels, you can not make the interface of the program suitable for use.

We do not insist on the ideal GUI of our panel, but according to experience and feedback, it has a number of useful blocks that give a complete picture of what is happening on the graph of your terminal.

We suggest you use our panel in your experts. EAPADPRO - Have the information!

​​​​​​​

Where to begin?

First, you should read the complete instructions for using and managing our panel. Read EAPadPRO - Information panel for our experts

Our panel is distributed as a LIBRARY, which can be used in both MT4 and MT5 ( cross-platform code )

You can download our library in the advisors section for forex , I put in the library archive and examples of use.

All you need is our EAPADPRO LIBRARY library and 10 minutes of time to install into your expert ....

 

Installing the Library

  1. Copy the MQL5 or MQL4 folder to the folder of your terminal \;
  2. These folders include all the necessary files and resources for the work of our library;
  3. Open your Expert Advisor;
  4. Open our sample and step-by-step guide to installing our code, file Exp - EAPADPRO v16 LIBRARY TEST;
  5. Do each Step as written in the recommendation or use our step-by-step instruction from the site.

EAPADPRO personalization

All that you can change in our panel is described in this paragraph:

  1. versionea - The version of your Expert Advisor that is displayed in the panel;
  2. BMPLOGO - the logo of your BMP 60x60 adviser that is displayed on the panel;
  3. icon - The icon of your expert, which is displayed in the properties of the expert;
  4. defEANAME - the name of your Expert Advisor that is displayed in the panel;
  5. YourName - your name or nickname that is displayed in the panel;
  6. copyright - Your copyright, which is displayed in the properties of the Expert Advisor;
  7. CreateInputs - The function of displaying your external variables on the panel. There are 10 such parameters in total. The format of the filling: "Name", "Value";
  8. CreateStrategy - The function of displaying your strategy values ​​on the panel. There are 10 such parameters in total. The format of the filling: "Name", "Value";
  9. MagicForEaPadPRO = 0 - Magic number, which will be watched by our panel (All information is filtered by magic number), at -1 = the panel will take all positions from the account by this symbol, at 0 = only manual;
  10. MagicForEaPadPRO_Open = -1 - Magic number, which will be assigned to the items opened from our panel;
  11. CommentForEaPadPRO = "" - A comment that will be assigned to items opened from our panel;
  12. TypeFillingForEaPadPRO = 0 - Type of fill orders at opening, only for terminal MT5;
  13. ShowBuySell = true - Show the trading panel in 1 click (BUY SELL)

You can also set external variables:

  1. ShowEaPadPro = true;
  2. FontName = "Roboto";
  3. Notice_Open_NameSound = "ok";
  4. Notice_Close_NameSound = "request";
  5. Notice_Modify_NameSound = "stops";
  6. Notice_Error_NameSound = "alert2";

Terms of Use

Our library with the EAPADPRO information panel is distributed free of charge on the back link to our page.

If you wish to sell your expert in the market or on the Internet, you need to add the following text to the description of your product:

  1. The EAPADPRO information graphic panel was developed by the Expforex team.
  2. All rights to this EAPADPRO panel belong to Vladislav Expforex .
  3. The author of the EAPADPRO information panel is not responsible for the advisor or indicator that uses our panel.
  4. Our EAPADPRO panel is designed solely for the purpose of providing additional information about trading on your account.

Programming EAPADPRO 10 steps

In our example, you can find the steps (STEP) that you need to perform in order for the panel to be displayed in your Expert Advisor!

Step 1:

Copy the following code to the top of your EA and change the data that is available for editing (EAPADPRO Personalization):

 // Step 1 ############################################## ######################
// This step is for installing our panel in your Expert Advisor
// ################################################ ###########################
// + ----------------------------------------------- ------------------- +
// Insert at the beginning of the code
// + ----------------------------------------------- ------------------- +
// Copyright of my panel! Do not change!
#define EAPADPRODescription "\ n \ nEAPADPRO pad by www.expforex.com"
#property strict
#ifdef __MQL5__ 
#define MT "MT5" 
#endif
#ifdef __MQL4__ 
#define ORDER_FILLING_FOK 0
#define MT "MT4" 
#endif
// ===========================
// Information about your program |
// ===========================
// Notification that this is a demo version of your program (Will be displayed in the panel)
bool DEMO = false;
// Version
#define versionea "77.777"
#property version versionea
// BMP LOGO 60x60 
#define BMPLOGO "Images \\ EAPADPRO_Images \\ YOURLOGO.bmp" 
#resource "\\" + BMPLOGO;
// Icon of your product
#property icon "\\ Images \\ EAPADPRO_Images \\ YOURLOGO.ico" 
// Expert name
#define defEANAME "EA NAME"
// Your Product Description 
#property description defEANAME + "for" + MT + "" + EAPADPRODescription 
// Your nickname or name is displayed at the bottom of the panel 
#define YourName "Your Nick" 
// Your copyrights
#property copyright YourName + "Your Copyright" 
// ################################################ ########################### 

 

Step 2:

This replacement is needed only to exclude the same output to the log.

 // Step 2 ############################################## ######################
// This step is for installing our panel in your Expert Advisor
// ################################################ ###########################
// + ----------------------------------------------- ------------------- +
// Replace Print with EAPADPRO_LIBRARY_PrintToLogs
// For example: EAPADPRO_LIBRARY_PrintToLogs ("This print will be printed in the log");
// + ----------------------------------------------- ------------------- +
// ################################################ ########################### 

 

Step 3:

In order for the MODIFY ONLY option to work in your Expert Advisor, you need to add the following code if (MODIFYONLY) return (false); in the function of opening positions or orders.

 // Step 3 ############################################## ######################
// This step is for installing our panel in your Expert Advisor
// ################################################ ###########################
// + ----------------------------------------------- ------------------- +
// Add to the beginning of the function of opening positions or orders 
// + ----------------------------------------------- ------------------- +
// if (MODIFYONLY) return (false);
// ################################################ ########################### 

 

Step 4:

The following function displays information about the error in the form of a PUSH notification to the phone , mail, and to the terminal screen. All these notifications in the future can be turned off in the settings of our panel.

 // Step 4 ############################################## ######################
// This step is for installing our panel in your Expert Advisor
// ################################################ ###########################
// + ----------------------------------------------- ------------------- +
// Add to error handling for NOTICE notifications: 
// + ----------------------------------------------- ------------------- +
// EAPADPRO_LIBRARY_Notice_ErrorCheck (information, function information, error number);
// eg:
// EAPADPRO_LIBRARY_Notice_ErrorCheck ("HERE RECORDING INFORMATION", "Line:" + __ LINE __ + "Function:" + __ FUNCTION __ + "\ n" + __ FUNCSIG __, GetLastError ());
// eg:
// Notice_ErrorCheck ("ClosePosition ERROR" + OrderTicket (), "Line:" + __ LINE __ + "Function:" + __ FUNCTION__, GetLastError ());
// ################################################ ########################### 

Step 5:

Add the following code to your OnInit function and note the lines with the CreateInputs and CreateStrategy functions

 // Step 5 ############################################## ######################
// This step is for installing our panel in your Expert Advisor
// ################################################ ###########################
// + ----------------------------------------------- ------------------- +
// | enter the code in OnInit |
// + ----------------------------------------------- ------------------- +
void OnInit ()
 {
 EAPADPRO_LIBRARY_PrintToLogs ("This print will be printed in the log");
// We also add this code to OnTick:
// Here you can write your external variables in the format: "Name", "Value" Up to 10 variables in total
 CreateInputs ("Inputs_TEST1", TimeCurrent (), "Inputs_TEST2", "Inputs_TEST2");
// Here you can write down your data on the strategy in the format: "Name", "Value" Up to 10 values
 CreateStrategy ("Strategy_TEST1", TimeCurrent (), "Strategy_TEST2", "Strategy_TEST2");

// ================================================ ============================
// EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO
 EAPADPRO_LIBRARY_OnInit (ShowEaPadPro, -1, -1, "EAPADPRO", DEMO, defEANAME, 0, FontName, Notice_Open_NameSound, Notice_Close_NameSound, Notice_Modify_NameSound,
 Notice_Error_NameSound, BMPLOGO, versionea, YourName, true);
// EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO
// ================================================ ============================

 return;
 } 

Step 6:

Enter the following code into your OnDeinit function

 // Step 6 ############################################## ######################
// This step is for installing our panel in your Expert Advisor
// ################################################ ###########################
// + ----------------------------------------------- ------------------- +
// | to enter the code in OnDeinit |
// + ----------------------------------------------- ------------------- +
void OnDeinit (const int reason)
 {
// ================================================ ============================
// EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO
 EAPADPRO_LIBRARY_OnDeinit (reason);
// EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO
// ================================================ ============================
 }
// ################################################ ########################### 

 

Step 7:

Enter the following code into your OnTick function and note the lines with the CreateInputs and CreateStrategy functions

 // Step 7 ############################################## ######################
// This step is for installing our panel in your Expert Advisor
// ################################################ ###########################
// + ----------------------------------------------- ------------------- +
// | enter code in OnTick |
// + ----------------------------------------------- ------------------- +
void OnTick ()
 {
// ================================================ ============================
// EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO
 MODIFYONLY = Get_MODIFYONLY ();
 STOPTRADING = Get_STOPTRADING ();
 EAPADPRO_LIBRARY_OnTick (ShowEaPadPro);

// Copy the same code from OnInit
// Here you can write your external variables in the format: "Name", "Value" Up to 10 variables in total
 CreateInputs ("Inputs_TEST1", TimeCurrent (), "Inputs_TEST2", "Inputs_TEST2");
// Here you can write down your data on the strategy in the format: "Name", "Value" Up to 10 values
 CreateStrategy ("Strategy_TEST1", TimeCurrent (), "Strategy_TEST2", "Strategy_TEST2");

// EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO
// ================================================ ============================
 } 

Step 8:

Enter the following code into your OnTrade function or if your code does not have the OnTrade function, then copy the lower code without changing:

 // Step 8 ############################################## ######################
// This step is for installing our panel in your Expert Advisor
// ################################################ ###########################
// + ----------------------------------------------- ------------------- +
// | Enter the code in OnTrade or add, If not |
// + ----------------------------------------------- ------------------- +
void OnTrade ()
 {
// ================================================ ============================
// EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO
 EAPADPRO_LIBRARY_OnTrade (ShowEaPadPro);
// EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO
// ================================================ ============================
 }
// ################################################ ########################### 

Step 9:

Enter the following code in your OnChartEvent function or if your code does not have the OnChartEvent function, then copy the lower code without changing:

 // Step 9 ############################################## ######################
// This step is for installing our panel in your Expert Advisor
// ################################################ ###########################
// + ----------------------------------------------- ------------------- +
// | enter the code in the OnChartEvent or add, if not |
// + ----------------------------------------------- ------------------- +
void OnChartEvent (const int id, const long & lparam, const double & dparam, const string & sparam)
 {
// ================================================ ============================
// EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO
 EAPADPRO_LIBRARY_OnChartEvent (id, lparam, dparam, sparam, ShowEaPadPro);
// EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO EAPADPRO
// ================================================ ============================
 }
// ################################################ ########################### 

Step 10:

The final stage of programming our panel in your Expert Advisor, Copy the code that is below entirely to your Expert Advisor:

 // Step 10 ############################################## ######################
// This step is for installing our panel in your Expert Advisor
// ################################################ ###########################
// + ----------------------------------------------- ------------------- +
// Insert at the end of the code
// + ----------------------------------------------- ------------------- +
input string EAPadPRO = "=============== EAPadPRO Info";
input bool ShowEaPadPro = true;
input string FontName = "Roboto";
input string Notice_Open_NameSound = "ok";
input string Notice_Close_NameSound = "request";
input string Notice_Modify_NameSound = "stops";
input string Notice_Error_NameSound = "alert2";

bool STOPTRADING = false;
bool MODIFYONLY = false;

#ifdef __MQL5__
#import "Lib - EAPADPRO v16 LIBRARY.ex5"
#endif
#ifdef __MQL4__
#import "Lib - EAPADPRO v16 LIBRARY.ex4"
#endif
void EAPADPRO_LIBRARY_OnInit (bool ShowEaPadProexport = true,
 int MagicForEaPadPRO = 0,
 int MagicForEaPadPRO_Open = -1,
 string CommentForEaPadPRO = "",
 bool DemoForEaPadPRO = false,
 string EaNameForEaPadPRO = defEANAME,
 int TypeFillingForEaPadPRO = 0,
 string FontNameForEaPadPRO = "",
 string Notice_Open_NameSoundForEaPadPRO = "",
 string Notice_Close_NameSoundForEaPadPRO = "",
 string Notice_Modify_NameSoundForEaPadPRO = "",
 string Notice_Error_NameSoundForEaPadPRO = "",
 string BMPLOGOForEaPadPRO = BMPLOGO,
 string versioneaForEaPadPRO = versionea,
 string NICKNAMEForEaPadPRO = YourName,
 bool ShowBuySell = true

 );
bool Get_STOPTRADING ();
bool Get_MODIFYONLY ();

void EAPADPRO_LIBRARY_OnDeinit (const int reason);
void EAPADPRO_LIBRARY_OnTick (bool ShowEaPadProexport = true);
void EAPADPRO_LIBRARY_OnTrade (bool ShowEaPadProexport = true);
void EAPADPRO_LIBRARY_OnChartEvent (const int id, const long & lparam, const double & dparam, const string & sparam, bool ShowEaPadProexport = true);
void CreateInputs (string inputs_name_1 = "", string inputs_value_1 = "",
 string inputs_name_2 = "", string inputs_value_2 = "",
 string inputs_name_3 = "", string inputs_value_3 = "",
 string inputs_name_4 = "", string inputs_value_4 = "",
 string inputs_name_5 = "", string inputs_value_5 = "",
 string inputs_name_6 = "", string inputs_value_6 = "",
 string inputs_name_7 = "", string inputs_value_7 = "",
 string inputs_name_8 = "", string inputs_value_8 = "",
 string inputs_name_9 = "", string inputs_value_9 = "",
 string inputs_name_10 = "", string inputs_value_10 = "");
void CreateStrategy (string strategy_name_1 = "", string strategy_value_1 = "",
 string strategy_name_2 = "", string strategy_value_2 = "",
 string strategy_name_3 = "", string strategy_value_3 = "",
 string strategy_name_4 = "", string strategy_value_4 = "",
 string strategy_name_5 = "", string strategy_value_5 = "",
 string strategy_name_6 = "", string strategy_value_6 = "",
 string strategy_name_7 = "", string strategy_value_7 = "",
 string strategy_name_8 = "", string strategy_value_8 = "",
 string strategy_name_9 = "", string strategy_value_9 = "",
 string strategy_name_10 = "", string strategy_value_10 = "");
void EAPADPRO_LIBRARY_PrintToLogs (string text = "");
void EAPADPRO_LIBRARY_Notice_ErrorCheck (string infoabouterror = "", string techinfofunction = "", int NumberofError = -1);

#import
// + ----------------------------------------------- ------------------- +

 

Result

If you did everything correctly, then when you load your EA you will see the following image:

 

Terms of Use

Our library with the information panel EAPADPRO is distributed free of charge on the back link to our page.

If you wish to sell your expert in the market or on the Internet, you need to add the following text to the description of your product:

  1. The EAPADPRO information graphic panel was developed by the Expforex team.
  2. All rights to this EAPADPRO panel belong to Vladislav Expforex .
  3. The author of the EAPADPRO information panel is not responsible for the advisor or indicator that uses our panel.
  4. Our EAPADPRO panel is designed solely for the purpose of providing additional information about trading on your account.

EAPADPRO LIBRARY - Adding our panel to your EA_1
Здесь можно скачать EAPADPRO LIBRARY - Adding our panel to your EA
Купить EAPADPRO LIBRARY - Adding our panel to your EA можно здесь - Прочитать о EAPADPRO LIBRARY - Adding our panel to your EA можно здесь - Обсуждение EAPADPRO LIBRARY - Adding our panel to your EA - стейты, отзывы, комментарии - Отзывы о EAPADPRO LIBRARY - Adding our panel to your EA - Настройки к EAPADPRO LIBRARY - Adding our panel to your EA - Мониторинг EAPADPRO LIBRARY - Adding our panel to your EA - Download EAPADPRO LIBRARY - Adding our panel to your EA - Buy EAPADPRO LIBRARY - Adding our panel to your EA - Read about EAPADPRO LIBRARY - Adding our panel to your EA - Discusion of EAPADPRO LIBRARY - Adding our panel to your EA - Comments of EAPADPRO LIBRARY - Adding our panel to your EA - Settings EAPADPRO LIBRARY - Adding our panel to your EA - Monitoring EAPADPRO LIBRARY - Adding our panel to your EA - EAPADPRO LIBRARY - Adding our panel to your EA скачать бесплатно - EAPADPRO LIBRARY - Adding our panel to your EA ключ - EAPADPRO LIBRARY - Adding our panel to your EA открытый код - EAPADPRO LIBRARY - Adding our panel to your EA скачать
-
Читать EAPADPRO LIBRARY - Adding our panel to your EA
0 $

Method of programming the information panel in any adviser.

The success of any program is, first of all, the interface of the program and the first impression of the program.

We can not guarantee that the information and interface of the program will give you a profit on transactions, but we will definitely say that even the simplest interface of the program can strengthen the first impression.

In this article, we will tell you how to apply our information panel to the EAPADPRO advisor

English instructions and articles FinanceApplication Windows 01.08.2018
5 1
Expforex Идеи для Форекс https://www.expforex.com/1NEWDESIGN/NEWLOGO/LOGONEW.png expforex@meta.ua Украина expforex2