PROTECTED SOURCE SCRIPT

Weekly DCA & Yearly Table

19
This Pine Script indicator simulates a Weekly Dollar Cost Averaging (DCA) strategy directly on your TradingView chart. It automatically calculates a hypothetical portfolio where a fixed dollar amount (default $100) is invested every Friday (or the last trading day of the week) starting from a user-defined year. Visually, it marks every purchase with a green "B" label and plots a yellow line representing your Global Break-Even Price, allowing you to see exactly where your average entry lies relative to current price action. To track performance, it generates a detailed table in the bottom-right corner that breaks down your investment year-by-year, showing total capital invested, "coins" or shares accumulated, average buy price per year, current value, and profit/loss percentage, along with a grand total summary for the entire period.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน