How to access Data Window data and export to Excel in MT4

 

I would like to log in Excel historic and incoming data in the Data Window. MQ4 code wise how do I "discover" the indicator list? I would assume through checking all global variables but is there a better way?

Also what is the simples way to log the data in the Excel/CSV?

Reason: