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/

    Choppiness Index (CHOP)

    Indicators/Strategies/Analyzers
    2
    3
    1795
    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.
    • C
      cgi1 last edited by

      Has someone worked on the Choppiness Index (CHOP) indicator yet?

      From tradingview:

      The Choppiness Index (CHOP) is an indicator designed to determine if the market is choppy (trading sideways) or not choppy (trading within a trend in either direction).

      Implementing the formula should be not very difficult:

      100 * LOG10( SUM(ATR(1), n) / ( MaxHi(n) - MinLo(n) ) ) / LOG10(n)
      n = User defined period length.
      LOG10(n) = base-10 LOG of n
      ATR(1) = Average True Range (Period of 1)
      SUM(ATR(1), n) = Sum of the Average True Range over past n bars
      MaxHi(n) = The highest high over past n bars

      1 Reply Last reply Reply Quote 0
      • C
        cgi1 last edited by

        Wrote a first version: https://github.com/mementum/backtrader/pull/330

        1 Reply Last reply Reply Quote 0
        • B
          backtrader administrators last edited by

          Will be looked into ...

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