Price Volume Harmony Indicator [Nasan]The indicator "Price Volume Harmony Indicator " (abbreviated as PVHI) combines relative volume intensity (RVI) and relative price change (PC) to identify potential synergy or divergence between price and volume movements. Let's break down the key components and discuss how to interpret the output:
Relative Volume Intensity (RVI):
It calculates the mean volume intensity using simple moving averages (SMA) of different periods (5, 8, 13, and 144).
It then computes point volume intensity based on the current volume compared to the previous bar's volume.
The final RVI is a combination of mean and point volume intensities.
Relative Price Change (PC):
It calculates the median absolute deviation (MAD) and the price change relative to MAD for three different lengths (5, 8, and 13).
The average relative PC is a weighted combination of the three PC values.
Normalization:
RVI and PC are normalized using Z-scores (standard scores) to bring them to the same scale. This enables easier comparison.
Histogram Plotting:
The RVI and PC are plotted as histograms below the main price chart. Green color bars represent RVI, and blue color bars indicate PC. The RVI bars are light green when the RVI values are decreasing compared to previous bar. Similarly, when PC bars are light blue it indicates that the PC values are decreasing compared to previous bars.
There is a zero line +/- 0.5 SD lines movements above and below the SD lines are practically
significant.
Interpretation :
(1) Strong Bullish Movement :
This is when both the green bars (RVI) and blue bars (PC) increases and are on the same side above zero .
(2) Strong Bearish Movement :
This is when the green bars (RVI) increases and blue bars (PC) decreases. The green bars above zero but blue bars below zero.
(3) Weak Bullish Movement :
This is when the green bars (RVI) decreases and are below zero but the blue bars (PC) increases and are above zero .
(2) Weak Bearish Movement :
This is when both the green bars (RVI) and blue bars (PC) decreases. The green bars and blue bars are below zero.
This output is slightly hard to read but with practice can be read easily.
成交量
Relative Volume Intensity Control Chart***NOTE THE VOLUME OSCILATOR PROVIDED AT THE BOTTOM IS FOR COMPARSION AND IS NOT PART OF THE INDICATOR****
This indicator provides a comprehensive and a nuanced representation of volume relative to historical volume. The indicator aims to provide insights into the relative intensity of trading volume compared to historical data. It calculates two types of relative volume intensity: mean volume intensity and point volume intensity. The final indicator, "Relative_volume_intensity," is a combination of these two.
1. Point Volume Intensity:
Calculate the ratio of the current volume to the corresponding SMA from the previous period for each of the periods.
Normalize each ratio by dividing it by the corresponding normalized SMA.
Assign weights to each normalized ratio and calculate the point volume intensity.
Point volume intensity calculates the intensity of the current trading volume at a specific point in time relative to its historical moving average. It assesses how much the current volume deviates from the previous historical average for different lookback periods(current volume/ average volume of previous n days). The calculation involves dividing the current volume by the corresponding previous historical moving average and normalizing the result. The purpose of point volume intensity is to capture the immediate impact of the current volume on the overall intensity, providing a more dynamic and responsive measure.
2. Mean Volume Intensity:
Calculate the simple moving averages (SMA) of the volume for different periods (5, 8, 13, 21, 34, 55, 89, 144).
Normalize each SMA by dividing it by the SMA with the longest lookback (144).
Assign weights to each normalized SMA and calculate the mean volume intensity.
Mean volume intensity, on the other hand, takes a broader approach by looking at the mean (average) of various historical moving averages of volume. Instead of focusing on the current volume alone, it considers the historical average intensity over multiple periods. The purpose of mean volume intensity is to provide a smoother and more stable representation of the overall historical volume intensity. It helps filter out short-term fluctuations and provides a more comprehensive view of how the current volume compares to historical norms.
Purpose of Both:
Both point volume intensity and mean volume intensity contribute to the calculation of the final indicator, "Relative_volume_intensity." The idea is to combine these two perspectives to create a more comprehensive measure of relative volume intensity. By assigning equal weights to both components and taking a balanced approach, the indicator aims to capture both short-term spikes in volume and trends in volume intensity over a relatively extended periods.
In calculation of both point volume intensity and mean volume intensity, shorter-term moving averages (e.g., 5, 8) have higher weights, suggesting a greater emphasis on recent volume behavior.
Visualization:
The script then calculates the mean and standard deviation of the relative volume intensity over a specified lookback length.
Plot lines for the centerline (mean), upper and lower 3 standard deviations, upper and lower 2 standard deviations, and upper and lower 1 standard deviation.
Plot the relative volume intensity as a step line with diamond markers.
It is displayed like a control chart where we can see how the relative intensity is behaving when compared to longer historical lookback period.
ka66: Normalised/Relative VolumeThis is an idea taken from a John Bollinger (of Bollinger Bands fame) talk. Instead of showing volume with a moving average overlay, we show volume relative to its moving average:
avgVolume = sma(volume, 10) // several configurable MAs allowed
relativeVolume = volume / avgVolume
Now if we get a value of 1, that means the current volume is the same as its historical average. Under 0, less than average, and above zero, greater than its average.
If we get a value like 2, then current volume is twice its average. I hope the implication of this being displayed visually is becoming clearer.
We plot this relative volume as columns.
We then plot horizontal levels, like 1, 2, 3 to see the magnitude of the current volume relative to its average.
Consecutive rising or falling relative volume is shown in the same colour.
I am still exploring volume as trading data point, but we see some ideas from this visual representation:
How do volume patterns change across timeframes? Do we get better signals or higher or lower time frames (e.g. big relative volume spikes)
Can consecutive rises or falls indicate a big potential move, even though price is just fluctuating.
What about a switch from rise to fall.
If we get pinbars/spikes with a big relative volume spike, can we then infer more clearly whether buyers or sellers are in control.
Temporary imbalances 2.0 This indicator attempts to calculate potential points of imbalance and equilibrium based on VWAPs and modified moving averages. The idea is to determine if there has been a change in volume and perform the calculation from that point It uses the standard deviation to determine the significant imbalance threshold. Candles with bullish imbalances are highlighted in green, while candles with bearish imbalances are highlighted in red.
"It also features a set of VWAPs and modified moving averages that you can enable or disable."
When you activate the 'Show Anchor VWAP' option, it will add five modified VWAPs.
Practical Significance:
The Anchored VWAP is a volume-weighted average price that serves as a dynamic reference to assess the average price during specific moments of market imbalance.
During a bullish imbalance, the anchor_vwap reflects the VWAP at that moment, emphasizing price behavior during that specific period.
Similarly, in a bearish imbalance, the anchor_vwap provides the associated VWAP for that condition, highlighting price movements during the imbalance phase.
How to Use:
The anchor_vwap can be employed to contextualize the volume-weighted average price during critical moments associated with significant changes in market imbalance.
By analyzing price behavior during and after periods of imbalance, the Anchored VWAP can help better understand market dynamics and identify potential areas of support or resistance.
Show VWAP Percent Imbalance"
Definition: Represents the Volume Weighted Average Price (VWAP) adjusted by the volume-weighted average of the price multiplied by volume, with a focus on conditions where the percentage volume variation surpasses a predefined threshold.
Calculation: Utilizes the simple moving average weighted of the product of the volume-weighted average price and volume only when the percentage volume variation exceeds a specific threshold.
Interpretation: Provides insight into the volume-weighted price trend during conditions where the percentage volume variation exceeds a predefined limit.
The "showDeltaVWAP" is a toggleable setting that you can turn on or off. When activated, it displays special lines on the chart. Let's understand what these lines represent:
Delta Anchor VWAP:
A green line (Delta Anchor VWAP) represents a measure of market volume imbalance.
Delta2 Anchor VWAP:
A red line (Delta2 Anchor VWAP) shows another perspective of volume imbalance.
VWAP Delta Volume:
A light blue line (VWAP Delta Volume) displays a volume-weighted average of price.
VWAP Delta Volume2:
An orange line (VWAP Delta Volume2) shows another view of the volume-weighted average of price.
Delta3 Anchor VWAP:
A light blue line (Delta3 Anchor VWAP) represents a combination of the previous measures.
Delta4 Anchor VWAP:
A purple line (Delta4 Anchor VWAP) is another combination, providing an overall view.
These lines are based on different conditions and calculations related to trading volume. When you activate "showDeltaVWAP," these lines appear on the chart, aiding in better understanding market behavior.
"Show Faster Volatility" is an option that you can enable or disable. When activated (set to true), it displays special lines on the chart called "Faster Volatility VWAP," "Faster Volatility VWAP2," and "Faster Volatility VWAP3." Let's understand what these lines represent:
Faster Volatility VWAP:
A purple line (Faster Volatility VWAP) is a Volume Weighted Average Price (VWAP) that is calculated more quickly based on short-term price reversal patterns.
Faster Volatility VWAP2:
A light gray line (Faster Volatility VWAP2) is another Volume Weighted Average Price (VWAP) that is calculated even more quickly based on even shorter-term price reversal patterns.
Faster Volatility VWAP3:
A purple line (Faster Volatility VWAP3) is another Volume Weighted Average Price (VWAP) calculated rapidly based on even shorter-term price reversal patterns.
These lines are designed to indicate moments of possible exhaustion of volatility in the market, suggesting that there may be a subsequent increase in volatility. When you activate "Show Faster Volatility," these lines are displayed on the chart.
"Show Average VWAPs Imbalance" displays weighted averages of different Volume Weighted Average Prices (VWAPs) in relation to specific market conditions. Here's an explanation of each component:
Standard VWAP:
The blue line represents the standard VWAP, a volume-weighted average of asset prices over a specific period.
VWAP with Added Imbalance (avg_vwap2):
The pink line is a weighted average that adds an imbalance value to the standard VWAP. This component highlights periods of market imbalance.
VWAP with Balance (avg_vwap3):
The lilac line is a weighted average that adds balance based on the imbalance between uptrend and downtrend, reflecting changes in volume. This provides insights into supply and demand dynamics.
Overall Average of VWAPs (avg_vwaptl):
The violet line is a weighted average that incorporates both standard and adjusted VWAPs, offering an overview of market behavior under different considered conditions.
Visual Customization (Show Average VWAPs Imbalance):
Users have the option to show or hide these average lines on the chart, allowing for a clear visualization of market trends.
"Show Min Variation VWAP" is associated with the calculation and display of a smoothed version of the Volume Weighted Average Price (VWAP), taking into account the minimum price variation over a specific period.
"How Imbalance Anchor VWAP Calculated as the smoothed relationship between liquidity difference and maximum VWAP equilibrium" is associated with the calculation and display of a smoothed version of the Imbalance Anchor VWAP. Here is a detailed explanation:
Calculations and Smoothing:
The variable "smoothed_difference" represents the exponential moving average (EMA) of the difference between two variables related to liquidity.
"smoothed_difference2" is the division of "smoothed_difference" by the maximum variation of the VWAP Equilibrium.
"smoothed_difference3" involves additional manipulation of "smoothed_difference" and "vwap_delta3."
"smoothed_difference4" incorporates the previous results, adjusted by the value of the VWAP.
Visual Customization:
The user has the option to enable or disable the display on the chart.
The line is colored in a shade of green.
It provides a smoothed representation of the Imbalance Anchor VWAP.
The line is colored in a shade of blue, and the calculation involves the summation of moving averages (20, 50, 200). Afterward, there is division by 3. Additionally, there is the summation of moving averages (766, 866, 966), divided by 3. The final step is to add these results together and divide by 2. media name is Imbalance Value2
Show VWAP Equilibrium (Max Variation) Calculated as the difference between two VWAPs derived from the highest and lowest price changes
Show Equilibrium VWAP Calculated as the sum of VWAP and (sma200 - sma20)
calculate the difference between the media of 200 to 20
Show Equilibrium VWAP Calculated as the sum of VWAP and (766+866+966)/3 - (sma200 - sma20)
Show Equilibrium VWAP Standard Deviation Calculated as the Exponential Moving Average (EMA) of the Standard Deviation of SMA (sma200 + sma20 + sma8)/3
Show Equilibrium VWAP Delta Calculated as the ratio of the smoothed VWAP Delta Result componentes
Show Standard Deviation Equilibrium VWAP Delta: Calculated as the Standard Deviation between the Average of VWAP Delta Result Components and Their Smoothed Versions
This average attempts to calculate the equilibrium."
vwap_equilibrium:
Definition: Represents the Volume Weighted Average Price (VWAP) adjusted by the volume-weighted average of the price (hl2) multiplied by volume, focusing on periods of volume equilibrium.
Calculation: Utilizes the simple moving average weighted (sma) of the product of the volume-weighted average price and volume only when there is no volume imbalance.
Interpretation: This indicator provides a view of the volume-weighted price trend during moments when the market is in equilibrium, meaning there is no noticeable imbalance in volume conditions. The calculation of VWAP is adjusted to reflect market characteristics during periods of stability.
vwap_percent_condition:
Definition: Represents the Volume Weighted Average Price (VWAP) adjusted by the volume-weighted average of the price multiplied by volume, with a focus on conditions where the percentage volume variation surpasses a predefined threshold.
Calculation: Utilizes the simple moving average weighted of the product of the volume-weighted average price and volume only when the percentage volume variation exceeds a specific threshold.
Interpretation: Provides insight into the volume-weighted price trend during conditions where the percentage volume variation exceeds a predefined limit.
The objective of these two VWAPs is to calculate possible equilibrium points between buyers and sellers.
The indicator works for all timeframes This indicator can be adjusted according to the preferences and characteristics of the specific asset or market. It provides clear visual information and can be used as a complementary tool for technical analysis in trading strategies.
Interesting
Interesting
lookback period 7 , 12, 20,70,200, 500,766,866,966
imbalance threshold 2.4, 3.3 ,4.2
The objective of this indicator is to identify and highlight various points of imbalance and equilibrium.
Performante's Average Bitcoin Volume IndicatorThe volume of all major exchanges, including:
Bitfinex, Coinbase, Bitstamp, Bitmex, Kraken, Binance, Bithumb, Flyer, and OkEx
Volume Outlier Signal Detector (Based on IQR)This indicator can detect outliers in trading volume using the 1.5 IQR rule or the outlier formula.
The outlier formula designates outliers based on upper and lower boundaries. Any value that is 1.5 times the Interquartile Range (IQR) greater than the third quartile is designated as an outlier.
The indicator computes the Q3 (75th percentile) and Q1 (25th percentile) of a given volume dataset. The IQR is then calculated by subtracting the Q1 volume from the Q3 volume.
To identify volume outliers, the indicator uses the formula:
Q3 Volume + IQR Multiplier(1.5) * IQR
If the trading volume surpasses the volume outlier, the indicator will display either a green or red column.
A green column indicates that the current bar volume is higher than the volume outlier, and simultaneously, the current bar close is higher than the previous bar's close. Vice versa for the red column.
Moving averages are an optional parameter that can be added to filter out instances where the indicator shows a green or red column. If this option is enabled, the indicator will not display a green column if the price is not above the moving average, and vice versa for red columns.
Several settings can be customized to personalize this indicator, such as setting the moving average filter to higher timeframes. The MA type can also be switched, and IQR settings can be adjusted to fit different markets.
This indicator only works with TradingView charts with volume data.
***Disclaimer:
Before using this indicator for actual trading, make sure to conduct a back test to ensure the strategy is not a losing one in the long run. Apply proper risk management techniques, such as position sizing and using stop loss.
Total number strength by ticker volumeThis is about stocks, which I always analyze.
Figure this out by looking at what the code calls ta.secutity.
This indicator plots the highest value of the ratio of total volume to individual volume for the stock you are analyzing, and the histogram tumbles to red when the stock changes in that value. The changed value is plotted as a label above that histogram. By using this indicator, you can determine which is currently the focus of attention, and if there are outliers, you will know by the histogram's detachment.
The parameters are explained below, but Timefream is the market value to be determined
setvalue sets the item to be judged, and lenght sets the time period to be judged. setvalue is the parameter that determines the timeframe for the judgment. vol is the volume, VP is the total purchase price, VPMA is its average, VPMAD is the detachment from its average, MA is the average of the vol, MAD is the detachment from its average, LRC is the average of the vol, and LRC is the average of the vol. value of linear regression, and also
The calculation of detachment is not negative because it comes out as a square, but it is not a problem because it is calculated as a percentage.
There is a *problem, and if the timefreame to be displayed is not calculated below the value of timefreame, an error will occur. We are currently searching for a solution to this problem. If you know the solution, I would appreciate it if you could let me know in the chat.
MADALGO's Fear and Greed OscillatorThe Fear and Greed Oscillator is a dynamic tool designed to gauge market sentiment by analyzing various components such as volatility, momentum, and volume. This indicator synthesizes multiple metrics to provide a singular view of market emotion, oscillating between fear and greed.
🔷 Calculation -
The oscillator integrates the following components, each normalized and weighted to contribute equally:
ATR (Average True Range): Represents market volatility.
MACD (Moving Average Convergence Divergence): Captures market momentum.
RSI (Relative Strength Index): Provides insights into overbought or oversold conditions.
Volume: Reflects market participation levels.
Each component is first normalized to ensure a balanced impact and then averaged to create the final oscillator value.
🔷 Color Coding -
The oscillator's plot changes color based on its value, representing market sentiment:
Green: Indicates a leaning towards greed.
Red: Suggests a leaning towards fear.
The intensity of the color represents the strength of the sentiment.
🔷 Usage -
This indicator is valuable for traders looking to understand market sentiment. It works best when combined with other forms of analysis, such as fundamental or other technical indicators, to form a comprehensive trading strategy.
🔷 Signal Lines -
Two horizontal lines represent extreme conditions:
A line for Extreme Fear.
Another for Extreme Greed.
These lines help identify when the market sentiment is at potentially unsustainable levels.
🔷 Customization -
The Fear and Greed Oscillator is designed with flexibility in mind, allowing users to adjust several parameters to match their specific analysis requirements. Understanding and utilizing these customization options can significantly enhance the indicator's relevance and effectiveness in various market conditions.
1. Length Parameters:
ATR and RSI Length: This input determines the period over which the Average True Range (ATR) and the Relative Strength Index (RSI) are calculated. Adjusting this length can affect the sensitivity of the oscillator to recent market movements. A shorter length makes the oscillator more responsive to recent changes, while a longer length smoothens it, reducing sensitivity to short-term fluctuations.
MACD Parameters: These include the Fast Length, Slow Length, and Signal Smoothing. By adjusting these, users can control how the Moving Average Convergence Divergence (MACD) component reacts to price movements. This customization is crucial for aligning the oscillator with different trading strategies, whether short-term or long-term focused.
Volume Length: This parameter sets the period for the moving average and standard deviation calculations of the volume component. Altering this length allows the oscillator to either emphasize recent volume changes or consider a broader historical context.
2. Weight Adjustments:
Component Weights: Each component (ATR, MACD, RSI, Volume) has an associated weight factor. These weights determine the relative influence of each component on the final oscillator value. Users can increase the weight of a component to give it more influence or decrease it to lessen its impact. This feature is particularly beneficial for traders who have a preference or insight into which market aspects are more indicative of fear or greed at given times.
Balancing the Components: The key to effective customization lies in balancing these weights to reflect the user's market perspective and trading style. For instance, a trader focusing on volatility might increase the weight of the ATR, while one interested in momentum might prioritize the MACD and RSI weights.
3. Color and Signal Line Customization:
Color Intensity: The intensity of the color gradient of the oscillator line can be a visual aid in quickly identifying market sentiment. Users can experiment with the colorValue calculation within the script to adjust how rapidly the color changes with the oscillator values
Extreme Levels: The extreme fear and greed levels, represented by horizontal lines, are customizable. Users can set these levels based on historical data analysis or personal risk tolerance. These lines act as alerts for potentially overextended market conditions.
🔷 Limitations -
As with any technical tool, the Fear and Greed Oscillator should not be used in isolation. It does not predict market direction but rather gauges the prevailing market emotion. Its effectiveness may vary across different markets and timeframes.
🔷 Conclusion -
The Fear and Greed Oscillator offers a unique perspective on market sentiment, encapsulating various aspects of market behavior into a single indicator. It serves as a versatile tool for traders aiming to understand the emotional undercurrents of the market.
🔷 Risk Disclaimer -
Financial trading involves significant risk. The value of investments can fluctuate, and past performance is not indicative of future results. This indicator is for informational purposes and should not be construed as financial advice. Always consider your personal circumstances and seek independent advice before making financial decisions.
Logarithmic CVD [IkkeOmar]The LCVD is another Mean-Reversion Indicator. it doesn't detect trends and does not give a signal per se. However the logarithmic transformation is made to visualize the direction of the trend for the volume. This allows you to see if money is flowing in or out of an asset.
What it does is tell you if we have a flashcrash based on the difference in volume.
Think of this indicator like a form of a volatility index.
Smoothing input:
The only input is an input for the smoothing length of the logDelta.
Volume Calculation:
// @IkkeOmar
//@version=5
indicator('Logarithmic CVD', shorttitle='CVD', overlay=false)
smooth = input.int(defval = 25, title = "Smoothing Distance")
// Calculate buying and selling volume
askVolume = volume * (close > open ? 1 : 0) // Assuming higher close than open indicates buying
bidVolume = volume * (close < open ? 1 : 0) // Assuming lower close than open indicates selling
// Delta is the difference between buying and selling volume
delta = askVolume - bidVolume
// Apply logarithmic transformation to delta
// Adding a check to ensure delta is not zero as log(0) is undefined
logDelta = delta > 0 ? math.log(math.abs(delta)) * math.sign(delta) : - math.log(math.abs(delta)) * math.sign(delta)
// use the the ta lib for calculating the sma of the logDelta
smoothLogDelta = ta.sma(logDelta, smooth)
// Create candlestick plot
plot(logDelta, color= color.green, title='Logarithmic CVD')
plot(smoothLogDelta, color= color.rgb(145, 37, 1), title='Smooth CVD')
These lines calculate the buying and selling volumes. askVolume is calculated as the total volume when the closing price is higher than the opening price, assuming this indicates buying pressure. bidVolume is calculated as the total volume when the closing price is lower than the opening price, assuming selling pressure.
The Delta is simply the difference between buying and selling volumes.
Logarithmic Transformation:
logDelta = delta > 0 ? math.log(math.abs(delta)) * math.sign(delta) : - math.log(math.abs(delta)) * math.sign(delta)
Applies a logarithmic transformation to delta. The math.log function is used to calculate the natural logarithm of the absolute value of delta. The sign of delta is preserved to differentiate between positive and negative values. This transformation helps in scaling the delta values, especially useful when dealing with large numbers.
This script essentially provides a visual representation of the buying and selling pressures in a market, transformed logarithmically for better scaling and smoothed for trend analysis.
Hope it makes sense!
Stay safe everyone!
Don't hesitate to ask any questions if you have any!
Tick Volume Direction IndicatorTick Volume Direction Indicator
This indicator captures:
• tick volume
• tick direction
The settings are as follows:
• volume or base currency value selection.
• label distance (away from the low of the candle).
• Tick volume - on/off switch for tick volume.
• label size.
• Up tick move color.
• tick move absorbed - when the tick doesn't change position.
• Down tick move.
On the first initial load, it will have the existing volume data as "?" as tradingview doesn't have a history of each tick.
Be aware, any settings change you make will refresh the tick data from start.
This indicator is one of the best real-time ways of seeing buying and selling pressure.
HTF Volume by Prosum SolutionsOverview of Features
This indicator was inspired by the work of "LonesomeTheBlue" in the script called "Volume Multi Time Frame" . This script will provide a highly customizable interface to specify the higher timeframe period for the volume with the ability to link to the "HTF Candles by Prosum Solutions" indicator using the "HTF Setting Code" data point, as well as adjusting various styling options for the volume bar color fill and border.
Usage Information
The indicator can be applied to any chart at any time frame. When the "Chart" option is chosen for the "Timeframe" field, the indicator will attempt to find a higher timeframe resolution to ensure the volume bars are drawn. The indicator will simply accumulate the volume value for each candlestick bar and reset when the new high timeframe period has started. The color of the volume bars are relative to the higher timeframe setting so that you can visually interpret when the volume in a rising or falling state relative to the higher timeframe price action.
If you choose to add the "HTF Candles by Prosum Solutions" indicator, you can link this indicator to it by choosing the "HTF Candles" option for the "Timeframe Source" field and then choosing the "HTF Setting Code" option for the "HTF Candles" field. At this point, whenever you adjust the high timeframe setting in the "HTF Candles by Prosum Solutions" indicator, this indicator will automatically adjust the timeframe to match it, thereby reducing the steps you need to take to keep the two indicators in sync.
Enjoy! 👍
AlgoDude_Volume1. Timeframe Selection (selectedTimeframe):
Allows the user to choose the timeframe for the volume data analysis.
Options range from 1 minute to 1 month, including 1, 3, 5, 15, 30, 45 minutes, 1, 2, 3, 4 hours, and daily, weekly, monthly.
2.Moving Average Length (maLength):
Users can specify the length of the moving average applied to the inverse volume.
The range for this input is from 1 to 200 periods, with a default value of 14.
These inputs provide flexibility in analyzing volume data over various timeframes and smoothing the inverse volume data with a moving average of chosen length.
Relative Volume Candles [QuantVue]In the words of Dan Zanger, "Trying to trade without using volume is like trying to drive a few hundred miles without putting gas in your tank. Trying to trade without chart patterns is like leaving without having an idea how to get there!"
Volume tends to show up at the beginning and the end of trends. As a general rule, when a stock goes up on low volume, it's seen as negative because it means buyers aren't committed. When a stock goes down on low volume, it means that not many people are trying to sell it, which is positive.
The Relative Volume Candles indicator is based on the Zanger Volume Ratio and designed to help identify key volume patterns effortlessly, with color coded candles and wicks.
The indicator is designed to be used on charts less than 1 Day and calculates the average volume for the user selected lookback period at the given time of day. From there a ratio of the current volume vs the average volume is used to determine the candle’s colors.
The candles wicks are color coded based on whether or not the volume ratio is rising or falling.
So when is it most important to have volume? When prices break out of a consolidation pattern like a bull flag or cup and handle pattern, volume plays a role. When a stock moves out of a range, volume shows how committed buyers are to that move.
Note in order to see this indicator you will need to change the visual order. This is done by selecting the the 3 dots next to the indicator name, scrolling down to visual order and selecting bring to front.
Indicator Features
🔹Selectable candle colors
🔹Selectable ratio levels
🔹Custom lookback period***
***TradingView has a maximum 5,000 bar lookback for most plans. If you are on a lower time frame chart and you select a lookback period larger than 5,000 bars the indicator will not show and you will need to select a shorter lookback period or move to a higher time frame chart.
Give this indicator a BOOST and COMMENT your thoughts!
We hope you enjoy.
Cheers!
Time & Sales (Tape) [By MUQWISHI]▋ INTRODUCTION :
The “Time and Sales” (Tape) indicator generates trade data, including time, direction, price, and volume for each executed trade on an exchange. This information is typically delivered in real-time on a tick-by-tick basis or lower timeframe, providing insights into the traded size for a specific security.
_______________________
▋ OVERVIEW:
_______________________
▋ Volume Dynamic Scale Bar:
It's a way for determining dominance on the time and sales table, depending on the selected length (number of rows), indicating whether buyers or sellers are in control in selected length.
_______________________
▋ INDICATOR SETTINGS:
#Section One: Table Settings
#Section Two: Technical Settings
(1) Implement By: Retrieve data by
(1A) Lower Timeframe: Fetch data from the selected lower timeframe.
(1B) Live Tick: Fetch data in real-time on a tick-by-tick basis, capturing data as soon as it's observed by the system.
(2) Length (Number of Rows): User able to select number of rows.
(3) Size Type: Volume OR Price Volume.
_____________________
▋ COMMENT:
The values in a table should not be taken as a major concept to build a trading decision.
Please let me know if you have any questions.
Thank you.
Kashif_MFI+RSI+BBMerging Money Flow Index (MFI), Relative Strength Index (RSI), and Bollinger Bands in TradingView can offer traders a comprehensive view of market conditions, providing insights into potential price reversals, overbought or oversold conditions, and potential trend changes. Here are some benefits of combining these indicators:
Confirmation of Overbought and Oversold Conditions:
MFI and RSI are both oscillators that measure overbought and oversold conditions. When MFI and RSI readings are high (above their respective overbought levels), and the price is near or above the upper Bollinger Band, it may suggest that the asset is overextended and a reversal could be imminent. Conversely, when MFI and RSI readings are low (below their respective oversold levels) and the price is near or below the lower Bollinger Band, it may indicate potential buying opportunities.
Divergence Analysis:
Traders often look for divergences between price action and MFI/RSI. If the price is making new highs, but MFI/RSI is not confirming these highs (bearish divergence), it could signal weakening momentum and a possible reversal. Combining this analysis with Bollinger Bands can add another layer of confirmation, especially if the price is touching or exceeding the upper Bollinger Band during this divergence.
Volatility Confirmation:
Bollinger Bands provide a measure of volatility by expanding and contracting based on price volatility. If the bands are widening, it indicates increased volatility. Combining this information with MFI and RSI readings can help traders assess the strength of a trend. For example, during a strong uptrend, if MFI and RSI are high and Bollinger Bands are expanding, it may suggest a sustained bullish trend.
Identifying Trend Reversals:
The combination of MFI, RSI, and Bollinger Bands can be useful in identifying potential trend reversals. For instance, if MFI and RSI are in overbought conditions and the price is significantly above the upper Bollinger Band, it may signal that the trend is reaching an extreme and could reverse. Conversely, if MFI and RSI are in oversold conditions and the price is near or below the lower Bollinger Band, it may suggest that selling pressure is exhausted, and a reversal might be in play.
Comprehensive Market Assessment:
By merging these indicators, traders get a more comprehensive view of market conditions. They can assess both momentum (MFI and RSI) and volatility (Bollinger Bands) simultaneously, helping them make more informed trading decisions.
It's important to note that no single indicator or combination of indicators guarantees accurate predictions in trading. Traders should use these tools as part of a broader analysis and consider other factors such as fundamental analysis, market trends, and risk management.
VWAP Oscillator (Normalised)Thanks:
Thanks to upslidedown for his VWAP Oscillator that served as the inspiration for this normalised version.
Core Aspects:
The script calculates the VWAP by considering both volume and price data, offering a comprehensive view of market activity.
Uses an adaptive normalization function to balance the data, ensuring that the VWAP reflects current market conditions accurately.
The oscillator includes customizable settings such as VWAP source, lookback period, and buffer percentage.
Provides a clear visual representation of market trends.
Usage Summary:
Detect divergences between price and oscillator for potential trend reversals.
Assess market momentum with oscillator’s position relative to the zero line.
Identify overbought and oversold conditions to anticipate market corrections.
Use volume-confirmed signals for enhanced reliability in trend strength assessments.
Re-Anchoring VWAP TripleThe Triple Re-Anchoring VWAP (Volume Weighted Average Price) indicator is a tool designed for traders seeking a deeper understanding of market trends and key price levels. This indicator dynamically recalibrates VWAP calculations based on significant market pivot points, offering a unique perspective on potential support and resistance levels.
Key Features:
Dynamic Re-anchoring at All-Time Highs (ATH) : The first layer of this indicator continuously tracks the all-time high and recalibrates the VWAP from each new ATH. This VWAP line, typically acting as a dynamic resistance level, offers insights into the overbought conditions and potential reversal zones.
Adaptive Re-anchoring to Post-ATH Lows : The second component of the indicator shifts focus to the market's reaction post-ATH. It identifies the lowest low following an ATH and re-anchors the VWAP calculation from this point. This VWAP line often serves as a dynamic support level, highlighting key areas where the market finds value after a significant high.
Re-anchoring to Highs After Post-ATH Lows : The third element of this tool takes adaptation one step further by tracking the highest high achieved after the lowest low post-ATH. This VWAP line can act as either support or resistance, providing a nuanced view of the market's valuation in the recovery phase or during consolidation after a significant low.
Applications:
Trend Confirmation and Reversal Signals : By comparing the price action relative to the dynamically anchored VWAP lines, traders can gauge the strength of the trend and anticipate potential reversals.
Entry and Exit Points : By highlighting significant support and resistance areas, it assists in determining optimal entry and exit points, particularly in swing trading and mean reversion strategies.
Enhanced Market Insight : The dynamic nature of the indicator, with its shifting anchor points, offers a refined understanding of market sentiment and valuation changes over time.
Why Triple Re-Anchoring VWAP?
Traditional VWAP tools offer a linear view, often missing out on the intricacies of market fluctuations. The Triple Re-Anchoring VWAP addresses this by providing a multi-faceted view of the market, adapting not just to daily price changes but pivoting around significant market events. Whether you're a day trader, swing trader, or long-term investor, this indicator adds depth to your market analysis, enabling more informed trading decisions.
Examples:
OneThingToRuleThemAll [v1.4]This script was created because I wanted to be able to display a contextual chart of commonly used indicators for scalping and swing traders, with the ability to control the visual representation on the charts as their cross-overs, cross-unders, or changes of state happen in real time. Additionally, I wanted the ability to control how or when they are displayed. While looking through other community projects, I found they lacked the ability to full customize the output controls and values used for these indicators.
The script leverages standard RSI/MACD/VWAP/MVWAP/EMA calculations to help a trader visually make more informed decisions on entering or exiting a trade, depending on their understanding on what the indicators represent. Paired with a table directly on the chart, it allows a trader to quickly reference values to make more informed decisions without having to look away from the price action or look through multiple indicator outputs.
The main functionality of the indicator is controlled within the settings directly on the chart. There a user can enable the visual representations, or disable, and configure how they are displayed on the charts by altering their values or style types.
Users have the ability to enable/disable visual representations of:
The indicator chart
RSI Cross-over and RSI Reversals
MACD Uptrends and Downtrends
VWAP Cross-overs and Cross-unders
VWAP Line
MVWAP Cross-overs and Cross-unders
MVWAP Line
EMA Cross-overs and Cross-unders
EMA Line
Some traders like to use these visual indications as thresholds to enter or exit trades. Its best to find out which ones work the best with the security you are trying to trade. Personally, I use the table as a reference in conjunction with the RSI chart indicators to help me decide a logical trailing stop if I am scalping. Some users might like the track EMA200 crossovers, and have visual representations on the chart for when that happens. However, users may use the other indicators in other methods, and this script provides the ability to be able to configure those both visually and by value.
The pine script code is open source and itself is fairly straightforward, it is mostly written to provide the ultimate level of control the the user of the various indicators. Please reach out to me directly if you would like a further understanding of the code and an explanation on anything that may be unclear.
Enjoy :)
-dead1.
Market SessionsMarket Sessions Indicator Overview:
The "Market Sessions" indicator is a powerful tool designed to enhance traders' insights by providing comprehensive information about key market sessions, daily high/low values, and important exponential moving averages (EMAs) directly on the trading chart.
Key Features:
Market Sessions Display:
Visually represents Sydney/Tokyo, London, and New York sessions using distinct color-coded shapes.
Enhances visibility by dynamically changing the background color during specific trading sessions.
Daily High/Low:
Plots and labels the high and low values of the previous trading day on the chart.
Customizable colors for daily high and low markers.
Exponential Moving Averages (EMAs):
Includes 20, 50, and 200-period EMAs for comprehensive trend analysis.
Users have the flexibility to customize the visibility and color of each EMA.
Dashboard Information:
Real-time information about the current and upcoming market sessions.
Displays the time remaining for the upcoming session, aiding in timely decision-making.
Stock Session Information:
Clearly marks open and close times for Asia, Euro, and USA stock sessions.
Customizable visibility options for stock open/close lines, allowing for a tailored chart display.
Usage Guidelines:
Market Session Identification: Easily identify distinct market sessions using color-coded shapes and background color changes.
Daily Analysis: Quickly reference labeled lines for the high and low values of the previous trading day.
Trend Analysis: Observe the plotted EMAs on the chart for insights into the prevailing trends.
Real-time Monitoring: Utilize the dashboard for real-time information on current and upcoming sessions.
Stock Session Details: Identify specific open and close times for stock sessions, aiding in strategic planning.
Customization Options:
User-Friendly Parameters: Customize visibility, color, and positioning based on individual preferences.
Dashboard Configuration: Adjust dashboard position, text placement, and EMA parameters to tailor the indicator to specific needs.
Backtesting Feature:
The indicator includes a backtest feature, allowing users to visualize past sessions for testing and refining trading strategies.
This Market Sessions Indicator provides traders with a holistic view of market dynamics, facilitating informed decision-making and enhancing overall trading experiences.
Trend Strength Over TimeThe script serves as an indicator designed to assess and visualize trend strength and Volume strength over time. It employs a variety of calculations and conditions to offer insights into both bullish and bearish market trends. Let's explore the key conceptual elements of the code.
Trend Strength Conditions:
The script defines conditions to assess trend strength based on a comparison between each calculated percentile value and the highest high (bullish) or lowest low (bearish). Separate conditions are established for each percentile length, allowing for a nuanced understanding of trend dynamics across different timeframes.
Counting Bull and Bear Trends:
To quantify the strength of bullish and bearish trends, the script maintains counts for the number of conditions that are true for each. This count-based approach provides a quantitative measure of trend strength.
Weak Bull and Bear Counts:
Recognizing that trends are not always clear-cut, the script introduces the concept of weak trends. It counts instances where the percentiles fall between the highest high and lowest low, indicating a potential weakening of the prevailing trend.
Bull and Bear Strength:
Bull and bear strengths are calculated based on the counts, with adjustments made for weak trends. This step provides a more nuanced and comprehensive assessment of trend strength by considering both strong and weak signals.
Current Trend Value:
The culmination of these calculations is the determination of the current trend value. This value represents the balance between bullish and bearish forces, offering a dynamic indicator of the market's prevailing sentiment.
Volume Strength Calculation:
In addition to price-based indicators, the script incorporates volume strength as a crucial element. This is calculated using the simple moving averages (SMAs) of volume over different lengths, normalized relative to the SMA over a length of 144. Volume strength adds a layer of confirmation or divergence to the price-based trend analysis.
Color Change:
To facilitate quick and intuitive interpretation, the script dynamically changes the color of the plotted line on the chart based on the current trend value. Green indicates a bullish trend, red indicates a bearish trend, and blue suggests a neutral or indecisive market.
Plotting:
The script uses the plot function to visually present the calculated trend strength and volume strength on the chart. This visual representation aids traders in making informed decisions based on the identified trends and their strengths.
Volume Strength: A Detailed Explanation
In the context of the provided script, volume strength is a critical component used to assess the strength of a market trend. It provides insights into the level of participation and commitment of market participants, offering a complementary perspective to traditional price-based indicators. Let's delve into the concept and practical applications of volume strength.
Calculation of Volume Strength:
The script calculates volume strength by considering the simple moving averages (SMAs) of volume over different time periods (13, 21, 34, 55, 89). These individual SMAs are then normalized relative to the SMA over a more extended period of 144. The weights assigned to each SMA in the calculation are defined in the variable VCF (Volume Correction Factor).
Calculation of Volume Strength with Weights: The weights assigned to each SMA in this calculation are crucial for emphasizing the significance of shorter-term volume movements relative to a longer-term baseline.
Interpretation of Weights:
The choice of weights reflects the relative importance of shorter-term volume movements compared to longer-term trends. In this script, shorter-term SMAs (13, 21, 34, 55, 89) are assigned decreasing weights, while the longer-term SMA (144) serves as the baseline.
Shorter-term SMAs with higher weights may have a more immediate impact on the volume strength calculation. This implies that recent changes in volume carry more weight in assessing the current market conditions.
The decreasing weights for shorter-term SMAs might indicate that, as the timeframe lengthens, the significance of recent volume movements diminishes in relation to the longer-term trend. This approach allows for a focus on both short-term volatility and longer-term stability in volume patterns.
The purpose of normalization is to emphasize the current volume's significance in comparison to its historical context. This can help identify abnormal volume spikes or sustained increases in trading activity, which may indicate the strength or weakness of a trend.
Interpretation and Practical Use:
Confirmation of Trend:
Rising volume during an uptrend can validate the strength of the upward movement, suggesting that a significant number of market participants are actively buying. Conversely, decreasing volume during an uptrend might indicate weakening interest and a potential reversal.
In a downtrend, increasing volume on downward price movements reinforces the strength of the trend. A decrease in volume during a downtrend may suggest a potential weakening or exhaustion of the downward momentum.
Divergence Analysis:
Divergence occurs when there is a disagreement between the price movement and the corresponding volume. For example, if prices are rising but volume is declining, it could signal a lack of conviction in the upward movement, and a reversal might be imminent.
Conversely, if prices are falling, but volume is decreasing as well, it might suggest that the downward momentum is losing steam, and a potential reversal or consolidation could be on the horizon.
In conclusion, volume strength analysis provides traders with a powerful tool to gauge the conviction behind price movements. By incorporating volume data into the technical analysis, one can make more informed decisions, enhance trend identification, and improve risk management strategies.
Accumulation/Distribution Money Flow v1.0This indicator is intended to measure selling and buying pressure, calculates accumulation/distribution levels and suggests current trend intensity and direction.
Core calculations are based on open source script by cI8DH which was not updated ever since 2018. Also, it implements the technique to avoid price gaps issues as described in Twiggs® Money Flow .
The indicator can plot calculated A/D line, a smoothed A/D line and another smoother derivative from the smoothed line which serves as a signal line. By implementing crossovers detection between two lines and also measuring distance between them it plots the histogram of the difference and can also color chart bars accordingly.
You can also use settings to factor in price and/or volume into calculations.
Three options for visual color representation are available.
1) Simple color bars
In this case bars are colored in red and green by default, whereas green indicates positive distance between smoothed A/D line and signal line (upward movement), and red indicated negative distance (downward movement).
2) 4-color scheme
In this case pale green and pale red colors are added, whereas pale red used when the histogram is positive and A/D + signal lines are below zero lines (start of upward movement from lower levels), and pale green is where histogram is negative and both A/D and signal lines are above zero line (start of downward movement from top levels). Bright red and green colors indicate strong movement where the position of A/D + signal lines correspond to positive and.or negative histogram values. This option allows to visually track trend intensity more precisely.
3) Gradient bars color
In this scheme the candles are colored using gradient of either red or green color depending on the intensity and direction of the trend. For that color scheme you must specify the lookback parameter indicating number of bars back to determine highest/lowest values.
Pocket Pivot BreakoutPocket Pivot Breakout Indicator
The pocket pivot breakout indicator will show a blue arrow under the candle if both the following conditions are met:
1. The percentage change of the candle on that day from open is greater than 3%.
2. The volume on the day of 3% candle is higher than the highest red volume in the past 10 days.
The second condition is based on the 'Pocket Pivot' concept developed by Gil Morales and Chris Kacher.
If only one of the conditions is met, while the other is not, there will be no arrow.
How to use the Pocket Pivot Breakout indicator?
1. If the stock is breaking out of a proper base like (cup & handle, Darvas box etc.), you can use the blue arrow as an indicator to make your initial buy.
2. If you already own a stock, the blue arrow indicator can be used for pyramiding, following a continuation breakout from a proper base.
3. Avoid making a new entry or continuation entry if the stock is too extended from 10ma.
Gap-up > 0.5% Indicator
Gap-up Indicator displays a blue colored candle when a stock gaps up by more than 0.5% compared to previous day's close.
It is turned off by default. To activate it, check the box next to Gap-up > 0.5% in the indicator options.
How to use the Gap-up Indicator?
1. When a stock gaps up, it usually indicates strength, especially if on the day of the gap-up, the stock closes strongly.
2. This indicator should not be used in isolation but with a proper base breakout from a tight consolidation.
3. If a stock is already extended from 10ma, avoid taking any new or continuation entries.
Precautions
1. Avoid buying longs when the general market conditions are not favorable.
2. Avoid buying stocks below 200ma.
3. Avoid making a new entry or pyramid entry if a stock is too extended from 10ma.
Important Points
1. Always choose fundamentally strong stocks showing strong growth in earnings/margins/sales.
2. Buy these fundamentally strong stocks when they are breaking out of proper bases.
3. To learn more about pocket pivots and buyable gap-ups, read the book, Trade Like an O'Neil Disciple (by Gil Morales & Chris Kacher).
Cheers
Simranjit
WHALE SIGNAL 4H
WHALE SIGNAL 4H BASED ON VOLUME CHANGE AND MOVING AVERAGE
This script aims to highlight potential whale signals on the 4-hour timeframe by analyzing volume changes, and it provides options for customization through input parameters. Whale signals are then displayed on the chart with different colors for the last hit and the previous hits. The Detector parameter adds flexibility to consider neighboring bars in the detection process, Let's break down the key components:
1/The script defines input parameters that users can customize:
-VCH (Volume Change on 4H candle) with a default value of 3, 3 times the MA Value.
-Length_240 (Moving Average length for the last 21 bars on the 4-hour timeframe).
-Detector (a boolean parameter to enable or disable whale detection in the previous or next bar).
2/Logic Section:
The script defines a function bar(hit) to convert the bar index based on the timeframe.
It calculates the Volume Change (whale signal) by comparing the current volume with a threshold (VCH * vma).
The Detector parameter allows for flexibility in detecting whale signals in neighboring bars.
3/ Plotting Section:
The script defines a function is_whale() to check if there is a whale signal and if it occurred in the last three bars.
It uses the plot function to display whale signals on the chart with different colors and offsets.