OPEN-SOURCE SCRIPT
Telah dikemas kini [Kpt-Ahab] Savings Plan IND

[Kpt-Ahab] Savings Plan Indicator
This indicator simulates and documents a complete savings plan directly on the TradingView chart. Deposits, dividends, purchases, sales, and costs are processed through a shared savings-plan account, making the cash balance and cash flow transparent and traceable.
Features:
- Initial capital with first purchase
- Regular deposits with optional periodic increases
- Fractional or whole units
- Automatic use of available cash when the regular DCA budget is insufficient to purchase the minimum tradable quantity
- Chart warning when a DCA purchase cannot be executed
- Four manual or adaptive DIP-buy levels
- Automatic profiles: Defensive, Balanced, and Aggressive
- Manual or automatic profit taking with trailing and cash rebalancing
- Minimum price increase required between two TP sales
- Transactions at the confirmed bar close or at the bar open
- Dividend processing
- Transaction, broker, custody, and dividend costs
- TradingView alerts for DCA, DIP, and TP events
- Detailed purchase and sale labels
- Marking of the highest profit point and the largest portfolio drawdown
- Full statistics table or compact mobile view
- Tables, labels, and alert messages in English, German, or French
The statistics include, among other values, deposits, cash balance, units held, cost basis, market value, portfolio value, realized and unrealized results, total costs, drawdowns, cumulative return, and the annualized return (XIRR).
Mobile Table
A reduced mobile view can be enabled for smaller screens. It displays the most important portfolio, return, drawdown, cost, and transaction information using shorter labels and smaller text.
Transaction and Alert Notes
With "Confirmed close", signals are triggered only after the bar has been confirmed at its closing price. On daily charts, the exchange may already be closed by the time the signal becomes available.
With "Bar open", the evaluation is performed at the opening price of the new bar. The Auto model uses only confirmed data from the previous bar. The opening price of the new bar is not necessarily identical to the previous closing price, for example when a price gap occurs.
The indicator does not place real orders. Automatic settings and historical results do not guarantee future performance and do not constitute investment advice.
This indicator simulates and documents a complete savings plan directly on the TradingView chart. Deposits, dividends, purchases, sales, and costs are processed through a shared savings-plan account, making the cash balance and cash flow transparent and traceable.
Features:
- Initial capital with first purchase
- Regular deposits with optional periodic increases
- Fractional or whole units
- Automatic use of available cash when the regular DCA budget is insufficient to purchase the minimum tradable quantity
- Chart warning when a DCA purchase cannot be executed
- Four manual or adaptive DIP-buy levels
- Automatic profiles: Defensive, Balanced, and Aggressive
- Manual or automatic profit taking with trailing and cash rebalancing
- Minimum price increase required between two TP sales
- Transactions at the confirmed bar close or at the bar open
- Dividend processing
- Transaction, broker, custody, and dividend costs
- TradingView alerts for DCA, DIP, and TP events
- Detailed purchase and sale labels
- Marking of the highest profit point and the largest portfolio drawdown
- Full statistics table or compact mobile view
- Tables, labels, and alert messages in English, German, or French
The statistics include, among other values, deposits, cash balance, units held, cost basis, market value, portfolio value, realized and unrealized results, total costs, drawdowns, cumulative return, and the annualized return (XIRR).
Mobile Table
A reduced mobile view can be enabled for smaller screens. It displays the most important portfolio, return, drawdown, cost, and transaction information using shorter labels and smaller text.
Transaction and Alert Notes
With "Confirmed close", signals are triggered only after the bar has been confirmed at its closing price. On daily charts, the exchange may already be closed by the time the signal becomes available.
With "Bar open", the evaluation is performed at the opening price of the new bar. The Auto model uses only confirmed data from the previous bar. The opening price of the new bar is not necessarily identical to the previous closing price, for example when a price gap occurs.
The indicator does not place real orders. Automatic settings and historical results do not guarantee future performance and do not constitute investment advice.
Nota Keluaran
[Kpt-Ahab] Savings Plan Indicator
Dieser Indikator simuliert und dokumentiert einen vollständigen Sparplan direkt im TradingView-Chart. Einzahlungen, Dividenden, Käufe, Verkäufe und Kosten werden über ein gemeinsames Sparplankonto verbucht, sodass Cashbestand und Geldfluss nachvollziehbar bleiben.
Funktionen:
- Startkapital mit Erstkauf
- regelmäßige Einzahlungen mit optionaler Erhöhung
- Bruchanteile oder ganze Anteile
- automatische Verwendung von verfügbarem Cash, wenn das reguläre DCA-Budget nicht für die Mindestmenge ausreicht
- Chartwarnung bei nicht ausführbarem DCA-Kauf
- vier manuelle oder adaptive DIP-Kaufstufen
- automatische Profile: Defensive, Balanced und Aggressive
- manuelle oder automatische Gewinnmitnahmen mit Trailing und Cash-Rebalancing
- Mindestkursanstieg zwischen zwei TP-Verkäufen
- Transaktionen am bestätigten Schlusskurs oder zur Kerzeneröffnung
- Dividendenverarbeitung
- Transaktions-, Broker-, Depot- und Dividendenkosten
- TradingView-Alarme für DCA-, DIP- und TP-Ereignisse
- detaillierte Kauf- und Verkaufslabels
- Markierung des höchsten Gewinns und des größten Portfolio-Drawdowns
- vollständige Statistik oder kompakte Mobilansicht
- Tabellen, Labels und Alarmmeldungen auf Englisch, Deutsch oder Französisch
Die Statistik zeigt unter anderem Einzahlungen, Cashbestand, gehaltene Anteile, Kostenbasis, Marktwert, Portfoliowert, realisierte und unrealisierte Ergebnisse, Gesamtkosten, Drawdowns, kumulative Rendite sowie die annualisierte Jahresrendite (XIRR).
Mobile Tabelle
Für kleinere Bildschirme kann eine reduzierte Mobilansicht aktiviert werden. Sie zeigt die wichtigsten Portfolio-, Rendite-, Drawdown-, Kosten- und Transaktionsdaten mit kürzeren Bezeichnungen und kleinerer Schrift.
Hinweis zu Transaktionen und Alarmen
Bei "Confirmed close" werden Signale erst nach dem bestätigten Kerzenschluss ausgelöst. Bei Tageskerzen kann die Börse zu diesem Zeitpunkt bereits geschlossen sein.
Bei "Bar open" erfolgt die Auswertung zum Eröffnungskurs der neuen Kerze. Das Auto-Modell verwendet dabei ausschließlich bestätigte Daten der vorherigen Kerze. Der Eröffnungskurs der neuen Kerze ist nicht zwingend identisch mit dem vorherigen Schlusskurs, beispielsweise bei Kurslücken.
Der Indikator führt keine echten Orders aus. Automatische Einstellungen und historische Ergebnisse sind keine Garantie für zukünftige Entwicklungen und stellen keine Anlageberatung dar.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.