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/

    IB Disconnection

    General Code/Help
    2
    2
    1056
    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.
    • ealvarpe
      ealvarpe last edited by

      I know this is not completely tied to backtrader functionality, but maybe it´s something can be managed directly with some property or in a better way I´m doing it.
      My problem is that I have a Live algorithm connected to IB, but all the nights, when IB reboot (I´m connected through the TWS Gateway), it gets disconnected and can´t reconnect again.
      So, every morning I have to start up the script again.

      I´m using this snippet of code to do the IB connection

      storekwargs = dict(
              host='127.0.0.1', port=7496,
              clientId=None, reconnect=100, timeout=3.0, _debug=False)
          ibstore = bt.stores.IBStore(**storekwargs)
      

      I was assuming reconnect and timeout properties should do this, but it seems always get disconnected.

      Is this something can be managed from backtrader or should I do it from an external script/app? Do someone has the same problem?

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

        People use GitHub - ib-controller

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