Volume-Weighted Kaufman's Adaptive Moving Average
Aug 19, 2023

The Volume-Weighted Kaufman's Adaptive Moving Average (VW-KAMA) indicator combines the responsiveness of volume-weighting with Kaufman's adaptive smoothing to provide a highly dynamic trend-following tool that filters market noise while remaining sensitive to significant price movements.
Usage
The Usage section describes how the script can be used, particularly for identifying trends and potential reversal points. Because the indicator incorporates volume data and an Efficiency Ratio (ER), it automatically speeds up during strong, high-volume trends and slows down during choppy, low-volume consolidation.
- Trend Identification: Users can observe the color of the VW-KAMA line to determine trend direction. A green line indicates an upward trend, while a red line indicates a downward trend.
- Dynamic Support and Resistance: The adaptive nature of the line allows it to act as a trailing support or resistance level that tightens during volatile breakouts and flattens during sideways price action.
- Volatility Bands: By enabling the ATR Bands, traders can establish overextended price zones or use the bands as breakout targets and stop-loss references.
- Signal Filtering: The volume-weighted component ensures that price moves on low relative volume have less impact on the moving average, reducing the likelihood of being "whiplashed" by minor fluctuations.
Details
The VW-KAMA is constructed by replacing the standard price input of a Kaufman’s Adaptive Moving Average with a Volume-Weighted Moving Average (VWMA) base.
The calculation follows these core steps:
- Volume-Weighting: A short-term VWMA is calculated to serve as the primary price source.
- Efficiency Ratio (ER): The script calculates the ratio between the total price change over a period and the sum of absolute price changes. An ER closer to 1 implies a strong trend, while an ER closer to 0 implies a range-bound market.
- Smoothing Constant (SC): The ER is used to interpolate between a fast and slow smoothing constant. This result is squared to prevent the average from becoming too reactive in non-trending conditions.
- Adaptive Smoothing: The final VW-KAMA is calculated by applying the SC to the difference between the current volume-weighted price and the previous VW-KAMA value.
Settings
- VWMA Length: Sets the period for the underlying volume-weighted price calculation.
- Fast Length: The period for the fastest smoothing constant used when the market is highly efficient.
- Slow Length: The period for the slowest smoothing constant used when the market is inefficient or choppy.
- Include ATR Bands: A toggle to display upper and lower volatility bands around the VW-KAMA.
- ATR Length: The lookback period used for the Average True Range calculation.
- ATR Multiplier: Determines the distance of the bands from the VW-KAMA line based on market volatility.
FAQ
How do I interpret the color changes on the VW-KAMA line? The line turns green when the current value is higher than the previous value (bullish momentum) and red when it is lower (bearish momentum). A blue color indicates no change in value.
What makes this different from a standard KAMA? Unlike a standard KAMA which uses closing prices, the VW-KAMA integrates volume data into its base price calculation. This gives more significance to price movements that occur with higher trading activity.
How can I access the Volume-Weighted Kaufman's Adaptive Moving Average? 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.