• Products
  • Community
  • Markets
  • Brokers
  • More
Get started
  • Community
  • /Indicators and strategies
  • /Pdh_pdl_pwl_pwh_pmh_pml

Pdh_pdl_pwl_pwh_pmh_pml

All Levels This script draws key price levels on your chart, including: • Previous Day (PD): High, Low, Close • Day Before Yesterday (DBY): High, Low, Close • Pre-Market (PM): High and Low • Today’s levels: High, Low, Open, Close • Current bar levels: High, Low, Open, Close Each level is displayed as a horizontal line with a label showing the level value. It works on any timeframe, including 1-minute charts, and automatically updates as new bars form. ⸻ 2. Features 1. Custom Colors Each type of level has its own color, declared as a const color. For example: • Previous Day High = red • Today’s Close = gold • Pre-Market High = fuchsia 2. Right-Extending Lines All horizontal levels extend to the right, so you always see them on the chart. 3. Persistent Labels Every line has a label at the right side showing its name and price. For example: • PDH 422 • TODL 415.5 4. Dynamic Updates The script updates automatically whenever a new bar forms, so levels stay accurate. 5. Session-Based Pre-Market You can define the pre-market session (default “04:00–09:30 EST”). The script calculates the high and low of this session only. 6. Checkbox Inputs You can enable/disable entire groups of levels: • Previous Day • Day Before Yesterday • Pre-Market • Today • Current bar
Pine Script® indicator
by nasdaq_girl

Select market data provided by ICE Data Services. Select reference data provided by FactSet. Copyright © 2025 FactSet Research Systems Inc.Copyright © 2025, American Bankers Association. CUSIP Database provided by FactSet Research Systems Inc. All rights reserved. SEC fillings and other documents provided by Quartr.© 2025 TradingView, Inc.

More than a product
  • Supercharts
Screeners
  • Stocks
  • ETFs
  • Bonds
  • Crypto coins
  • CEX pairs
  • DEX pairs
  • Pine
Heatmaps
  • Stocks
  • ETFs
  • Crypto
Calendars
  • Economic
  • Earnings
  • Dividends
More products
  • Yield Curves
  • Options
  • News Flow
  • Pine Script®
Apps
  • Mobile
  • Desktop
Community
  • Social network
  • Wall of Love
  • Refer a friend
  • House Rules
  • Moderators
Ideas
  • Trading
  • Education
  • Editors' picks
Pine Script
  • Indicators & strategies
  • Wizards
  • Freelancers
Tools & subscriptions
  • Features
  • Pricing
  • Market data
Trading
  • Overview
  • Brokers
Special offers
  • CME Group futures
  • Eurex futures
  • US stocks bundle
About company
  • Who we are
  • Space mission
  • Blog
  • Careers
  • Media kit
Merch
  • TradingView store
  • Tarot cards for traders
  • The C63 TradeTime
Policies & security
  • Terms of Use
  • Disclaimer
  • Privacy Policy
  • Cookies Policy
  • Accessibility Statement
  • Security tips
  • Bug Bounty program
  • Status page
Business solutions
  • Widgets
  • Charting libraries
  • Lightweight Charts™
  • Advanced Charts
  • Trading Platform
Growth opportunities
  • Advertising
  • Brokerage integration
  • Partner program
  • Education program
Community
  • Social network
  • Wall of Love
  • Refer a friend
  • House Rules
  • Moderators
Ideas
  • Trading
  • Education
  • Editors' picks
Pine Script
  • Indicators & strategies
  • Wizards
  • Freelancers
Business solutions
  • Widgets
  • Charting libraries
  • Lightweight Charts™
  • Advanced Charts
  • Trading Platform
Growth opportunities
  • Advertising
  • Brokerage integration
  • Partner program
  • Education program
Look FirstLook First