Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Error in generating create_full_tear_sheet (pyfolio)

    Indicators/Strategies/Analyzers
    3
    7
    179
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      KK last edited by

      Hi, unable to solve the below issue, appreciated if anyone can help on this.

      DateFeed from Yahoo

      data = yf.download(s, start = start_date, end = end_date, adjusted = True, index_col = 'Date', parse_dates=['Date'])
      data.index = pd.to_datetime(data.index, format='%Y-%m-%dT%,H:%M:%S.%fZ')
      df = bt.feeds.PandasData(dataname=data)

      while executing pf.create_full_tear_sheet(returns, positions, transactions), it generated basic ratios of backtest and also this error message of
      902c8411-c1e2-4f11-aa29-f1559f4050aa-image.png

      1 Reply Last reply Reply Quote 0
      • B
        balibou last edited by

        @KK as far as I know pyfolio is not supported anymore with backtrader (there is a topic about quantstats as an alternative)

        1 Reply Last reply Reply Quote 0
        • K
          KK last edited by

          @balibou said in Error in generating create_full_tear_sheet (pyfolio):

          quantstats

          @balibou thanks for the reply, any ref doc/articles on on integration with backtrader?

          1 Reply Last reply Reply Quote 0
          • B
            balibou last edited by

            @KK here 🙂

            K 1 Reply Last reply Reply Quote 0
            • darkknight9394
              darkknight9394 last edited by

              thanks, @KK @balibou, I had the same problem. Let's give quantstats a try :)

              1 Reply Last reply Reply Quote 0
              • K
                KK @balibou last edited by

                @balibou Thanks a lot... will give a try

                1 Reply Last reply Reply Quote 0
                • B
                  balibou last edited by

                  @darkknight9394 @KK I tried to make it work here

                  html full report rendering is not working for the moment, I need to work on it ... if you find a solution in the mid time ... 😎

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
                  $(document).ready(function () { app.coldLoad(); }); }