https://github.com/bukosabino/ta
Revision 8d7f85ff084fd216f96ea59673e9aa21e62e56c7 authored by Alex Gorbachev on 25 February 2021, 05:16:52 UTC, committed by GitHub on 25 February 2021, 05:16:52 UTC
There are times when for the whole period of Bollinger Band no price changes happen. Thus, top/bottom/mid and close are all the same. In this case pband calculation cause div by zero. This change would set it to NaN in these cases. Indeed, there is no good default - the price "touches" all three lines at the same time.
1 parent 84ced26
History
Tip revision: 8d7f85ff084fd216f96ea59673e9aa21e62e56c7 authored by Alex Gorbachev on 25 February 2021, 05:16:52 UTC
Handle division by zero in Bollinger Band pband
Tip revision: 8d7f85f
File Mode Size
.circleci
.github
docs
examples_to_use
static
ta
test
.coveragerc -rw-r--r-- 32 bytes
.coveralls.yml -rw-r--r-- 46 bytes
.gitignore -rw-r--r-- 1.2 KB
.prospector.yaml -rw-r--r-- 262 bytes
LICENSE -rw-r--r-- 1.1 KB
MANIFEST -rw-r--r-- 173 bytes
Makefile -rw-r--r-- 292 bytes
README.md -rw-r--r-- 6.3 KB
RELEASE.md -rw-r--r-- 2.4 KB
pylintrc -rw-r--r-- 10.9 KB
requirements-core.txt -rw-r--r-- 29 bytes
requirements-coverage.txt -rw-r--r-- 80 bytes
requirements-doc.txt -rw-r--r-- 70 bytes
requirements-play.txt -rw-r--r-- 75 bytes
requirements-test.txt -rw-r--r-- 94 bytes
requirements.txt -rw-r--r-- 78 bytes
setup.cfg -rw-r--r-- 158 bytes
setup.py -rw-r--r-- 1.3 KB

README.md

back to top