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/

    Order continuity after system restart

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

      Hello, my question is with regards to order continuity after system restart. Let's say I have the following scenario:

      1. I have a buy_bracket() order where the main side order was completed and the system was distrupted; and
      2. Upon restart, my system retrieves a custom log and detects that I have standing orders (high side and low side).

      My custom log can retrieve the data input of the buy_bracket order (trade id, size.. etc) into the new backtrader instace. How can I restore the order(s) into the new backtrader instance to run as though there was no disruption?

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

        You need a custom broker in which you feed the pending orders.

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