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/

    How to add datafeed with text field?

    General Discussion
    2
    2
    889
    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.
    • S
      spg_trader last edited by

      Hello, I am trying to add datafeed with text field. For example a csv file with columns with delivery month info of future contracts, or names of calendar spread. I know I can convert everything into int/float before loading, but want to see if there is an easy way to incorporate text field in datafeed directly. I tried some simple modifications, but it seems like the linebuffer object requires float data. Haven't figured out how to modify it yet (or if possible at all).
      Checked some older posts, seems like the author intends all data to be of float type. Wondering if anyone else has went down a similar path. Thank you.

      A 1 Reply Last reply Reply Quote 0
      • A
        ab_trader @spg_trader last edited by

        @spg_trader said in How to add datafeed with text field?:

        all data to be of float type

        Your answer :)

        • If my answer helped, hit reputation up arrow at lower right corner of the post.
        • Python Debugging With Pdb
        • New to python and bt - check this out
        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors