Spezifikation
I am looking for an experienced developer to create an MT5 EA for any FX pair, that if is applied to a chat, will show the following buttons which perform the following actions:
Buy now button: places a buy order[ or orders [more than one] explained later] with the lot, SL and TP defined in the EA configuration prompt
Sell now button: places a sell order[ or orders [more than one] explained later] with the lot, SL and TP defined in the EA configuration prompt
Close all sell orders button: closes all sell orders
Close all buy orders button: closes all buy orders
In the EA configuration prompt, the variables are:
Lot size: any lot size from 0.01lot
TP1: numeric value, distance in pips from order price
SL1: numeric value, distance in pips from order price
Multi layer: yes/no
Number of layers: numeric value, from 1 and on
Layer distance: numeric value, in pips, from 1 and on
Progresive layers: yes/no
Progresive Layer starting distance: numeric value, in pips, from 1 and on
Magic number: random number with 8 characters, to avoid conflict if there are multiple charts from different pairs in the same mt5 instance
**multi layer function meaning: if multi layer is enables ["yes" in the EA config] this bot will place the number of layers defined, depending if the "progressive layer" value is "no", all the layers are placed at the same time order one is placed, and if its set to "yes" the "progresive Layer starting distance" defines at how many pips from the first order entry price, the next layer has to be placed; for example if the progresive Layer starting distance" is set to 200 [pips] and the entry price in order 1 wa 1500.00, order 2 has to be placed when the 1520.00 price is reached, and so on with next layers. [If all orders from a "set of orders/layers" is closed, the cache of next orders has to be cleaned in order to not enter new orders later in the future if the price of order 1 + progresive layer starting distance is reached.
For example: if the variable "multi layer" is set to "yes" and the variable "number of layers" is set to o "5", the bot will place 5 orders, the first one will use the TP and SL set in the EA config [TP1 and SL1] and from order 2 and on the SL value will be the same as SL1 value,
TP value for order 2 and on, will be set with the "layer distance" variable. Example
XAUUSD price 1500.00
Order 1 placed at 1500.00
TP1 set at 200pips - 1520.00
SL1 set at 500pips - 1450.00
Multi layer YES
Layer distance: 100
Layers 3 -- which leads to:
Order 2 TP 1530.00 SL 1450.00
Order 3 TP 1540.00 SL 1450.00
Special rules for layers:
If TP2 [order 2 TP] is reached, the SL of order 2 and on, has to be changed and set in the entry price of order 2 and so on with order 3, 4, etc.
If TP3 [order 3 TP] is reached, SL of order 3 and so on, has to be changed and set in the entry price or order 3 and so on with next layers.
If any mistake is found in this logic please let me know. Otherwise please send me aquote of this bot and the time it will take.