Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
Program description
1 / I will place the robot program on any Symbol Chart of any Time Frame and will be able to work for multiple symbols, depending on what I have selected. That is, something like a central table will work by adjusting each pair individually.
The board will have about that picture
|
|
|
AUDCAD |
EURCHF |
GBPUSD |
|
|
|
AUDCHF |
EURGBP |
NZDJPY |
|
|
|
AUDNZD |
EURJPY |
NZDUSD |
|
|
|
AUDJPY |
EURNZD |
USDCAD |
|
|
|
AUDUSD |
EURUSD |
USDJPY |
|
|
|
EURAUD |
GBPAUD |
GOLD |
|
|
GENERAL |
EURCAD |
GBPJPY |
SETTINGS |
There will also be a button under the name (General Settings) in the table where it will refer to all of the pairs.
2 / There are twenty (20) position buttons on the board where I can select a symbol from the platform's field values and dragging it over the panel button automatically this button will represent the symbol. Clicking on the button of the symbol I choose will open a window with the settings I want to make for this symbol. The same procedure can be repeated for what symbols I want to choose. (Or in any other way you can suggest what's easy with the choice of symbols).
3 / The feature of the program will be that for the Take Profit / Stop Loss the units will always be calculated according to the operating rules of the program and will be discussed in detail below.
4 / Selecting the Time Frame I want (M1 / M5) (the program will only be able to select the time frame (M1 / M5).) The value that will open the first Time Frame will be the value that the program will hold as a base value to be able to make the necessary calculations needed.When a Time Frame is completed the program will keep the following data in memory (example 1)
(Example 1)
Day |
Time |
Open |
Hgih |
Low |
Closse |
2017.11.24 |
00:05 |
1.18490 |
1.18493 |
1.18490 |
1.18493 |
Subsequently, the program will, under certain conditions, send a signal to make the necessary check and determine whether or not to allow the order to be executed. If the order is executed, the program will also calculate Take Profit / Stop Loss, as I will explain in detail below.
5 / Every time an order is completed successfully or even a failure, the program will resume its operation by making new calculations immediately after the next Time Frame, keeping in mind a new base value (the value that Time Frame opens) and repeating the same calculations. This will happen continuously unless some of the parameter settings do not allow it)
6 / The units I will use in the settings, I want to have the bottom picture as shown in (example 2) below in the column (B).
(example 2)
A B
0.00100 100
0.00125 125
0.255 255
1.50 150
7 / Note /
To create the program, you need to make an exact copy of the Excel file, which I will then send to MQL4. Knowledge of Excel language is also a prerequisite.
To understand the calculations to be made and to convert the excel file into MQL4, you must click on the first square in each vertical column and see what each of them calculates.