1. An mql5 script that posts the 5-minute OHLC-data of EUR/USD, GBP/USD and USD/JPY (as defined in a default array, so more pairs could be added to the loop) along with the current timestamp every 5 minutes (:00, :05, :10, :15, etc.) in json format via webrequest to a php script hosted on an external server.
2. The php script receives the data and inserts into a mysql database table (symbol, open, high, low, close, time), store a success or error message in a local text file and return either success or error to the mql5 script.