Prior Close Percent Grid (Session-Aware)

190
TradingView's price scale shows prices only, and the built-in Percent scale measures change from the first visible bar, so its zero point moves every time you scroll or zoom. This indicator draws a percent grid anchored to the prior close, so you can read at a glance how far price is from the previous close, including during pre-market, post-market and overnight sessions.

How the baseline (0%) is chosen
The script treats the overnight session as the start of the next trading day:
• Pre-market and regular hours: previous regular-session close
• Post-market: still the previous regular-session close, so the after-hours move is read against the same baseline as the day session
• Overnight session: today's regular-session close
The baseline is the official close from regular-session daily data, not the close of the last intraday bar.

What it draws
• A gray step line at the baseline (0%) of each session
• Dotted grid lines every N% above and below the baseline, labeled with the percent value (green above, red below)
• Past sessions: the grid only covers the range that session actually traded, so the chart is not squashed
• Current session: the grid covers at least ±N% (default 30%) and extends to the right
• Hover over any bar: the status line and Data Window show that bar's close as % change vs its own baseline
• An info box shows the current baseline, the date of the close it comes from, and the current % change

How to use
• Designed for intraday charts. On daily and higher timeframes the baseline is simply the previous bar's close.
• To see overnight bars on BOATS-supported US stocks, switch the chart session to 24h. With Regular or Extended sessions the script works the same way, just without overnight bars.
• Markets without extended sessions always use the previous close.
• If the chart looks compressed, right-click the price scale and enable "Scale price chart only".

Settings
• Grid step (%): spacing between grid lines
• Current session: draw at least ± (%): minimum grid range for the live session; 0 = traded range only
• Overnight session starts at: exchange time zone, default 20:00 for US stocks
• Draw grid on past sessions, colors, label size

Limitations
• The overnight start time comes from the input, not from the exchange, so adjust it if your market differs.

————————

中文说明

概述
TradingView 的价格轴只显示价格;自带的百分比坐标以屏幕最左边那根 K 线为 0%,一拖动或缩放零点就变。本指标以昨收为 0% 画出百分比刻度,盘前、盘后、夜盘都能直接看出价格相对昨收涨跌了多少。

基准(0%)的规则
脚本把夜盘视为下一个交易日的开始:
• 盘前、盘中:前一交易日常规时段收盘价
• 盘后:仍是前一交易日收盘价,盘后涨跌和日盘用同一个基准
• 夜盘:当天常规时段收盘价
基准取自常规时段日线的官方收盘价,不是最后一根分钟 K 线的收盘价。

显示内容
• 灰色阶梯线:每个时段的 0% 基准
• 每隔 N% 一条虚线并标注百分比,上涨绿色、下跌红色
• 历史时段:刻度只覆盖该时段实际走过的价格范围,不会把 K 线压扁
• 当前时段:刻度至少覆盖 ±N%(默认 30%),并向右延伸
• 鼠标悬停任意 K 线:状态栏和数据窗口显示该 K 线收盘价相对其基准的涨跌幅
• 右上角信息框:当前基准价、基准对应的收盘日期、当前涨跌幅

使用方法
• 用于日内周期。日线及以上周期,基准就是前一根 K 线的收盘价。
• 支持 BOATS 的美股要看夜盘,需把图表时段切到 24h。常规或延长时段下用法相同,只是没有夜盘 K 线。
• 没有延长交易时段的市场,始终以昨收为基准。
• 如果 K 线被压扁,右键价格轴,勾选"仅缩放价格图表"。

参数
• Grid step (%):刻度间隔
• Current session: draw at least ± (%):当前时段至少画到的范围;0 = 只画实际走过的范围
• Overnight session starts at:夜盘开始时间(交易所时区),美股默认 20:00
• Draw grid on past sessions:历史时段是否画刻度;另有颜色和文字大小

局限
• 夜盘开始时间来自参数设置,不是从交易所自动识别的,其他市场需要自行调整。

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.