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/

    Trading Statistics

    Indicators/Strategies/Analyzers
    2
    2
    120
    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.
    • B
      Berthold last edited by

      Is there any proper statistics about backtesting results? Of course I have seen all the classes provided under backtrader.analyzers such as TradeAnalyzer() etc. Does any body know a class/function to print results of the TradeAnalyzer() in a pretty format or do I have to do the formatting of the ordered dict by myself?

      1 Reply Last reply Reply Quote 0
      • run-out
        run-out last edited by run-out

        Have a look in my repo here at line 204. This saves the analyzer to a database and formats it into a spreadsheet. You also need the previous function to take apart the dictionary. (unnest_trade_analysis)

        Not exactly what you are looking for but perhaps will give you enough to get you going.

        RunBacktest.com

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors