Auftrag beendet
Spezifikation
Hello,
i need a kind of grid/trade manager ea, which should open and manage pending orders for running trades of a specfic magic number from another ea.
The following settings needed:
- lot multipler (e.g. 2x)
- split orders (e.g. 0.01, if set to 0 = no splitting)
- Max. orders (e.g. 20)
- TP (Takeprofit in pips for pending orders)
- SL (Stopploss in pips for pending orders)
- MagicNumber (individual magic no. for the pending orders)
The "lot multipler" should be used, for lotsize calculation of every new pending order. If the ea opens a new pending, the logic should look to lotsize of original trade and all open trades/triggerd pendings, which belongs to the initial trade and calulate/multiply the lotsize e.g. 2x for each further new pending (e.g. lot multipler is set to 2x, original trade has lotsize of 0.01, first intial pending starts with 0.02 lot, next pending after further x pips with 0.04 lot, next one 0.08 and so on...).
The "split orders" function is for splitting orders into a specific lotsize (e.g. instead of open only one pending with 0.02 lot, the ea should place 2x0.01 lot pending orders at same price, further pending 4x0.01 lot pendings, and so on...).
Before open a new pending as described before, the ea has to look to other exsisiting pending orders and already triggered pendings/open trades with our pending "MagicNumber" and the ticket no. inside the trade comment. So, if the ea founds a exsisiting pending order or already triggerd pending/running trade with our pending magic no. and the ticket no. of original trade inside the comment within the same pips distance/range ("Pipstep") of original, we don't want a new pending. Only if the original trade is running further in profit/loss and we have no exsisting pending and no already triggered trade running, we want to open further pendings.
Please let me know, if you have further questions.