OPEN-SOURCE SCRIPT
Updated

Auto anchored VWAP Highest/Lowest Last 'n' bars

10 746
The VWAP (Volume Weighted Average Price) indicator is used to calculate the average price weighted by volume. This indicator is designed to automatically draw VWAPs from the highest and lowest points of the last 'n' bars.

It utilizes arrays to calculate the values of VWAP and plot it on the chart on the last historical bar. This version was coded to get a similar version to the official "VWAP Auto anchored" with the highest/lowest selected settings.

To use VWAP, traders can look for price movements relative to the VWAP line to identify potential support or resistance levels. It can also be used in conjunction with other technical indicators to develop trading strategies.
Release Notes
Alert added

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 TradingView. Read more in the Terms of Use.