Volumatic Variable Index Dynamic Average [BigBeluga]The Volumatic VIDYA (Variable Index Dynamic Average) indicator is a trend-following tool that calculates and visualizes both the current trend and the corresponding buy and sell pressure within each trend phase. Using the Variable Index Dynamic Average as the core smoothing technique, this indicator also plots volume levels of lows and highs based on market structure pivot points, providing traders with key insights into price and volume dynamics.
Additionally, it generates delta volume values to help traders evaluate buy-sell pressure balance during each trend, making it a powerful tool for understanding market sentiment shifts.
BTC:
TSLA:
🔵 IDEA
The Volumatic VIDYA indicator's core idea is to provide a dynamic, adaptive smoothing tool that identifies trends while simultaneously calculating the volume pressure behind them. The VIDYA line, based on the Variable Index Dynamic Average, adjusts according to the strength of the price movements, offering a more adaptive response to the market compared to standard moving averages.
By calculating and displaying the buy and sell volume pressure throughout each trend, the indicator provides traders with key insights into market participation. The horizontal lines drawn from the highs and lows of market structure pivots give additional clarity on support and resistance levels, backed by average volume at these points. This dual analysis of trend and volume allows traders to evaluate the strength and potential of market movements more effectively.
🔵 KEY FEATURES & USAGE
VIDYA Calculation:
The Variable Index Dynamic Average (VIDYA) is a special type of moving average that adjusts dynamically to the market’s volatility and momentum. Unlike traditional moving averages that use fixed periods, VIDYA adjusts its smoothing factor based on the relative strength of the price movements, using the Chande Momentum Oscillator (CMO) to capture the magnitude of price changes. When momentum is strong, VIDYA adapts and smooths out price movements quicker, making it more responsive to rapid price changes. This makes VIDYA more adaptable to volatile markets compared to traditional moving averages such as the Simple Moving Average (SMA) or the Exponential Moving Average (EMA), which are less flexible.
// VIDYA (Variable Index Dynamic Average) function
vidya_calc(src, vidya_length, vidya_momentum) =>
float momentum = ta.change(src)
float sum_pos_momentum = math.sum((momentum >= 0) ? momentum : 0.0, vidya_momentum)
float sum_neg_momentum = math.sum((momentum >= 0) ? 0.0 : -momentum, vidya_momentum)
float abs_cmo = math.abs(100 * (sum_pos_momentum - sum_neg_momentum) / (sum_pos_momentum + sum_neg_momentum))
float alpha = 2 / (vidya_length + 1)
var float vidya_value = 0.0
vidya_value := alpha * abs_cmo / 100 * src + (1 - alpha * abs_cmo / 100) * nz(vidya_value )
ta.sma(vidya_value, 15)
When momentum is strong, VIDYA adapts and smooths out price movements quicker, making it more responsive to rapid price changes. This makes VIDYA more adaptable to volatile markets compared to traditional moving averages
Triangle Trend Shift Signals:
The indicator marks trend shifts with up and down triangles, signaling a potential change in direction. These signals appear when the price crosses above a VIDYA during an uptrend or crosses below during a downtrend.
Volume Pressure Calculation:
The Volumatic VIDYA tracks the buy and sell pressure during each trend, calculating the cumulative volume for up and down bars. Positive delta volume occurs during uptrends due to higher buy pressure, while negative delta volume reflects higher sell pressure during downtrends. The delta is displayed in real-time on the chart, offering a quick view of volume imbalances.
Market Structure Pivot Lines with Volume Labels:
The indicator draws horizontal lines based on market structure pivots, which are calculated using the highs and lows of price action. These lines are extended on the chart until price crosses them. The indicator also plots the average volume over a 6-bar range to provide a clearer understanding of volume dynamics at critical points.
🔵 CUSTOMIZATION
VIDYA Length & Momentum: Control the sensitivity of the VIDYA line by adjusting the length and momentum settings, allowing traders to customize the smoothing effect to match their trading style.
Volume Pivot Detection: Set the number of bars to consider for identifying pivots, which influences the calculation of the average volume at key levels.
Band Distance: Adjust the band distance multiplier for controlling how far the upper and lower bands extend from the VIDYA line, based on the ATR (Average True Range).
Buysellvolume
Volume Delta [hapharmonic]Volume Delta: Volume Delta is an indicator that simplifies how you analyze trading volumes and the percentage of buy-sell activities effortlessly.
As a trader or market analyst, understanding underlying volume and trade flows is critical. The Volume Delta indicator provides thorough insight into both the total volume and the percentage of buying versus selling within the current candlestick. This information is pivotal for those looking to gauge market momentum and sentiment more effectively.
Additionally, the Volume Delta indicator can plot the candlestick colors based on the percentage of the dominant buying or selling volume. The area between the open and close prices of the candlestick is considered 100% and fills with colors corresponding to the predominant volume at that percentage.
Volume Delta also integrates the concept of Net volume. This component is crucial as it reveals the real market sentiment by calculating the difference between the volume of trades executed at an uptick and those at a downtick.
🟠 Overview
This indicator now displays in two layouts. Recently, Tradingview introduced the "force_overlay=true" function in Pine Script , allowing plots to be moved to the main chart. Thus, all displays are from the same indicator.
🟠 USAGE
From the data displayed in 'plot.style_columns' , the peak area represents the entire volume, accounting for 100%. Within this area, there are two color levels indicating volume. If one type of volume, whether buying or selling, exceeds the other, the larger volume will be positioned behind and the smaller in front. This arrangement prevents the scenario where a higher buying volume obscures the smaller selling volume. Therefore, the two colors can be switched between the front and the back as needed.
As you can see, the 12 and 26-day Exponential Moving Averages (EMAs) are used, with the Volume Confirmation Length set at 6. Therefore, the crossing of the EMAs proceeds normally, but it is highlighted with three triangular arrows to indicate a high likelihood of a valid crossover. However, if the volume is insufficient, these markers won't be displayed, although the EMA crossover will still occur as usual. This can be useful for using volume to verify the significance of the EMA crossover.
🟠 Setting
If you enable the label, please be aware that the chart size will shrink, causing the candlestick display to become unclear. Therefore, you might need to select "Logarithmic" at the bottom right of your screen, or for mobile applications, press and hold on the price scale and choose "Logarithmic" to adjust the scale appropriately.
Enjoy!
Volume Delta Candles [LuxAlgo]Volume Delta Candles provides insights about Intrabar trading activity in an easy-to-interpret manner. Lower timeframe or real-time data is used for displaying Volume Delta percentage against the total volume as a coloured bar part.
The script also highlights the intrabar price with the maximum trading activity, as well as complementary information.
🔶 USAGE
The tool focuses on intrabar volume to provide more information about the trading activity associated with a candle, without having to use an external volume indicator.
Each indicator components is further explained below:
🔹 Volume Delta
The volume delta is obtained by the difference between buy volume and sell volume, where buy volume is the volume associated with a bullish intrabar candle, and sell volume with a bearish intrabar candle.
Positive volume delta is displayed with a green candle area, while negative delta is displayed with a red candle area.
🔹 Bar Coloring
The script displays VD as a percentage of the whole, or from the candle half, depending on the setting ' Display '.
Bars can be coloured as follows:
Full (100%) when Display is set at ' Full Bar '
Half (50% or 100% of half a bar) when Display is set at ' Half Bar '
A negative VD (more bearish than bullish volume) will fill the bar from the top (or centre) of the bar towards the bottom, and a positive VD will fill a bar from the bottom (or centre) of the bar towards the top.
A negative VD on a green candle will show a red-coloured VD against a green-bordered candle. On the other hand, a positive VD on a red candle will show a green-coloured VD against a red-bordered candle.
Colours for VD sentiment opposite to the candle sentiment can be set differently if desired.
🔹 Highest Volume Price Level
The script displays a white (black on light mode) line highlighting the intrabar price level with the highest volume.
When ' Show Previous Max Volume Price ' is checked, a white (black on light mode) dot is displayed 1 bar to the right.
🔶 DETAILS
🔹 Tick/LTF data
The above example used Lower TimeFrame (LTF) data.
The following example uses real-time tick data ( Settings -> Data From )
Both options, LTF or tick data, will show a vertical dotted line where the data starts.
🔹 LTF settings
When ' Data from ' LTF is chosen and ' Auto ' enabled, the LTF will be the nearest possible x times smaller TF than the current TF. When 'Premium' is disabled, the minimum TF will always be 1 minute to ensure TradingView plans lower than Premium don't get an error.
Examples with current Daily TF (when Premium is enabled):
500 : 3 minute LTF
1500 (default): 1 minute LTF
5000: 30 seconds LTF (1 minute if Premium is disabled)
🔹 Notes
Different LTFs give different data, which means different results; this doesn't mean it isn't correct; they are just different data sets.
(LTF is displayed at the top right corner)
To ensure maximum visibility of values, we recommend using Bars from the Bar's style menu.
🔶 SETTINGS
Data from: Lower TimeFrame or real-time Tick data
Resolution: LTF setting
Auto + multiple: Adjusts the initial set resolution
Premium: Enable when your TradingView plan is Premium or higher
🔹 Intrabar Data
Colours
Display: Full/Half bar
Show previous max volume price: White/black dot, showing previous highest volume price level
🔹 Table
Show TF: Show LTF at the top right corner
Colour + table text size
🔹 Details
Show details: label with 'Volume', 'Delta' (VD) and '%'
See USAGE for more information
Elastic Buy-Sell Volume Wighted SupertrendCredits: This uses Trading View's buy and sell volume script and the Super trend script.
Elastic Buy-Sell Volume Wighted Supertrend can be used like a traditional supertrend indicator however we do not have to arbitrarily choose a multiplier depending on the stock and time frame the code dynamically adjust the multiplier and this is described below.
The buy and sell ATR (Average True Range) play a crucial role in determining the levels for potential buy and sell signals in the market. These ATR values are calculated based on volume-weighted averages, providing insights into the strength of buying and selling pressures. By incorporating volume into the ATR calculation, the indicator can better adapt to market dynamics, as volume often reflects the intensity of price movements. Instead of using Volume as whole this uses up and down volume derived from lower time frames which is used to calculate buy and sell ATR.
The multiplier is a key factor in the Supertrend calculation, which adjusts the width of the trend bands. The multiplier in this indicator dynamically adjusts itself based on two key components: the ratio of the asset's Average True Range (ATR) to that of a broader market benchmark and the coefficient of variation (CV) of the True Range (TR). The ratio comparison provides a historical context of the asset's volatility relative to the wider market over a longer time frame, while the CV accounts for short-term fluctuations in volatility.
By comparing the asset's ATR to that of the benchmark, traders gain insights into the asset's historical volatility behavior. A higher multiplier suggests that the asset's volatility has historically exceeded that of the benchmark, indicating potentially larger price movements compared to the broader market. Conversely, a lower multiplier suggests the opposite.
The CV component measures short-term variability in the asset's volatility, ensuring that the multiplier adapts to both long-term trends and short-term fluctuations. This combined approach enables traders to make informed decisions, considering both historical volatility relative to the broader market and short-term variability. Ultimately, the dynamic multiplier enhances traders' ability to adjust their strategies effectively across various market conditions.
Overall, the use of buy and sell ATR, along with a dynamically adjusted multiplier, enhances the indicator's ability to identify trend directions and to use a dynamic stop loss level.
Volume Suite - By Leviathan (CVD, Volume Delta, Relative Volume)Volume Suite is an all-in-one script that includes several volume-based indicators such as CVD, Volume Delta, Relative Volume, Buy/Sell Volume, Cumulative Relative Volume and more. Additionally, it offers fully customisable appearance and features for improved data visualization, such as highlights for high volume activity, small price changes with high volume, or large price changes with low volume and more.
Data available in version 1:
- Volume Delta
Volume Delta is the net difference between Buy Volume and Sell Volume at a given bar. Positive Delta indicates that Buy Volume > Sell Volume, while Negative Delta means that Sell Volume > Buy Volume. As there is not way to get tick data on Tradingview, calculating Volume Delta is improvised by using the direction of lower timeframe candles and their volume.
- Cumulative Volume Delta (CVD)
CVD is a running total/cumulation of Volume Delta values, where positive VD gets added to the sum and negative VD gets subtracted from the sum. It can be used for trend strength analysis, divergence strategies, sentiment, etc.
- Buy/Sell Volume
Buy and Sell Volume provides an insight into volume activity in a given bar by estimating the buying/selling volume based on the direction of lower timeframe candles and their volume.
- Relative Volume
Relative Volume is used to compare current trading volume to past trading volume over a given period. For instance, a relative volume of 1.0 indicates that volume is at an average level, while a relative volume of 2.0 suggests that the volume is twice as high as the average.
- Cumulative Relative Volume (CRVOL)
CRVOL is a running total/cumulation of Relative Volume values, where RVOL at close>open gets added to the sum and RVOL at close<open gets subtracted from the sum. It can be used for trend strength analysis, divergence strategies, sentiment, etc.
Alerts, aggregated data and more data sets coming in future updates.
Volume composition / quantifytools— Overview
While net volume is useful information, it can be a blunt data point. Volume composition breaks down the content of volume, allowing a more detailed look inside each volume node. Volume composition consists of the following information:
Total volume (buy and sell). By default gray node.
Dominating volume (buy or sell). By default dark green/dark red node.
Dominating active volume (buy or sell). By default light green/light red node.
Dominating volume as percentage of total volume.
Dominating active volume as percentage of total active volume.
Buy and sell volume is defined by volume associated with lower timeframe up/down moves. This classification is further broken down to passive/active, standing for decreasing/increasing volume, e.g. a move up with volume higher than previous bar volume = active buy volume, a move up with volume lower than previous bar volume = passive buy volume.
Volume data is fetched from a lower timeframe that is automatically adjusted to fit the timeframe you're using. By default, the following settings are applied:
Charts <= 30 min: 1 minute timeframe
Charts > 30 min & <= 3 hours : 5 minute timeframe
Charts > 3 hours & <= 8 hours : 15 minute timeframe
Charts > 8 hours & <= 1D: 1 hour timeframe
Charts > 1D & <= 3D : 2 hour timeframe
Charts > 3D: 4 hour timeframe
Timeframe settings can be changed via input menu. The lower the timeframe, the more precision you get but with the cost of less historical data and slower loading time. Users can also choose which source to use for determining buy/sell volume, e.g. using close as source, a close that is higher than previous close would be considered as buy volume. This could be replaced with OHLC4 for example, resulting in a volume direction based on OHLC average.
Volume composition of current chart can also be replaced with any other chart volume composition:
— Visuals
Breakdown of visual elements:
1. Symbol and timeframe used for volume composition calculations. By default the chart that is viewed and automatically selected lower timeframe.
2. Dominating volume threshold exceeded. Can be defined via input menu, 70% of total volume by default.
3. Dominating volume as percentage of total volume. Plotted below volume nodes, without % symbol.
4. Dominating active volume, + or - symbol, standing for buy and sell. Plotted below dominating volume percentage. When dominating volume and dominating active volume sides are in a disagreement (e.g. dominating volume is on buy side while dominating active volume is on sell side) this symbol will appear inside brackets, (+) or (-).
5. Dominating active volume as percentage of total active volume. Plotted below +/- symbol.
6. Dominating active volume threshold exceeded. Can be defined via input menu, 70% by default.
Dominating volume & active volume percentages can be rounded to single numbers to avoid clutter caused by overlapping values. The percentage values will be rounded to closest single number value, e.g. dominating volume percentage at 54% = 5, dominating volume percentage at 55% = 6.
Volume anomalies can be highlighted on the chart with a color for studying the events and their past implications in greater detail. Available anomalies for highlights are the following:
Buy volume threshold exceeded
Sell volume threshold exceeded
Active buy volume threshold exceeded
Active sell volume threshold exceeded
Volume & active volume divergence
— Practical guide
Volume is arguably one of the most important data points as it directly relates to liquidity. High volume can be an indication of strength (price likely to continue moving) or absorption (price likely to halt/turn). Same applies to active volume, but with an element of aggression. High active volume serves as an indication of exuberance or otherwise forceful transacting, like stop losses triggering. With these principles in mind, the composition of volume allows distinguishing potentially important events.
Example #1 : Identifying areas of trapped market participants
Often when volume spikes distinctively, we can make the case that price has found sufficient liquidity to halt/turn. Since we know which side was absorbed, in what quantity and type (passive/active), we can identify areas of trapped market participants. In such scenarios, the higher the dominant active volume and volume spike itself, the better.
Example #2 : Identifying a healthy trend
A healthy trend is one that has an active and consistent bid driving it. When this is the case, it can be seen in consistently supportive active volume.
Example #3 : Identifying inflection points
When dominant side of volume and dominant side of active volume diverge, something is up. A divergence often marks an area of indecision, hinting an imminent move one way or the other.
Aggregated Delta (Buy/Sell) Volume - InFinito||||||||||||||||CREDITS||||||||||||||||
Modified & Updated script from MARKET VOLUME by Ricardo M Arjona @XeL_Arjona that Includes Aggregated Volume , Delta Volume , Volume by Side
Aggregation code originally from Crypt0rus
||||||||||||||||NOTES||||||||||||||||
- Calculated based on Aggregated Volume instead of by symbol volume . Using aggregated data makes it more accurate and allows to compare volume flow between different kinds of markets (Spot, Futures , Perpetuals, Futures+Perpetuals and All Volume ).
- As well, in order to make the data as accurate as possible, the data from each exchange aggregated is normalized to report always in terms of 1 BTC . In case this indicator is used for another symbol, the calculations can be adjusted manually to make it always report data in terms of 1 contract/coin.
- The indicator can be used for any coin/symbol to aggregate volume , but it has to be set up manually
- The indicator can be used with specific symbol data only by disabling the aggregation option, which allows for it to be used on any symbol
- Previously Included with "Aggr. CDV / Delta Volume" this functionality has been removed from the latter indicator for functionality and simplicity purposes.
||||||||||||||||FUNCTIONALITY||||||||||||||||
Aggregated Delta Volume: Based off Xel_Arjona's calculation, buy and sell volume is estimated each period. This indicators can display both Buy Volume and Sell Volume for each period.
By Default, this indicator displays Delta Volume by side, which is the difference between the estimated buy and sell volume.
By checking the Option "Show all volume by side", instead of the Delta volume, all Buy and Sell Volume will be displayed by side
Realtime Volume Bars w Market Buy/Sell/Neutral split & Mkt Delta
What is it?
A tool that shows Real-time Volume bars split into 3 components: (1) Market Buy Volume - i.e., the volume that got transacted on upticks; (2) Market Sell Volume - i.e., the volume that got transacted on downticks;
and, (3) Neutral Volume - i.e., the volume that got transacted without a change in price. (This feature can be turned off if you want normal volume bars).
Market delta (i.e., Market Buy Volume - Market Sell Volume) is also displayed above each volume bar. (On by default; can be switched off from Settings)
The split and Market Delta data are ONLY AVAILABLE FOR REAL-TIME BARS. Historical bars are shown just like regular ones. The dotted line marks the start of real-time data (i.e., the bar from which the indicator started collecting and displaying data). You will see accurate data for bars to the right of this line. The longer you keep a chart open with the study enabled, the more data it collects and displays, and the better your analysis can potentially be.
Note that the data gets reset every time any of the options is changed, the market is switched, the browser is refreshed, or the script is reloaded
DATA ISN'T STORED. I.e., every time a new symbol is loaded, the previous symbol's data is lost. So if you intend to monitor a symbol, you would need to keep it loaded all the time.
Who is it for?
For traders who are used to analyzing buy/sell activity using market buy/sell volume and market delta information
Although you can use this independently as well, use it in conjunction with "Market Delta Volume for Realtime Bars" indicator to get a better visual representation of the numbers.
Buy/Sell Volume BarsCalculates buy and sell volume on each candle. Recommended only for visual use - sell volume is same as "total volume" so it will not get covered by buyvolume.