Backtrader Community

    • 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/

    Fractal

    Indicators/Strategies/Analyzers
    3
    4
    1637
    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.
    • H
      hobart-liu last edited by hobart-liu

      Is Fractal still available?

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

        It is in indicator reference section in the docs. Did you have problems calling it?

        • If my answer helped, hit reputation up arrow at lower right corner of the post.
        • Python Debugging With Pdb
        • New to python and bt - check this out
        1 Reply Last reply Reply Quote 0
        • H
          hobart-liu last edited by

          Yes, I can find it in the document, but when I try to invoke this indicator (by following code)

          class TestStrategy(bt.Strategy):
              def __init__(self):
                  self.ind = bt.indicators. Fractal()
              def next(self):
                  pass
          

          I got error message as below:

          AttributeError: module 'backtrader.indicators' has no attribute 'Fractal'
          
          1 Reply Last reply Reply Quote 0
          • P
            Paska Houso last edited by

            https://community.backtrader.com/topic/413/release-1-9-48-116

            • PR #307 Fractal study added to studies/contributions

            It's an study, hence: bt.studies.Fractal

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