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/

    TradeHistory status 1, but event.order.status is 4

    General Code/Help
    2
    3
    347
    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
      Aris L last edited by

      In a test, TradeHistory's status.status shows value of 1, but event.order.status has value of 4.
      What's the difference of the two status value?

      Hope the question is not too vague.

      1 Reply Last reply Reply Quote 0
      • A
        Aris L last edited by

        I try to answer myself. It seems first one is trade status, possible values are ['Created', 'Open', 'Closed']. Latter one is order status, possible values are ['Created', 'Submitted', 'Accepted', 'Partial', 'Completed', 'Canceled', 'Expired', 'Margin', 'Rejected'].

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

          Trade and Order are different things, where is the surprise?

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