krugman25

Krugman's Dynamic DCA

krugman25 Cập nhật   
This script helps you create a DCA (dollar-cost averaging) strategy for your favorite markets and calculates the DCA value for each bar. This can be used to DCA daily, weekly, bi-weekly, etc.

Configuring the indicator:
-DCA Starting Price: the price you want to begin DCA'ing
-DCA Base Amount: the $ amount you will DCA when price is half of your starting price
-DCA Max Amount: the maximum amount you want to DCA regardless of how low price gets

The DCA scaling works exactly like the formula used to calculated the gain needed to recover from a given % loss. In this case it's calculated from the DCA Starting Price. The idea is to increase the DCA amount linearly with the increased upside potential.
Phát hành các Ghi chú:
*Updated panel name
Phát hành các Ghi chú:
Added a minimum DCA amount to allow users to avoid extremely small DCA buys when the price is close to the dcaStartingPrice. Your DCA will never be smaller than this value as long as price is below the dcaStartingPrice.
Phát hành các Ghi chú:
I've updated the DCA model to use a more simple linear pricing method. It still works very similar to the previous pricing method where

DCA Starting Price = Market price to begin DCA'ing
DCA Plateau Price = Market price where DCA amount stops increasing (i.e. when the DCA amount "plateaus")
DCA Min Amount/b] = The DCA amount when price initially crosses below the starting price
DCA Max Amount/b] = The DCA amount when price reaches or drops below the plateau price. The DCA amount will not increase beyond this value regardless of how far market price goes below the plateau price.
Phát hành các Ghi chú:
Added decimals to script variables to allow for DCA coins that are sub $1.
Phát hành các Ghi chú:
Publishing script to update the chart
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

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 đồ?