EA on the news basis

 
Hi guys!

I have been trying hard to learn this mql4 and also using Expert Advisor Builder for MetaTrader 4 to get a new EA. I have an idea for an EA but may be this website has no codes for EA with pending orders placement ability. The Idea might not be fresh though but it is to active the EA only at the times of news release.

Just before 1 minute of the news release, it should place two pending orders - 3 pips above the last close to buy and 3 pips below to the same candle to sell. Otherwise, the average of last 2 or 3 candle's high and low can be taken. The t/p can be to 30 pips but can be adjusted according to news and sl to be trailing so that the trade may get close in low profit zone but must NOT go in negetive territory. It blows mind when floating PL goes negative.
Hope to hear from you all and specially to the expert coders regarding this! Any corrections will be appreciated.

Thank you!
 

Take a look around and you might have seen this https://www.mql5.com/en/forum/132155 LOL