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/

    Can I change the execution time of a trade?

    General Code/Help
    3
    5
    54
    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.
    • P
      pim_m9 last edited by

      For research purposes I want to delete the execution time of my trades. I'm using daily prices and since it wouldn't take a whole day for an order to come through, I'd like to see what would happen if there isn't any execution time.
      I can't find the solution in the documentation nor the forums, but maybe I'm just using the wrong keywords..

      run-out 1 Reply Last reply Reply Quote 0
      • run-out
        run-out @pim_m9 last edited by

        @pim_m9 Could you clarify a bit more? Can you give an example of what you are looking for?

        P 1 Reply Last reply Reply Quote 0
        • P
          pim_m9 @run-out last edited by

          @run-out If you have a self.order = self.buy() your order gets processed on the next timestamp.
          I'm searching for a way to get the order processed immediately, so that my order comes through at the expected price and I can sell or buy again the next day.
          I'm using daily timestamps and want to know how my algorithm would perform without any slippage (or maybe a fixed amount of slippage). Is it possible to get a buy() or sell() order to execute immediately without any slippage?

          R run-out 2 Replies Last reply Reply Quote 0
          • R
            rajanprabu @pim_m9 last edited by

            @pim_m9 have you looked at cheat-on-close and cheat-on-open

            1 Reply Last reply Reply Quote 0
            • run-out
              run-out @pim_m9 last edited by

              @pim_m9 You need a higher resolution time frame. Can you get sub-daily data?

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