SCM

SCM Repository

[blotter] Diff of /pkg/quantstrat/demo/pair_trade.R
ViewVC logotype

Diff of /pkg/quantstrat/demo/pair_trade.R

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

revision 1375, Mon Jan 21 23:20:44 2013 UTC revision 1376, Mon Jan 21 23:41:11 2013 UTC
# Line 24  Line 24 
24    
25  require(quantstrat)  require(quantstrat)
26    
27  ##### PLACE THIS BLOCK AHEAD OF DATE INITS IN DEMO SCRIPT ######  
28  # if(!exists('in_test') || !isTRUE(in_test)){  
29  #     initDate='2005-12-31' # ensure this is demo default  ##### PLACE DEMO AND TEST DATES HERE #################
30  #     endDate=Sys.Date()    # ensure this is demo default  #
31  # }  #if(isTRUE(options('in_test')$in_test))
32  ################################################################  #  # use test dates
33    #  {initDate="2011-01-01"
34    #  endDate="2012-12-31"
35    #  } else
36    #  # use demo defaults
37    #  {initDate="1999-12-31"
38    #  endDate=Sys.Date()}
39    
40  initDate = '2009-01-01'  initDate = '2009-01-01'
41  endDate = '2011-05-01'  endDate = '2011-05-01'

Legend:
Removed from v.1375  
changed lines
  Added in v.1376

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