This indicator displays the Commitment of Traders (COT) totals data for futures markets.
█ CONCEPTS
Commitment of Traders (COT) data is tallied by the Commodity Futures Trading Commission (CFTC), a US federal agency that oversees the trading of derivative markets such as futures in the US. It is weekly data that provides traders with information about open interest for an asset. The CFTC oversees derivative markets traded on different exchanges, so COT data is available for assets that can be traded on CBOT, CME, NYMEX, COMEX, and ICEUS.
A detailed description of the COT report can be found on the CFTC's website.
COT data is separated into three notable reports: Legacy, Disaggregated, and Financial. This indicator presents specific data from the COT Legacy report. The Total data details the positions held by various traders: Commercial Hedgers (traders registered with CFTC that use futures contracts in that particular commodity for hedging), Large Traders (traders registered with CFTC that do not hedge that particular commodity) and Small Traders (not registered with CFTC).
Load the indicator on an active chart (see here if you don't know how).
By default, the indicator uses the chart's symbol to derive the COT data it displays. You can also specify a CFTC code in the "CFTC code" field of the script's inputs to display COT data from a symbol different than the chart's.
The rest of this section documents the script's input fields.
COT Selection Mode This field's value determines how the script determines which COT data to return from the chart's symbol: - "Root" uses the root of a futures symbol ("ES" for "ESH2020"). - "Base currency" uses the base currency in a forex pair ("EUR" for "EURUSD"). - "Currency" uses the quote currency, i.e., the currency the symbol is traded in ("JPY" for "TSE:9984" or "USDJPY"). - "Auto" tries all modes, in turn. If no COT data can be found, a runtime error is generated. Note that if the "CTFC Code" input field contains a code, it will override this input.
Futures/Options Specifies the type of Commitment of Traders data to display: data concerning only Futures, only Options, or both.
Display Determines the direction of the metrics requested from the CTFC report.
CTFC Code Instead of letting the script generate the CFTC COT code from the chart and the "COT Selection Mode" input when this field is empty, you can specify an unrelated CFTC COT code here, e.g., 001602 for wheat futures.
Minor update to import the latest version of "LibraryCOT"
릴리즈 노트
v3
This version release features the following updates:
• Expanded COT code coverage: This indicator now imports the latest LibraryCOT version, which uses dynamic requests and a map containing an expanded list of current CFTC COT report codes. These changes allow the indicator to retrieve available COT data for a broader range of symbols.
• Improved tooltips: We've expanded the tooltips in the "Settings/Inputs" tab to provide more detailed information about how each input works and how to use it.
• Enhanced errors: We've improved error-handling behaviors and added clearer, more informative error messages for incorrect configurations and unavailable data feeds.
• Ticker info visibility: The indicator now displays the table containing the COT ticker information in the bottom-right corner to ensure visibility in any pane location.
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.