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/

    Indicators to see price change ?

    Indicators/Strategies/Analyzers
    2
    2
    198
    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.
    • MathieuCesbron
      MathieuCesbron last edited by

      Hello everyone,

      Backtrader give us the ability to have the starting balance and the final balance easily, I was looking for a way to have the starting price of the asset and the final one quite easily and print him.

      I would like to have an output like this :
      starting balance : 1000
      final balance : 1200
      balance change : +20%
      market change : +5%

      In this exemple we se that the strategy is ouperforming the market (for exemple). It's easy to print the first 3 but I can't figure a way to print the market change, can you help me ?

      Thanks !

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

        Blog - Benchmarking - https://www.backtrader.com/blog/posts/2016-07-22-benchmarking/benchmarking/

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