qstrader icon indicating copy to clipboard operation
qstrader copied to clipboard

Problem when backtesting buy and hold strategy

Open chillliang opened this issue 7 years ago • 0 comments

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!

chillliang avatar Aug 03 '17 22:08 chillliang