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 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항