Appending Intraday Data01 Jan 2015
There are times when I need to run a back-test before market close, to put trades market on close. Unfortuantelly, Yahoo Finance updates their EOD files at the end of the day, and using these files intraday will not have the price for today.
I made a very simple function that:
- downloads historical prices using
getSymbolsfrom Yahoo Finance
- downloads intraday snapshot from Yahoo Finance
- and appends intraday snapshot to historical prices
Now, I can easily run a back-test at 3:30 using intraday prices from Yahoo Finance and compute signal for today. For example:
Please note that I used
getSymbols.intraday instead of
getSymbols function above.
The data environment will contain both historical EOD prices and today’s quotes
(this report was produced on: 2015-01-02)