Account History to csv

 
Can someone direct me to sample code that shows how to extract account history to a csv file?
 

on mt4 press F2 to bring History Center the choose your currency and click on export

see image.

 
BillyJoe:

on mt4 press F2 to bring History Center the choose your currency and click on export

see image.


I need Account History not History Center.

Thanks qjol this is what I need.