Displaying 1 result from an estimated 1 matches for "juldate_start".
2012 Oct 14
0
Asking help about drawing and saving candle chart automatically....
...g csv, drawing chart,
and saving chart as jpeg file.
-----------------------------------------------------
library(xts)
library(quantmod)
rm(list=ls())
aa <- as.xts(read.zoo("E://log.txt", sep=",", FUN=as.chron, header=TRUE))
# convert start date of csv file as julian date
juldate_start <- as.integer(as.Date("2011-11-01"))
for(i in 1:5)
{
# increased date and convert it as Date class again
convdate <- as.Date(juldate_start + i)
# reformat date as recognizable string by quantmod
format(convdate, format="yyyy-mm-dd")
strdate <- as.character(convd...