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.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.