Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. kam dorra
    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/
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 15
    • Best 0
    • Groups 0

    Topics created by kam dorra

    • kam dorra

      line value behaviour
      Indicators/Strategies/Analyzers • • kam dorra

      6
      0
      Votes
      6
      Posts
      234
      Views

      B

      @kam-dorra said in line value behaviour:

      when I add print (BV[0]), i get:
      IndexError: array index out of range

      And you expect us to know where you do that ... because we will see it using tea leaves?

    • kam dorra

      NameError: name 'buy_signal' is not defined
      Indicators/Strategies/Analyzers • • kam dorra

      2
      0
      Votes
      2
      Posts
      359
      Views

      B

      https://pythontips.com/2013/08/07/the-self-variable-in-python-explained/

    • kam dorra

      IndexError: array index out of range
      Indicators/Strategies/Analyzers • • kam dorra

      14
      0
      Votes
      14
      Posts
      2601
      Views

      B

      @ab_trader said in IndexError: array index out of range:

      In the __init()__ indexing should be done with (), not with [] brackets, ref Docs - Lines: DELAYED indexing:

      Pointed out some days ago by @ab_trader

    • kam dorra

      position tracking
      General Code/Help • • kam dorra

      2
      0
      Votes
      2
      Posts
      145
      Views

      B

      The strategy getposition method relies always on the information provided by the broker instance. It's in the broker code.

    • kam dorra

      bt.If operator/function
      Indicators/Strategies/Analyzers • • kam dorra

      8
      0
      Votes
      8
      Posts
      598
      Views

      kam dorra

      @backtrader
      thank you very much for your time and assistance, you have been very helpful.

    • 1 / 1