Please refer to the below link for CFTC Disaggregated COT
This script is very similar to COT Financial Plot indicator except that it plots the data for Disaggregated Futures
Added % of OI option in Calculations
Added OI to Debug plot
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.