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/

    Add orders Strat with time depency

    General Code/Help
    2
    2
    41
    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.
    • Azizi Yassine
      Azizi Yassine last edited by

      Hello

      I would like to create a simple strategy that put stop limit order at a certain timestamp / level.

      The input looks like this :
      Timestamp - Quantity - Asked Price
      09:00:01 - 10 - 130
      09:00:03 - 15 - 140
      ect.

      R 1 Reply Last reply Reply Quote 0
      • R
        Reinke @Azizi Yassine last edited by

        @Azizi-Yassine, I’m not sure what answer you expect here. You could either check the timestamp in the next() method and then issue your orders when your timestamp is reached.
        Or, in some brokers you could even pass timing conditions to the broker, e.g. the Interactive Broker interface simply passes through any arguments you throw at it. However the backtest broker as implemented today does not take a timing condition.

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