OPEN-SOURCE SCRIPT
FOREXSOM | Custom Time High & Low

This indicator plots the high and low of a user-defined intraday candle based on a selected time and timezone.
It provides a structured way to observe how price reacts around specific moments during the trading session by marking the range of a chosen candle.
How it works
The script checks each bar against the selected hour and minute using the chosen timezone.
When the specified time occurs, it captures that candle’s high and low and draws horizontal levels on the chart.
These levels can optionally extend forward to act as reference levels for the remainder of the trading day.
Features
Customizable hour and minute selection
Timezone input with automatic adjustment
High and low levels drawn from the selected candle
Optional extension of levels forward
Automatic reset at the start of each new trading day
Minimal and clean chart output
Use cases
Identifying the range of session opens (e.g., New York or London)
Observing how price interacts with specific intraday candles
Creating consistent reference levels for analysis
Notes
Designed for intraday timeframes
The script does not generate trading signals or predictions
Levels are based solely on historical price data from the selected candle
About this script
This script focuses on isolating a single candle in time and displaying its range in a consistent and repeatable way.
Its purpose is to simplify the process of tracking specific intraday reference levels without adding unnecessary elements to the chart.
Disclaimer
This indicator is provided for informational and educational purposes only.
It does not constitute financial advice. Users should perform their own analysis before making trading decisions.
It provides a structured way to observe how price reacts around specific moments during the trading session by marking the range of a chosen candle.
How it works
The script checks each bar against the selected hour and minute using the chosen timezone.
When the specified time occurs, it captures that candle’s high and low and draws horizontal levels on the chart.
These levels can optionally extend forward to act as reference levels for the remainder of the trading day.
Features
Customizable hour and minute selection
Timezone input with automatic adjustment
High and low levels drawn from the selected candle
Optional extension of levels forward
Automatic reset at the start of each new trading day
Minimal and clean chart output
Use cases
Identifying the range of session opens (e.g., New York or London)
Observing how price interacts with specific intraday candles
Creating consistent reference levels for analysis
Notes
Designed for intraday timeframes
The script does not generate trading signals or predictions
Levels are based solely on historical price data from the selected candle
About this script
This script focuses on isolating a single candle in time and displaying its range in a consistent and repeatable way.
Its purpose is to simplify the process of tracking specific intraday reference levels without adding unnecessary elements to the chart.
Disclaimer
This indicator is provided for informational and educational purposes only.
It does not constitute financial advice. Users should perform their own analysis before making trading decisions.
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.