<s> '''<STR_LIT>''' <EOL> import qstkutil . qsdateutil as du <EOL> import qstkutil . tsutil as tsu <EOL> import qstkutil . DataAccess as da <EOL> import datetime as dt <EOL> import matplotlib . pyplot as plt <EOL> from pylab import * <EOL> import pandas <EOL> print pandas . __version__ <EOL> symbols = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> startday = dt . datetime ( <NUM_LIT> , <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> endday = dt . datetime ( <NUM_LIT> , <NUM_LIT:12> , <NUM_LIT> ) <EOL> timeofday = dt . timedelta ( hours = <NUM_LIT:16> ) <EOL> timestamps = du . getNYSEdays ( startday , endday , timeofday ) <EOL> dataobj = da . DataAccess ( '<STR_LIT>' ) <EOL> voldata = dataobj . get_data ( timestamps , symbols , "<STR_LIT>" , verbose = True ) <EOL> close = dataobj . get_data ( timestamps , symbols , "<STR_LIT>" , verbose = True ) <EOL> actualclose = dataobj . get_data ( timestamps , symbols , "<STR_LIT>" , verbose = True ) <EOL> plt . clf ( ) <EOL> newtimestamps = close . index <EOL> pricedat = close . values <EOL> plt . plot ( newtimestamps , pricedat ) <EOL> plt . legend ( symbols ) <EOL> plt . ylabel ( '<STR_LIT>' ) <EOL> plt . xlabel ( '<STR_LIT>' ) <EOL> savefig ( '<STR_LIT>' , format = '<STR_LIT>' ) <EOL> plt . clf ( ) <EOL> normdat = pricedat / pricedat [ <NUM_LIT:0> , : ] <EOL> plt . plot ( newtimestamps , normdat ) <EOL> plt . legend ( symbols ) <EOL> plt . ylabel ( '<STR_LIT>' ) <EOL> plt . xlabel ( '<STR_LIT>' ) <EOL> savefig ( '<STR_LIT>' , format = '<STR_LIT>' ) <EOL> plt . clf ( ) <EOL> plt . cla ( ) <EOL> tsu . returnize0 ( normdat ) <EOL> plt . plot ( newtimestamps [ <NUM_LIT:0> : <NUM_LIT:50> ] , normdat [ <NUM_LIT:0> : <NUM_LIT:50> , <NUM_LIT:3> ] ) <EOL> plt . plot ( newtimestamps [ <NUM_LIT:0> : <NUM_LIT:50> ] , normdat [ <NUM_LIT:0> : <NUM_LIT:50> , <NUM_LIT:4> ] ) <EOL> plt . axhline ( y = <NUM_LIT:0> , color = '<STR_LIT:r>' ) <EOL> plt . legend ( [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> plt . ylabel ( '<STR_LIT>' ) <EOL> plt . xlabel ( '<STR_LIT>' ) <EOL> savefig ( '<STR_LIT>' , format = '<STR_LIT>' ) <EOL> plt . clf ( ) <EOL> plt . cla ( ) <EOL> plt . scatter ( normdat [ : , <NUM_LIT:3> ] , normdat [ : , <NUM_LIT:4> ] , c = '<STR_LIT>' ) <EOL> plt . ylabel ( '<STR_LIT>' ) <EOL> plt . xlabel ( '<STR_LIT>' ) <EOL> savefig ( '<STR_LIT>' , format = '<STR_LIT>' ) <EOL> plt . clf ( ) <EOL> plt . cla ( ) <EOL> plt . scatter ( normdat [ : , <NUM_LIT:3> ] , normdat [ : , <NUM_LIT:1> ] , c = '<STR_LIT>' ) <EOL> plt . ylabel ( '<STR_LIT>' ) <EOL> plt . xlabel ( '<STR_LIT>' ) <EOL> savefig ( '<STR_LIT>' , format = '<STR_LIT>' ) <EOL> print actualclose </s>
