Fixed volume profile & zonesHi all!
If you like volume profile and like to create zones, where the price might react, this indicator might be for you. It plots a fixed volume profile and creates a user defined number of zones (shelves) of high volume.
If you want to know more about volume profile you can about it here on TradingView: se.tradingview.com
To do
• Add possiblity to create alerts for zone entries, breakouts and retest
• The importance of zones are now based on high volume slots only. It might be changed to include the slots around the 'master slot' to determine if the area is of high importance or not, your suggestions here are welcome!
• Show total volume in 'values'
• Error if the data cannot be fetched
• Add value area
• Make earlier (more important shelves) more visible (less transparent)
• Add possiblity to skip zones
Known issues
• Script execution is long when the volume profile is created (should be none)
• In some cases you can get overlapping shelves, avoid this
Settings
• Main
• Start/end bar of the volume profile (this is required)
• Data
• Timeframe (for getting the volume data)
• Levels (the number of slots in the volume profile)
• Shelves (the number of zones with high volume to plot) and it's color
• Max slot (have this enabled if you want the shelf's highest volume slot to have a dotted line and choose it's color
• Show info (show the order of the plotted zone)
• Style (how the volume profile will look)
• Histogram box (the color of the background of the volume profile)
• Up (the color of bullish volume)
• Down (the color of bearish volume)
• Point of control (color and if it should be extended or not)
• Values and text color (show bullish and bearish volume values)
The defaults on all settings are based on the daily timeframe. This indicator is not 'complete' and I plan to work on it when I get the time.
Note that the precision for the volume profile is per candle, so some levels can have visuals as others but lower volume.
The slot (level) volume has to have a lower difference to the volume included in the shelf than the next volume to be checked to be included. If the level being checked for inclusion in a shelf is at the end of boundaries (high and low) of the volume profile, the volume has to be higher than the golden ratio of the volume before.
You can also use this indicator if you just want a volume profile to show, just set the the number of zones to plot (in 'Shelves') to 0.
I hope I haven't forgotten anything and that it's clear, let me know otherwise.
Best of trading luck!
ווליום
Footprint strategyThis strategy uses imbalance volume data obtained by footprint calculation technology.
There are two signals to enter a trade:
trend - the current buy volume on the bar is greater than the current sell volume and there is at least one imbalance line.
reversal - the current bar is falling, but the general market trend is positive (growing) and the imbalance buy volume exceeds the imbalance sell volume.
When any of the conditions is triggered, two orders are placed: Take Profit and Stop loss (according to the percentage value from the inputs).
A little advice on use:
The strategy performs best on a 15 minute timeframe.
It is necessary to choose acceptable values of Take Profit and Stop loss depending on the order of symbol prices.
Inputs related to the strategy:
Stop loss - percentage size of stop loss to exit the trade.
Enable stop loss - stop loss activation.
Take Profit - percentage size of Take Profit.
Calculation timeframe - this is the timeframe from which the volume will be collected for distribution to buy and sell (if you do not have access to the seconds chart, set here 1 minute, the accuracy will be less, but it will work).
Trend timeframe - this is the timeframe from which the trend will be calculated.
Enable trend - activation of trend calculation.
Inputs related to the calculation of footprints (collection of the volume of purchases and sales):
Count show bars - Number of bars from rt bar to history to calculate.
Display all available bars - Strategy calculation on all available bars (based on the available amount of data with reduced resolution (set in Calculation timeframe)).
Ticks Per Row - Sets the price step, calculated by multiplying the entered value by syminfo.mintick.
Auto - The automatic "Ticks Per Row" calculation is based on the first available bar and applied to subsequent bars.
Max row - sets the acceptable number of rows within a bar.
Imbalance Percent - A percentage coefficient to determine the Imbalance of price levels.
Stacked levels - And minimum number of consecutive Imbalance levels required to draw extended lines.
If you have suggestions for improving the strategy and adding new conditions for entering and exiting the trade, please write).
Volume RSIRelative strength index based on volume data.
Indicate volume momentum, and help you define divergences on volume.
The goal is to have an idea and represent in another form volumes and kept eyes on volume momentum on a certain period.
RSI is an indicator about the strength, I keep the oversold/overbought thresholds. I think it still makes sense to interpret.
the calculations is simple, we use the average volume up (avg_vol_up) and average volume down (avg_vol_down) over the period.
then calculate the relatives strength : ( avg_vol_up / ( avg_vol_up + avg_vol_down ) ) * 100
The period is 14 by default. The period is used for calculating mean.
I also add MA it helps to have a global look on the indicator.
In my code I used the idea of @Padronhosnai in his code "positve/negative volume" to get volumes in the right form.
For pictures I also use his indicator it's the one above.
PVSRA Candles Auto OverrideWhat does this “PVSRA Candles Auto Override” Indicator
do?
This indicator automates PVSRA analysis for crypto traders. It finds the corresponding Binance Perpetual Futures chart for the current instrument, then replaces the current chart's volume profile with the perpetual futures data (if available) to ensure the PVSRA calculation uses the most relevant volume. This not only reduces human error during market scans but also automatically selects the appropriate Binance Perpetual Futures contract, saving time and improving the accuracy of PVSRA calculations.
How can a trader use this indicator?
This helps the trader to identify if there is volume data available in an equivalent Binance Perpetual Futures chart and automatically displays it, making it easier to switch coins whilst viewing the market. Why do we want to use Binance Perpetual Futures Volume? In most markets Binance volume surpasses those of other crypto exchanges so this will give us a better view on the volume spikes in the market.
What is PVSRA and how can I trade using this indicator?
PVSRA candles are a type of candlestick chart formatting. PVSRA stands for Price, Volume, Support and Resistance Analysis.
Here's a breakdown of what PVSRA candles aim to achieve:
Combine multiple factors: They take into account price movement, trading volume, and support and resistance levels to identify potential trading opportunities.
Highlight potential imbalances: By color-coding candles based on PVSRA analysis, they aim to show areas of high volume activity, potentially representing imbalances created by market makers (large institutions that influence price).
Identify areas of revisit: The theory is that these high-volume zones may be revisited by the market in the future, as there's "unrecovered liquidity" in those areas.
Usage of the Indicator:
By default the indicator will automatically use the Equivalent Binance Perpetual Chart for the Data
You can override the symbol manually if you what to view another instrument’s data.
OBVious MA Indicator [1000X] On Balance Volume (OBV) is a gift to traders. OBV often provides a leading signal at the outset of a trend, when compression in the markets produces a surge in OBV prior to increased volatility.
This indicator demonstrates one method of utilizing OBV to your advantage. I call it the "OBVious MA Indicator ” only because it is simple in its mechanics. The primary utility of the OBVious MA indicator is as a volume confirmation filter that complements other components of a strategy.
Indicator Features:
• The Indicator revolves around the On Balance Volume indicator. OBV is a straightforward indicator: it registers a value by adding total volume traded on up candles, and subtracts total volume on down candles, generating a line by connecting those values. OBV was described in 1963 by Joe Granville in his book "Granville's New Key to Stock Market Profits” in which the author argues that OBV is the most vital key to success as a trader, with volume changes are a major predictor of price changes.
• Dual Moving Averages: here we use separate moving averages for entries and exits. This allows for more granular trade management; for example, one can either extend the length of the exit MA to hold positions longer, or shorten the MA for swifter exits, independently of the entry signals.
Execution: long trades are signalled when the OBV line crosses above the Long Entry Moving Average of the OBV. Long exits signals occur when the OBV line crosses under the Long Exit MA of the OBV. Shorts signal occur on a cross below the Short Entry MA, and exit signals come on a cross above the Short Exit MA.
Application:
While this indicator outlines entry and exit conditions based on OBV crossovers with designated moving averages, is is, as stated, best used in conjunction with a supporting cast of confirmatory indicators (feel free to drop me a note and tell me how you've used it). It can be used to confirm entries, or you might try using it as a sole exit indicator in a strategy.
Visualization:
The indicator includes conditional plotting of the OBV MAs, which plot based on the selected trading direction. This visualization aids in understanding how OBV interacts with the set moving averages.
Further Discussion:
We all know the importance of volume; this indicator demonstrates one simple yet effective method of incorporating the OBV for volume analysis. The OBV indicator can be used in many ways - for example, we can monitor OBV trend line breaks, look for divergences, or as we do here, watch for breaks of the moving average.
Despite its simplicity, I'm unaware of any previously published cases of this method. But the concept of applying MAs or EMAs to volume-based indicators like OBV is not uncommon in technical analysisIf, so I expect work like this has been done before. If you know of other similar indicators or strategies, please mention in the comments.
One comparable method uses EMAs of the OBV is QuantNomad’s "On Balance Volume Oscillator Strategy ”. That strategy uses a pair of EMAs on a normalized-range OBV-based oscillator. In that strategy, however, entry and exit signals occur on one EMA crossing the other, which places trades at distinctly different times than crossings of the OBV itself. Both are valid approaches with strength in simplicity.
Note: This is the indicator version of the Strategy found here .
OBVious MA Strategy [1000X Trader]Exploring OBV: The OBVious MA Strategy
Are you using On Balance Volume (OBV) effectively? OBV is a gift to traders. OBV often provides a leading signal at the outset of a trend, when compression in the markets produces a surge in OBV prior to increased volatility.
This strategy demonstrates one method of utilizing OBV to your advantage. I call it the "OBVious MA Strategy ” only because it is so simple in its mechanics. This is meant to be a demonstration, not a strategy to utilize in live trading, as the primary utility of the OBVious MA indicator is as a volume confirmation filter that complements other components of a strategy. That said, I felt useful to present this indicator in isolation in this strategy to demonstrate the power it holds.
Strategy Features:
• OBV is the core signal: this strategy revolves around the On Balance Volume indicator. OBV is a straightforward indicator: it registers a value by adding total volume traded on up candles, and subtracts total volume on down candles, generating a line by connecting those values. OBV was described in 1963 by Joe Granville in his book "Granville's New Key to Stock Market Profits” in which the author argues that OBV is the most vital key to success as a trader, as volume changes are a major predictor of price changes.
• Dual Moving Averages: here we use separate moving averages for entries and exits. This allows for more granular trade management; for example, one can either extend the length of the exit MA to hold positions longer, or shorten the MA for swifter exits, independently of the entry signals.
Execution: long trades are taken when the OBV line crosses above the Long Entry Moving Average of the OBV. Long exits occur when the OBV line crosses under the Long Exit MA of the OBV. Shorts enter on a cross below the Short Entry MA, and exit on a cross above the Short Exit MA.
• Directional Trading: a direction filter can be set to "long" or "short," but not “both”, given that there is no trend filter in this strategy. When used in a bi-directional strategy with a trend filter, we add “both” to the script as a third option.
Application:
While this strategy outlines entry and exit conditions based on OBV crossovers with designated moving averages, is is, as stated, best used in conjunction with a supporting cast of confirmatory indicators (feel free to drop me a note and tell me how you've used it). It can be used to confirm entries, or you might try using it as a sole exit indicator in a strategy.
Visualization:
The strategy includes conditional plotting of the OBV MAs, which plot based on the selected trading direction. This visualization aids in understanding how OBV interacts with the set moving averages.
Further Discussion:
We all know the importance of volume; this strategy demonstrates one simple yet effective method of incorporating the OBV for volume analysis. The OBV indicator can be used in many ways - for example, we can monitor OBV trend line breaks, look for divergences, or as we do here, watch for breaks of the moving average.
Despite its simplicity, I'm unaware of any previously published cases of this method. The concept of applying MAs or EMAs to volume-based indicators like OBV is not uncommon in technical analysis, so I expect that work like this has been done before. If you know of other similar indicators or strategies, please mention in the comments.
One comparable strategy that uses EMAs of the OBV is QuantNomad’s "On Balance Volume Oscillator Strategy ", which uses a pair of EMAs on a normalized-range OBV-based oscillator. In that strategy, however, entries and exits occur on one EMA crossing the other, which places trades at distinctly different times than crossings of the OBV itself. Both are valid approaches with strength in simplicity.
Relative Volume (RV)Relative Volume take the volume at a given time of day and compares it to the average volume at that time of day. You can either use the current volume or the cumulative volume in this analysis. You have the option to either see the average and the current volume or a comparative view where you see the percent difference between now and the average.
My implementation of relative volume uses a key-value pair to simplify the process of getting the average volume for the time of day. This reduces the lines of code needed and makes it easier to understand. I have added the normal features you would find in a relative volume indicator with the addition of an average above/below average section for comparing the significance of above/below average moves are. I hope this script is not only useful but educational.
Enjoy
Volume Candles By Anil ChawraHow Users Can Make Profit Using This Script:
1. Volume Representation : Each candle on the chart represents a specific time period (e.g., 1 minute, 1 hour, 1 day) and includes information about both price movement and trading volume during that period.
2. Candlestick Anatomy : A volume candle has the same components as a regular candlestick: the body (which represents the opening and closing prices) and the wicks or shadows (which indicate the highest and lowest prices reached during the period).
3. Volume Bars : Instead of just the candlestick itself, volume candles also include a bar or histogram representing the trading volume during that period. The height or length of the volume bar indicates the amount of trading activity.
4. Interpreting Volume : High volume candles typically indicate increased market interest or activity during that period. This could be due to significant buying or selling pressure.
5. Confirmation : Traders often look for confirmation from other technical indicators or price action to validate the significance of a high volume candle. For example, a high volume candle breaking through a key support or resistance level may signal a strong market move.
6. Trend Strength : Volume candles can provide insights into the strength of a trend. A series of high volume candles in the direction of the trend suggests strong momentum, while decreasing volume may indicate weakening momentum or a potential reversal.
7. Volume Patterns : Traders also analyze volume patterns, such as volume spikes or divergences, to identify potential trading opportunities or reversals.
8. Combination with Price Action: Volume analysis is often used in conjunction with price action analysis and other technical indicators to make more informed trading decisions.
9. Confirmation and Validation: It's important to confirm the significance of volume candles with other indicators or price action signals to avoid false signals.
10. Risk Management : As with any trading strategy, proper risk management is crucial when using volume candles to make trading decisions. Set stop-loss orders and adhere to risk management principles to protect your capital.
How the Script Works:
1. Volume Representation : Each candle on the chart represents a specific time period (e.g., 1 minute, 1 hour, 1 day) and includes information about both price movement and trading volume during that period.
2. Candlestick Anatomy : A volume candle has the same components as a regular candlestick: the body (which represents the opening and closing prices) and the wicks or shadows (which indicate the highest and lowest prices reached during the period).
3. Volume Bars : Instead of just the candlestick itself, volume candles also include a bar or histogram representing the trading volume during that period. The height or length of the volume bar indicates the amount of trading activity.
4. Interpreting Volume : High volume candles typically indicate increased market interest or activity during that period. This could be due to significant buying or selling pressure.
5. Confirmation : Traders often look for confirmation from other technical indicators or price action to validate the significance of a high volume candle. For example, a high volume candle breaking through a key support or resistance level may signal a strong market move.
6. Trend Strength : Volume candles can provide insights into the strength of a trend. A series of high volume candles in the direction of the trend suggests strong momentum, while decreasing volume may indicate weakening momentum or a potential reversal.
7. Volume Patterns : Traders also analyze volume patterns, such as volume spikes or divergences, to identify potential trading opportunities or reversals.
8. Combination with Price Action : Volume analysis is often used in conjunction with price action analysis and other technical indicators to make more informed trading decisions.
9. Confirmation and Validation : It's important to confirm the significance of volume candles with other indicators or price action signals to avoid false signals.
10. Risk Management : As with any trading strategy, proper risk management is crucial when using volume candles to make trading decisions. Set stop-loss orders and adhere to risk management principles to protect your capital.
Understanding volume candles can provide valuable insights into market dynamics and help traders make more informed decisions. However, like any technical tool, it's essential to use volume analysis in conjunction with other forms of analysis for comprehensive market assessment.
Understanding volume candles can provide valuable insights into market dynamics and help traders make more informed decisions. However, like any technical tool, it's essential to use volume analysis in conjunction with other forms of analysis for comprehensive market assessment.
Fine-tune Inputs: Fourier Smoothed Volume zone oscillator WFSVZ0Use this Strategy to Fine-tune inputs for the (W&)FSVZ0 Indicator.
Strategy allows you to fine-tune the indicator for 1 TimeFrame at a time; cross Timeframe Input fine-tuning is done manually after exporting the chart data.
I suggest using "Close all" input False when fine-tuning Inputs for 1 TimeFrame. When you export data to Excel/Numbers/GSheets I suggest using "Close all" input as True, except for the lowest TimeFrame.
MEANINGFUL DESCRIPTION:
The Volume Zone oscillator breaks up volume activity into positive and negative categories. It is positive when the current closing price is greater than the prior closing price and negative when it's lower than the prior closing price. The resulting curve plots through relative percentage levels that yield a series of buy and sell signals, depending on level and indicator direction.
The Wavelet & Fourier Smoothed Volume Zone Oscillator (W&)FSVZO is a refined version of the Volume Zone Oscillator, enhanced by the implementation of the Discrete Fourier Transform . Its primary function is to streamline price data and diminish market noise, thus offering a clearer and more precise reflection of price trends.
By combining the Wavalet and Fourier aproximation with Ehler's white noise histogram, users gain a comprehensive perspective on volume-related market conditions.
HOW TO USE THE INDICATOR:
The default period is 2 but can be adjusted after backtesting. (I suggest 5 VZO length and NoiceR max length 8 as-well)
The VZO points to a positive trend when it is rising above the 0% level, and a negative trend when it is falling below the 0% level. 0% level can be adjusted in setting by adjusting VzoDifference. Oscillations rising below 0% level or falling above 0% level result in a natural trend.
HOW TO USE THE STRATEGY:
Here you fine-tune the inputs until you find a combination that works well on all Timeframes you will use when creating your Automated Trade Algorithmic Strategy. I suggest 4h, 12h, 1D, 2D, 3D, 4D, 5D, 6D, W and M.
When I ndicator/Strategy returns 0 or natural trend , Strategy Closes All it's positions.
ORIGINALITY & USFULLNESS:
Personal combination of Fourier and Wavalet aproximation of a price which results in less noise Volume Zone Oscillator.
The Wavelet Transform is a powerful mathematical tool for signal analysis, particularly effective in analyzing signals with varying frequency or non-stationary characteristics. It dissects a signal into wavelets, small waves with varying frequency and limited duration, providing a multi-resolution analysis. This approach captures both frequency and location information, making it especially useful for detecting changes or anomalies in complex signals.
The Discrete Fourier Transform (DFT) is a mathematical technique that transforms discrete data from the time domain into its corresponding representation in the frequency domain. This process involves breaking down a signal into its individual frequency components, thereby exposing the amplitude and phase characteristics inherent in each frequency element.
This indicator utilizes the concept of Ehler's Universal Oscillator and displays a histogram, offering critical insights into the prevailing levels of market noise. The Ehler's Universal Oscillator is grounded in a statistical model that captures the erratic and unpredictable nature of market movements. Through the application of this principle, the histogram aids traders in pinpointing times when market volatility is either rising or subsiding.
DETAILED DESCRIPTION:
My detailed description of the indicator and use cases which I find very valuable.
What is oscillator?
Oscillators are chart indicators that can assist a trader in determining overbought or oversold conditions in ranging (non-trending) markets.
What is volume zone oscillator?
Price Zone Oscillator measures if the most recent closing price is above or below the preceding closing price.
Volume Zone Oscillator is Volume multiplied by the 1 or -1 depending on the difference of the preceding 2 close prices and smoothed with Exponential moving Average.
What does this mean?
If the VZO is above 0 and VZO is rising. We have a bullish trend. Most likely.
If the VZO is below 0 and VZO is falling. We have a bearish trend. Most likely.
Rising means that VZO on close is higher than the previous day.
Falling means that VZO on close is lower than the previous day.
What if VZO is falling above 0 line?
It means we have a high probability of a bearish trend.
Thus the indicator returns 0 and Strategy closes all it's positions when falling above 0 (or rising bellow 0) and we combine higher and lower timeframes to gauge the trend.
In the next Image you can see that trend is negative on 4h, negative on 12h and positive on 1D. That means trend is negative.
I am sorry, the chart is a bit messy. The idea is to use the indicator over more than 1 Timeframe.
What is approximation and smoothing?
They are mathematical concepts for making a discrete set of numbers a
continuous curved line.
Fourier and Wavelet approximation of a close price are taken from aprox library.
Key Features:
You can tailor the Indicator/Strategy to your preferences with adjustable parameters such as VZO length, noise reduction settings, and smoothing length.
Volume Zone Oscillator (VZO) shows market sentiment with the VZO, enhanced with Exponential Moving Average (EMA) smoothing for clearer trend identification.
Noise Reduction leverages Euler's White noise capabilities for effective noise reduction in the VZO, providing a cleaner and more accurate representation of market dynamics.
Choose between the traditional Fast Fourier Transform (FFT) , the innovative Double Discrete Fourier Transform (DTF32) and Wavelet soothed Fourier soothed price series to suit your analytical needs.
Image of Wavelet transform with FAST settings, Double Fourier transform with FAST settings. Improved noice reduction with SLOW settings, and standard FSVZO with SLOW settings:
Fast setting are setting by default:
VZO length = 2
NoiceR max Length = 2
Slow settings are:
VZO length = 5 or 7
NoiceR max Length = 8
As you can see fast setting are more volatile. I suggest averaging fast setting on 4h 12h 1d 2d 3d 4d W and M Timeframe to get a clear view on market trend.
What if I want long only when VZO is rising and above 15 not 0?
You have set Setting VzoDifference to 15. That reduces the number of trend changes.
Example of W&FSVZO with VzoDifference 15 than 0:
VZO crossed 0 line but not 15 line and that's why Indicator returns 0 in one case an 1 in another.
What is Smooth length setting?
A way of calculating Bullish or Bearish (W&)FSVZO .
If smooth length is 2 the trend is rising if:
rising = VZO > ta.ema(VZO, 2)
Meaning that we check if VZO is higher that exponential average of the last 2 elements.
If smooth length is 1 the trend is rising if:
rising = VZO_ > VZO_
Use this Strategy to fine-tune inputs for the (W&)FSVZO Indicator.
(Strategy allows you to fine-tune the indicator for 1 TimeFrame at a time; cross Timeframe Input fine-tuning is done manually after exporting the chart data)
I suggest using " Close all " input False when fine-tuning Inputs for 1 TimeFrame . When you export data to Excel/Numbers/GSheets I suggest using " Close all " input as True , except for the lowest TimeFrame . I suggest using 100% equity as your default quantity for fine-tune purposes. I have to mention that 100% equity may lead to unrealistic backtesting results. Be avare. When backtesting for trading purposes use Contracts or USDT.
Money Flow Profile [LuxAlgo]The Money Flow Profile is a charting tool that measures the traded volume or the money flow at all price levels on the market over a specified time period and highlights the relationship between the price of a given asset and the willingness of traders to either buy or sell it, allowing traders to reveal dominant and/or significant price levels and to analyze the trading activity of a particular user-selected range.
This tool combines a volume/money flow profile, a sentiment profile, and price levels, where the right side of the profile highlights the distribution of the traded activity/money flow at different price levels, the left side of the profile highlights the market sentiment at those price levels, and in the middle the price levels.
🔶 USAGE
A volume/money flow profile is an advanced charting tool that displays the traded volume/money flow at different price levels over a specific period. It helps traders visualize where the majority of trading activity/money flow has occurred.
A sentiment profile is a difference between buy and sell volume/money flow aiming to highlight the sentiment/dominance at specific price levels.
Each row of the profile presents figures on volume and money flow specific to price levels.
High volume/money flow nodes indicate areas of high activity and are likely to act as support or resistance in the future. They attract price and try to hold it there. Conversely, low-volume nodes are areas with low trading activity, that are less subject to get revisited by the price. The market often bounces right over these levels, not staying for long. The "Profile Heatmap" option of the script helps to better emphasize the trading activity within each areas.
By measuring the traded activity at each price level the script presents an ability to highlight the consolidation zones, in other words, highlights accumulation and distribution zones. When the price moves toward one end of the consolidation and volume pick up, it can foreshadow a potential breakout.
Level of Significance, Point of Control, Highest Sentiment Zone, and Profile Price levels are some of the other profile-related options available with the script.
🔶 SETTINGS
The script takes into account user-defined parameters and plots the profiles, where detailed usage for each user-defined input parameter in indicator settings is provided with the related input's tooltip.
🔹 Profile Generic Settings
Lookback Length / Fixed Range: Sets the lookback length.
Profile Source: Sets the profile source, Volume, or Money Flow.
🔹 Profile Presentation Settings
Volume/Money Flow Profile: Toggles the visibility of the Volume/Money Flow Profile.
High Traded Nodes: Threshold and Color option for high traded nodes.
Average Traded Nodes: Color option for average traded nodes.
Low Traded Nodes: Threshold and Color option for low traded nodes.
🔹 Sentiment Profile Settings
Sentiment Profile: Toggles the visibility of the Sentiment Profile.
Sentiment Polarity Method: Sets the method used to calculate the up/down volume/money flow.
Bullish Nodes: Color option for Bullish Nodes.
Bearish Nodes: Color option for Bearish Nodes.
🔹 Profile Heatmap Settings
Profile Heatmap: Toggles the visibility of the profile heatmap.
Heatmap Source: Sets the source of the profile heatmap, Volume/Money Flow Profile, or Sentiment Profile.
Heatmap Transparency: Control the transparency of the profile heatmap.
🔹 Other Presentation Settings
Level of Significance: Toggles the visibility of the level of significance line/zone.
Consolidation Zones: Toggles the visibility of the consolidation zones.
Consolidation Threshold, Color: Sets the threshold value and zone color.
Highest Sentiment Zone: Toggles the visibility of the highest bullish or bearish sentiment zone.
Profile Price Levels, Color, Size: Toggles the visibility of the profile price levels, and sets the color and the size of the level labels.
Profile Range Background Fill: Toggles the visibility of the profiles range.
🔹 Other Settings
Number of Rows: Specify how many rows each profile histogram will have.
Profile Width %: Alters the width of the rows in the histogram, relative to the profile length
Profile Text Size: Alters the size of the text. Setting to Auto will keep the text within the box limits.
Profile Horizontal Offset: Enables to move profile in the horizontal axis.
🔶 RELATED SCRIPTS
Liquidity-Sentiment-Profile
Swing-Volume-Profiles
For more and other conceptual scripts you are kindly invited to visit LuxAlgo-Scripts .
VWAP SuiteThis indicator automates the plotting of various timeframe based VWAP Values. This utilizes a different calculation method for the standard deviations bands compared to the native Tradingview AVWAP. While the Tradingview AVWAP indicator calculates the standard devation based on the VWAP variance, this indicator calculates the std dev based on the price sum variance (i.e. the variance of the hlc3, ohlc4, etc. values).
Current timeframes include:
- Daily VWAP with three user configurable standard deviation bands
- Multi-Day VWAP that allows you to plot 2-day to 5-day VWAP
- Weekly VWAP with three user configurable standard deviation bands
- Monthly VWAP with three user configurable standard deviation bands
Some unique aspects of this indicator is that it allows the user to calculate VWAP for only a specific session range if you are only interested in the VWAP when specific participants are active in the market. For example, the default session range only calculates VWAP for the New York RTH session (0930-1600).
If the user wants to compare how the session range chosen varies from the VWAP calculation with ETH you can select the 'Include Extended Trading Hours' check box which will ignore the session range input variable and simply calculate what is exactly on the chart without filtering.
You can also toggle whether the VWAP values show up in the price scale, status line, or both which can limit the amount of clutter that shows up on the chart based upon the user's preferences.
Fine-Tune Inputs: Fourier Smoothed Hybrid Volume Spread AnalysisUse this Strategy to Fine-tune inputs for the HSHVSA Indicator.
Strategy allows you to fine-tune the indicator for 1 TimeFrame at a time; cross Timeframe Input fine-tuning is done manually after exporting the chart data.
I suggest using " Close all " input False when fine-tuning Inputs for 1 TimeFrame. When you export data to Excel/Numbers/GSheets I suggest using " Close all " input as True , except for the lowest TimeFrame.
MEANINGFUL DESCRIPTION:
The Fourier Smoothed Hybrid Volume Spread Analysis (FSHVSA) Strategy/Indicator is an innovative trading tool designed to fuse volume analysis with trend detection capabilities, offering traders a comprehensive view of market dynamics.
This Strategy/Indicator stands apart by integrating the principles of the Discrete Fourier Transform (DFT) and volume spread analysis, enhanced with a layer of Fourier smoothing to distill market noise and highlight trend directions with unprecedented clarity.
This smoothing process allows traders to discern the true underlying patterns in volume and price action, stripped of the distractions of short-term fluctuations and noise.
The core functionality of the FSHVSA revolves around the innovative combination of volume change analysis, spread determination (calculated from the open and close price difference), and the strategic use of the EMA (default 10) to fine-tune the analysis of spread by incorporating volume changes.
Trend direction is validated through a moving average (MA) of the histogram, which acts analogously to the Volume MA found in traditional volume indicators. This MA serves as a pivotal reference point, enabling traders to confidently engage with the market when the histogram's movement concurs with the trend direction, particularly when it crosses the Trend MA line, signalling optimal entry points.
It returns 0 when MA of the histogram and EMA of the Price Spread are not align.
WHAT IS FSHVSA INDICATOR:
The FSHVSA plots a positive trend when a positive Volume smoothed Spread and EMA of Volume smoothed price is above 0, and a negative when negative Volume smoothed Spread and EMA of Volume smoothed price is below 0. When this conditions are not met it plots 0.
HOW TO USE THE STRATEGY:
Here you fine-tune the inputs until you find a combination that works well on all Timeframes you will use when creating your Automated Trade Algorithmic Strategy. I suggest 4h, 12h, 1D, 2D, 3D, 4D, 5D, 6D, W and M.
ORIGINALITY & USEFULNESS:
The FSHVSA Strategy is unique because it applies DFT for data smoothing, effectively filtering out the minor fluctuations and leaving traders with a clear picture of the market's true movements. The DFT's ability to break down market signals into constituent frequencies offers a granular view of market dynamics, highlighting the amplitude and phase of each frequency component. This, combined with the strategic application of Ehler's Universal Oscillator principles via a histogram, furnishes traders with a nuanced understanding of market volatility and noise levels, thereby facilitating more informed trading decisions.
DETAILED DESCRIPTION:
My detailed description of the indicator and use cases which I find very valuable.
What is the meaning of price spread?
In finance, a spread refers to the difference between two prices, rates, or yields. One of the most common types is the bid-ask spread, which refers to the gap between the bid (from buyers) and the ask (from sellers) prices of a security or asset.
We are going to use Open-Close spread.
What is Volume spread analysis?
Volume spread analysis (VSA) is a method of technical analysis that compares the volume per candle, range spread, and closing price to determine price direction.
What does this mean?
We need to have a positive Volume Price Spread and a positive Moving average of Volume price spread for a positive trend. OR via versa a negative Volume Price Spread and a negative Moving average of Volume price spread for a negative trend.
What if we have a positive Volume Price Spread and a negative Moving average of Volume Price Spread?
It results in a neutral, not trending price action.
Thus the Indicator/Strategy returns 0 and Closes all long and short positions.
In the next Image you can see that trend is negative on 4h, we just move Negative on 12h and Positive on 1D. That means trend/Strategy flipped negative .
I am sorry, the chart is a bit messy. The idea is to use the indicator/strategy over more than 1 Timeframe.
Use this Strategy to fine-tune inputs for the HSHVSA Indicator.
(Strategy allows you to fine-tune the indicator for 1 TimeFrame at a time; cross Timeframe Input fine-tuning is done manually after exporting the chart data)
I suggest using " Close all " input False when fine-tuning Inputs for 1 TimeFrame. When you export data to Excel/Numbers/GSheets I suggest using " Close all " input as True , except for the lowest TimeFrame. I suggest using 100% equity as your default quantity for fine-tune purposes. I have to mention that 100% equity may lead to unrealistic backtesting results. Be avare. When backtesting for trading purposes use Contracts or USDT.
1. [Pufferman] - Comprehensive VolumeThis indicator presents a comprehensive approach to volume analysis, incorporating several key metrics to provide traders with a detailed view of market activity. Here's what's included:
1. Cumulative Relative Volume (Intraday): This metric accumulates volume data throughout the day, comparing it to historical session averages up to the current time. It's particularly useful for intraday analysis to determine if the stock is trading high or low volume before the day is over.
2. Real Relative Volume - This feature calculates the relative volume of a stock in comparison to the SPY, offering insight into whether a stock is trading with higher relative volume than the broader market.
3. Configurable Moving Average for Volume: Users can adjust the moving average period for average volume, allowing for flexible adaptation to different trading strategies and time frames. (green line in photo)
4. Above/Below Average Line: This line indicates whether the current volume bar exceeds or falls short of the session's average volume, providing immediate context for volume analysis. (red line in photo).
5. Volume Display in Abbreviations: Actual volume figures are presented in an abbreviated format, using "K" for thousands and "M" for millions, facilitating quick and easy analysis.
6. Color-Coded Relative and Real Relative Volume: Both the Relative Volume (RVOL) and Real Relative Volume (RRVOL) are color-coded to instantly convey volume concentration levels, enhancing visual analysis across multiple charts.
7. Volume Bars with Bullish and Bearish Highlights: Traditional volume bars are color-highlighted according to corresponding candle patterns, aiding in the identification of market sentiment.
Key Points:
The RVOL is a cumulative metric, considering time-of-day volume comparisons for intraday analysis. This approach offers a nuanced understanding of volume patterns specific to the timeframe being viewed.
The RRVOL provides a comparative analysis against the market, offering insights into stock-specific volume activity relative to market trends.
Note: This indicator is designed for intraday analysis and may not function as intended on timeframes above daily due to the cumulative nature of its volume calculations.
Effective Volume Z-ScoreThis indicator aims at responding the question: is the current trend supported by volume?
The concept and formula
The central concept is the Effective Volume, calculated as follow:
effectiveVolume = volume * (close - open) / (high - low)
Then the Effective Volume Z-Score indicator is calculated by smoothing the effective volume and applying the z-score function:
zscore(x) = (x - mean) / stdev
Essentially, the indicator's value represents the number of standard deviations of the effective volume away from the mean.
How to use it
This indicator should be used for trend confirmation.
For an uptrend, the bigger the indicator value, the greater the volume support, while for a downtrend, the lower the indicator value, the greater the volume support.
Divergences are also important, as with every volume indicator.
Periodic Activity Tracker [LuxAlgo]The Periodic Activity Tracker tool periodically tracks the cumulative buy and sell volume in a user-defined period and draws the corresponding matching bars and volume delta for each period.
Users can select a predefined aggregation period from the following options: Hourly, Daily, Weekly, and Monthly.
🔶 USAGE
This tool provides a simple and clear way of analyzing volumes for each aggregated period and is made up of the following elements:
Buy and sell volumes by period as red and green lines with color gradient area
Delta (difference) between buy & sell volume for each period
Buy & sell volume bars for each period
Separator between lines and bars, and period tags below each pair of bars for ease of reading
On the chart above we can see all the elements displayed, the volume level on the lines perfectly matches the volume level on the bars for each period.
In this case, the tool has the default settings so the anchor period is set to Daily and we can see how the period tag (each day of the week) is displayed below each pair of bars.
Users can disable the delta display and adjust the bar size.
🔹 Reading The Tool
In trading, assessing the strength of the bulls (buyers) and bears (sellers) is key to understanding the current trading environment. Which side, if any, has the upper hand? To answer this question, some traders look at volume in relation to price.
This tool provides you with a view of buy volume versus sell volume, allowing you to compare both sides of the market.
As with any volume tool, the key is to understand when the forces of the two groups are balanced or unbalanced.
As we can observe on the chart:
NOV '23: Buy volume greater than sell volume, both moving up close together, flat delta. We can see that the price is in range.
DEC '23: Buy volume bigger than Sell volume, both moving up but with a bigger difference, bigger delta than last month but still flat. We can see the price in the range above last month's range.
JAN '24: Buy and sell volume tied together, no delta whatsoever. We can see the price in range but testing above and below last month's range.
FEB '24: Buy volume explodes higher and sell volume cannot keep up, big growing delta. Price explodes higher above last month's range.
Traders need to understand that there is always an equal number of buyers and sellers in a liquid market, the quality here is how aggressive or passive they are. Who is 'attacking' and who is 'defending', who is using market orders to move prices, and who is using limit orders waiting to be filled?
This tool gives you the following information:
Lines: if the top line is green, the buyers are attacking, if it is red, the sellers are attacking.
Delta: represents the difference in their strength, if it is above 0 the buyers are stronger, if it is below 0 the sellers are stronger.
Bars: help you to see the difference in strength between buyers and sellers for each period at a glance.
🔹 Anchor Period
By default, the tool is set to Hourly. However, users can select from a number of predefined time periods.
Depending on the user's selection, the bars are displayed as follows:
Hourly : hours of the current day
Daily : days of the current week
Weekly : weeks of the current month
Monthly : months of the current year
On the chart above we can see the four periods displayed, starting at the top left and moving clockwise we have hourly, daily, weekly, and monthly.
🔶 DETAILS
🔹 Chart TimeFrame
The chart timeframe has a direct impact on the visualization of the tool, and the user should select a chart timeframe that is compatible with the Anchor period in the tool's settings panel.
For the chart timeframe to be compatible it must be less than the Anchor period parameter. If the user selects an incompatible chart timeframe, a warning message will be displayed.
As a rule of thumb, the smaller the chart timeframe, the more data the tool will collect, returning indications for longer-term price variations.
These are the recommended chart timeframes for each period:
Hourly : 5m charts or lower
Daily : 1H charts or lower
Weekly : 4H charts or lower
Monthly : 1D charts or lower
🔹 Warnings
This chart shows both types of warnings the user may receive
At the top, we can see the warning that is given when the 'Bar Width' parameter exceeds the allowed value.
At the bottom is the incompatible chart timeframe warning, which prompts the user to select a smaller chart timeframe or a larger "Anchor Period" parameter.
🔶 SETTINGS
🔹 Data Gathering
Anchor period: Time period representing each bar: hours of the day, days of the week, weeks of the month, and months of the year. The timeframe of the chart must be less than this parameter, otherwise a warning will be displayed.
🔹 Style
Bars width: Size of each bar, there is a maximum limit so a warning will be displayed if it is reached.
Volume color
Delta: Enable/Disable Delta Area Display
Volume Quartile IndicatorThe Volume Quartile Indicator is a tool designed to analyze and classify trading volumes based on quartile levels, offering traders a visual means to assess market strength and momentum. This indicator calculates volume levels using a default length of 60 periods to determine the quartiles at 10%, 30%, 50%, 70%, and 90%. Each quartile range is represented by a specific color, providing a clear, visual representation of volume intensity relative to historical data.
Color-Coded Volume Strength: Volume strength is visually represented through a color-coded system for quick and intuitive analysis:
Red: Volume below the 10% level indicates very weak market activity.
Orange: Volume between 10% and 30% signifies weak market activity.
Gray: Volume in the 30% to 50% range represents medium activity with a weak bias.
Silver: Volume between 50% and 70% indicates medium activity with a strong bias.
Blue: Volume in the 70% to 90% range denotes strong market activity.
Green: Volume above the 90% level signifies very strong market activity.
Special Volume Markers: Yellow diamond markers highlight volumes that stand out due to their significance, providing traders with visual cues for potential market entry or exit points.
Q-Lines: The indicator draws q-lines at the 70%, 90%, and the midpoint between these two levels. The convergence of these q-lines suggests potential volatility in volume, which could significantly impact price movements.
The Volume Quartile Classification Indicator is atool for traders looking to incorporate volume analysis into their trading strategy.
Volume Liqidations [EagleVSniper]The Volume Liquidations Indicator is designed for traders who want to spot significant liquidation events in the cryptocurrency markets, particularly between spot and futures volumes. This powerful tool auto-detects the trading asset and compares the volume data from both spot and futures markets to highlight potential high-volume liquidation points that can significantly impact price movement. Raw source code owner - tartigradia
Features:
Auto-Detect Functionality: Automatically identifies the current trading asset, providing an option for manual selection for both spot and futures symbols.
Volume Comparison: Calculates the difference between futures and spot volumes within a user-defined timeframe, helping to identify liquidation events.
Customizable Parameters: Offers customizable options for multipliers, lookback periods, and timeframe selection to tailor the indicator to your trading strategy.
Visual Indicators: Displays liquidation volumes as color-coded columns, with green indicating potential long liquidations and red for short liquidations. It also highlights bars that exceed the high-volume threshold, providing a clear visual cue for significant liquidation events.
Spot and Futures Volume MA: Includes optional moving average plots for both spot and futures volumes, allowing for a deeper analysis of market trends.
Highlighting High-Volatility Candles: The indicator uniquely colors candles that reach a predefined volatility threshold, determined by the user-set multiplier. This functionality aims to spotlight moments of significant market volatility, providing traders with immediate visual cues.
Dynamic Ticker Selection: Seamlessly switches between auto and manual ticker selection, providing flexibility for all types of traders.
How to Use:
Setup: Configure the indicator to your preferences. You can choose between automatic or manual ticker selection, set the multiplier for the high-volume threshold, and define the lookback period for the moving average calculation.
Analysis: The indicator plots differences in volume between futures and spot markets as columns on your chart, color-coded to indicate the direction of potential liquidations.
Decision Making: Use the indicator to identify potential liquidation events. High-volume thresholds are highlighted, suggesting significant market movements. Combine this information with other analysis tools to make informed trading decisions.
VWAP SpiderThe VWAP Spider indicator enhances the conventional Volume Weighted Average Price (VWAP) analysis by anchoring it to the first candle and incorporating an extensive series of standard deviation (SD) lines, extending up to +8 SDs with additional half-step increments. This configuration provides a more suitable set of lines for identifying support and resistance, distinguishing it from existing VWAP and SD indicators. Its design, featuring color gradients for fills and distinct labels for each line, aims to improve the utility and user experience.
Optimal Timeframes:
It is recommended for use on weekly or monthly resolutions to ensure all price and volume history is included.
Distinctive Features:
The indicator includes a more extensive array of SD lines than typically found in VWAP indicators, enhancing the depth of market analysis.
The visual presentation is optimized with color gradients and clear labeling, facilitating ease of use and integration into trading strategies.
Practical Use of the VWAP Spider:
SD Lines as Support and Resistance : Observe the interactions between the price and the SD lines closely. These can serve as dynamic support and resistance indicators, influencing trading decisions.
Analyzing Historical Price Action : Investigate how the price has historically interacted with the SD lines. Identify which lines have frequently acted as support and resistance in the past, as they will often continue to be revisited.
Strategic Application : Leverage insights from the interactions between price and SD lines to fine-tune entry and exit points. For example, a rebound from an SD line may suggest a strong entry point, while breaching an SD line could indicate a potential exit.
This indicator is freely available and open-source on TradingView for all. It is designed to help traders enhance their market analysis and strategic decision-making.
Entry FraggerEntry Fragger is a simple buy signal indicator.
It is most suitable for cryptocurrency, especially for altcoins on the 5 minute to daily timeframe and is based on simple volume calculations, in combination with EMA's.
Main Signal Logic explained:
A buy signal is generated by counting candles with an above average sell volume of 130% to 170%, taking into account the candles position below and above the 50 and 200 EMA.
If criteria meet, the first green candle above the 50 EMA's suggests upcoming higher prices.
The indicator has 2 input variables.
"Signal Confirmations (0 - 7):" Changes signal accuracy by a defining an ammount of high sell volume candles necessary below the 50 EMA.
"Volume Calculation Base (9 - 200):" Sets the exponential volume multiplier, this affects candle coloring and the volume calculation inside the candle.
"Style Settings": Turn ON/OFF Signals, Cloud, Bar Coloring, EMA's, etc...
There are no generally suitable default numbers for those 2 inputs, those have to be tested out, depending on cryptocurrency and timeframe.
The calculation is very basic, the underlying idea being, market maker initiating range breakouts through rapid increase of volume above or below the EMA's .
Example settings:
SOLUSDT: Signal Confirmations: 2, Volume Calculation Base 13.
SOLUSDT: Signal Confirmations: 0, Volume Calculation Base 20.
As you can see it affects signals quite a lot, but staying accurate.
Finetune the inputs to your preference.
Risk to Reward, Stoploss, Take Profit, position sizing, etc... is up to the user.
Recommended entry is to wait for following candle closes, entering half of the candle size and setting Stoploss outside the structure, like this:
Or right below the candles open, for safety.
Liquidity SpotterIndicator Setup:
The script sets up a TradingView indicator titled "Liquidity Spotter" with a short title "PWWTC LS". It's designed to overlay on the price chart (overlay=true).
Input Variables:
The script defines input variables that allow users to customize the behavior of the indicator:
atr_length: Length of the Average True Range (ATR) used in calculations.
volume_multiplier: Multiplier used to compare the volume of the current bar with the average volume.
range_multiplier: Multiplier used to calculate the range condition.
highlight_color: Color used to highlight bars when conditions are met.
Calculations:
The script calculates the ATR and average volume using the ta.atr and ta.sma functions provided by TradingView's Pine Script.
It sets the avg_range to the value of the ATR, essentially making it the same as atr_value.
Conditions:
The script checks several conditions based on the calculated values:
range_condition: Compares the range (high - low) of the current bar with the average range multiplied by the range multiplier.
volume_condition: Compares the volume of the current bar with the average volume multiplied by the volume multiplier.
range_volume_condition: Compares the ratio of range to volume with the ratio of average range to average volume.
Plotting:
Based on the conditions being met or not, the script sets the color of the price bars. If all conditions are met, the color of the bars will be set to highlight_color, otherwise, it will remain unchanged (na).
Overall, this script visually highlights price bars on the chart where specific conditions related to range, volume, and their ratio are met, potentially indicating trading opportunities.
Effort Versus ResultsThis indicator, named "Effort Versus Results" (CCB), is designed to visually highlight price bars on a TradingView chart based on user-defined criteria. The purpose of this indicator is to identify potential trading opportunities or signal areas of interest for further analysis.
Once the inputs are specified, the indicator calculates the ratio of the first ATR to the average volume and compares it to the product of the multiplier and the ratio of the second ATR to the average volume. If the calculated condition is met, indicating that the first ATR relative to volume is greater than the second ATR relative to volume multiplied by the specified multiplier, the indicator colors the corresponding price bars red.
By customizing the parameters, traders can adapt the indicator to suit their trading strategies, risk tolerance, and market conditions. The highlighted bars may signify potential areas of increased volatility or trading activity, prompting traders to further investigate potential trading opportunities. However, as with any technical indicator, it is essential to use this tool in conjunction with other analysis techniques and risk management strategies for informed decision-making.
The indicator utilizes three main inputs that users can customize:
1. **ATR Length 1 (`atr_length_1`)**: This parameter allows users to specify the length of the first Average True Range (ATR) period. ATR is a measure of market volatility and represents the average range of price movement over a specified period.
2. **ATR Length 2 (`atr_length_2`)**: Users can set the length of the second ATR period, allowing for comparison between two different ATR values.
3. **Volume Length (`volume_length`)**: This input enables users to define the length of the volume period. Volume is a measure of the number of shares or contracts traded during a given period and is often used to confirm price movements.
4. **Multiplier (`multiplier`)**: Users can specify a multiplier value to adjust the threshold for comparison between the two ATR values divided by volume. This parameter allows for flexibility in setting the sensitivity of the indicator.
High Volume Price Bar ChannelThe "High Volume Price Bar Channel" indicator for TradingView is a tool designed to highlight price bars that experience unusually high trading volume compared to the average volume over a specified lookback period. When the volume of a price bar exceeds a certain multiple of the average volume, a channel is drawn extending from the high to the low of that bar, indicating a potential surge in trading activity.
Key Features:
Customizable Parameters: Users can adjust the color of the channel, the lookback period for calculating the average volume, and the factor by which the current volume should exceed the average volume to trigger the drawing of the channel.
Volume-based Highlighting: The indicator identifies price bars with high volume relative to the average and visually highlights them by drawing a channel.
Flexibility: Traders can tailor the indicator settings to suit their trading strategies and preferences, allowing for adaptability across various market conditions.
Usage:
High volume often indicates increased market activity and potential price volatility. Traders may use this indicator to identify periods of heightened interest or potential trend reversals.
When the channel is drawn, traders may look for confirmation from other technical indicators or price action to make informed trading decisions, such as entering or exiting positions, adjusting stop-loss levels, or assessing the strength of a trend.
The indicator can be applied to various timeframes and financial instruments, providing insights into volume dynamics across different market environments.
Overall, the "Customizable Volume Channel" indicator offers traders a versatile tool to spot significant volume spikes and potential trading opportunities within the context of price movements, aiding in more informed decision-making and risk management strategies.
Delta ZigZag [LuxAlgo]The Delta ZigZag indicator is focused on volume analysis during the development of ZigZag lines. Volume data can be retrieved from a Lower timeframe (LTF) or real-time Tick data.
Our Delta ZigZag publication can be helpful in detecting indications of a trend reversal or potential weakening/strengthening of the trend.
This indicator by its very nature backpaints, meaning that the displayed components are offset in the past.
🔶 USAGE
The ZigZag line is formed by connecting Swings , which can be set by adjusting the Left and Right settings.
Left is the number of bars for evaluation at the left of the evaluated point.
Right is the number of bars for evaluation at the right of the evaluated point.
A valid Swing is a value higher or lower than the bars at the left/right .
A higher Left or Right set number will generally create broader ZigZag ( ZZ ) lines, while the drawing of the ZZ line will be delayed (especially when Right is set higher). On the other hand, when Right is set at 0, ZZ line are drawn quickly. However, this results in a hyperactive switching of the ZZ direction.
To ensure maximum visibility of values, we recommend using " Bars " from the " Bar's style " menu.
🔹 Volume examination
The script provides two options for Volume examination :
Examination per ZigZag line
Examination per bar
Bullish Volume is volume associated with a green bar ( close > open )
Bearish Volume is volume associated with a red bar ( close < open )
Neutral Volume (volume on a " close == open" bar) is not included in this publication.
🔹 Examination per ZigZag line
As long as the price moves in the same direction, the present ZZ line will continue. When the direction of the price changes, the bull/bear volume of the previous ZZ line is evaluated and drawn on the chart.
The ZZ line is divided into two parts: a bullish green line and a bearish red line.
The intercept of these two lines will depend on the ratio of bullish/bearish volume
This ratio is displayed at the intercept as % bullish volume (Settings -> Show % Bullish Volume)
* Note that we cannot draw between 2 bars. Therefore, if a ZZ line is only 1 bar long, the intercept will be at one of those 2 bars and not in between. The percentage can be helpful in interpreting bull/bear volume.
In the example above (2 most right labels), you can see that an overlap of 2 labels is prevented, ensuring the ability to evaluate the bullish % volume of the ZZ line .
The percentage will be colored green when more than 50%, red otherwise. The color will fade when the direction is contradictory; for example, 40% when the ZZ line goes up or 70% when the ZZ line falls.
More details can be visualized by enabling " Show " and choosing 1 of 3 options:
Average Volume Delta/bar
Average Volume/bar
Normalised Volume Delta
For both 'averages', the sum of " Volume "/" Volume Delta " of every bar on the ZZ line is divided by the number of bars (per ZZ line ).
The " Normalised Volume Delta " is calculated by dividing the sum of " Delta Volume " by the sum of " Volume " (neutral volume not included), which is displayed as a percentage.
All three options will display a label at the last point of the ZZ line and be coloured similarly: green when the ratio bullish/bearish volume of the ZZ line is bullish and red otherwise. Here, the colour also fades when it is bullish, but the ZZ line falls or when it is bearish with a rising ZZ line .
A tooltip at each label hints at the chosen option.
You can pick one of the options or combine them together.
🔹 Examination per bar
Besides information about what's happening during the ZZ line , information per bar can be visualized by enabling " Show Details " in Settings .
Split Volume per bar : show the sum of bullish (upV) and bearish (dnV) volume per bar
Volume (bar) : Total Volume per bar (bullish + bearish volume, neutral volume not included)
Δ Volume (bar) : Show Delta Volume (bullish - bearish volume)
🔹 Using Lower Timeframe Data
The ZigZag lines using LTF data are colored brighter. Also note the vertical line where the LTF data starts and the gap between ZZ lines with LTF data and without.
When " LTF " is chosen for the " Data from: " option in Settings , data is retrieved from Lower Timeframe bars (default 1 minute). When the LTF setting is higher than the current chart timeframe, the LTF period will automatically be adjusted to the current timeframe to prevent errors.
As there is a 100K limit to the number of LTF intrabars that can be analyzed by a script, this implies the higher the difference between LTF and current TF; the fewer ZZ lines will be seen.
🔹 Using real-time tick data
The principles are mostly the same as those of LTF data. However, in contrast with LTF data, where you already have LTF ZZ lines when loading the script, real-time tick data-based ZZ lines will only start after loading the chart.
Changing the settings of a ticker will reset everything. However, returning to the same settings/ticker would show the cached data again.
Here, you can see that changing settings reset everything, but returning after 2 minutes to the initial settings shows the cached data. Don't expect it to be cached for hours or days, though.
🔶 DETAILS
The timeframe used for LTF data should always be the same or lower than the current TF; otherwise, an error occurs. This snippet prevents the error and adjusts the LTF to the current TF when LTF is too high:
res = input.timeframe('1')
res := timeframe.from_seconds( math.min( timeframe.in_seconds(timeframe.period), timeframe.in_seconds(res) ) )
🔶 SETTINGS
Data from: LTF (Lower TimeFrame) or Ticks (Real-time ticks)
Res: Lower TimeFrame (only applicable when choosing LTF )
Option: choose " high/low " or " close " for Swing detection
🔹 ZigZag
Left: Lookback period for Swings
Right: Confirmation period after potential Swing
🔹 ZigZag Delta
Show % Bullish Volume : % bullish volume against total volume during the ZZ line
Show:
Average Volume Delta/bar
Average Volume/bar
Normalised Volume Delta
See USAGE for more information
🔹 Bar Data
Split Volume per bar: shows the sum of bullish ( upV ) and bearish ( dnV ) volume per bar
Volume (bar): Total Volume per bar (bullish + bearish volume, neutral volume not included)
Δ Volume (bar): Show Volume Delta (bullish - bearish volume)