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
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.