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/

    ZeroDivisionError on using ADX indicator

    Indicators/Strategies/Analyzers
    2
    2
    92
    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.
    • Y
      yashagw last edited by

      Hey,
      I am getting ZeroDivisionError when I am trying to use
      AverageDirectionalMovementIndex in my code.
      I tried searching on the forum but still, there is no answer on how to tackle this issue.
      Like in the RSI indicator there is a safediv param to handle this issue, but why not in the ADX indicator.
      Thanks

      run-out 1 Reply Last reply Reply Quote 0
      • run-out
        run-out @yashagw last edited by

        @yashagw It's very hard to help you with the limited question you ask. Please include your code and a sample of your data if you can. Thanks.

        RunBacktest.com

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors