仕事が完了した
指定
Hallo every body I need an pending EA
He hast o wor in the following form:
The EA has to look for a open trade with a specific magic number – we say example magic number: 123456
Is no trade open or a trade with an other magic number he has nothing to do.
If he find an open trade ( let´s say the „initial trade“ ) wit magic number 123456 then he has to open a pending order.
If the „initial trade“ is a BUY trade he has to make a BUY-limit order.
If the „initial trade“ is a SELL trade he has to make a SELL-limit order.
The Stop-Loss must be the same from „initial trade“ and also the Take-Profit must be the same from the „initial trade“.
The pending order open price has to be: 5.75% deeper if it´s a BUY trade and 5.75% higher if it´s a SELL trade, than the order open price oft he „initial trade“ in relation to the Stop-Loss.
The Lot-size oft he pending order has to be a multiple oft he Lot-size from the „initial trade“. Example: multiple = 0.59 it means the „initial trade“ is opened with 0.86 Lot multiple with 0.59 the pending order has a Lot-size of 0.50 or roundet of 0.51 thats equal.
This pending EA must have his own magic number. Example: 112233
If the „initial trade“ close with exit in Take-Profit the EA have to close the pending order.
The EA have to work on all days, all time frames and in all Lot-sizes.
The following parameters I will have to be as editable setting to changeable for myself:
- - the magic number he looking for (123456)
- - the magic number of it own (112233)
- - the multiple factor for Lot-size (0.59)
- - the percentage oft he reletion (5.75%)
Here an examples of my ideas how the EA has to work.
1) this „initial trade“ is open:
EUR/USD
direction: BUY
Lot-size: 0.86
magic number: 123456
open price: 1.13605
SL: 1.07121
TP: 1.15141
The EA has to open the following pending order:
(multiple = 0.59, magic number 112233, percentage factor 5.75% as input data fixed)
EUR/USD
direction: BUY-limit
Lot-size: 0.51 (0.86 x 0.59)
magic number: 112233
open price: 1.13232 Formel: (1.13605 – ((1.13605-1.07121)*0.0575))
SL: 1.07121
TP: 1.15141
For a SELL-order I hope you understand the princip of my idea now in combination with my writing up.
One more important thing: I need this EA in both file types - mq4 file and in ex4 file.