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.
Volume
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.
krw -> 10 millionkrw price
each number show 10 millon
default num is 1, that means volume isn't usd. so if you use usd volume, you can change krw? indicator num to all number not 1.
and you can change exchange_rate to another num.
Open Intrest / Volume / Liquidations (Suite) [BigBeluga]This indicator is a suite of tools that aims to provide traders with efficient metrics to analyze the market in a different way, such as various types of Open Interest, Intraday Volume, and Liquidations.
This indicator can both save time and also provide a different approach to the usual price action trading style.
🔶 FEATURES
The indicator contains the following features:
Open Interest Suite
- Delta OI
- Net longs and shorts
- OI Relative Strength Index
Intraday Volume Suite
- Bullish and Bearish LTF Volume
- CVD
- Delta Volume
Liquidations Suite
- Long and Short Liquidations
- Cumulative Liquidations
🔶 EXAMPLE OF SUITE
In the example above, we can see how we can plot long and short positions, both opening and closing out.
This can give a unique way to view which side is the strongest but also which side has the most resting liquidity.
For example, if more longs are entering the market, it also means more liquidity for longs and vice versa.
Or, for example, plotting the delta OI will allow the user to see big percentages in change and spot big areas of position closing out.
This presents a fascinating method for observing numerous positions closing out in conjunction with a surge of liquidations, which could indicate a potential reversal in price.
Here, we can see a basic example of using intraday volume on a 1m LTF.
With this, we are able to see both bullish and bearish volume of the same candle, very useful to see both volumes traded in the same candle.
Using the CVD to see the overall direction based purely on the volume and spot divergence, for example, the price in an uptrend but CVD going down, indicating weak shorts in the market or trapped shorts.
Or simply view liquidations happening in the market in a very different way, both long and short liquidation at the same time + the option to use multi-timeframe liquidations.
🔶 CONCLUSION
The idea of this script is to provide a set of tools in a unique script to optimize time and analyze the market in both a quick way and in a different way than usual.
CVD Divergence Indicator.1.mmAs a member of the K1m6a Lions discussion community we often use versions of the Cumulative Volume Delta indicator
as one of our primary tools along with RSI, RSI Divergences, Open interest, Volume Profile, TPO and Fibonacci levels.
We also discuss visual interpretations of CVD Divergences across multiple time frames much like RSI divergences.
RSI Divergences can be identified as possible Bullish reversal areas when the RSI is making higher low points while
the price is making lower low points.
RSI Divergences can be identified as possible Bearish reversal areas when the RSI is making lower high points while
the price is making higher high points.
CVD Divergences can also be identified the same way on any timeframe as possible reversal signals. As with RSI, these Divergences
often occur as a trend's momentum is giving way to lower volume and areas when profits are being taken signaling a possible reversal
of the current trending price movement.
Hidden Divergences are identified as calculations that may be signaling a continuation of the current trend.
Having not found any public domain versions of a CVD Divergence indicator I have combined some public code to create this
indicator and matching strategy. The calculations for the Cumulative Volume Delta keep a running total for the differences between
the positive changes in volume in relation to the negative changes in volume. A relative upward spike in CVD is created when
there is a large increase in buying vs a low amount of selling. A relative downward spike in CVD is created when
there is a large increase in selling vs a low amount of buying.
In the settings menu, the is a drop down to be used to view the results in alternate timeframes while the chart remains on current timeframe. The Lookback settings can be adjusted so that the divs show on a more local, spontaneous level if set at 1,1,60,1. For a deeper, wider view of the divs, they can be set higher like 7,7,60,7. Adjust them all to suit your view of the divs.
To create this indicator/strategy I used a portion of the code from "Cumulative Volume Delta" by @ contrerae which calculates
the CVD from aggregate volume of many top exchanges and plots the continuous changes on a non-overlay indicator.
For the identification and plotting of the Divergences, I used similar code from the Tradingview Technical "RSI Divergence Indicator"
This indicator should not be used as a stand-alone but as an additional tool to help identify Bullish and Bearish Divergences and
also Bullish and Bearish Hidden Divergences which, as opposed to regular divergences, may indicate a continuation.
POC IndicatorThis simplified Point of Control (POC) indicator for TradingView is designed to identify and plot the price level where the highest volume of trading occurred over a specified period. The script works as follows:
Input and Initialization: The user specifies a length for the analysis period. Variables highestVolPrice and highestVol are initialized to track the price with the highest volume and the highest volume encountered, respectively.
Volume Analysis Loop: For each bar in the specified period (up to length bars back from the current bar), the script compares the volume of the current bar (volume ) to highestVol. If the current bar's volume is higher, highestVol and highestVolPrice are updated to reflect the volume and closing price of the current bar.
Plotting the POC: Instead of using a horizontal line (hline), which cannot be dynamically updated within the loop, the script uses plot to draw the POC. This plotting function draws a line on the chart that represents the closing price level associated with the highest volume observed within the analysis period.
Resetting Variables: To ensure the indicator updates correctly with each new bar, the script resets highestVol and highestVolPrice at the start of the analysis for each new period. This step is designed to recalculate the POC dynamically as new data comes in.
This approach offers a basic method for visualizing significant price levels where substantial trading activity occurred, potentially indicating areas of strong support or resistance. However, it's a simplified model and does not calculate the true POC based on a detailed volume profile across all price levels within the period.
Money Flow Index Divergences [UAlgo]🔶 Description:
This script aims providing traders with comprehensive insights into market dynamics. The indicator offers a multi-faceted approach to technical analysis, encompassing various features to enhance trading decision-making:
🔶Key Features:
Money Flow Index Oscillator Settings: Users can customize the length of the MFI oscillator and the confluence bar length to suit their trading preferences.
Gradient Color Visualization: The indicator utilizes gradient colors to visually represent the MFI oscillator, with colors shifting based on MFI values for enhanced clarity.
Confluence Area Calculation: A confluence area is calculated based on the specified length, providing additional context for MFI movements (Aims to provide longer-term information).
Divergence Detection: The script identifies bullish and bearish divergences by comparing price action with MFI oscillator movements, aiding traders in spotting potential trend reversals.
Customizable Sensitivity: Traders can adjust the sensitivity settings for divergence detection according to their trading strategies.
🔶Calculations:
MFI Calculation:
The script starts by calculating the Money Flow Index (MFI) using the ta.mfi() function, which takes the typical price (hlc3) and a length parameter (default set to 14). The MFI is normalized to a range between 0 and 1 for color gradient calculations.
Another MFI is calculated with a longer length (lengthConfluence, default set to 50) for confluence analysis. Similar to the MFI calculation, the highest and lowest MFI values within the confluence length are determined. The MFI values within the confluence length are normalized. The normalized MFI values are used to calculate the gradient color for the confluence area.
Gradient Color Calculations:
Two sets of RGB color values (redRGB, greenRGB, blueRGB) and (redRGB2, greenRGB2, blueRGB2) are defined to create a gradient color scheme for the MFI plot. The MFI value is normalized between the highest and lowest MFI values within the specified length. The normalized MFI value is then used to calculate the red, green, and blue components of the gradient color.
Plotting Confluence Area:
Two horizontal lines (upperArea and lowerArea) are plotted to highlight the confluence area.
The area between these lines is filled with the gradient color representing MFI confluence.
Divergence Calculations:
Bullish and bearish divergences are identified based on specific conditions related to the MFI and price action.
Bullish divergence occurs when the MFI makes a lower low while price makes a higher low.
Bearish divergence occurs when the MFI makes a higher high while price makes a lower high.
The sensitivity (Pivot calculation length) of divergence detection can be adjusted.
Overall, this script provides a comprehensive analysis of the Money Flow Index, including plotting the MFI with a gradient color scheme, identifying confluence areas, and detecting bullish and bearish divergences to aid traders in making informed decisions.
🔶Disclaimer:
-This script is provided for informational and educational purposes only and should not be considered financial advice.
-Trading involves risk, and users should conduct their own research and analysis before making any investment decisions.
-The author of this script and UAlgo are not liable for any losses incurred as a result of using this indicator.
-Users are encouraged to exercise caution and practice risk management when trading in the financial markets.
Liquidity Trendline With Signals [BigBeluga]The Liquidity Trendline is an indicator designed to identify potential breakouts by utilizing pivot points. These pivotal moments can trigger significant market reactions, either by breaking out or by serving as breakout and retest signals.
🔶 FEATURES
The indicator contains the following features:
Period of the calculation
Padding (spacing between the 2 lines)
Signal for breakouts
🔶 USAGE
As shown in the example, breakouts can be powerful points to see reversions in the market and can lead to a lot of volatility in the market.
When a trendline is broken, a signal will be plotted; the user can disable/enable those signals.
A trendline is formed when 2 consecutive pivot points are found, each of them lower or higher than the previous one. this is the anchor point for our trend line that we will use to spot rejection or breakouts
The delay in the creation of those trend lines will be the period input used to find the pivot point on the chart.
Another good example is using these trendlines as simple retests.
Prices bouncing on top of them will suggest a possible continuation of the current trend.
We can filter out stronger breakouts by looking at how many times the price has rejected the trendline, more rejections will result in more liquidity once the price breaks it.
Signals are plotted on the chart for every breakout that happens.
Another good utility is simply using them as retest once the price breaks those levels and holding above/below them, indicating a possible support or resistance area used for confluence
Here is another good example of how we can correctly spot price deviating from our trendline and spotting powerful continuation in price.
As said before we can filter out bad and good breakouts simply by looking at how many times rejected from those levels.
More rejection will result in a stronger reaction
🔶 CONCLUSION
This script is as simple as that and can be used in a few ways to spot reversals, price continuation, or even sentiment in price (bullish or bearish).
Cumulative Delta Volume WaveIntroducing an Enhanced Version of the CDV by LonesomeTheBlue
For the original version and description check this link:
What Makes This Version Different than the original?
This enhanced version of the CDV indicator incorporates advanced signal processing techniques to bring new depth to market analysis.
Standard Deviation Bands and EMAs: These additions to the CDV offer a visual representation of significant market movements—highlighting major pumps and dumps, as well as identifying potential support and resistance levels.
Color-Coded Insights: The standard deviation bands utilize color coding based on signal processing principles. This feature becomes increasingly useful the more you zoom out, making it easier to observe and interpret market waves.
Market Maker Activity: By examining fluctuations within the standard deviation bands, traders can gauge when Market Makers are actively maneuvering to establish their long and short positions, often at the expense of retail traders.
EMA Support and Resistance: The embedded Exponential Moving Averages (EMAs) serve as dynamic support and resistance levels. Analyzing these can help traders determine the continuing strength of a market move, whether bullish or bearish.
Visual Guide to the Basics
For a clearer understanding of what this enhanced indicator can show, please refer to the image below:
And in addition to all the above one can detect relevant W and M structures way easier with this indicator ;)
Volume Based S/R with EMA Crossover SignalsThis Pine Script indicator, titled "Volume Based S/R with EMA Crossover Signals," is designed for use on the TradingView platform and overlays on price charts to help traders identify potential buy and sell opportunities based on volume changes and EMA (Exponential Moving Average) crossovers. Let's break down its components for a detailed understanding:
Inputs
length: The number of bars used to calculate the standard deviation of the volume change. This parameter helps in identifying significant changes in volume over a specified period.
threshold: A multiplier applied to the standard deviation of volume change to determine significant spikes in volume, which are then used to identify support and resistance levels.
smoothLength: The length of the EMA used to smooth the price data, providing a clearer view of the overall price trend and helping to confirm trade signals.
fastEMALength and slowEMALength: The lengths of the fast and slow EMAs, respectively. These are used to generate crossover signals, where the crossing of the fast EMA over the slow EMA may indicate a potential entry or exit point.
Calculations
Volume Change and Standard Deviation: The script calculates the percentage change in volume from one bar to the next and then computes the standard deviation of these changes over the specified length. This process helps identify unusual volume activity, which can precede significant price movements.
Signal Generation Based on Volume: When the absolute value of the volume change divided by its standard deviation exceeds the threshold, it signals significant volume activity, potentially indicating strong support or resistance levels at previous highs or lows.
Smoothed Price: An EMA applied to the closing prices over smoothLength bars helps to confirm the trend direction and filter out noise.
EMA Crossover Signals: The script calculates two EMAs based on the fastEMALength and slowEMALength inputs. A crossover of these two averages generates potential buy or sell signals.
Logic for Buy/Sell Signals
Buy Signal: Generated when the price is above the identified support level (determined by significant volume activity), the fast EMA crosses above the slow EMA, and the price is also above the smoothed price. This confluence of conditions suggests upward momentum and potential buying opportunity.
Sell Signal: The opposite conditions generate a sell signal — when the price is below the identified resistance level, the fast EMA crosses below the slow EMA, and the price is below the smoothed price, indicating downward momentum and a potential selling opportunity.
Plotting
Support and Resistance Levels: Plotted as circles on the chart, with resistance levels in red and support levels in green, based on significant volume activity.
Smoothed Price and EMAs: The smoothed price line and both EMAs are plotted on the chart to help visually assess the trend and the crossover signals.
Buy and Sell Signals: Represented by shapes plotted on the chart, indicating the recommended trading action (buy or sell) based on the combined indicator logic.
Filling Between Support and Resistance: For visual clarity, the area between the identified support and resistance levels is filled, highlighting the range within which the price is expected to fluctuate.
This indicator offers a multi-faceted approach to trading, combining volume analysis with trend following via EMA crossovers. By identifying significant volume-based support and resistance levels and confirming trend direction with EMA crossovers and smoothed price trends, traders can make more informed decisions regarding entry and exit points. However, it's important to use this indicator as part of a comprehensive trading strategy, considering other factors such as market conditions, news, and technical analysis from other indicators.
AI Adaptive Money Flow Index (Clustering) [AlgoAlpha]🌟🚀 Dive into the future of trading with our latest innovation: the AI Adaptive Money Flow Index by AlgoAlpha Indicator! 🚀🌟
Developed with the cutting-edge power of Machine Learning, this indicator is designed to revolutionize the way you view market dynamics. 🤖💹 With its unique blend of traditional Money Flow Index (MFI) analysis and advanced k-means clustering, it adapts to market conditions like never before.
Key Features:
📊 Adaptive MFI Analysis: Utilizes the classic MFI formula with a twist, adjusting its parameters based on AI-driven clustering.
🧠 AI-Driven Clustering: Applies k-means clustering to identify and adapt to market states, optimizing the MFI for current conditions.
🎨 Customizable Appearance: Offers adjustable settings for overbought, neutral, and oversold levels, as well as colors for uptrends and downtrends.
🔔 Alerts for Key Market Movements: Set alerts for trend reversals, overbought, and oversold conditions, ensuring you never miss a trading opportunity.
Quick Guide to Using the AI Adaptive MFI (Clustering):
🛠 Customize the Indicator: Customize settings like MFI source, length, and k-means clustering parameters to suit your analysis.
📈 Market Analysis: Monitor the dynamically adjusted overbought, neutral, and oversold levels for insights into market conditions. Watch for classification symbols ("+", "0", "-") for immediate understanding of the current market state. Look out for reversal signals (▲, ▼) to get potential entry points.
🔔 Set Alerts: Utilize the built-in alert conditions for trend changes, overbought, and oversold signals to stay ahead, even when you're not actively monitoring the charts.
How It Works:
The AI Adaptive Money Flow Index employs the k-means clustering machine learning algorithm to refine the traditional Money Flow Index, dynamically adjusting overbought, neutral, and oversold levels based on market conditions. This method analyzes historical MFI values, grouping them into initial clusters using the traditional MFI's overbought, oversold and neutral levels, and then finding the mean of each cluster, which represent the new market states thresholds. This adaptive approach ensures the indicator's sensitivity in real-time, offering a nuanced understanding of market trend and volume analysis.
By recalibrating MFI thresholds for each new data bar, the AI Adaptive MFI intelligently conforms to changing market dynamics. This process, assessing past periods to adjust the indicator's parameters, provides traders with insights finely tuned to recent market behavior. Such innovation enhances decision-making, leveraging the latest data to inform trading strategies. 🌐💥
High Volume AlertThe High Volume Alert Script is developed for all traders focusing on volume analysis in their trading strategies, providing alerts for unusually high trading volumes during specified trading sessions.
Functionality:
Volume Moving Average Calculation:
Average Volume = Moving Average(Volume) = Sum of last the x last candles Volume
Where n is the user-defined period for the moving average calculation (denoted as movingaverageinput in the script. This moving average serves as the baseline to compare current volume levels against historical averages.
High Volume Detection:
HighVolume = CurrentVolume >= (MA(Volume) x HighVolumeRatio)
Here, HighVolumeRatio is a user-defined multiplier that sets the threshold for what is considered high volume. If the current volume exceeds this threshold (the product of the moving average of volume and the HighVolumeRatio ), the script identifies this as a high-volume event.
Session Filtering:
The script further refines these alerts by ensuring they only trigger during the specified trading session, enhancing relevance for traders interested in specific market hours. This session is defined by the sess and timezone parameters.
Visualisation and Alerts:
If high volume is detected (HighVolume = True), the script colors the volume bar with the highVolumeColor . If the option is selected, it also changes the color of the candlestick to either highVolumeCandleColorUp (for bullish candles) or highVolumeCandleColorDown (for bearish candles), depending on the price movement within the high-volume period. An alert is generated through the alertcondition function when high volume is detected during the specified session, notifying the trader of potentially significant market activity.
Application in Trading:
This indicator serves traders who prioritize volume as a leading indicator of potential price movement. High trading volumes may indicate the presence of significant market activity, often associated with events like news releases, market openings, or large trades, which can precede price movements.
Originality and Practicality:
This script is self-developed, aiming to fill the gap in automatic ratio adjusted volume alerts within the TradingView environment.
Conclusion:
The High Volume Alert Script is an essential tool for traders who integrate volume analysis into their strategy, offering tailored alerts and visual cues for high volume periods.
Compliance and Limitations:
The script complies with TradingView scripting standards, ensuring no lookahead bias and maintaining real-time data integrity. However, its utility depends on the availability on volume data, and please be aware that forex pairs never offer real volume data, this tool is best used with a exchange traded symbol.
Relative Volume / Volume Breakout Multiplier By Afnan TajuddinIntroducing the Relative Volume / Volume Breakout Multiplier (RVI) , RVI is specifically designed for traders who incorporate volume breakout analysis into their trading strategies, particularly breakout traders.
This indicator provides a unique perspective on volume dynamics by quantifying the extent of volume breakouts in relation to the Simple Moving Average (SMA). It offers an upgraded version of the default volume indicator on TradingView, with the added feature of Relative Volume.
For example, if the volume SMA is 100M and the current volume is 200M, the indicator will return a breakout number of 2.0, indicating that the current volume is twice that of the volume SMA. Conversely, if the volume SMA is 100M and the current volume is 50M, the indicator will return a value of 0.50, indicating that the current volume is half of the volume SMA.
This tool can be a very helpful for breakout traders, helping them identify potential trading opportunities and assess volume strength more effectively. this indicator is a must-have in the toolkit of any trader who focuses on volume breakout analysis.
Remember, every tool we use, every analysis we perform, is a step towards becoming better traders. So, let’s embrace this journey of continuous learning and improvement together. As the saying goes, “The only limit to our realization of tomorrow will be our doubts of today." Let’s step into the future with confidence, armed with the right tools and the right mindset.
Lastly, a big thank you for your support, your likes, and your comments. They mean a lot! If you have any questions, feel free to ask. Together, let’s make trading a rewarding experience!
Wavelet & Fourier Smoothed Volume zone oscillator (W&)FSVZO Indicator id:
USER;e7a774913c1242c3b1354334a8ea0f3c
(only relevant to those that use API requests)
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 natural trend.
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 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 positive on 4h, neutral on 12h and positive on 1D. That means trend is positive.
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 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 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_
Rising is boolean value, meaning TRUE if rising and FALSE if falling.
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 )
Euler's Noice reduction with both close and Discrete Furrier approximated price.
w = (dft1*src - dft1 *src ) / math.sqrt(math.pow(math.abs(src- src ),2) + math.pow(math.abs(dft1 - dft1 ),2))
filt := na(filt ) ? 0 : c1 * (w*dft1 + nz(w *dft1 )) / 2.0 /math.abs(dft1 -dft1 ) + c2 * nz(filt ) - c3 * nz(filt )
Usecase:
First option:
Select the preferred version of DFT and noise reduction settings based on your analysis requirements.
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;e7a774913c1242c3b1354334a8ea0f3c
(only relevant to those that use API requests)
Fair Value Gap Screener | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Fair Value Gap Screener! This screener can provide information about the latest Fair Value Gaps in up to 5 tickers. You can also customize the algorithm that finds the Fair Value Gaps and the styling of the screener.
Features of the new Fair Value Gap (FVG) Screener :
Find Latest Fair Value Gaps Accross 5 Tickers
Shows Their Information Of :
Latest Status
Number Of Retests
Consumption Percent
Bullish & Bearish Volume
Customizable Algoritm / Styling
📌 HOW DOES IT WORK ?
A Fair Value Gap generally occur when there is an imbalance in the market. They can be detected by specific formations within the chart. This screener then finds Fair Value Gaps accross 5 different tickers, and shows the latest information about them.
Status ->
Far -> The current price is far away from the FVG.
Approaching ⬆️/⬇️ -> The current price is approaching the FVG, and the direction it's approaching from.
Inside -> The price is currently inside the FVG.
Retests -> Retest means the price tried to invalidate the FVG, but failed to do so. Here you can see how many times the price retested the FVG.
Consumed -> FVGs get consumed when a Close / Wick enters the FVG zone. For example, if the price hits the middle of the FVG zone, the zone is considered 50% consumed.
Bullish / Bearish Volume -> Bullish & Bearish volume of a FVG is calculated by analyzing the bars that formed it. For example in a bullish FVG, the bullish volume is the total volume of the first 2 bars forming the FVG, and the bearish volume is the volume of the 3rd bar that forms it.
🚩UNIQUENESS
This screener can detect latest Fair Value Gaps and give information about them for up to 5 tickers. This saves the user time by showing them all in a dashboard at the same time. The screener also uniquely shows information about the number of retests and the consumed percent of the FVG, as well as it's bullish & bearish volume. We believe that this extra information will help you spot reliable FVGs easier.
⚙️SETTINGS
1. Tickers
You can set up to 5 tickers for the screener to scan Fair Value Gaps here. You can also enable / disable them and set their individual timeframes.
2. General Configuration
Zone Invalidation -> Select between Wick & Close price for FVG Zone Invalidation.
Zone Filtering -> With "Average Range" selected, algorithm will find FVG zones in comparison with average range of last bars in the chart. With the "Volume Threshold" option, you may select a Volume Threshold % to spot FVGs with a larger total volume than average.
FVG Detection -> With the "Same Type" option, all 3 bars that formed the FVG should be the same type. (Bullish / Bearish). If the "All" option is selected, bar types may vary between Bullish / Bearish.
Detection Sensitivity -> You may select between Low, Normal or High FVG detection sensitivity. This will essentially determine the size of the spotted FVGs, with lower sensitivies resulting in spotting bigger FVGs, and higher sensitivies resulting in spotting all sizes of FVGs.