the EA is about pending order (Stop/Limit) orders in MQL4 the source code included and it should be clean organised and well commented code. user will be able to enter the Upper level (Price) and the Lower level through user input. on inititialisation: the EA will draw those Upper and Lower horisintal lines. 1- if the current price between the two lines. the EA will enter a pending Buy Stop order on the Upper level and the SL is the Lower level. and Sell Stop Order on the Lower level with SL on the upper. 2- if the current price is above the upper level the EA will put Buy limit on the upper level with SL on the lower and Sell Stop on the lower level. 3- if the current price is lower than the lower level the EA will put a sell limit order on the lower level the SL will be the upper level. and a buy stop order on the upper level. so the EA will start with the initial lot. the SL is always the opposite level, the TP is take Profit will be a user input multiplayier of the distance between the two level. i.e. if the distance between the two prices is 25 and TP_Multi = 2 then the TP is 2 * 25 = 50. Manageing Trades: there will be martingals for the the next lot but it will be sperated, the buy will have its own multiplayier and the Sell will have its own multiplayier. i.e. buy 0.1 hit stop and opened the pending Sell 0.1. once the Sell acivated the EA will put a Buy Stop on the buy level with the Lot 0.2 . assuming the multiplayier is 2. now if the acivated sell 0.1 hit the stop, once the buy 0.2 activated the EA will put a new pending sell stop with 0.2 also assuming the Sell martingale multiplayier is 2. and so on until it hits a TP. when a Buy Stop or Limit hits a TP, the EA again put new buy limit on the upper level and Sell Stop on the lower level. example: if a buy limit 0.1 Lot activated. the SL will be on lower level with Sell Stop 0.1 .now if the SL hits and the Sell Stop activated the EA should place a 0.2 lot Buy Stop on the upper level (Assuming the Martingal multiplayir is 2) General requirments: 1- Time Filter 2- Max Lot 3-Max Profit, the EA should calculate all loss and profit positionthat the EA opened. then when reaches the Max Net Profit: it will close current position and start over a new cycle. 4-Bool user input: when reach Max Profit Exit Ea or Start new Cycle time to do the job: 2 days.