I have some data as follows, first column being time and 2nd-5th column representing OHLC-data for stock prices.
700 1 1 1 1
705 1 2 2 1
715 1 1 1 1
720 1 1 1 1
725 1 1 1 1
Between 705 and 715 you can see there is a 10-minute interval instead of a 5 minute. My data is filled with such gaps, sometimes as much as 30 minutes. I need the data to have 5-minute intervals universally everywhere in the dataset, so I need some kind of macro that can insert this data wherever it's missing. So after running the macro, the above dataset would look as such:
700 1 1 1 1
705 1 2 2 1
710 1 2 2 1
715 1 1 1 1
720 1 1 1 1
725 1 1 1 1
(For the newly inserted row(s), the macro can just copy the OHLC-data in column 2-5 from the previous row and insert it in the new row(s))
Bookmarks