Do You Know of a Way to Load Live Trade History Into EA During Backtest?

 

So im writing a EA that will make use of live trade historical during optimization and i thought of writing the results to a csv when running and read during optimization.

Option #1: Read the scv during init and write to array?

Option #2: Read from a database(sql, etc..)

 

Is there an easier way ?

 

 

Thanks 

Reason: