Export from MT4 to CSV

 
Hi, I'm using several EA's on an account, and would like to be able to export my history from MT4 to CSV, so I can analyze the actual profit per EA. Does anyone have an idea how to do this?
 
Documentation on MQL5: File Functions / FileWrite
Documentation on MQL5: File Functions / FileWrite
  • www.mql5.com
File Functions / FileWrite - Reference on algorithmic/automated trading language for MetaTrader 5