How to convert ASCII to MetaStock files?

Hello

I have an analysis program which accepts metastock formats only. How can I get historic FX data (end-of-day) data to be metastock compatible, and as a result work with my program? Any help appreciated.

The historic data I can extract from MT4 is csv, ascii, text.