Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staticmethod objects -> ReinforcedAverageStrategy / ReinforcedQuickie / ReinforcedSmoothScalp #28

Closed
Prossi79 opened this issue Apr 15, 2019 · 1 comment · Fixed by #29

Comments

@Prossi79
Copy link

Prossi79 commented Apr 15, 2019

Just tried to backtest following strategies out of teh repo (no mods):
ReinforcedAverageStrategy / ReinforcedQuickie / ReinforcedSmoothScalp

Got the same error for all of them:

Traceback (most recent call last):
  File "./freqtrade/main.py", line 92, in <module>
    main(sys.argv[1:])
  File "./freqtrade/main.py", line 35, in main
    args.func(args)
  File "/root/freqtrade/freqtrade/optimize/backtesting.py", line 500, in start
    backtesting = Backtesting(config)
  File "/root/freqtrade/freqtrade/optimize/backtesting.py", line 88, in __init__
    self.strategylist.append(StrategyResolver(self.config).strategy)
  File "/root/freqtrade/freqtrade/resolvers/strategy_resolver.py", line 40, in __init__
    extra_dir=config.get('strategy_path'))
  File "/root/freqtrade/freqtrade/resolvers/strategy_resolver.py", line 161, in _load_strategy
    return import_strategy(strategy, config=config)
  File "/root/freqtrade/freqtrade/strategy/__init__.py", line 28, in import_strategy
    attr = deepcopy(comb)
  File "/root/miniconda3/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/root/miniconda3/lib/python3.7/copy.py", line 240, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/root/miniconda3/lib/python3.7/copy.py", line 169, in deepcopy
    rv = reductor(4)
TypeError: can't pickle staticmethod objects
@xmatthias
Copy link
Member

I added a fix for that since it's just a python / pickle specific problem - should be merged soonish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants