2012-12-28 47 views
0

我已經安裝了quantsrat並試圖演示,以更好地瞭解它的工作方式,但它們都以錯誤結束。例如,對於RSI,我在rbind(deparse.level,...)中得到Error:在輸出買入賣單的部分期間,數據必須具有相同數量的列以進行綁定。quantstrat演示錯誤

這裏是我的sessionInfo(): [R版本2.15.2(2012年10月26日) 平臺:I386-蘋果darwin9.8.0/I386(32位)

locale: 
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 

attached base packages: 
[1] stats  graphics grDevices utils  datasets methods base  

other attached packages: 
[1] quantstrat_0.7.7  blotter_0.8.13   FinancialInstrument_1.1 
[4] quantmod_0.3-17   Defaults_1.1-1   TTR_0.21-1    
[7] xts_0.8-8    zoo_1.7-9    

loaded via a namespace (and not attached): 
[1] grid_2.15.2  lattice_0.20-10 tools_2.15.2 

有誰知道爲什麼?

+3

請參閱http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example –

回答

1

你是對的:運行rsi.R時出現同樣的錯誤,而且macs.R出現問題。

然而bbands.R正常工作,盧克索演示也是如此。我建議您在修復演示時查看這些內容。

+2

當你在這裏,你可能想考慮重新開始測試.. 。 –