PROTECTED SOURCE SCRIPT
Weekly DCA & Yearly Table

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が提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 ただし、制限なく自由に使用できます – 詳細はこちらでご確認ください。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。