Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Evgeniy
    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 2
    • Posts 3
    • Best 0
    • Groups 0

    Evgeniy

    @Evgeniy

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

    Evgeniy Unfollow Follow

    Latest posts made by Evgeniy

    • RE: analyzers erro: AttributeError: 'list' object has no attribute 'analyzers'

      @vladisld Thanks a lot!

      posted in General Code/Help
      Evgeniy
      Evgeniy
    • analyzers erro: AttributeError: 'list' object has no attribute 'analyzers'

      Hello! When studying this library, I ran into a problem.

      I do everything on the lesson of trade analysis. But I get an error.

      My cod:

      cerebro = bt.Cerebro(stdstats=False)
          data = PandasData(dataname=df, timeframe=bt.TimeFrame.Minutes)
          cerebro.addanalyzer(TradeAnalyzer, _name="ta")
      
          cerebro.adddata(data)
          cerebro.optstrategy(Strategy)
      
          thestrats = cerebro.run()
          strat = thestrats[0]
      
          print(strat.analyzers.ta.get_analysis())
      

      error:

      print(strat.analyzers.ta.get_analysis())
      AttributeError: 'list' object has no attribute 'analyzers'
      

      What is the problem?

      posted in General Code/Help
      Evgeniy
      Evgeniy
    • How to find out the closing price an hour ago?

      I can not find in WiKi how can I find out the closing price some time ago.

      posted in General Code/Help
      Evgeniy
      Evgeniy