Pending order/trade management

MQL4 Experten

Auftrag beendet

Ausführungszeit 3 Tage

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:

- MagicNumberToWatch
- Pending order direction (positive|negative)
- Pipstep (e.g. 20)

- 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)

 
Function:
EA should watch running trades with given magic number ("MagicNumberToWatch") of all currency pairs, no matter which chart the ea is attached to. If the ea finds a new running trade, the ea should open a new pending order immediately with a MagicNumber/TP/SL (given by settings) in the same or opposite direction of open price of initial trade (depends on setting "Pending order direction", so "positive" means x Pips above entry price if its e.g. a buy trade and if set to "negative" pending orders placed x pips below entry price of initial trade) x pips away ("Pipstep") from open price of the running trade (BUT ONLY if we haven't already a open pending or triggerd order arround same price/distance, direction with our pending magic no. and ticket no. of original trade in comment, see "Condition for open new pending" last paragraph!). So the best way, to handle and remember all trades of the grid chain, with all trades belong together is, if the ea writes the ticket no. of original trade into the comment, to remember always which original trade the pending orders/grid trades belongs to (maybe you have another idea for "saving" / remember to which intial trade the further pending orders/trades belongs to?)
 
The opening of new pending orders should work endless (grid) respectively depends on setting of "Max. orders". So, we want to open one initial pending order for every new open trade of "MagicNumberToWatch" and furthermore, if the original trade reached further x pips ("Pipstep") in profit/loss (look to "Pending order direction" setting), the ea should open a additional pending order.
 

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...).

Condition for open new pending:

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.

Bewerbungen

1
Entwickler 1
Bewertung
(414)
Projekte
670
33%
Schlichtung
60
17% / 32%
Frist nicht eingehalten
113
17%
Arbeitet
Ähnliche Aufträge
Ich benötige einen trading bot der meine Trading Strategie automatisiert ausführt. Die Idee des Handelssystems bezieht sich auf den Dax (1min) sieht aus wie folgt: Es wird gewartet, dass die Asia Range gebrochen wird. Sobald sich ein Wechel im Orderflow etabliert wird, wenn ein ausgeprägtes Fair Value Gap und ein Orderblock vorhanden ist, in die Richtung des neuen Orderflows getradet. Die einzelnen Schritte lassen

Projektdetails

Budget
30 - 40 USD
MwSt (19%): 5.7 - 7.6 USD
Insgesamt: 35.7 - 47.6 USD
Für die Entwickler
27 - 36 USD
Ausführungsfristen
von 1 bis 3 Tag(e)