I am trying to get OHLC price data for currency pairs. As you can see below, I managed to get a closing price for a certain period of time. Ideally, I would also like the prices of Open, High and Low. From there, I am going to analyze the data to create a forex trading system.
Here is my work:
> getSymbols("GBP/USD",src="oanda", from="2014-05-30", to= "2014-06-14")
[1] "GBPUSD"
Warning message:
In download.file(paste(oanda.URL, from.date, to.date, "exch=", currency.pair[1], :
downloaded length 18395 != reported length 200
> last(GBPUSD,4)
GBP.USD
2014-06-11 1.6787
2014-06-12 1.6773
2014-06-13 1.6820
2014-06-14 1.6959
source
share