VWAP_X_EMA
Nov 29, 2020

The VWAP_X_EMA indicator provides a systematic approach to trend following by combining the Volume Weighted Average Price (VWAP) with exponential moving averages to identify high-probability entry points.
Usage
The strategy is designed to identify long and short opportunities based on the confluence of price action relative to key intraday and long-term benchmarks.
- Long Entries: Occur when the closing price is above the VWAP, the 50-period EMA, and the 200-period EMA. This triple confirmation suggests a strong bullish trend across multiple timeframes.
- Short Entries: Occur when the closing price is below both the VWAP and the 50-period EMA, indicating bearish momentum.
The indicator is visual-coded with the VWAP appearing in the chart's foreground color and the 50-period EMA plotted in teal.
Details
The script integrates three primary technical components to filter out market noise:
- VWAP (Volume Weighted Average Price): Acts as a benchmark for the average price a stock has traded at throughout the day, based on both volume and price.
- EMA 50: Provides a medium-term trend filter.
- EMA 200: Serves as a "golden filter" for long positions, ensuring trades are only taken in the direction of the long-term structural trend.
The strategy includes built-in alert functionality that triggers once per bar whenever the long or short conditions are met, allowing for automated monitoring.
Settings
- Commission Type: Defines how trading commissions are calculated (percentage-based).
- Commission Value: The specific percentage value charged per trade (default is 0.075%).
- Initial Capital: The starting balance for the strategy backtest.
- Default Quantity Type: Determines how trade sizes are calculated (percentage of equity).
- Default Quantity Value: The percentage of equity used for each trade (default is 100%).
FAQ
How do I use the VWAP_X_EMA?
You can use it as a trend-following system. Look for price to sustain levels above all three lines for long bias, or below the VWAP and 50 EMA for short bias.
On which timeframes does this indicator work best?
While VWAP is typically an intraday tool, the inclusion of the 50 and 200 EMA makes this strategy versatile for scalping and day trading on lower timeframes like the 5m or 15m.
How can I access this script?
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.