OPEN-SOURCE SCRIPT

Premarket High/Low - Kermez

985
Here's a description you can paste into TradingView's publish form. It follows their publication guidelines (clear explanation, no vague claims, no promotion) and is structured how experienced publishers format theirs.

---

**Premarket High/Low**

This indicator tracks the highest high and lowest low made during the US equity premarket session (04:00–09:00 ET by default) and projects those two levels as horizontal lines across the regular trading session (09:30–16:00 ET). Many traders use premarket extremes as intraday support and resistance — breaks above the PM high or below the PM low often coincide with momentum moves during regular hours.

**How it works**

During premarket, the script records the running high and low of that window. Once premarket closes at 09:00, the levels lock in and are drawn as horizontal lines that extend through to the 16:00 close. Lines do not carry over past the close — each trading day gets its own fresh PM range.

**Features**

- Timezone-aware session detection — works correctly regardless of your chart timezone (default America/New_York, configurable to major exchange zones).
- Live range building during premarket so you can watch the levels form in real time.
- Projected horizontal lines from 09:00 to 16:00, drawn even before the current bar catches up to 16:00.
- Labels at the regular-session open showing the exact PM high and PM low prices.
- Optional premarket background tint to visually highlight the session window.
- Two built-in alert conditions: **Break above Premarket High** and **Break below Premarket Low**, both restricted to regular trading hours so you aren't woken up by overnight prints.
- All colors, line width, and toggles exposed as inputs.

**How to use**

Apply to any US equity, ETF, or index on an intraday timeframe — 1, 5, or 15-minute charts work best. The indicator will not draw on daily or higher timeframes (by design). Once applied, right-click either plotted line and select "Add alert on…" or use the chart-level Alerts dialog to wire up breakout notifications.

**Settings**

- *Premarket Window* — default 04:00–09:00. Adjust if you trade a different session.
- *Regular Session* — default 09:30–16:00. Used to detect the open bar and restrict alerts.
- *Timezone* — set this to match the instrument you're trading.
- *Style* — colors, line width, background tint, and label visibility.
- *Alerts* — toggle breakout alerts on/off.

**Notes**

This is an informational tool, not a trading system — the PM high and PM low are reference levels, not signals on their own. Breakouts can and do fail; always combine with your own risk management. Works on any symbol that has meaningful premarket activity; low-volume instruments may produce noisy ranges.

Pine Script v6.

---

A few practical tips for the rest of the publish form:

- **Title** — keep it short, something like `Premarket High/Low`. TradingView rejects titles that sound marketing-y.
- **Tags/Categories** — pick Volatility or Trend Analysis; tag with `premarket`, `support`, `resistance`, `breakout`, `day-trading`.
- **Screenshot** — TradingView requires one. Take a clean chart shot with the indicator applied, ideally on a liquid name like SPY or QQQ on a 5-min chart showing both lines and a label. Avoid screenshots with other indicators or personal annotations cluttering the view.
- **Release notes** — leave blank on first publish; you'll use this field later if you update the script.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน