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/

    What symbol are orders / trades in?

    General Discussion
    2
    3
    536
    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.
    • D
      duality_ last edited by

      I'd like to write out debugging information when my strategy is running, namely something like We bought 0.2 BTC, we paid 4 ETH at the price 0.04 ETH/BTC. I thought I'll be able to do this in the strategy object using notify_order or notify_trade, but I only get an order or trade object, which tell me the price but don't tell me the symbol, e.g. ETH/BTC.

      How can I achieve this?

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

        Check out this thread
        https://community.backtrader.com/topic/895/trade-order-symbol

        1 Reply Last reply Reply Quote 1
        • D
          duality_ last edited by

          This works, thanks!

          But I stumbled upon another problem.

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