krugman25

Krugman's Dynamic DCA

krugman25 Telah dikemas kini   
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.
Nota Keluaran:
*Updated panel name
Nota Keluaran:
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.
Nota Keluaran:
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.
Nota Keluaran:
Added decimals to script variables to allow for DCA coins that are sub $1.
Nota Keluaran:
Publishing script to update the chart
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Ingin menggunakan skrip ini pada carta?