Backtrader Community

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

    andy

    @andy

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

    andy Unfollow Follow

    Best posts made by andy

    • RE: How to speed up almost 100 times when add data and preload data?

      @tianjixuetu

      hi,I have not change the strategy. I have solved the problem by add these codes,thanks again!

                   with open("data.pkl","rb") as f:
                      self.datas = pickle.load(f)
                  for data in self.datas:
                      self.datasbyname[data._name] = data
      
      posted in General Discussion
      A
      andy

    Latest posts made by andy

    • RE: How to speed up almost 100 times when add data and preload data?

      @tianjixuetu

      hi,I have not change the strategy. I have solved the problem by add these codes,thanks again!

                   with open("data.pkl","rb") as f:
                      self.datas = pickle.load(f)
                  for data in self.datas:
                      self.datasbyname[data._name] = data
      
      posted in General Discussion
      A
      andy
    • RE: How to speed up almost 100 times when add data and preload data?

      @tianjixuetu 6a757d83-675d-4df0-ac91-c935f162d8c7-image.png
      when i use get databyname() to order , this error happened , can you help me ? thanks!

      posted in General Discussion
      A
      andy
    • How to speed up when add data and preload data?

      when add thousands of stocks it will take hours to add and preload data, how can speed it up ? can we save the datas use pickle or other method ,next time when we use , just load it up.

      posted in General Code/Help
      A
      andy