OPEN-SOURCE SCRIPT
1D ATR Volatility Compression — with 5, 13, 22 WMA Trend Filter

Discover volatility before it explodes! 🚀
This powerful tool tracks the 1-Day Average True Range (ATR) together with its 5, 13, and 22-period Weighted Moving Averages (WMAs) to highlight volatility contraction zones — the calm before major market moves.
When ATR falls below all its WMAs, it signals a potential squeeze phase, often preceding sharp directional breakouts.
You can easily:
🌈 Highlight the chart background when volatility contracts
🔴 Show a dot above candles as a compact signal marker
Both features are fully toggleable for flexible chart visualization.
Use this indicator to:
Detect volatility compressions ahead of breakouts
Spot low-volatility accumulation or trend exhaustion zones
Combine with momentum or breakout setups for early entries
🎯 Works on all timeframes and symbols — ATR is always calculated from 1D data for consistent volatility context.
This powerful tool tracks the 1-Day Average True Range (ATR) together with its 5, 13, and 22-period Weighted Moving Averages (WMAs) to highlight volatility contraction zones — the calm before major market moves.
When ATR falls below all its WMAs, it signals a potential squeeze phase, often preceding sharp directional breakouts.
You can easily:
🌈 Highlight the chart background when volatility contracts
🔴 Show a dot above candles as a compact signal marker
Both features are fully toggleable for flexible chart visualization.
Use this indicator to:
Detect volatility compressions ahead of breakouts
Spot low-volatility accumulation or trend exhaustion zones
Combine with momentum or breakout setups for early entries
🎯 Works on all timeframes and symbols — ATR is always calculated from 1D data for consistent volatility context.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน