Backtrader Community

    • 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/

    Some questions about dividend and answer authority

    General Discussion
    2
    4
    1022
    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.
    • M
      Mike Van last edited by

      I'm learning about backtrader and I think it's an amazing framework.
      But I have some questions about dividend and answer authority.

      1. In my view, the price of answer authority is more useful for most indicators, but the raw stock price may be closer to the reality for cash management. If the order signals are generated by answer authority data and order price use the raw price, can I use only two datafeeds?
      2. Is there a method to add dividends directly to cash?
      1 Reply Last reply Reply Quote 0
      • B
        backtrader administrators last edited by

        @mike-van said in Some questions about dividend and answer authority:

        1. In my view, the price of answer authority is more useful for most indicators, but the raw stock price may be closer to the reality for cash management. If the order signals are generated by answer authority data and order price use the raw price, can I use only two datafeeds?

        No idea what the "answer authority" is, but you can always generate your signals based on one data feed and do your trades on another data feed.

        See Docs - Strategy and the reference for the buy / sell methods for example

        @mike-van said in Some questions about dividend and answer authority:

        1. Is there a method to add dividends directly to cash?

        Credit/Dividends are always deducted/added directly to cash. Community - Taking into account of periodic payments

        M 1 Reply Last reply Reply Quote 1
        • M
          Mike Van @backtrader last edited by

          @backtrader Thanks for your helping. "Answer authority" is the adjusted price by the dividends. And I just don't know how to speak it in English.
          And if I feeds two data, I have to align them in advance according to datetime right? Is there such a solution in backtrader?

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

            The adjusted price is called just adjusted price. Usually you get the adjusted close and then adjust the other price components. It is the case for data from "Yahoo" for example.

            @mike-van said in Some questions about dividend and answer authority:

            And if I feeds two data, I have to align them in advance according to datetime right? Is there such a solution in backtrader?

            The engine will synchronize them. But if one is the raw price and the other is the adjusted price, it would a surprise if they don't carry the same timestamp.

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