仕事が完了した
指定
I want to have an EA which works on executed orders in Terminal.
After a order is exectuted in Terminal within TP range, EA should open a new order.
The new EA should work only on orders which are closed between TP in range of xpips to xpips.
The new EA need also the entry price from the original order which is executed in Terminal and in-between the TP range.
From the original entry price EA should calculate the new entry price and should place a pending order with definate TP and. And also the ea should calculate a “Mark” price if this is reached the pending order will be deleted and EA stops and waits for new order which is executed within the TP Range.
Parameter:
TP range pips – if in Termina an order is executed within this TP range – EA is placing a new pending order in Terminal with TP and SL – can be choosen.
New TP: I want to choose for the new Pending order TP
New SL: I want to choose for the new Pending order SL
Price for new pending orders: I want to choose via pips the entry price for new pending. Calculated from original order – Xpips difference.
So if original Long order entry price was 1.3250, I want to choose how many pips lower the new EA is placing the pending order with TP and SL.
Multipiler Trading Lots: normal EA is placing same size as original order. I whant to have an multiplier to open more. So if original order was 1 lot I want to input in multiplier 1.1 and new orders opens with 1.1 lots.
Mark Price: is Deleting Pending order and Stop EA: I want to choose from original entry price the mark price. If this price is reached pending orders should be deleted and EA stops trading and wait for new order executed inbetween the definite TP Range.
Repeating pending orders: if first order is executed with TP and the mark of price is not reached, no SL and also no other partial fill with loss pips was executed. I want to choose how many times EA is placing again the Pending orders.
Example:
In platform is a Long order executed with 10 pips profit at price 1.3650 and 1 lot
New EA has a TP range from 0 to 10 pips TP. (this means new EA is working on all orders with pips profit between 0 to 10 pips). SL and TP should be chosen for new Pending order. Also open price for new pending order is Xpips under entry price of original order.
After an order from new EA is closed the scenario repeats xtimes. Only if definite Mark (= x pips from original order entry price) is reached (pendings are deleted and no more order) or if SL is reached. Then also no more pending and EA waits for next order with definite Profit from 0 to 10 pips.
If in my example Stop mark is 10 pips. – All pending order will be deleted at 1.3660 and no new order will be placed. Also no new order will be placed if SL is reached.
Still the mark of 1.3660 is not reached EA is placing the pending orders. Till xtimes which I want to definite.
Pending order Open price can be chosen by pips: if there is 40 pips chosen and a buy order is executed within 0 to 10 pips, a pending order will be placed at 1.3610 with definite TP and SL and same lots as original order.
If this pending order is executed with TP and Mark of 1.3660 is not reached a new pending order will be placed till times of Repeating orders.
The new EA should manage trades for more Currencies and should mark with a line all information’s in the Chart.
New Entry Price
Price were pendings are deleted and no more orders will be placed
TP Price
SL Price
Loss Function
EA should also have a LOSS Trading function. If Order is Xpips in minus ea should close xpercent on definite pips. Remainig part should be closed on normal TP.
I want that if order was xPips in Minus I want to close on xpips Minus, xpercent of the order.
This should work for all Orders which are x Pips in Minus.
I whant to have ther 3 possibilities to choose.
Example:
If order goes xpips in Minus and comes back there should be a partial fill on x pips minus should be. Remember if an order is closed in Minus EA does not open again a new Pending order. This happens if SL is reached and if a total or a partial fill with minus is.
So if order goes 60 pips minus, then should EA close 50% of the order on -3 pips. this Function i Need 3 times.
thx
extern bool
Use_Loss_Retrace = true;
extern double
XPips_Minus_1
= 60.0;
extern double
Close_Percents_1 = 50.0;
extern double OnPipsMinuseFromEntry_1 = 3.0;
extern double
XPips_Minus_2
= 80.0;
extern double
Close_Percents_2 = 20.0;
extern double OnPipsMinuseFromEntry_2 = 15.0;
extern double
XPips_Minus_3
= 90.0;
extern double
Close_Percents_3 = 20.0;
extern double OnPipsMinuseFromEntry_3 = 20.0;
exapmle (on this parameters)
: long trade was open , lot : 1.00 , price : 1.0660 , the price goes down to
1.0600 and then is goes up to 1.0657 , so we close 0.50 lot of the order .
After the pending order is executed for SL red line and TP green Line should be a line in the Chart.
I want to see also the Profit of the EA comulated in Chart
Partial Fill with TP and another scenario in the order of EA:
I want to have also a partial fill of the order of EA- But please note that EA does not open again orders with first scenario which are executed within TP range.
If EA does with his order reach xpips of TP, Xpercent of the order should be
closed and after this closing the same order with the same criterias should placed again as pending order in Termina. A new pending order should be placed with the same entry
price, lot amount and TP.The handling of the order should be the same as first order.
Only if normal TP is reached EA should repeat the original order. But only if Mark, SL and or partial fill with –pips is not reached.
Partial fill parameters:
extern string PartialClose="===== Partial Close Settings =====";
extern bool Partial_Close = true;
extern double Close_X_Percent_1 = 50;
extern double Close_at_Profit_1 = 8;
If this order is executed EA is placing again a pending order with original entry price, TP and SL.
Order should also work with above Loss_Retrace
Please not this EA is working with another EA or an manual Trade together and the EA works only on orders which are executet with order inbetween the TP range.