Техническое задание
I want to have an EA which works with another EA.
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 inbetween the TP range.
From the original entry price will be calculated the price which EA place the pending order with new TP and SL. And also the price if reached the pending order will be deleted and EA stops and waits for new order which is executed with TP Range.
Parameter:
TP range pips – if in platform is an order closed between the chosen TP ranges. The new EA is placing a new pending order with TP and SL.
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 old Long order entry price was 1.3250, I want to choose how many pips lower the new EA place pending order with TP and SL.
Trading Lots: should be the same of original order
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 TP in the Range.
Repeating pending orders: if first order is executed with TP and the mark of price is not reached and also no SL was executed. I want to choose how many times EA is placing again the Pending orders.
Example:
In platform is an Long order executed with 10 pips TP at price 1.3650 and 1 lot
New EA has an TP range from 1 to 10 pips TP.
And 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.
Pending entry price can be chosen by pips: if there is 40 pips a buy 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.