OPEN-SOURCE SCRIPT
BTC DCA AHR999 Strategy

This is an easy to understand and perform DCA strategy, based on the AHR999 indicator.
The initial strategy is based on the AHR999 indicator script from discountry, that is with this script transformed into a TV strategy:

The logic is pretty simple:
- we do a DCA buy every week (in the code it is set on monday)
- we do a small DCA buy, as long as AHR999 < 1.2 (signaling moderate BTC price)
- we do a big DCA buy, as long as AHR < 0.45 (signaling undervalued BTC price)
- we skip buys, as long as AHR > 1.2 (signaling overvalued BTC price)
Values for "small DCA buy" and "big DCA buy" can be adjusted, aswell as timeframe, we want the backtest for and a scale factor, to show the AHR999 indicator in the plot, aswell as the spent capital and the net worth of the accumulated BTC.
The scale factor of the plot can be varied, depending on the timeframe and input capital you are using (recommendation is to use a scale factor to be able to see the AHR999 indicator itself on the chart in a meaningful way).
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。