Job finished
Specification
Hello Botrous,
I would like to improve the EA that you develop last time. I've attached a file to illustrate with the parameter and a description of what I think the EA should do.
Could you tell if it is possible for you.
Thank You
Franck
The parameters
--- General Set Up ---
- Magic Number :
- Order Comment :
- Order Type : Buy Limit / Sell Limit only
- Moving_Spread_Pips_Entry :
- Moving_Spread_Pips_Close :
--- Initial Entry ------
- Lot Size :
- Use _TP_SL : True / False
- Take Profit : if 0 = none
- Stop Loss : if 0 = none
- Use Trailing : True / False
- Trailing Stop :
- Trailing Step :
----- Moving Initial entry Sep Up -----
- MA_init_TF :
- MA_Init_Period :
- MA_Init_Shift :
- MA_Init_Method :
- MA_Init _Price
---- Add On 1 Set Up ----
- AO1_Lot_Size : if 0 no action
- AO1_Stop_Loss :
- MA_AO1_TF :
- MA_AO1_Period :
- MA_AO1_Shift :
- MA_AO1_Method :
- MA_AO1 _Price
------ Close 1 Sept Up
- Close1_Method : MA_Close1 / TP_Close1
- TP_Close1 :
- MA_Close1_TF :
- MA_Close1_Period :
- MA_Close1_Shift :
- MA_Close1_Method :
- MA_Close1 _Price
---- Add On 2 Set Up ----
- AO2_Lot_Size : if 0 no action
- AO2_Stop_Loss :
- MA_AO2_TF :
- MA_AO2_Period :
- MA_AO2_Shift :
- MA_AO2_Method :
- MA_AO2 _Price
------ Close 2 Sept Up
- Close2_Method : MA_Close2 / TP_Close2
- TP_Close2 :
- MA_Close2_TF :
- MA_Close2_Period :
- MA_Close2_Shift :
- MA_Close2_Method :
- MA_Close2_Price
---- Add On 3 Set Up ----
- AO3_Lot_Size : if 0 no action
- AO3_Stop_Loss :
- MA_AO3_TF :
- MA_AO3_Period :
- MA_AO3_Shift :
- MA_AO3_Method :
- MA_AO3 _Price
------ Close 3 Sept Up
- Close3_Method : MA_Close2 / TP_Close3
- TP_Close3 :
- MA_Close3_TF :
- MA_Close3_Period :
- MA_Close3_Shift :
- MA_Close3_Method :
- MA_Close3_Price
Description For a buy trade on the attach File
1. The EA is Activate Manually when I think there is a set up for a trade.
2. The first entry is a limit order at the price of the MA_Init modify after each bar until the EA is OFF
3. If the initial order is executed
a. The TP and the SL are sent. The Trailing Stop is activate if this parameter is true.
b. The order of the Add On 1 is sent as a limit order at the price of the MA_AO1 Price
4. If the TP or SL is executed first, the Add On1 order is canceled and the EA is OFF
5. If the Add On Order 1 is executed
a. The SL of the Add On1 order is sent and the SL of the initial order is modified at the same price
b. If the the Close1_Method is TP_Close1, the TP of the Add On 1 order is sent and the TP of the initial order is modified at the same price
c. If the Close1_Method is MA_Close1 the TP of the Add On order 1 is sent at the price of the MA_Close1 and the TP of the initial order is modified at the same price. The TP is modify after each new bar.
d. The order of the Add On 2 is sent as a limit order at the price of the MA_AO2 Price
6. If the TP or SL are executed first, the Add On2 order is canceled and the EA is OFF
7. If the Add On Order 2 is executed
a. The SL of the Add On2 order is sent and all the SL of other orders are modified at the same price
b. If the the Close2_Method is TP_Close2, the TP of the Add On 2 order is sent and the TP of the other order are modified at the same price
c. If the Close2_Method is MA_Close2 the TP of the Add On order 2 is sent at the price of the MA_Close2 and the TP of the other order are modified at the same price. The TP is modify after each new bar.
d. The order of the Add On 3 is sent as a limit order at the price of the MA_AO3 Price
8. If the TP or SL are executed first, the Add On3 order is canceled and the EA is OFF
9. If the Add On Order 3 is executed
a. The SL of the Add On3 order is sent and all the SL of other orders are modified at the same price
b. If the the Close3_Method is TP_Close3, the TP of the Add On 3 order is sent and the TP of the other order are modified at the same price
c. If the Close3_Method is MA_Close3 the TP of the Add On order 3 is sent at the price of the MA_Close3 and the TP of the other order are modified at the same price. The TP is modify after each new bar.
10. When the TP or SL are executed the EA is OFF