PROTECTED SOURCE SCRIPT
Aggiornato COT Index TT Tools

Questo indicatore nasce come ispirazione diretta dallo script TradingView “COT Index” di Dixon_Chai 👉 
La logica di base rimane quella del COT Index in stile Larry Williams (calcolo dell’indice su più finestre temporali), ma questa versione TT Tools introduce funzionalità operative aggiuntive pensate per una lettura immediata del posizionamento dei Commercials e per individuare con precisione i cambi di regime delle Net Position.
🔹 Cosa aggiunge questa versione (TT Tools)
✅ Riquadro “Net State” nella tabella di verifica
LONG quando le Net Position dei Commercials sono positive
SHORT quando sono negative
colorazione verde / rossa coerente con lo stato
✅ Segnalazione visiva dello switch
“⚠️ ALERT CHANGE LONG” quando le Net Position passano da negative a positive
“⚠️ ALERT CHANGE SHORT” quando passano da positive a negative
la segnalazione appare solo nella settimana del cambio
✅ Alert TradingView integrati
Possibilità di creare alert automatici per essere notificati esattamente nel momento in cui avviene lo switch LONG/SHORT, senza dover monitorare manualmente il grafico.
🔹 Utilizzo consigliato
Questo indicatore è pensato per essere utilizzato in combinazione con
“Contango/Backwardation Futures Box Desk – TT Tools”.
La lettura congiunta permette di:
contestualizzare il posizionamento dei Commercials
verificare la struttura della curva (contango / backwardation)
individuare fasi di rotazione, accumulo o distribuzione con maggiore probabilità
Note
Dati COT forniti tramite libreria ufficiale TradingView (COT Library)
Mapping manuale dei codici CFTC per gli strumenti supportati
Focus principale sulle Net Position dei Commercials
_____________________________________________________________
Description
This indicator is directly inspired by the TradingView script “COT Index” by Dixon_Chai
👉
It preserves the original Larry Williams–style COT Index logic (index calculation over multiple lookback periods), while this TT Tools version introduces additional operational features designed for a faster and more actionable reading of Commercials’ positioning, with a specific focus on regime changes in Net Positions.
🔹 What this TT Tools version adds
✅ “Net State” box inside the verification table
LONG when Commercials’ Net Positions are positive
SHORT when they are negative
green / red coloring consistent with the current state
✅ Visual regime-change signal
“⚠️ ALERT CHANGE LONG” when Net Positions switch from negative to positive
“⚠️ ALERT CHANGE SHORT” when they switch from positive to negative
the alert appears only on the exact week of the switch
✅ Built-in TradingView alerts
You can link TradingView alerts to be notified precisely when a LONG/SHORT regime change occurs, without manual chart monitoring.
🔹 Recommended usage
This indicator is designed to be used in combination with
“Contango/Backwardation Futures Box Desk – TT Tools”.
Using both tools together allows you to:
contextualize Commercials’ positioning
evaluate the futures curve structure (contango / backwardation)
identify potential rotation, accumulation, or distribution phases with higher confidence
Notes
COT data provided via the official TradingView COT Library
Manual mapping of CFTC codes for supported instruments
Primary focus on Commercials’ Net Positions

La logica di base rimane quella del COT Index in stile Larry Williams (calcolo dell’indice su più finestre temporali), ma questa versione TT Tools introduce funzionalità operative aggiuntive pensate per una lettura immediata del posizionamento dei Commercials e per individuare con precisione i cambi di regime delle Net Position.
🔹 Cosa aggiunge questa versione (TT Tools)
✅ Riquadro “Net State” nella tabella di verifica
LONG quando le Net Position dei Commercials sono positive
SHORT quando sono negative
colorazione verde / rossa coerente con lo stato
✅ Segnalazione visiva dello switch
“⚠️ ALERT CHANGE LONG” quando le Net Position passano da negative a positive
“⚠️ ALERT CHANGE SHORT” quando passano da positive a negative
la segnalazione appare solo nella settimana del cambio
✅ Alert TradingView integrati
Possibilità di creare alert automatici per essere notificati esattamente nel momento in cui avviene lo switch LONG/SHORT, senza dover monitorare manualmente il grafico.
🔹 Utilizzo consigliato
Questo indicatore è pensato per essere utilizzato in combinazione con
“Contango/Backwardation Futures Box Desk – TT Tools”.
La lettura congiunta permette di:
contestualizzare il posizionamento dei Commercials
verificare la struttura della curva (contango / backwardation)
individuare fasi di rotazione, accumulo o distribuzione con maggiore probabilità
Note
Dati COT forniti tramite libreria ufficiale TradingView (COT Library)
Mapping manuale dei codici CFTC per gli strumenti supportati
Focus principale sulle Net Position dei Commercials
_____________________________________________________________
Description
This indicator is directly inspired by the TradingView script “COT Index” by Dixon_Chai
👉

