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)
OBV 1min Volume SqueezeIn the vast realm of trading strategies, few terms evoke as much intrigue as the word "squeeze." It conjures images of pent-up energy, ready to burst forth in a sudden and decisive move. In this blog post, we'll delve into a new trading idea titled the "OBV 1-Minute Volume Squeeze" which aims to catch bigger market movements by fetching 1 minute OBV data on higher time charts.
The Essence of Squeeze
In trading parlance, a "squeeze" typically denotes a scenario where volatility contracts, and prices consolidate within a narrow range. Translating this concept to volume dynamics, a "volume squeeze" suggests a period of compressed volume activity. It is unclear if the Bulls or the Bears are at winning hand and price is thus consolidating. The script calculates buying and selling pressure by fetching 1 min data. The total volume presure is the sum of absolute values of the buying and selling pressure added up. By deviding the Buying volume by the total volume we know the Buying Pressure.
The trading theory suggest that when the buying pressure exceeds a certain value eg. 50% (default value in the script is 55%) it is likely the trend will continue to go up for a longer period of time. Vice Versa when selling pressure is higher, the trend is likely to continue down. In the script you can adjust the sensitivity in such way a higher "Volume Pressure %" result in less trading signals.
Fetching 1 min data
The OBV is a wonderful indicator to measure the buying and selling pressure. A disadvantage of the script is that the total volume pressure is presented as a positive (buying) or negative value (selling) value in the Oscillator. It does not offset the Bulls power against the Bears power at given time. The script aims to do measure the directional volume power by defining a volume pressure % (oulier value) by fetching 1 min OBV data on higher time frame charts comparing the Bulls power against the Bears Power. The code is included below:
// Fetch Lower Timeframe Data in an array
// nV = ZeroValue, sV = Selling Volume, bV = Buying Volume, tV = Total Volume
= request.security_lower_tf(syminfo.tickerid, '1', )
sum_bV_Lengthbars = array.sum(bV)
sum_sV_Lengthbars = array.sum(sV)
sum_tV_Lengthbars = sum_bV_Lengthbars + sum_sV_Lengthbars // Combine buying and selling volumes to get total volume
// Calculate buying and selling volume as percentage of the total volume, but ensure the denominator isn't zero.
buying_percentage = sum_tV_Lengthbars != 0 ? sum_bV_Lengthbars / sum_tV_Lengthbars * 100 : na
selling_percentage = sum_tV_Lengthbars != 0 ? -(sum_sV_Lengthbars / sum_tV_Lengthbars * 100) : na
OBV Oscillator Explanation
The On Balance Volume (OBV) indicator is a technical analysis tool used to measure buying and selling pressure in the market. It does this by keeping a running total of volume flows. OBV is typically calculated by adding the volume on a candle when the price closes higher than the previous candle's close and subtracting the volume on candles when the price closes lower than the previous candles close. If the price closes unchanged from the previous candle, the volume is not added to or subtracted from the OBV. The OBV can be presented as an oscillator. Positve value is the buying pressure and negative values is the selling pressure. In the settings the OBV is calculated based on 1 min data and comes with the following input options for visualization on the chart:
Higher Time Frame Settings (make sure the HTF is higher than the chart you have open)
Type of MA being: EMA, DEMA, TEMA, SMA, WMA, HMA, McGinley
Volume Pressure % (outlier value)
Length of number of bars (of the choosen HTF settings)
Smoothing of number candles of hte opened timechart. Note that higher number of bars to smoothen the indicator results in less signals, but lag of the indicator increases.
The Oscilator contains 3 main lines which are used to determin the entry signals:
Orange Line = the Outlier value in settings described as "Volume Pressure %"
Green Line = Total Buying Pressure OBV
Red Line = Total Selling Pressure OBV
If the Green or Red line is in between the zero line and the orange line the volume is squeezed and waiting for a directional break out.
If the Green line crosses over the orange line the buying pressure is > 55% and triggers a long entry position (green dot). If the Red line crosses under the orange line the selling pressure is > 55% and triggers an short entry (red dot). In the strategy settings this option is called: "Wait for total volume to increase?".
Alternative Strategy Options
In order to play around with different settings users can opt for two more strategy entry settings, called:
"Wait for total volume to deacrease?" --> Only gives a signal when total volume is declining, but buying or selling pressure maintains and crosses % threshold.
"Wait for Pull Back?" --> After a pullback occured and opposite buy/sell pressure gets lower than threshold (direction is shifting)
Turning on all options will logically result into more signals. Note these strategy ideas are experimental and can best be used in confirmation with other indicators.
Moving Average Filter (HTF)
The Oscillator has a horizontal line at the bottom. The line is green when the moving average is in a uptrend and red when the moving average is in a downtrend. The MA Filter comes with the following settings:
Higher Time Frame Setting
Type of MA being: EMA, DEMA, TEMA, SMA, WMA, HMA, McGinley
Length of number of bars (of the choosen HTF settings)
At last I hope you like this volume trading idea and if you have any comments let me know!
VITAMIN: Volume Insight Trend Analyzer - Multilayered INdicator)Meet VITAMIN, an indicator created mainly to function as a confirmation volume indicator to integrate into strategies as a signal filter, but it can also be used as a general-purpose indicator to enhance market analysis through volume trend insights.
The name was choses to help with recall, with VITAMIN short for "Volume Insight Trend Analyzer - Multilayered INdicator".
The indicator is grounded in the net volume calculation, using TradingView's built-in Net Volume indicator as a starting point, and taking as a series of simple Moving Averages based on the Net Volume data.
Core Features:
Multilayered Analysis: VITAMIN layers multiple moving averages on top of net volume—volume adjusted for price movement direction—to filter market noise and reveal clearer volume trends.
Foundation in Net Volume: The starting point is net volume, which combines volume magnitude with the direction of price changes, offering a baseline for momentum analysis.
Visual Trend Indicators: The indicator uses green and red shading between its moving average layers and a reference zero line to visually denote bullish (green) and bearish (red) volume trends, simplifying the interpretation of market sentiment.
Utility of VITAMIN:
Volume plays a crucial role in market analysis, but interpreting volume directly can be complex due to inherent market noise. Net Volume in particular features a great deal of noise, as a sequence of spikes and dips from bar to bar. My purpose with this indicator was to separate the signal from the noise. VITAMIN's multilayered moving averages provide a smoother, more interpretable trend line that distinguishes significant market moves from short-term fluctuations.
Applications:
Confirming Trends: VITAMIN can help validate price trends. A price uptrend paired with a bullish volume trend indicated by VITAMIN may reinforce the strength of the movement.
Identifying Divergences: Observing discrepancies between price trends and VITAMIN's volume trends can highlight potential reversals or continuations.
Assessing Market Sentiment: The overall trend and colour shading within VITAMIN aims to provide insight into market sentiment.
VITAMIN is designed for simplicity and effectiveness, aiming to provide deeper insights into volume trends, supporting more informed decisions.
Like any indicator featuring moving averages, and averages of those averages, there is a built-in lag to this indicator, but this is the trade-off for removing noise from the signal. Adjust the user inputs to suit your time frame.
Fourier Smoothed Hybrid Volume Spread AnalysisIndicator id:
USER;91bdff47320b4284a375f428f683b21e
(only relevant to those that use API requests)
MEANINGFUL DESCRIPTION:
The Fourier Smoothed Hybrid Volume Spread Analysis (FSHVSA) indicator is an innovative trading tool designed to fuse volume analysis with trend detection capabilities, offering traders a comprehensive view of market dynamics.
This 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.
HOW TO USE THE 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.
ORIGINALITY & USEFULNESS:
The FSHVSA 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 returns 0.
In the next Image you can see that trend is negative on 4h, neutral on 12h and neutral 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 Euler approximation of a spread are taken from aprox library.
Key Features:
Noise Reduction leverages Euler's White noise capabilities for effective Volume smoothing, providing a cleaner and more accurate representation of market dynamics.
Choose between the innovative Double Discrete Fourier Transform (DTF32) and Regular Open & Close price series.
Mathematical equations presented in Pinescript:
Fourier of the real (x axis) discrete:
x_0 = array.get(x, 0) + array.get(x, 1) + array.get(x, 2)
x_1 = array.get(x, 0) + array.get(x, 1) * math.cos( -2 * math.pi * _dir / 3 ) - array.get(y, 1) * math.sin( -2 * math.pi * _dir / 3 ) + array.get(x, 2) * math.cos( -4 * math.pi * _dir / 3 ) - array.get(y, 2) * math.sin( -4 * math.pi * _dir / 3 )
x_2 = array.get(x, 0) + array.get(x, 1) * math.cos( -4 * math.pi * _dir / 3 ) - array.get(y, 1) * math.sin( -4 * math.pi * _dir / 3 ) + array.get(x, 2) * math.cos( -8 * math.pi * _dir / 3 ) - array.get(y, 2) * math.sin( -8 * math.pi * _dir / 3 )
Fourier of the imaginary (y axis) discrete:
y_0 = array.get(x, 0) + array.get(x, 1) + array.get(x, 2)
y_1 = array.get(x, 0) + array.get(x, 1) * math.sin( -2 * math.pi * _dir / 3 ) + array.get(y, 1) * math.cos( -2 * math.pi * _dir / 3 ) + array.get(x, 2) * math.sin( -4 * math.pi * _dir / 3 ) + array.get(y, 2) * math.cos( -4 * math.pi * _dir / 3 )
y_2 = array.get(x, 0) + array.get(x, 1) * math.sin( -4 * math.pi * _dir / 3 ) + array.get(y, 1) * math.cos( -4 * math.pi * _dir / 3 ) + array.get(x, 2) * math.sin( -8 * math.pi * _dir / 3 ) + array.get(y, 2) * math.cos( -8 * math.pi * _dir / 3 )
Euler's Smooth with Discrete Furrier approximated Volume.
a = math.sqrt(2) * math.pi / _devided
b = math.cos(math.sqrt(2) * 180 / _devided)
c2 = 2 * math.pow(a, 2) * b
c3 = math.pow(a, 4)
c1 = 1 - 2 * math.pow(a, 2) * math.cos(b) + math.pow(a, 4)
filt := na(filt ) ? 0 : c1 * (w + nz(w )) / 2.0 + c2 * nz(filt ) + c3 * nz(filt )
Usecase:
First option:
Leverage the script to identify Bullish and Bearish trends, shown with green and red triangle.
Combine Different Timeframes to accurately determine market trend.
Second option:
Pull the data with API sockets to automate your trading journey.
plot(close, title="ClosePrice", display=display.status_line)
plot(open, title="OpenPrice", display=display.status_line)
plot(greencon ? 1 : redcon ? -1 : 0, title="position", display=display.status_line)
Use ClosePrice, OpenPrice and "position" titles to easily read and backtest your strategy utilising more than 1 Time Frame.
Indicator id:
USER;91bdff47320b4284a375f428f683b21e
(only relevant to those that use API requests)
(mab) Dynamic Bitcoin NVT SignalBitcoin`s NVT is calculated by dividing the Network Value (market cap) by the USD volume transmitted through the blockchain daily. Note this equivalent of the bitcoin token supply divided by the daily BTC value transmitted through the blockchain, NVT is technically inverse monetary velocity.
Credits go to Willy Woo for creating the Network Value Transaction Ratio (NVT). Credits go also to Dimitry Kalichkin improving NVT and creating the NVT Signal (NVTS).
According to its creator, the NVT Ratio is somewhat similar to the PE Ratio used in equity markets. When Bitcoin`s NVT is high, it indicates that its network valuation is outstripping the value being transmitted on its payment network, this can happen when the network is in high growth and investors are valuing it as a high return investment, or alternatively when the price is in an unsustainable bubble.
I created this indicator because the NVT indicator I was using suddenly stopped working. I tried a number of other NVT indicators, but all of them seem to have the same problem and stopped updating after a certain date. The cause is that the data feed from 'Quandl' that is used by most NVT indicators is no longer updated through the previous API.
Instead TradingView created a special API to access 'Quandl" data. This indicator not only uses the new API for 'Quandl', it can also access data from other providers like 'Glassnode', 'CoinMetrics' and 'IntoTheBlock'. However, the 'Quandl' data feed seems to produce the best results with this indicator.
The indicator provides dynamically adjusting overbought and oversold thresholds based on a two year moving average and standard devition with adjustable multipliers. It also implements alerts for NVT going into overbought, oversold or crossing the moving average.
Version 1.0
--
Version history
0.1 Beta
- Initial version
1.0
- First release
MultiWAPThe VWAP tracks the average price, giving weight to each candle based upon its' relative volume.
In other words, high-volume candles move the VWAP faster than low-volume candles.
On a good day, market maker:
-Buys the dip
-Pumps past resistance, causing bullish FOMO
-Sells into the bullish FOMO, causing bearish FOMO
-Buys the dip (rinse and repeat)
By default, MultiWAP begins at the first visible bar.
Range low/high - tracks the most recent high/low
Upper VWAP - tracks retail's average buy price (MM is selling)
Lower VWAP - tracks MM's average buy price (MM is buying)
If price closes below the lower VWAP or the range low, the lower VWAP and range low are reset.
If price closes above the upper VWAP or the range high, the upper VWAP and range high are reset.
Resets are indicated by the dots. Resetting either VWAP moves it close to last price, making it easy to breach again.
A down-trend that lasts many bars will produce a string of green dots. When the accumulation phase ends, price pulls away from the lower VWAP, so it stops resetting. The ABSENCE of green dots tells you that we're in the markup phase/up-trend.
An up-trend that lasts many bars will produce a string of red dots. When the distribution phase ends, price pulls away from the upper VWAP, so it stops resetting. The ABSENCE of red dots tells you that we're in the markdown phase/down-trend.
By default, the net result is two VWAP's that automatically anchor themselves to the most recent, significant, and visible, high and low.
Usage:
For any timeframe, I recommend starting zoomed way out. Find the last green dot and drop an "Anchored VWAP" there. Now, zoom in until that candle is no longer visible. Find the last green dot and drop an anchored VWAP there. Continue doing so until you notice the lower VWAP getting reset to basically the same place.
This works the same, in reverse, during down-trends.
Trend ScopeIntroduction:
The Trend Scope presents a cutting-edge approach to technical analysis, offering traders a distinctive perspective on market momentum through dynamic visualization. This innovative indicator harmoniously blends the momentum-based Rate of Change (RoC) with the smoothing precision of a Butterworth filter and the clarity of a Fisher Transform, all encapsulated within an intuitive color-coded environment.
How Trend Scope Works:
The Trend Scope operates on a multi-faceted computational framework:
1. Rate of Change (RoC): The core of Trend Scope, RoC, measures the velocity of price movements, providing an initial momentum footprint that is both raw and telling.
2. Butterworth Filter: To refine the momentum signal and strip away the erratic noise of the market, we introduce the Butterworth filter. Celebrated for its flat frequency response, it ensures the retention of the signal's integrity with minimal lag.
3. Fisher Transform: To further distill the signal, the Fisher Transform is applied. It recalibrates the smoothed data to fit within specified bounds, thus accentuating the extremities of price actions where potential reversals might loom.
4. Adaptive Color Bands: The centerpiece of the Trend Scope's visual prowess lies in its adaptive color bands. These bands stretch over the momentum landscape, painted in vivid reds and greens based on the directional bias of the smoothed RoC. Intensity varies with momentum strength, offering an immediate, graphical representation of market trends.
Why Trend Scope Stands Out:
In the crowded realm of market indicators, Trend Scope distinguishes itself with its visual-forward approach and adaptive nuances. The intensity-adapting bands offer an instant read on the market's pulse—brighter shades signal stronger momentum, while muted tones suggest caution.
Key Features:
- Momentum Intensity Bands: Instead of mere lines, the Trend Scope deploys color bands that dynamically adapt in opacity to reflect the strength of the trend, making it easier for traders to spot significant movements at a glance.
- Volatility-Sensitive Smoothing: By leveraging the Butterworth filter, the Trend Scope finely tunes the noise reduction process in sync with the asset's natural volatility, ensuring the trends are not only smooth but also relevant.
- Sharper Reversal Signals: The Fisher Transform sharpens the ability to spot potential turning points, providing a statistical edge in anticipating market movements.
- Customizable Parameters: The Trend Scope is fully customizable, allowing traders to calibrate the indicator to the unique demands of different assets and market conditions.