Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    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

    General Code/Help
    2
    2
    53
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zer02 last edited by

      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

      1 Reply Last reply Reply Quote 1
      • A
        ab_trader last edited by

        You need to ask on backtest rookies website since they developed the indicator.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
        $(document).ready(function () { app.coldLoad(); }); }