MT5 and External databases

Fernando Carreiro  
Seleucus: I would like to create an EA that can enable export all my trades (closed and open) to an online database. How best can i go about this. Any links to useful resources are appreciated.

Online database, as in database on a web server or service?

Then the answer is obvious—use WebRequest to communicate the data to the web server via the HTTP interface it provides.

Or use MQL5 Sockets if the protocol is not HTTP.

Yes online database like notion or xata or any self hosted mysql database on a vps server. Thanks for the recommendations you have given. I will check them out.