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/

    Referencing all lines on a given day

    General Code/Help
    2
    2
    34
    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.
    • Christoffer Fløe Jensen
      Christoffer Fløe Jensen last edited by

      Hi,

      I have utilized the pandasdata class to pass a pandas dataframe with approximately 100 columns to the BT environment.

      Is there some way to replicate the df.iloc[0] syntax with lines?

      I have made use of the indexing with respect to the lines, but this has always been done on one line at a time.
      i.e. self.data.lines.close[0] or something like that.

      What I am looking for is something like: self.data.all_lines[0]

      Thanks in advance,
      Floee

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

        AFAIK, there is no such functionality right now.

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