Module Expr Str Import alias identifier Import alias identifier Import alias identifier Import alias identifier Import alias identifier Import alias identifier Import alias Import alias Import alias identifier ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Str Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad Str Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Call AttributeLoad Call AttributeLoad NameLoad attr attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad BinOpAdd NameLoad Str Str For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad If CompareGt Call NameLoad Call NameLoad NameLoad Num body Print BinOpAdd Str Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpSub Call NameLoad NameLoad NameLoad Assign NameStore ListLoad Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword Str Assign NameStore Call NameLoad BinOpAdd NameLoad Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpAdd NameLoad Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad BinOpAdd NameLoad Str Str Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
(c) 2011, 2012 Georgia Tech Research Corporation
This source code is released under the New BSD license.  Please see
http://wiki.quantsoftware.org/index.php?title=QSTK_License
for license details.

Created on April, 20, 2012

@author: Sourabh Bajaj
@contact: sourabh@sourabhbajaj.com
@summary: Visualizer - Generating Data from QSTK

 N/A numpy np N/A qstkutil.qsdateutil du N/A qstkutil.tsutil tsu N/A qstkutil.DataAccess da N/A qstkfeat.sb_featutil feat N/A datetime dt N/A pickle N/A os N/A matplotlib.pyplot plt pylab * pandas * genData N/A N/A startday endday datadirectory symbols N/A N/A N/A coredirectory N/A N/A N/A os environ N/A QS Tools/Visualizer/Data/ N/A directorylocation N/A N/A N/A N/A N/A coredirectory datadirectory _ N/A N/A N/A N/A startday date isoformat _ N/A N/A N/A N/A endday date isoformat N/A N/A N/A N/A N/A os path exists directorylocation N/A N/A N/A N/A os mkdir directorylocation N/A directorylocation N/A directorylocation / N/A timeofday N/A N/A dt timedelta hours 16 N/A timestamps N/A N/A du getNYSEdays startday endday timeofday N/A file N/A open N/A directorylocation TimeStamps.txt w N/A onedate timestamps N/A N/A stringdate N/A N/A N/A dt date isoformat onedate N/A N/A N/A file write N/A stringdate N/A N/A N/A file close N/A dataobj N/A N/A da DataAccess Norgate N/A all_symbols N/A N/A dataobj get_all_symbols N/A badsymbols N/A N/A set symbols N/A set all_symbols N/A N/A N/A len N/A list badsymbols 0 N/A N/A N/A Some Symbols are not valid N/A str badsymbols N/A symbols N/A list N/A N/A set symbols badsymbols N/A lsKeys N/A open high low close volume N/A ldfData N/A N/A dataobj get_data timestamps symbols lsKeys N/A dData N/A dict N/A zip lsKeys ldfData N/A N/A lfcFeatures ldArgs lsNames N/A N/A feat getFeatureFuncs22 N/A FinalData N/A N/A feat applyFeatures dData lfcFeatures ldArgs sMarketRel SPY N/A file N/A open N/A directorylocation Symbols.txt w N/A sym symbols N/A N/A N/A N/A file write N/A N/A str sym N/A N/A N/A file close N/A file N/A open N/A directorylocation Features.txt w N/A f lsNames N/A N/A N/A N/A file write N/A f N/A N/A N/A file close N/A Numpyarray N/A N/A IndicatorData FinalData N/A N/A N/A N/A Numpyarray append N/A IndicatorData values N/A N/A N/A pickle dump Numpyarray N/A open N/A directorylocation ALLDATA.pkl wb -1 N/A main N/A N/A N/A N/A N/A startday N/A N/A dt datetime 2009 1 1 N/A endday N/A N/A dt datetime 2010 12 31 N/A datadirectory Dow N/A symbols N/A SPY MMM AA AXP T BAC BA CAT CVX CSCO KO DD XOM GE HPQ HD INTC IBM JNJ JPM KFT MCD MRK MSFT PFE PG TRV UTX VZ WMT DIS N/A N/A genData startday endday datadirectory symbols N/A N/A N/A __name__ __main__ N/A N/A N/A main