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.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.