Sure, simple.
* Run through all tick daa.
* Take first tisk as open, last as close, highiest as high, lowest as low.
Issues:
* Open/CLose are NOT THE REAL THING. Contrary to what many people think today, Open and close are published special rates, not the first and last tick. So, unless your tick data has this one shown (mine has), and you can take them.... you may be off a little. Not so relevant on electronic exchanges than on pits.
THe rest is a matter of simple trivial programming.