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/

    reply

    General Code/Help
    2
    4
    46
    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.
    • Zoutain Ye
      Zoutain Ye last edited by

      Re: How to build on last order to further execute orders?

      Re: How to build on last order to further execute orders?

      tried

      elif self.close[0] > self.buyprice[0] * 1.5:
      or
      elif self.close[0] > self.buyprice * 1.5:
      

      doesn't really work

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

        What do you mean doesn't work?

        RunBacktest.com

        1 Reply Last reply Reply Quote 0
        • Zoutain Ye
          Zoutain Ye last edited by

          sry, this post is redundant, refer to the original post.
          I cant even delete this post....

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

            @Zoutain-Ye Yes not being able to delete or edit is a bit frustrating. :)

            RunBacktest.com

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