OPEN-SOURCE SCRIPT
Aktualisiert DCA Position vs Cash Holding

This indicator visualizes the performance of a simulated dollar-cost averaging (DCA) strategy compared to simply holding cash. It models the cumulative position size and value of buying a fixed dollar amount of the asset per candle over a configurable lookback period.
🔍 What It Shows:
Simulates buying $1 (or any amount) of the asset per candle
Tracks the total units accumulated and their current market value
Plots the difference between the DCA position value and total cash spent
Highlights when DCA buyers are underwater — a potential contrarian buy zone
📈 How to Use:
Values above zero indicate DCA outperformance vs cash
Values below zero signal structural drawdown — often a high-conviction bulk-buy opportunity
Use as a sentiment overlay to time discretionary adds or confirm regime shifts
⚙️ Inputs:
Lookback Window: Number of candles used to simulate DCA accumulation
DCA Amount: Dollar value purchased per candle
This tool is ideal for traders seeking to quantify accumulation efficiency, identify cycle inflection points, and visualize sentiment-weighted cost basis dynamics.
🔍 What It Shows:
Simulates buying $1 (or any amount) of the asset per candle
Tracks the total units accumulated and their current market value
Plots the difference between the DCA position value and total cash spent
Highlights when DCA buyers are underwater — a potential contrarian buy zone
📈 How to Use:
Values above zero indicate DCA outperformance vs cash
Values below zero signal structural drawdown — often a high-conviction bulk-buy opportunity
Use as a sentiment overlay to time discretionary adds or confirm regime shifts
⚙️ Inputs:
Lookback Window: Number of candles used to simulate DCA accumulation
DCA Amount: Dollar value purchased per candle
This tool is ideal for traders seeking to quantify accumulation efficiency, identify cycle inflection points, and visualize sentiment-weighted cost basis dynamics.
Versionshinweise
Profits as a percentage of cash deployedVersionshinweise
Shade negative and positive profit regionsOpen-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.