AnonymousSpottedToad/securityPatternsRecovery / codebase /repos /python /freqtrade_freqtrade /tests /test_talib.py
| 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] | |
Xet Storage Details
- Size:
- 443 Bytes
- Xet hash:
- f8147fcbe253312f5f94613ca8e7814b22f6fbb11da80ba939336ea77bf0e0ba
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.