Back

How does quantconnect calculate dividend adjusted stock price

I am figuring out what is the method quantconnect used to calculate the dividend adjusted stock price, please help me on this. Thanks in advance.

For example, IBM most recent ex-dividend date is May 9, 2018 and the dividend payout amount for the ordinary stock is 1.57. The unadjusted close stock price on May 8, 2018 is 142.99 and the dividend adjusted stock price is 141.42. It looks right since the difference between the adjusted and unadjusted price is the dividend amount. however, when I compare other prices before May 8, I don't get the correct answer. Say, on April 9 2018, The unadjusted close stock price is 152.69 and the dividend adjusted stock price is 151.01, It does not make sense for the dividend adjusted stock price because it supposed to be 151.12 ( 152.69 - 1.57 = 151.12 ). I would like to know the algroithm quantconnect used to calculate the dividend adjusted stock price as 151.01.

Update Backtest







Update: I have figured out the method quantconnect used, it used the same method as Yahoo did for dividend adjusted price. However, I have another trouble to correctly calculate the dividend adjusted close price for more than one dividend adjustment applied. say, for Feb 7 2018, there are two dividends to be applied to the unadjusted close price. one is 1.57, another is 1.5, the unadjusted close price is 153.85, the dividend adjusted price is 150.68. still scratch my head to figure out how 150.68 is calculated

0

Update Backtest





0

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.


Loading...

This discussion is closed