How to read the trading history from an external application

 

Hi:

 

Is there any interface to read the MT4 trading history from an external application? And any approaches to communicate between the MT4 and the externals please?

 

For example, I want to read the last 50 tradings to analyze the trading behavior in Matlab or C++ etc.

 

Thanks 

 

use an EA or a script to save the data to a file of your choice (txt, bin, csv etc.) and analyze it

 
qjol:

use an EA or a script to save the data to a file of your choice (txt, bin, csv etc.) and analyze it


Using files is an option but I am thinking if there is any direct interface to communicate with the MT4. Using files may not be able to do instant communication though. 
 
asuralm:


Using files may not be able to do instant communication though. 


instant communication ?

you said last 50 trades

it's been done in milliseconds