Some questions about dividend and answer authority
-
I'm learning about backtrader and I think it's an amazing framework.
But I have some questions about dividend and answer authority.- 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?
- Is there a method to add dividends directly to cash?
-
@mike-van said in Some questions about dividend and answer authority:
- 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:
- 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
-
@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? -
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.