OPEN-SOURCE SCRIPT
Telah dikemas kini

Next Day Key Levels [Auto-Pivot Suite] Robust

763
Next Day Key Levels [Auto-Pivot Suite]
Automatically plot key levels (Floor Pivots) for the next U.S. trading day, with smart session detection.

What does this script do?
Automatically detects the most recent completed U.S. regular trading session (9:30 AM–4:00 PM Eastern) and plots all classic Floor Pivot levels for the next trading day.

Handles Mondays and holidays: Always uses the most recent session’s data, so Friday’s values are shown on Monday, and holidays are skipped seamlessly.

Works in both pre-market and after-hours—levels appear for the next session at the right time.

Levels plotted:

Previous Session High (H)

Previous Session Low (L)

Previous Session Close (C)

Pivot (P)

Resistance 1, 2, 3 (R1, R2, R3)

Support 1, 2, 3 (S1, S2, S3)

How it works
Monitors each bar and tracks session highs/lows/close only during regular market hours.

At the close of each session (4:00 PM ET), saves these values.

In pre-market (before 9:30 AM ET) and after-hours (after 4:00 PM ET), automatically plots levels based on the last completed session—always the correct session, even on Mondays and after holidays.

Why is it better?
No clutter: Only one set of levels per day, drawn cleanly.

Accurate pivots for every next U.S. session.

Zero manual setup: Add to any U.S. ticker, on any intraday timeframe.

Features
Works across all U.S. stocks and ETFs.

Plots and labels all levels with color coding for quick reference.

Designed for intraday and short-term trading strategies.

Handles time zone and market session edge cases automatically.

How to use
Add the indicator to any U.S. equity or ETF chart (15m–1h timeframes recommended).

Levels will appear automatically in pre-market or after the market closes, always for the next session.

Trade with confidence using automatic, accurate pivots and support/resistance levels.

Developed by [nvijaybhargav77].
For questions or feedback, leave a comment below!
Nota Keluaran
Next Day Key Levels [Auto-Pivot Suite] Robust
Automatically plot all key levels (Floor Pivots) for the next U.S. trading day — now with gap up/gap down detection at the open.

What does this script do?
Automatically detects the most recent completed U.S. regular trading session (9:30 AM–4:00 PM Eastern) and plots all classic Floor Pivot levels for the next trading day.

Gap Up/Down Detection: Instantly highlights the difference between yesterday’s close and today’s regular session open (9:30 AM ET) with a labeled and color-coded ray.

Handles Mondays and holidays: Always uses the latest completed session’s data, so Friday’s values are shown on Monday, and holidays are handled seamlessly.

Works in both pre-market and after-hours—levels appear for the next session at the right time.

Levels plotted:
Previous Session High (H)

Previous Session Low (L)

Previous Session Close (C)

Pivot (P)

Resistance 1, 2, 3 (R1, R2, R3)

Support 1, 2, 3 (S1, S2, S3)

Gap Up/Down (labeled and color-coded at 9:30 open)

How it works
Monitors each bar and tracks session highs/lows/close only during regular market hours.

At the close of each session (4:00 PM ET), saves these values.

In pre-market (before 9:30 AM ET) and after-hours (after 4:00 PM ET), automatically plots levels based on the last completed session—always the correct session, even on Mondays and after holidays.

Detects today’s regular session open (9:30 AM ET) and instantly plots the gap up or gap down from yesterday’s close.

Why is it better?
No clutter: Only one set of levels per day, drawn cleanly.

Gap detection: See instantly if today’s open is above or below yesterday’s close.

Accurate pivots for every next U.S. session.

Zero manual setup: Add to any U.S. ticker, on any intraday timeframe.

Features
Works across all U.S. stocks and ETFs.

Plots and labels all levels with color coding for quick reference.

Designed for intraday and short-term trading strategies.

Handles time zone and market session edge cases automatically.

Gap line and label appear only if there is a valid regular session open.

How to use
Add the indicator to any U.S. equity or ETF chart (15m–1h timeframes recommended).

Levels will appear automatically in pre-market or after the market closes, always for the next session.

Gap label and ray will appear at the 9:30 AM open, showing the gap up/down value.

Trade with confidence using automatic, accurate pivots and support/resistance levels.

Developed by [nvijaybhargav77].
For questions or feedback, leave a comment below!
Nota Keluaran
**v2.0 Update – Gap Detection Added**

- Added automatic gap up/gap down detection and labeling at the 9:30 AM regular session open.
- Gap is visualized as a color-coded ray with the gap value, making overnight market moves instantly visible.
- Enhanced reliability for session edge cases (Mondays, holidays).
- Improved code for even cleaner chart visuals.
Nota Keluaran
v3.0 — All labels centered!

All level and gap labels now appear at the center of each horizontal ray for the cleanest look.

No more clutter at the left/right chart edges.

Gap label is also centered.

Cleaned up variable scope warnings for Pine Script v6.

Fully compatible with any chart zoom and U.S. equity intraday timeframes.
Nota Keluaran
What’s New in v4.0:

ON/OFF Switches for Every Level:
Easily toggle the display of each key level (Prev High, Prev Low, Prev Close, Pivot, R1, R2, R3, S1, S2, S3, and Gap) directly from the indicator’s settings panel.

Improved Usability:
Show only the lines and labels you care about—customize your workspace and reduce chart clutter instantly.

No Visual Duplicates:
All objects are managed cleanly: turning a level OFF fully hides its line/label, with no overlap or ghosting.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.