OPEN-SOURCE SCRIPT
Squeeze Ping — BB Width Percentile (quiet → expansion) v1.5

Squeeze Ping — BB Width Percentile (quiet → expansion)
One-liner:
Tiny, timing-friendly dots that flag volatility squeezes (quiet regimes) and the first pop out of the squeeze.
What it shows
Aqua dot = Quiet / Squeeze (current Bollinger Band width ranks in the lowest X% of the last N bars).
Pink “EXP” dot = Expansion ping (first bar leaving quiet with width rising).
Info box (optional) on the last bar: percentile, threshold, current state, and whether an expansion ping just fired.
How it works
BB width = (UpperBB − LowerBB) / Basis.
Percentile rank = where today’s width sits vs the last N widths (lower = quieter).
Quiet when percentile ≤ threshold.
Expansion when we exit quiet and width > width[1].
Inputs
BB length / stdev
Percentile lookback (N)
Quiet threshold (e.g., 10–20%)
Show expansion ping
Dot size (tiny/small/normal)
Info box gap + quick help toggle
Alerts
Squeeze ON — entered quiet zone
Squeeze OFF — left quiet zone
Expansion — quiet → expansion with width rising
Tips
Lower thresholds (e.g., 10%) catch deeper, rarer squeezes; higher (e.g., 20–30%) catch more frequent setups.
Works on any timeframe; consider pairing with your trend/regime overlay or key levels for context.
This is a volatility/timing tool, not a buy/sell signal.
One-liner:
Tiny, timing-friendly dots that flag volatility squeezes (quiet regimes) and the first pop out of the squeeze.
What it shows
Aqua dot = Quiet / Squeeze (current Bollinger Band width ranks in the lowest X% of the last N bars).
Pink “EXP” dot = Expansion ping (first bar leaving quiet with width rising).
Info box (optional) on the last bar: percentile, threshold, current state, and whether an expansion ping just fired.
How it works
BB width = (UpperBB − LowerBB) / Basis.
Percentile rank = where today’s width sits vs the last N widths (lower = quieter).
Quiet when percentile ≤ threshold.
Expansion when we exit quiet and width > width[1].
Inputs
BB length / stdev
Percentile lookback (N)
Quiet threshold (e.g., 10–20%)
Show expansion ping
Dot size (tiny/small/normal)
Info box gap + quick help toggle
Alerts
Squeeze ON — entered quiet zone
Squeeze OFF — left quiet zone
Expansion — quiet → expansion with width rising
Tips
Lower thresholds (e.g., 10%) catch deeper, rarer squeezes; higher (e.g., 20–30%) catch more frequent setups.
Works on any timeframe; consider pairing with your trend/regime overlay or key levels for context.
This is a volatility/timing tool, not a buy/sell signal.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน