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/

    Live Data/Live Trading

    Blog
    3
    5
    3118
    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.
    • B
      backtrader administrators last edited by

      Use the link below to go the original post

      Click here to see the full blog post

      1 Reply Last reply Reply Quote 0
      • Ariel Iván Ruiz Mateos
        Ariel Iván Ruiz Mateos last edited by

        When I tried to run this algo, It returned: AttributeError: 'IBBroker' object has no attribute 'fundmode'
        What could it happened?

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

          That was a regression bug introduced which affect the live brokers in version 1.9.57.122 (and probably 1.9.56.122)

          See this Community - Broker and fundmode for a solution with stdstats=False for cerebro

          Or update to the 1.9.58.122 (released today) which addresses the problem.

          1 Reply Last reply Reply Quote 0
          • C
            Chee Kin Lim last edited by

            Thanks for writing the very helpful post.

            Look like IBBroker doesn't support get_orders_open() at https://www.backtrader.com/docu/broker.html#backtrader.brokers.BackBroker.get_orders_open

            May I know is there anyway I could retrieve the open orders such as trailing stop order?

            Please advise. Thank you.

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

              No. And this is because such a method could fetch orders which haven't been created by the client itself. When you create them you can keep a reference to the created orders.

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