OPEN-SOURCE SCRIPT

Time Range Marker By BCB Elevate

111
The Time Range Marker is a simple yet powerful visual tool for traders who want to focus on specific time intervals within the trading day. This indicator highlights a custom time range on your chart using a background color, helping you visually isolate key trading sessions or event windows such as:

Market open/close hours
News release periods
High-volatility trading zones
Personal strategy testing windows

⚙️ Key Features:
Customizable start and end time (hour & minute)
Works across all intraday timeframes
Adjustable highlight color to match your chart theme
Built using Pine Script v5 for speed and flexibility

🔧 Settings:
Start Hour / Minute – Set the beginning of the time range (in 24-hour format)
End Hour / Minute – Define when the range ends
Highlight Color – Choose the background color for better visibility

🕒 Timezone Note:
The indicator uses UTC time by default to ensure accuracy across markets. If your broker uses a different timezone (like EST, IST, etc.), the script can be adjusted to reflect your local market hours.

✅ How to Use the Time Range Marker Indicator

This indicator is used to visually highlight a specific time window each trading day, such as:

Market open or close sessions (e.g., NYSE, London, Tokyo)
High-impact news release periods
Custom time slots for strategy testing or scalping

🛠️ Installation Steps
Open TradingView and go to any chart.

Click on Pine Editor at the bottom of the screen.
Copy and paste the full Pine Script (shared above) into the editor.
Click the “Add to Chart” ▶️ button.

The indicator will appear on the chart with a highlighted background during the time range you set.

⚙️ How to Customize the Time Range
After adding the indicator:
Click the gear icon ⚙️ next to the indicator’s name on the chart.

Adjust the following settings:
Start Hour / Start Minute: The beginning of your time range (in 24-hour format).
End Hour / End Minute: When the highlight should stop.
Highlight Color: Pick a color and transparency for visual clarity.
Click OK to apply changes.

🕒 Timezone Consideration
By default, the indicator uses UTC (Coordinated Universal Time).

To match your broker’s timezone (e.g., EST, IST, etc.), you'll need to adjust the script by changing:

Pine Script®
sessStart = timestamp("Etc/UTC", ...) sessEnd = timestamp("Etc/UTC", ...)

to your correct timezone, like "Asia/Kolkata" for IST or "America/New_York" for EST.

Let me know your broker or local timezone, and I’ll update it for you.

📈 Tips for Traders
Combine this with volume, price action, or breakout indicators to focus your strategy on high-probability time windows.

Use multiple versions of this script if you want to highlight more than one time range in a day.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。