Shows 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.
Making Money From My Work? ⚡ Lightning Network Satoshi Tips Accepted tippin.me/@antic
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 :)
***Update with Continuous Calculation mode by default***
Shows 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
uses a continuous calculation mode to create static reports but has a boolean option for a sliding window (updates as time progresses)
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.
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 :)
fixed issue where continuous mode was stopping as soon as it couldn't calculate a quantity (whenever reaching back through the intended start date before the ticker was available on the market). Now it will only calculate having spent and bought shares up to the start of the ticker's availability.
Again, source code in bash :)
릴리즈 노트
Updated rolling window mode to use interval instead of always rolling on daily candles. Now it looks a the active interval and uses that for all the periods.
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.