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/

    Oanda multi-asset, access data for each asset/pair

    General Discussion
    2
    2
    662
    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.
    • R
      roch_02 last edited by

      Hello,
      I there a way we can use the oandastore.getdata and access the datas[0], datas[1], etc for each asset? I want to make calculations for each asset in the next of the strategy.

      Thank you.

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

        There must be something missing in the question, because the datas array can always be accessed inside a Strategy. It's the core of the idea.

        getdata from the store only gives you the feed, you add it to the system with addata (or reworked through resampledata for example`) and it will be there.

        The Oanda data feeds behave just like any other (and can be mixed with other data feeds too)

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors