For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Strategy not exists
-
I am installing the backtrader by using 'pip install' command
AttributeError: module 'backtrader' has no attribute 'SignalStrategy'
and my python is 3.6.
-
Can you copy and paste the whole error message into your message using surrounded by three backquotes? Thanks
-
You may also check that backtrader is actually imported from the correct location (try to print bt.file)
-
@vladisld said in Strategy not exists:
try to print bt.file
sorry, formatting error - it should be:
print(bt.__file__)
-
Posting the solution here for whoever faces the same problem and ends up on this page from Google just like me:
-> Don't name your Python file "backtrader.py"