Job finished
Specification
I´m looking for an EA which is placing several pendings xpips under and xpips over the actual price. If one of the order is executed order should be handeled via trailing. SL and TP for all orders the same.
EA does every xminutes update / replace the orders on definite criteria and does deleted the old orders. EA does first place the new orders and does than deleted the old orders.
EA does only handel his orders – not orders from other EA.
The lot calculated as follows:
EA does calculate the difference of all buy and sell orders in Market – If there
are now 3.5 Lots more buy orders open – this 3.5 Lots are the orders fore sell
side.
But note If Minimum Lots – xpercent of all orders in sell direction is higher –
than EA does use Xpercent of all orders in direction.
Sell orders are definated and in this example for the buy
side EA does use Xpercent of all open buy orders in Terminal.
Placing the Orders:
Orders are placed as pending xpips away from actual price. And than comes 3
more pendings with same lots as the first pending and with TP and SL.
Note this orders will be updated ever xMinutes – placed new pending’s and after placing the new pendings deleting the old pending’s.
Every
pending of this EA does have a trailing. In Chart should shown if an pending is
executed and Trailing is active.
If no pending is executed- in Chart - Trailing off
If an pending is executed – in chart - Trailig on
Parameter:
MagicNr.
Sl: 10 pip
TP: 120 Pip
Xpips away from
actual price – 60 Pip - for buy and sell pending
Xpips away from first pending for second pending 20 Pip
Xpips away from first pending for third pending 30 Pip
Xpips away from first pending for forth pending 40 Pips
Trailing
pips if in market- every xpips SL should trail every xpips should SL xpips move
Trailing of
SL – every 10 Pips profit SL should move 10 Pips
xMinutes update – Replace and delete the old orders every 10 Minutes
Lots:
Minimum lots – xpercent of all orders in direction 80%
In Chart should showed:
Last update and replacing the new pendings. so every 10 Minutes
Open buy
and sell orders in Market – and the difference/oversize of them - update every 10 Minutes
The minimum Lots for buy and sell side from Xpercent - update every 10 Minutes
Trailing off or on- realtime
Example placing pendings:
Actual price is 1.2000 – see above sets.
EA does place now the first buy and the first sell pending. And then the next buy and the next sell – and so on. To first all buy and than the sell orders.
First buy
will be placed as 1.2060
First sell will be placed as 1.1940
Second buy
will be placed as 1.2080
Second sell will be placed as 1.1920
Third buy
will be placed as 1.2090
Third sell will be placed as 1.1920
Forth buy
will be placed as 1.2100
Forth sell will be placed as 1.1920
If after xMinutes (above set is every 10 Minuts) update the actuall price will be 1.2040 EA das place new pendings and does deleted the old one.
Place new first
Pending
Deleted the old firs pendings
Place new
second pendings
Deleted the old second pendings
Place new
third pendings
Deleted the old third pendings
Place new
forth pendings
Deleted the old third Pendings.
Example Lot calculation:
All open
buy orders in market are 5 lots
All open sell order in Market are 3 lots
Differenz is 2 Lots on sell side – so for all sell orders is 2 lots. But because of Minum Lots Xpercent is 80% - 80 % of all sell orders are 2.4 lots - Lots for all sell side is 2.5 Lots
For buy side is Minimum Lots Xpercent is 80 % - so 80% from 5 lots is 4 lots so for all buy pendings is 4 lots.
Update:
What happens if the first or also the second pending is executed…?
If an update is done all pendings are placed no matter if there are any pendings executed.
So after an update first till third pending is placed in each side.