OPEN-SOURCE SCRIPT
ICT Timeline Istanbul (UTC+3) — FINAL CLEAN

//version=6
indicator("ICT Timeline Istanbul (UTC+3) — FINAL CLEAN", overlay=true)
// ==== helper ====
isExact(t) => not na(time(timeframe.period, t, "Europe/Istanbul"))
isRange(t) => not na(time(timeframe.period, t, "Europe/Istanbul"))
// ============================================================
// === NY MARKERS (vertical lines) — Istanbul ===
// ============================================================
ny_m1 = isExact("150000-150000") // 15:00 TR
ny = isExact("160000-160000") // 16:00 TR
ny_p1 = isExact("170000-170000") // 17:00 TR
plot(ny_m1 ? 10e20 : na, style=plot.style_linebr, color=color.teal, linewidth=1, title="NY-1 (15:00)")
plot(ny ? 10e20 : na, style=plot.style_linebr, color=color.teal, linewidth=1, title="NY (16:00)")
plot(ny_p1 ? 10e20 : na, style=plot.style_linebr, color=color.teal, linewidth=1, title="NY+1 (17:00)")
// ============================================================
// === MACRO WINDOWS (Auction — FOMC) — Istanbul ===
// ============================================================
auction = isExact("210000-210000") // 21:00 TR
fomc = isExact("220000-220000") // 22:00 TR
plot(auction ? 10e20 : na, style=plot.style_linebr, color=color.red, linewidth=1, title="Auction (21:00)")
plot(fomc ? 10e20 : na, style=plot.style_linebr, color=color.orange, linewidth=1, title="FOMC (22:00)")
// ============================================================
// === SILVER BULLET WINDOWS (full shading) — Istanbul ===
// ============================================================
// London SB : 11–12
// NY AM SB : 18–19
// NY PM SB : 22–23
in_lon = isRange("110000-120000")
in_am = isRange("180000-190000")
in_pm = isRange("220000-230000")
bgcolor(in_lon ? color.new(color.blue, 85) : na, title="London SB")
bgcolor(in_am ? color.new(color.aqua, 85) : na, title="NY AM SB")
bgcolor(in_pm ? color.new(color.purple, 85) : na, title="NY PM SB")
indicator("ICT Timeline Istanbul (UTC+3) — FINAL CLEAN", overlay=true)
// ==== helper ====
isExact(t) => not na(time(timeframe.period, t, "Europe/Istanbul"))
isRange(t) => not na(time(timeframe.period, t, "Europe/Istanbul"))
// ============================================================
// === NY MARKERS (vertical lines) — Istanbul ===
// ============================================================
ny_m1 = isExact("150000-150000") // 15:00 TR
ny = isExact("160000-160000") // 16:00 TR
ny_p1 = isExact("170000-170000") // 17:00 TR
plot(ny_m1 ? 10e20 : na, style=plot.style_linebr, color=color.teal, linewidth=1, title="NY-1 (15:00)")
plot(ny ? 10e20 : na, style=plot.style_linebr, color=color.teal, linewidth=1, title="NY (16:00)")
plot(ny_p1 ? 10e20 : na, style=plot.style_linebr, color=color.teal, linewidth=1, title="NY+1 (17:00)")
// ============================================================
// === MACRO WINDOWS (Auction — FOMC) — Istanbul ===
// ============================================================
auction = isExact("210000-210000") // 21:00 TR
fomc = isExact("220000-220000") // 22:00 TR
plot(auction ? 10e20 : na, style=plot.style_linebr, color=color.red, linewidth=1, title="Auction (21:00)")
plot(fomc ? 10e20 : na, style=plot.style_linebr, color=color.orange, linewidth=1, title="FOMC (22:00)")
// ============================================================
// === SILVER BULLET WINDOWS (full shading) — Istanbul ===
// ============================================================
// London SB : 11–12
// NY AM SB : 18–19
// NY PM SB : 22–23
in_lon = isRange("110000-120000")
in_am = isRange("180000-190000")
in_pm = isRange("220000-230000")
bgcolor(in_lon ? color.new(color.blue, 85) : na, title="London SB")
bgcolor(in_am ? color.new(color.aqua, 85) : na, title="NY AM SB")
bgcolor(in_pm ? color.new(color.purple, 85) : na, title="NY PM SB")
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.