Техническое задание
I have alredy an EA which is opening first an buy and sell order and after
one of this orders has been closed, ea is placing an pending order with
an entry trigger. If this order is also closed EA is opening again and pending and so on.
EA is having two different open strategies (just for opening the first the buy and sell order) money management for boath strategies are same and should also for new strategie be the same.
What do I want now: I want a 3 Strategie of EA - Moneymanegment if order is first in the Market stays as right now.
I want if EA has placed the first basis or when ea is new on chart and if there is alredy the first buy or and sell order in the Market - EA should place the folowing order (which EA would place only after first order is closed) place an pending direct and not when first order is closed.
Trigger of pending should be activ when first order is closed. Triger should work as he do right now.
So if there a buy and sell order are in the market. EA should place the next order direct as pending. and the trigger of the pending should be activ if first order is closed.
Distanc of pending is: actual TP of first order plus input double PendingOrderPips=100; - So not TP of first order is changing - so TP of pending has to be updated.
Lots- same as first order
Also I want it third Strategie is activ - set activ and incativ two more pendings
That to this pending of first order - EA should placing two more orders, using same lots or Mulitpileer lots from basis each new order. Bbut xpips away from first pending and each of tow new order should be good for xseconds.
Pending 2 - not does not reopen - Reopen does only Basis not pending 2 and 3
xpips away from first pending - 5 pips
Multipiler from Basis
TP - just be placed first - If EA does than change TP - TP of Basis should be used
Good for x seconds- 15sec after Basis order is placed in market
Pending 3
xpips away from first pending - 10 pips
Multipiler from Basis
TP - just be placed first - If EA does than change TP - TP of Basis should be used
Good for x seconds- 15sec after Basis order is placed in market
After the seconds are gone the pending 2 should clos and after seconds for pending 3 are gone also this should be canceled
Note EA is after closing an order opening next order xpips away - Orders Pending 2 and 3 will be not reopend. Reopening does only work for first Pending.
EA
does always handel his buy and sell order. after one of this buy and
sell order is closed there will be the buy or sell order triggered and
opend in the market.
New Strategie 3 should just open this new order right after the frist order is opend as pending direct. And if activated than two more pending on distance.
Example
first basis order is opend as buy with 1.2020 - tp is 1.2040 and input double PendingOrderPips=100
New functions!
Following Pending which is right now placed wen first pending is closed - should be alredy placed as Pending - Limit is (execution price of first pending + TP pips of Pending (please not TP is changing and this pending limit should be updated + distanc Pending pips) - if first basis order is closed - than triger of pending is activ
Pending 2 if activ is placed at 1.2055 and good for 15 sec - using TP of Pedning 2
pending 3 is placed at 1.2060 and good for 15 sec - using TP of Pedning 2
EA I will send in discusion.