OPEN-SOURCE SCRIPT
HEKIMOGLU CAPITAL

What This Indicator Does
It's a Pine Script overlay for TradingView that visualizes a theorized ~204-week (~4-year) repeating cycle in BTC price history.
Plots: 6 historical dates (Jan 2015, Dec 2017, Dec 2018, Nov 2021, Nov 2022, Oct 2025) marked as alternating lows and highs, plus 3 projected future dates (Oct 2026, Sep 2029, Sep 2030) calculated by continuing the same pattern.
Colors candle backgrounds based on which "phase" of the cycle each period falls into — a subtle teal tint for low→high legs (152 weeks), a subtle red tint for high→low legs (52 weeks). Candle bodies keep their normal green/red — only the background band changes.
How It Works
Fixed timestamps for each anchor date are hardcoded using timestamp().
xloc.bar_time is used instead of bar index, so the lines land on the correct calendar date regardless of chart timeframe (1H, 4H, 1D, 1W all work).
Vertical lines + labels are drawn once, guarded by barstate.isfirst, so they don't redraw on every bar.
A loop checks which pair of consecutive anchor dates the current bar's time falls between, then applies bgcolor() accordingly — solid for confirmed history, dashed gray for the unconfirmed future projections.
Two toggle inputs let you turn the lines and/or the background coloring on/off independently.
Underlying logic: low→high always takes 152 weeks, high→low always takes 52 weeks, alternating — so skipping one point (low to low, or high to high) always equals exactly 204 weeks. That's the "204-week" pattern name.
It's a Pine Script overlay for TradingView that visualizes a theorized ~204-week (~4-year) repeating cycle in BTC price history.
Plots: 6 historical dates (Jan 2015, Dec 2017, Dec 2018, Nov 2021, Nov 2022, Oct 2025) marked as alternating lows and highs, plus 3 projected future dates (Oct 2026, Sep 2029, Sep 2030) calculated by continuing the same pattern.
Colors candle backgrounds based on which "phase" of the cycle each period falls into — a subtle teal tint for low→high legs (152 weeks), a subtle red tint for high→low legs (52 weeks). Candle bodies keep their normal green/red — only the background band changes.
How It Works
Fixed timestamps for each anchor date are hardcoded using timestamp().
xloc.bar_time is used instead of bar index, so the lines land on the correct calendar date regardless of chart timeframe (1H, 4H, 1D, 1W all work).
Vertical lines + labels are drawn once, guarded by barstate.isfirst, so they don't redraw on every bar.
A loop checks which pair of consecutive anchor dates the current bar's time falls between, then applies bgcolor() accordingly — solid for confirmed history, dashed gray for the unconfirmed future projections.
Two toggle inputs let you turn the lines and/or the background coloring on/off independently.
Underlying logic: low→high always takes 152 weeks, high→low always takes 52 weeks, alternating — so skipping one point (low to low, or high to high) always equals exactly 204 weeks. That's the "204-week" pattern name.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.