OPEN-SOURCE SCRIPT

DRIP Yearly Performance

Theo balighmehrez
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

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm