OPEN-SOURCE SCRIPT
Updated MY_CME Open Interest

end-of-day Open Interest as provided by CME for D interval.
Can select Commodity (Gold.Silver,Crude), year, contract (Feb,April,June,AugOct,Dec)
Can select Commodity (Gold.Silver,Crude), year, contract (Feb,April,June,AugOct,Dec)
Release Notes
Now uses QUANDL/CHRIS/CME_GCn continuous datasetActual dataset is #2 (eg SI2 silver), previous contract is #1 (eg SI1)
Automatically selects actual future from chart ticket,
can be overriden with a different commodity contract, eg.: GC3
Release Notes
Plot e-o-d CME Open Interest + CFTC weekly COT Open Interest (optional) for contracts (Feb/Jun/Aug/Oct/Dec) years (2016/17/18/19) Gold/Silver/WTIRelease Notes
Select the year via config. Select the contracts months via config
Scripts tries to take ticker as base. Overridable via config, eg "GC" or "ES" or"CL"or "EC" etc
Dunno where to get all these codes thou, there's some mess out there
Database used is the CHRIS continuous by quandl, exported to tradingview:
quandl.com/data/CHRIS-Wiki-Continuous-Futures
(use previous link to search datasets and codes)
Load indicator multiple times to compare contracts over multiple years
Added codess for all 12 months contracts
CFTC total OI can also be plotted
Release Notes
fixed needed confirmation for Year&Prod on startupRelease Notes
better chart attached+fixed def val for Year
Release Notes
CFTC Open Interest fixed, now for Fut+OptOpen-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.