PROTECTED SOURCE SCRIPT
已更新 Dollar Cost Average [lorencip]

This indicator shows the return of a dollar cost average strategy.
The 4 values in the output are:
This first version works with cryptocurrencies and currencies, it's not accurate for stocks (it "purchases" decimals of a share/stock).
Lorenzo Cipriani

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
版本注释
New version of the script now works also for stocks in a more accurate way. It calculates dividends and add them to the total of the profits.The script, automatically recognizes if it's applied to a stock or crypto symbol.
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。