qstrader
qstrader copied to clipboard
Problem when backtesting buy and hold strategy
Hi, I'm relatively new to Python (and QSTrader) so please bear with me. I've installed Anaconda and followed the instructions which worked perfectly until the very last step for the actual backtesting:
python buy_and_hold_backtest.py
The error is:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/qstrader/event.py", line 82, in __init__ self.type = EventType.BAR AttributeError: 'Enum' object has no attribute 'BAR'
Can anyone please help me with this? Much appreciated!