OPEN-SOURCE SCRIPT

Bitcoin Halving Dates by cryptanski

76
//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)

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.