I am not a coder sorry.
All I know that you can download any forex calendar from here
Forex-Tsd Calendar :: Calendars csv or XML data. Just look at
XML API
Programmatic API
and
CSV API
Igorad coded news indicators and news EAs and all those csv data are stored in file directory of Metatrader.
In case of SignalTrader: it is stored and re-new every 1 minites or seconds according to the settings.
Just look inside the code of indicators and EAs posted on this thread.
For example, if I want to post signal calendar to this our calendar
Forex-Tsd Calendar :: Calendars so I am using SignalSender indicator: I am writing the file and sending thi file to the calendar by one-two clicks.
If I need to download calendar (or any) so I am using indicator, or EA, or simple downloading it by mouse.
Look at the images. It is not for me. It is for everybody (API and so on):
calendar2107_1.jpg
calendar2107_2.jpg
calendar2107_3.jpg
calendar2107_4.jpg
calendar2107_5.jpg