OPEN-SOURCE SCRIPT
3 Bars Volatility + Sector & Industry

**VCP by Ram Sethi – 3 Bar Volatility (Dynamic Timeframe)**
This indicator helps identify short-term **volatility contraction** using a simple 3-bar range analysis, designed for traders focusing on clean price structure and breakout setups.
---
### 🔍 Key Features:
* Uses **3-bar volatility calculation** based on:
* Close Range
* High–Low Range
* Fully **dynamic timeframe-based**
* Works on any chart timeframe (1 min to yearly)
* Automatically adapts to the chart you are viewing
* Clean **table display (top-left)** for quick reference
* Displays **Sector and Industry** of the stock for better decision-making
---
### 📊 What It Shows:
* **Close Range (%)** → Measures tightness in closing prices
* **High–Low Range (%)** → Measures overall price volatility
* **Sector & Industry** → Helps identify where the stock belongs and track money flow
Lower values indicate **price contraction**, which is a key characteristic of potential breakout setups.
---
### 🎯 How to Use:
* Look for **low volatility readings (tight ranges)**
* Focus on stocks within **strong sectors or leading industries**
* Combine with:
* Trend direction
* Breakout levels
* Volume expansion
Best used for:
* VCP (Volatility Contraction Pattern)
* Breakout trading
* Swing setups
---
### ⚡ Important Note:
This indicator follows the **current chart timeframe**.
Example:
* On a 5-minute chart → calculates last 3 candles
* On a daily chart → calculates last 3 days
---
### 💡 Purpose:
To help traders quickly identify **tight price action + sector strength**, enabling better alignment with where the market money is flowing.
This indicator helps identify short-term **volatility contraction** using a simple 3-bar range analysis, designed for traders focusing on clean price structure and breakout setups.
---
### 🔍 Key Features:
* Uses **3-bar volatility calculation** based on:
* Close Range
* High–Low Range
* Fully **dynamic timeframe-based**
* Works on any chart timeframe (1 min to yearly)
* Automatically adapts to the chart you are viewing
* Clean **table display (top-left)** for quick reference
* Displays **Sector and Industry** of the stock for better decision-making
---
### 📊 What It Shows:
* **Close Range (%)** → Measures tightness in closing prices
* **High–Low Range (%)** → Measures overall price volatility
* **Sector & Industry** → Helps identify where the stock belongs and track money flow
Lower values indicate **price contraction**, which is a key characteristic of potential breakout setups.
---
### 🎯 How to Use:
* Look for **low volatility readings (tight ranges)**
* Focus on stocks within **strong sectors or leading industries**
* Combine with:
* Trend direction
* Breakout levels
* Volume expansion
Best used for:
* VCP (Volatility Contraction Pattern)
* Breakout trading
* Swing setups
---
### ⚡ Important Note:
This indicator follows the **current chart timeframe**.
Example:
* On a 5-minute chart → calculates last 3 candles
* On a daily chart → calculates last 3 days
---
### 💡 Purpose:
To help traders quickly identify **tight price action + sector strength**, enabling better alignment with where the market money is flowing.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน