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 Feed vs Backtesting

    General Code/Help
    backtrader ib broker interactivebro live data live trading
    1
    1
    60
    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.
    • Ola D
      Ola D last edited by

      Hi, I'm just learning about backtrader and I have some questions regarding how the program processes backtesting as opposed to live trading (in my case, Interactive Brokers).
      First off, I'm not sure if backtrader's buy and sell orders sell at the candle's close or not. For example: if a candle has an OHLC of (30,31,28,29) will the code automatically sell at 29 when it's done processing?
      In addition to this, while in live trading, will the program wait till the candle is fully formed before making orders or as the live data feed is coming in for that same candle, the 'next' function keeps getting iterated. If the latter is the case, then how does that work? Sorry if this seems a bit confusing. If it is, please let me know so I can clarify any way I can. Thanks

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