Auto anchored VWAP Highest/Lowest Last 'n' bars

TJalam Updated   
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

An enthusiast trader. I code my strategies in pine script.DM me for any Info.
Buy me coffee at:
paypal :
BTC : 15zY6PUsrV55UQvcfaSqk5hJexKZAwhpcK
TRC20: TPutH6FDYg6bJFF7xCjesp4n44qrMnizc7
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.


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.

Want to use this script on a chart?