Closed eurekar closed 7 years ago
AttributeError Traceback (most recent call last)
The code is correct (also the file https://github.com/robcarver17/pysystemtrade/blob/master/examples/introduction/simplesystem.py) but the documentation is wrong
my_config.forecast_weights=dict(ewmac8=0.5, ewmac32=0.5)
my_config.forecast_div_multiplier=1.1
my_config.use_forecast_weight_estimates = False ## new line that was missing in the doc
my_system=System([fcs, empty_rules, combiner], data, my_config)
my_system.combForecast.get_combined_forecast("EDOLLAR").tail(5)
Thanks. It worked after I added two lines.
my_config.use_forecast_weight_estimates = False
combiner = ForecastCombine()
I post the code below. It is the same appeared in the introduction of pysystemtrade.