How I can Store a file with a full history of EA run in backtesting

 

Since the backtesting table only shows few information that I would like to expand the table for few more items like MAE, but to do so I need the code that I should add to my expert advisor so when backtesting is done a file with all of the backtesting resuls are saved somewhere.

Can someone help please

Reason: