Export historical data

 
Hi gurus
I am new to MT4 and I really like the exportable historical data. However, I can't seem to find
a way to do it in an automatic way via script or function or any software.
Can this actually be done ?

Thanks
Bob