Dollar Cost Average [lorencip]This indicator shows the return of a dollar cost average strategy.
The 4 values in the output are:
the amount of the investment
the number of items purchased for that symbol
the total value of the items purchased
the result of the investment in percentage
This first version works with cryptocurrencies and currencies, it's not accurate for stocks (it "purchases" decimals of a share/stock).
Lorenzo Cipriani
DCA
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)
BACKTEST PARTNERS DCA MEGA MAPPER STUDY SCRIPT FOR PROFITTRAILERBacktest Partners Mega Mapper (BPMM) is an advanced DCA analysis script, allowing cryptocurrency traders to sync their ProfitTrailer trading bot buy levels, triggers and order sizes with their technical analysis charting results in TradingView.
For a complete functional demo, and to learn more about subscribing to this invite-only script, please visit us at backtest.partners