OPEN-SOURCE SCRIPT
Aggiornato VWAP - Weekly Auto Anchored

Weekly VWAP auto anchors to the start of each week
Labelled lines that the color of the text matches the line color
Labelled lines that the color of the text matches the line color
Note di rilascio
Replaced the Delta Triangle with a directional triangle that changes direction to weather above or below the VWAPNote di rilascio
Fixed- labels not changing color on line color change to match
- improved calculations for extensions distances
Note di rilascio
UpdatesEnd-of-line labels updated to match RTH/Globex format
VWAP label now shows distance to nearest band with directional arrow: Weekly VWAP (▲: 12.50 pts)
Extension distance shown when price is outside bands: | Ext: 3.25 pts
Band labels show as Weekly UB / Weekly LB
Fixed variable scoping bug that caused compile errors
Note di rilascio
Resolved issue with distance from VWAP to Std Band calculationNote di rilascio
Update:- Fixed: labels now update correctly during Bar Replay — previously they didn't appear until replay caught all the way up to the live bar.
- Fixed: "Percentage" band mode now has its own width input instead of being locked at 1%.
- Added: "Show Current Price on Label" option — displays the live price alongside the VWAP label, toggle on/off as preferred.
Note di rilascio
Update:- Changed: "Show Current Price on Label" replaced with two separate toggles — "Show Price on VWAP Label" and "Show Price on Band Labels" (the latter applies to both UB and LB together).
- Fixed: each label now shows its own value (VWAP labels show the VWAP price, band labels show that band's price) instead of all three showing the same current market price.
Note di rilascio
Update notes:Fixed a Bar Replay bug where the line and labels wouldn't draw until replay caught all the way up to the current live bar.
Fixed "Percentage" band mode, which was previously hardcoded to 1% with no way to adjust it — added a Percentage Width (%) input.
Added the option to show each line's own current price directly on its label. Two independent toggles: one for the VWAP label, and one shared toggle for the Upper/Lower Band labels together. Both now default to on.
Added a toggle to show/hide the band-width and extension-distance info on the VWAP label, for anyone who just wants the plain label name (and price). Defaults to on.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
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 open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
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.