Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. niklay
    3. Topics
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    N
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 3
    • Best 1
    • Controversial 0
    • Groups 0

    Topics created by niklay

    • N

      Usage of multiple Datafeeds
      General Code/Help • • niklay

      2
      0
      Votes
      2
      Posts
      724
      Views

      A

      This was discussed several time in the forum. Just dig deeper, try to search for word multi. Also it was a blog post published which can give ideas -

      Blog - Multi Example

    • N

      How to access the "params" tuple?
      General Discussion • • niklay

      3
      0
      Votes
      3
      Posts
      752
      Views

      B

      @niklay said in How to access the "params" tuple?:

      I started with the Quickstart tutorials and found some confusing code (see attached). The "params" tuple is created with two separate tuples inside. However, I can access these inside tuples by typing params.maperiod .

      What's exactly the confusing part? You declare params (which you can also declare as a dict) and you can access them. It's a declarative style. As pointed out by @Laurent-Michelizza , there is a shorhand notation where params is shortened to p

      @niklay said in How to access the "params" tuple?:

      However, if I rename params to another name I cannot access them anymore.

      Of course. How are you expecting the platform to know which params have been defined if you give the declaration a different name?

    • N

      Cannot find file "orcl-1995-2014.txt" from the Quickstart tutorial
      General Code/Help • quickstart tutorial help • • niklay

      4
      1
      Votes
      4
      Posts
      3126
      Views

      B

      @niklay said in Cannot find file "orcl-1995-2014.txt" from the Quickstart tutorial:

      pip install backtrader

      This installs a Python package and not the complete content of the source code repository. Follow the advice from @ThatBlokeDave or else clone the repository. As laid out in the repository, the scripts know where to find the data files.

    • 1 / 1