Module Import alias identifier ImportFrom alias alias alias Import alias ImportFrom alias ImportFrom alias alias alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num keyword NameLoad With Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad With Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad With Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad With Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num keyword NameLoad Assign SubscriptStore NameLoad Index Num AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Num AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Num Expr Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Num Num Num Num Expr Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Num Num Num Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Num Expr Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Num Num Num Num Expr Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Num Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Expr Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Expr Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr Str Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr UnaryOpInvert Call AttributeLoad NameLoad attr NameLoad Index Num Index Num Expr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Expr Call NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Expr Call NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Expr Call NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr UnaryOpInvert Call AttributeLoad NameLoad attr NameLoad Index Num Index Num Expr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Expr Call NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Expr Call NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Expr Call NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num keyword Num keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr UnaryOpInvert Call AttributeLoad NameLoad attr NameLoad Index Num Index Num Expr Call NameLoad CompareEqEqEq Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call NameLoad CompareLt Call NameLoad BinOpSub SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Num Expr Call NameLoad CompareLt Call NameLoad BinOpSub SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Num Expr Call NameLoad CompareLt Call NameLoad BinOpSub SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Num Expr Call NameLoad CompareLt Call NameLoad BinOpSub SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr UnaryOpInvert Call AttributeLoad NameLoad attr NameLoad Index Num Index Num Expr Call NameLoad CompareEq Call NameLoad NameLoad Call NameLoad NameLoad Expr Call NameLoad CompareLt Call NameLoad BinOpSub SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Num Expr Call NameLoad CompareLt Call NameLoad BinOpSub SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Num Expr Call NameLoad CompareLt Call NameLoad BinOpSub SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Num Expr Call NameLoad CompareLt Call NameLoad BinOpSub SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr UnaryOpInvert Call AttributeLoad NameLoad attr NameLoad Index Num Index Num Expr Call NameLoad CompareEq Call NameLoad NameLoad Call NameLoad NameLoad Expr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num decorator_list
N/A N/A numpy np nose.tools assert_equals assert_true assert_raises N/A talib talib func talib.test_data series assert_np_arrays_equal assert_np_arrays_not_equal test_input_lengths N/A N/A N/A N/A N/A a1 N/A N/A np arange 10 dtype float N/A a2 N/A N/A np arange 11 dtype float N/A N/A assert_raises Exception N/A N/A N/A N/A func BOP a2 a1 a1 a1 N/A N/A assert_raises Exception N/A N/A N/A N/A func BOP a1 a2 a1 a1 N/A N/A assert_raises Exception N/A N/A N/A N/A func BOP a1 a1 a2 a1 N/A N/A assert_raises Exception N/A N/A N/A N/A func BOP a1 a1 a1 a2 N/A test_input_nans N/A N/A N/A N/A N/A a1 N/A N/A np arange 10 dtype float N/A a2 N/A N/A np arange 10 dtype float N/A N/A a2 N/A 0 N/A np nan N/A N/A a2 N/A 1 N/A np nan N/A N/A r1 r2 N/A N/A func AROON a1 a2 2 N/A N/A assert_np_arrays_equal r1 N/A N/A np nan N/A np nan N/A np nan N/A np nan 0 0 0 0 0 0 N/A N/A assert_np_arrays_equal r2 N/A N/A np nan N/A np nan N/A np nan N/A np nan 100 100 100 100 100 100 N/A N/A r1 r2 N/A N/A func AROON a2 a1 2 N/A N/A assert_np_arrays_equal r1 N/A N/A np nan N/A np nan N/A np nan N/A np nan 0 0 0 0 0 0 N/A N/A assert_np_arrays_equal r2 N/A N/A np nan N/A np nan N/A np nan N/A np nan 100 100 100 100 100 100 N/A test_unstable_period N/A N/A N/A N/A N/A a N/A N/A np arange 10 dtype float N/A r N/A N/A func EMA a 3 N/A N/A assert_np_arrays_equal r N/A N/A np nan N/A np nan 1 2 3 4 5 6 7 8 N/A N/A N/A talib set_unstable_period EMA 5 N/A r N/A N/A func EMA a 3 N/A N/A assert_np_arrays_equal r N/A N/A np nan N/A np nan N/A np nan N/A np nan N/A np nan N/A np nan N/A np nan 6 7 8 N/A N/A N/A talib set_unstable_period EMA 0 N/A test_MIN N/A N/A N/A N/A N/A result N/A N/A func MIN series timeperiod 4 N/A i N/A N/A N/A N/A np where N/A N/A N/A np isnan result N/A 0 N/A 0 N/A N/A assert_equals N/A len series N/A len result N/A N/A assert_equals N/A result N/A N/A i 1 93.78 N/A N/A assert_equals N/A result N/A N/A i 2 93.78 N/A N/A assert_equals N/A result N/A N/A i 3 92.53 N/A N/A assert_equals N/A result N/A N/A i 4 92.53 N/A values N/A N/A np array N/A N/A np nan 5.0 4.0 3.0 5.0 7.0 N/A result N/A N/A func MIN values timeperiod 2 N/A N/A assert_np_arrays_equal result N/A N/A np nan N/A np nan 4 3 3 5 N/A test_MAX N/A N/A N/A N/A N/A result N/A N/A func MAX series timeperiod 4 N/A i N/A N/A N/A N/A np where N/A N/A N/A np isnan result N/A 0 N/A 0 N/A N/A assert_equals N/A len series N/A len result N/A N/A assert_equals N/A result N/A N/A i 2 95.09 N/A N/A assert_equals N/A result N/A N/A i 3 95.09 N/A N/A assert_equals N/A result N/A N/A i 4 94.62 N/A N/A assert_equals N/A result N/A N/A i 5 94.62 N/A test_MOM N/A N/A N/A N/A N/A values N/A N/A np array N/A 90.0 88.0 89.0 N/A result N/A N/A func MOM values timeperiod 1 N/A N/A assert_np_arrays_equal result N/A N/A np nan -2 1 N/A result N/A N/A func MOM values timeperiod 2 N/A N/A assert_np_arrays_equal result N/A N/A np nan N/A np nan -1 N/A result N/A N/A func MOM values timeperiod 3 N/A N/A assert_np_arrays_equal result N/A N/A np nan N/A np nan N/A np nan N/A result N/A N/A func MOM values timeperiod 4 N/A N/A assert_np_arrays_equal result N/A N/A np nan N/A np nan N/A np nan N/A test_BBANDS N/A N/A N/A N/A N/A N/A upper middle lower N/A N/A func BBANDS series timeperiod 20 nbdevup 2.0 nbdevdn 2.0 matype N/A N/A talib MA_Type EMA N/A i N/A N/A N/A N/A np where N/A N/A N/A np isnan upper N/A 0 N/A 0 N/A N/A assert_true N/A N/A len upper N/A len middle N/A len lower N/A len series N/A N/A assert_true N/A N/A abs N/A N/A middle N/A N/A i 0 92.891 0.001 N/A N/A assert_true N/A N/A abs N/A N/A lower N/A N/A i 0 87.7086 0.001 N/A N/A assert_true N/A N/A abs N/A N/A middle N/A N/A i 13 87.679 0.001 N/A N/A assert_true N/A N/A abs N/A N/A lower N/A N/A i 13 81.685 0.001 N/A test_DEMA N/A N/A N/A N/A N/A result N/A N/A func DEMA series N/A i N/A N/A N/A N/A np where N/A N/A N/A np isnan result N/A 0 N/A 0 N/A N/A assert_true N/A N/A len series N/A len result N/A N/A assert_true N/A N/A abs N/A N/A result N/A N/A i 1 86.765 0.001 N/A N/A assert_true N/A N/A abs N/A N/A result N/A N/A i 2 86.942 0.001 N/A N/A assert_true N/A N/A abs N/A N/A result N/A N/A i 3 87.089 0.001 N/A N/A assert_true N/A N/A abs N/A N/A result N/A N/A i 4 87.656 0.001 N/A test_EMAEMA N/A N/A N/A N/A N/A result N/A N/A func EMA series timeperiod 2 N/A result N/A N/A func EMA result timeperiod 2 N/A i N/A N/A N/A N/A np where N/A N/A N/A np isnan result N/A 0 N/A 0 N/A N/A assert_true N/A N/A len series N/A len result N/A N/A assert_equals i 2 N/A test_CDL3BLACKCROWS N/A N/A N/A N/A N/A o N/A N/A np array N/A 39.0 39.0 39.0 39.0 39.0 39.0 39.0 39.0 39.0 39.0 39.0 39.0 39.0 39.0 40.32 40.51 38.09 35.0 27.66 30.8 N/A h N/A N/A np array N/A 40.84 40.84 40.84 40.84 40.84 40.84 40.84 40.84 40.84 40.84 40.84 40.84 40.84 40.84 41.69 40.84 38.12 35.5 31.74 32.51 N/A l N/A N/A np array N/A 35.8 35.8 35.8 35.8 35.8 35.8 35.8 35.8 35.8 35.8 35.8 35.8 35.8 35.8 39.26 36.73 33.37 30.03 27.03 28.31 N/A c N/A N/A np array N/A 40.29 40.29 40.29 40.29 40.29 40.29 40.29 40.29 40.29 40.29 40.29 40.29 40.29 40.29 40.46 37.08 33.37 30.03 31.46 28.31 N/A result N/A N/A func CDL3BLACKCROWS o h l c N/A N/A assert_np_arrays_equal result N/A 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -100 0 0 N/A