Backtrader Community

    • 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/

    Orders get canceled while backtesting

    General Code/Help
    2
    2
    113
    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.
    • Stefanos Zachariou
      Stefanos Zachariou last edited by

      Hello everyone, hope you are enjoying the holidays.

      I want to apologize in advance as i am not proficient in python and so this might be very basic.
      I have started fiddling with backtrader and thought that the best way to start is by following the examples in the documentation. The only alteration i have made is that i have loaded some btc data i found on github. All null values have been removed and plotting it there seems to be nothing wrong, yet the majority of the orders are canceles/modified/rejected. I thought this is peculiar when backtesting and wanted to inquire why this is happening.

      Thank you all for your time.

      1 Reply Last reply Reply Quote 0
      • vladisld
        vladisld last edited by

        A wild guess would be insufficient available cash set for the broker ( the default is just 10000$), although without seeing your code and data set it is hard to know.

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