Description Usage Arguments Examples
View source: R/startAlgoTradingOanda.R
Main functions for Oanda Algo Systems
1 | startAlgoTrading(configs)
|
configs |
a list() of configurations required by trading systems |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | rm(list=ls());
configs = list(
order.book.file = '~/Common/audcad_intraday_m5/orderbook/ivanliu_AUDCAD_Pairs_M5_003.csv'
,log.file = file(paste0('~/Common/audcad_intraday_m5/log/ivanliu_AUDCAD_Pairs_M5_003_', as.Date(Sys.time()), '.Rout'), open="wt")
,plotPath = "~/Common/audcad_intraday_m5/plots/audcad_intraday_m5_"
,strategyPath = '~/Common/audcad_intraday_m5/'
,pair1 = c('AUD', 'USD') # Later use
,pair2 = c('USD', 'CAD') # Later use
,initAssets = 1000000
,posiRate = 0.05
,threshold = 1.8
,mean.threshold = 0.2
,moment.threshold = 0.75 # effect * direction
,stoploss = -0.10
,ACCOUNT_ID = ' '
,train.length = 1000
,min.lookback = 48
,max.lookback = 240
,sd.n = 3
,freq = 'M5'
)
rm(list=ls());
configs = list(
order.book.file = '~/Common/audcad_interday_d1/orderbook/ivanliu_AUDCAD_Pairs_Daily_001.csv'
,log.file = file(paste0('~/Common/audcad_interday_d1/log/ivanliu_AUDCAD_Pairs_Daily_001_', as.Date(Sys.time()), '.Rout'), open = 'wt')
,plotPath = "~/Common/audcad_interday_d1/plots/audcad_intraday_d1_"
,strategyPath = '~/Common/audcad_interday_d1/'
,pair1 = c('AUD', 'USD') # Later use
,pair2 = c('USD', 'CAD') # Later use
,initAssets = 1000000
,posiRate = 0.1
,threshold = 1.8
,mean.threshold = 0.2
,moment.threshold = 0.75 # effect * direction
,stoploss = -0.10
,ACCOUNT_ID = '101-011-4686012-001'
,train.length = 504
,min.lookback = 21
,max.lookback = 63
,sd.n = 3
,freq = 'D'
)
rm(list=ls());
configs = list(
order.book.file = '~/Common/audcad_intraday_h1/orderbook/ivanliu_AUDCAD_Pairs_Hourly_002.csv'
,log.file = file(paste0('~/Common/audcad_intraday_h1/log/ivanliu_AUDCAD_Pairs_Hourly_002_', as.Date(Sys.time()), '.Rout'), open = 'wt')
,plotPath = "~/Common/audcad_intraday_h1/plots/audcad_intraday_h1_"
,strategyPath = '~/Common/audcad_intraday_h1/'
,pair1 = c('AUD', 'USD') # Later use
,pair2 = c('USD', 'CAD') # Later use
,initAssets = 1000000
,posiRate = 0.1
,threshold = 1.8
,mean.threshold = 0.49
,moment.threshold = 0.75 # effect * direction
,stoploss = -0.10
,ACCOUNT_ID = '101-011-4686012-003'
,train.length = 1000
,min.lookback = 48
,max.lookback = 240
,sd.n = 3
,freq = 'H1'
)
startAlgoTrading(configs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.