Backtrader Community

    • 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/

    Alias naming of datafeed

    General Discussion
    2
    3
    229
    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.
    • darkknight9394
      darkknight9394 last edited by

      Dear all, I'm working on an application for multiple data streams. I've read the document for multiple data example and found the self.data0 is a conventional way to name data streams. Just wonder if there's an alternative say, for example if I've a datafeed from AAPL, XLF, XLE... then instead of self.data0 for AAPL self.data1 for XLF, self.data2 for XLE, can I refer them as self.data['AAPL'] etc.

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

        Docs - Strategy

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

          Thanks a lot for the heads up :)

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