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 the engine see the volume of next bar?

    General Discussion
    1
    1
    70
    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
      Alicc last edited by Alicc

      Hi all, I face a problem on simultaneously execution of multi assets. My strategy needs the backtest engine to execute assets simultaneously ( 4 assets, 2 buy orders and 2 sell orders) in next bar( 5 mins bar or 10 mins bar). So I want to know can I see the volume of next bar in next() function, if I can see the volume of next bar, then I can send no order if there is a leg with 0 volume. Or is there any other solution to this problem. Thanks all.

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