Can you write afl code?
hh=highestsince(dayofyear() <> ref(dayofyear(),-1), h, 1);
ll=lowestsince(dayofyear() <> ref(dayofyear(),-1), l, 1);
// These 2 arrays hh & ll will contain Hi & Lo since the start of day.
// Write your code for opening a file in write mode.
// Use a for (i =0 ; i < BarCount ;i++ ) loop
// and write these values alongwith date & time if reqd to the
// file in the reqd format if the time equals to your 1hr time.
// for loop ends
// close the file.
// This file should be in your custom formula directory with the reqd data.
This is a basic idea with which you can expand.
Hope this helps. Sorry, I'm too occupied to write a code.