Dollar Cost Average Cost BasisShows the cumulative cost-basis for buying a fixed $ quantity of the asset over various plots: 30 days, 60, 90, 120, 180, and 1-6 years
when the current price is profitable for the DCA plot, fills red
when it will reduce the cost-basis for a DCA investor to buy more, turns green
draws heavier support lines for longer term DCA investors
intensifies colors to show where larger pools of players stand with DCA profitability
Note: since pinescript doesn't have arrays/collections and you can't plot within a for loop anyway, the code repo contains gen.dcacb.sh, which generates the repetitive pinescript using bash.
Source Code here:
github.com
Making Money From My Work?
⚡ Lightning Network Satoshi Tips Accepted tippin.me
With the advent of Bitcoin Lightning Network, you can tip me as little as 1 satoshi (.00000001 $BTC). 1000 satoshi is about $.05 as of this writing. Any amount is appreciated :)
Don't have Lightning?
Blue Wallet (for iOS and Android)
Eclair Wallet (for Android)