mhallsmoore / qstrader

QuantStart.com - QSTrader backtesting simulation engine.
https://www.quantstart.com/qstrader/
MIT License
2.93k stars 855 forks source link

HMM backtest problem (AttributeError: 'YahooDailyCsvBarPriceHandler') #282

Closed ishest closed 4 years ago

ishest commented 5 years ago

Hi, when I run regime_hmm_backtest I get the message below:

"... self.config.CSV_DATA_DIR, self.events_queue, AttributeError: 'YahooDailyCsvBarPriceHandler' object has no attribute 'CSV_DATA_DIR'"

system: windows 10 python 3.6

AgileQuant commented 4 years ago

support@quantstart.com I get some problem with AttributeError: 'YahooDailyCsvBarPriceHandler' object has no attribute 'CSV_DATA_DIR'"

onahkenneth commented 4 years ago

@ishest @rudydreamer Ensure to you set CSV_DATA_DIR environment variable in your .bash_profile, .bashrc or .profile files if your are using Linux See screenshot

Screenshot_2020-01-10_at_20_27_45
mhallsmoore commented 4 years ago

Thanks @onahkenneth for the suggestion.

@ishest and @rudydreamer - Did this fix your issue?

ishest commented 4 years ago

Thanks @onahkenneth for the suggestion.

@ishest and @rudydreamer - Did this fix your issue?

yep! Thanks!

mhallsmoore commented 4 years ago

Great!

Regards,

Mike.