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/

    A way to add next_orderbook

    General Discussion
    2
    2
    273
    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.
    • K
      kausality last edited by

      We have the next() which works with updates on upcoming/next data bars, which works with OHLC or bid/ask.

      Is there a way I can add a next_orderbook() (say), to push changes in the order book so that the strategy can operate on it?

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

        No. And it has been discussed in the past several times: backtrader is not a bid/ask platform, even if it can be forced to partially use the values due to built-in extension capabilities.

        But something like next_orderbook has nothing to do with the design per se.

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