lorencip

Dollar Cost Average [lorencip]

lorencip Cập nhật   
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

Phát hành các Ghi chú:
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.
Mã được bảo vệ
Tập lệnh này được xuất bản mã nguồn đóng và bạn có thể sử dụng một cách tự do. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ. Bạn không thể xem hoặc sửa đổi mã nguồn.
Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?