Công cụ hiển thị
- 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)
Mỗi hướng dẫn dẫn tới so sánh phù hợp, không ép đăng ký.
Nội dung chỉ nhằm mục đích giáo dục và cung cấp thông tin chung, không phải tư vấn đầu tư, tài chính, pháp lý hoặc thuế. Forex và CFD có rủi ro cao và có thể làm mất toàn bộ số tiền. Hãy tự kiểm tra pháp luật, giấy phép, điều khoản và mức độ phù hợp trước khi quyết định. Chartara không bảo đảm tính chính xác, đầy đủ hoặc kết quả.