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
-
Is Fractal still available?
-
It is in indicator reference section in the docs. Did you have problems calling it?
-
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'
-
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