VWAP ATR
Sep 28, 2018

The VWAP ATR indicator combines a Volatility-Adjusted Trailing Stop with a Volume Weighted Average Price (VWAP) that dynamically resets to provide precise entry and exit confirmation based on trend shifts.
Usage
The tool can be used to identify trend direction and potential reversal points. When the price crosses the ATR Trailing Stop, the indicator signals a change in trend:
- Bullish Trend: Occurs when the price closes above the trailing stop. The stop line turns green, and the VWAP resets to start calculating from the point of the breakout.
- Bearish Trend: Occurs when the price closes below the trailing stop. The stop line turns red, and the VWAP resets accordingly.
Traders often use the VWAP line as a secondary confirmation for entries; for example, entering long when the price is both above the ATR Trailing Stop and the reset VWAP.
Details
The script functions by calculating an ATR-based volatility band using a user-defined multiplier and period. This band acts as a dynamic trailing stop-loss level. A unique feature of this implementation is the integration of the VWAP calculation with the trend state. Instead of resetting on a fixed time anchor (like daily or weekly), the VWAP resets whenever the price crosses the ATR Trailing Stop. This provides a volume-weighted average of the price action specifically for the duration of the current trend.
Settings
- Period: Sets the lookback period for the Average True Range (ATR) calculation used to determine volatility.
- Multiplier: Adjusts the distance of the trailing stop from the price. Higher values result in a wider, more conservative stop, while lower values make it more sensitive to price movements.
- Source: Determines the price data used for the VWAP calculation (e.g., hlc3, close).
FAQ
How do I use the VWAP ATR for exits?
The ATR Trailing Stop line serves as a dynamic exit level. If you are in a long position and the price closes below the green line, it indicates a bearish trend shift and a potential exit point.
What is the significance of the VWAP reset?
The reset ensures that the volume-weighted average price only accounts for data within the current trend, offering a more relevant "fair value" assessment for the ongoing move.
How can I access the VWAP ATR?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.