Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num ListLoad Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad Num ListLoad Num Num Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num ListLoad Num Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad Num Num ListLoad Num Num Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num ListLoad Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad Num ListLoad Num Num Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num ListLoad Num Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad Num Num ListLoad Num Num Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore ListComp IfExp CompareEq BinOpMod NameLoad Num Num Num Num comprehension NameStore Call NameLoad NameLoad Assign NameStore ListComp Num comprehension NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Assign NameStore Num For NameStore Call NameLoad Num NameLoad body If CompareEq BinOpMod NameLoad Num Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpAdd BinOpSub NameLoad NameLoad Num BinOpAdd NameLoad Num Num orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpAdd BinOpSub NameLoad NameLoad Num BinOpAdd NameLoad Num Num Assign NameStore Num For NameStore Call NameLoad Num NameLoad body If CompareEq BinOpMod NameLoad Num Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpAdd BinOpSub NameLoad NameLoad Num BinOpAdd NameLoad Num Num orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpAdd BinOpSub NameLoad NameLoad Num BinOpAdd NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num NameLoad BinOpDiv NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore ListComp Num comprehension NameStore Call NameLoad NameLoad Assign NameStore ListComp IfExp CompareEq BinOpMod NameLoad Num Num Num Num comprehension NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Assign NameStore Num For NameStore Call NameLoad Num NameLoad body If CompareEq BinOpMod NameLoad Num Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpAdd BinOpSub NameLoad NameLoad Num BinOpAdd NameLoad Num Num orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpAdd BinOpSub NameLoad NameLoad Num BinOpAdd NameLoad Num Num Assign NameStore Num For NameStore Call NameLoad Num NameLoad body If CompareEq BinOpMod NameLoad Num Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpAdd BinOpSub NameLoad NameLoad Num BinOpAdd NameLoad Num Num orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpAdd BinOpSub NameLoad NameLoad Num BinOpAdd NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num NameLoad BinOpDiv NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice SubscriptLoad NameLoad Slice Num NameLoad Num orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice SubscriptLoad NameLoad Slice Num NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num Num ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num ListLoad Num Num Num Num decorator_list decorator_list
N/A N/A 
.. moduleauthor:: Gabriel Martin Becedillas Ruiz <gabriel.becedillas@gmail.com>
 N/A common pyalgotrade.technical cross pyalgotrade.technical ma pyalgotrade dataseries HelpersTestCase N/A N/A common TestCase N/A test_get_stripped_left N/A N/A self N/A N/A N/A N/A v1 v2 N/A N/A cross _get_stripped N/A 1 2 3 N/A 1 True N/A N/A N/A self assertEqual v1 N/A 1 N/A N/A N/A self assertEqual v2 N/A 1 N/A N/A v1 v2 N/A N/A cross _get_stripped N/A 1 N/A 1 2 3 True N/A N/A N/A self assertEqual v1 N/A 1 N/A N/A N/A self assertEqual v2 N/A 1 N/A N/A v1 v2 N/A N/A cross _get_stripped N/A 1 2 3 N/A 1 2 True N/A N/A N/A self assertEqual v1 N/A 1 2 N/A N/A N/A self assertEqual v2 N/A 1 2 N/A N/A v1 v2 N/A N/A cross _get_stripped N/A 1 2 N/A 1 2 3 True N/A N/A N/A self assertEqual v1 N/A 1 2 N/A N/A N/A self assertEqual v2 N/A 1 2 N/A test_get_stripped_right N/A N/A self N/A N/A N/A N/A v1 v2 N/A N/A cross _get_stripped N/A 1 2 3 N/A 1 False N/A N/A N/A self assertEqual v1 N/A 3 N/A N/A N/A self assertEqual v2 N/A 1 N/A N/A v1 v2 N/A N/A cross _get_stripped N/A 1 N/A 1 2 3 False N/A N/A N/A self assertEqual v1 N/A 1 N/A N/A N/A self assertEqual v2 N/A 3 N/A N/A v1 v2 N/A N/A cross _get_stripped N/A 1 2 3 N/A 1 2 False N/A N/A N/A self assertEqual v1 N/A 2 3 N/A N/A N/A self assertEqual v2 N/A 1 2 N/A N/A v1 v2 N/A N/A cross _get_stripped N/A 1 2 N/A 1 2 3 False N/A N/A N/A self assertEqual v1 N/A 1 2 N/A N/A N/A self assertEqual v2 N/A 2 3 N/A test_compute_diff N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A cross compute_diff N/A 1 1 1 N/A 0 1 2 N/A 1 0 -1 N/A N/A N/A self assertEqual N/A N/A cross compute_diff N/A 0 1 2 N/A 1 1 1 N/A -1 0 1 N/A N/A TestCase N/A N/A common TestCase N/A __buildSeqDS N/A N/A self values N/A N/A N/A ret N/A N/A dataseries SequenceDataSeries N/A value values N/A N/A N/A N/A ret append value N/A ret N/A testCrossAboveOnce N/A N/A self N/A N/A N/A values1 N/A N/A self __buildSeqDS N/A 1 1 1 10 1 1 1 N/A values2 N/A N/A self __buildSeqDS N/A 2 2 2 2 2 2 2 N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 0 2 0 N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 1 3 0 N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 2 4 1 N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 3 5 0 N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 4 6 0 N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 5 7 0 N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 0 3 0 N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 1 4 1 N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 2 5 1 N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 3 6 0 N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 4 7 0 N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 0 7 1 N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 0 -1 1 N/A testCrossAboveMany N/A N/A self N/A N/A N/A count 100 N/A values1 N/A N/A N/A N/A i 2 0 -1 1 N/A i N/A range count N/A values2 N/A 0 N/A i N/A range count N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 0 0 0 N/A period 2 N/A i N/A range 1 count N/A N/A N/A N/A i 2 0 N/A N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 N/A N/A i period 1 N/A i 1 0 N/A N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 N/A N/A i period 1 N/A i 1 1 N/A period 4 N/A i N/A range 3 count N/A N/A N/A N/A i 2 0 N/A N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 N/A N/A i period 1 N/A i 1 1 N/A N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 N/A N/A i period 1 N/A i 1 2 N/A N/A N/A self assertEqual N/A N/A cross cross_above values1 values2 0 count N/A count 2 N/A testCrossBelowOnce N/A N/A self N/A N/A N/A values1 N/A N/A self __buildSeqDS N/A 2 2 2 2 2 2 2 N/A values2 N/A N/A self __buildSeqDS N/A 1 1 1 10 1 1 1 N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 0 2 0 N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 1 3 0 N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 2 4 1 N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 3 5 0 N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 4 6 0 N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 5 7 0 N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 0 3 0 N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 1 4 1 N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 2 5 1 N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 3 6 0 N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 4 7 0 N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 0 7 1 N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 0 -1 1 N/A testCrossBelowMany N/A N/A self N/A N/A N/A count 100 N/A values1 N/A 0 N/A i N/A range count N/A values2 N/A N/A N/A N/A i 2 0 -1 1 N/A i N/A range count N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 0 0 0 N/A period 2 N/A i N/A range 1 count N/A N/A N/A N/A i 2 0 N/A N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 N/A N/A i period 1 N/A i 1 0 N/A N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 N/A N/A i period 1 N/A i 1 1 N/A period 4 N/A i N/A range 3 count N/A N/A N/A N/A i 2 0 N/A N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 N/A N/A i period 1 N/A i 1 1 N/A N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 N/A N/A i period 1 N/A i 1 2 N/A N/A N/A self assertEqual N/A N/A cross cross_below values1 values2 0 count N/A count 2 N/A testCrossAboveWithSMA N/A N/A self N/A N/A N/A ds1 N/A N/A dataseries SequenceDataSeries N/A ds2 N/A N/A dataseries SequenceDataSeries N/A sma1 N/A N/A ma SMA ds1 15 N/A sma2 N/A N/A ma SMA ds2 25 N/A i N/A range 100 N/A N/A N/A N/A ds1 append i N/A N/A N/A ds2 append 50 N/A N/A i 58 N/A N/A N/A N/A self assertEqual N/A N/A cross cross_above N/A sma1 N/A N/A sma2 N/A -2 None 1 N/A N/A N/A N/A self assertEqual N/A N/A cross cross_above N/A sma1 N/A N/A sma2 N/A -2 None 0 N/A testWithLists N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A cross cross_above N/A 1 2 N/A 1 1 -2 0 N/A N/A N/A self assertEqual N/A N/A cross cross_above N/A 0 1 2 N/A 1 1 1 -3 1 N/A N/A N/A self assertEqual N/A N/A cross cross_above N/A 0 0 0 1 2 N/A 1 1 1 -3 1 N/A N/A N/A self assertEqual N/A N/A cross cross_above N/A 0 0 0 1 2 N/A 1 1 -3 0 N/A N/A N/A self assertEqual N/A N/A cross cross_above N/A 0 0 0 0 2 N/A 1 1 -3 1 N/A N/A