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")
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.
if I run demo('bbands', ask=FALSE)
I get the following output:
Error in chart.Posn(Portfolio = "bbands", Symbol = stock.str) :
no transactions/positions to chart
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