MACD VWAP Indicator
Aug 2, 2020

The MACD VWAP Indicator tool aims to identify bullish and bearish trend continuations by combining Volume Weighted Average Price (VWAP), Exponential Moving Averages (EMA), and MACD logic. This script is designed for intraday traders looking for confluence between momentum and volume-based price levels.
Usage
The script generates Buy and Sell signals based on specific crossovers and trend filters.
- Long Entry: A bullish signal is triggered when the price is above the VWAP, EMA 9, and EMA 200, coupled with an EMA 9 crossover of the VWAP while MACD momentum is shifting.
- Short Entry: A bearish signal is triggered when the price is below the VWAP, EMA 9, and EMA 200, coupled with an EMA 9 crossunder of the VWAP while MACD momentum is negative.
- Risk Management: The tool automatically calculates Stop Loss (SL) and Take Profit (TP) levels. By default, it suggests a 1:1.5 Risk:Reward ratio. The SL is dynamically placed at either the VWAP or the EMA 200, depending on which provides a more conservative buffer.
Details
The indicator relies on the interaction between short-term momentum (EMA 9), volume-weighted value (VWAP), and long-term trend (EMA 200).
- Trend Filtering: The inclusion of the EMA 200 ensures that signals are only generated in the direction of the long-term trend, reducing "whipsaw" trades in range-bound markets.
- MACD Confluence: The script checks MACD signal levels to ensure that entries occur when momentum is not overextended, specifically looking for crossovers occurring near the zero line.
- Visual Feedback: It features automated TP/SL lines and historical trade result markers (Win/Loss) to help users visualize the performance of the strategy on their specific timeframe.
Settings
MACD & EMA
- Fast Length: The period for the fast MACD EMA calculation.
- Slow Length: The period for the slow MACD EMA calculation.
- Fast EMA: The period for the short-term trend filter (default is 9).
- Signal Smoothing: The smoothing period for the MACD signal line.
Visuals & Risk
- Risk:Reward Ratio (1:x): Sets the multiplier for the Take Profit level relative to the Stop Loss distance.
- Show Buy/Sell Dotted Line: Toggles the visibility of entry and stop levels.
- Show Previous SL and TP Lines: Allows users to view historical trade levels on the chart.
- Additional Alert Threshold: Sets the sensitivity for divergence alerts when price moves significantly away from the VWAP.
FAQ
How do I access the MACD VWAP Indicator?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Which timeframes are best for this indicator?
The indicator is optimized for intraday trading, particularly on the 15-minute and 30-minute charts.
Can I change the risk-to-reward ratio?
Yes, the script includes a "Risk:Reward Ratio" input in the settings menu, allowing you to customize the take profit calculation to suit your trading style.
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.