The "Deshmukh TVWAP with Volume" is a custom technical indicator designed to help traders identify potential institutional activity in the market. It combines the Time-Weighted Average Price (TVWAP) with volume analysis to spot large, market-moving trades often associated with institutional buying and selling.
TVWAP is a variant of the typical VWAP (Volume Weighted Average Price), but with the key difference being that it is time-weighted instead of just volume-weighted. It gives more importance to the price during specific time intervals, which makes it suitable for tracking institutional trading behavior throughout a specific market session.
This indicator is particularly useful for traders who want to track institutional buying or selling, as large institutional players typically execute trades that cause significant price movements and volume spikes. By combining TVWAP with volume conditions, the indicator highlights when institutions might be entering or exiting the market, providing valuable signals for traders.
Key Features and Components
TVWAP (Time-Weighted Average Price):
TVWAP calculates the average price of a security, but it gives more weight to prices that occur over longer periods of time, especially during periods of high activity. This helps smooth out short-term fluctuations and reveals long-term trends, making it an ideal tool for detecting institutional market activity.
Smoothing of TVWAP:
A Simple Moving Average (SMA) is applied to the TVWAP line, which helps smooth out small price fluctuations and gives a clearer, more stable view of the price trend. This makes it easier to spot institutional trends over time rather than reacting to short-term volatility.
Volume Confirmation:
The indicator uses volume analysis to detect significant volume spikes, which are often indicative of institutional trading. It compares the current volume to the 50-period volume moving average, and if the volume is greater than the average by a user-defined multiplier (default of 1.5), it flags these periods as potential institutional activity.
Buy and Sell Signals:
Buy Signal: This occurs when the price crosses above the smoothed TVWAP line with high volume, suggesting institutional buying activity.
Sell Signal: This occurs when the price crosses below the smoothed TVWAP line with high volume, suggesting institutional selling or distribution.
The volume condition ensures that the signals are only generated during periods of high market activity, which is typical for institutional traders.
Session-Based Calculation:
The indicator calculates TVWAP only during a specified trading session (e.g., 9:15 AM to 3:30 PM), which allows traders to focus on active market hours where institutional trades are more likely to occur. This makes the indicator more tailored to specific periods of market activity, avoiding noise from off-hours trading.
Volume-Based Background Color:
The background color of the chart is adjusted when high volume conditions are met (volume greater than 1.5 times the 50-period volume average), providing an additional visual cue that institutional activity is likely present.
Working of the Indicator
Here’s how the Deshmukh TVWAP with Volume indicator works step-by-step:
Session Time Management:
The script defines a custom session time window (e.g., from 9:15 AM to 3:30 PM). TVWAP is only calculated during this period. At the start of a new session or when outside the session, the cumulative calculations for TVWAP are reset.
TVWAP Calculation:
During the defined session, the script calculates TVWAP by accumulating the price times volume (close * volume) and dividing it by the cumulative volume over the session. This gives a time-weighted average price that represents the average price of the asset during that session, adjusted for both time and trading volume.
Smoothing the TVWAP:
To make the TVWAP less sensitive to small price fluctuations, the script applies a Simple Moving Average (SMA) to the TVWAP line over a user-defined period (default 15 bars). This smoothing helps to filter out noise and makes the TVWAP line more stable, which is crucial for spotting longer-term trends driven by institutional buying or selling.
Volume Filtering:
The script calculates the 50-period volume moving average to identify the average volume of the asset over the past 50 bars. It then compares the current volume to the 50-period moving average, using a multiplier (default of 1.5). If the current volume exceeds this threshold, it flags the period as having high volume, which could be an indication of institutional activity.
Signal Generation:
Buy Signal: When the price crosses above the smoothed TVWAP and the volume is significantly higher than average (greater than the volume threshold), the script generates a Buy Signal.
Sell Signal: When the price crosses below the smoothed TVWAP and the volume is significantly higher than average, the script generates a Sell Signal.
Volume-Based Background Coloring:
When high volume is detected (greater than the 50-period moving average multiplied by the user-defined factor), the background of the chart is colored with a green hue, indicating a period of high activity, which could be associated with institutional participation in the market.
Example of How It Works:
Buy Signal:
Suppose the price has been trending sideways. Then, during a particular session, the price crosses above the smoothed TVWAP with high volume (greater than 1.5 times the 50-period volume moving average). This could indicate that institutions are starting to buy, and a Buy Signal is generated.
The chart will display a green label below the bar indicating the Buy Signal.
Sell Signal:
Similarly, if the price crosses below the smoothed TVWAP with high volume, this could signal institutional selling or distribution. A Sell Signal is generated, and a red label appears above the bar indicating the Sell Signal.
High Volume Background:
During periods of unusual market activity (e.g., institutional traders placing large orders), the background of the chart changes color to a green hue, visually marking the periods of high volume.
Advantages of the Deshmukh TVWAP with Volume Indicator
Focus on Institutional Activity:
By combining TVWAP with volume conditions, the indicator helps spot when large players (e.g., institutions) are entering or exiting the market. This makes it useful for tracking smart money movements.
Time-Weighted View: