All indicators

VWAPStrategy

Aug 22, 2019

Static chart image
Volume BasedSignalsMoving Averages

The VWAPStrategy indicator is a technical tool designed to partition the trading day into long and short bias zones based on the interaction between a Simple Moving Average (SMA) and the Volume Weighted Average Price (VWAP).

Usage

The Usage section focuses on identifying shifts in market sentiment throughout the day. By observing the relationship between the price-based SMA and the volume-weighted VWAP, traders can determine which "zone" the current price action occupies.

  • Bullish Bias: Established when the SMA crosses above the VWAP, suggesting that recent price momentum is outpacing the volume-weighted average price for the session.
  • Bearish Bias: Established when the VWAP crosses above the SMA, suggesting that recent price momentum is lagging behind the volume-weighted average price.

This tool is primarily intended for use on lower timeframes, such as the 1-minute chart, to visualize intraday trend transitions. It is designed as a bias-identification tool rather than a standalone signal generator.

Details

The script executes by comparing a short-term Simple Moving Average (defaulted to a length of 3) against the standard session VWAP. The core logic relies on the concept of "mean reversion" and "momentum" relative to volume.

The VWAP serves as a benchmark for the average price a security has traded at throughout the day, based on both volume and price. When a fast SMA crosses this benchmark, it indicates a significant shift in the immediate trend direction relative to the day's average. The strategy implementation includes automated entries and exits to visualize where these transitions occur on the chart.

Settings

  • SMA Length: Determines the lookback period for the Simple Moving Average. A shorter length makes the indicator more responsive to price changes, while a longer length smooths out the bias transitions.

FAQ

How can I use this to identify market bias?

You can look for the color-coded crossings: when the green SMA line is above the red VWAP line, the market is in a long-bias zone; conversely, when the red VWAP is above the green SMA, it is in a short-bias zone.

What timeframe is best for this strategy?

This script is specifically optimized for intraday trading, with the 1-minute chart being the recommended timeframe for capturing rapid shifts in bias.

How do I access the VWAPStrategy?

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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.