matlab for backtest

 
hi every on. I have an EA and I want to optimize it by Matlab. how can I write my EA in matlab? does any one have any sources for studing?
 
sara64ab:
hi every on. I have an EA and I want to optimize it by Matlab. how can I write my EA in matlab? does any one have any sources for studing?

EA's for MetaTrader platforms are written in MQL.

If you want to optimize results from your MetaTrader EA, dump them to a data file, e.g. .csv.