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 is completed but no trade notified!

    General Code/Help
    analyzer trade trades
    2
    3
    27
    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.
    • amir mansoubi
      amir mansoubi last edited by

      Hi everyone!
      I'm new to backtrader.

      I use a customized strategy with a .csv file.
      At the end of running, there are about 30000 COMPLETED order but just 4 trades!
      I mean I really buy and sell and the positions and cash changes during the running time but many of the orders complete without the creation of any order.
      And because of that, all analyzers are useless. :(

      Please help me. I need analyzers results containing 30000 trades, not just 4.

      1 Reply Last reply Reply Quote 0
      • A
        ab_trader last edited by

        Provide the script reproducing the issue, data feed, logs showing the issue, and what are the expectations. No need to provide data feed with all 30000 orders, make shorter version. The same for script. Clearer initial data, quicker the resolution.

        Somebody here may help you if they have time. But I would recommend to learn how to debug your own code. This is responsibility of the code developer.

        1 Reply Last reply Reply Quote 0
        • amir mansoubi
          amir mansoubi last edited by

          Thanks for answering.
          Finally, I found out that trades are completed only when the position of the asset turns 0.
          Thanks again.

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