OPEN-SOURCE SCRIPT

Combined OP Lines and Daily High/Low

186


This Pine Script v6 indicator for TradingView ("Combined OP Lines and Daily High/Low") overlays the chart and visualizes in UTC+02:00 (manually adjust for DST):

OP Lines: At 0:00 (new day) and 6:00 AM, draws black horizontal lines at the opening price (extend right), vertical black markers, and labels ("OP 0:00"/"OP 6:00"). Old elements are deleted.
Previous Day High/Low: Blue thick horizontal lines (extend right) with labels ("Daily High/Low: [Price]"), based on request.security (daily TF, high/low[1]).

Useful for day trading: Marks intraday sessions and prior-day extremes as support/resistance. Purely visual, dynamically updated, efficient (resource management). Limitations: Fixed timezone, no alerts, colors could be optimized.

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.