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/

    Update / Amend Existing Orders

    General Code/Help
    4
    8
    2384
    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.
    • C
      cwse last edited by

      Hi,

      Is it possible to update / amend existing open orders? Many platforms in real life are capable of this, wondering if it's possible in backtrader?

      EG. I have open Stop-loss / Take-Profit orders, but I am adjusting my current long position (say increasing by 10%)... so I need to update the open Stop-Loss / Take-profit sizes and execution prices to match the new adjusted long position. Is this possible??

      At present I am just:

      1. Cancelling existing SL/TP
      2. Wait until next day so the notify order process is finished and the SL/TP orders are gone
      3. Create new buy to adjust position, and create new SL/TP

      This work fine... but you miss out on full 24 hours every time (using daily data), thus reducing profitability significantly. So it would be great if there was an update/amend functionality!

      I would also be interested if you have any other suggestions to mange this!

      Thank you,
      CWE

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

        At the moment it's not possible. Was already spoken in another thread and noted for when it may be possible.

        1 Reply Last reply Reply Quote 0
        • C
          cwse last edited by

          Thanks @backtrader, understood. Would you have any tips for managing, or is my current approach the best for now?

          Also, are there any plans to implement such functionality? If so do you have a 'ball park' time frame?

          Thank you!!

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

            @cwse you can speed up notifications. See the last posts in this thread Community -Replaying Data - Effects on Signal Generators

            At the moment development is somehow frozen, although some bits (including order modification) may actually be enough to kickstart a new feature release.

            1 Reply Last reply Reply Quote 0
            • C
              cwse last edited by

              awesome! Fingers crossed for a new release :-)

              1 Reply Last reply Reply Quote 0
              • S
                skytrading54 last edited by

                any update on when amend would be available in backtrader.

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

                  There is none at the moment.

                  1 Reply Last reply Reply Quote 0
                  • B
                    bgrosso last edited by

                    any update on the amend functionality?

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