News Trading EA with OCO Orders

 

Hello guys,

I am new to  MQL programming and I was just wondering if there is a way to make an EA that places two trades (buy stop and sell stop) two minutes before news announcements and it must close them 2 minutes after the news comes out. The orders must cancel each other (one cancels the other).

Thanks in advance

 
Thanks ubzen :)
Reason: