You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
443 B
17 lines
443 B
import pandas as pd
|
|
import talib.abstract as ta
|
|
|
|
|
|
def test_talib_bollingerbands_near_zero_values():
|
|
inputs = pd.DataFrame(
|
|
[
|
|
{"close": 0.000010},
|
|
{"close": 0.000011},
|
|
{"close": 0.000012},
|
|
{"close": 0.000013},
|
|
{"close": 0.000014},
|
|
]
|
|
)
|
|
bollinger = ta.BBANDS(inputs, matype=0, timeperiod=2)
|
|
assert bollinger["upperband"][3] != bollinger["middleband"][3]
|