I would like a function to add to my EAs in Metatrader that will log all trades and other information in the EA to a MySQL database.? The code for writing to MySQL from an EA can be found? here <[login to view URL]>.? Instead of logging ticks, the function should log all trades taken while the EA has run.? I'm not positive how this would work, but I would imagine an array would hold a list of trades, then during the deinit, all trades would be written to the database.? I'll also need the MySQL setup to accomodate the data being written in.
## Deliverables
The deliverables I would expect on this project are:
EA function
MySQL setup
script to recreate MySQL DB
instructions
Since the function needs to be pretty universal, you can test it out with any EA.? As long as it writes the data correctly, it fits the job.