Elastic Buy-Sell Volume Wighted Supertrend
Mar 22, 2024

The Elastic Buy-Sell Volume Wighted Supertrend indicator provides a dynamic trend-following framework that adapts its sensitivity based on volume-weighted volatility and broader market benchmarks. It aims to offer more responsive support and resistance levels compared to a traditional Supertrend by automating the multiplier adjustment process.
Usage
The tool can be used similarly to a traditional Supertrend to identify trend direction and potential trailing stop-loss levels. When the price is above the green line, the market is considered to be in an uptrend; when the price is below the red line, it is in a downtrend.
Because the indicator uses a dynamic multiplier, it adjusts the width of the bands automatically based on market conditions:
- Trend Identification: Traders can look for "flips" in the line color to identify potential trend reversals.
- Dynamic Stop Loss: The bands act as a trailing stop that tightens during low-volatility periods and widens during high-volatility spikes.
- Volume Sensitivity: The use of up/down volume means the indicator reacts more strongly to price movements supported by high trading activity.
Details
The script improves upon the standard Supertrend formula by modifying two core components: the Average True Range (ATR) and the Multiplier.
- Volume-Weighted ATR: Instead of a standard ATR, the script calculates separate "Buy ATR" and "Sell ATR" values. It utilizes lower timeframe data to deconstruct volume into up and down components, weighting the True Range based on these pressures. This ensures that the trend bands are influenced by the intensity of the buying or selling volume.
- Elastic Multiplier: Rather than a static user-defined input, the multiplier is calculated dynamically. It uses:
- Market Ratio: A comparison between the asset’s relative volatility and the S&P 500 (SPX) benchmark over a 500-period window.
- Coefficient of Variation (CV): A measure of short-term variability in the asset’s True Range.
- V-ATR Ratio: A ratio comparing simple moving averages to volume-weighted moving averages of the True Range.
By combining these factors, the multiplier expands when the asset is significantly more volatile than the market or experiencing irregular price swings, and contracts when price action stabilizes.
Settings
- ATR Length: Defines the lookback period for the Average True Range and volume weighting calculations.
- Use custom timeframe: A toggle to manually specify the lower timeframe used for up/down volume granularity.
- Timeframe: The specific timeframe to use for volume calculations if the custom timeframe toggle is enabled.
FAQ
How do I interpret the dynamic multiplier?
The multiplier automatically increases when the asset's volatility exceeds the broader market benchmark or when short-term price fluctuations become more erratic, providing "more room" for the trend to develop without being stopped out prematurely.
Why does the indicator use lower timeframe data?
Lower timeframe data allows the script to more accurately determine if volume was associated with an upward or downward price movement within a single bar, leading to a more precise volume-weighted ATR.
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.