Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body With Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Dict Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num Num Num Num Num Num AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Dict Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num Num Num Num Num Num AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str NameLoad With Call AttributeLoad NameLoad attr NameLoad Str body For TupleStore NameStore NameStore NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Dict Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num Num Num Num Num Num AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Dict Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num Num Num Num Num Num AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Dict Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num Num Num Num Num NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Dict Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num Num Num Num Num NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num TupleLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num TupleLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num TupleLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num TupleLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num TupleLoad Num Num Num Num decorator_list decorator_list
N/A N/A 
.. moduleauthor:: Gabriel Martin Becedillas Ruiz <gabriel.becedillas@gmail.com>
 N/A datetime N/A common pyalgotrade barfeed pyalgotrade.barfeed common bfcommon pyalgotrade bar pyalgotrade dispatcher check_base_barfeed N/A N/A testCase barFeed barsHaveAdjClose N/A N/A N/A called N/A called True callback N/A N/A dateTime bars N/A N/A N/A N/A called N/A called True N/A N/A N/A testCase assertEquals N/A N/A barFeed getCurrentDateTime dateTime N/A N/A N/A N/A testCase assertEquals N/A N/A barFeed getCurrentDateTime None N/A N/A N/A testCase assertEquals N/A N/A barFeed barsHaveAdjClose barsHaveAdjClose N/A N/A barsHaveAdjClose N/A N/A N/A N/A testCase assertRaisesRegexp Exception The barfeed doesn't support adjusted close values.* N/A N/A N/A N/A barFeed setUseAdjustedValues True N/A d N/A N/A dispatcher Dispatcher N/A N/A N/A d addSubject barFeed N/A N/A N/A N/A N/A barFeed getNewValuesEvent subscribe callback N/A N/A N/A d run N/A N/A N/A testCase assertEquals N/A called N/A called True N/A OptimizerBarFeedTestCase N/A N/A common TestCase N/A testDateTimesNotInOrder N/A N/A self N/A N/A N/A bars N/A N/A N/A bar Bars N/A orcl N/A N/A bar BasicBar N/A N/A datetime datetime 2001 1 2 1 1 1 1 1 1 N/A N/A bar Frequency DAY N/A N/A bar Bars N/A orcl N/A N/A bar BasicBar N/A N/A datetime datetime 2001 1 1 1 1 1 1 1 1 N/A N/A bar Frequency DAY N/A f N/A N/A barfeed OptimizerBarFeed N/A N/A bar Frequency DAY N/A orcl bars N/A N/A N/A self assertRaisesRegexp Exception Bar date times are not in order.* N/A N/A N/A dt b f N/A N/A N/A testBaseBarFeed N/A N/A self N/A N/A N/A bars N/A N/A N/A bar Bars N/A orcl N/A N/A bar BasicBar N/A N/A datetime datetime 2001 1 1 1 1 1 1 1 1 N/A N/A bar Frequency DAY N/A N/A bar Bars N/A orcl N/A N/A bar BasicBar N/A N/A datetime datetime 2001 1 2 1 1 1 1 1 1 N/A N/A bar Frequency DAY N/A barFeed N/A N/A barfeed OptimizerBarFeed N/A N/A bar Frequency DAY N/A orcl bars N/A N/A check_base_barfeed self barFeed True N/A testBaseBarFeedNoAdjClose N/A N/A self N/A N/A N/A bars N/A N/A N/A bar Bars N/A orcl N/A N/A bar BasicBar N/A N/A datetime datetime 2001 1 1 1 1 1 1 1 None N/A N/A bar Frequency DAY N/A N/A bar Bars N/A orcl N/A N/A bar BasicBar N/A N/A datetime datetime 2001 1 2 1 1 1 1 1 None N/A N/A bar Frequency DAY N/A barFeed N/A N/A barfeed OptimizerBarFeed N/A N/A bar Frequency DAY N/A orcl bars N/A N/A check_base_barfeed self barFeed False N/A testEmtpy N/A N/A self N/A N/A N/A barFeed N/A N/A barfeed OptimizerBarFeed N/A N/A bar Frequency DAY N/A orcl N/A N/A N/A N/A self assertEquals N/A N/A barFeed barsHaveAdjClose False N/A N/A CommonTestCase N/A N/A common TestCase N/A testSanitize N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A bfcommon sanitize_ohlc 10 12 9 10 N/A 10 12 9 10 N/A N/A N/A self assertEqual N/A N/A bfcommon sanitize_ohlc 10 12 9 13 N/A 10 13 9 13 N/A N/A N/A self assertEqual N/A N/A bfcommon sanitize_ohlc 10 9 9 10 N/A 10 10 9 10 N/A N/A N/A self assertEqual N/A N/A bfcommon sanitize_ohlc 10 12 11 10 N/A 10 12 10 10 N/A N/A N/A self assertEqual N/A N/A bfcommon sanitize_ohlc 10 12 10 9 N/A 10 12 9 9 N/A N/A