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 not executed on the next bar open?

    General Discussion
    2
    3
    89
    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.
    • A
      Apostolos last edited by

      Hi guys,
      so i have a problem where I have data for minute bars and the order is not completed on the next open but on the first open of the following day while I of course want to be executed on the next open of the next minute bar. What is wrong with my code?
      I get no errors.
      Screenshot (16).png
      Screenshot (18).png
      Screenshot (17).png
      and a scr of the csv file,
      Screenshot (21).png
      Screenshot (22).png

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

        @Apostolos said in Order is not executed on the next bar open?:

        What is wrong with my code?

        Specify the time frame for your data. By default bt takes data feed as a daily data feed.

        Also please read the note about code/output blocks and use of backticks and don't post text as pictures.

        • If my answer helped, hit reputation up arrow at lower right corner of the post.
        • Python Debugging With Pdb
        • New to python and bt - check this out
        1 Reply Last reply Reply Quote 2
        • A
          Apostolos last edited by

          thanks for the reply it helped me, after searching I found that it is very clearly said at the datafeeds documentation which I read without the proper attention.

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