OPEN-SOURCE SCRIPT
Aggiornato OBV (Delta or regular)

This is a quite simple script to apply some choices to OBV.
Simple delta OBV example:
If a red bar has a long lower wick, OBV will calculate the entire bar towards bearish volume, while the delta will check if there's more buying or selling happening in total. Some times you'll be able to catch divergences in the volume which implies a reversal might be in the making.
For instance more selling on a green candle making the OBV drop instead of increasing or vise versa.
Hopefully someone finds is useful.
- You can choose to use regular OBV values or you can choose to use delta OBV values.
Delta OBV values calculates the delta between selling volume and buying volume per bar to find discrepancies. - You can make the OBV a smoothed line or just keep the normal rigid line. Rigid line is default.
- A secondary smoothed OBV line is added automatically with color change if the OBV is above or below the smoothed line.
- You can set your desired MA from SMA, EMA, VWMA and WMA, The same will be applied to both lines if chosen to smooth them both.
- Both lines are editable from the styles tab (visibility, color and line type)
If you for some reason don't want color change on the secondary line, chose the same color for both color 1 and 2.
Simple delta OBV example:
If a red bar has a long lower wick, OBV will calculate the entire bar towards bearish volume, while the delta will check if there's more buying or selling happening in total. Some times you'll be able to catch divergences in the volume which implies a reversal might be in the making.
For instance more selling on a green candle making the OBV drop instead of increasing or vise versa.
Hopefully someone finds is useful.
Note di rilascio
This is a quite simple script to apply some choices to OBV.- You can choose to use regular OBV values or you can choose to use delta OBV values.
- Delta OBV values calculates the delta between selling volume and buying volume per bar to find discrepancies.
- You can make the OBV a smoothed line or just keep the normal rigid line. Rigid line is default.
- A secondary smoothed OBV line is added automatically with color change if the OBV is above or below the smoothed line.
- You can set your desired MA from SMA, EMA, VWMA and WMA, The same will be applied to both lines if chosen to smooth them both.
- Both lines are editable from the styles tab (visibility, color and line type)
If you for some reason don't want color change on the secondary line, chose the same color for both color 1 and 2.
Simple delta OBV example:
If a red bar has a long lower wick, OBV will calculate the entire bar towards bearish volume, while the delta will check if there's more buying or selling happening in total. Some times you'll be able to catch divergences in the volume which implies a reversal might be in the making.
For instance more selling on a green candle making the OBV drop instead of increasing or vise versa.
Hopefully someone finds is useful.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.