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/

    Pair Trading with Integrated PNL

    General Discussion
    1
    1
    19
    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.
    • O
      onsjohn last edited by

      Hi All, I have seen the pair trading examples and discussion but the long and short leg are treated as different trades.

      How do I combined the PNL together to see together as one.

      And my writer CSV file is having too much repetitive data. How can I remove it?

      I am trying to get a list of self.data[-39:0] to compare with self.data...

      How do I get the list of data for self.data[-39:0]?

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
      $(document).ready(function () { app.coldLoad(); }); }