I need to modify this sample code to use it with intraday data, which I should get from here and here . As far as I understand, the code in this example works well with any historical data (or not?), So my problem boils down to the issue of loading the source data in the required format (I mean daily or intraday).
As I also understand from the answers to this question , it is not possible to load intraday data using getSymbols() . I tried to download this data to my hard drive and get it using the read.csv() function, but this approach did not work. Finally, I found several solutions to this problem in various articles (for example, here ), but they all seem very complex and "artificial",
So my question is, how do I load intraday data into a given code gracefully and correctly from a programmer’s point of view without reinventing the wheel?
PS I am very new to time series analysis in R and quantstratum, so if my question seems unclear, let me know what you need to know in order to answer it.
source share