OPEN-SOURCE SCRIPT
RTH Previous Day OHLC

RTH Previous Day OHLC
This indicator displays an OHLC panel (Open, High, Low, Close) based on the previous day's Regular Trading Hours session of the New York Stock Exchange (RTH: 9:30 AM - 4:00 PM NY time).
What it displays:
📅 The date of the previous trading day
🟠 Open: opening price at 9:30 AM NY
🔴 High: session high
🟢 Low: session low
🔵 Close: closing price at 4:00 PM NY
Why this indicator?
Previous day levels (High, Low, Open, Close) are key references used by many traders to identify support and resistance zones, as well as potential entry points at the start of a new session. Having these levels permanently displayed in a clean panel allows you to keep them in sight at all times, regardless of the timeframe you are using. No more looking up yesterday's levels every morning on specialized platforms or manually scrolling through your chart, everything is right there, automatically updated every day.
Features:
Panel positioned in the top right corner of the chart
Fully customizable colors for each level
Adjustable text size (tiny, small, normal, large)
Works on all instruments and all timeframes
The date displayed always reflects the previous trading day
Compatible with: Stocks, indices, futures, forex and crypto.
This indicator displays an OHLC panel (Open, High, Low, Close) based on the previous day's Regular Trading Hours session of the New York Stock Exchange (RTH: 9:30 AM - 4:00 PM NY time).
What it displays:
📅 The date of the previous trading day
🟠 Open: opening price at 9:30 AM NY
🔴 High: session high
🟢 Low: session low
🔵 Close: closing price at 4:00 PM NY
Why this indicator?
Previous day levels (High, Low, Open, Close) are key references used by many traders to identify support and resistance zones, as well as potential entry points at the start of a new session. Having these levels permanently displayed in a clean panel allows you to keep them in sight at all times, regardless of the timeframe you are using. No more looking up yesterday's levels every morning on specialized platforms or manually scrolling through your chart, everything is right there, automatically updated every day.
Features:
Panel positioned in the top right corner of the chart
Fully customizable colors for each level
Adjustable text size (tiny, small, normal, large)
Works on all instruments and all timeframes
The date displayed always reflects the previous trading day
Compatible with: Stocks, indices, futures, forex and crypto.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.