OPEN-SOURCE SCRIPT
Updated Livelli OI-PNC

OI-PNC Levels is a script that displays the open interest (OI) and net short positions (PNC) of a selection of 20 of the most significant stocks in terms of traded value on the Italian market.
the data is hardcoded using static arrays and must be updated periodically. Data updated of 03/11/2025
########### Italiano ############
Livelli OI-PNC è uno script che permette di visualizzare gli open interest (OI) e le Posizioni Nette Corte (PNC) di una selezione di 20 titoli tra i più significativi per controvalore movimentato del mercato italiano.
Poiché Pine Script non può leggere direttamente file da URL esterni, i dati sono hardcorati tramite array statici e vanno aggiornati periodicamente. Dati aggiornati al 03/11/2025
- PNC are indicated by red dotted lines starting from the close of the last reported change date;
- The most significant open interest by number of contracts (Top 10 Calls and Top 10 Puts) are displayed using labels, all on a single line (Strike, CALL, PUT);
- A summary table can be activated.
the data is hardcoded using static arrays and must be updated periodically. Data updated of 03/11/2025
########### Italiano ############
Livelli OI-PNC è uno script che permette di visualizzare gli open interest (OI) e le Posizioni Nette Corte (PNC) di una selezione di 20 titoli tra i più significativi per controvalore movimentato del mercato italiano.
- Le PNC vengono indicate tramite Linee tratteggiate rosse che partono dal close della data di ultima variazione comunicata;
- Sono riportati tramite labels, gli Open Interest più significativi per num.Contratti (Top 10 Call e top 10 Put) tutto su una unica riga per ogni strike (Strike, CALL, PUT);
- E' attivabile una Tabella di riepilogo.
Poiché Pine Script non può leggere direttamente file da URL esterni, i dati sono hardcorati tramite array statici e vanno aggiornati periodicamente. Dati aggiornati al 03/11/2025
Release Notes
## Ver.2.0Aggiornato il ridisegno delle label, distanziato a dx rispetto alla quotazione attuale
Release Notes
######################## Italianodati aggiornati al 07/11/2025
inserito colonna note in tab. riepilogativa con indicazione di:
- % OI PUT sul totale;
- % OI PUT diventate ITM su OI PUT (calcolo dinamico)
- %PNC della settimana prima
########################## English
Data updated as of November 7, 2025
Added column notes in summary table indicating:
- % PUT OI of total;
- % PUT OI converted ITM on PUT OI (dynamic calculation)
- % PNC of the previous week
Release Notes
Dati aggiornati al 14/11/2025Data updated as of 14/11/2025
Release Notes
*********************Dati aggiornati al 21/11/2025
Data updated as of 21/11/2025
Release Notes
Note di rilascio*********************
Dati aggiornati al 28/11/2025
Data updated as of 28/11/2025
Release Notes
Release Notes*********************
Dati aggiornati al 04/12/2025
Data updated as of 04/12/2025
Release Notes
Release NotesData updated as of 11/12/2025
N.B. il 19/12 alle 09.00 scadono le opzioni Dicembre2025
Release Notes
Release NotesData updated as of 22/12/2025
Sereno Natale
Release Notes
Release NotesData updated as of 05/01/2026
Now, the number of contracts expiring soon is indicated in the labels in square brackets
Dati aggiornati al 05/01/2026
Modifica: nelle etichette tra parentesi quadre è indicato il num.contratti in scadenza a breve
Release Notes
Note di rilascioRelease Notes
Data updated as of 05/01/2026
Now, the number of contracts expiring soon is indicated in the labels in square brackets
Dati aggiornati al 05/01/2026
Modifica: nelle etichette tra parentesi quadre è indicato il num.contratti in scadenza a breve
Release Notes
Release NotesData updated as of 15/01/2026
Now, the number of contracts expiring soon is indicated in the labels in square brackets [FEBRARY]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Note di rilascio
Dati aggiornati al 15/01/2026
Modifica: nelle etichette tra parentesi quadre è indicato il num.contratti in scadenza a breve[Febbraio]
DISCLAIMER: Contenuto a solo scopo didattico. I dati (fonti Consob/Euronext) rielaborati potrebbero contenere errori nonostante l'accuratezza dell'analisi. Verificare sempre le fonti ufficiali. Non costituisce consulenza finanziaria.
Release Notes
Release NotesData updated as of 22/01/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [FEBRARY]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Note di rilascio
Dati aggiornati al 22/01/2026 - nelle etichette tra parentesi quadre è indicato il num.contratti in scadenza a breve[Febbraio]
DISCLAIMER: Contenuto a solo scopo didattico. I dati (fonti Consob/Euronext) rielaborati potrebbero contenere errori nonostante l'accuratezza dell'analisi. Verificare sempre le fonti ufficiali. Non costituisce consulenza finanziaria.
Release Notes
Release NotesData updated as of 29/01/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [FEBRARY]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Note di rilascio
Dati aggiornati al 29/01/2026 - nelle etichette tra parentesi quadre è indicato il num.contratti in scadenza a breve[Febbraio]
DISCLAIMER: Contenuto a solo scopo didattico. I dati (fonti Consob/Euronext) rielaborati potrebbero contenere errori nonostante l'accuratezza dell'analisi. Verificare sempre le fonti ufficiali. Non costituisce consulenza finanziaria.
Release Notes
Note di rilascioRelease Notes
Data updated as of 05/02/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [FEBRARY]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Note di rilascio
Dati aggiornati al 05/02/2026 - nelle etichette tra parentesi quadre è indicato il num.contratti in scadenza a breve[Febbraio]
DISCLAIMER: Contenuto a solo scopo didattico. I dati (fonti Consob/Euronext) rielaborati potrebbero contenere errori nonostante l'accuratezza dell'analisi. Verificare sempre le fonti ufficiali. Non costituisce consulenza finanziaria.
Release Notes
Release NotesData updated as of 12/02/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [FEBRARY]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Note di rilascio
Dati aggiornati al 12/02/2026 - nelle etichette tra parentesi quadre è indicato il num.contratti in scadenza a breve[Febbraio]
DISCLAIMER: Contenuto a solo scopo didattico. I dati (fonti Consob/Euronext) rielaborati potrebbero contenere errori nonostante l'accuratezza dell'analisi. Verificare sempre le fonti ufficiali. Non costituisce consulenza finanziaria.
Release Notes
Note di rilascioRelease Notes
Data updated as of 20/02/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [MARCH]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Note di rilascio
Dati aggiornati al 20/02/2026 - nelle etichette tra parentesi quadre è indicato il num.contratti in scadenza a breve[Marzo]
DISCLAIMER: Contenuto a solo scopo didattico. I dati (fonti Consob/Euronext) rielaborati potrebbero contenere errori nonostante l'accuratezza dell'analisi. Verificare sempre le fonti ufficiali. Non costituisce consulenza finanziaria.
Release Notes
Release NotesData updated as of 26/02/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [MARCH]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Release Notes
Dati aggiornati al 12/03/2026 - nelle etichette tra parentesi quadre è indicato il num.contratti in scadenza a breve[Marzo]DISCLAIMER: Contenuto a solo scopo didattico. I dati (fonti Consob/Euronext) rielaborati potrebbero contenere errori nonostante l'accuratezza dell'analisi. Verificare sempre le fonti ufficiali. Non costituisce consulenza finanziaria.
Release Notes
Data updated as of 12/03/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [MARCH]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Note di rilascio
Release Notes
Note di rilascioDati aggiornati al 26/03/2026 - nelle etichette tra parentesi quadre è indicato il num.contratti in scadenza a breve[Aprile]
DISCLAIMER: Contenuto a solo scopo didattico. I dati (fonti Consob/Euronext) rielaborati potrebbero contenere errori nonostante l'accuratezza dell'analisi. Verificare sempre le fonti ufficiali. Non costituisce consulenza finanziaria.
Release Notes
Data updated as of 26/03/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [April]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Note di rilascio
Release Notes
Note di rilascioDati aggiornati al 01/04/2026 - nelle etichette tra parentesi quadre è indicato il num.contratti in scadenza a breve[Aprile]
DISCLAIMER: Contenuto a solo scopo didattico. I dati (fonti Consob/Euronext) rielaborati potrebbero contenere errori nonostante l'accuratezza dell'analisi. Verificare sempre le fonti ufficiali. Non costituisce consulenza finanziaria.
Release Notes
Data updated as of 01/04/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [April]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Note di rilascio
Release Notes
Data updated as of 09/04/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [April]DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Release Notes
Release NotesData updated as of 23/04/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [May]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Note di rilascio
Release Notes
Release NotesData updated as of 08/05/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [May]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Release Notes
Release NotesData updated as of 25/05/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [June]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Release Notes
Note di rilascioRelease Notes
Data updated as of 11/06/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [June]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Release Notes
Note di rilascioRelease Notes
Data updated as of 26/06/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [July]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Release Notes
Note di rilascioNEW1 - Distanza % da close sulle label strike
NEW2 - OI Imbalance, mostra lo sbilanciamento relativo, un indicatore di sentiment sul campione disponibile (top 10 OI PUT e CALL), non è un PCR di mercato
Release Notes
NEW1 - % Distance from close on strike labels
NEW2 - OI Imbalance – this is primarily a relative imbalance, serving as a sentiment indicator based on the available sample (top 10 PUT and CALL OI), not a PCR.
Data updated as of 09/07/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [July]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Release Notes
Note di rilascioRelease Notes
Data updated as of 28/07/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [August]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Release Notes
Note di rilascio- Novità: si pasa da top10 openinterest per titolo a top20, così da avere maggior valenza statistica
- Max Pain: La teoria del Max Pain (o Maximum Pain Theory) ipotizza che alla scadenza delle opzioni il prezzo del titolo tenda a gravitare verso lo strike price che causa la perdita finanziaria complessiva più elevata per i compratori di opzioni. A questo livello, i venditori di opzioni (tipicamente istituzionali e market maker) traggono il massimo profitto, facendo scadere prive di valore la maggior quantità di opzioni Call e Put. Come si calcola:
Per identificare il Max Pain, l'algoritmo valuta ogni strike presente a listino come ipotetico prezzo di chiusura alla scadenza. Per ogni strike candidato calcola il valore intrinseco cumulato delle opzioni che risulterebbero In-The-Money (ITM). Lo strike che ottiene il valore di perdita più basso in assoluto viene definito Max Pain. Nello script, il calcolo viene eseguito sia sul campione totale dei contratti (Max Pain), sia isolando la componente a breve termine (Max Pain BT).
Nuovi Parametri:
- InputshowTable: mostra o nasconde la tabella statistica in alto a destra.
- valoreTopN: (da 1 a 20) Num.Label Openinterest da visualizzare showTopNLabels: Abilita le LABEL di Open Interest complessivo (tutte le scadenze) e attiva il tracciamento della linea orizzontale del Max Pain totale.
- showBTLabels: Abilita le LABEL di Open Interest a Breve Termine (<=30 giorni) + traccia Max Pain BT.
DISCLAIMER: Dati aggiornati al 06/08/2026. Contenuto a solo scopo didattico. I dati (fonti Consob/Euronext) rielaborati potrebbero contenere errori nonostante l'accuratezza dell'analisi. Verificare sempre le fonti ufficiali. Non costituisce consulenza finanziaria.
Release Notes
- Update: The open interest ranking per stock has been expanded from the top 10 to the top 20 to provide greater statistical significance.
- Max Pain: The Max Pain theory posits that, at option expiration, the stock price tends to gravitate toward the strike price that causes the greatest aggregate financial loss for option buyers. At this level, option sellers (typically institutions and market makers) realize maximum profit, as the largest number of Call and Put options expire worthless. Calculation method:
To identify Max Pain, the algorithm evaluates every listed strike price as a hypothetical closing price at expiration. For each candidate strike, it calculates the cumulative intrinsic value of the options that would be In-The-Money (ITM). The strike resulting in the lowest absolute loss value is defined as Max Pain. The script performs this calculation both on the total sample of contracts (Max Pain) and by isolating the short-term component (Max Pain BT).
New Parameters:
- InputshowTable: Shows or hides the statistical table in the top-right corner.
- valoreTopN: (1 to 20) Number of Open Interest labels to display. showTopNLabels: Enables labels for aggregate Open Interest (all expiration dates) and activates the horizontal line for total Max Pain.
- showBTLabels: Enables labels for Short-Term Open Interest (<=30 days) and plots the Max Pain BT line.
Release Notes
Data updated as of 06/08/2026 - the number of contracts expiring soon is indicated in the labels in square brackets [August]
DISCLAIMER: For educational purposes only. This is not investment advice. Although care is taken, data accuracy (Source: CONSOB/Euronext) cannot be guaranteed. Always verify information through official sources before making any decisions. Use at your own risk.
Open-source script
In true PulseWire 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 PulseWire. Read more in the Terms of Use.
Open-source script
In true PulseWire 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 PulseWire. Read more in the Terms of Use.
