Export Data in real Time from MT4 to Excel

 
I attempted to publish my Trades on my Homepage Then I found this program:
https://www.mql5.com/de/code/1246
how can I convert mq5 to mq4? this tool was written in mq4 but is modified to mq5.
All data that become available in MQL5 can be exported via this DDE interface.
how can I modify dde_example in order to export my Closed Transactions, Open Trades and pending orders to excel.
DDE - Server
DDE - Server
  • votes: 23
  • 2014.02.05
  • RickD e2e-fx.net
  • www.mql5.com
Export MQL5 live data to Excel (DDE)
Files:
dde_example.mq5  13 kb
Reason: