mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 20:23:57 +00:00
4238ee090d
after deepcode.ai suggestions
17 lines
416 B
Python
17 lines
416 B
Python
|
|
|
|
import talib.abstract as ta
|
|
import pandas as pd
|
|
|
|
|
|
def test_talib_bollingerbands_near_zero_values():
|
|
inputs = pd.DataFrame([
|
|
{'close': 0.00000010},
|
|
{'close': 0.00000011},
|
|
{'close': 0.00000012},
|
|
{'close': 0.00000013},
|
|
{'close': 0.00000014}
|
|
])
|
|
bollinger = ta.BBANDS(inputs, matype=0, timeperiod=2)
|
|
assert bollinger['upperband'][3] != bollinger['middleband'][3]
|