Skip to content

Installed quantstrat along with blotter and FinancialInstrument but seems I'm missing .instrument

9 messages · G See, rquantnoob

#
I'm following quantstrat-I.pdf by Guy Yollin to learn the language.  But it
seems the .instrument does not load for me as it does in the .pdf. 
Installing quanstrat, installed 3 packages, "blotter","financialinstrument"
and "quantstrat".

.PDF example

R Code:
[1] ".blotter" ".instrument"

_______________________________

Mine.
[1] ".blotter"

Since I'm missing ".instrument" it isn't allowing me to follow through with
the next step.

The installation seemed to have gone through fine, please help.

Thank you.



--
View this message in context: http://r.789695.n4.nabble.com/Installed-quantstrat-along-with-blotter-and-FinancialInstrument-but-seems-I-m-missing-instrument-tp4654469.html
Sent from the Rmetrics mailing list archive at Nabble.com.
#
The .instrument environment is now stored in the FinancialInstrument
NAMESPACE.

.instrument is now FinancialInstrument:::.instrument

 I don't know what the rest of the pdf does, so I'm not sure what's
keeping you from following through.  I suppose you could do this
assignment

.instrument <- FinancialInstrument:::.instrument

I'd guess that will make things work for you since environments are by
reference, but it's probably necessary.  What specifically is holding
you back?

Garrett
On Wed, Jan 2, 2013 at 7:50 PM, rquantnoob <kpomichowski at gmail.com> wrote:
#
I mean it's probably NOT necessary to assign it to your workspace.
On Wed, Jan 2, 2013 at 8:04 PM, G See <gsee000 at gmail.com> wrote:
#
First, thank you for taking your time to reply to my message.  

Here is the next step that perhaps will shed light on what's happening.
[1] "USD"

 > get("USD",envir=.instrument)
Error in get("USD", envir = .instrument) : object '.instrument' not found





--
View this message in context: http://r.789695.n4.nabble.com/Installed-quantstrat-along-with-blotter-and-FinancialInstrument-but-seems-I-m-missing-instrument-tp4654469p4654475.html
Sent from the Rmetrics mailing list archive at Nabble.com.
#
primary_id :"USD"
currency   :"USD"
multiplier :1
tick_size  :0.01
identifiers: list()
type       :"currency"

Please have a look at the demo directory of the package.

Best,
Garrett
On Wed, Jan 2, 2013 at 8:08 PM, rquantnoob <kpomichowski at gmail.com> wrote:
#
If you specifically want to use "get"
primary_id :"USD"
currency   :"USD"
multiplier :1
tick_size  :0.01
identifiers: list()
type       :"currency"

or, I think this works too
primary_id :"USD"
currency   :"USD"
multiplier :1
tick_size  :0.01
identifiers: list()
type       :"currency"

Garrett
On Wed, Jan 2, 2013 at 8:11 PM, G See <gsee000 at gmail.com> wrote:
#
I don't see your last post but I have the email.  Thank you for your
suggestion and I appreciate it, I started yesterday I'm really new, I'll
take anything at this point. :)



--
View this message in context: http://r.789695.n4.nabble.com/Installed-quantstrat-along-with-blotter-and-FinancialInstrument-but-seems-I-m-missing-instrument-tp4654469p4654484.html
Sent from the Rmetrics mailing list archive at Nabble.com.
#
I sent the e-mail to you directly and did not copy the list.  This is
a mailing list.  nabble makes it look like an online forum, but it is
not.  Most people receive and reply to messages as e-mails not with
nabble.

Since you mention it on-list, and people are curious beings, here's what I sent:
On Wed, Jan 2, 2013 at 7:50 PM, rquantnoob <kpomichowski at gmail.com> wrote:
With all due respect to Mr. Yollin and the authors of the packages
outlined in that (now outdated) pdf, a better place to start learning
R is "An Introduction to R"
(http://cran.r-project.org/doc/manuals/R-intro.pdf).

Garrett
On Wed, Jan 2, 2013 at 8:58 PM, rquantnoob <kpomichowski at gmail.com> wrote: