Job finished
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specification
Hi everyone,
I am looking for an ea which will create pending orders(with stop and limit) on a spesific day time. One order will placed above the price, and other order will be below the price (Orders will be SELL STOP-BUY STOP or SELL LİMİT-BUY LİMİT). And if one of the orders start to trade other orther will be removed. According to the result of the first trade, this time EA will create market orders on the opposite side of the losing trade while using martingale. Until finding the winner trade EA will continue to use martingale.
I need to use this EA on MT5 with forex market and also with stock market.
I need to change these parameters of the ea A)time of the day to create first two orders,B) order pip values how many pips above or below the price C) How Many lots to start first trade D) order stop and limits. E) Martingale Number (Can be digits like 1.7 ,2.0, 2.5 and so on) F) Stop and Limit values of the next market orders until winning trade
For example ea will work like this lets say A) 09:00 B)20 C) 0.10 D) Stop:-20 limit:+20 E) 2.0 F) Stop:-30 Limit +30
And lets say EUR/USD chart was showing us at 09:00 time open price was 1,2100. So according to parameters we decided EA will create pending orders above and below this 1,2100 price:
BUY STOP pending order will be created at 1,2120 with Stop: 1,2100 Limit 1,2140
SELL STOP pending order will be created at 1,2080 with Stop: 1,2100 Limit: 1,2060
If one of these orders start to trade other order should be removed from the system.
If the First trade was succesfull for the next day EA will continue to work with the same logic.
If the First trade was losing trade than EA will create another Market Order by using martingale for this example lets say SELL Stop order was executed and closed as a losing trade when the market reached back to 1,2100 price. At that time EA will create market order from 1,2100 BUY with limit and stops (Limit: 1,2130 Stop: 1,2070) and 0.20 lots. If this second market orders hits to the stop price which is 1,2070 for this case. EA will again create another opposite market order which will be 0.40 Lots SELL 1,2070 (with stop 1,2100 and limit 1,2040) and will continue like this until finding the winning trade. If the last trade was winning trade than EA will start again for the next day with default parameters.