科技美学

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

1. Error Message

multiprocessing.pool.MaybeEncodingError: Error sending result: '[<backtrader.cerebro.OptReturn object at 0x000002DF30503CF8>]'. Reason: 'PicklingError("Can't pickle <class 'backtrader.metabase.AutoInfoClass_7b18485c665643a9b59eb66411db33ad_2823.HK'>: attribute lookup AutoInfoClass_7b18485c665643a9b59eb66411db33ad_2823.HK on backtrader.metabase failed",)'

 

2. stdstats

cerebro = bt.Cerebro(stdstats=False)

  按官方文档说,当加入其他Observers,便要stdstats=False,否则会引致错误

 

3. Official doc

https://www.backtrader.com/docu/observers-and-statistics/observers-and-statistics/

 

posted on 2022-11-29 14:35  chankuang  阅读(242)  评论(0编辑  收藏  举报