It preserves the original Larry Williams–style COT Index logic (index calculation over multiple lookback periods), while this TT Tools version introduces additional operational features designed for a faster and more actionable reading of Commercials’ positioning, with a specific focus on regime changes in Net Positions.
🔹 What this TT Tools version adds
✅ “Net State” box inside the verification table
LONG when Commercials’ Net Positions are positive
SHORT when they are negative
green / red coloring consistent with the current state
✅ Visual regime-change signal
“⚠️ ALERT CHANGE LONG” when Net Positions switch from negative to positive
“⚠️ ALERT CHANGE SHORT” when they switch from positive to negative
the alert appears only on the exact week of the switch
✅ Built-in TradingView alerts
You can link TradingView alerts to be notified precisely when a LONG/SHORT regime change occurs, without manual chart monitoring.
🔹 Recommended usage
This indicator is designed to be used in combination with
“Contango/Backwardation Futures Box Desk – TT Tools”.
Using both tools together allows you to:
contextualize Commercials’ positioning
evaluate the futures curve structure (contango / backwardation)
identify potential rotation, accumulation, or distribution phases with higher confidence
Notes
COT data provided via the official TradingView COT Library
Manual mapping of CFTC codes for supported instruments
Primary focus on Commercials’ Net Positions
Note di rilascio
Questo indicatore nasce come ispirazione diretta dallo script TradingView “COT Index” di Dixon_Chai La logica di base rimane quella del COT Index in stile Larry Williams (calcolo dell’indice su più finestre temporali), ma questa versione TT Tools introduce funzionalità operative aggiuntive pensate per una lettura immediata del posizionamento dei Commercials e per individuare con precisione i cambi di regime delle Net Position.
🔹 Cosa aggiunge questa versione (TT Tools)
✅ Riquadro “Net State” nella tabella di verifica
LONG quando le Net Position dei Commercials sono positive
SHORT quando sono negative
colorazione verde / rossa coerente con lo stato
✅ Segnalazione visiva dello switch
“⚠️ ALERT CHANGE LONG” quando le Net Position passano da negative a positive
“⚠️ ALERT CHANGE SHORT” quando passano da positive a negative
la segnalazione appare solo nella settimana del cambio
✅ Alert TradingView integrati
Possibilità di creare alert automatici per essere notificati esattamente nel momento in cui avviene lo switch LONG/SHORT, senza dover monitorare manualmente il grafico.
🔹 Nuovo riquadro “Old Net” – Logica colori (TT Tools)
✅ Riquadro “Old Net”
Il riquadro “Old Net” mostra la Net Position dei Commercials della settimana precedente, accompagnata da una freccia week-over-week che indica se le Net Position stanno aumentando o diminuendo.
Questo riquadro non indica direttamente la direzione del prezzo, ma la fase del posizionamento dei Commercials.
Colori del riquadro “Old Net”
🟢 Verde – Pressione positiva / scenario favorevole
Net Position positive e in aumento → build di posizioni long
Net Position negative ma in risalita → short covering (riduzione della pressione ribassista)
🟡 Giallo – Scarico / Distribuzione
Net Position positive ma in diminuzione
I Commercials rimangono net long, ma stanno riducendo l’esposizione
Fase di alleggerimento, spesso associata a una maturità del movimento
🔴 Rosso – Pressione negativa in aumento
Net Position negative e in diminuzione
Aggiunta di posizioni short / aumento della pressione ribassista
👉 In sintesi, il riquadro Old Net aiuta a comprendere se i Commercials stanno accumulando, scaricando o rafforzando la pressione contraria, rendendo più immediata la lettura delle rotazioni di mercato.
🔹 Utilizzo consigliato
Questo indicatore è pensato per essere utilizzato in combinazione con
“Contango/Backwardation Futures Box Desk – TT Tools”.
La lettura congiunta permette di:
contestualizzare il posizionamento dei Commercials
verificare la struttura della curva (contango / backwardation)
individuare fasi di rotazione, accumulo o distribuzione con maggiore probabilità
Note
Dati COT forniti tramite libreria ufficiale TradingView (COT Library)
Mapping manuale dei codici CFTC per gli strumenti supportati
Focus principale sulle Net Position dei Commercials
_____________________________________________________________
Description
This indicator is directly inspired by the TradingView script “COT Index” by Dixon_Chai
It preserves the original Larry Williams–style COT Index logic (index calculation over multiple lookback periods), while this TT Tools version introduces additional operational features designed for a faster and more actionable reading of Commercials’ positioning, with a specific focus on regime changes in Net Positions.
🔹 What this TT Tools version adds
✅ “Net State” box inside the verification table
LONG when Commercials’ Net Positions are positive
SHORT when they are negative
green / red coloring consistent with the current state
✅ Visual regime-change signal
“⚠️ ALERT CHANGE LONG” when Net Positions switch from negative to positive
“⚠️ ALERT CHANGE SHORT” when they switch from positive to negative
the alert appears only on the exact week of the switch
✅ Built-in TradingView alerts
You can link TradingView alerts to be notified precisely when a LONG/SHORT regime change occurs, without manual chart monitoring.
✅ “Old Net” box
The “Old Net” box displays the Commercials’ Net Position of the previous week, together with a week-over-week arrow indicating whether Net Positions are increasing or decreasing.
This box does not represent direct price direction, but rather the positioning phase of Commercials.
“Old Net” color logic
🟢 Green – Positive pressure / favorable scenario
Net Positions positive and increasing → long build-up
Net Positions negative but rising → short covering (bearish pressure decreasing)
🟡 Yellow – Unloading / Distribution
Net Positions positive but decreasing
Commercials remain net long while reducing exposure
Typical unloading phase, often associated with a mature move
🔴 Red – Increasing negative pressure
Net Positions negative and decreasing
Addition of short positions / increasing bearish pressure
👉 In summary, the Old Net box helps identify whether Commercials are accumulating, unloading, or reinforcing opposing pressure, making market rotations easier and more intuitive to read.
🔹 Recommended usage
This indicator is designed to be used in combination with
“Contango/Backwardation Futures Box Desk – TT Tools”.
Using both tools together allows you to:
contextualize Commercials’ positioning
evaluate the futures curve structure (contango / backwardation)
identify potential rotation, accumulation, or distribution phases with higher confidence
Notes
COT data provided via the official TradingView COT Library
Manual mapping of CFTC codes for supported instruments
Primary focus on Commercials’ Net Positions
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.