Chuyển đến nội dung
AlertaChartAlertaScript / docs
AlertaScript / Thời gian và phiên
Trên trang nàyCách hoạt độngÁp dụngVí dụ mã

AlertaScript / Tài liệu

Thời gian và phiên

Đúng ngữ cảnh thị trường.

Cách hoạt động

time() lọc theo khung, phiên và múi giờ. Ngoài phiên có thể trả na.

Áp dụng

Dùng múi giờ có tên để xử lý giờ mùa hè. Dữ liệu phiên mở rộng tùy nguồn; múi giờ hiển thị khác múi giờ quy tắc.

Ví dụ mã

indicator("Session", overlay=true)inSession = not na(time(timeframe.period, "0930-1600:23456", "America/New_York"))bgcolor(inSession ? color.new(color.blue, 92) : na)
AlertaScript

Không tìm thấy kết quả.

Tìm theo tên, tên thay thế hoặc từ khóa.