OPEN-SOURCE SCRIPT

Bitcoin Halving Dates by cryptanski

78
//version=5
indicator("Bitcoin Halving Dates", overlay=true)

// Даты халвингов
halving_dates = array.new_int()
array.push(halving_dates, timestamp(2012, 11, 28, 0, 0))
array.push(halving_dates, timestamp(2016, 7, 9, 0, 0))
array.push(halving_dates, timestamp(2020, 5, 11, 0, 0))
array.push(halving_dates, timestamp(2024, 4, 20, 0, 0)) // будущий халвинг

// Отображение линий
for i = 0 to array.size(halving_dates) - 1
line.new(x1=array.get(halving_dates, i), y1=high, x2=array.get(halving_dates, i), y2=low, width=2, color=color.blue, style=line.style_dashed)
label.new(array.get(halving_dates, i), high, "Halving", color=color.white, size=size.small, textcolor=color.blue, style=label.style_label_down)

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。