@sfkiwi I also use lots of indicators in my framework, hence modifying all of them for "zero division protection" is inefficient. Then I found a approach called "monkey-patching" (https://stackoverflow.com/questions/10429547/how-to-change-a-function-in-existing-3rd-party-library-in-python), by which we can directly and dynamically modify the error-causing line in "linebuffer.py" module. By this way, we only need to do the modification once, instead of for each indicator.
Posts made by HONGYI ZHENG
RE: DivideZeroError on some indicators