PTS Divergence Finder SellThe PTS Divergence Finder Sell Indicator by Roger Medcalf of Precision Trading Systems.
Bearish - Sell Indications only.
First and foremost, I have been asked many times why I did not provide a sell divergence indicator while happily providing a buy signal divergence finder for many years.
I gave the answer that sell divergences are less reliable than the buy divergences, which is still true.
Some solutions to change this were found, not by giving in to peer pressure or by modification of this indicator which I made more than fifteen years ago, but by changing the default settings to be more strict.
I also noticed that Trading View calculates indicators very fast.
The nature of fear and greed are entirely different as fear is fast and instinct driven at market tops as the opposite emotions of fear and euphoria can instantly lead a human brain into the survival mode of fight or flight.
In the bottoming or oversold conditions in markets greed probogates slowly in buyers as they consider picking up value purchases at market lows with a mindset of having a low expectation of success.
This is what causes the asymmetry in market tops versus bottoms. Therefore the asymmetric settings of the buy and sell versions of this product are now explained for clarity.
I have decided to release the sell divergence indicator with "stricter" default settings.
The Demand Index length used is 55 and the difference it needs to trigger a signal is 12. These of course are user adjustable. The strictness means there are less bad signals.
The results are many tops and intermediate high points defined with pinpoint accuracy. As expected there are some disastrous signals in the midst of violent up trends which a trader can lose on if not using risk management and stops. Likewise it frequently finds the exact top.
How does the PTS Divergence Finder Sell Indicator work?
The PTS Divergence Finder Sell Indicator accurately measures the number of divergences which have occurred in Demand Index, which is a volume based indicator.
This is a histogram style indicator for subgraph two, which plots spikes which appear like stalagmites coming up from the base.
The indicator examines multiple lookback periods of the volume based Demand Index Indicator for the length that you specify. It finds high points in prices where the DI is not making a new "local" high and missing it by the "difference" setting you input.
The Demand Index is called via the library file and the intelligent code sets volume to 1 if no volume is found.
For this reason it will “work” (producing a meaningful plot) on Forex or indices without volume but performance is going to be slightly less than optimal as the valuable dimension of volume is missing.
It is therefore best to focus on instruments like stocks and futures and cryptos that have large volumes and lots of participants.
Liquid markets where many people are “voting” on the market direction give the best results.
A total of twenty look back periods are scanned on every bar and these are hard coded and non adjustable. The length of Demand Index is user adjustable but it is suggested not to wander too far below the default setting of length 55.
The second user adjustable field is “difference” and this represents the difference between Demand Index now and Demand Index “N” bars ago. (N being 20 different look back periods of various periods)
You will understand that a length 18 Demand Index produces a much more volatile plot than a 80 period plot.
For this reason you can find short lengths of “DI” and small “difference” values will produce many more signals of divergences as there is higher volatility in the underlying indicator.
You will observe this when you use it. You can set it to give hundreds of insignificant values but it is best used so you just see the significant ones by following the guidelines below.
Consider this like using a 20 period MA on a 30 second chart compared to a 20 period MA on an hourly chart.
Clearly the hourly MA change of direction is much more meaningful and important.
Suggested settings for various lengths:
Demand Index lengths less than 12 are not generally recommended for finding "good" sell divergences
DI Length 20 = difference of 20 – 35
DI Length 30 = difference of 15 – 33
DI Length 40 = difference of 13 – 31
DI Length 50 = difference of 10 – 19
DI Length 60 = difference of 9 – 15
DI Length 70 = difference of 8 – 14
DI Length 80 = difference of 8 – 13
DI Length 90 = difference of 7 – 12
DI Length 100 = difference of 7 – 11
DI Length 110 to DI Length 200 = difference of 6 – 10
DI Length > 200 = difference of less than 6
You can use decimal places of 0.24 or 0.65 if using lengths > 500
This indicator goes up to length 1000.
As I designed this myself and have been using it for more than fifteen years you can trust me when I suggest to stay reasonably close to the default settings.
Output relevance.
The minimum value is zero which means there are no divergences found, you can then find values from 1 to 20 which is a count of the number of instances found.
Paradoxically it is not so significance if the number is very high or very low as a major top occurring on a multi month high may just show a reading of 1, but some minor mid up trend rally might show a reading of 9.
Be suspicious if you see too many large readings of 12 to 18 reoccurring as it is likely that the indicator is plotted on a market in a very long term and rapid up trend which is dangerous to be shorting.
Execution of trades.
Exercise caution with this product.
Risk control is essential and risking more than 1% to 1.5% of your capital from entry price to stop would not be advised.
As with hunting, firing out lots of small trades in a shot gun approach will lead to better results than gambling all on the first signal you see.
There is much more chance of hitting a bird with a shot gun than a canon and the ammunition is much cheaper.
Always always use a stop loss. Something like 3 to 7 times a fifty period average true range for example.
Whilst it is often possible that a spike appears exactly at the precise high of the week or year and could be the only one you see all year it is risky just to short it or sell it instantly as some markets produce several failed signals which continue to rally higher.
The safest and least risky method is to wait for the trend to begin falling after you see a divergence. This is subjective to your own definition of how to measure the trend as “falling” but I would suggest waiting for a 8-20 period Exponential average to turn down before selling.
Once the trade is entered you can implement a trailing stop to allow maximum potential gains and if your style is one of wanting to take quick profits then it is wise to take only some partial profits and give the sell off a chance to go lower and exit the remainder when the trend changes. If the move was picked up near the absolute top it could be a very large collapse in the downtrend.
Sometimes you might wait up to twenty five bars after the divergence is seen before the trend begins falling. Much longer than this an it gradually negates the signal as it shows the buyers have become stronger and the safest decision is to stay out of the market.
It is not unusual for the divergences to mark the exact high of a market and this high can lead to a large move down.
There are however frequent “failed divergences” and these can be treated in the same technical analysis manner as a failed head and shoulders or failed double top where the failure to fall indicates a likelihood of a continuation higher, meaning it is time to cut a loss.
This indicator only gives sell signals. Every single signal will be given in some degree or another in an up trend at the highest high price.
Market selection is important.
Avoid markets in an endless up trend. Look for ebbs and flows in a major down trend.
Best results are on liquid markets in a good long term down trend that has frequent rallies, you can observe the past signals and often history repeats with the good previous signals tending to indicate that future signals may also be good. (This is not certain of course)
This is also true of a market showing several historically bad divergence signals leading to more bad signals.
If the past performance of this indicator is poor on the market you are viewing, then move to another market until one is found where the readings show good price dips after the signals in historical data.
Time frames.
This product can be applied to any time frame of market but be aware as is stated above, the slower time frames yield more valid signals and shorter time frames lead to more randomness and noise ridden plots of lower significance.
That said, it provides a valid reason to enter a trade and can give good results providing good stops and risk control are used. I have seen plenty of valid signals on 30 second charts right up to weekly charts.
Idiosyncrasies.
It can often be seen that multiple divergences occur over a range of ten to thirty or so bars during a very gentle spiky kind of rally.
This can be treated in the same way as above - waiting for the trend to fall after the last divergence occurs is the way to play it.
Groups of divergences can indicate some patient insider selling patterns in anticipation of some bad news they might know.
Thanks for reading this and please read it a few more times to fully understand the points mentioned.
After that please spend some time changing settings and markets to fully appreciate how it operates.
Roger Medcalf - Precision Trading Systems
Объем
Volume SuperTrend AI (Expo)█ Overview
The Volume SuperTrend AI is an advanced technical indicator used to predict trends in price movements by utilizing a combination of traditional SuperTrend calculation and AI techniques, particularly the k-nearest neighbors (KNN) algorithm.
The Volume SuperTrend AI is designed to provide traders with insights into potential market trends, using both volume-weighted moving averages (VWMA) and the k-nearest neighbors (KNN) algorithm. By combining these approaches, the indicator aims to offer more precise predictions of price trends, offering bullish and bearish signals.
█ How It Works
Volume Analysis: By utilizing volume-weighted moving averages (VWMA), the Volume SuperTrend AI emphasizes the importance of trading volume in the trend direction, allowing it to respond more accurately to market dynamics.
Artificial Intelligence Integration - k-Nearest Neighbors (k-NN) Algorithm: The k-NN algorithm is employed to intelligently examine historical data points, measuring distances between current parameters and previous data. The nearest neighbors are utilized to create predictive modeling, thus adapting to intricate market patterns.
█ How to use
Trend Identification
The Volume SuperTrend AI indicator considers not only price movement but also trading volume, introducing an extra dimension to trend analysis. By integrating volume data, the indicator offers a more nuanced and robust understanding of market trends. When trends are supported by high trading volumes, they tend to be more stable and reliable. In practice, a green line displayed beneath the price typically suggests an upward trend, reflecting a bullish market sentiment. Conversely, a red line positioned above the price signals a downward trend, indicative of bearish conditions.
Trend Continuation signals
The AI algorithm is the fundamental component in the coloring of the Volume SuperTrend. This integration serves as a means of predicting the trend while preserving the inherent characteristics of the SuperTrend. By maintaining these essential features, the AI-enhanced Volume SuperTrend allows traders to more accurately identify and capitalize on trend continuation signals.
TrailingStop
The Volume SuperTrend AI indicator serves as a dynamic trailing stop loss, adjusting with both price movement and trading volume. This approach protects profits while allowing the trade room to grow, taking into account volume for a more nuanced response to market changes.
█ Settings
AI Settings:
Neighbors (k):
This setting controls the number of nearest neighbors to consider in the k-Nearest Neighbors (k-NN) algorithm. By adjusting this parameter, you can directly influence the sensitivity of the model to local fluctuations in the data. A lower value of k may lead to predictions that closely follow short-term trends but may be prone to noise. A higher value of k can provide more stable predictions, considering the broader context of market trends, but might lag in responsiveness.
Data (n):
This setting refers to the number of data points to consider in the model. It allows the user to define the size of the dataset that will be analyzed. A larger value of n may provide more comprehensive insights by considering a wider historical context but can increase computational complexity. A smaller value of n focuses on more recent data, possibly providing quicker insights but might overlook longer-term trends.
AI Trend Settings:
Price Trend & Prediction Trend:
These settings allow you to adjust the lengths of the weighted moving averages that are used to calculate both the price trend and the prediction trend. Shorter lengths make the trends more responsive to recent price changes, capturing quick market movements. Longer lengths smooth out the trends, filtering out noise, and highlighting more persistent market directions.
AI Trend Signals:
This toggle option enables or disables the trend signals generated by the AI. Activating this function may assist traders in identifying key trend shifts and opportunities for entry or exit. Disabling it may be preferred when focusing on other aspects of the analysis.
Super Trend Settings:
Length:
This setting determines the length of the SuperTrend, affecting how it reacts to price changes. A shorter length will produce a more sensitive SuperTrend, reacting quickly to price fluctuations. A longer length will create a smoother SuperTrend, reducing false alarms but potentially lagging behind real market changes.
Factor:
This parameter is the multiplier for the Average True Range (ATR) in SuperTrend calculation. By adjusting the factor, you can control the distance of the SuperTrend from the price. A higher factor makes the SuperTrend further from the price, giving more room for price movement but possibly missing shorter-term signals. A lower factor brings the SuperTrend closer to the price, making it more reactive but possibly more prone to false signals.
Moving Average Source:
This setting lets you choose the type of moving average used for the SuperTrend calculation, such as Simple Moving Average (SMA), Exponential Moving Average (EMA), etc.
Different types of moving averages provide various characteristics to the SuperTrend, enabling customization to align with individual trading strategies and market conditions.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
AlpHay : ToolKitToolKit:
First Impressions for Securities; (like crime scene investigators) 🧐
Our first job is to understand "What did happen here?" (historically, like Price Ranges or Price Performances) 🤔
Secondly, we try to figure out "where are we now?" (like common indicators or Moving Averages) 🤔
Then "What was the chain of events?" (macro, local, fundamentals, shorts, etc.)
Note: There are a lot of useful scripts out there, but If you want to see my approach for "Fundamentals" or "Finra Short Report" scripts, have a look.
Now we have a Clue. 😎
Includes;
1. Daily Metrics (Price performance, Price Difference, Volume, Trade)
2. Historic Price Performances
3. Historic Price ranges
4. RSI and MACD (you can change) Indicators for four "Time Frame" (you can change also)
5. Moving Averages (also shows daily values on the chart)
* Easy to customize.
* You can be positioned where ever you need. (be careful about overlays)
* You can turn on/off tables for your daily usage.
* You can flip Horizontally for some of the tables.
* Always look at tooltips (mouse over for Averages etc.)
I hope you enjoy it.
Disclaimer and Warning!
* Do not forget this is my Interpolation of the data sets. You can't invest in relying on this indicator. This is just a visual representation of the data sets.
* Just be careful what you wish for. And search for anomalies.
// ToDO List.
* Pre/Post Market Price and Volume
PTS Demand IndexPTS Demand Index Indicator for Trading View coded by Precision Trading Systems
This is a complex volume-based indicator which has powerful applications as a leading indicator.
It belongs in Subgraph two under the chart. It ranges from minus 50 to plus 50 hence the reason that zero is significant in its interpretations.
On a regular daily chart of a stock you can consider approximately +29 as overbought and -25 as oversold.
Above zero is considered a bullish uptrend and below zero is seen as a bearish downtrend. This point is more valid on a slower time frame of Demand Index > 50
Shorter lengths of 6-12, etc. offer scalping opportunities for day traders or swing traders when peaks and troughs are encountered at the usual "overbought and oversold" levels similar to using RSI.
At this length you will see frequent crossings of zero as the window of data being examined is tiny.
As a future predictor of price action my preference is the longer lengths from 50 upwards. This makes for a smoother plot without it telling lies by being smoothed. Just increase the length.
They tell stories and show up insider buying and selling in a clear manner. The screenshot is length 200 and shows a power blast signal very well. Because it uses volume, a big volume trade that does not move the price much will often show up in the Demand Index Indicator, warning us of impending rapid price changes.
This is when two big traders or houses buy and sell to each other, both assuming they are right, but obviously one of them will be wrong. It is this wrong person rushing to get out of their position that causes the big move.
This is usually in the direction of the Demand Index move and this is a startling observation and seems to follow the "principle of least action" (PLA), or as Jesse Livermore said, "the price broke very badly on my selling which showed me which was the path of least resistance" . You don't need to take my word for this, just look at the chart.
There are six well known rules to Demand Index, which are widely published but still worth knowing.
However after using this for more than twenty five years I have identified some new "rules" which I will share.
The six "regular" rules
1. Divergences. If the price of a market is making a new low and DI is not this is a positive divergence seen as bullish
2. The extreme peak, this forecasts that price in the underlying market will move higher shortly. (A rare rule)
3. If the market is making new highs and Demand Index is not this is often a sign of a top and is also a bearish divergence
4. If Demand Index crosses above zero this usually signals a change in market trend
5. A long term divergence between prices and DI usually indicate a long term top or bottom is forming.
6. If DI is hovering around zero without much direction it is a sign of an indecisive and weak market lacking gusto.
The five "extra rules" of Demand Index below.
7. "The DI trend line break"
If one draws a trend line on the indicator when one has a nice place to put it that links two or three peaks or troughs together, then it breaks up or down through it, then it often signifies a price break in the same direction.
Demand Index will often signal this price break a few bars ahead of time (Sometimes as much as 10 bars ahead) Making it justified in its title as a "leading indicator" because those who know trade without telling what they know. Demand Index listens and reports it back to you.
8. "DI power blast"
(This is the example in the screenshot which lead to a big move up at 230pm UK time which is the US opening time on the ES SP500 Futures 30 second chart)
This is when a bigger than normal move occurs in DI, it does not have to "cross zero" in the event just that it can be just below or just above. It signals a big move in the direction of the blast. The example shot from -15 up to +5 in a couple of bars which lead to a 14 point move up in the futures a few minutes later.
9. "DI congestion break out"
A congested area in DI, such as is described of a stock price in a narrow range break out known as "NR" is a valid signal when emerging up or down from this range and predicts a move in that direction from the market studied.
10. "Failed zero break"
If a market is far above zero and falls down to it just puncturing it then rises up again, this is a bullish sign and a sign of a supportive market. The same applies to the vice versa signal. It acts as support and resistance often.
To be cautious you can use a plus or minus 2 or 3 as the threshold instead of zero, to give less fake signals.
11. "DI Support and resistance"
This one takes more of a deeper look. If you see a level of DI acting as support and draw a line across the subgraph two chart then you can sometimes see that this acts as support again even though the market price is totally different. A strange phenomenon but worth looking for. The same applies for resistance in the vice versa argument.
The original Demand Index formula has been adhered to exactly as it was designed without any deviations, smoothing or added parameters.
I was unable to find another script on Trading View which followed it exactly when checking against my other versions.
According to legend, the designer of this indicator Mr James Sibbet called a very big move in the Silver futures markets back in 1979 which was reported in his weekly newsletter called "Let's Talk Silver & Gold".
It was called the Silver short squeeze and the price doubled in just a few months. As a designer of trading software myself since 2006 I can say Demand Index is truly an elegant work of art.
More about divergences
Having studied many technical indicators over the years I have formed the opinion that Demand Index is the best of the best for finding meaningful divergences.
This indicator needs volume to work correctly at its best.
You can still use it on indices and Forex but as the essential volume element is missing the results will be less than optimal.
It will "work" as the library code assigns a volume of 1 if no volume is found on the symbol used.
The best markets are those with a lot of volume and a lot of players arguing over the direction.
Liquid futures and stocks do well with this indicator.
Please remember to use risk management and stop losses as not every signal will win.
Thanks for reading and good luck with using it on Trading View
Roger Medcalf - Precision Trading Systems
Exceptional Volume Spike - Potential Trend Reversal IndicatorWhat the Script Does:
The indicator aims to identify potential trend reversal points using the following steps:
Input Parameters: The script has three main input parameters that you can adjust:
relative_volume_threshold: This parameter sets the threshold for what is considered an exceptional volume spike in relation to the average volume.
ema_length: The length of the exponential moving average (EMA) used for smoothing calculations.
lookback_period: The period over which the script calculates potential support and resistance levels.
Relative Volume Calculation: The script calculates the relative volume by dividing the current volume by the average volume over the specified lookback_period.
Exceptional Volume Spikes: The script identifies exceptional volume spikes when the calculated relative volume exceeds the specified relative_volume_threshold.
EMA of Exceptional Volume Spikes: The script calculates the exponential moving average (EMA) of volume spikes. This EMA smooths out the volume spikes over the chosen ema_length.
Trend Direction: The script determines the trend direction using the crossovers of the EMA of exceptional volume spikes. If the EMA crosses above the EMA of regular volume (not spikes), it suggests a potential upward trend reversal. Conversely, if the EMA crosses below, it suggests a potential downward trend reversal.
Support and Resistance Levels: The script calculates potential support and resistance levels based on the highest high (hh) and lowest low (ll) over the specified lookback_period. These levels are then plotted on the chart.
Plot Shapes and EMA: The script plots triangle shapes below the bars for potential upward reversals and above the bars for potential downward reversals. Additionally, it plots the EMA of the closing price with different colors based on the trend direction.
By using this script as an indicator on your chart, you can visually assess potential trend reversal points based on exceptional volume spikes, trend direction crossovers, and support/resistance levels. Remember that this script serves as a tool to assist your analysis, and it's important to combine it with other technical analysis tools and strategies before making trading decisions.
Intraday Direction Finder For Indices (Based On VWAP) Happy Independence Day..!!
------------------------------------------------------------------------
This indicator is based on the concept shared by "learntotrade365" to Find Intraday Direction for Index.
To decide the direction of Index we check whether the constituent Stocks are trading above VWAP or below VWAP.
Lets Consider Banknifty Example.
Banknifty Constituents are:
HDFC Bank
ICICI Bank
KOTAK Bank
SBI
AXIS Bank
IndusInd Bank
Based on concept, where above stocks are trading decides the direction as follows
Ratio Concept (Color)
6:0 Super Bullish (Lime)
5:1 Bullish(Green)
4:2 Mild Bullish (Aqua)
3:3 Sideways(Blue)
2:4 Mild Bearish ( Orange)
1:5 Bearish (Fuchsia)
0:6 Super Bearish (Red)
-------------------------------------------------------------------------
Features :-
1) Screener
In this Screener, we can clearly see which stock is trading above VWAP
& which is trading below VWAP along with ratio.
2) Chart Candle Colors
One can able to project candle colors according to Ratio colors.
3)Chart Background Color
One can set background color of chart if he is required.
------------------------------------------------------------------------
Same this can be used with other indices also like Nifty, Finnifty etc.
-------------------------------------------------------------------------
Thanks For Reading Till here...!!
------------------------------------------------------------------------
Kindly share your feedback or any suggestions.
------------------------------------------------------------------------
Fibo Levels with Volume Profile and Targets [ChartPrime]The Fib Levels With Volume Profile and Targets (FIVP) is a trading tool designed to provide traders with a unique understanding of price movement and trading volume through the lens of Fibonacci levels. This dynamic indicator merges the concepts of Fibonacci retracement levels with trading volume analytics to offer predictive insights into potential price trajectories.
Features:
1. Fibonacci Levels: The FPI showcases three prominent Fibonacci levels on both sides of the current price, offering an intricate picture of potential support and resistance levels.
2. Support and Resistance Recognition: Harnessing the power of Fibonacci levels, the FPI provides traders with potential areas of support and resistance, aiding in informed decision-making for entries, exits, and stop placements.
3. Customizable Timeframe Settings: In order to cater to different trading strategies and styles, users can manually select their preferred timeframe for the Fibonacci calculations, ensuring optimal relevance and accuracy for their trading approach.
4. Volume Analytics: One of the standout features of the FIVP is its ability to calculate trading volume for every bar that is sandwiched between the top and lower Fibonacci levels. This ensures traders have a clear vision of where the majority of trading activity is occurring, lending weight to the credibility of the displayed support and resistance zones.
5. Volume-Derived Price Targeting: The Possible Target Arrow function is an innovative feature. By analyzing and comparing the trading volume in the bearish and bullish zones, it provides an arrow indicating the potential direction the market might take. If the bull volume surpasses the bear volume, the market is likely skewing bullish and vice versa.
Usage
Ideal for both novice and seasoned traders, the FPI offers a rich tapestry of information. It allows for refined technical analysis, more precise entries and exits, and a holistic view of the interplay between price and trading volume. Whether you're scalping, day trading, or swing trading, the Fibonacci Profile Indicator is designed to enhance your trading strategy, providing a comprehensive perspective of the market's potential movements.
OBV Oscillator Volume FilterOBV Oscillator Volume Filter
Introduction
The On-Balance Volume (OBV) is a widely-used technical indicator that aims to relate price and volume in trading. Price and volume are two of the most basic and yet crucial concepts in price movement. Together, they can reveal a lot about the instruments trends and the market's sentiment. This On Balance Volume (OBV) Oscillator incorporates enhanced features like a volume filter using a rolling window to detect outliers in accumulated volume, making it an advanced and more refined version of the standard OBV.
Interpreting the OBV Indicator
The primary function of the OBV is to accumulate volume. In simpler terms:
When the market closes higher than the previous candle, all of that candle's volume is considered 'up-volume'.
Conversely, when the market closes lower than the previous day, all of that candle's volume is considered 'down-volume'.
A rising OBV suggests that volume is being accumulated, indicating bullish market sentiment. A declining OBV, on the other hand, points to a bearish sentiment.
Features of the Script
1. Moving Averages Selection:
The script provides users with the option to select among six types of moving averages (EMA, DEMA, TEMA, SMA, WMA, HMA) to calculate the OBV. This feature offers flexibility and enables traders to choose an MA type they're most comfortable with or find the most effective.
2. Smoothing Option:
To reduce the inherent noise in the indicator, there's an option to apply smoothing. It uses a Simple Moving Average (SMA) to produce a clearer signal, making it easier for traders to interpret and respond to. If you don't want to use smoothing, just simply change the input length of smoothing to 1 in the settings.
3. Outlier Detection:
One of the standout features is the use of a rolling window to detect volume outliers. This ensures that the OBV only reacts to significant volume changes and isn't overly influenced by random spikes or drops. The volume filter is calculated based on a % of the highest OBV volume of X number of bars back. Users can adjust the time (# bars) and the sensitivity (%) of the volume filter. A longer timeperiode (# bars) and a higher % (sensitivity) in the settings result to less signals presented by the indicator.
4. Divergence Detection:
The script automatically highlights both regular and hidden divergences on the chart. Divergences can be a powerful signal of potential price reversals. This feature aids traders in spotting potential buy or sell opportunities based on divergences between price and OBV.
Regular Bullish Divergence: When the price makes lower lows, but the OBV makes higher lows.
Hidden Bullish Divergence: When the price makes higher lows, but the OBV makes lower lows.
Regular Bearish Divergence: When the price makes higher highs, but the OBV makes lower highs.
Hidden Bearish Divergence: When the price makes lower highs, but the OBV makes higher highs.
5. Alerts for Trend Reversals:
The script incorporates alerts that notify traders when the OBV indicates potential trend reversals. This feature can be instrumental in catching early entries or exits.
Disclaimer
It's crucial to understand that no single indicator should be used in isolation. To increase the probability of making accurate market predictions, always use the OBV Oscillator in conjunction with other indicators and tools. Remember that all trading involves risk, and it's possible to lose your invested capital. Always seek advice from a financial advisor before making any trading decisions. By enhancing the OBV with features like the volume filter, multiple MA types, smoothing, and divergence detection, this script becomes a potent tool in a trader's arsenal. Use it wisely, and always ensure to maintain proper risk management.
Magic LevelsPS MODS : This indicator calculate the levels based on IndiaVIX, volumes on FnO, cofficient and factor to reach on the level. Hope this can help you to understand the functionality of this Indicator
This indicator is used for draw levels or "Magic Levels/Lines" for Nifty, Bank Nifty and FnO futures, based on volatility (indiavix) calculations. This powerful tool is designed to provide insights into market volatility and assist traders and investors in making informed decisions in the Indian stock market.
As of now the indicator draws levels only on Bank Nifty and Nifty. Soon we'll publish the next update supporting all FnO Futures and stocks.
The India VIX, often referred to as the "Fear Index," is a popular measure of market volatility and investor sentiment. It quantifies the market's expectations of near-term volatility by calculating the implied volatility of NIFTY options. The VIX Levels Indicator utilizes these calculations to draw key levels on price charts, enhancing traders' understanding of potential market movements.
The indicator's main function is to identify critical support and resistance levels derived from IndiaVIX data. We considered to volatility of all the FnO instruments and calculated the mean value keeping the day into consideration while performing the calculations. These levels serve as significant reference points that can help traders gauge potential price reversals, breakouts, and trends. By integrating the Magic Levels Indicator into their analysis, traders can gain a comprehensive view of market dynamics and improve their timing for entering or exiting positions.
Traders can customize the VIX Levels Indicator to suit their preferences, adjusting parameters such as time period where the default is 1 day. This flexibility allows traders to adapt the indicator to different trading strategies and timeframes. Whether a trader focuses on intraday scalping or swing trading, the Magic Levels Indicator can be a valuable addition to their technical analysis toolkit.
Market Sessions and TPO (+Forecast)This indicator "Market Sessions and TPO (+Forecast)" shows various market sessions alongside a TPO profile (presented as the traditional lettering system or as bars) and price forecast for the duration of the session.
Additionally, numerous statistics for the session are shown.
Features
Session open and close times presented in boxes
Session pre market and post market shown
TPO profile generated for each session (normal market hours only)
A forecast for the remained of the session is projected forward
Forecast can be augmented by ATR
Naked POCs remain on the chart until violated
Volume delta for the session shown
OI Change for the session shown (Binance sourced)
Total volume for the session shown
Price range for the session shown
The image above shows processes of the indicator.
Volume delta, OI change, total volume and session range are calculated and presented for each session.
Additionally, a TPO profile for the most recent session is shown, and a forecast for the remainder of the active session is shown.
The image above shows an alternative display method for the session forecast and TPO profile!
Additionally, the pre-market and post-market times are denoted by dashed boxes.
The image above exemplifies additional capabilities.
That's all for now; further updates to come and thank you for checking this out!
And a special thank you to @TradingView of course, for making all of this possible!
Trend Change DetectorThe trend change detector oscillator is a tool designed to help traders identify the current trend direction paired with the potential reversal zones.
The oscillator is made of multiple parts:
- The colored histogram, that displays the current long-term trend direction (long if above 0, short if below)
- The trend line, which shows the price in relation to the fair value of the current trend
- The reversal zones, which are the area that alarms the traders that the price might reverse soon after having touched them
The indicator can work with three different inputs. In the Source panel, you can choose between "Price", "Price and Volume" and "Ponderated Volume". The price input uses only the price, the price and volume use the average between the price and the ponderated volume, and the ponderated volume shows the indicator working with volume data, with formulas such as the On Balance Volume and the Accumulation-Distribution line.
This indicator can be used both for trend following technique, using the cross of the trend line with the 0-line as signals in conjunction with the bias given by the histogram, and for mean reversal technique thanks to the reversal zones that allow traders to identify potential tops and bottoms.
Filtered Volume Profile [ChartPrime]The "Filtered Volume Profile" is a powerful tool that offers insights into market activity. It's a technical analysis tool used to understand the behavior of financial markets. It uses a fixed range volume profile to provide a histogram representing how much volume occurred at distinct price levels.
Profile in action with various significant levels displayed
How to Use
The script is designed to analyze cumulative trading volumes in different price bins over a certain period, also known as `'lookback'`. This lookback period can be defined by the user and it represents the number of bars to look back for calculating levels of support and resistance.
The `'Smoothing'` input determines the degree to which the output is smoothed. Higher values lead to smoother results but may impede the responsiveness of the indicator to rapid changes in volatility.
The `'Peak Sensitivity'` input is used to adjust the sensitivity of the script's peak detection algorithm. Setting this to a lower value makes the algorithm more sensitive to local changes in trading volume and may result in "noisier" outputs.
The `'Peak Threshold'` input specifies the number of bins that the peak detection mechanism should account for. Larger numbers imply that more volume bins are taken into account, and the resultant peaks are based on wider intervals.
The `'Mean Score Length'` input is used for scaling the mean score range. This is particularly important in defining the length of lookback bars that will be used to calculate the average close price.
Sinc Filter
The application of the sinc-filter to the Filtered Volume Profile reduces the risk of viewing artefacts that may misrepresent the underlying market behavior. Sinc filtering is a high-quality and sharp filter that doesn't manifest any ringing effects, making it an optimal choice for such volume profiling.
Histogram
On the histogram, the volume profile is colored based on the balance of bullish to bearish volume. If a particular bar is more intense in color, it represents a larger than usual volume during a single price bar. This is a clear signal of a strong buying or selling pressure at a particular price level.
Threshold for Peaks
The `peak_thresh` input determines the number of bins the algorithm takes in account for the peak detection feature. The 'peak' represents the level where a significant amount of volume trading has occurred, and usually is of interest as an indicative of support or resistance level.
By increasing the `peak_thresh`, you're raising the bar for what the algorithm perceives as a peak. This could result in fewer, but more significant peaks being identified.
History of Volume Profiles and Evolution into Sinc Filtering
Volume profiling has a rich history in market analysis, dating back to the 1950s when Richard D. Wyckoff, a legendary trader, introduced the concept of volume studies. He understood the critical significance of volume and its relationship with market price movement. The core of Wyckoff's technical analysis suite was the relationship between prices and volume, often termed as "Effort vs Results".
Moving forward, in the early 1800s, the esteemed mathematician J. R. Carson made key improvements to the sinc function, which formed the basis for sinc filtering application in time series data. Following these contributions, trading studies continued to create and integrate more advanced statistical measures into market analysis.
This culminated in the 1980s with J. Peter Steidlmayer’s introduction of Market Profile. He suggested that markets were a function of continuous two-way auction processes thus introducing the concept of viewing markets in price/time continuum and price distribution forms. Steidlmayer's Market Profile was the first wide-scale operation of organized volume and price data.
However, despite the introduction of such features, challenges in the analysis persisted, especially due to noise that could misinform trading decisions. This gap has given rise to the need for smoothing functions to help eliminate the noise and better interpret the data. Among such techniques, the sinc filter has become widely recognized within the trading community.
The sinc filter, because of its properties of constructing a smooth passing through all data points precisely and its ability to eliminate high-frequency noise, has been considered a natural transition in the evolution of volume profile strategies. The superior ability of the sinc filter to reduce noise and shield against over-fitting makes it an ideal choice for smoothing purposes in trading scripts, particularly where volume profiling forms the crux of the market analysis strategy, such as in Filtered Volume Profile.
Moving ahead, the use of volume-based studies seems likely to remain a core part of technical analysis. As long as markets operate based on supply and demand principles, understanding volume will remain key to discerning the intent behind price movements. And with the incorporation of advanced methods like sinc filtering, the accuracy and insight provided by these methodologies will only improve.
Mean Score
The mean score in the Filtered Volume Profile script plays an important role in probabilistic inferences regarding future price direction. This score essentially characterizes the statistical likelihood of price trends based on historical data.
The mean score is calculated over a configurable `'Mean Score Length'`. This variable sets the window or the timeframe for calculation of the mean score of the closing prices.
Statistically, this score takes advantage of the concept of z-scores and probabilities associated with the t-distribution (a type of probability distribution that is symmetric and bell-shaped, just like the standard normal distribution, but has heavier tails).
The z-score represents how many standard deviations an element is from the mean. In this case, the "element" is the price level (Point of Control).
The mean score section of the script calculates standard errors for the root mean squared error (RMSE) and addresses the uncertainty in the prediction of the future value of a random variable.
The RMSE of a model prediction concerning observed values is used to measure the differences between values predicted by a model and the values observed.
The lower the RMSE, the better the model is able to predict. A zero RMSE means a perfect fit to the data. In essence, it's a measure of how concentrated the data is around the line of best fit.
Through the mean score, the script effectively predicts the likelihood of the future close price being above or below our identified price level.
Summary
Filtered Volume Profile is a comprehensive trading view indicator which utilizes volume profiling, peak detection, mean score computations, and sinc-filter smoothing, altogether providing the finer details of market behavior.
It offers a customizable look back period, smoothing options, and peak sensitivity setting along with a uniquely set peak threshold. The application of the Sinc Filter ensures a high level of accuracy and noise reduction in volume profiling, making this script a reliable tool for gaining market insights.
Furthermore, the use of mean score calculations provides probabilistic insights into price movements, thus providing traders with a statistically sound foundation for their trading decisions. As trading markets advance, the use of such methodologies plays a pivotal role in formulating effective trading strategies and the Filtered Volume Profile is a successful embodiment of such advancements in the field of market analysis.
Daily Network Value to Transactions Signal (NVTS)
Quote of GlassNode ...
The NVT Signal (NVTS) is a modified version of the original NVT Ratio.
It uses a 90 day moving average of the daily transaction volume in the denominator instead of the raw daily transaction volume.
This moving average improves the ratio to better function as a leading indicator.
The Network Value to Transactions (NVT) Ratio is calculated by dividing the market cap by the transferred on-chain volume measured in USD.
GlassNode says the NVT Ratio was created by Willy Woo.
I have peaked into Glassnode and took their idea.
I also added a few more Moving Averages to select from, and the length can also be changed.
This script does not depend on Glassnode alone, instead I pulls data of several services...
CoinMarketCap
CoinMetrics
GlassNode
IntoTheBlock
Therefor we have more Tokens to select from.
I have also blocked some faulty data of each service.
If you get a study error of any kind then there is no data available,
or you on a wrong timeframe.
Best to use this script in a daily chart.
And keep in mind it pulls data of yesterday.
Therefor the plot is offset by 1 to the left.
The script will check each service if the data for the chart is available.
Market Cap is taken in the following order ...
CainMarketCap
GlassNode
CoinMetrics
Transaction volume as USD is taken in the following order ...
IntoTheBlock
CoinMetrics
GlassNode
Happy Trading!
Buying Selling Volume StrategyFirst I would like to give the original credit and thanks to @ceyhun for his amazing volume script.
The way I decided to convert it into a strategy is divided into multiple types.
First, I decided in order to smooth out the values and make it more accurate to adapt the values to multiple timeframes.
After that I took the initial values from the buyers and sellers , and made a rest operation between them to have a flat difference between the power of both sides.
WIth that later on I decided to to apply a volatility filter,in this case bollinger bands, in order to find out potential leading trends.
At the same time in order to filter even more, I decided to make use as well for weekly VWAP values of the asset used.
Lastly I added a dynamic risk management into it , based on the ATR Daily values of the asset values.
As for the rules used, for example for long, I am looking that the price of the asset is above the weekly VWAP, after that I am checking that the MTF volume rest operation is both bullish and above the upper side of the bollinger.
For short we would want the asset to be below the weekly VWAP, and the volume to be bearish and above the upper side of bollinger.
The exit is either based on daily ATR values multipliers, or if we have a reverse condition.
If you have any questions, please let me know !
ODSR - Open Driven Support and Resistance LevelsODSR is a support and resistance levels generator indicator which uses Open of the Day, Week or Month (basis time frame selection by user) to calculate support and resistance levels and plot it on chart.
Background:
I have been using various indicators which could generate support and resistance levels using different data points available on chart. After analyzing multiple indicators I felt there is a need of an indicator which uses Open of the day, week or month as base data and then do further calculations and generate support and resistance levels.
Logic
This indicator takes open of day, week or month candle and then compare how far was the high and low from open. It then calculate the range and add it for analysis, it does same for all the candles declared in look back period of the indicator. Once it have all the data it calculates average difference of high and low from open price. It then compare how many times that average range has been exceeded by high or low made on specific day. If high or low has exceeded the average range it then calculate how by how many point new high or low has exceeded the average range. It then use that difference to predict next level of Support and Resistance. It then check if high or low has still exceeded the support or resistance range indicator predicted using points difference it found from when price exceeded initial average range. Indicator repeat the process till 7 levels of support and resistance has been generated by indicator.
Usage
As indicator use Open price data to generate support and resistance levels therefore once it has open price of the Day, Week or Month candle it will plot the levels on charts. Open price is plotted in thin black dot line, anything above it would be considered as resistance levels. Anything below dotted line would be considered as support levels. The far the level from open less possibility it will be tested by the price. Therefore if price breaks one level it may try to test next level or can return back to Open price as well.
Along with support and resistance indicator also calculate VWAP moving average which smoothen the normal VWAP line and allow use to identify long term trend on chart. Points table display the average difference between levels price has exceeded in past.
Please do share comments, feedback or questions if you have any. If you liked the indictor please do share it with others too.
Truncate Volume SpikesTruncates or caps the height of the volume bar. Many times, there is a day where the volume eclipses the recent volume and makes the rest of the volume compressed and difficult to see.
This script cuts off the volume at a user defined multiple of average daily volume and places a label above and to the left showing the true volume.
My one gripe is that it doesn't yet handle overlapping labels. At some point, I will see if I can fix that.
PTS Divergence FinderThe Precision Divergence Finder Indicator by Roger Medcalf of Precision Trading Systems.
This product does best on markets with actual volume to function at its best.
Risk control is essential and risking more than 1% to 1.5% of your capital from entry price to stop would not be advised.
PTS Divergence Finder accurately measures the number of divergences which have occurred in Demand Index, which is a volume based indicator.
This is a histogram style indicator for subgraph two, which plots spikes which appear like stalagmites coming up from the base.
This product measures up to twenty divergences at once using multiple look back period up to a maximum of 200 bars.
The Demand Index is called via the library file and the intelligent code sets volume to 1 if no volume is found.
For this reason it will “work” (producing a meaningful plot) on Forex or indices without volume but performance is going to be slightly less than optimal as the valuable dimension of volume is missing.
It is therefore best to focus on instruments like stocks and futures and cryptos that have large volumes and lots of participants. Liquid markets where many people are “voting” on the market direction give the best results.
A total of twenty look back periods are scanned on every bar and these are hard coded non adjustable. The length of Demand Index is user adjustable but it is suggested not to wander too far below the default setting of length 20.
The second user adjustable field is “difference” and this represents the difference between Demand Index now and Demand Index “N” bars ago. (N being 20 different look back periods)
You will understand that a length 8 Demand Index produces a much more volatile plot than a 60 period plot. For this reason you can find short lengths of “DI” and small “difference” values will produce many more signals of divergences as there is higher volatility in the underlying indicator.
You will observe this when you use it. You can set it to give hundreds of insignificant values but it is best used so you just see the significant ones by following the guidelines below.
Consider this like using a 20 period MA on a 30 second chart compared to a 20 period MA on an hourly chart. The hourly MA change of direction is much more meaningful and important.
Suggested settings for various lengths
Di lengths less than 12 are not generally recommended for finding divergences
DI Length 20 = difference of 7 – 15
DI Length 30 = difference of 5 – 10
DI Length 40 = difference of 4 – 9
DI Length 50 = difference of 2 – 7
DI Length 60 = difference of 1 – 5
DI Length 70 = difference of 1 – 4
As I designed this myself and have been using it for more than fifteen years you can trust me when I suggest to stay reasonably close to the default settings.
Output relevance.
The minimum value is zero which means there are no divergences found, you can then find values from 1 to 20 which is a count of the number of instances found.
Paradoxically it is not so significance if the number is very high or very low as a major bottom occurring on a multi month low may just show a reading of 1 and some minor mid up trend dip might show a reading of 9.
Be suspicious if you see too many large reading of 12 to 18 reoccurring as it is likely that the indicator is plotted on a market in a very long term and rapid decline.
Execution of trades.
Exercise caution with this product. Always always use a stop loss. Something like 3 to 7 times a fifty period average true range for example.
Whilst it is often possible that a spike appears exactly at the precise low of the week or year and could be the only one you see all year it is risky just to buy it instantly as some markets produce several failed signals which continue lower.
The safest and least risky method is to wait for the trend to begin rising after you see a divergence. This is subjective to your own definition of how to measure the trend as “rising” but I would suggest waiting for a 15-35 period Exponential average to turn upwards before buying.
Once the trade is entered you can implement a trailing stop to allow maximum potential upside, and if your style is one of wanting to take quick profits, then it is wise to take only some partial profits and give the rally a chance to go higher and exit the remainder when the trend changes, which if the move was picked up near the absolute bottom could be a long time in an uptrend.
Sometimes you might wait up to twenty five bars after the divergence is seen before the trend begins rising up. Much longer than this an it gradually negates the signal as it shows sellers have become stronger and the safest decision is to stay out of the market.
It is not unusual for the divergences to mark the exact low of a market and this low can lead to a large move up.
There are however frequent “failed divergences” and these can be treated in the same technical analysis manner as a failed head and shoulders or failed double bottom where the failure to rally indicates a likely hood of a continuation lower, meaning it is time to cut a loss.
This indicator only gives buy signals. Every single signal will be given in some degree or another of degree of down trend at the lowest low price.
Market selection is important.
Avoid markets in an endless down trend.
Best results are on liquid markets in a good long term up trends that has frequent dips, you can observe the past signals and often history repeats with a good previous signals tending to indicate that future signals may also be good. (This is not certain of course)
This is also true of a market showing several historically bad divergence signals leading to more bad signals.
If the past performance of this indicator is poor on the market you are viewing, then move to another market until one is found where the readings show good rallies after the signals in historical data.
Time frames.
This product can be applied to any time frame of market but be aware as is stated above, the slower time frames yield more valid signals and shorter time frames lead to more randomness and noise ridden plots of lower significance. That said it provides a valid reason to enter a trade and can give good results providing good stops and risk control are used. I have seen plenty of valid signals on 30 second charts right up to weekly charts.
Idiosyncrasies.
It can often be seen that multiple divergences occur over a range of ten to thirty bars during a very gentle spiky kind of price decline. This can be treated in the same way as above - waiting for the trend to rise after the last divergence occurs is the way to play it. Groups of divergences can indicate some patient insider buying patterns in anticipation of something they might know.
Thanks for reading this and please read it a few more times to fully understand the points mentioned.
After that please spend some time changing settings and markets to fully appreciate how it operates.
Strategy - Relative Volume GainersStrategy - Relative Volume Gainers
Overview:
This trading strategy, called "Relative Volume Gainers," is designed for Long Entry opportunities in the stock market. The strategy aims to identify potential trading candidates based on specific technical conditions, including volume, price movements, and indicator alignments.
Strategy Rules:
The strategy is focused solely on Long Entry positions.
The volume for the current trading day must be greater than or equal to the volume of the previous day.
The percentage change in price must be greater than or equal to 2.5%.
The Last Traded Price (LTP) must be greater than or equal to the Exponential Moving Average (EMA) 200.
The Relative Volume for the current trading day (calculated over the last 30 days) must be greater than or equal to the Simple Moving Average (SMA) of Relative Volume over the same 30 days.
The current candle on the chart should be Green or Bullish, indicating positive price movement.
The price difference between bid and ask prices should be kept to a minimum.
It's recommended to also analyze market depth for better insights.
Strategy Requirements:
Add the Exponential Moving Average (EMA) 200 to your trading chart.
This strategy can be applied on charts of any timeframe.
For intraday trading, particularly for early entry, consider using a 1-minute timeframe.
It is advisable to create a screener to identify potential trades in real-time market conditions.
Risk Warning:
Stocks that meet the strategy criteria might exhibit high volatility and a high beta, making them inherently risky to trade. Exercise caution and adhere to predetermined risk management strategies.
Determine your trading quantity based on your entry price and stop loss in order to manage risk effectively.
Quantity Calculation Formula:
Quantity calculation is crucial to manage risk and position sizing. The following formulas can be used based on your trading scenario:
Quantity with Leverage:
Quantity = (((Using Capital / 100) * Risk Percent) / (Entry Price - Stop Loss)) * Leverage
Eg: Quantity = (((10000 / 100) * 0.2) / (405.5 - 398.5)) * 5
Quantity = 14
Risk = Rs.100 (Rs.100 is 1% of Rs.10000. So the risk is 1%, means we lose only Rs.100 when the SL is hit. If SL is increased the Quantity will get reduced to maintain a fixed risk of Rs.100)
Quantity without Leverage:
Quantity = (((Using Capital / 100) * Risk Percent) / (Entry Price - Stop Loss))
Note:
Always stay informed about market conditions and be prepared for potential rapid price movements when trading stocks that meet the strategy criteria. Strictly adhere to your predefined risk management strategy to safeguard your capital.
FastlaneIt will show a Marking (dot) above/below the candle where the Volume is 500000 and is up more than 5%.
Volume Delta CandlesThis indicator is designed to visualize the volume delta, which represents the difference between buying and selling volumes during each candle period. The indicator plots custom candlesticks on the chart, with OHLC values calculated based on the volume delta.
Calculations:
To calculate the volume delta, the indicator first determines the buying and selling volumes. If the closing price is higher than the opening price (close > open), the volume is considered as buying volume. If the closing price is lower than the opening price (close < open), the volume is considered as selling volume. Otherwise, the volume is set to zero. The volume delta is then calculated as the difference between the buying volume and the selling volume.
The custom OHLC values are derived from the volume delta. The custom open is obtained by subtracting the volume delta from the closing price. The custom close is obtained by adding the volume delta to the closing price. The custom high is set as the maximum value between the closing price and the custom open, ensuring that the candle represents the highest value within the range. The custom low is set as the minimum value between the closing price and the custom open, ensuring that the candle represents the lowest value within the range.
Interpretation:
The indicator's custom candles provide visual insights into the volume delta. Each candlestick's color (lime for positive volume delta, fuchsia for negative volume delta) indicates the dominance of buying or selling pressure during that period. When the volume delta is positive, it suggests that buying volume exceeded selling volume, possibly indicating a bullish sentiment. Conversely, when the volume delta is negative, it indicates that selling volume was higher, potentially signaling a bearish sentiment. The indicator also plots a zero line to represent the equilibrium point, where buying and selling volumes are equal.
Potential Uses and Limitations:
Traders can use the indicator to gain insights into the strength and direction of buying and selling pressures. Positive volume delta during an uptrend could suggest the presence of strong buying interest, potentially supporting further bullish moves. On the other hand, negative volume delta during a downtrend could indicate intensified selling pressure, hinting at potential further declines. Traders might use the indicator in conjunction with other technical analysis tools, such as support and resistance levels, trendlines, or oscillators, to confirm potential reversal points or trend continuations.
It's essential to interpret the indicator in the context of the overall market environment. While volume delta can provide valuable insights into short-term buying and selling imbalances, it is just one aspect of market analysis. Traders should consider other factors, such as market structure, fundamental events, and overall sentiment, to make informed trading decisions. Additionally, the indicator's efficacy might vary across different market conditions, and it may produce false signals during low-volume periods or choppy markets.
Conclusion:
By visualizing volume delta through custom candlesticks, traders can gauge market sentiment and potentially identify key reversal or continuation points. As with any technical indicator, it is advisable to use the Volume Delta Candles in combination with other tools to gain a comprehensive understanding of market conditions and make well-informed trading choices. Additionally, traders should practice proper risk management techniques to protect their capital while using the indicator in their trading strategy.
Volume as a Percent of Float by 3iauVolume as a Percent of Float
Plot the difference between current Chart Volume as a percent of Float/Outstanding and the moving average of the same.
Apply a multiplier to this value.
Plot the moving average of the difference between current Chart Volume as a percent of Float/Outstanding and the moving average of the same.
Price Range Volume Profile [Pt]█ Introduction
The Price Range Volume Profile (PRVP) is a revolutionary indicator. This tool stands out from its peers due to its unique ability to capture the entire price chart history, thus providing a comprehensive volume profile of the entire asset's trading history, as available on TradingView chart. It's worth noting that I believe this tool is the first of its kind to accomplish such a feat. A much recommended tool if you are a volume profile trader.
█ Main Features
► Historical Lookback: This feature dives deep into the past, grasping all the historical data of an asset. It's equipped to handle up to 20,000 bars, although users without a premium TradingView account are advised to keep it at a maximum of 10,000 bars, or just use the "Full Historical Lookback" feature.
► Volume Profile / POC: Displays the distribution of volume across price levels for the selected price range. The Point of Control (POC), which is the price level with the highest traded volume, is also highlighted.
► Customization: Users have the flexibility to adjust the profile's appearance, including profile width, horizontal offset, and the option to fill the background of the profile range.
► Time Weighting: This feature allows users to give more weight to recent trading activity, which can be especially useful for intraday traders or during times of high volatility. Note that this feature will impact the volume profile and POC level.
► Settings Table: A settings table is displayed on the chart for users to quickly reference their input parameters.
█ Input Parameters
► Lookback Timeframe: Determines the period for which the volume profile is generated.
► Price Range: The percentage distance to consider for the profile, adjusted above and below the current closing price.
► Profile Step size: The granularity of the volume profile. Users can opt for automatic step size based on a predefined calculation or set their preferred tick step size.
► Historical Bars Lookback: Determines the number of bars to include in the volume profile calculation.
► Profile Visuals: Adjust the appearance and layout of the volume profile on the chart.
► Extra: Additional settings including the display of a settings table and its location.
█ Basic Understanding of Volume Profile - How to use PRVP?
Volume Profile is a valuable tool for traders who want insights into where the majority of trading activity has occurred. Here are some tips to make the most of it:
► Understand the Basics: Before using the Volume Profile, ensure you understand the difference between it and the standard volume histogram. While both represent volume, the former displays it against price while the latter shows it against time.
► Identify High Volume Nodes (HVN) and Low Volume Nodes (LVN):
◊ HVN: Areas where there's a lot of trading activity and where the price has spent a lot of time. These areas can act as strong support or resistance.
◊ LVN: Areas where there's a lack of trading activity. Prices might move quickly through these areas, and they can act as potential breakpoints or accelerators for price movement.
► Locate the Point of Control (POC): This is the price level with the highest traded volume for a specified period. It often acts as a magnet for price, and it can serve as a pivot or reference point.
► Trend Confirmation: A shift in the volume profile from one price level to another can confirm a trend. For instance, if higher volume starts to build at higher price levels, it may indicate a strong uptrend.
► Watch for Volume Gaps: If there's a significant gap in the volume profile, prices may move quickly through these levels as there's little historical trading activity to act as support or resistance.
█ Other Usage Tips
◊ For optimal performance, ensure that the chosen timeframe aligns closely with the chart timeframe. Differences in timeframes may lead to minor discrepancies in the volume profile.
◊ To address any errors arising from too many levels displayed on the volume profile, consider increasing the Profile Step size or reducing the Price Range.
Volume Delta Compare [Ticks ~ LTF data]
The "Volume Delta Compare " publication shows 2 different techniques to show into-depth details of Volume, using Tick and Lower-Time-Frame (LTF) data.
🔶 USAGE
Check for divergences between price and volume movement
Check details (why and when a ΔV developed)
Or if you want to see a lot of data stacked on each other )
🔶 CONCEPTS
🔹 Tick vs. LTF data
a Tick is an measure of (upward or downward) movement in price OR volume.
We can use this data by using varip in the code.
Advantage:
• Detail, detail, detail
• Accurate, per tick
Disadvantage:
• Only realtime
• Can reset 'easily' -> loss of data
• Will reset when settings are changed
LTF data, through the request.security_lower_tf() function, measures the OHLCV data per LTF bar
Advantage:
• Access to history when loading a chart
• No 'loss' of data when chart resets
Disadvantage:
• Less detailed
• Less accurate
This script makes it possible to compare the 2 techniques and enables you to show different values.
🔹 Values
There are mainly 3 important values:
• UP volume (uV): volume when price rises
• DOWN volume (dV): volume when price falls
• NEUTRAL volume (nV): volume when price stays the same
From this, additional data is calculated:
• Volume Delta (ΔV): uV minus dV
• Cumulative Delta Volume (cΔV): sum of ΔV
One typical nV is at open: at that moment there isn't a base price to compare with,
so when the first trade doesn't fully fill the first supply (up or down), volume will rise, but price just is 'open', no movement -> no uV or dV.
• Tick data: every volume changement per tick will be added to the concerning variable (uV, dV or nV)
• LTF data: every volume changement of each bar will be added to the concerning variable (uV, dV or nV)
-> this can easily give a difference, for example (Tick vs. 1 minute LTF), when most of the ticks caused a rise of price, but at the last few seconds, a few ticks causes the close to come below open, with Tick data this could give more UP Volume, while LTF data will show 1 value of DOWN Volume.
🔶 EXAMPLES
🔹 Details
In these examples you can see:
• grey line: Total volume (higher precision)
• UP/DOWN/NEUTRAL Volume
• green columns: uV
• orange columns: dV
• blue pillars: nV
• coloured stepline: reflects ΔV
• close > open and positive ΔV -> green
• close > open but negative ΔV -> fuchsia
• close < open and negative ΔV -> orange
• close < open but positive ΔV -> bright lime green
• Right side -> indication of used data (Tick/LTF data) + last ΔV
• labels (can be disabled)
Above 0 (only with Tick data): data from EVERY tick (ΔV ):
• first the amount of Volume (0 when the amount is very minimal)
• between brackets: price movement
Below 0:
• Σ V: sum of uV, dV and nV, for that bar
• Σ up: sum of uV for that bar
• Σ dn: sum of dV for that bar
• Σ nt: sum of nV for that bar
• Σ P: sum of price movement, for that bar (only at Tick data)
(At the right you'll see a new bar just started)
Here is a detail of the first second at opening:
🔹 Cumulative Volume Delta (CVD)
Difference CVD based on Tick vs. LTF data :
(horizontal lines added for reference)
🔶 FEATURES
🔹 Minimal plotting of na values
Data window and status line only show what is applicable (tick or LTF data) to diminish clutter of data values:
The Tick option has a label above 0 which includes details of every Tick.
If data is added every tick, that label on a 10 minute chart will be filled beyond limitations pretty quickly (string max_length = 4096 limit).
To prevent the script stopping to execute, at a certain limit, this label will stop updating and show the message "Too much data".
The label below the 0-line won't reach that limit, so it will keep on updating.
Timeframes closer to 1 second will have less risk to reach that 4096 limit. Details will remain to show in this case.
🔹 Automatic label colour adaption when changing between dark/light mode values
Label background/text-colour will adapt according to the dark/light-mode by using chart.fg_color / chart.bg_color
🔶 SETTINGS
🔹 Data from: Ticks vs. LTF data
🔹 LTF: Lower Time-Frame for when LTF option is chosen: 1, 5, 10, 15, 30 Seconds or 1 minute
🔹 Also start when bar already has data: only for tick data -> when disabled calculations only start on a new bar.
🔹 CVD, Only show Cumulative Delta Volume: enable to just display CVD
🔹 Colours: colour at the right is for price/volume direction divergences
🔹 Label: choose what you want to display + size labels
🔹 0-line: The label under the 0-line sometimes goes below the chart. this can be adjusted with this setting.