The "Period Converter Optimized" contains all the hints necessary to format the data and display on MT4. Writing the history files is an external process. Here is the console window for the tick collector.
No, CG. Offline does not mean it can't be "real time". Five second bars. Note: For those worried about spreads, the "spread indicator" in this is showing the highest "Best Ask" - the lowest "Best Bid" during the 5 second interval, it is not showing ...