OPEN-SOURCE SCRIPT
Franja de pre-mercado

This indicator highlights the entire period from the end of the regular New York trading session through the overnight and pre-market, until the market reopens the next morning.
By default, the highlighted band starts at 16:30 New York time (15 minutes after the official close at 16:15) and continues without interruption through the night until 09:30 New York time, when the regular session begins.
🔹 Works for both futures and stocks (you can adjust the closing time if needed: 16:15 for futures, 16:00 for equities).
🔹 Option to include or exclude weekends.
🔹 Optional highlight for the last hour of RTH (e.g. 15:15–16:15 NY).
🔹 Fully customizable colors and offsets.
This tool helps traders clearly separate the overnight activity and pre-market moves from the main session, making it easier to analyze price action and market structure.
By default, the highlighted band starts at 16:30 New York time (15 minutes after the official close at 16:15) and continues without interruption through the night until 09:30 New York time, when the regular session begins.
🔹 Works for both futures and stocks (you can adjust the closing time if needed: 16:15 for futures, 16:00 for equities).
🔹 Option to include or exclude weekends.
🔹 Optional highlight for the last hour of RTH (e.g. 15:15–16:15 NY).
🔹 Fully customizable colors and offsets.
This tool helps traders clearly separate the overnight activity and pre-market moves from the main session, making it easier to analyze price action and market structure.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.