OPEN-SOURCE SCRIPT
已更新 [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.
版本注释
[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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。