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 is the value calculated?

    General Discussion
    3
    4
    1393
    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.
    • M
      Mạnh Phạm Nguyễn last edited by

      The broker value seems to be very different from the broker cash and my stocks, I can't seem to be able to figure out how it gets that value. Do you guys know how it's calculated?

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

        Broker value = Cash + Value of the open positions

        • If my answer helped, hit reputation up arrow at lower right corner of the post.
        • Python Debugging With Pdb
        • New to python and bt - check this out
        1 Reply Last reply Reply Quote 1
        • M
          Mạnh Phạm Nguyễn last edited by

          Sorry if this seems obvious but how does the open position value calculated?

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

            The obvious way: last known price by number of assets.

            What is your pain point? Why don't you let us know what you think is wrong? Because the question has been asked many times before and the calculations have never been proven wrong.

            It seems you are expecting a value and you get another. Let us know.

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