The Fundamental DividendPerShare when running a backtest is consistently nan for some stocks like GOOG, AMZN, FB (as well as quite a few others).
https://www.nasdaq.com/market-activity/stocks/aapl/dividend-history shows that there are infact dividends.
Here is a backtest to show it. you need to clone it and view the log output to see that the DividendPerShare values are ‘nan’.
Is this expected, or is it a data error?Thanks
Mia Alissi
Sources: Short Term Reversal, Standardized Unexpected Earnings
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Best
So after investigating further on other sites, it seems, at least with the equities listed above, that when it is ‘nan’ from morningstar it isactually 0.
This seems like a bug to me as 0 and ‘nan’ semantically different.
Louis Szeto
Hi Best
You need to specify the period of the fundamental data. For example, the nearest dividend per share shall use the following:
Best
Louis
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Best
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!