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/

    Difference between leverage and multi

    General Code/Help
    2
    2
    1153
    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.
    • Y
      Yelloww last edited by

      I have read through the page https://www.backtrader.com/docu/commission-schemes/commission-schemes.html? but I am not clear what is the difference between multi and leverage. Both seems to be multiplicator to apply to profit and loss calculations.

      Let's say I want to trade a futures contract, margin requirement is 5% of contract value and commission is fixed ratio 0.0001 of contract value. how to define the parameters in broker.setcommission(commission=?, margin=?, mult=20?,leverage=20?)

      Thanks for help!

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

        In your case you will need to develop your own commisson scheme using the following post Docs - User Defined Commissions.

        No need to use leverage, define margin based on the price, fixed commission and mult. Usually mult is not defined as 1 / margin, but by future contract spec. Since I don't know what are you going to trade, then this need to be clarified.

        As of leverage - this is bts implementation of the broker loan if you want to buy stocks more than your funds allow you. More or less in details is described here
        Blog - BTFD (Buy The F... Dip)

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