[Blotter-commits] r1545 - pkg/quantstrat/demo
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Oct 21 20:42:37 CEST 2013
Author: opentrades
Date: 2013-10-21 20:42:37 +0200 (Mon, 21 Oct 2013)
New Revision: 1545
Modified:
pkg/quantstrat/demo/luxor.8.walk.forward.R
Log:
- fixed path name for luxor.include.R in luxor.8.walk.forward.R demo
Modified: pkg/quantstrat/demo/luxor.8.walk.forward.R
===================================================================
--- pkg/quantstrat/demo/luxor.8.walk.forward.R 2013-10-21 18:34:05 UTC (rev 1544)
+++ pkg/quantstrat/demo/luxor.8.walk.forward.R 2013-10-21 18:42:37 UTC (rev 1545)
@@ -8,9 +8,11 @@
#
# Paragraph 3.7 walk forward analysis
-source('luxor.include.R')
-source('luxor.getSymbols.R')
+require(quantstrat)
+source(paste0(path.package("quantstrat"),"/demo/luxor.include.R"))
+source(paste0(path.package("quantstrat"),"/demo/luxor.getSymbols.R"))
+
### foreach and doMC
require(foreach)
@@ -24,8 +26,6 @@
### quantstrat
-require(quantstrat)
-
initOrders(portfolio.st, initDate=initDate)
load.strategy(strategy.st)
More information about the Blotter-commits
mailing list