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/

    Multi-asset strategy plotting

    General Discussion
    1
    1
    31
    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.
    • C
      csibi.levente14 last edited by

      I have seen this article providing a nice implementation of a multi-asset strategy evaluation and plotting. I'm wondering however, whether it's possible to obtain either of the following:

      1. a chart with a single line showing the change in value for the entire portfolio (all assets combined);
      2. a list of all trades in order of time, executed on any of the assets in the portfolio?

      A concrete example of what I'm trying to achieve: say we have a strategy and 3 assets (portfolio) to evaluate the strategy on. Using the approach in the article linked above, we could easily obtain a graph showing, for instance, that asset 1 has increased from $10,000 to $11,000, asset 2 has incrased from $10,000 to $10,500, and asset 3 has decreased from $10,000 to $9,000. I would like to create a portfolio-level graph showing that the total value of the portfolio has increased from $10,000 to $10,500.

      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(); }); }