OPEN-SOURCE SCRIPT
Updated CoT data with OpenInterest

Displays COT data based on the "Disaggregated Commitments of Traders" report for Futures of the CFTC.
It does make accesible the following symbols:
It does make accesible the following symbols:
- ZB
- ZN
- ZS
- ZM
- ZL
- ZC
- ZW
- KE
- HE
- LE
- GC
- SI
- HG
- CL
- HO
- RB
- NG
- 6A
- 6B
- 6C
- 6E
- 6J
- 6S
- SB
- KC
- CC
- CT
- ES
- RTY
- YM
- NQ
- PA
- PL
- AUP
- HRC
- EH
- BB
- ZR
- ZO
- DC
- OJ
- LBS
- GF
- SP
- DJIA
- 6N
- 6L
- VX
- 6M
- 6R
- 6Z
- ZT
- ZF
Release Notes
Using LibraryCOT.Release Notes
Open Interest optionally rescaled to fill the whole sub-graph.Assumptions are: (1) commercial net and large speculators net is displayed, and (2) a moving retrospection of 10-year is sufficient to determine the scaling factors.
Release Notes
Update to new COT data interface for retrieval of legacy COT reports.Release Notes
Upgraded to PineScript v6 and COT-Library v4 (by TradingView)Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.