OPEN-SOURCE SCRIPT

BTC DCA AHR999 Strategy

224

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:
ahr999 Index


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提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。