Dividend Growth Investing Strategy
Before diving into the coding section, it’s crucial to understand the dividend growth investing strategy and the key metrics essential for its application in daily stock market activities. Firstly, let’s grasp the concept of dividends. Dividends are profits that a company distributes to its shareholders, indicating financial stability and maturity. Unlike growth-oriented firms that reinvest earnings, dividend-paying companies offer shareholders a portion of their profits. For investors, dividends offer a reliable source of passive income, particularly appealing to those seeking consistent cash flow from investments. These stocks are often less volatile than non-dividend-paying counterparts, as dividends can mitigate the impact of market downturns. Additionally, dividends significantly contribute to a stock’s total return on investment, along with capital appreciation, making them a pivotal element in many portfolios for their income and stability benefits. Given the numerous advantages of dividends, dividend growth investing has garnered significant respect in the investment realm. This strategy focuses on long-term wealth accumulation and income generation by selecting and holding stocks in companies with a consistent record of increasing dividends annually. Investors using this approach prioritize companies with strong financial health, stable earnings, and a commitment to rewarding shareholders through dividends. The key advantage of dividend growth investing lies in its ability to provide a growing stream of passive income over time. As companies continue to raise dividends, investors benefit from an increasing income stream, particularly valuable for those aiming to supplement income or build a retirement nest egg. Moreover, this strategy is viewed as a conservative approach compared to others. By targeting companies with a history of stable dividend growth, investors can potentially reduce exposure to market volatility while benefiting from equities’ long-term growth potential. Patience and discipline are vital, as the compounding effects of dividend growth may take time to materialize.Plot Creation
Based on the explanation of dividend growth, we must analyze the dividend of each company to know which company is suitable to be bought if we use the dividend growth investing strategy. Therefore, we can use the Sectors Financial API to directly get the dividend of each company. In this recipe, I’ll show you the dividend growth analysis of 7 majors companies in Indonesia.Data Fetching
symbol | year | total_dividend |
---|---|---|
BBCA.JK | 2019 | 71.0000 |
BBRI.JK | 2019 | 120.1560 |
BYAN.JK | 2019 | 127.0530 |
BMRI.JK | 2019 | 120.6080 |
TLKM.JK | 2019 | 54.6075 |
Data Manipulation
The other advantages of using the API is the data is already quite clean and we don’t need to do a lot of data manipulation especially in this recipe. We only need to calculate the dividend growth per symbol each year and then we can directly make a plot from that data. We can calculate and create a new column fordividend_growth
value using the code below.
symbol | year | total_dividend | shifted_value | percentage_growth |
---|---|---|---|---|
BBCA.JK | 2020 | 110.6000 | 71.0000 | 55.77 |
BBRI.JK | 2020 | 152.9080 | 120.1560 | 27.26 |
BYAN.JK | 2020 | 29.5080 | 127.0530 | -76.78 |
BMRI.JK | 2020 | 176.6710 | 120.6080 | 46.48 |
TLKM.JK | 2020 | 154.0680 | 54.6075 | 182.14 |
Data Visualization
In this recipe I also use the custom theme that I created, so you can skip the code below if you don’t want to use my theme or already create it from the previous recipe in this series.Static Plot

Animation Plot
To make the plot more lively and more interesting, we can use the animation, we can shown the line chart each year one by one using the code below and directly save it into.gif
file:
