PROTECTED SOURCE SCRIPT
Updated

Custom Open Price Lines

80
This indicator allows you to plot up to 20 fully customizable horizontal lines based on the opening price of any specific time of day.

It's designed to mark key intraday levels like session opens, news event times, or any other important moment in the trading day with precision and clarity.

Key Features
20 Custom Lines: Configure up to 20 independent lines, each triggered at a specific time you define. Complete Visual Control: For each of the 20 lines, you can individually customize:

  • Start Time: The exact time to capture the opening price (e.g., 09:30).
  • Label Text: A custom name for the line's label (e.g., "RTH Open").
  • Color, Style & Width: Full control over the line's appearance (color, solid/dotted/dashed, thickness).
  • Label Size: Adjust the text size for readability.
  • Individual Cutoff Times: Each line has its own unique "Cutoff Time," allowing you to define precisely when it should stop extending for the day. For example, a 9:30 AM line can be set to stop drawing at 4:00 PM.
  • Session Master Toggles: Use the three "Master Toggles" (e.g., London, NY AM, NY PM) to act as a filter. A custom line will only appear on the chart if its start time falls within one of the master sessions that you have enabled. This lets you quickly show or hide groups of lines based on the current trading session.
  • Lookback Control: Choose how many previous days to display the lines for, or select "Unlimited" to show them on all visible historical data.
  • Timeframe Filter: Set a maximum chart timeframe (e.g., 45 minutes) on which the lines will be visible, preventing clutter on higher timeframes like Daily or Weekly.
Release Notes
Thumbnail Update

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.