SCM

SCM Repository

[blotter] Diff of /pkg/quantstrat/demo/luxor.6.paramset.stoptrailing.R
ViewVC logotype

Diff of /pkg/quantstrat/demo/luxor.6.paramset.stoptrailing.R

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1460, Tue May 7 22:07:51 2013 UTC revision 1515, Thu Oct 3 08:11:20 2013 UTC
# Line 21  Line 21 
21  #  {initDate="1999-12-31"  #  {initDate="1999-12-31"
22  #  endDate=Sys.Date()}  #  endDate=Sys.Date()}
23    
24  source('luxor.include.R')  source(paste0(path.package("quantstrat"),"/demo/luxor.include.R"))
25  source('luxor.getSymbols.R')  source(paste0(path.package("quantstrat"),"/demo/luxor.getSymbols.R"))
26    
27  ###  ###
28    
# Line 48  Line 48 
48  #enable.rule('luxor', 'chain', 'TakeProfit')  #enable.rule('luxor', 'chain', 'TakeProfit')
49    
50  ### END uncomment lines to activate StopLoss and/or StopTrailing and/or TakeProfit rules  ### END uncomment lines to activate StopLoss and/or StopTrailing and/or TakeProfit rules
   
51  require(foreach)  require(foreach)
52  #registerDoSEQ()  #registerDoSEQ()
53    
54    if (!"doMC" %in% installed.packages()[,1]) {
55        install.packages("doMC")
56    }
57  require(doMC)  require(doMC)
58  registerDoMC(cores=2)  registerDoMC(cores=2)
59    

Legend:
Removed from v.1460  
changed lines
  Added in v.1515

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge