krugman25

Krugman's Dynamic DCA

krugman25 Обновлено   
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.
Информация о релизе:
*Updated panel name
Информация о релизе:
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.
Информация о релизе:
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.
Информация о релизе:
Added decimals to script variables to allow for DCA coins that are sub $1.
Информация о релизе:
Publishing script to update the chart
Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать этот скрипт на графике?