Description Usage Arguments See Also Examples
View source: R/SearchCointegrationPairs.R
Search Cointegrated FX Pairs via Oanda API
1 2 | searchCointegratedPairsOanda(total_points = 500, testPeriod = 0.25,
INSTRUMENTS, dir = "~/analytics/common/cointegration/")
|
total_points |
Total data points to lookback (e.g. days) |
testPeriod |
proportion of data points to be testing set |
INSTRUMENTS |
a list of available FX instruments |
dir |
directory to save the output |
JohansenCointegrationTest
AugmentedDickeyFullerTest
1 2 3 4 | INSTRUMENTS = readRDS('~/analytics/common/OANDA_FX_INSTRUMENTS.rds')
res = searchCointegratedPairsOanda(total_points = 500, testPeriod = 0.25, INSTRUMENTS = INSTRUMENTS, dir = "~/analytics/common/cointegration/")
res$res
res$path
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.