OPEN-SOURCE SCRIPT
Cập nhật Cjack COT Index

Here's the updated description with the formula and additional context:
---
**Cjack COT Index - Commitment of Traders Positioning Indicator**
This indicator transforms raw Commitment of Traders (COT) data into normalized 0-100 index values, making it easy to identify extreme positioning across different trader categories.
**How It Works:**
The indicator calculates a min-max normalized index for three trader groups over your chosen lookback period (default 26 weeks):
- **Large Speculators** (Non-commercial positions) - typically trend followers
- **Small Speculators** (Non-reportable positions) - retail traders
- **Commercial Hedgers** - producers and consumers hedging business risk
The normalization formula is: **Index = (Current Position - Minimum Position) / (Maximum Position - Minimum Position) × 100**
This calculation shows where current net positioning sits between the minimum and maximum levels observed in the lookback window. A reading of 100 means current positioning equals the maximum net long over that period, 0 equals the minimum (most net short), and 50 is the midpoint of the range.
**Important:** The lookback period critically affects index readings - shorter lookbacks (13-26 weeks) make the index more sensitive to recent extremes, while longer lookbacks (52-78 weeks) provide broader historical context and identify truly exceptional positioning. Min-max normalization is essential because it makes positioning comparable across different contracts and time periods, regardless of the absolute size of positions.
**What It's Good For:**
The indicator excels at identifying **crowded trades** and potential reversals by tracking contrarian setups where commercials (smart money) position opposite to speculators. Background highlighting automatically flags:
- **Long setups** (green): Commercials heavily long while speculators are heavily short
- **Short setups** (red): Commercials heavily short while speculators are heavily long
The "Shift Index" option (enabled by default) displays last week's tradeable COT data aligned with current price action, ensuring you're working with actionable information since COT reports publish with a delay.
Works on weekly timeframes and below for commodities and futures with available COT data.
---
**Cjack COT Index - Commitment of Traders Positioning Indicator**
This indicator transforms raw Commitment of Traders (COT) data into normalized 0-100 index values, making it easy to identify extreme positioning across different trader categories.
**How It Works:**
The indicator calculates a min-max normalized index for three trader groups over your chosen lookback period (default 26 weeks):
- **Large Speculators** (Non-commercial positions) - typically trend followers
- **Small Speculators** (Non-reportable positions) - retail traders
- **Commercial Hedgers** - producers and consumers hedging business risk
The normalization formula is: **Index = (Current Position - Minimum Position) / (Maximum Position - Minimum Position) × 100**
This calculation shows where current net positioning sits between the minimum and maximum levels observed in the lookback window. A reading of 100 means current positioning equals the maximum net long over that period, 0 equals the minimum (most net short), and 50 is the midpoint of the range.
**Important:** The lookback period critically affects index readings - shorter lookbacks (13-26 weeks) make the index more sensitive to recent extremes, while longer lookbacks (52-78 weeks) provide broader historical context and identify truly exceptional positioning. Min-max normalization is essential because it makes positioning comparable across different contracts and time periods, regardless of the absolute size of positions.
**What It's Good For:**
The indicator excels at identifying **crowded trades** and potential reversals by tracking contrarian setups where commercials (smart money) position opposite to speculators. Background highlighting automatically flags:
- **Long setups** (green): Commercials heavily long while speculators are heavily short
- **Short setups** (red): Commercials heavily short while speculators are heavily long
The "Shift Index" option (enabled by default) displays last week's tradeable COT data aligned with current price action, ensuring you're working with actionable information since COT reports publish with a delay.
Works on weekly timeframes and below for commodities and futures with available COT data.
Phát hành các Ghi chú
Chart imgMã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.