Backtrader Community

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

    Controversial posts made by blonc

    • calling data in int() by name / dataname

      data by name.

      referencing data by _name

      when adding data I do have the attribute name in this example well say name = SWK with in the bt.feeds.GenericCSVData()

      Now with in def __init__(self): I am trying to call the data by name and can not seem to get it... IE
      self.data_SWK.close does not work... self.datas_SWK.close does not work either.

      referencing source data_NAME

      line 109 ` - self.dataX_name -> self.datas[X].name . But this is for an analyzer, maybe its not possible any other place.

      Maybe I am miss interpreting the documents.

      posted in General Code/Help
      B
      blonc
    • 1 / 1