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/

    Portfolio

    General Discussion
    3
    4
    2239
    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.
    • H
      hobart-liu last edited by hobart-liu

      Say if I have a pool of 300-500 stocks, I would like to sort out top 10 stocks by ranking algo, and compute the portfolio and then test win/loss. Do we have example of this?

      1 Reply Last reply Reply Quote 0
      • T
        tracy last edited by

        @hobart-liu Guess I have asked something like this very recently - have a look my issue

        Following should help you as well:
        multi-example
        automated-bt-run

        I'm fairy new to backtrader - so there could be better answers for your question.

        1 Reply Last reply Reply Quote 1
        • B
          backtrader administrators last edited by

          Same as ranking 2 stocks. The number is not relevant.

          1 Reply Last reply Reply Quote 1
          • H
            hobart-liu last edited by

            Many thanks @tracy , @backtrader

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