OPEN-SOURCE SCRIPT
Actualizado

Opening Price Level Breakout

220
A lightweight yet effective indicator designed for traders who need to monitor price breakouts at key historical levels — without cluttering their setup with multiple scripts.

What it does
Plots a fixed price level on the chart and fires an alert when the daily opening price breaks above it. Simple premise, high signal value: the opening price is a cleaner breakout trigger than an intraday cross, filtering out noise and false moves caused by wicks.
The problem it solves
TradingView's native alert system does not support dynamic level recalculation across a watchlist in bulk. Setting up separate scripts for 3M, 6M, and 12M highs across multiple tickers burns through your alert slots fast — especially on Essential and Plus plans where limits are tight. This indicator consolidates the logic into a single, reusable tool: one script, one alert per ticker, any level you need.

Inputs

Price Level — the exact price to monitor (e.g. the 3M, 6M, or 12M high pulled from your analysis)
Level Label — a descriptive tag for your own reference (Max 3M / Max 6M / Max 12M / Custom)
Level Color — visual customization for multi-instance use on the same chart

How to use it

Add the indicator to your chart and set the Price Level input to the historical high you want to monitor
Create an alert using the Opening Price Level Breakout condition with trigger set to Once per bar on the 1D timeframe
Repeat for each ticker in your watchlist
Done — TradingView's servers handle execution; no need to keep the any chart open!

Pro tip: You can stack multiple instances of this indicator on the same chart — one per level — each with a different color. One alert slot per instance, full multi-level coverage on a single ticker.
Note: Due to a Pine Script constraint, alertcondition only accepts constant strings in the message field. Dynamic label injection at runtime is not supported, so the level label is intentionally kept as a chart-side reference only.

breakout, alerts, opening price, historical high, watchlist, daily.
Notas de prensa
v2.0 Update — Ticker Identification Label

This update solves a common pain point when running multiple instances
of this indicator on the same chart for different tickers/price levels.

Previously, when stacking several "Opening Price Level Breakout" instances
(e.g. one for Max 3M, one for Max 6M, one for Max 12M, or across different
tickers in multi-chart layouts), it became difficult to tell at a glance
which plotted line belonged to which ticker and which level.

What's new:
- Added a dynamic on-chart label showing the ticker symbol, the level
label (Max 3M / 6M / 12M / Custom), and the exact price value
- The label auto-updates on the last bar, so it always reflects the
current chart context
- No changes to the breakout logic or alert behavior — fully backward
compatible with existing alerts

This makes it much easier to manage watchlist-style setups with multiple
levels active at once, without losing track of which line refers to which
ticker.
Notas de prensa
v3.0 Update — Manual Reference Ticker for Multi-Instance Setups

This update addresses a limitation that became apparent when running
multiple instances of this indicator on the same chart, each tracking
a different ticker's price level.

The problem:
The on-chart label introduced in v2.0 used the chart's active symbol
(syminfo.ticker) to identify each level. This worked well for a single
instance, but caused confusion when several instances were stacked on
one chart — every label displayed the same active ticker, regardless of
which symbol the price level actually referred to.

What's new:
- Added a new "Reference Ticker" input field, allowing you to manually
label which symbol a given price level belongs to
- The on-chart label now displays this manually entered ticker instead
of the chart's active symbol
- With multiple instances active, each one can now correctly show its
own reference ticker (e.g. AAPL, AMD, GOOGL), even while viewing an
unrelated chart

Note: this field is for visual reference only. The alert itself is still
triggered based on the actual chart/ticker the indicator and alert were
created on — the Reference Ticker input does not change which symbol is
being monitored.

Fully backward compatible — no changes to breakout logic or alert
conditions.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.