For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
ZeroDivision Error CMF Moneyflow Indicator
-
Hello,
I was trying this function CMF
https://backtest-rookies.com/2018/06/29/backtrader-chaikin-money-flow-indicator/For the default dataset it works. Now I tried my dataset. Most volume Values are close to zero and I get this error:
line 772, in _once_op dst[i] = op(srca[i], srcb[i]) ZeroDivisionError: float division by zero
Datetime,High,Low,Open,Close,Volume 2019-03-01 20:00:00,11618.71,11618.21,11618.21,11618.41,0.00251199997728691 2019-03-01 20:00:01,11619.21,11618.71,11618.71,11618.91,0.00246599997626618
Does anyone know how to resolve this? Thanks
-
You need to ask on backtest rookies website since they developed the indicator.