see these, developed by komposter on ru site. Note: MT can not track the time on any bar below 1 minute, so all data starts with Jan 1, 1970. For doc see link in code. This requires you start the log first, let it run a while to collect tick data to the csv file, then start the post, which places the data into history with a special name (see code for details). Open the new chart Offline, Keep the Log running and your chart will be updated in real time.