[Blotter-commits] r186 - pkg/blotter/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Jan 19 22:26:34 CET 2010
Author: braverock
Date: 2010-01-19 22:26:31 +0100 (Tue, 19 Jan 2010)
New Revision: 186
Added:
pkg/blotter/R/synthetic.R
Log:
- initial revision
Added: pkg/blotter/R/synthetic.R
===================================================================
--- pkg/blotter/R/synthetic.R (rev 0)
+++ pkg/blotter/R/synthetic.R 2010-01-19 21:26:31 UTC (rev 186)
@@ -0,0 +1,20 @@
+buildSpread(primary_id, ..., ) {
+ tmp_instr<-try(getInstrument(primary_id)
+ if(inherits(tmp_instr,"try-error") | !is.instrument(tmp_instr)){
+ stop(paste("Instrument",Symbol," not found, please create it first.))
+ }
+
+}
+
+
+###############################################################################
+# Blotter: Tools for transaction-oriented trading systems development
+# for R (see http://r-project.org/)
+# Copyright (c) 2008-2010 Peter Carl and Brian G. Peterson
+#
+# This library is distributed under the terms of the GNU Public License (GPL)
+# for full details see the file COPYING
+#
+# $Id$
+#
+###############################################################################
Property changes on: pkg/blotter/R/synthetic.R
___________________________________________________________________
Name: svn:keywords
+ Revision Id Date Author
More information about the Blotter-commits
mailing list