सामग्री पर जाएं
लाइब्रेरी के सभी दस्तावेज़

फ़्यूचर्स सेंटीमेंट फ़ीचर के रूप में CFTC ट्रेडर पोज़िशन का उपयोग

लेख Machine Learning for Trading

सारांश

यह मार्गदर्शिका साप्ताहिक फ़्यूचर्स पोज़िशनिंग डेटा के स्रोत के रूप में सार्वजनिक CFTC Commitment of Traders रिपोर्ट का परिचय देती है। यह Traders in Financial Futures रिपोर्ट—जो डीलर, एसेट मैनेजर और लीवरेज्ड मनी जैसे प्रतिभागियों को वर्गीकृत करती है—को कमोडिटी फ़्यूचर्स में इस्तेमाल होने वाली विघटित रिपोर्ट से अलग बताती है, जिसमें वाणिज्यिक ट्रेडर, प्रबंधित धन और स्वैप डीलर जैसी श्रेणियाँ हैं। उत्पाद-स्तरीय फ़ाइलों में रिपोर्ट की तारीखें, ओपन इंटरेस्ट और ट्रेडरों की लॉन्ग, शॉर्ट तथा नेट पोज़िशन शामिल हैं। सामग्री पोज़िशनिंग विश्लेषण, z-स्कोर, विपरीत संकेत और फ़्यूचर्स रणनीति फ़ीचर को संभावित उपयोग बताती है, लेकिन कोई परीक्षित ट्रेडिंग नियम या प्रदर्शन का साक्ष्य प्रस्तुत नहीं करती।

कार्यान्वयन की मुख्य सावधानी रिलीज़ का समय है। हर स्नैपशॉट मंगलवार की स्थिति बताता है, लेकिन शुक्रवार दोपहर से पहले प्रकाशित नहीं होता; मार्गदर्शिका दैनिक-बार बैकटेस्ट के लिए अधिक रूढ़िवादी छह कैलेंडर-दिन की उपलब्धता देरी सुझाती है। बाज़ार डेटा के साथ रिपोर्ट मिलाते समय इससे भविष्य की जानकारी के पक्षपात से बचने में मदद मिलती है। वित्तीय और कमोडिटी रिपोर्ट के कॉलम अलग होते हैं, इसलिए संयुक्त डेटा में इन स्कीमा अंतरों का ध्यान रखना होगा। दस्तावेज़ पहुँच और भंडारण की परंपराएँ समझाता है, लेकिन संकेत की मजबूती, श्रेणी की व्याख्या या पोज़िशनिंग फ़ीचर से रिटर्न सुधरता है या नहीं—इसका मूल्यांकन नहीं देता।

मुख्य विचार

  • CFTC रिपोर्ट ट्रेडर श्रेणियों के अनुसार समूहित साप्ताहिक फ़्यूचर्स पोज़िशन देती हैं।
  • वित्तीय और कमोडिटी फ़्यूचर्स में अलग रिपोर्ट प्रकार और श्रेणी नाम उपयोग होते हैं।
  • पोज़िशन मापों में लॉन्ग, शॉर्ट, नेट, ओपन इंटरेस्ट, उत्पाद और रिपोर्ट तारीख़ शामिल हैं।
  • बैकटेस्ट में मंगलवार के स्नैपशॉट और शुक्रवार को रिलीज़ के बीच का अंतर शामिल होना चाहिए।
  • मार्गदर्शिका फ़ीचर के संभावित उपयोग बताती है, लेकिन लाभदायक पोज़िशनिंग रणनीति स्थापित नहीं करती।

टैग

पूरा पाठ
# Futures Positioning: CFTC Commitment of Traders


# Futures Positioning: CFTC Commitment of Traders

Weekly positioning snapshots (Tuesday; released Friday at 3:30 PM ET) for
CME / ICE / CBOT futures, broken down by trader category. Free and public
domain. Used in Ch4 NB 10 for sentiment/positioning features and in
Ch8 / Ch16 for futures strategy inputs.

## Dataset

| Report type | Trader categories | Products |
| --- | --- | --- |
| TFF (Traders in Financial Futures) | Dealers, Asset Managers, Leveraged Money | Financial futures (ES, NQ, 6E, ZN, …) |
| Disaggregated | Commercials, Managed Money, Swap Dealers | Commodity futures (CL, GC, ZC, …) |

Product mapping + report-type dispatch live in the `ml4t.data.cot` library
(`ml4t.data.cot.PRODUCT_MAPPINGS`). The downloader here wraps that library
and persists one parquet per product to the local data store.

## Download

```bash
# Default: all products in PRODUCT_MAPPINGS, 2020 through current year
uv run python data/futures/positioning/cot_download.py

# Subset of products + longer history
uv run python data/futures/positioning/cot_download.py --products ES,NQ,CL,GC --start-year 2010

# Override output root
uv run python data/futures/positioning/cot_download.py --data-path /tmp/ml4t-data
```

## Directory Layout

```
$ML4T_DATA_PATH/futures/positioning/cot/
└── {PRODUCT}.parquet    # one parquet per product code (e.g., ES.parquet)
```

## Schema

Columns vary by report type but always include:

| Column | Notes |
| --- | --- |
| `product` | Exchange product code (ES, CL, GC, …) |
| `report_type` | CFTC report that produced the row |
| `report_date` | Tuesday snapshot date |
| `open_interest` | Total open interest |

Per-trader long/short/net columns by report type:

- **Financial (TFF)**: `dealer_long/short/net`, `asset_mgr_long/short/net`, `lev_money_long/short/net`
- **Commodity (disaggregated)**: `commercial_long/short/net`, `managed_money_long/short/net`, `swap_long/short/net`

## Loading

```python
from data import load_cot, list_cot_products

# Everything available locally
df = load_cot()

# Subset + date filter
df = load_cot(products=["ES", "NQ"], start_date="2020-01-01", end_date="2024-12-31")

# Enumerate what's been downloaded
list_cot_products()  # -> ['CL', 'ES', 'GC', 'NQ', ...]
```

`load_cot()` uses `diagonal_relaxed` concat so financial and commodity
products can be combined in one frame despite their different schemas.

## Release Lag

CFTC publishes reports Friday at 3:30 PM ET; the snapshot is as-of
**Tuesday** of the same week (3-day lag). For daily-bar backtests a
conservative +6 calendar-day availability lag from Tuesday is standard.

## Consumers

- **Ch4 NB 10** — positioning analysis, z-scores, contrarian signals
- **Ch8** — futures_features.py (positioning feature family)
- **Ch16** — futures strategies using CoT signals

स्रोत के लाइसेंस के तहत श्रेय सहित पूरा पाठ दिखाया गया है। लाइसेंस: MIT

यह सारांश मूल स्रोत के आधार पर Stratmill के शोध एजेंट ने लिखा है; यह स्रोत की प्रति नहीं है।