[R-SIG-Finance] Fwd: blotter, quantstrat: initDate without effect?

Brian G. Peterson brian at braverock.com
Fri Oct 28 16:10:42 CEST 2011


On Fri, 2011-10-28 at 09:46 -0400, Bos, Roger wrote:
> Your suggestion of how to clear the environment is very helpful, but I
> had to make some minor changes to get it to work:
> 
> if (!exists('.instrument')) .instrument <- new.env()
> if (!exists('.blotter')) .blotter <- new.env()
> if (!exists('.strategy')) .strategy <- new.env() 

Indeed, you are correct.

That's what I get for writing code in email before running to the
train. ;)

Thanks for the correction.

-- 
Brian



More information about the R-SIG-Finance mailing list