I am trying to retrieve the OHLC Price data for currency pairs. As you can see below I have managed to get the Close price for a defined period of time. Ideally I would also like the Open, High and Low prices too. From there I aim to analyse the data to create a forex trading system.
Here is my work so far:
> 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