Displaying 1 result from an estimated 1 matches for "jpegname".
Did you mean:
cpe_name
2012 Oct 14
0
Asking help about drawing and saving candle chart automatically....
....Date(juldate_start + i)
# reformat date as recognizable string by quantmod
format(convdate, format="yyyy-mm-dd")
strdate <- as.character(convdate)
print(strdate)
# make daily range
daterange <- paste( strdate, "::", strdate, sep="" )
print(daterange)
jpegname <- paste(strdate, ".jpeg", sep="")
#### jpeg( filename=jpegname, width=1200, height=400 )
tryCatch(chartSeries(aa, subset=daterange, type='candlesticks',
theme=chartTheme('white')))
#dev.list()
#saveChart( 'jpeg' )
#### dev.off()
# wait for u...