Backtrader Community

    • 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/

    Power futures settlement

    Indicators/Strategies/Analyzers
    2
    24
    7373
    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.
    • B
      backtrader administrators last edited by

      The development branch contains a commit to allow plotting on the same axis. The usage pattern:

      data1.plotinfo.plotmaster = data0
      data1.plotinfo.sameaxis = True
      

      https://github.com/mementum/backtrader/commit/f0b0998b1dcc52da3006d07e1de163457a3cce97

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User @backtrader last edited by

        @backtrader back on this topic, are trades specific to one instrument, or shared ?

        I use tradeid to differentiate the trades on each weekly product.
        In this case, when data1 compensate data0:
        0_1489421860470_upload-71a35bc3-82a2-49e4-bc91-f52c30b5d34b

        here, on 08/08/2016, I would expect that the trade with id 1 is closed. But it's not.

        Would this be possible ?

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

          @Alexandre-Moyrand this is already available in the development branch starting with commit https://github.com/mementum/backtrader/commit/d9c06f4c17d705faf5254a8211066dab3671a73d

          ? 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @backtrader last edited by

            @backtrader
            Sorry. I missed this commit :)
            But it works !

            Thanks

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