VWAP-ATRstop
Jan 23, 2020

The VWAP-ATRstop indicator provides a dynamic trend-following trailing stop by combining Volume Weighted Average Price (VWAP) with Average True Range (ATR) calculations to identify potential trend reversals and exit points.
Usage
The Usage of the VWAP-ATRstop revolves around identifying the prevailing trend and managing risk through its trailing stop line. When the price is trading above the indicator line, the trend is considered bullish, and the line serves as a potential support or trailing stop level. Conversely, when the price is below the line, the trend is considered bearish, and the line acts as a resistance or stop-loss level for short positions.
Examples of use cases include:
- Trend Identification: Using the color-coded line and bar colors to determine market direction.
- Trailing Stops: Positioning stop-loss orders slightly beyond the indicator line to protect profits during a trending move.
- Crossovers: Monitoring price crossovers for potential entry or exit signals, supported by built-in alerts.
Details
The indicator calculates a custom stop level by averaging a calculated VWAP value with an adapted ATR-based stop. The VWAP component uses a specific cumulative period to weight price by volume, while the ATR component establishes a volatility-adjusted boundary based on a multiplier. The final output is a smoothed trailing stop that reacts to both volume-weighted price action and market volatility. The logic includes a recursive calculation to ensure the stop level only moves in the direction of the trend until a crossover occurs, preventing "whipsawing" in certain conditions.
Settings
- VWAP Period: Determines the lookback period used for the Volume Weighted Average Price calculation.
- ATR Period: Sets the lookback period for the Average True Range calculation, affecting the sensitivity to volatility.
- ATR Multiplier: Adjusts the distance of the stop line from the price. Higher values create a wider stop, while lower values make the indicator more sensitive to price fluctuations.
FAQ
How do I use the bar coloring feature?
The indicator automatically changes the color of price bars based on whether the close is above or below the VWAP-ATR line. You can disable or modify this in the "Style" tab of the indicator settings if you prefer your standard chart colors.
What do the alerts signify?
Alerts are triggered when the price crosses over or under the indicator line on a bar-close basis, signifying a potential shift in the short-to-medium term trend.
How can I access this indicator?
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.