OPEN-SOURCE SCRIPT

DRIP Yearly Performance

Overview: The DRIP Yearly Performance indicator is designed for long-term investors using Dividend Reinvestment Plans (DRIP). This script calculates both the total and average yearly performance of an asset, factoring in the reinvestment of dividends over time. It provides key insights into portfolio growth by tracking the number of accumulated units from dividend reinvestment and how this impacts overall performance.

Key Features:

  • Dividend Reinvestment (DRIP) Calculation: Automatically adjusts the number of units held by reinvesting dividends, enhancing the calculation of total returns.
  • Custom Start Date: Choose a custom start date to begin tracking performance from a specific time period, allowing for more tailored performance analysis.
  • Performance Metrics: Displays key metrics such as the initial investment value, current value, total performance percentage, and the average yearly performance, all in an easy-to-read table format.
  • Visual Representation: Plots accumulated units and overall performance on the chart, with customizable colors for clarity.


Inputs Explained:

  1. Start Quantity: Define the initial number of units (shares) held at the start of the investment.
  2. Dividend Type: Choose between tracking Net or Gross dividends for reinvestment purposes. Net is always better unless you have a special case and you need to base your calculations on gross.
  3. Start Date: Select a custom date to begin tracking performance. This allows users to focus on performance from any historical point.
  4. Table Size: Customize the size of the text in the performance table to suit your visual preferences.
  5. Performance Line Color: Choose the color of the performance plot line that tracks the value of your investment over time.
  6. Accumulator Line Color: Customize the color of the line that tracks the accumulated units (shares) due to reinvested dividends.


Who Can Benefit: This indicator is ideal for long-term investors and dividend growth investors who want to measure their investment returns over time while factoring in the effects of dividend reinvestment.

Use Cases:

  • Tracking Dividend Impact: See how reinvesting dividends enhances your overall portfolio value.
  • Custom Performance Analysis: Set a custom start date to analyze performance from a specific point in time.
  • Visualizing Growth: Use the chart's plots to visually track your growing number of shares (units) and overall performance.
DividendsDRIPGrowthlongterminvestingValue

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明