Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Quique MP
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    Quique MP

    @Quique MP

    0
    Reputation
    3
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Quique MP Unfollow Follow

    Latest posts made by Quique MP

    • AttributeError: '_thread._local' object has no attribute 'minperiods'

      Hi all

      I am trying to use the rocr function within a threading class and I obtain the following error:

      self.ROC_r_3 = rocr(self.Close_df, period=3).df['rocr'].values
      File "/Users/quiquemorgades/binance_env3/lib/python3.7/site-packages/btalib/indicator.py", line 110, in call
      self.outputs = self.o = meta.outputs._from_class(cls)
      File "/Users/quiquemorgades/binance_env3/lib/python3.7/site-packages/btalib/meta/outputs.py", line 30, in _from_class
      return _CLSOUTPUTScls # defvals params in dict format
      File "/Users/quiquemorgades/binance_env3/lib/python3.7/site-packages/btalib/meta/lines.py", line 630, in init
      metadata.minperiods[self] = [1] * len(self)
      AttributeError: '_thread._local' object has no attribute 'minperiods'

      I don't understand the error as it has worked previously fine, anyone can give me some help?
      Thanks

      posted in bta-lib
      Quique MP
      Quique MP