Kernel: Python 3
indicators
In [1]:
In [2]:
In [3]:
In [4]:
In [5]:
In [6]:
IndicatorFactory
In [7]:
Out[7]:
custom_p 0 1
a b c a b c
2018-01-01 110.0 110.0 110.0 111.0 115.0 111.0
2018-01-02 110.0 110.0 110.0 112.0 114.0 112.0
2018-01-03 110.0 110.0 110.0 113.0 113.0 113.0
2018-01-04 110.0 110.0 110.0 114.0 112.0 112.0
2018-01-05 110.0 110.0 110.0 115.0 111.0 111.0
custom_p 0 1
a b c a b c
2018-01-01 110.0 110.0 110.0 111.0 115.0 111.0
2018-01-02 110.0 110.0 110.0 112.0 114.0 112.0
2018-01-03 110.0 110.0 110.0 113.0 113.0 113.0
2018-01-04 110.0 110.0 110.0 114.0 112.0 112.0
2018-01-05 110.0 110.0 110.0 115.0 111.0 111.0
In [8]:
Out[8]:
custom_p 0 1
a b c a b c
2018-01-01 110.0 110.0 110.0 111.0 115.0 111.0
2018-01-02 110.0 110.0 110.0 112.0 114.0 112.0
2018-01-03 110.0 110.0 110.0 113.0 113.0 113.0
2018-01-04 110.0 110.0 110.0 114.0 112.0 112.0
2018-01-05 110.0 110.0 110.0 115.0 111.0 111.0
custom_p 0 1
a b c a b c
2018-01-01 110.0 110.0 110.0 111.0 115.0 111.0
2018-01-02 110.0 110.0 110.0 112.0 114.0 112.0
2018-01-03 110.0 110.0 110.0 113.0 113.0 113.0
2018-01-04 110.0 110.0 110.0 114.0 112.0 112.0
2018-01-05 110.0 110.0 110.0 115.0 111.0 111.0
In [9]:
Out[9]:
custom_p 0 1 2
a b c a b c a b c
2018-01-01 3.0 3.0 3.0 4.0 8.0 4.0 5.0 13.0 5.0
2018-01-02 3.0 3.0 3.0 5.0 7.0 5.0 7.0 11.0 7.0
2018-01-03 3.0 3.0 3.0 6.0 6.0 6.0 9.0 9.0 9.0
2018-01-04 3.0 3.0 3.0 7.0 5.0 5.0 11.0 7.0 7.0
2018-01-05 3.0 3.0 3.0 8.0 4.0 4.0 13.0 5.0 5.0
custom_p 0 1 2
a b c a b c a b c
2018-01-01 3.0 3.0 3.0 4.0 8.0 4.0 5.0 13.0 5.0
2018-01-02 3.0 3.0 3.0 5.0 7.0 5.0 7.0 11.0 7.0
2018-01-03 3.0 3.0 3.0 6.0 6.0 6.0 9.0 9.0 9.0
2018-01-04 3.0 3.0 3.0 7.0 5.0 5.0 11.0 7.0 7.0
2018-01-05 3.0 3.0 3.0 8.0 4.0 4.0 13.0 5.0 5.0
In [10]:
Out[10]:
custom_p 0 1 2
a b c a b c a b c
2018-01-01 3.0 3.0 3.0 4.0 8.0 4.0 5.0 13.0 5.0
2018-01-02 3.0 3.0 3.0 5.0 7.0 5.0 7.0 11.0 7.0
2018-01-03 3.0 3.0 3.0 6.0 6.0 6.0 9.0 9.0 9.0
2018-01-04 3.0 3.0 3.0 7.0 5.0 5.0 11.0 7.0 7.0
2018-01-05 3.0 3.0 3.0 8.0 4.0 4.0 13.0 5.0 5.0
In [11]:
Out[11]:
custom_p 0 1
0 1 2 0 1 2
0 0 0 0 1 1 1
1 0 0 0 1 1 1
2 0 0 0 1 1 1
custom_p 0 1
0 1 2 0 1 2
0 0 0 0 1 1 1
1 0 0 0 1 1 1
2 0 0 0 1 1 1
In [12]:
Out[12]:
0 0
1 0
2 0
3 0
4 0
dtype: int64
0 0
1 0
2 0
3 0
4 0
dtype: int64
custom_p 0 1
0 0 1
1 0 1
2 0 1
3 0 1
4 0 1
custom_p 0 1
0 0 1
1 0 1
2 0 1
3 0 1
4 0 1
custom_p 0 1
a b c a b c
2018-01-01 0 0 0 1 1 1
2018-01-02 0 0 0 1 1 1
2018-01-03 0 0 0 1 1 1
2018-01-04 0 0 0 1 1 1
2018-01-05 0 0 0 1 1 1
custom_p 0 1
a b c a b c
2018-01-01 0 0 0 1 1 1
2018-01-02 0 0 0 1 1 1
2018-01-03 0 0 0 1 1 1
2018-01-04 0 0 0 1 1 1
2018-01-05 0 0 0 1 1 1
In [13]:
Out[13]:
custom_p 0 1
a b c a b c
2018-01-01 0.0 0.0 0.0 1.037454 27.376786 1.073199
2018-01-02 0.0 0.0 0.0 4.239463 16.249630 4.062398
2018-01-03 0.0 0.0 0.0 9.052275 9.779559 9.541004
2018-01-04 0.0 0.0 0.0 17.132916 4.008234 4.387964
2018-01-05 0.0 0.0 0.0 27.081107 1.021234 1.018182
custom_p 0 1
a b c a b c
2018-01-01 0.0 0.0 0.0 1.037454 27.376786 1.073199
2018-01-02 0.0 0.0 0.0 4.239463 16.249630 4.062398
2018-01-03 0.0 0.0 0.0 9.052275 9.779559 9.541004
2018-01-04 0.0 0.0 0.0 17.132916 4.008234 4.387964
2018-01-05 0.0 0.0 0.0 27.081107 1.021234 1.018182
In [14]:
Out[14]:
a b c
2018-01-01 1.0 5.0 1.0
2018-01-02 2.0 4.0 2.0
2018-01-03 3.0 3.0 3.0
2018-01-04 4.0 2.0 2.0
2018-01-05 5.0 1.0 1.0
a b c
2018-01-01 1.0 5.0 1.0
2018-01-02 2.0 4.0 2.0
2018-01-03 3.0 3.0 3.0
2018-01-04 4.0 2.0 2.0
2018-01-05 5.0 1.0 1.0
In [15]:
Out[15]:
0 1 2
0 1 1 1
1 1 1 1
2 1 1 1
0 1 2
0 1 1 1
1 1 1 1
2 1 1 1
In [16]:
Out[16]:
custom_p1 0 1
custom_p2 2 3
a b c a b c
2018-01-01 2.0 10.0 2.0 4.0 20.0 4.0
2018-01-02 4.0 8.0 4.0 8.0 16.0 8.0
2018-01-03 6.0 6.0 6.0 12.0 12.0 12.0
2018-01-04 8.0 4.0 4.0 16.0 8.0 8.0
2018-01-05 10.0 2.0 2.0 20.0 4.0 4.0
custom_p1 0 1
custom_p2 2 3
a b c a b c
2018-01-01 2.0 10.0 2.0 4.0 20.0 4.0
2018-01-02 4.0 8.0 4.0 8.0 16.0 8.0
2018-01-03 6.0 6.0 6.0 12.0 12.0 12.0
2018-01-04 8.0 4.0 4.0 16.0 8.0 8.0
2018-01-05 10.0 2.0 2.0 20.0 4.0 4.0
In [17]:
Out[17]:
custom_p1 array_0 array_1
custom_p2 2 3
a b c a b c
2018-01-01 2.0 15.0 4.0 3.0 20.0 5.0
2018-01-02 4.0 12.0 8.0 6.0 16.0 10.0
2018-01-03 6.0 9.0 12.0 9.0 12.0 15.0
2018-01-04 8.0 6.0 8.0 12.0 8.0 10.0
2018-01-05 10.0 3.0 4.0 15.0 4.0 5.0
custom_p1 array_0 array_1
custom_p2 2 3
a b c a b c
2018-01-01 2.0 15.0 4.0 3.0 20.0 5.0
2018-01-02 4.0 12.0 8.0 6.0 16.0 10.0
2018-01-03 6.0 9.0 12.0 9.0 12.0 15.0
2018-01-04 8.0 6.0 8.0 12.0 8.0 10.0
2018-01-05 10.0 3.0 4.0 15.0 4.0 5.0
In [18]:
Out[18]:
custom_p1 array_0 array_1
custom_p2 2 3
a b c a b c
2018-01-01 2.0 15.0 4.0 3.0 20.0 5.0
2018-01-02 4.0 12.0 8.0 6.0 16.0 10.0
2018-01-03 6.0 9.0 12.0 9.0 12.0 15.0
2018-01-04 8.0 6.0 8.0 12.0 8.0 10.0
2018-01-05 10.0 3.0 4.0 15.0 4.0 5.0
custom_p1 array_0 array_1
custom_p2 2 3
a b c a b c
2018-01-01 2.0 15.0 4.0 3.0 20.0 5.0
2018-01-02 4.0 12.0 8.0 6.0 16.0 10.0
2018-01-03 6.0 9.0 12.0 9.0 12.0 15.0
2018-01-04 8.0 6.0 8.0 12.0 8.0 10.0
2018-01-05 10.0 3.0 4.0 15.0 4.0 5.0
In [19]:
Out[19]:
custom_p1 0 1 \
custom_p2 2 3 2 3
a b c a b c a b c a b
2018-01-01 2.0 10.0 2.0 3.0 15.0 3.0 3.0 15.0 3.0 4.0 20.0
2018-01-02 4.0 8.0 4.0 6.0 12.0 6.0 6.0 12.0 6.0 8.0 16.0
2018-01-03 6.0 6.0 6.0 9.0 9.0 9.0 9.0 9.0 9.0 12.0 12.0
2018-01-04 8.0 4.0 4.0 12.0 6.0 6.0 12.0 6.0 6.0 16.0 8.0
2018-01-05 10.0 2.0 2.0 15.0 3.0 3.0 15.0 3.0 3.0 20.0 4.0
custom_p1
custom_p2
c
2018-01-01 4.0
2018-01-02 8.0
2018-01-03 12.0
2018-01-04 8.0
2018-01-05 4.0
custom_p1 0 1 \
custom_p2 2 3 2 3
a b c a b c a b c a b
2018-01-01 2.0 10.0 2.0 3.0 15.0 3.0 3.0 15.0 3.0 4.0 20.0
2018-01-02 4.0 8.0 4.0 6.0 12.0 6.0 6.0 12.0 6.0 8.0 16.0
2018-01-03 6.0 6.0 6.0 9.0 9.0 9.0 9.0 9.0 9.0 12.0 12.0
2018-01-04 8.0 4.0 4.0 12.0 6.0 6.0 12.0 6.0 6.0 16.0 8.0
2018-01-05 10.0 2.0 2.0 15.0 3.0 3.0 15.0 3.0 3.0 20.0 4.0
custom_p1
custom_p2
c
2018-01-01 4.0
2018-01-02 8.0
2018-01-03 12.0
2018-01-04 8.0
2018-01-05 4.0
In [20]:
Out[20]:
custom_p1 0 1
a b c a b c
2018-01-01 2.0 10.0 2.0 3.0 15.0 3.0
2018-01-02 4.0 8.0 4.0 6.0 12.0 6.0
2018-01-03 6.0 6.0 6.0 9.0 9.0 9.0
2018-01-04 8.0 4.0 4.0 12.0 6.0 6.0
2018-01-05 10.0 2.0 2.0 15.0 3.0 3.0
custom_p1 0 1
a b c a b c
2018-01-01 2.0 10.0 2.0 3.0 15.0 3.0
2018-01-02 4.0 8.0 4.0 6.0 12.0 6.0
2018-01-03 6.0 6.0 6.0 9.0 9.0 9.0
2018-01-04 8.0 4.0 4.0 12.0 6.0 6.0
2018-01-05 10.0 2.0 2.0 15.0 3.0 3.0
In [21]:
Out[21]:
custom_p1 0 1
a b c a b c
2018-01-01 2.0 10.0 2.0 3.0 15.0 3.0
2018-01-02 4.0 8.0 4.0 6.0 12.0 6.0
2018-01-03 6.0 6.0 6.0 9.0 9.0 9.0
2018-01-04 8.0 4.0 4.0 12.0 6.0 6.0
2018-01-05 10.0 2.0 2.0 15.0 3.0 3.0
custom_p1 0 1
a b c a b c
2018-01-01 2.0 10.0 2.0 3.0 15.0 3.0
2018-01-02 4.0 8.0 4.0 6.0 12.0 6.0
2018-01-03 6.0 6.0 6.0 9.0 9.0 9.0
2018-01-04 8.0 4.0 4.0 12.0 6.0 6.0
2018-01-05 10.0 2.0 2.0 15.0 3.0 3.0
In [22]:
Out[22]:
custom_p1 0 1
custom_p2 2 2
a b c a b c
2018-01-01 2.0 10.0 2.0 3.0 15.0 3.0
2018-01-02 4.0 8.0 4.0 6.0 12.0 6.0
2018-01-03 6.0 6.0 6.0 9.0 9.0 9.0
2018-01-04 8.0 4.0 4.0 12.0 6.0 6.0
2018-01-05 10.0 2.0 2.0 15.0 3.0 3.0
custom_p1 0 1
custom_p2 2 2
a b c a b c
2018-01-01 2.0 10.0 2.0 3.0 15.0 3.0
2018-01-02 4.0 8.0 4.0 6.0 12.0 6.0
2018-01-03 6.0 6.0 6.0 9.0 9.0 9.0
2018-01-04 8.0 4.0 4.0 12.0 6.0 6.0
2018-01-05 10.0 2.0 2.0 15.0 3.0 3.0
custom_p1 0 1
a b c a b c
2018-01-01 2.0 10.0 2.0 3.0 15.0 3.0
2018-01-02 4.0 8.0 4.0 6.0 12.0 6.0
2018-01-03 6.0 6.0 6.0 9.0 9.0 9.0
2018-01-04 8.0 4.0 4.0 12.0 6.0 6.0
2018-01-05 10.0 2.0 2.0 15.0 3.0 3.0
custom_p1 0 1
a b c a b c
2018-01-01 2.0 10.0 2.0 3.0 15.0 3.0
2018-01-02 4.0 8.0 4.0 6.0 12.0 6.0
2018-01-03 6.0 6.0 6.0 9.0 9.0 9.0
2018-01-04 8.0 4.0 4.0 12.0 6.0 6.0
2018-01-05 10.0 2.0 2.0 15.0 3.0 3.0
In [23]:
Out[23]:
custom_p 0 1
a b c a b c
2018-01-01 0.0 0.0 0.0 1.0 5.0 1.0
2018-01-02 0.0 0.0 0.0 2.0 4.0 2.0
2018-01-03 0.0 0.0 0.0 3.0 3.0 3.0
2018-01-04 0.0 0.0 0.0 4.0 2.0 2.0
2018-01-05 0.0 0.0 0.0 5.0 1.0 1.0
custom_p 0 1
a b c a b c
2018-01-01 0.0 0.0 0.0 1.0 5.0 1.0
2018-01-02 0.0 0.0 0.0 2.0 4.0 2.0
2018-01-03 0.0 0.0 0.0 3.0 3.0 3.0
2018-01-04 0.0 0.0 0.0 4.0 2.0 2.0
2018-01-05 0.0 0.0 0.0 5.0 1.0 1.0
custom_p 0 1
a b c a b c
2018-01-01 0.0 0.0 0.0 1.0 5.0 1.0
2018-01-02 0.0 0.0 0.0 2.0 4.0 2.0
2018-01-03 0.0 0.0 0.0 3.0 3.0 3.0
2018-01-04 0.0 0.0 0.0 4.0 2.0 2.0
2018-01-05 0.0 0.0 0.0 5.0 1.0 1.0
custom_p 0 1
a b c a b c
2018-01-01 0.0 0.0 0.0 1.0 5.0 1.0
2018-01-02 0.0 0.0 0.0 2.0 4.0 2.0
2018-01-03 0.0 0.0 0.0 3.0 3.0 3.0
2018-01-04 0.0 0.0 0.0 4.0 2.0 2.0
2018-01-05 0.0 0.0 0.0 5.0 1.0 1.0
In [24]:
Out[24]:
custom_p 0 1
a b c a b c
2018-01-01 0.0 0.0 0.0 1.0 0.0 0.0
2018-01-02 0.0 0.0 0.0 1.0 0.0 0.0
2018-01-03 0.0 0.0 0.0 1.0 2.0 3.0
2018-01-04 0.0 5.0 5.0 1.0 3.0 2.0
2018-01-05 0.0 1.0 2.0 1.0 2.0 1.0
custom_p 0 1
a b c a b c
2018-01-01 0.0 0.0 0.0 1.0 0.0 0.0
2018-01-02 0.0 0.0 0.0 1.0 0.0 0.0
2018-01-03 0.0 0.0 0.0 1.0 2.0 3.0
2018-01-04 0.0 5.0 5.0 1.0 3.0 2.0
2018-01-05 0.0 1.0 2.0 1.0 2.0 1.0
custom_p 0 1 \
a b c a
2018-01-01 0 0 0 1
2018-01-02 0 0 0 1
2018-01-03 0 0 0 1
2018-01-04 0 4617315517961601024 4617315517961601024 1
2018-01-05 0 4607182418800017408 4611686018427387904 1
custom_p
b c
2018-01-01 0 0
2018-01-02 0 0
2018-01-03 4611686018427387904 4613937818241073152
2018-01-04 4613937818241073152 4611686018427387904
2018-01-05 4611686018427387904 4607182418800017408
custom_p 0 1 \
a b c a
2018-01-01 0 4616189618054758400 4618441417868443648 1
2018-01-02 0 4618441417868443648 4616189618054758400 1
2018-01-03 0 4616189618054758400 4611686018427387904 1
2018-01-04 0 4624633867356078080 4624633867356078080 1
2018-01-05 0 4613937818241073152 4618441417868443648 1
custom_p
b c
2018-01-01 4621819117588971520 4621819117588971520
2018-01-02 4611686018427387904 4616189618054758400
2018-01-03 4618441417868443648 4621256167635550208
2018-01-04 4621256167635550208 4618441417868443648
2018-01-05 4618441417868443648 4613937818241073152
custom_p 0 1
a b c a b c
2018-01-01 0 -1 -1 1 -1 -1
2018-01-02 0 -1 -1 1 -1 -1
2018-01-03 0 -1 -1 1 -1 -1
2018-01-04 0 -1 -1 1 -1 -1
2018-01-05 0 -1 -1 1 -1 -1
custom_p 0 1
a b c a b c
2018-01-01 0 -1 -1 1 -1 -1
2018-01-02 0 -1 -1 1 -1 -1
2018-01-03 0 -1 -1 1 -1 -1
2018-01-04 0 -1 -1 1 -1 -1
2018-01-05 0 -1 -1 1 -1 -1
In [25]:
Out[25]:
custom_p 0 1 2
a b c a b c a b c
2018-01-01 13.0 13.0 13.0 14.0 18.0 14.0 15.0 23.0 15.0
2018-01-02 13.0 13.0 13.0 15.0 17.0 15.0 17.0 21.0 17.0
2018-01-03 13.0 13.0 13.0 16.0 16.0 16.0 19.0 19.0 19.0
2018-01-04 13.0 13.0 13.0 17.0 15.0 15.0 21.0 17.0 17.0
2018-01-05 13.0 13.0 13.0 18.0 14.0 14.0 23.0 15.0 15.0
custom_p 0 1 2
a b c a b c a b c
2018-01-01 13.0 13.0 13.0 14.0 18.0 14.0 15.0 23.0 15.0
2018-01-02 13.0 13.0 13.0 15.0 17.0 15.0 17.0 21.0 17.0
2018-01-03 13.0 13.0 13.0 16.0 16.0 16.0 19.0 19.0 19.0
2018-01-04 13.0 13.0 13.0 17.0 15.0 15.0 21.0 17.0 17.0
2018-01-05 13.0 13.0 13.0 18.0 14.0 14.0 23.0 15.0 15.0
In [26]:
Out[26]:
custom_p 0 1
a b c a b c
2018-01-01 100.0 100.0 100.0 101.0 105.0 101.0
2018-01-02 100.0 100.0 100.0 102.0 104.0 102.0
2018-01-03 100.0 100.0 100.0 103.0 103.0 103.0
2018-01-04 100.0 100.0 100.0 104.0 102.0 102.0
2018-01-05 100.0 100.0 100.0 105.0 101.0 101.0
custom_p 0 1
a b c a b c
2018-01-01 100.0 100.0 100.0 101.0 105.0 101.0
2018-01-02 100.0 100.0 100.0 102.0 104.0 102.0
2018-01-03 100.0 100.0 100.0 103.0 103.0 103.0
2018-01-04 100.0 100.0 100.0 104.0 102.0 102.0
2018-01-05 100.0 100.0 100.0 105.0 101.0 101.0
In [27]:
Out[27]:
i1_p1 0 1
i1_p2 3 4
a b c a b c a b c
2018-01-01 3.0 15.0 3.0 3.0 15.0 3.0 5.0 25.0 5.0
2018-01-02 6.0 12.0 6.0 6.0 12.0 6.0 10.0 20.0 10.0
2018-01-03 9.0 9.0 9.0 9.0 9.0 9.0 15.0 15.0 15.0
2018-01-04 12.0 6.0 6.0 12.0 6.0 6.0 20.0 10.0 10.0
2018-01-05 15.0 3.0 3.0 15.0 3.0 3.0 25.0 5.0 5.0
i2_p1 1 2
i2_p2 4 5
a b c a b c a b c
2018-01-01 5.0 25.0 5.0 7.0 35.0 7.0 7.0 35.0 7.0
2018-01-02 10.0 20.0 10.0 14.0 28.0 14.0 14.0 28.0 14.0
2018-01-03 15.0 15.0 15.0 21.0 21.0 21.0 21.0 21.0 21.0
2018-01-04 20.0 10.0 10.0 28.0 14.0 14.0 28.0 14.0 14.0
2018-01-05 25.0 5.0 5.0 35.0 7.0 7.0 35.0 7.0 7.0
i1_p1 0 1
i1_p2 3 4
a b c a b c a b c
2018-01-01 3.0 15.0 3.0 3.0 15.0 3.0 5.0 25.0 5.0
2018-01-02 6.0 12.0 6.0 6.0 12.0 6.0 10.0 20.0 10.0
2018-01-03 9.0 9.0 9.0 9.0 9.0 9.0 15.0 15.0 15.0
2018-01-04 12.0 6.0 6.0 12.0 6.0 6.0 20.0 10.0 10.0
2018-01-05 15.0 3.0 3.0 15.0 3.0 3.0 25.0 5.0 5.0
i2_p1 1 2
i2_p2 4 5
a b c a b c a b c
2018-01-01 5.0 25.0 5.0 7.0 35.0 7.0 7.0 35.0 7.0
2018-01-02 10.0 20.0 10.0 14.0 28.0 14.0 14.0 28.0 14.0
2018-01-03 15.0 15.0 15.0 21.0 21.0 21.0 21.0 21.0 21.0
2018-01-04 20.0 10.0 10.0 28.0 14.0 14.0 28.0 14.0 14.0
2018-01-05 25.0 5.0 5.0 35.0 7.0 7.0 35.0 7.0 7.0
In [28]:
Out[28]:
['__annotations__',
'__class__',
'__delattr__',
'__dict__',
'__dir__',
'__doc__',
'__eq__',
'__format__',
'__ge__',
'__getattribute__',
'__getitem__',
'__gt__',
'__hash__',
'__init__',
'__init_subclass__',
'__le__',
'__lt__',
'__module__',
'__ne__',
'__new__',
'__reduce__',
'__reduce_ex__',
'__repr__',
'__setattr__',
'__sizeof__',
'__str__',
'__subclasshook__',
'__weakref__',
'_config',
'_iloc',
'_in_output_names',
'_indexing_kwargs',
'_input_mapper',
'_input_names',
'_level_names',
'_loc',
'_metrics',
'_o1',
'_o2',
'_output_flags',
'_output_names',
'_param_names',
'_run',
'_run_combs',
'_short_name',
'_ts',
'_ts_out',
'_wrapper',
'apply_func',
'build_metrics_doc',
'config',
'copy',
'custom_func',
'deep_getattr',
'dumps',
'iloc',
'in_output_names',
'indexing_func',
'indexing_kwargs',
'input_names',
'level_names',
'load',
'loads',
'loc',
'metrics',
'o1',
'o1_above',
'o1_below',
'o1_equal',
'o1_stats',
'o2',
'o2_and',
'o2_or',
'o2_stats',
'o2_xor',
'output_flags',
'output_names',
'override_metrics_doc',
'param_names',
'post_resolve_attr',
'pre_resolve_attr',
'regroup',
'resolve_attr',
'resolve_self',
'run',
'run_combs',
'save',
'select_one',
'select_one_from_obj',
'self_aliases',
'short_name',
'stats',
'stats_defaults',
'to_doc',
'ts',
'ts_above',
'ts_below',
'ts_equal',
'ts_out',
'ts_out_readable',
'ts_out_stats',
'ts_stats',
'update_config',
'wrapper',
'writeable_attrs',
'xs']
In [29]:
In [30]:
Out[30]:
['__annotations__',
'__class__',
'__delattr__',
'__dict__',
'__dir__',
'__doc__',
'__eq__',
'__format__',
'__ge__',
'__getattribute__',
'__getitem__',
'__gt__',
'__hash__',
'__init__',
'__init_subclass__',
'__le__',
'__lt__',
'__module__',
'__ne__',
'__new__',
'__reduce__',
'__reduce_ex__',
'__repr__',
'__setattr__',
'__sizeof__',
'__str__',
'__subclasshook__',
'__weakref__',
'_in_output_names',
'_input_names',
'_metrics',
'_output_flags',
'_output_names',
'_param_names',
'_run',
'_run_combs',
'apply_func',
'build_metrics_doc',
'config',
'copy',
'custom_func',
'deep_getattr',
'dumps',
'iloc',
'in_output_names',
'indexing_func',
'indexing_kwargs',
'input_names',
'level_names',
'load',
'loads',
'loc',
'metrics',
'o1',
'o1_above',
'o1_below',
'o1_equal',
'o1_stats',
'o2',
'o2_above',
'o2_below',
'o2_equal',
'o2_stats',
'output_flags',
'output_names',
'override_metrics_doc',
'p1_list',
'p1_loc',
'p2_list',
'p2_loc',
'param_names',
'post_resolve_attr',
'pre_resolve_attr',
'regroup',
'resolve_attr',
'resolve_self',
'run',
'run_combs',
'save',
'select_one',
'select_one_from_obj',
'self_aliases',
'short_name',
'stats',
'stats_defaults',
'to_doc',
'ts1',
'ts1_above',
'ts1_below',
'ts1_equal',
'ts1_stats',
'ts2',
'ts2_above',
'ts2_below',
'ts2_equal',
'ts2_stats',
'tuple_loc',
'update_config',
'wrapper',
'writeable_attrs',
'xs']
In [31]:
In [32]:
Out[32]:
DatetimeIndex(['2018-01-01', '2018-01-02', '2018-01-03', '2018-01-04',
'2018-01-05'],
dtype='datetime64[ns]', freq=None)
MultiIndex([(1, 3, 'a'),
(1, 3, 'b'),
(1, 3, 'c'),
(2, 4, 'a'),
(2, 4, 'b'),
(2, 4, 'c')],
names=['custom_p1', 'custom_p2', None])
2
(5, 6)
1 days 00:00:00
In [33]:
Out[33]:
custom
('custom_p1', 'custom_p2')
('ts1', 'ts2')
('p1', 'p2')
('o1', 'o2')
{}
[1, 2]
[3, 4]
Pandas indexing
In [34]:
Out[34]:
[[1. 5. 1.]
[2. 4. 2.]
[3. 3. 3.]
[4. 2. 2.]
[5. 1. 1.]]
custom_p1 1 2
custom_p2 3 4
a b c a b c
2018-01-01 1.0 5.0 1.0 1.0 5.0 1.0
2018-01-02 2.0 4.0 2.0 2.0 4.0 2.0
2018-01-03 3.0 3.0 3.0 3.0 3.0 3.0
2018-01-04 4.0 2.0 2.0 4.0 2.0 2.0
2018-01-05 5.0 1.0 1.0 5.0 1.0 1.0
2018-01-01 1.0
2018-01-02 2.0
2018-01-03 3.0
2018-01-04 4.0
2018-01-05 5.0
Name: (1, 3, a), dtype: float64
2018-01-01 1.0
2018-01-02 2.0
2018-01-03 3.0
2018-01-04 4.0
2018-01-05 5.0
Name: (1, 3, a), dtype: float64
custom_p1 1
custom_p2 3
a
2018-01-01 1.0
2018-01-02 2.0
2018-01-03 3.0
2018-01-04 4.0
2018-01-05 5.0
custom_p1 1
custom_p2 3
a
2018-01-01 1.0
2018-01-02 2.0
2018-01-03 3.0
2018-01-04 4.0
2018-01-05 5.0
custom_p1 1 2
custom_p2 3 4
a b c a b c
2018-01-01 1.0 5.0 1.0 1.0 5.0 1.0
2018-01-02 2.0 4.0 2.0 2.0 4.0 2.0
custom_p1 1 2
custom_p2 3 4
a b c a b c
2018-01-01 1.0 5.0 1.0 1.0 5.0 1.0
2018-01-02 2.0 4.0 2.0 2.0 4.0 2.0
In [35]:
Out[35]:
2018-01-01 1.0
2018-01-02 2.0
2018-01-03 3.0
2018-01-04 4.0
2018-01-05 5.0
Name: (1, 3, a), dtype: float64
120 µs ± 540 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each)
2018-01-01 1.0
2018-01-02 2.0
2018-01-03 3.0
2018-01-04 4.0
2018-01-05 5.0
Name: (1, 3, a), dtype: float64
1.33 ms ± 40.7 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
In [36]:
Out[36]:
custom_p1 1
custom_p2 3
a b c
2018-01-01 1.0 5.0 1.0
2018-01-02 2.0 4.0 2.0
2018-01-03 3.0 3.0 3.0
2018-01-04 4.0 2.0 2.0
2018-01-05 5.0 1.0 1.0
910 µs ± 59.3 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
custom_p1 1
custom_p2 3
a b c
2018-01-01 1.0 5.0 1.0
2018-01-02 2.0 4.0 2.0
2018-01-03 3.0 3.0 3.0
2018-01-04 4.0 2.0 2.0
2018-01-05 5.0 1.0 1.0
18 ms ± 759 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
In [37]:
Out[37]:
2018-01-01 1.0
2018-01-02 2.0
2018-01-03 3.0
2018-01-04 4.0
2018-01-05 5.0
Name: (1, 3, a), dtype: float64
147 µs ± 270 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each)
2018-01-01 1.0
2018-01-02 2.0
2018-01-03 3.0
2018-01-04 4.0
2018-01-05 5.0
Name: (1, 3, a), dtype: float64
1.34 ms ± 4.28 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
In [38]:
Out[38]:
a b c
2018-01-01 1.0 5.0 1.0
2018-01-02 2.0 4.0 2.0
2018-01-03 3.0 3.0 3.0
2018-01-04 4.0 2.0 2.0
2018-01-05 5.0 1.0 1.0
169 µs ± 1.54 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
a b c
2018-01-01 1.0 5.0 1.0
2018-01-02 2.0 4.0 2.0
2018-01-03 3.0 3.0 3.0
2018-01-04 4.0 2.0 2.0
2018-01-05 5.0 1.0 1.0
6.1 ms ± 75.8 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
In [39]:
Out[39]:
custom_p2 3
a b c
2018-01-01 1.0 5.0 1.0
2018-01-02 2.0 4.0 2.0
2018-01-03 3.0 3.0 3.0
2018-01-04 4.0 2.0 2.0
2018-01-05 5.0 1.0 1.0
161 µs ± 371 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each)
custom_p2 3
a b c
2018-01-01 1.0 5.0 1.0
2018-01-02 2.0 4.0 2.0
2018-01-03 3.0 3.0 3.0
2018-01-04 4.0 2.0 2.0
2018-01-05 5.0 1.0 1.0
6.2 ms ± 119 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
Parameter indexing
In [40]:
Out[40]:
Index([1, 1, 1, 2, 2, 2], dtype='int64', name='custom_p1')
custom_p2 4
a b c
2018-01-01 2.0 10.0 2.0
2018-01-02 4.0 8.0 4.0
2018-01-03 6.0 6.0 6.0
2018-01-04 8.0 4.0 4.0
2018-01-05 10.0 2.0 2.0
custom_p1 1 2
custom_p2 3 4
a b c a b c
2018-01-01 1.0 5.0 1.0 2.0 10.0 2.0
2018-01-02 2.0 4.0 2.0 4.0 8.0 4.0
2018-01-03 3.0 3.0 3.0 6.0 6.0 6.0
2018-01-04 4.0 2.0 2.0 8.0 4.0 4.0
2018-01-05 5.0 1.0 1.0 10.0 2.0 2.0
custom_p1 1
custom_p2 3
a b c a b c a b c
2018-01-01 1.0 5.0 1.0 1.0 5.0 1.0 1.0 5.0 1.0
2018-01-02 2.0 4.0 2.0 2.0 4.0 2.0 2.0 4.0 2.0
2018-01-03 3.0 3.0 3.0 3.0 3.0 3.0 3.0 3.0 3.0
2018-01-04 4.0 2.0 2.0 4.0 2.0 2.0 4.0 2.0 2.0
2018-01-05 5.0 1.0 1.0 5.0 1.0 1.0 5.0 1.0 1.0
In [41]:
Out[41]:
18.2 ms ± 1.45 ms per loop (mean ± std. dev. of 7 runs, 100 loops each)
122 ms ± 18.2 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
In [42]:
Out[42]:
[(1, 3), (1, 3), (1, 3), (2, 4), (2, 4), (2, 4)]
a b c
2018-01-01 1.0 5.0 1.0
2018-01-02 2.0 4.0 2.0
2018-01-03 3.0 3.0 3.0
2018-01-04 4.0 2.0 2.0
2018-01-05 5.0 1.0 1.0
custom_p1 1 2
custom_p2 3 4
a b c a b c
2018-01-01 1.0 5.0 1.0 2.0 10.0 2.0
2018-01-02 2.0 4.0 2.0 4.0 8.0 4.0
2018-01-03 3.0 3.0 3.0 6.0 6.0 6.0
2018-01-04 4.0 2.0 2.0 8.0 4.0 4.0
2018-01-05 5.0 1.0 1.0 10.0 2.0 2.0
In [43]:
Out[43]:
22.5 ms ± 5.03 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
172 ms ± 10.8 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
Comparison methods
In [44]:
Out[44]:
custom_p1 1 2
custom_p2 3 4
a b c a b c
2018-01-01 False True False False True False
2018-01-02 False True False True True True
2018-01-03 True True True True True True
2018-01-04 True False False True True True
2018-01-05 True False False True False False
485 µs ± 9.08 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
custom_p1 1 2
custom_p2 3 4
a b c a b c
2018-01-01 False True False False True False
2018-01-02 False True False True True True
2018-01-03 True True True True True True
2018-01-04 True False False True True True
2018-01-05 True False False True False False
3.32 ms ± 6.22 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
In [45]:
Out[45]:
custom_p1 1 2 1 \
custom_p2 3 4 3
a b c a b c a b c
2018-01-01 False True False False True False False True False
2018-01-02 False True False True True True False True False
2018-01-03 True True True True True True False False False
2018-01-04 True False False True True True True False False
2018-01-05 True False False True False False True False False
custom_p1 2
custom_p2 4
a b c
2018-01-01 False True False
2018-01-02 True True True
2018-01-03 True True True
2018-01-04 True True True
2018-01-05 True False False
1.37 ms ± 45.8 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
custom_o1_above 2 3 \
custom_p1 1 2 1
custom_p2 3 4 3
a b c a b c a b
2018-01-01 False True False False True False False True
2018-01-02 False True False True True True False True
2018-01-03 True True True True True True False False
2018-01-04 True False False True True True True False
2018-01-05 True False False True False False True False
custom_o1_above
custom_p1 2
custom_p2 4
c a b c
2018-01-01 False False True False
2018-01-02 False True True True
2018-01-03 False True True True
2018-01-04 False True True True
2018-01-05 False True False False
8.31 ms ± 85.1 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
TA-Lib
In [46]:
In [47]:
Out[47]:
2018-01-01 NaN
2018-01-02 1.5
2018-01-03 2.5
2018-01-04 3.5
2018-01-05 4.5
Name: (2, a), dtype: float64
sma_timeperiod 2
a b c
2018-01-01 NaN NaN NaN
2018-01-02 1.5 4.5 1.5
2018-01-03 2.5 3.5 2.5
2018-01-04 3.5 2.5 2.5
2018-01-05 4.5 1.5 1.5
sma_timeperiod 2 3
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 1.5 4.5 1.5 NaN NaN NaN
2018-01-03 2.5 3.5 2.5 2.0 4.0 2.000000
2018-01-04 3.5 2.5 2.5 3.0 3.0 2.333333
2018-01-05 4.5 1.5 1.5 4.0 2.0 2.000000
In [49]:
Out[49]:
13 ms ± 226 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
80.1 ms ± 1.22 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
99 ms ± 2.78 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
22.3 ms ± 572 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
In [50]:
Out[50]:
[ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3
3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
5 5 5 5 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6
6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 8
8 8 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 11 11 11
11 11 11 11 11 12 12 12 12 12 12 12 13 13 13 13 13 13 14 14 14 14 14 15
15 15 15 16 16 16 17 17 18]
[ 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
6 7 8 9 10 11 12 13 14 15 16 17 18 19 7 8 9 10 11 12 13 14 15 16
17 18 19 8 9 10 11 12 13 14 15 16 17 18 19 9 10 11 12 13 14 15 16 17
18 19 10 11 12 13 14 15 16 17 18 19 11 12 13 14 15 16 17 18 19 12 13 14
15 16 17 18 19 13 14 15 16 17 18 19 14 15 16 17 18 19 15 16 17 18 19 16
17 18 19 17 18 19 18 19 19]
In [51]:
Out[51]:
4.04 s ± 652 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
1.51 s ± 287 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [52]:
Out[52]:
1.27 s ± 40.5 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
1.2 s ± 5.87 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [53]:
Out[53]:
/Users/olegpolakow/Documents/SourceTree/vectorbt/vectorbt/base/accessors.py:667: RuntimeWarning: invalid value encountered in greater
result = combine_func(inputs[0], inputs[1], *args, **kwargs)
/Users/olegpolakow/Documents/SourceTree/vectorbt/vectorbt/base/accessors.py:667: RuntimeWarning: invalid value encountered in less
result = combine_func(inputs[0], inputs[1], *args, **kwargs)
sma_1_timeperiod 2 3 \
sma_2_timeperiod 3 4 4
a b c a b c a b
2018-01-01 False False False False False False False False
2018-01-02 False False False False False False False False
2018-01-03 True False True False False False False False
2018-01-04 False False False True False True True False
2018-01-05 False False False False False False False False
sma_1_timeperiod
sma_2_timeperiod
c
2018-01-01 False
2018-01-02 False
2018-01-03 False
2018-01-04 True
2018-01-05 False
sma_1_timeperiod 2 3 \
sma_2_timeperiod 3 4 4
a b c a b c a b
2018-01-01 False False False False False False False False
2018-01-02 False False False False False False False False
2018-01-03 False True False False False False False False
2018-01-04 False False False False True False False True
2018-01-05 False False True False False True False False
sma_1_timeperiod
sma_2_timeperiod
c
2018-01-01 False
2018-01-02 False
2018-01-03 False
2018-01-04 False
2018-01-05 False
In [54]:
Out[54]:
['__annotations__',
'__class__',
'__delattr__',
'__dict__',
'__dir__',
'__doc__',
'__eq__',
'__format__',
'__ge__',
'__getattribute__',
'__getitem__',
'__gt__',
'__hash__',
'__init__',
'__init_subclass__',
'__le__',
'__lt__',
'__module__',
'__ne__',
'__new__',
'__reduce__',
'__reduce_ex__',
'__repr__',
'__setattr__',
'__sizeof__',
'__str__',
'__subclasshook__',
'__weakref__',
'_in_output_names',
'_input_names',
'_metrics',
'_output_flags',
'_output_names',
'_param_names',
'_run',
'_run_combs',
'apply_func',
'build_metrics_doc',
'close',
'close_above',
'close_below',
'close_equal',
'close_stats',
'config',
'copy',
'custom_func',
'deep_getattr',
'dumps',
'iloc',
'in_output_names',
'indexing_func',
'indexing_kwargs',
'input_names',
'level_names',
'load',
'loads',
'loc',
'lowerband',
'lowerband_above',
'lowerband_below',
'lowerband_equal',
'lowerband_stats',
'matype_list',
'matype_loc',
'metrics',
'middleband',
'middleband_above',
'middleband_below',
'middleband_equal',
'middleband_stats',
'nbdevdn_list',
'nbdevdn_loc',
'nbdevup_list',
'nbdevup_loc',
'output_flags',
'output_names',
'override_metrics_doc',
'param_names',
'post_resolve_attr',
'pre_resolve_attr',
'regroup',
'resolve_attr',
'resolve_self',
'run',
'run_combs',
'save',
'select_one',
'select_one_from_obj',
'self_aliases',
'short_name',
'stats',
'stats_defaults',
'timeperiod_list',
'timeperiod_loc',
'to_doc',
'tuple_loc',
'update_config',
'upperband',
'upperband_above',
'upperband_below',
'upperband_equal',
'upperband_stats',
'wrapper',
'writeable_attrs',
'xs']
MA
In [55]:
Out[55]:
a b c
2018-01-01 NaN NaN NaN
2018-01-02 1.5 4.5 1.5
2018-01-03 2.5 3.5 2.5
2018-01-04 3.5 2.5 2.5
2018-01-05 4.5 1.5 1.5
a b c
2018-01-01 NaN NaN NaN
2018-01-02 NaN NaN NaN
2018-01-03 2.428571 3.571429 2.428571
2018-01-04 3.266667 2.733333 2.200000
2018-01-05 4.161290 1.838710 1.580645
sma_timeperiod 2
a b c
2018-01-01 NaN NaN NaN
2018-01-02 1.5 4.5 1.5
2018-01-03 2.5 3.5 2.5
2018-01-04 3.5 2.5 2.5
2018-01-05 4.5 1.5 1.5
ma_window 2 3
ma_ewm False True
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 1.5 4.5 1.5 NaN NaN NaN
2018-01-03 2.5 3.5 2.5 2.2500 3.7500 2.2500
2018-01-04 3.5 2.5 2.5 3.1250 2.8750 2.1250
2018-01-05 4.5 1.5 1.5 4.0625 1.9375 1.5625
In [56]:
Out[56]:
49 ms ± 143 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
12.6 ms ± 181 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
7.39 ms ± 58.9 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
12.5 ms ± 391 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
(1000, 1000)
In [57]:
Out[57]:
406 ms ± 1.24 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
68.9 ms ± 347 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
64.6 ms ± 181 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
64.3 ms ± 266 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
50.1 ms ± 355 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
37.9 ms ± 3.98 ms per loop (mean ± std. dev. of 7 runs, 100 loops each)
(1000, 8000)
In [58]:
Out[58]:
517 ms ± 6.51 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
88.9 ms ± 3.68 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
25.7 ms ± 61.7 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
26.2 ms ± 188 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
6.61 ms ± 346 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
(1000, 10000)
In [59]:
Out[59]:
71.6 ms ± 158 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
10.7 ms ± 127 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
4.51 ms ± 57.7 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
4.35 ms ± 36 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
613 µs ± 2.28 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
(1000, 1000)
In [60]:
Out[60]:
ma_window 2 3
ma_ewm False True
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 1.5 4.5 1.5 NaN NaN NaN
2018-01-03 2.5 3.5 2.5 2.2500 3.7500 2.2500
2018-01-04 3.5 2.5 2.5 3.1250 2.8750 2.1250
2018-01-05 4.5 1.5 1.5 4.0625 1.9375 1.5625
In [61]:
Out[61]:
MSTD
In [62]:
Out[62]:
a b c
2018-01-01 NaN NaN NaN
2018-01-02 0.5 0.5 0.5
2018-01-03 0.5 0.5 0.5
2018-01-04 0.5 0.5 0.5
2018-01-05 0.5 0.5 0.5
a b c
2018-01-01 NaN NaN NaN
2018-01-02 NaN NaN NaN
2018-01-03 0.963624 0.963624 0.963624
2018-01-04 1.177164 1.177164 0.686607
2018-01-05 1.345243 1.345243 0.881714
stddev_timeperiod 2
a b c
2018-01-01 NaN NaN NaN
2018-01-02 0.5 0.5 0.5
2018-01-03 0.5 0.5 0.5
2018-01-04 0.5 0.5 0.5
2018-01-05 0.5 0.5 0.5
mstd_window 2 3
mstd_ewm False True
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 0.5 0.5 0.5 NaN NaN NaN
2018-01-03 0.5 0.5 0.5 1.048809 1.048809 1.048809
2018-01-04 0.5 0.5 0.5 1.300183 1.300183 0.740013
2018-01-05 0.5 0.5 0.5 1.469294 1.469294 0.864326
In [63]:
Out[63]:
65.2 ms ± 486 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
13.7 ms ± 281 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
11.4 ms ± 669 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)
(1000, 1000)
In [64]:
Out[64]:
534 ms ± 1.43 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
80.3 ms ± 1.18 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
81.8 ms ± 973 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
(1000, 8000)
In [65]:
Out[65]:
98 ms ± 317 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
27.8 ms ± 44.6 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
(1000, 10000)
In [66]:
Out[66]:
mstd_window 2 3
mstd_ewm False True
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 0.5 0.5 0.5 NaN NaN NaN
2018-01-03 0.5 0.5 0.5 1.048809 1.048809 1.048809
2018-01-04 0.5 0.5 0.5 1.300183 1.300183 0.740013
2018-01-05 0.5 0.5 0.5 1.469294 1.469294 0.864326
In [67]:
Out[67]:
BBANDS
In [68]:
Out[68]:
2018-01-01 NaN
2018-01-02 2.5
2018-01-03 3.5
2018-01-04 4.5
2018-01-05 5.5
Name: (2, 2, a), dtype: float64
2018-01-01 NaN
2018-01-02 1.5
2018-01-03 2.5
2018-01-04 3.5
2018-01-05 4.5
Name: (2, 2, a), dtype: float64
2018-01-01 NaN
2018-01-02 0.5
2018-01-03 1.5
2018-01-04 2.5
2018-01-05 3.5
Name: (2, 2, a), dtype: float64
bbands_timeperiod 2
bbands_nbdevup 2
bbands_nbdevdn 2
a b c
2018-01-01 NaN NaN NaN
2018-01-02 2.5 5.5 2.5
2018-01-03 3.5 4.5 3.5
2018-01-04 4.5 3.5 3.5
2018-01-05 5.5 2.5 2.5
bbands_timeperiod 2
bbands_nbdevup 2
bbands_nbdevdn 2
a b c
2018-01-01 NaN NaN NaN
2018-01-02 1.5 4.5 1.5
2018-01-03 2.5 3.5 2.5
2018-01-04 3.5 2.5 2.5
2018-01-05 4.5 1.5 1.5
bbands_timeperiod 2
bbands_nbdevup 2
bbands_nbdevdn 2
a b c
2018-01-01 NaN NaN NaN
2018-01-02 0.5 3.5 0.5
2018-01-03 1.5 2.5 1.5
2018-01-04 2.5 1.5 1.5
2018-01-05 3.5 0.5 0.5
bb_window 2
bb_ewm False
bb_alpha 2
a b c
2018-01-01 NaN NaN NaN
2018-01-02 2.5 5.5 2.5
2018-01-03 3.5 4.5 3.5
2018-01-04 4.5 3.5 3.5
2018-01-05 5.5 2.5 2.5
bb_window 2
bb_ewm False
bb_alpha 2
a b c
2018-01-01 NaN NaN NaN
2018-01-02 1.5 4.5 1.5
2018-01-03 2.5 3.5 2.5
2018-01-04 3.5 2.5 2.5
2018-01-05 4.5 1.5 1.5
bb_window 2
bb_ewm False
bb_alpha 2
a b c
2018-01-01 NaN NaN NaN
2018-01-02 0.5 3.5 0.5
2018-01-03 1.5 2.5 1.5
2018-01-04 2.5 1.5 1.5
2018-01-05 3.5 0.5 0.5
In [69]:
Out[69]:
23 ms ± 367 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
21.6 ms ± 412 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)
(1000, 1000)
In [70]:
Out[70]:
192 ms ± 1.9 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
185 ms ± 1.42 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
(1000, 8000)
In [71]:
Out[71]:
215 ms ± 1.51 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
100 ms ± 1.3 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
(1000, 10000)
In [72]:
Out[72]:
bb_window 2
bb_ewm False
bb_alpha 1.0 2.0
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 1.5 4.5 1.5 1.5 4.5 1.5
2018-01-03 2.5 3.5 2.5 2.5 3.5 2.5
2018-01-04 3.5 2.5 2.5 3.5 2.5 2.5
2018-01-05 4.5 1.5 1.5 4.5 1.5 1.5
bb_window 2
bb_ewm False
bb_alpha 1.0 2.0
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 2.0 5.0 2.0 2.5 5.5 2.5
2018-01-03 3.0 4.0 3.0 3.5 4.5 3.5
2018-01-04 4.0 3.0 3.0 4.5 3.5 3.5
2018-01-05 5.0 2.0 2.0 5.5 2.5 2.5
bb_window 2
bb_ewm False
bb_alpha 1.0 2.0
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 1.0 4.0 1.0 0.5 3.5 0.5
2018-01-03 2.0 3.0 2.0 1.5 2.5 1.5
2018-01-04 3.0 2.0 2.0 2.5 1.5 1.5
2018-01-05 4.0 1.0 1.0 3.5 0.5 0.5
bb_window 2
bb_ewm False
bb_alpha 1.0 2.0
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 1.0 0.0 1.0 0.75 0.25 0.75
2018-01-03 1.0 0.0 1.0 0.75 0.25 0.75
2018-01-04 1.0 0.0 0.0 0.75 0.25 0.25
2018-01-05 1.0 0.0 0.0 0.75 0.25 0.25
bb_window 2
bb_ewm False
bb_alpha 1.0 2.0
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 0.666667 0.222222 0.666667 1.333333 0.444444 1.333333
2018-01-03 0.400000 0.285714 0.400000 0.800000 0.571429 0.800000
2018-01-04 0.285714 0.400000 0.400000 0.571429 0.800000 0.800000
2018-01-05 0.222222 0.666667 0.666667 0.444444 1.333333 1.333333
In [73]:
Out[73]:
bb_window 2
bb_ewm False
bb_alpha 1.0 2.0
a b c a b c
2018-01-01 False False False False False False
2018-01-02 False False False True True True
2018-01-03 False False False True True True
2018-01-04 False False False True True True
2018-01-05 False False False True True True
/Users/olegpolakow/Documents/SourceTree/vectorbt/vectorbt/base/accessors.py:667: RuntimeWarning:
invalid value encountered in less
/Users/olegpolakow/Documents/SourceTree/vectorbt/vectorbt/base/accessors.py:667: RuntimeWarning:
invalid value encountered in greater
In [74]:
Out[74]:
RSI
In [75]:
Out[75]:
2018-01-01 NaN
2018-01-02 100.0
2018-01-03 100.0
2018-01-04 100.0
2018-01-05 100.0
Name: (2, a), dtype: float64
2018-01-01 NaN
2018-01-02 0.0
2018-01-03 0.0
2018-01-04 0.0
2018-01-05 0.0
Name: (2, b), dtype: float64
2018-01-01 NaN
2018-01-02 100.000000
2018-01-03 100.000000
2018-01-04 42.857143
2018-01-05 20.000000
Name: (2, c), dtype: float64
rsi_timeperiod 2
a b c
2018-01-01 NaN NaN NaN
2018-01-02 NaN NaN NaN
2018-01-03 100.0 0.0 100.0
2018-01-04 100.0 0.0 50.0
2018-01-05 100.0 0.0 25.0
rsi_window 2
rsi_ewm True False
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 NaN NaN NaN NaN NaN NaN
2018-01-03 100.0 0.0 100.000000 100.0 0.0 100.0
2018-01-04 100.0 0.0 33.333333 100.0 0.0 50.0
2018-01-05 100.0 0.0 11.111111 100.0 0.0 0.0
In [76]:
Out[76]:
19.4 ms ± 149 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
27.6 ms ± 922 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)
(1000, 1000)
In [77]:
Out[77]:
128 ms ± 253 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
139 ms ± 244 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
(1000, 8000)
In [78]:
Out[78]:
160 ms ± 214 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
53.6 ms ± 137 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
(1000, 10000)
In [79]:
Out[79]:
rsi_window 2 3
rsi_ewm False True
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 NaN NaN NaN NaN NaN NaN
2018-01-03 100.0 0.0 100.0 NaN NaN NaN
2018-01-04 100.0 0.0 50.0 100.0 0.0 50.0
2018-01-05 100.0 0.0 0.0 100.0 0.0 25.0
In [80]:
Out[80]:
rsi_window 2 3
rsi_ewm False True
a b c a b c
2018-01-01 False False False False False False
2018-01-02 False False False False False False
2018-01-03 True False True False False False
2018-01-04 True False False True False False
2018-01-05 True False False True False False
/Users/olegpolakow/Documents/SourceTree/vectorbt/vectorbt/base/accessors.py:667: RuntimeWarning:
invalid value encountered in greater
In [81]:
Out[81]:
STOCH
In [82]:
Out[82]:
2018-01-01 NaN
2018-01-02 90.033913
2018-01-03 98.459370
2018-01-04 81.624981
2018-01-05 74.524237
Name: (2, 3, a), dtype: float64
2018-01-01 NaN
2018-01-02 NaN
2018-01-03 NaN
2018-01-04 90.039421
2018-01-05 84.869529
Name: (2, 3, a), dtype: float64
stochf_fastk_period 2
stochf_fastd_period 3
a b c
2018-01-01 NaN NaN NaN
2018-01-02 NaN NaN NaN
2018-01-03 NaN NaN NaN
2018-01-04 81.624981 3.297837 11.941605
2018-01-05 74.524237 3.900804 7.395659
stochf_fastk_period 2
stochf_fastd_period 3
a b c
2018-01-01 NaN NaN NaN
2018-01-02 NaN NaN NaN
2018-01-03 NaN NaN NaN
2018-01-04 90.039421 12.025053 64.904657
2018-01-05 84.869529 7.952381 35.000612
stoch_k_window 2
stoch_d_window 3
a b c
2018-01-01 NaN NaN NaN
2018-01-02 90.033913 16.118819 97.107794
2018-01-03 98.459370 16.658503 85.664573
2018-01-04 81.624981 3.297837 11.941605
2018-01-05 74.524237 3.900804 7.395659
stoch_k_window 2
stoch_d_window 3
a b c
2018-01-01 NaN NaN NaN
2018-01-02 NaN NaN NaN
2018-01-03 NaN NaN NaN
2018-01-04 90.039421 12.025053 64.904657
2018-01-05 84.869529 7.952381 35.000612
In [83]:
Out[83]:
29.4 ms ± 199 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
26.6 ms ± 607 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)
(1000, 1000)
In [84]:
Out[84]:
220 ms ± 234 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)
283 ms ± 5.5 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
(1000, 8000)
In [85]:
Out[85]:
264 ms ± 672 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)
132 ms ± 519 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
(1000, 10000)
In [86]:
Out[86]:
stoch_k_window 2 4 \
stoch_d_window 2 2
stoch_d_ewm False True
a b c a b
2018-01-01 NaN NaN NaN NaN NaN
2018-01-02 90.033913 16.118819 97.107794 NaN NaN
2018-01-03 98.459370 16.658503 85.664573 NaN NaN
2018-01-04 81.624981 3.297837 11.941605 91.582811 1.221173
2018-01-05 74.524237 3.900804 7.395659 88.208468 1.313450
stoch_k_window
stoch_d_window
stoch_d_ewm
c
2018-01-01 NaN
2018-01-02 NaN
2018-01-03 NaN
2018-01-04 47.019332
2018-01-05 4.190157
stoch_k_window 2 4 \
stoch_d_window 2 2
stoch_d_ewm False True
a b c a b
2018-01-01 NaN NaN NaN NaN NaN
2018-01-02 NaN NaN NaN NaN NaN
2018-01-03 94.246641 16.388661 91.386183 NaN NaN
2018-01-04 90.042175 9.978170 48.803089 NaN NaN
2018-01-05 78.074609 3.599321 9.668632 89.333249 1.282691
stoch_k_window
stoch_d_window
stoch_d_ewm
c
2018-01-01 NaN
2018-01-02 NaN
2018-01-03 NaN
2018-01-04 NaN
2018-01-05 18.466549
In [87]:
Out[87]:
MACD
In [88]:
Out[88]:
2018-01-01 NaN
2018-01-02 NaN
2018-01-03 0.305556
2018-01-04 0.393519
2018-01-05 0.443673
Name: (3, 2, 2, a), dtype: float64
2018-01-01 NaN
2018-01-02 NaN
2018-01-03 NaN
2018-01-04 0.364198
2018-01-05 0.417181
Name: (3, 2, 2, a), dtype: float64
2018-01-01 NaN
2018-01-02 NaN
2018-01-03 NaN
2018-01-04 0.029321
2018-01-05 0.026492
Name: (3, 2, 2, a), dtype: float64
macd_fastperiod 2
macd_slowperiod 3
macd_signalperiod 2
a b c
2018-01-01 NaN NaN NaN
2018-01-02 NaN NaN NaN
2018-01-03 NaN NaN NaN
2018-01-04 0.5 -0.5 0.166667
2018-01-05 0.5 -0.5 -0.111111
macd_fastperiod 2
macd_slowperiod 3
macd_signalperiod 2
a b c
2018-01-01 NaN NaN NaN
2018-01-02 NaN NaN NaN
2018-01-03 NaN NaN NaN
2018-01-04 0.5 -0.5 0.333333
2018-01-05 0.5 -0.5 0.037037
macd_fastperiod 2
macd_slowperiod 3
macd_signalperiod 2
a b c
2018-01-01 NaN NaN NaN
2018-01-02 NaN NaN NaN
2018-01-03 NaN NaN NaN
2018-01-04 0.0 0.0 -0.166667
2018-01-05 0.0 0.0 -0.148148
macd_fast_window 2
macd_slow_window 3
macd_signal_window 2
macd_macd_ewm True
macd_signal_ewm True
a b c
2018-01-01 NaN NaN NaN
2018-01-02 NaN NaN NaN
2018-01-03 0.305556 -0.305556 0.305556
2018-01-04 0.393519 -0.393519 0.060185
2018-01-05 0.443673 -0.443673 -0.167438
macd_fast_window 2
macd_slow_window 3
macd_signal_window 2
macd_macd_ewm True
macd_signal_ewm True
a b c
2018-01-01 NaN NaN NaN
2018-01-02 NaN NaN NaN
2018-01-03 NaN NaN NaN
2018-01-04 0.364198 -0.364198 0.141975
2018-01-05 0.417181 -0.417181 -0.064300
macd_fast_window 2
macd_slow_window 3
macd_signal_window 2
macd_macd_ewm True
macd_signal_ewm True
a b c
2018-01-01 NaN NaN NaN
2018-01-02 NaN NaN NaN
2018-01-03 NaN NaN NaN
2018-01-04 0.029321 -0.029321 -0.081790
2018-01-05 0.026492 -0.026492 -0.103138
In [89]:
Out[89]:
28.4 ms ± 571 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
23.1 ms ± 969 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)
(1000, 1000)
In [90]:
Out[90]:
217 ms ± 2.93 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
145 ms ± 364 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
(1000, 8000)
In [91]:
Out[91]:
267 ms ± 1.33 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
134 ms ± 6.54 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
(1000, 10000)
In [92]:
Out[92]:
macd_fast_window 2
macd_slow_window 3
macd_signal_window 2 3
macd_macd_ewm True True
macd_signal_ewm True True
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 NaN NaN NaN NaN NaN NaN
2018-01-03 0.305556 -0.305556 0.305556 0.305556 -0.305556 0.305556
2018-01-04 0.393519 -0.393519 0.060185 0.393519 -0.393519 0.060185
2018-01-05 0.443673 -0.443673 -0.167438 0.443673 -0.443673 -0.167438
macd_fast_window 2
macd_slow_window 3
macd_signal_window 2 3
macd_macd_ewm True True
macd_signal_ewm True True
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 NaN NaN NaN NaN NaN NaN
2018-01-03 NaN NaN NaN NaN NaN NaN
2018-01-04 0.364198 -0.364198 0.141975 NaN NaN NaN
2018-01-05 0.417181 -0.417181 -0.064300 0.396605 -0.396605 0.007716
macd_fast_window 2
macd_slow_window 3
macd_signal_window 2 3
macd_macd_ewm True True
macd_signal_ewm True True
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 NaN NaN NaN NaN NaN NaN
2018-01-03 NaN NaN NaN NaN NaN NaN
2018-01-04 0.029321 -0.029321 -0.081790 NaN NaN NaN
2018-01-05 0.026492 -0.026492 -0.103138 0.047068 -0.047068 -0.175154
In [93]:
Out[93]:
/Users/olegpolakow/Documents/SourceTree/vectorbt/vectorbt/indicators/basic.py:666: RuntimeWarning:
invalid value encountered in greater
/Users/olegpolakow/Documents/SourceTree/vectorbt/vectorbt/indicators/basic.py:667: RuntimeWarning:
invalid value encountered in greater
/Users/olegpolakow/Documents/SourceTree/vectorbt/vectorbt/indicators/basic.py:667: RuntimeWarning:
invalid value encountered in less_equal
/Users/olegpolakow/Documents/SourceTree/vectorbt/vectorbt/indicators/basic.py:668: RuntimeWarning:
invalid value encountered in less
/Users/olegpolakow/Documents/SourceTree/vectorbt/vectorbt/indicators/basic.py:669: RuntimeWarning:
invalid value encountered in less
/Users/olegpolakow/Documents/SourceTree/vectorbt/vectorbt/indicators/basic.py:669: RuntimeWarning:
invalid value encountered in greater_equal
ATR
In [94]:
Out[94]:
2018-01-01 0.000000
2018-01-02 0.619423
2018-01-03 0.818424
2018-01-04 1.050826
2018-01-05 1.233524
Name: (2, a), dtype: float64
2018-01-01 0.000000
2018-01-02 1.053372
2018-01-03 1.132864
2018-01-04 1.087915
2018-01-05 1.064337
Name: (2, b), dtype: float64
2018-01-01 0.000000
2018-01-02 0.575961
2018-01-03 0.878148
2018-01-04 1.019107
2018-01-05 1.057231
Name: (2, c), dtype: float64
atr_timeperiod 2
a b c
2018-01-01 NaN NaN NaN
2018-01-02 NaN NaN NaN
2018-01-03 1.068578 1.247932 1.105767
2018-01-04 1.175904 1.145449 1.132916
2018-01-05 1.296063 1.093104 1.114135
atr_window 2 3
atr_ewm False True
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 0.619423 1.053372 0.575961 NaN NaN NaN
2018-01-03 1.068578 1.247932 1.105767 0.818424 1.132864 0.878148
2018-01-04 1.150327 1.127661 1.170200 1.050826 1.087915 1.019107
2018-01-05 1.349725 1.041862 1.127710 1.233524 1.064337 1.057231
In [95]:
Out[95]:
22.5 ms ± 470 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
33.5 ms ± 340 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)
(1000, 1000)
In [96]:
Out[96]:
158 ms ± 695 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
110 ms ± 1.14 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
(1000, 8000)
In [97]:
Out[97]:
197 ms ± 1.9 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
67.5 ms ± 1.89 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
(1000, 10000)
In [98]:
Out[98]:
atr_window 2 3
atr_ewm False True
a b c a b c
2018-01-01 0.119114 0.823236 0.120724 0.119114 0.823236 0.120724
2018-01-02 1.119732 1.283508 1.031199 1.119732 1.283508 1.031199
2018-01-03 1.017425 1.212357 1.180335 1.017425 1.212357 1.180335
2018-01-04 1.283229 1.042965 1.160065 1.283229 1.042965 1.160065
2018-01-05 1.416221 1.040759 1.095355 1.416221 1.040759 1.095355
atr_window 2 3
atr_ewm False True
a b c a b c
2018-01-01 NaN NaN NaN NaN NaN NaN
2018-01-02 0.619423 1.053372 0.575961 NaN NaN NaN
2018-01-03 1.068578 1.247932 1.105767 0.818424 1.132864 0.878148
2018-01-04 1.150327 1.127661 1.170200 1.050826 1.087915 1.019107
2018-01-05 1.349725 1.041862 1.127710 1.233524 1.064337 1.057231
In [99]:
Out[99]:
OBV
In [100]:
Out[100]:
2018-01-01 3.0
2018-01-02 12.0
2018-01-03 16.0
2018-01-04 25.0
2018-01-05 29.0
Name: a, dtype: float64
2018-01-01 7.0
2018-01-02 0.0
2018-01-03 -9.0
2018-01-04 -14.0
2018-01-05 -21.0
Name: b, dtype: float64
2018-01-01 5.0
2018-01-02 7.0
2018-01-03 9.0
2018-01-04 7.0
2018-01-05 -1.0
Name: c, dtype: float64
a b c
2018-01-01 3.0 7.0 5.0
2018-01-02 12.0 0.0 7.0
2018-01-03 16.0 -9.0 9.0
2018-01-04 25.0 -14.0 7.0
2018-01-05 29.0 -21.0 -1.0
a b c
2018-01-01 3.0 7.0 5.0
2018-01-02 12.0 0.0 7.0
2018-01-03 16.0 -9.0 9.0
2018-01-04 25.0 -14.0 7.0
2018-01-05 29.0 -21.0 -1.0
In [101]:
Out[101]:
19.3 ms ± 549 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
17.1 ms ± 1.1 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
(1000, 1000)
In [102]:
Out[102]:
a b c
2018-01-01 3.0 7.0 5.0
2018-01-02 12.0 0.0 7.0
2018-01-03 16.0 -9.0 9.0
2018-01-04 25.0 -14.0 7.0
2018-01-05 29.0 -21.0 -1.0
In [103]:
Out[103]:
obv_above 0 5
a b c a b c
2018-01-01 True True True False True False
2018-01-02 True False True True False True
2018-01-03 True False True True False True
2018-01-04 True False True True False True
2018-01-05 True False False True False False
In [104]:
Out[104]:
In [ ]: