OPEN-SOURCE SCRIPT
已更新 Next Day Key Levels [Auto-Pivot Suite] Robust

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!
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!
發行說明
Next Day Key Levels [Auto-Pivot Suite] RobustAutomatically 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!
發行說明
**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.
發行說明
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.
發行說明
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.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。