PROTECTED SOURCE SCRIPT
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
סקריפט מוגן
סקריפט זה פורסם כמקור סגור. עם זאת, תוכל להשתמש בו בחופשיות וללא כל מגבלות – למד עוד כאן
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט מוגן
סקריפט זה פורסם כמקור סגור. עם זאת, תוכל להשתמש בו בחופשיות וללא כל מגבלות – למד עוד כאן
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.