Navigation

    Backtrader Community

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

    winplusx

    @winplusx

    0
    Reputation
    104
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    winplusx Unfollow Follow

    Latest posts made by winplusx

    • How to make a Line using highest close data of the past N days?

      Like max(close,n)

      posted in General Code/Help
      W
      winplusx
    • Got an exception when using some analyzers

      When I use cerebro.optstrategy(...) and cerebro.run(), I got an exception if using some analyzers( PeriodStats, SharpeRatio) :

      File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\threading.py", line 917, in _bootstrap_inner
      self.run()
      File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\threading.py", line 865, in run
      self._target(*self._args, **self._kwargs)
      File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\multiprocessing\pool.py", line 470, in _handle_results
      task = get()
      File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\multiprocessing\connection.py", line 251, in recv
      return _ForkingPickler.loads(buf.getbuffer())
      AttributeError: Can't get attribute 'Lines_LineSeries_LineIterator_DataAccessor_ObserverBase_Observer_DataTrades_5991202d0983450997d03f799478a7ad' on <module 'backtrader.lineseries' from 'c:\users\kaima\source\repos\PythonHello\PythonHello\env37\lib\site-packages\backtrader\lineseries.py'>

      posted in General Code/Help
      W
      winplusx