You can see NewsTrader EA as mql4 code here
http://www.forex-tsd.com/115941-post7.html and SignalTrader
http://www.forex-tsd.com/115940-post6.html
You can take some codes from Newstrader EA. If you need for your EA to request forex-tsd calendar changes every 5 minutes for example (or every 1 minutes) so you can see SignalTrader because there is parameter:
ReqPeriod = 30; // Calendar Request period in min
Besides in our calendar (on the top of this page
Forex-Tsd Calendar :: Calendars ) you can see the link for explanation:
- Programmatic API
- CSV API
- RSS API
- XML API
It will help the coders.
Sorry I am not a coder so I can not incorporate our news calendar onto any EA. But as I know it is possible to do with the information provided.