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/

    tick-to-trade latency for live trading

    General Code/Help
    2
    5
    707
    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.
    • D
      Dr_James last edited by

      Hi,

      I am completely new to backtrader. To see if this is suitable for our project, I was wonder what kind of tick-to-trade latency we could expect if backtrader was used for live trading?

      I was not looking for ultra-low latency, but several hundred ms would probably be too slow.

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

        @dr_james said in tick-to-trade latency for live trading:

        tick-to-trade latency we could expect if backtrader was used for live trading?

        That entirely depends on which indicators and logic you apply to your strategy. This is Python and not C++.

        The usual tick source for most is Interactive Brokers, which as you for sure know is only a snapshot sent every 250ms. With a few indicators in place, there seems to be no trouble in having a logic in place without blocking. But your mileage may vary.

        1 Reply Last reply Reply Quote 0
        • D
          Dr_James last edited by

          Right. The strategy I was considering actually uses an external news feed as the signal/indicator and places the order on IB. I am assuming this is something backtrader can do, but please correct me if I am wrong.

          So I probably used the terminology "tick-to-trade" incorrectly. I don't know if this would be called "signal-to-trade" or I have also heard the terminology "wire-to-wire".

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

            It seems you want to know how much time it takes for an order to be executed by the broker since you issue it.

            Something you probably have to do yourself.

            But backtrader has for sure no optimization to reduce its internal processing time.

            1 Reply Last reply Reply Quote 0
            • D
              Dr_James last edited by

              No, that's not what I meant.

              Since I have never used backtrader yet, I was trying to get an idea about its internal processing time from receiving a signal to sending an order to the broker.

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