Tâche terminée
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spécifications
ILLOGICAL EA
Requirements :
1) The trade trigger start with fulfilling following conditions.Entry Conditions :
a)The ADX(13) value shall be below set Value- Input value option to be provided.
b)The ATR(14) value shall be below set value-Input value option to be provided.
2) When 2(a)(b) both are satisfied at close of a candle the closing price is selected as reference price and two pending orders are opened at offset value of pips from reference price.
Two Orders has to be placed.
a) Pending buy order at price= Ref price+ Offset pip value.
b) Pending sell order at price=Ref price- Offset pip value
For Example : Consider gold at price 1500. Offset pips is 30 pips. SL is 2 pips.
Then Pending Buy order should be at 1503 and SL is at 1499.80
Then Pending Sell order should be at 1497.00 and SL should be at 1500.20
3. The target value will be equal to offset PIPs. Triggered order should have TP as value of offset pips.
The SL Value for first triggered order would be 2 pips below the reference price for buy order and vice versa for Sell order.
4) Once either of the orders gets triggered, the other pending order entry price need to be moved to SL of current triggered order and SL should be moved to the Entry price of current triggered order
Say For Example First buy is triggered at 1503 and SL is set at 1499.80.. Need counter pending order to be modified with Trigger price at 1499.80 and SL price at 1503 .
5. We shall keep option to disable or enable the counter order. Need as an input parameter. If disabled Counter pending order not to be triggered.
6) The Lot size of the first order and second order to be manually entered in inputs. ( Lot size 1 and Lot Size 2 )
7) Once order reaches certain pips profit SL to be moved to BE. Need an Input parameter BE pips. Once this pips profit reached BE will enabled for safety purpose.
8)Once first order closes in profit or BE second order if enabled not to be triggered.
Once both orders closed EA has to wait for New signal to satisfy above entry conditions.
This values would be unique to each currency pairs for triggering the orders.
Input Parameters :
ADX value
ATR Value
Offset pips
Lot Size 1
Lot Size 2
BE Pips
Trailing SL Value :
Trailing SL(Enable/Disable)
Counter Order: Enabled/Disabled
SL :
Please read the requirements and let us know if you have questions. Indicators will be shared after confirmation.