Yang ditampilkan
- Active global session windows
- London–New York overlap
- Configurable session times and timezone
Highlights Asia, London, New York and overlap windows using a configurable timezone.
//@version=6
indicator("Chartara — Session Lantern", overlay = true)
// Educational session overlay. Session labels do not imply liquidity or execution quality.
string timezoneInput = input.string("Etc/UTC", "Timezone")
string asiaSession = input.session("0000-0800:23456", "Asia session")
string londonSession = input.session("0800-1600:23456", "London session")
string newYorkSession = input.session("1300-2100:23456", "New York session")
bool showAsia = input.bool(true, "Show Asia")
bool showLondon = input.bool(true, "Show London")
bool showNewYork = input.bool(true, "Show New York")
bool inAsia = showAsia and not na(time(timeframe.period, asiaSession, timezoneInput))
bool inLondon = showLondon and not na(time(timeframe.period, londonSession, timezoneInput))
bool inNewYork = showNewYork and not na(time(timeframe.period, newYorkSession, timezoneInput))
color sessionColor = inLondon and inNewYork ? color.new(#B594FF, 84) : inNewYork ? color.new(#7CA8FF, 88) : inLondon ? color.new(#43D9B3, 88) : inAsia ? color.new(#F4C95D, 90) : na
bgcolor(sessionColor, title = "Active session")
plotchar(inAsia and not inAsia[1], "Asia opens", "A", location.top, color = #C59A25, size = size.tiny)
plotchar(inLondon and not inLondon[1], "London opens", "L", location.top, color = #16A085, size = size.tiny)
plotchar(inNewYork and not inNewYork[1], "New York opens", "N", location.top, color = #4D7FEA, size = size.tiny)
Panduan mengarah ke perbandingan relevan, bukan pendaftaran paksa.
Konten ini hanya untuk edukasi dan informasi umum, bukan nasihat investasi, keuangan, hukum, atau pajak dan bukan penawaran untuk bertransaksi. Forex dan CFD berisiko tinggi dan seluruh dana dapat hilang. Periksa hukum, izin, ketentuan produk, dan kesesuaian secara mandiri sebelum mengambil keputusan. Chartara tidak menjamin keakuratan, kelengkapan, atau hasil.