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/

    Multiple Order Managment

    General Discussion
    2
    2
    1209
    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.
    • Michael Scofield
      Michael Scofield last edited by

      Hi guys, I want to ask about how to perform multiple order handling.
      For example, there is a up-trend, and I have two indicators, namely indi_1 and indi_2.
      Buy signal is generated if indi_1 across the up-trend, and sell signal is generated if indi_2 across the trend.
      The order sequence is : Buy, buy, sell, buy, sell.
      How can I know the sell signal belongs to which buy signal, is the first one or the second one?
      Thank you.

      1 Reply Last reply Reply Quote 0
      • B
        backtrader administrators last edited by

        See this: Blog - Multi Example¶

        You can additionally use tradeid when issuing orders and track it in the order notifications or trade notifications. See Blog - MultiTrades

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