OPEN-SOURCE SCRIPT
ที่อัปเดต: Daily Pivot Points - Classic ( S&R Levels )

Daily Pivot Points [v6]
Classic daily pivot point levels — P, R1, R2, S1, S2 — calculated automatically from the prior session's High, Low, and Close. Levels update at the start of each new trading day and are labeled directly on the right edge of the chart with their exact prices, so you always know where you stand without doing any math.
Levels included:
P — Central pivot (orange)
R1 / R2 — Resistance zones (red)
S1 / S2 — Support zones (green)
R3 / S3 — Extended levels (optional, off by default)
Features:
Right-edge price labels on every level — no guessing
Soft zone fill between R1→R2 and S1→S2 for a clean visual bias
Works on any intraday timeframe (1m, 5m, 15m, 30m, 1H)
Built-in alerts for R1, R2, S1, S2 crosses
Fully customizable colors and line width
How to use:
Pivots are one of the most widely used levels in intraday trading. Price tends to react at these zones — use P as the neutral line, R1/R2 as overhead resistance targets, and S1/S2 as downside support. Watch for rejection or breakout at each level to time your entries and exits.
Lightweight, no repainting, no clutter. Just the levels that matter.
Added concise inline comments explaining:
why lookahead_on + [1] is used (locks levels to prior day at open)
the floor-trader pivot formula logic
why stepline style prevents diagonal artifacts
how the var label + delete-and-redraw pattern keeps the label count clean
the barstate.islast gate
No bloat — just enough for a reader to follow the logic without re-deriving it.
Classic daily pivot point levels — P, R1, R2, S1, S2 — calculated automatically from the prior session's High, Low, and Close. Levels update at the start of each new trading day and are labeled directly on the right edge of the chart with their exact prices, so you always know where you stand without doing any math.
Levels included:
P — Central pivot (orange)
R1 / R2 — Resistance zones (red)
S1 / S2 — Support zones (green)
R3 / S3 — Extended levels (optional, off by default)
Features:
Right-edge price labels on every level — no guessing
Soft zone fill between R1→R2 and S1→S2 for a clean visual bias
Works on any intraday timeframe (1m, 5m, 15m, 30m, 1H)
Built-in alerts for R1, R2, S1, S2 crosses
Fully customizable colors and line width
How to use:
Pivots are one of the most widely used levels in intraday trading. Price tends to react at these zones — use P as the neutral line, R1/R2 as overhead resistance targets, and S1/S2 as downside support. Watch for rejection or breakout at each level to time your entries and exits.
Lightweight, no repainting, no clutter. Just the levels that matter.
Added concise inline comments explaining:
why lookahead_on + [1] is used (locks levels to prior day at open)
the floor-trader pivot formula logic
why stepline style prevents diagonal artifacts
how the var label + delete-and-redraw pattern keeps the label count clean
the barstate.islast gate
No bloat — just enough for a reader to follow the logic without re-deriving it.
Release Note
New chartสคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน