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/

    Need help with multiple datafeeds (CSV)

    General Code/Help
    2
    2
    997
    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.
    • J
      Jackk last edited by

      I have a ton of fundamental data and it spans across a dozen different CSV files. Each includes 4000+ tickers with 10k, 10q, ratios ,etc.. that spans back 15 years. Each ticker also has it's own files that include daily OHLC data, and I have another that is just conjoined closes for all tickers.

      I know I can extend a datafeed, but is it possible to do that with multiple? My strategy is based around a mix of TA and fundamentals. If someone could link me to an example of such thing in use, that would be great, it would also be much easier for me to understand.

      Thanks

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

        I know I can extend a datafeed, but is it possible to do that with multiple?

        If you know how to extend (subclass) a data feed, you can in fact create as many subclasses (extension) of a data feed as needed to support your custom lines. The limits are set by your available RAM (whether Python has a limit on the actual number of user defined classes ... unknown) and CPU time.

        The same concept from the Docs - Extending a Datafeed has to simply be repeated n times for as many different extensions as you need.

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