Hi,
If I want to derive the "TR.TotalReturn" measure myself, how can I do this, and which data points do I need? I want to extract the fields needed to derive "TR.TotalReturn". I tried extracting "TR.PriceClose" and calculate the price return as follows: (P_t / P_t-1)-1. However, there are some minor deviations comparing this to the TR.TotalReturn measure, as TR.TotalReturn includes dividends.
Can you provide an example on how to do this by updating the code below?
ld.get_data(universe='GOOGL.O', fields=["TR.TotalReturn.CalcDate", "TR.TotalReturn"], parameters={'SDate': '2010-12-31', 'EDate': '2020-12-31', 'Frq': 'D'}, header_type=ld.HeaderType.NAME)