[R-SIG-Finance] Do the blotter demos work?

Joshua Ulrich josh.m.ulrich at gmail.com
Mon Jul 22 23:38:33 CEST 2013


Jim,

Thanks for noticing this.  It was a separate issue in updateAcct that
was hidden by the timezone issue.  Should be fixed in rev1484.

Best,
--
Joshua Ulrich  |  about.me/joshuaulrich
FOSS Trading  |  www.fosstrading.com


On Sun, Jul 21, 2013 at 9:01 PM, Jim Green
<student.northwestern at gmail.com> wrote:
> updated to v1483, saw this error running longtrend.R
>
> [1] "Setting up indicators"
> [1] "Initializing portfolio and account structure"
> .
> [1] "1998-10-30 00:00:00 GSPC 91 @ 1098.67"
> Error in periodicity(table) :
>   can not calculate periodicity of 1 observation
> In addition: There were 14 warnings (use warnings() to see them)
>> sessionInfo()
> R version 3.0.0 (2013-04-03)
> Platform: x86_64-pc-linux-gnu (64-bit)
>
> locale:
>  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
> LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
> LC_MONETARY=en_US.UTF-8
>  [6] LC_MESSAGES=en_US.UTF-8    LC_PAPER=C                 LC_NAME=C
> LC_ADDRESS=C               LC_TELEPHONE=C
> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] graphics  utils     datasets  stats     grDevices methods   base
>
> other attached packages:
> [1] blotter_0.8.14             PerformanceAnalytics_1.1.0
> FinancialInstrument_1.1.9  quantmod_0.4-0             TTR_0.22-0.1
> [6] xts_0.9-5.1                zoo_1.7-10                 Defaults_1.1-1
>
> loaded via a namespace (and not attached):
> [1] grid_3.0.0      lattice_0.20-15
>
>
>
> On 21 July 2013 21:34, Joshua Ulrich <josh.m.ulrich at gmail.com> wrote:
>>
>> Mark,
>>
>> It's been awhile, but I finally looked at this and patched it in
>> revision 1483.  It's forces the session timezone to UTC... not ideal,
>> but it works.
>>
>



More information about the R-SIG-Finance mailing list