Rquantstrat:注意:对于“<<-"分配给".strategy",没有可见的绑定 [英] R quantstrat: Note: no visible binding for '<<-' assignment to '.strategy'

查看:66
本文介绍了Rquantstrat:注意:对于“<<-"分配给".strategy",没有可见的绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照以下代码安装了R软件包quantstrat及其依赖关系,如链接:

I installed R package quantstrat and its depencies as in the following code, as answered in this link:

install.packages("devtools")
require(devtools)
install_github("braverock/FinancialInstrument")
install_github("joshuaulrich/xts")
install_github("braverock/blotter")
install_github("braverock/quantstrat")
install_github("braverock/PerformanceAnalytics")

在安装quantstrat软件包时,我得到以下输出:

When installing quantstrat package, I got the following output:

Note: no visible binding for '<<-' assignment to '.strategy' 
Note: no visible binding for '<<-' assignment to 'hold' 

我实际上不知道这是什么意思.但是,看来我无法进行任何交易.

I do not know actually what it means. However, it seems I am not being able to make any transactions.

如果我运行demo('bbands', ask=FALSE)

我得到以下输出:

Error in chart.Posn(Portfolio = "bbands", Symbol = stock.str) : no transactions/positions to chart

Error in chart.Posn(Portfolio = "bbands", Symbol = stock.str) : no transactions/positions to chart

会话信息:
版本R版本3.4.4(2018-03-15) 系统x86_64,linux-gnu
ui RStudio(1.1.453)
语言(EN)
整理en_US.UTF-8
tz America/Cuiaba
日期2018-06-27

Session info:
version R version 3.4.4 (2018-03-15) system x86_64, linux-gnu
ui RStudio (1.1.453)
language (EN)
collate en_US.UTF-8
tz America/Cuiaba
date 2018-06-27

推荐答案

正如@FXQuantTrader回答的那样,我可以忽略这些注释.版本0.14.5的问题与注释无关.它已在版本0.14.6中修复,并且现在可以正常使用.

As well answered by @FXQuantTrader, I could ignore the notes. It was a problem with version 0.14.5 where the notes are not relevant. It is fixed in version 0.14.6 and works perfectly now.

来源: https://github.com/braverock/quantstrat/issues/88

这篇关于Rquantstrat:注意:对于“&lt;&lt;-"分配给".strategy",没有可见的绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