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/

    how to custom commission based on order type?

    General Discussion
    2
    4
    118
    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.
    • Jingsi
      Jingsi last edited by

      Some exchange has different commission for Limit order and Market order, how to get order type in _getcommission?

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

        That's not something which can be customized out of the box. Commissions are connected to the assets and this is clearly something a broker does.

        Hence a custom broker would be needed.

        1 Reply Last reply Reply Quote 0
        • Jingsi
          Jingsi last edited by

          I think commissions are more related to the broker than the assets, The broker take that money any way.
          So in my view, custom broker's commission means a customize commission scheme, what you think?

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

            Regardless of different views, it simply not posible out of the box.

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