What format does 1-minute bar data have to be to be imported into MetaTrader 5?

 
Is there some information available on what format data has to be in to be imported into MetaTrader 5, and also any guidance on writing Python code to construct 1-minute candle data in this format out of tick data.
 

You should start by learning to reference the documentation, either by pressing F1, or by going to the "Help" menu, or searching on the website ...

You can also research the CodeBase and Articles sections. Learn to use the search functionality on this website.