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/

    I know why this happen,but I have a more strange question after this day happen

    General Code/Help
    2
    3
    65
    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.
    • tianjixuetu
      tianjixuetu last edited by

      Re: Please help to understand cash changes

      I also met this question,but my question is not this day,it it close the position. on the open day,if you exchange future,you can see it easily.

      your value is your cash and your position value.

      you sell at 2615,comm is 2.615,close price is 2609,so you profit (2615-2609)10=60,your first cash is 20000000-2353.5-2.615=19997643.885,your end cash is 19997643.885+60=19997703.885 , your position value is 260910*0.09= 2348.1
      ok,your value is 20000051.985000003

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

        @tianjixuetu said in I know why this happen,but I have a more strange question after this day happen:

        you sell at 2615,comm is 2.615,close price is 2609,so you profit (2615-2609)10=60,your first cash is 20000000-2353.5-2.615=19997643.885,your end cash is 19997643.885+60=19997703.885 , your position value is 260910*0.09= 2348.1
        ok,your value is 20000051.985000003

        No idea where your numbers come from. For example 2353.5

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

          ok,this is a question I answer sombody,you can get the quesiton at the address,but I reply as a topic.I am very sorry.

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