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/

    backtrader_contrib

    Announcements
    4
    8
    2342
    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

      Some of the contributions which were in the queue would for sure be nice additions for some users of `backtrader´. In order to allow for a seamless integration of those for as many people as possible, the following approach will be taken

      • A side project named backtrader_contrib will be created

      • This project will accept pull requests

      • Elements submitted (indicators, analyzers, ...) will be injected into the main backtrader package

        • If a component generates an exception during importing it won't be injected
      • The licensing is left open to the user with one exception: no GPLv2. Being the reason that some licenses like Apache License 2.0 is not compatible with GPLv2, but it is with GPLv3

        See: GNU - A Quick Guide to GPLv3 and GNU - Various Licenses and Comments about Them

        The repository will contain the license text for GPLv3, ASF 2.0, MIT, BSD

      • The repository will be published as a pip package on a regular basis

      Richard O'Regan 1 Reply Last reply Reply Quote 4
      • Richard O'Regan
        Richard O'Regan @backtrader last edited by

        @backtrader Ok great to know. Look forward to seeing this. Anytime frame when backtrader_contrib will be ready?

        I'll be honest with you, I don't really understand what all this copyright issue is about and what are the potential consequences for you. Nobody can sell it to make money right? anyone who wants it can download free and make changes already.. My knowledge in this area is low so it may be a naive question, but who can take advantage of you? Why is there a problem?

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

          backtrader_contrib has been released.

          See:

          • https://pypi.python.org/pypi/backtrader_contrib/
          • https://github.com/mementum/backtrader.contrib
          1 Reply Last reply Reply Quote 0
          • Richard O'Regan
            Richard O'Regan last edited by

            Nice one. Just to confirm, we need to add in comments referring to one of the licenses e.g. from https://www.gnu.org/licenses/gpl-howto.en.html

            '''
            NewAnalyzer.py was written by Richard ORegan 2017.
            
            This program is free software: you can redistribute it and/or modify
                it under the terms of the GNU General Public License as published by
                the Free Software Foundation, either version 3 of the License, or
                (at your option) any later version.
            
               This program is distributed in the hope that it will be useful,
                but WITHOUT ANY WARRANTY; without even the implied warranty of
                MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                GNU General Public License for more details.
            
               You should have received a copy of the GNU General Public License
                along with this program.  If not, see <http://www.gnu.org/licenses/>.
            '''
            
            Richard O'Regan 1 Reply Last reply Reply Quote 0
            • Richard O'Regan
              Richard O'Regan @Richard O'Regan last edited by

              @Richard-O'Regan I can't seem to edit my previous post, I wanted to make my question above clearer [has editing been disabled?]. So all our code we submit as pull requests must include a licensing comment right?
              Just thinking of the 'copyright' issues a few weeks ago.
              Thanks

              1 Reply Last reply Reply Quote 0
              • P
                Paska Houso last edited by

                It seems to be the point about having contrib separated from the main code base and you retain your copyright (with the license of your choice amongst the offered ones.

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

                  Since @backtrader reappeared and even released new versions of this well beloved library I am wondering if backtrader_contrib is still the way to go for contributing to backtrader. I read the first post as the regular backtrader project is not accepting pull requests so PRs have to go to backtrader_contrib. Is this still the case?

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

                    Let's start there and we can later move it forward.

                    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(); }); }