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/

    Bid and ASK on live trading with IB

    General Code/Help
    3
    3
    311
    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.
    • Y
      YELNAr last edited by

      I want use bid and ask on following code

       self.unbalance_1 = self.datas[0].ask[0]-(self.datas[2].bid[0]*self.datas[1].bid[0])
       self.unbalance_2 = self.datas[0].bid[0]-(self.datas[2].ask[0]*self.datas[1].ask[0])
      1 Reply Last reply Reply Quote 0
      • A
        ab_trader last edited by

        Search the forum, I believe it was couple discussions on how to use bid/ask with bt.

        • 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
        • B
          backtrader administrators last edited by

          https://community.backtrader.com/topic/1539/get-bid-ask-price-and-size-on-interactive-brokers-data-feed/3

          In any case, asking the question in many different threads is not going to change the reality.

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