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/

    more decimal places for cryptocurrencies

    General Code/Help
    2
    3
    1489
    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.
    • S
      silverbald last edited by

      Hello

      I'm wokring on backtrading on cryptocurrency market and most of cryptocurrencies do have much more than 2 decimal places (in most cases 6-10 decimal places).
      How can I set more (i.e. 8 ) decimal places for backtrader?

      kind regards
      Silverbald

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

        The question would be where are you missing some decimal places?

        1 Reply Last reply Reply Quote 0
        • S
          silverbald last edited by

          Hello

          Looks like it's my mistake. I've wrongly assumed that it's rounding currency calculations to 2 decimal places - but it's not.
          I've corrected numbers format printing and it's OK.
          So thank You for inspirational question.
          And I'm sorry for bothering with simple problem.

          kind regards
          silverbald

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