Quantum VWAP ProThe VWAP indicator is another of our suite of volume indicators and one which was first referred to in 1988 when it appeared in an article entitled “The Total Cost Of Transactions On The NYSE” in the March edition of the Journal Of Finance from that year, which went on to explain its importance, particularly from an institutional perspective, which underpins its significance in appreciating the power and importance of this indicator.
In many ways, it is akin to the volume price analysis methodology itself, as we are merely attempting to follow the footprints in the sand left by their passage and described by volume. The same is true here, but in this case, we are following the institutions in much the same way.
Originally, the VWAP indicator was developed as a benchmark to measure whether an institutional customer received a fair execution of their order by the broker buying and selling on their behalf. The difference between the reported price and the VWAP gave the customer a benchmark against which to judge whether they had received a fair price or not. A portfolio manager for example, wants to know how the price they paid compared to the average price of the stock during the time it took to fill the order. If an order is filled at a worse price than the VWAP, it raises questions as to the ability of the broker. If the broker purchased a million shares at $40.50 and the VWAP during this time was at $40.70, the customer is likely to be happy since they paid 20 cents less than ‘fair value’. Equally, if the stock were purchased above, at, say $40.90 per share, the customer would consider this a poor trade, paying well above the fair value price at the VWAP.
The simplicity of this easy-to-understand benchmark, which creates this fair value price concept, has led to its wholehearted adoption amongst the institutions, and moreover, why algorithmic VWAP orders now dominate institutional market activity. A huge percentage of institutional orders are executed as VWAP orders, which raises two key questions. First of all, why, and second, how can we benefit from using the indicator?
If we start with the why, according to reports from the leading market makers, almost 40% of orders are now executed on this basis as they attempt to obtain a buy or sell price close to or better than the VWAP during the time it takes to complete the buy or sell order. These orders, therefore, help to hugely reinforce the importance of the VWAP since it is the guiding principle on which these orders are based. Even Warren Buffet uses VWAP, as evidenced when he sold his entire position in Southwest Airlines over two days, holding 2.3 million shares.
This highlights the key issues for any large institutional investor involving the price. If executed in a single order, an order to buy a large block of shares would almost certainly swamp the market, raising the price exponentially and, in addition, overwhelm the average volume traded in the day.
It is this issue of putting the price up against their own buying or conversely seeing the price fall as a result of their own selling that leads to the parent and child order scenario where significant block orders are broken into a multitude of smaller orders, which are duly executed over days, weeks or months. It is this aspect of institutional order execution that makes the VWAP such a potent indicator.
However, at Quantum Trading, we don’t just build a single indicator and leave it at that! We always take them to another level, and here we have done the same, bundling together a total of five indicators into one amazing value package so you can select your favorite from those on offer. The reason for this is we recognize the different ways the volume-weighted average price is used, which is why we offer a total of FIVE variants to choose from, and these are as follows:
VWAP – Volume Weighted Average Price
MVWAP – Moving Volume Weighted Average Price
AVWAP – Anchored Volume Weighted Average Price
TWAP – Time Weighted Average Price
Interday Volume Weighted Average Price
All five variants include the option to display upper and lower bands that act as envelopes above and below the VWAP based on standard deviation, which you can adjust and set yourself. These price envelopes become essential dynamic support and resistance levels, which can help predict the extremes of price action as it oscillates around the VWAP from the fastest to the slowest timeframes and everything in between.
All five indicators are packaged into one powerful indicator, which we have named the Quantum VWAP Pro indicator for obvious reasons, and as you would expect, it works in all markets and instruments, whether stocks, futures, ETFs, forex or cryptocurrencies.
Finally, as with all our indicators, we recommend you use it in multiple timeframes.
Volume
Noa: Z-distance from VWAP with Kalman Smoother
Title: Noa: Z-distance from VWAP with Kalman Smoother
Description:
The "Z-distance from VWAP with Kalman Smoother" is a tool constructed on the premise that price evolves in distinct stages: normal or extreme trends (upward or downward) and transitional periods, termed as 'flips'. The Volume Weighted Average Price (VWAP) serves as a benchmark, representing the market's expectation of a fair value over a given time frame. However, since each stock trades on its unique price scale, direct comparisons are not feasible. This script introduces a standardized method, using the Z-score from the VWAP, to understand and compare these relationships across diverse scales.
Core Principles:
Stages of Price Movement:
- Prices don't move purely randomly; while they contain a random element, they oscillate in discernible patterns or stages—either maintaining a trend (normal or extreme) or undergoing transition (flip).
- VWAP as Fair Value: VWAP offers a dynamic representation of what the market perceives as fair value for a stock over a specific period.
- Standardizing Price Relations: Given the varied scales at which different stocks trade, a model was imperative to standardize these relations. The Z-score from the VWAP fulfills this role, offering a normalized measure of how far the price deviates from its perceived fair value.
Features:
Z-score Levels:
The indicator demarcates various stages of price movements, offering clarity on potential overbought or oversold conditions.
- Extreme Up Trend: Indicated when the Z-score surpasses the upper limit.
- Normal Up Trend: Represented when the Z-score lies between the flip upper and the upper limit.
- Transition (Flip): Recognized when the Z-score oscillates within the flip range.
- Normal Down Trend: Denoted when the Z-score is between the flip lower and the lower limit.
- Extreme Down Trend: Marked when the Z-score falls below the lower limit.
Visual Aids:
- Color-coded regions between specific Z-score levels and the Z-score plot itself elucidate the current market state.
- Kalman Filter: By incorporating a Kalman filter, the indicator offers a less noisy and smoother representation of the Z-score, enhancing its interpretability.
Usage:
Trend Analysis:
- The Z-score states and the color-coded plot facilitate a nuanced understanding of the prevailing market trend.
- Potential Reversal Points: Extremely positive or negative Z-scores might hint at impending reversals.
- Buy/Sell Signals: Z-score's interactions with the flip level can be interpreted as potential trading signals.
Example (for illustration purposes only):
AAPL since April 2022: The stock exited from a normal uptrend and transitioned potentially towards a downtrend. By the end of April, AAPL flipped twice before transitioning to a normal downtrend. By early May, the stock moved into an aggressive downtrend. Market buyers were able to counter this downtrend by June, but selling pressure persisted, pushing the stock back into an aggressive downtrend. By the end of June, buyers halted the aggressive selling and transitioned the stock from an aggressive to normal downtrend, then to a flip, and finally to a normal uptrend by the end of August. AAPL briefly peaked into an aggressive uptrend before being pressured back to a normal downtrend. The rest of 2022 saw AAPL attempting several short-lived uptrend flips. However, 2023 brought a change, with AAPL flipping into a normal uptrend by the end of January, maintaining it until August of that year.
Credits:
This script, inspired by Z distance from VWAP by LazyBear and Kalman Smoother by alexgrover, was revamped and enriched by nord-ouestadvisors to embed these core principles and heighten its usability. A special acknowledgment to ChatGPT by OpenAI for the guidance.
Volume peak based zonesThis is a simple but effective indicator based on simple volume.
What does this indicator for you:
Zones are drawn on the basis of volume peaks. It is used for this purpose the closing price to the high or to the low depending on the direction of the candle.
How can this be used:
With volume peaks one assumes that a movement has reached your end for the time being or a new movement is initiated.
This cannot be verified by simple volume alone.
If a zone is displayed is now to pay attention to the following:
Narrow zone: indicate when creating mostly a continuation of the trend. Can later, however, be used as support or resistance.
Medium zones: The price is in an accumulation phase. Here is crucial, whether a candle with increased volume (preferably above the volume SMA) arises and the high or the low of the zone by closing price leaves. Accordingly, a short or long position can be taken. As SL, the high or low of the zone or the candle itself can be used.
Large zones: The high and low of the zone indicate a range in which the price will stay in the near future. The low or the high can be used as a once if the price does not leave the zone despite high volume at the close.
Otherwise, this can be interpreted as a breakout.
Principles of Volume:
Rising Volume at Rising Price = Intact Trend
Rising Volume at Falling Price = Intact Trend
Falling volume at rising price = correction movement
Falling volume at falling price = correction movement
Have Funn!!
Bist Manipulation [Projeadam]
OVERVIEW | GENEL BAKIŞ
ENG: Indicator that detects manipulation candles according to changing market conditions.
TR: Değişen piyasa koşullarına göre manipülasyon mumlarını tespit eden gösterge.
ENG: IMPORTANT NOTE: This indicator works in BIST Market and only in Future Parities.
Example ->> PETKM1! --SASA1!
TR: ÖNEMLİ NOT: Bu indikatör BİST Piyasasında ve sadece Future Paritelerde Çalışır.
Örnek- >> PETKM1! -- SASA1!
ENG: Market makers manipulate the market because most people who trade on the stock exchange act with their emotions and are forced to close the transaction at a loss.
TR: Piyasada market yapıcı oluşumlar manipülasyon yaparlar çünkü borsada işlem alan insanların birçoğu duygularıyla hareket eder ve zararla işlem kapatılmaya zorlanır.
ENG: If we detect manipulation candles in the market, we can control our fragile psychology and close our transactions in profit by trading with market-making formations in these areas.
TR: Marketde manipülasyon mumlarını tespit edersek kırılgan psikolojimizi kontrol edebilir ve bu alanlardan market yapıcı oluşumlarla beraber işlem alarak işlemlerimizi karda kapatabiliriz.
ALGORITHM | ALGORİTMA
ENG: With the help of this indicator, you can detect manipulation candles in the BIST exchange with the help of the algorithm I created by using volumetric data and wicks created by the price.
When there is excessive volatility in price movement, the algorithm in this indicator notices this price volatility and calculates a manipulation value by dividing it by the volatility value in past price movements.
TR: Bu indikatör yardımıyla hacimsel veriler ve fiyatın oluşturduğu fitillerden yararlanarak oluşturduğum algoritma yardımıyla siz de BİST borsasında manipülasyon mumlarını tespit edebilirsiniz.
Fiyat hareketinde aşırı derece oynaklık olduğunda bu indikatördeki algoritma bu fiyat oynaklığını fark eder ve geçmiş fiyat hareketlerindeki oylanklık degerine bölerek bize bir manipülasyon degeri hesaplar.
How does the indicator work? | Gösterge nasıl çalışır?
ENG: The manipulation candle does not give us information about the direction of price movement, it is only used as an auxiliary indicator.
TR: Manipülasyon mumu bize fiyat hareketinin yönü hakkında bilgi vermez sadece yardımcı bir gösterge olarak kullanılır.
ENG: We show our manipulation values as columns. We draw a channel over the values we show and we understand that there is manipulation in the candle of our values above this channel.
TR: Manipülasyon degerlerimiz kolonlar şeklinde gösteriyoruz. Gösterdiğimiz değerlerimizin üzerine bir kanal çizdiriyoruz ve bu kanalın üzerinde kalan değerlerimizdeki mumda manipülasyon yapıldığını anlıyoruz.
ENG: The indicator shows the manipulation value in the form of columns. Our manipulation value that goes outside the channel we have determined is colored red, within the channel it is colored yellow, and below the channel it is colored green. Red columns indicate candles that are manipulations.
TR: İndikatör manipülasyon degerini kolonlar şeklinde gösteriyor. Bizim belirlediğimiz kanal dışına çıkan manipülasyon degerimiz kırmızı, kanal içerisinde sarı, kanal altında yeşil olarak renklendiriliyor. Kırmızı kolonlar manipülasyon olan mumları göstermektedir.
Example | Örnek
ENG: In our example above, we see a manipulation candle that clears the price gaps, while the market maker clears the orders in the price gaps at the bottom to move the price up.
TR: Yukarıdaki örneğimizde oluşan fiyat boşluklarını temizleyen bir manipülasyon mumu görmekteyiz, alt kısımdaki fiyat boşluklarındaki emirleri temizleyen market maker fiyatı yukarı taşımak için buradaki emirleri temizliyor.
SETTINGS PANEL | AYARLAR PANELİ
ENG: We have only one setting in this indicator.
TR: Bu indikatörde tek ayarımız vardır.
ENG: Our multiplier value determines the width of the band value formed above our manipulation value. In the chart above, our multiplier value is 3.3. If we reduce our multiplier value, our manipulation sensitivity will decrease as there will be much more candles on the band.
TR: Çarpan değerimiz manipülasyon değerimizin üstünde oluşşan band değerinin genişliğini belirlemektedir.Yukarıdaki grafikte çarpan değerimiz 3.3, Eğer çarpan değerimizi azaltırsak band üstünde çok daha fazla mum olacağı için manipülasyon hassasiyetimiz azalacaktır.
ENG: When we set our multiplier value to 2.3, we have a more sensitive manipulation skin and it gives signals in more candles.
TR: Çarpan değerimizi 2.3 yapınca daha hassas manipülasyon derimiz oluyor ve daha fazla mumda sinyal veriyor.
If you have any ideas what to add to my work to add more sources or make calculations cooler, suggest in DM .
Volume Spike Analysis [Trendoscope]The Volume Spike Analysis is designed to detect volume spikes in a trading instrument's data. Rather than relying on the traditional method of comparing volume to its moving average, this indicator employs a distinctive approach to ensure accuracy.
Methodology
Historical Volume Comparison: The indicator first assesses the current bar's volume, say 100k, and looks back historically to determine the last instance when the volume was equal to or exceeded this level.
High Volume Bar Gap Calculation: The intervals or gaps between high volume bars are recorded. These gaps help in determining how common or rare a particular volume spike is.
Spike Magnitude Determination: Here, the extent of the volume spike is gauged in relation to either the median, lowest, or average volume of the intervening bars. The reference metric (median, lowest, or average) can be chosen by the user through the "Volume Spike Reference" input parameter.
Spike Percentile Analysis: The calculated spike magnitude (as a percentage of the reference volume) is cataloged. This collection aids in understanding the relative intensity of the current volume spike when compared to previous spikes.
Threshold Comparisons: The indicator then compares the calculated "High Volume Distance Percentile" to the "Last High Volume Distance Percentile" and the "Volume Spike Percentile" to the "Volume Spike Threshold". If these values surpass the preset thresholds, the current bar is flagged as a high volume or volume spike bar.
Visual Components
Bar Highlighting : High volume or volume spike bars are accentuated with bright colors for easy identification. All other bars have increased transparency to reduce visual clutter.
Distance from the High Volume Bar: Indication of the number of bars since the last high volume occurrence and its respective percentile.
Comparative Factors: A factor representing the magnitude by which the current volume surpasses the lowest, median, and average volumes.
Lowest, Median and Average Volumes: The lowest and median volumes are indicated by tooltips on lines marking the respective bars. The average volume is depicted as a dotted horizontal line, with a triangle marker tooltip revealing its value.
This indicator offers a nuanced analysis of volume spikes, aiding traders in making more informed decisions.
MADALGO`s Enhanced OBV DivergencesDescription:
MADALGO's Enhanced OBV Divergences indicator is a unique tool designed for traders to visualize the divergences between price action and On Balance Volume (OBV), a fundamental aspect often indicative of underlying strength or weakness in the market. By keenly identifying these divergences, traders are better positioned to anticipate potential trend reversals or trend continuations, making this script an invaluable addition to their technical analysis toolkit.
This script meticulously scans for both regular and hidden bullish/bearish divergences, providing a comprehensive view of market sentiment. The core of this indicator is built around the OBV, which cumulatively adds or subtracts volume based on the price movement per period, thus providing a running total of volume and portraying the force behind the price movements.
The regular divergences are classic indicators of a potential reversal in the current trend, while hidden divergences are often indicative of trend continuation. These divergences are pinpointed based on the relative positions of the OBV and price highs/lows, over customizable lookback periods and within specified lookback ranges.
Features:
Regular and Hidden Divergences: Clearly marked bullish and bearish divergences provide insights into potential market turning points.
On Balance Volume (OBV) Line: Visualize the continuous flow of buying and selling pressure, enabling the identification of accumulation or distribution phases essential for understanding the market's strength or weakness.
Moving Average of OBV: An optional feature to smooth the OBV line, aiding in the identification of the overarching trend.
Dynamic Statistics Label: A floating label provides real-time updates on essential statistics like the Rate of Percentage Change (RPC) of OBV, the last divergences, and bars since the last divergences.
Inputs:
Pivot Lookback Right and Pivot Lookback Left: Define the lookback periods for identifying pivot points in the OBV line.
Max of Lookback Range and Min of Lookback Range: Define the range for considering divergences.
RPC Period: Defines the period for calculating the Rate of Percentage Change of the OBV.
MA Period: Defines the period for the optional moving average of the OBV.
Plot Bullish, Plot Hidden Bullish, Plot Bearish, Plot Hidden Bearish: Toggle visibility of respective divergences.
Plot Moving Average: Toggle visibility of the OBV moving average.
Usage:
Add the script to your TradingView chart.
Tailor the input parameters in the settings panel to align with your analysis requirements.
The divergences, OBV line, and optional moving average will be plotted on your chart, with a dynamic label displaying real-time statistics.
Set up alerts to be notified of identified divergences, enabling timely decision-making.
Alerts:
Regular bullish/bearish divergence in OBV found: Triggered when a regular bullish or bearish divergence is identified.
Hidden bullish/bearish divergence in OBV found: Triggered when a hidden bullish or bearish divergence is identified.
Underlying Concepts:
The OBV Divergences indicator is rooted in the principle that volume precedes price movement. When prices are rising with increased volume, it suggests that buying pressure is prevailing and may lead to continued upward momentum. Conversely, rising prices with decreasing volume might indicate a lack of buying conviction and could signal a potential price reversal. The identification of divergences between price and OBV can therefore serve as a powerful signal for traders. These examples can be seen below in the image
The Moving Average of the OBV further aids in understanding the prevailing trend by smoothing out the OBV line, providing a clearer picture of the market's longer-term momentum. The Rate of Percentage Change (RPC) provides insight into the momentum of volume, offering an additional layer of analysis. Together, these additional features enhance the core OBV analysis, enabling a more nuanced understanding of volume dynamics fundamental for making more informed trading decisions.
License:
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, you can obtain one at Mozilla Public License 2.0.
Volume-Weighted RSI [wbburgin]The Volume-Weighted RSI takes a new approach to the traditional calculation of the RSI in using a price::volume calculation. As some traders consider volume to be a leading indicator for price, the volume-weighted RSI can come in handy if you want to visualize volume easier.
Usage
This indicator builds the RSI from the square of the volume change and the price. If the volume decreases rapidly with the price, the volume-weighted RSI will fall; if the volume increases rapidly with the price, the volume-weighted RSI will rise.
You may notice crosses and circles appearing above and below the indicator. These indicate abnormal volume or price:
A green cross indicates abnormal upward price
A red cross indicates abnormal downward price
A green circle indicates abnormal positive volume
A red circle indicates abnormal negative volume
A green bar indicates both abnormal price and volume (positive), while a red bar indicates both abnormal price and volume (negative).
The thresholds of what are considered "normal" and "abnormal" are controlled by the "SD Multiple" in your settings (standard deviation). A higher multiple will make less of these signals occur, and you can turn them and the bars off at any time.
I have a built-in Light Style and Dark Style so that your preference of background won't affect seeing the indicator. You can also change the colors and the overbought/oversold lines in your settings.
RMI Trend SniperThe "RMI Trend Sniper" is a powerful trend-following indicator designed to help traders identify potential buy and sell signals in the market.
It combines elements of the Relative Strength Index (RSI) and the Money Flow Index (MFI) to provide a comprehensive view of market momentum and strength.
🔷 Key Features:
🔹 Customizable Settings : Tailor the indicator to your trading preferences with customizable input parameters, including RSI and MFI lengths, threshold levels, and visual settings.
🔹 Momentum Signals : The indicator generates clear bullish and bearish momentum signals, allowing you to spot potential trend reversals or continuations.
🔹 The positive condition considers the previous RMI value, current RMI value, and positive change in the 5-period exponential moving average (EMA) of the closing price.
🔹 The negative condition looks at the current RMI value and negative change in the 5-period EMA.
🔹 Visual Bands : Visualize market volatility with dynamically plotted bands around the Range Weighted Moving Average (RWMA), providing insights into potential price fluctuations.
🔹 Candlestick Coloring : Easily identify bullish and bearish conditions with color-coded candlesticks, helping you make informed trading decisions.
The "RMI Trend Sniper" is a versatile tool suitable for traders of all experience levels. Whether you are a novice or an experienced trader, this indicator can help you enhance your technical analysis and improve your trading strategies.
Crypto Liquidation HeatmapThis indicator is designed to identify potential areas of liquidations, in most crypto assets.
How does it work?
At the core of this indicator, it utilizes Open Interest (a statistic measuring the sum of all open futures positions), which I will refer to as OI.
The script monitors changes in OI, and then correlates these changes to the price action trend to derive an estimation of whether an increase in OI relates to an increase in Shorts or in Longs.
The trend is currently identified by the candle closing direction, therefore a bullish candle with increasing OI, results in the script counting an increase in Long Positions. Whereas a bearish candle and increasing OI, results in an increase of Short Positions.
Following that, the script estimates where these new positions will be liquidated (set either as a manual percentage, or using one of the defined presets).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
What makes this indicator unique from "Liquidation Levels" scripts, is the the way it groups potential liquidation volumes in segments, creating a cumulative view of liquidity potential - a true heatmap, not simply levels. To further clarify, liquidity within a set range is added to the segment of that range. The settings allow you to set the resolution of the range, according to preference. There is also an Automatic mode (at this moment limited to Bitcoin).
Regular OI Liquidation levels do not combine their volumes when overlapped, nor do they adhere to any ranges - making them scattered and not representative of the true liquidity in that area. This Liquidation Heatmap fixes all of those limitations.
Another unique addition to this Liquidation Heatmap, is my custom three tier color gradients with alpha support (transparency). This function allows a seamless transition of the coloring in liquidation potential from purple (minimum), to blue (medium), to yellow (maximum). This allows a larger range of liquidity identification, along with further aesthetic bonuses.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
How to use this indicator?
In general, such a tool can be used in numerous ways. It is not a standalone signal, meaning you should always compliment this tool with your own TA and reasoning.
One way of using this tool, is to anticipate that the price will continue on its trend, when you see it moving towards a zone of high liquidity (expecting that liquidity to be taken out).
Another way of using this tool, would be to anticipate a kickback after a liquidation event has taken place, thus returning to the mean.
Machine Learning: MFI Heat Map [YinYangAlgorithms]Overview:
MFI Heat Maps are a visually appealing way to display the values of 29 different MFIs at the same time while being able to make sense of it. Each plot within the Indicator represents a different MFI value. The higher you get up, the longer the length that was used for this MFI. This Indicator also features the use of Machine Learning to help balance the MFI levels. It doesn’t solely rely upon Machine Learning but instead incorporates a growing length MFI averaged with the Machine Learning MFI at any given index.
For instance, say we are calculating the 10th plot from the bottom, the MFI would be an average of:
MFI(source, 11)
Machine Learning MFI at Index of 10
We do it this way as they both help smooth each other out without relying solely on just one calculation method.
Due to plot limitations, you are capped at 28 Plot Amounts within this indicator, but that is still quite a bit of information you can glean from a Heat Map.
The Machine Learning used in this indicator is of the K-Nearest Neighbor (KNN). It uses a Fast and Slow MFI calculation then sorts through them over Machine Learning Length and calculates the differences between them. It then slices off KNN length to create our Max/Min Distances allotted. It adds the average between Fast and Slow MFIs to a Viable Distances array if their distances are within the KNN Min/Max distance. It then averages all distances in the Viable Distances array and returns the result.
The result of the KNN Function is saved to another ML Data array whose length is that of Plot Amount (Heat Map Size). This way each Index of the ML Data array can be indexed according to the Heat Map Size.
The Average of the ML Data array is the MFI line (white) that you’ll see plotted on the Indicator. There is also the SMA of the MFI Average (orange) which is likewise plotted. These plots allow you to visualize where the ML MFI is sitting and can potentially be useful for seeing when the MFI Average and SMA cross over and under each other.
We’ve heard many people talk highly of RSI, but sadly not too many even refer to MFI. MFI oftentimes may be overlooked, especially with new traders who may not even know what it is. Essentially MFI is an RSI but it also incorporates Volume into its calculations, which in our opinion leads to a more accurate reading; afterall, what is price movement without Volume.
Tutorial:
You may be thinking, this Indicator looks appealing to the eye, but how do I benefit from it trading wise?
Before we get into our visual examples, let's talk briefly about what makes Heat Maps in general a useful tool for trading. Heat Maps give us the ability to visualize and understand lots of data while removing the clutter. We can understand the data of 29 different MFIs without having to look at and decipher 29 different MFI plots. When you overlay too many MFI lines on top of each other, they can be very difficult to read and oftentimes end up actually hindering your Technical Analysis. For this reason, we have a simple solution to this problem; Heat Maps. This MFI Heat Map allows you to easily know (in a relative %) what the MFI level is for varying lengths. For Instance, the First (bottom) plot indexes an MFI of (K(0) (loop of Plot Amount) + Smoothing Length (default 1)) = 1. Since this is indexing (usually) a very low length, it will change much quicker. Whereas the Last (top) plot indexes an MFI of (K(27) (loop of Plot Amount) + Smoothing Length (default 1)) = 28. This is indexing a much higher length of MFI which results in the MFI the higher you go up in the Heat Map to move much slower.
Heat Maps give us the ability to see changes happening over multiple MFIs at the same time, which can be very useful for seeing shifts in MFI / Momentum. Remember, MFI incorporates Volume, so even if the price goes up a lot, if there was low volume, the MFI won’t move as much as an RSI would. However, likewise, if there is high volume but low price movement, the MFI will move slightly more than the RSI.
Heat Maps change color based on their MFI level. If the MFI is >= 90 it is HOT (red), if the MFI <= 9 it is COLD (teal, think of ICE). Green represents an MFI of 50-59 and Dark Blue represents an MFI of 40-49. Green and Dark blue are the most common colors as all the others are more ‘Extreme’ MFI levels.
Okay, time to get to the Examples :
Since there is so much going on in Heat Maps, we’ve decided to focus this tutorial to this specific area and talk about individual locations before talking about it as a whole.
If you refer to the example above where there are 2 white circles; these white circles are highlighting a key location you’ll be wanting to identify within your Heat Maps, many things are happening here:
The MFI crossed over the SMA (bullish).
The Heat Map started changing from mid/dark Blue (30-50 MFI) to Green (50-59 MFI) around the midline (the 50% dashed like).
The Lower levels of the Heat Map are turning Yellow/Orange/Red (60-100 MFI).
The Upper Levels of the Heat Map are still Light Blue - Green (10-50 MFI).
The 4 Key points above, all point towards potential Bullish Momentum changes. You’re likely wondering, but why? Let's discuss about each one in more specific detail:
1. The MFI crossed over the SMA (bullish): What this tells us is that the current MFI Average is now greater than its average over the last (default) 16 bars. This means there's been a large amount of Money Flow (Price and Volume) recently (subjectively based on the last (default) 16 average). This is one of the leading Bullish / Bearish signals you will see within this Indicator. You can enable Signals within the Settings and/or even add Alerts for when these crossings occur.
2. The Heat Map started changing from mid/dark Blue (30-50 MFI) to Green (50-59 MFI) around the midline (the 50% dashed like): This shows us that the index’s in the mid (if using all 28 heat map plots it would be at 14) has already received some of this momentum change. If you look at the second white circle (right), you’ll also notice the higher MFI plot indexes are also green. This is because since their length is long they still have some momentum and strength from the first white circle (left). Just because the first white circle failed in its bullish push, doesn’t mean it didn’t achieve momentum that would later on help to push the price up.
3. The Lower levels of the Heat Map are turning Yellow/Orange/Red (60-100 MFI): It occurred somewhat in the left white circle, but mainly in the right white circle. This shows us the MFI is very high on the lower lengths, this may lead to the current, middle and higher length MFIs following suit soon. Remember it has to work its way up, the higher levels can’t go red unless the lower levels go red first and the higher levels can also lag quite a bit behind and take awhile to catch up, this is normal, expected and meant to happen. Vice versa is also true with getting higher levels to go cold (light teal (think of ICE)).
4. The Upper Levels of the Heat Map are still Light Blue - Green (10-50 MFI): You might think at first that this is a bad thing, but it's not! Remember you want to be Fearful when others are Greedy and Greedy when others are Fearful! You don’t want to buy when the higher levels have a high MFI, you want to buy when you see the momentum pushing up in the lower MFI levels (getting yellow/orange/red in the low levels) while it is still Cold in the higher levels (BLUE OR GREEN, nothing higher than green as it is already slightly too high). There will be many times that it is Yellow or possibly Orange in the high levels and the bullish push still happens, but this is much more risky! The key to trading is to minimize risks while maximizing potential.
Hopefully now you’re getting an idea of how to spot potential bullish momentum changes, but what about bearish momentum changes? Technically they are the exact opposite, so we don’t need to go into as much detail, but lets still take a look at a few examples:
In the example above we marked the 3 times where it was displaying overly bullish characteristics. We marked the bullish momentum occurring with arrows. If you look closely at the start of the arrow to where it finishes, you’ll notice how the heat (HOT)(RED) works its way up from the lower levels to the higher levels. We then see the MFI to SMA cross under. In all 3 of these examples the heat made it all the way to the top of the chart. These are all very bearish signals that represent a bearish momentum movement that may occur soon.
Also, please note, the level the MFI is at DOES matter! That line isn’t there simply for you to see when there are crosses over and under. The MFI is considered to be Overbought when it is greater than 70 (the upper white dashed line, it is just formatted to be on a different scale cause there are 28 plots, but it represents 70). The MFI is considered to be Oversold when it is less than 30 (the lower white dashed line).
If we look to the left a little here where a big drop in price occurred shortly after our MFI and SMA crossed, would we have been able to identify it using the Heat Maps? Likely, No. There was some color change in the lower levels a few bars prior that went yellow/orange/red but before this cross happened they all went back to Dark Blue. In the middle section when the cross happened it was only Green and Yellow and in the upper section we are Blue. This would be a very risky trade to go on as the only real Bearish Indication was the MFI to SMA cross under. Remember, you want to reduce risk, you don’t want to simply trade on everytime the MFI and SMA cross each other or you’ll be getting yourself into many risky trades based on false signals.
Based on what you’ve learned above, can you see the signs that are indicating where this white circle may have potential for a bullish momentum change?
Now that we are more zoomed in, you may also be noticing there are colors to the price bars. This can be disabled in the settings, but just so you know what they mean, let’s zoom in a little more and talk about it.
We’ve condensed the Indicator a bit so you can see the bars better here. The colors that are displayed on these bars are the Heat Map value for your MFI (the white line in the Indicator). This way you can better see when the Price is Hot and Cold. As you may see while looking, the colors generally go from cold to hot when bullish momentum is happening and hot to cold when bearish momentum is happening. We don’t recommend solely looking at the bars as indicators to MFI momentum change, as seeing the Heat Map will give you much more data; however it can be nice to see the Heat Map projected on the bars rather than trying to eyeball it yourself or hover over each bar specifically to see their levels.
We will conclude our Tutorial here. Hopefully this has given you some insight to how useful Heat Maps can be and why it works well with a Machine Learning (KNN) Model applied to the MFI.
PLEASE NOTE: You can adjust the line width for the Heat Map within the settings. If you condense the Indicator a lot or have a small screen, likely use a length of 1-2. If you have it stretched out or a large screen, a length of 2-3 will work nice. You just don’t want to have the lines overlapping or it defeats the purpose of a Heat Map. Also, the bigger the linewidth, generally you’ll want to increase the Transparency within the Settings also as it can get quite bright and hurt your eyes over time.
Settings:
MFI:
Show MFI and SMA Crossing Signals: MFI and SMA Crossing is one of the leading Bullish and Bearish Signals in this Indicator. You can also add alerts for these signals.
Plot Amount: How many plots are used in this Heat Map. (2 - 28).
Source: The Source to use in all MFI calculations.
Smooth Initial MFI Length: How much to smooth the Fast and Slow MFI calculation by. 1 = No smoothing.
MFI SMA Length: What length we smooth the MFI Average over to get our MFI SMA.
Machine Learning:
Average MFI data by adding a lookback to the Source: While populating our Heat Map with the MFI's, should use use the Source each MFI Length increase or should we also lookback a Source each MFI Length Increase.
KNN Distance Requirement: To be a valid KNN, it needs to abide by a Distance calculation. Generally only Max is used, but you can change it if it suits your trading style better.
Machine Learning Length: How much ML data should we store? The longer the length generally the smoother the result; which may not be as accurate for something like a Heat Map, so keeping this relatively low may lead to more accurate results.
KNN Length: How many KNN are used in the slice to calculate max/min distance allowed.
Fast Length: Fast MFI length used in KNN to calculate distances by comparing its distance with the Slow MFI Length.
Slow Length: Slow MFI length used in KNN to calculate distances by comparing its distance with the Fast MFI Length.
Smoothing Length: When populating our Heat Map, at what length do we start our MFI calculations with (A Higher value with result in a slower and more smoothed MFI / Heat Map).
Colors:
Change Bar Color: Change bar colors to MFI Avg Color.
Heat Map Transparency: If there isn't any transparency it can be a little hard on the eyes. The Greater the Line Width, generally the more transparency you'll want for your eyes.
Line Width: Set how wide the Heat Map lines are
MFI 90-100 Color: Color when the MFI is between these levels.
MFI 80-89 Color: Color when the MFI is between these levels.
MFI 70-79 Color: Color when the MFI is between these levels.
MFI 60-69 Color: Color when the MFI is between these levels.
MFI 50-59 Color: Color when the MFI is between these levels.
MFI 40-49 Color: Color when the MFI is between these levels.
MFI 30-39 Color: Color when the MFI is between these levels.
MFI 20-29 Color: Color when the MFI is between these levels.
MFI 10-19 Color: Color when the MFI is between these levels.
MFI 0-100 Color: Color when the MFI is between these levels.
If you have any questions, comments, ideas or concerns please don't hesitate to contact us.
HAPPY TRADING!
Unusual Market Volume DetectorIntroduction
Price usually moves in lockstep with the volume trends i.e. price goes higher when there is buying and it goes down when there is selling in the market. But sometimes, the market behaves unusually i.e. Price and volume move in opposite directions. This indicator identifies precisely this divergent behavior in the market!
This script analyses the volume trends by utilizing changes in On Balance Volume (OBV) for the instrument and compares it with the price trend to color the lower panel on your chart window. The color changes as the direction of the OBV trend changes from Up to Down or vice versa. If there is a divergence between the price trend and volume trend, the color will switch to Purple.
Divergence in volume and price trends typically indicate a battle between supply and demand. This may coincide with a change in market direction as well. It is important to know which side won after this battle, as the market will follow that side.
This tool will alert traders of unusual market volume behavior and when both price & volume trends are in sync.
Features
A Purple color in the lower panel indicates that the Volume and Price trends are diverging and are moving in the opposite direction
A Green color in the lower panel indicates that the Volume is trending higher supporting bullish price action
A Red color in the lower panel indicates that the Volume is trending lower supporting bearish price action
How to use the Indicator while Trading?
When the Volume trend matches the price action ( Trend ), you have confirmation of your trade bias. Therefore when you are taking Long trades, you would want to see a Green color in the lower panel and a Red color when you are going Short.
When a Divergence is identified by the tool, as Purple color in the lower panel, Trader can take the following steps:
Take profit or partially close the position if you are in a Trade as this divergence presents
uncertainty
Watch for which color comes up after divergence, that side of the market has a higher
probability of prevailing. For example, a Red color indicates Selling in the market and vice
versa.
Divergence usually precedes a market direction change and therefore Trader can take this
into account when planning Trade bias and position size. Please note a divergence does
not always precede a reversal in the market and can be a temporary phenomenon with no
effect on the price action.
Basic Set-Up
Add the Indicator to the chart
You can change the default colors for Buying Volume, Selling Volume, and Divergence
Use the “Regular Trading Hours” Session in the Chart Settings for the most effective analysis
Please note : On-Balance Volume is a leading indicator but it doesn't provide specific information on exactly what happened or why. Also, a large spike in a single day may throw off the On Balance Volume for a while. Therefore we are focusing on its trend and comparing it with Price Trends for better effectiveness.
ZWAP (ZigZag Anchored VWAP) [Kioseff Trading]Hello!
Quick script showcasing the new polyline function for Pine Script!
Features
Up to 100 high/low pivot points auto anchored VWAP
Visible range auto anchored VWAP
Curved ZigZag (Adjustable!)
With the new polyline function, auto-anchored VWAP at specific price points is more viable.
When using line.new() only 500 lines can exist on the chart concurrently and, since VWAP is calculated on every update, a "proper" VWAP drawn using line.new() can extend 500 bars at most, to which no additional VWAP lines can be drawn after.
Of course, when using the plot() function a VWAP line will draw on every bar; however, this method isn't highly compatible with auto-anchoring VWAP lines.
However!
A polyline, from beginning to end irrespective of the number of coordinates used, constitutes 1 polyline; 100 can exist simultaneously with 10,000 xy coordinates per line.
The image above shows an attempt to draw the same auto-anchored VWAP lines using the line.new() function. Not an ideal outcome!
The image above shows the same attempt using the polyline.new() function!
Very nice (:
The image above shows the indicator auto anchoring to zig zag turning points.
Subsequent to a new anchoring, VWAP is calculated for the following bars - up to the current bar.
Thank you for checking this out; if you have any ideas to spice it up feel free to comment!
Volumetric Toolkit [LuxAlgo]The Volumetric Toolkit is a complete and comprehensive set of tools that display price action-related analysis methods from volume data.
A total of 4 features are included within the toolkit. Symbols that do not include volume data will not be supported by the script.
🔶 USAGE
The volumetric toolkit puts a heavy focus on price action, returning support/resistance levels, ranges, volume divergences...etc.
The main premise between each feature is that volume has a direct relationship with market participants level of interest over a specific symbol, and that this interest is not constant over time.
Each individual feature is detailed below.
🔹 Ranges Of Interest
The Ranges Of Interest construct a range from a surge of high liquidity in the market. This range is constructed from the price high and price low of the candle with the associated significant liquidity.
The returned extremities can be used as support and resistance, with breakouts often being accompanied by significant liquidity as well, suggesting potential trend continuations.
The length setting associated with this feature determines how sensitive the range detection algorithm is to volume, with higher values requiring more significant volume in order to display a new range.
🔹 Impulses
Impulses highlight times when volume makes a new higher high while the price makes a new higher high or lower low, suggesting increased market participation.
When this occurs when the price makes a new higher high the impulse is considered bullish (green), if the price makes a new lower low the impulse is bearish (red).
Impulses occurring within an established trend opposite to it (e.g a bearish impulse on an uptrend) might be indicative of reversals.
The length setting works similarly to the previously described ranges of interest, with higher values requiring longer-term volume higher high and price higher high/lower low, highlighting more significant impulse and potentially longer-term reversals.
🔹 Levels Of Interest
Levels of interest display price levels of significant trading activity, contrary to the range of interest only the closing price is taken into account, also volume peaks are used to detect significant trading activity.
Note that this feature is subject to backpainting, that is lines are set retrospectively.
Users can determine the amount of most recent levels to display on the chart. These can be used as classical support/resistances.
🔹 Volume Divergence
We define volume divergence as a decreased market participation while a trend is still developing.
More precisely volume divergences are highlighted if volume makes a lower high while price is making a new higher high/lower low.
This can be indicative of a lack of further participation in the current trend, indicating a potential reversal.
Using higher length values will return longer-term divergences.
Note that this feature is subject to backpainting, that is lines are set retrospectively.
🔶 SETTINGS
🔹 Ranges Of Interest
Show Ranges Of Interest: Display Ranges Of Interest.
Length: Ranges Of Interest sensitivity to volume.
🔹 Impulses
Show Impulses: Display Ranges Of Interest.
Length: Impulses sensitivity to volume.
🔹 Levels Of Interest
Show: Determine if Levels Of Interest are displayed, and how many from the most recent.
Length: Level detection sensitivity to volume.
🔹 Volume Divergences
Show Divergences: Determine if Volume Divergences are displayed.
Length: Period for the detection of price tops/bottoms and volume peaks.
Intraday Intensity Index [SyntaxGeek]Intraday Intensity Index
This is a volume-based technical indicator that integrates volume with a security’s price. Use this to follow how intraday highs and lows are moving with volume.
The Intraday Intensity Index was developed by Dave Bostian.
It is one of several indicators that can be used to follow how volume is influencing a security’s price. It provides a continuous volume-focused indicator by using a security’s most recent close, high and low in its calculation while also factoring in volume.
I've searched high and low for the correct implementation of this measure and I can only find it buried within old books or in PineScript's own ta.iii, but no one has provided it as a histogram indicator correctly.
The main difference I can find is that most are not restricting volumes influence to the denominator solely, which is how Dave designed it.
For illustration the correct implementation is:
(2 * close - high - low) / ((high - low) * volume)
Such a simple change but compare to many other indicators that claim to implement the measure and it's easy to see the difference.
I also provided a high/low mode that aims to ease comparison to Bollinger Bands which is something that John Bollinger references when utilizing III.
Setting III to 20 trend and high/low mode can present similar areas of extreme breaks to the high or low and may be great entries for trades but you must complete your own analysis.
Crypto Spot/Futures Dominance Indicator with AlertsFutures/Spot Dominance Indicator:
Overview:
The futures/spot dominance indicator is a versatile tool used by traders and analysts to assess the relative strength or dominance of the futures market in relation to the spot (or cash) market for a specific asset. It offers insights into market sentiment, potential arbitrage opportunities, and risk management while incorporating the VWAP indicator for added context.
How It Works:
This indicator automatically detects and adapts to the futures symbol applied to the chart, simplifying the setup for traders. However, it still necessitates manual input of the corresponding spot pair to ensure accuracy.
Automatic Futures Symbol Detection: The indicator starts by automatically detecting the futures symbol on the trading chart, eliminating the need for manual configuration. This ensures that the indicator is applied to the correct futures contract.
Manual Spot Pair Entry: To provide a reliable reference point for the comparison, traders must manually input the corresponding spot symbol via the indicator's inputs. For instance, if the indicator detects the BTCUSDT.P futures symbol, traders would manually enter the BTCUSDT spot symbol.
Gathering Data: The indicator collects historical price data for both the detected futures contract and the manually specified spot symbol. This data includes open, high, low, and close prices, as well as trading volume.
VWAP Calculation: To gain a deeper understanding of price trends and market dynamics, the indicator calculates the VWAP (Volume Weighted Average Price) for both the futures and spot markets. The VWAP places more weight on prices with higher trading volume, offering a weighted average that reflects market consensus.
Premium/Discount Calculation: By subtracting the VWAP of the spot market from the VWAP of the futures market, the indicator quantifies the premium or discount of the futures price concerning the spot price. A positive value indicates a premium, while a negative value suggests a discount.
Plotting: The premium/discount value is displayed as a line on the chart, often alongside moving averages or other smoothing techniques for improved trend analysis.
Alerts: In addition to its analysis capabilities, this indicator now includes alerts to enhance your trading experience. It alerts you in the following scenarios:
Premium Above Average: Notifies you when the premium crosses above the average line.
Premium Below Average: Alerts you when the premium crosses below the average line.
Premium Above Zero: Provides an alert when the premium crosses above the zero line.
Premium Below Zero: Generates an alert when the premium crosses below the zero line.
Benefits of the Futures/Spot Dominance Indicator:
Sentiment Analysis: Traders use the indicator to assess market sentiment. A futures premium might signify bullish sentiment, while a discount could indicate bearish sentiment.
Arbitrage Opportunities: Identifying price discrepancies between futures and spot markets can help traders spot arbitrage opportunities, where they can profit from price differentials.
Risk Management: The indicator assists in evaluating risks associated with futures positions, helping traders manage their exposure effectively.
Trend Confirmation: When used in conjunction with other technical indicators, futures/spot dominance, along with VWAP, can provide additional confirmation of price trends.
Hedging: Investors and corporations use this tool to gauge the effectiveness of hedging strategies based on futures contracts.
Speculative Trading: Traders and investors use the indicator to inform speculative positions, aligning their trades with perceived market strength or weakness.
Insightful Analysis: Futures/spot dominance analysis, enriched by VWAP data, offers insights into market behavior during specific events or changes in economic conditions.
In summary, the futures/spot dominance indicator, with its integration of VWAP and automatic futures symbol detection, provides traders and investors with a comprehensive tool to assess market dynamics. It aids in sentiment analysis, risk management, and trend confirmation while offering potential arbitrage opportunities. The newly added alerts enhance the indicator's functionality, providing timely notifications of key market events. However, it relies on manual input of the corresponding spot pair to ensure precise comparisons between futures and spot markets. It should be used alongside other analysis techniques for a well-rounded view of the market.
Predictive Volume + MTF [Pro]"Predictive Volume + MTF " is a predictor of near-future volume available on 13 of your favorite time frames. The script calculates the volume's % change (PredVol) between Current Volume vs. Previous Volume by predicting whether PredVol will be higher or lower at the end of the current bar using an "elapsed time" vs "volume so far" concept. This gives the benefit of the most up-to-date information without artificial low/high comparisons when a bar has just formed. For example, it would be common to see -100% in a lot of instances when a new bar is just forming which would be normal because volume at the start of a new candle will generally be lower than where it was when the last bar closed. Where this indicator shines is during this old to new bar formation relative to the volume that's carried over to the new bar. As a result, it will now be common to see PredVol values starting much higher because the calculation is dividing up the bar and analyzing fractions of it instead of the entire bar that would otherwise lead to these incorrect volume % change calculations.
Examples of Predictive Volume % Change:
In addition, this indicator uses many other advanced and robust features:
⚡ Matrices that create the table, allowing you to add and remove rows and columns to customize the table to show only the information that's important to you
⚡ View up to 13 time frames at once - it's generally a good idea to have at least 5 time frames up to get an overall feeling of the direction/sentiment of volume with the 1d being 1 of the 5
⏩ Includes the following popular time frames: 1m, 3m, 5m, 10m, 15m, 30m, 1h, 2h, 4h, 8h, 1d, week, month
⚡ 3 "bias mode" choices that use Relative Volume (RVOL) from calculations between Current, Previous & Average Volume that provide a heat map with varying degrees of color representing buying & selling momentum of your favorite asset. Traders generally have an innate bias when it comes to their trading methodology. The script's
author created separate modes to account for this. One way to utilize the indicator is to use 2 on your chart, 1 Bullish and 1 Bearish, to see if volume sentiment is skewed towards your particular bias
⏩ 🟢 Standard Mode 🔴 - displays green and red to depict volume momentum using same RVOL calculations as Bullish & Bearish modes
⏩ 🐂 Bullish Mode 🐂 - displays 5 colors to represent the levels of intensity of the Buy/Sell/RVOL data (light blue, green, yellow, light orange, dark orange)
⏩ 🐻 Bearish Mode 🐻 - displays 5 colors to represent the levels of intensity of the Buy/Sell/RVOL data (light red to dark red)
Ex. of all 3 bias modes showing very bullish volume sentiment:
Ex. of all 3 bias modes showing very bearish volume sentiment:
⚡ 2 types of alerts: PREDEFINED and CUSTOM
💡 PREDEFINED ALERTS consist of 4 Bullish & Bearish levels with Lvl 1 designed to be less sensitive than Lvl 2 etc
⏩ Configurable for every time frame, "On Close" or "Each Bar". On Close could be a better choice on lower time frames so that you're not getting a bunch of triggers over a short duration & Each Bar could be a better option for higher time frames so that you don't miss a move mid bar for instance
⏩ Creating a PREDEFINED BULLISH/BEARISH ALERT saves a snapshot of the alert's settings. You can then change the settings and create another alert
⏩ For example, you could create one alert for any alert type (bull and/or bear), for every time frame all at once, or you can create multiple & separate alerts, giving each one a unique name with the time frame that it's for: ex. BTC - Bullish Vol Lvl1 (1m) (keep in mind that TV provides you the ticker, time frame & alert
type automatically (the script's author hard-coded the label names within the script and as a result when they do fire you're provided the type of alert, such as "Bearish Vol (Lvl 1). Technically, you don't even need to name the alert again)
In this example, you're provided information on how to create PREDEFINED ALERTS, what conditions cause the alerts to trigger and how they'll look when they do fire
💡 CUSTOM ALERTS consists of 6 metrics giving you the ability to create your own custom compound alerts
⏩ Configurable for every time frame, "On Close" or "Each Bar". On Close could be a better choice on lower time frames so that you're not getting a bunch of triggers over a short duration & Each Bar could be a better option for higher time frames so that you don't miss a move mid bar for instance
⏩ Creating a CUSTOM ALERT works the same way as PREDEFINED ALERTS (see chart below)
⏩ Check your conditions in real-time for accuracy via a debug feature aka "SHOW HELP FOR TIME FRAME"
In this example, you're provided information on how to create CUSTOM ALERTS
⚡ Header function that provides the ticker, time frame and session that you're on (can use in lieu of TV's watermark feature, or use together)
⏩ There's 2 customizable header inputs - you could include your TradingView username in one of them for the times when promoting your charts across your favorite social media sites
⚡ Timer that shows you when a bar will begin/end plus other features that allow you to change the size and positioning of the table within your charts
⚡ An input that allows you to change the "significant figures" for rounding purposes - can be especially useful when volume is low or when you're trading OTC stocks
⚡ 4 volume moving average lengths - Intraday, Daily, Weekly, Monthly - for those times when 1 moving average to cover the entire gamut of just won't suffice
////////////////////////////////
There's quite a bit more information provided in the attached charts as well as the tooltips within the inputs section of the indicator. Should you have any questions, feedback etc, please do not hesitate to contact the script's author. My hope is that this indicator becomes an invaluable resource to you and you're able to integrate it in to your everyday trading tool bag to make more informed decisions.
Price Volume DivergencePrice Volume Divergence (PVD) is designed to add extra confluence to volume analysis and mark potential reversals in the prevailing trend.
The script uses a simple correlation of price and volume over the predefined time horizon in "PVD Length".
If the correlation is positive (>0) the plotted line gets coloured blue.
If the correlation is negative (<0) the plotted line get coloured in red.
PVD should not be used on its own but in conjunction with other indicators!
YD_Volume_Alert"YD_Volume_Alert" is a simple alert based on the increasing volume.
Although it is a simple indicator, strategies to determine accumulation and distribution can be developed using this indicator, which will also be published as well.
📌 Usage, Details and Alert
Using this indicator is simple.
You can enter two scales, "Increased Percentage 1 (%)" and "Increased Percentage 2 (%)", with default values set to 200% and 500%.
Signals are displayed in green and red triangles at the bottom of the bar, also printed with the text "Increased Volume" and "Hugely increased Volume".
Alerts are provided as a combination of the chart's symbol and the set percentage. For example,
"BINANCE:BTCUSDT.P 's Volume : 200% increased."
===========================================================
"YD_Volume_Alert" 는 거래량 증가에 따른 얼러트를 제공하는 간단한 지표입니다.
간단한 지표이지만 위 지표를 이용하여 매집과 매도의 타이밍으로 이용하는 전략 또한 개발할 수 있으며, 이 역시도 퍼블리시 할 예정입니다.
📌 사용 예시와 알림 설정
지표를 사용하는 방법은 간단합니다.
"Increased Percentage 1 (%)" 과 "Increased Percentage 2 (%)" 두 가지의 배율을 입력할 수 있으며, 기본값은 200%와 500%로 설정되어 있습니다.
시그널은 바 하단에 초록색, 빨간색 삼각형으로 각각 표시되며, "Increased Volume"과 "Hugely increased Volume"이라는 텍스트가 함께 출력됩니다.
얼러트는 자신이 설정한 차트의 심볼과 설정한 퍼센티지의 조합으로 제공되며 예를 들면 다음과 같습니다.
"BINANCE:BTCUSDT.P 's Volume : 200% increased."
Price Volume Trend Crosses This script is a modified version of the Price Volume Trend ( PVT ) that uses a moving average of the PVT as a signal ( sig ) line.
The length of the signal line can be adjusted as needed by changing the "PVTC Signal Length" value inside the indicator settings menu.
"PVTC Signal Type" allows you to pick between EMA and SMA as the signal line.
Logic behind this script:
If PVT > sig it indicates an bullish environment and gets coloured with the UP color.
If PVT < sig it indicates a bearish environment and get coloured with the DOWN color.
Colors can be modified in the indicator settings menu.
Crosses can be highlighted by ticking the "Highlight Crosses" box in the indicator settings menu.
"Fill Gaps" fills the gap between PVT and sig with the prevailing trends color.
PVTC should not be used on its own but in conjunction with other indicators!
Anchored Moving Average By Market Mindset - Zero To EndlessAnchored Moving Average?
An anchored moving average (AMA) is created when you select a point on the chart and start calculating the moving average from there. Thus the moving average’s denominator is not fixed but cumulative and dynamic.
In this indicator, I've provided three different types of Anchored Moving Averages, viz., WMA, SMA and VWAP.
WMA is relevant if big moves are there.
SMA is relevant if volume data is not to be considered or if it is not available.
VWAP is the standard anchored MA, which is most commontly used. Is consider the volume data along with the price move.
In this indicator, Auto anchor is time based anchor. A trader can opt for Pivot Type Anchor or Volume Type Anchor or some higher resolution based anchor too. The length of the pivot lookback can also be changed by the user.
It can be used for intraday, swing trading and even for technical based investment purpose.
VWAP with CharacterizationThis indicator is a visual representation of the VWAP (Volume Weighted Average Price), it calculates the weighted average price based on trading volume. Essentially, it provides a measure of the average price at which an asset has traded during a given period, but with a particular focus on trading volume. In our case, the indicator calculates the VWAP for the current trading symbol, using a predefined simple moving average (SMA) with a period of 14. This volume-weighted moving average offers a clearer view of the behavior of the VWAP and, of consequence of market dynamics.
One of the distinctive features of this indicator is its ability to provide a more "linear" representation of the data. This means that the data is "smoothed" to remove noise, allowing you to more easily identify the direction of the market trend. This smoother representation is especially useful because the financial market can be subject to significant fluctuations and volatility, and this indicator can help get a more stable view of the trend.
The indicator also offers a visualization of the market trend in a very intuitive way. Using an evaluation of the highs and lows of the last 10 days, determine whether the market is in an uptrend, downtrend, or no trend at all. To make this evaluation even clearer and more immediate, the indicator line is colored dynamically. When the trend is bullish, the line is blue, while in case of a bearish trend, it takes on a distinctive color, such as pink. If the trend is not defined, the line will be colored differently, for example light yellow. This coloration gives traders an immediate visual indication of the prevailing trend, allowing them to make more informed decisions regarding trading operations.
One potential strategy involves watching candles when they cross the VWAP line strongly. If, for example, a candlestick breaks above the VWAP line, we may look for retest areas near key support levels to gauge a potential long entry. In other words, we would consider that the price may have the potential to rise further after breaking above the VWAP line, and we would look to enter a long position to take advantage of this opportunity.
On the other hand, if a candlestick crosses below the VWAP line, we might consider looking for retest areas near the VWAP line itself, which now serves as potential resistance. This could indicate a possible short entry opportunity, as the price may struggle to break above the resistance represented by the VWAP line after breaking it down. In this case, we would look to take advantage of the expected continuation of the downtrend.
In both cases, the idea is to exploit significant movements across the VWAP line as signals of potential reversal or continuation of the trend. This strategy can help identify key entry points based on price behavior relative to the VWAP line.
YinYang MomentumOverview:
YinYang Momentum is a Price, Volume and Momentum Oscillator. Its job is to help you see swings in momentum and the strength of it. It also creates signals (Blood Diamond (Bear) and Support Cross (Bull)) where these momentum swings may occur. YinYang Momentum features 3 Price and 3 Volume 'Mountains with Ice'. There are Predictive, Regular and Confirming Mountains. You have the ability to overlay them on top of each other which helps to decipher momentum swings. The Volume Mountains are very important for showing the strength behind the Price Mountains and their Signals. If you look, you'll notice, as the 'Ice' starts to curve into the 'Mountains' it signals a potential shift in Momentum. The green Mountain is the Predictive, the Blue is the Regular and the Purple is the Confirming. You'll also notice that the Predictive Mountains movements happen first and move much more drastically. When you notice the regular starts to follow suit, there is a potential for a momentum shift. Shortly after, a signal will occur if this shift is actually happening. You can also check the Confirming Mountain for more confirmation (however, leaving the Confirming Mountain active can be a little confusing and make it harder to read signals). YinYang Momentum also features Information Tables. These tables display how the Blood Diamonds and Support Cross' are fairing on different Timeframes. This way, you'll be able to see if it's in a Bullish or Bearish state on critical Time Frames no matter what Timeframe you're trading on.
Before we move onto the tutorial, let's discuss what each of these Mountains and Ice are and how they work. All of our Mountains and Ice are calculated using the same algorithm but with varying sources, lengths and multipliers. We are essentially calculating differences in movement and then sending those differences into an EMA for the Mountain Base and SMA for the mountain Ice. The values we use for the Predictive are much lower and therefore occur much quicker as they aren’t averaged out on longer lengths/time frames; this helps to make it more of a leading Indicator which may predict momentum changes. Our Regular is over a medium length and multipliers that result in a smooth but generally also gradual movement that helps reliability; this helps it act as more of an ‘in the now’ Indication of momentum changes. Our Confirming uses lengths and multipliers that are of a higher value and longer span; this makes it more difficult to use for determining entry / exit locations as it's more of a lagging indicator, but it helps to add confirmation as to whether the momentum change has occurred and wasn't a false signal.
Tutorial:
YinYang Momentum may look like a lot is going on.. And well that’s cause there is.. But that doesn’t mean it's confusing or hard to read once you know what you’re looking for!
To make this tutorial a little easier to understand, let's turn off a few settings and dissect this indicator one thing at a time. YinYang Momentum features Price and Volume mountains. Currently in the photo above we have 2 Price Mountains and 1 Volume Mountain turned on (this is how it's set by default and how we recommend using it), however there are 3 Mountains available for both Price and Volume:
Predictive
Regular
Confirming
We are going to deactivate everything so it's the Regular Price Mountain + Ice enabled.
Now that it is just the Regular Price Mountain and Ice it is much easier to teach and understand. As you can see there are two different colors on the mountain. The dark blue is the Mountain and the light blue is the Ice.
The Ice moves before the mountain does and when the momentum happens it is larger than it (below or above). When the momentum starts to change however, the Ice curves inside of the mountain. As you can see here, where the BUY signal (red cross) is, the Ice curves into the mountain; also where the SELL signal (red circle) is, the Ice curves into the mountain. The Ice curving into the mountain is a very important leading indication that momentum is changing and the Signals (crosses and diamonds) help solidify this momentum change.
The Index levels for YinYang Momentum is a little different than most oscillators that range from 0-100. Instead YinYang Momentum’s neutral level is 0 and it ranges from -100 to 100. For these reasons, the Viable Range for Buying is -40 to -70 and the Optimal Range for Buying is -70 to -100. For Selling, the Viable Range is 40 to 70 and the Optimal Range is 70 to 100.
If you look at the example above, you can see whenever it has been in the optimal range and the signal occurred, it may potentially be an amazing time to buy or sell. However, when it is within the Viable Range it can be hit or miss. The reason for this is because we are only looking at the Regular Price Mountain and Ice. Once we turn on the Predictive Price and Regular Volume we will have a much clearer idea as to what is noise and what is a true purchase signal. Why don’t we turn on Predictive Price Mountains and Ice so you can see what we’re talking about:
So there are 2 big things that changed when we added the predictive price mountains + ice.
We can see that where the orange circle is, is just noise, it isn’t a viable buy signal.
We can see that where the red circle is, is actually a better spot to sell than the previous marked white circle slightly to the right of it.
We will explain why both above are true, but first let's explain how we were able to deduce this information.
There are 5 rules when deciphering if the signal is a true signal or just noise.
You want the predictive mountain to be decently spaced out from the regular mountain. Refer to the example above how that should look. Remember it's predictive so with parabolic movements it will get quite spaced out. If the price went up but slowly, it generally won’t be as spaced and isn’t as strong of a signal predictor.
You want the Ice to be of a decent size and to curve in on both the Predictive and Regular Mountains. Both arrows (red and white circle arrows) are pointing to Ice that does just that. The Predictive mountain is of decent size and spaced out and the Ice curves in sharply on the Predictive, before curving in sharply on the Regular and then we get both Predictive and Regular Support Cross on the Same Bar.
When you get the Signals (Predictive and Regular) the amount of bars between them matters a lot! On the same Bar is ideal, however 1-2, max 3 bars between them is acceptable. Any more than 3 bars spacing and it's too risky of a signal because that means momentum change was happening but then stopped before picking back up. This doesn’t mean it can’t be a good signal, it just means it is much more risky and we don’t recommend it.
You don’t want Signal Clustering. You can see an example of this from the picture above. Signal Clustering is where signals are back to back over and over. During this time the momentum is in a consolidation phase and easily swaps back and forth between signals. These signals are not reliable and should not be traded on. We only want to act on clear momentum based signals.
Last but certainly not least, actually, the most important! Ensure that the Mountain + Ice for both the Predictive and Regular is at the bare minimum touching (preferably inside) the Viable Range. The Optimal range is best, but most mountains don’t make it that far. Viable Range is where you will make most of your trades from. Sometimes a great signal happens with all 5 of these rules but it is only touching the Viable Range right at 40 or -40. This CAN be okay, but is also much more risky than if it was at 50 to 60 or -50 to -60.
Based on the 5 rules mentioned, take a second and look back at the photo where we initially added the Predictive Price mountains and Ice, can you decipher why the orange circle is just noise, and can you see why the red circle is a better sell location than the white circle slightly to the right of it?
Let’s bring that photo back up now and let’s discuss this:
Let's start with the orange circle:
This orange circle, without the predictive, was hard to tell if it was a good location to buy or not, but the second we turned it on we could clearly see it was just noise.
The spacing between the Predictive mountains and the Regular is almost non-existent.
There was signal clustering shortly before this signal.
Remember, there doesn’t have to be many rules broken for a signal to be either too risky or not valid at all. The safest trades are ones where it meets the requirements of all 5 rules (6 once we talk about volume, but 5 price rules).
Now, let's discuss the red circle:
This red circle, although it could have been chosen with just the regular, was much more noticeable with the predictive added on top.
It has a perfect spacing between the Predictive and the Regular all the way to the peak.
The Ice is large and both curve in very nicely towards the mountains.
The signals are within 2 bars apart from each other.
There is no signal clustering.
The Predictive is within the Viable Range and the Regular is just touching it.
For these reasons, the red circle actually would have been where you sold and not the white circle beside it.
This pretty much covers the Price Mountains, but wait! The most important Cherry on Top to your decision making process is coming next!
We have just enabled our Regular Volume Mountains and Ice (which are the black mountains + ice). As you can see, we have circled what we call the ‘Perfect Combo’. This Perfect combo is when you have all 5 Price rules met COMBINED with a high volume mountain. The Volume Mountain and Ice act as strength. They aren’t biased towards bulls or bears, they simply show strength to whatever signal is present with it.
For example, if all 5 rules are met with Price on a Blood Diamond (Bear) Signal and there is a High Volume Mountain then this is also a ‘Perfect Combo’. That Blood Diamond signal will potentially have great strength behind it. The Viable and Optimal Ranges don’t apply to volume mountains. Any volume mountain, even close to the Viable Range, is considered to be a very high mountain. High volume is when the mountain is above 0 and low volume is when it's below 0. Any signal with low volume has less of a chance of being correct, regardless of whether it abides by all 5 price rules.
You can see here that the 5 Price rules are achieved but the volume mountain is low. It is at -25. Since the 5 Price rules are right, there is still a decent amount of accuracy to this signal and the price did plummet after, but not nearly as much as it would have if the volume mountain was high with it.
We have turned our Confirming Price Mountain on here so you can get an idea of what it looks like and how it’s used. If you refer to the Support Crosses and Blood Diamonds circled in white, you’ll see that although they both received their signals on the Predictive and Regular, neither of them received it on the Confirming. This shows that these signals lost momentum shortly after. However if you look at both the red and green circles, you’ll see that they both received their confirming signals and that it helped give those signals momentum. The Confirming Price Mountain is meant to help confirm if the momentum change is still on track and the max 3 bars from the regular signal rule still applies to it. However its height within the viable and optimal range is important, just not as relevant
Before we move on to our Information Tables we want to take a second just to discuss our Volume Mountains and Ice. We haven’t had a chance yet to discuss the Predictive or Confirming Volume. When it comes to our Volume Mountains + Ice, we don’t recommend having more than 1 on at a time. The reason we have included the Predictive and Confirming is in case you find they suit your Trading Style best, not necessarily to be used the same way the Price Mountains and Ice are. The main reason for this is due to the fact that the Volume Mountains are much smaller and when overlaid on top of each other can make a confusing blur that is hard to decipher.
In this example above we have enabled both Predictive and Regular Volume just so you can understand what we are talking about. The two together can be rather confusing and actually interfere with your decision making process. For this reason, we highly recommend finding the Volume Mountain that suits your trading style best and solely sticking to that.
Our Predictive Volume Mountains and Ice may help sense volume changes before they’ve even happened. This can be very useful if your Trading Style revolves around heavy volume changes.
Our Confirming Volume Mountains and Ice are much slower and smaller, but they help show the movement of volume that has occurred already. This can be used to help see the movement of volume without fearing it may or may not happen.
Our Information Tables are there to show you valuable information on whether it is in a state of Support Cross or Blood Diamond on 6 different Time Frames at the same time. The % it shows you displays how much of a price change has occurred since that signal has happened. It is important to note, if for instance you see it is in a state of Support Cross but the % is negative, this generally means it is going to switch to Blood Diamond soon and vice versa. Therefore if you are in a trade, especially on a lower Time Frame and you are watching the 1 Day or a higher Time Frame and notice that the % is getting less and less, it may be a good time to get out.
We will conclude our Tutorial here. If you have any Questions, Concerns, Suggestions or Comments please don’t hesitate to contact us.
Settings:
1. Show Predictive to Confirmed Trendline:
The Predictive to Confirmed Trendline is very useful for seeing when the predictive (Support Cross or Blood Diamond) has hit the confirmed (It’s a strong confirmation that the trend may be shifting). This trendline also features a Moving Average which helps give you a solid marker for when the Regular / Predictive mountains cross under or over it that a momentum swing may occur. Somewhat like when the RSI crosses above/below its Moving Average it dictates momentum change, that is likewise how to interpret when it happens with the mountains and this trendline.
2. Show Price Ice and Mountains based on:
The Price Ice and Mountains are very important when it comes to deciphering signal strength. For example, When the mountains are very low (regular and predictive) and are between the 2 red line (undervalued) or even possibly below the bottom red line, and the Ice on the mountains starts to curve into the mountains and then the Predictive and Regular Support Cross occur; this is a very strong Bullish Signal. But wait, that's not all, the cherry on top is when the volume mountain (black) is ALSO high while this occurs; the Volume Mountain adds Strength to the signal. When the volume mountain is high too during this ‘Perfect Combo’ this may potentially lead to very bullish price movement occurring soon. Here is an overview of each mountain:
2.1. Predictive: Are the least reliable, but they move first and nothing will move without the predictive moving first, and getting you ready.
2.2. Regular: Are the most accurate, they don't signify strength on its own, but they sure show some momentum.
2.3. Confirming: Are slightly behind when it comes to displaying data, and therefore shouldn't be used for entry / exit, but rather to show if the trend movement has truly been confirmed or not.
When the Ice starts to curve into the Mountain, (either upward or below) it signifies possible momentum change. There are Crosses (Bull), and Diamonds (Bear) to show when they've crossed. Cross' and Diamonds balance each other out and therefore there can never be more than 1 in a row (of the same type). When the Ice and Mountain size is very large (between 40 and 70), and the predictive Ice starts to curve into its mountain, and then the predictive curves into the Regular, and the Regular Ice is curving into its Mountain, then it may have some strong weight behind that signal. IMPORTANT: refer to Volume tooltip below for how to increase the signal strength even more.
3. Show Volume Ice and Mountains based on:
The Volume Ice and Mountains are for giving strength to the Price's signals and Size. When there is the perfect combo (described above) AND the Volume Ice + Mountain is high, then there may be a lot of strength to that Price signals (whether it is Cross (Bull), or Diamond (Bear)).
IMPORTANT: High volume mountains, unlike Price, don't mean good or bad. Volume shows strength to the Price, and therefore if there are high Volume mountains during a Diamond (Bearish), then there may be a lot of strength to that signal and vice versa.
4. Show Information Tables:
Information tables are used to display 6 different Time Frames and whether or not each time frame is in a state of Blood Diamond (red) or Support Cross (green). They also show how much % in price has changed since the current signal happened. These are very useful for seeing how the price is fairing on different Time Frames without having to constantly change your timeframe. For instance, maybe you base your entry off the 1 day time frame but then you swing trade on the 15 minute. Well, after you’ve confirmed your entry position and are sitting on the 15 minute, you can stay on the 15 minute and see how it is fairing on the 1 day, 5 minute or whatever time frame you choose. This way you aren’t distracted from the trade at hand. All of these Time Frames can be adjusted in the Settings (GUI) to whatever resolution you wish.
5. Res1 / Res2/ Res3 / Res4 / Res5 / Res6:
These represent the different resolutions (Time Frames) being used in your information tables and can be modified to display whatever resolution works best for your trading style. By default they are:
Res1: Current Timeframe
Res2: 15 Minute
Res3: 1 Hour
Res4: 4 Hour
Res5: 1 Day
Res6: 1 Week
Backup Res (not changeable): 5 Minute (this is only used if your Current Timeframe in Res1 is a duplicate of one of the other resolutions)
HAPPY TRADING!
Position Cost DistributionThe Position Cost Distribution indicator (also known as the Market Position Overview, Chip Distribution, or CYQ Algorithm) provides an estimate of how shares are distributed across different price levels. Visually, it resembles the Volume Profile indicator, though they rely on distinct computational approaches.
🟠 Principle
The Position Cost Distribution algorithm is based on the principle that a security's total shares outstanding usually remains constant, except under conditions like stock splits, reverse splits, or new share issuance. It views all trading activity as simply exchanging share positions between holders at different price points.
By analyzing daily trade volume and the prior day's distribution, the algorithm infers the resulting share distribution after each day. By tracking these inferred transpositions over time, the indicator builds up an aggregate view of the estimated share concentration at each price level. This provides insights into potential buying and selling pressure zones that could form support or resistance areas.
Together with the Volume Profile, the Position Cost Distribution gives traders multiple lenses for examining market structure from both a volume and positional standpoint. Both can help identify meaningful technical price levels.
🟠 Algorithm
The algorithm initializes by allocating all shares to the price range encompassed by the first bar displayed on the chart. Preferably, the chart window should include the stock's IPO date, allowing the model to distribute shares specifically to the IPO price.
For subsequent trading sessions, the indicator performs the following calculations:
1. The daily turnover ratio is calculated by dividing the bar's trading volume by total outstanding shares.
2. For each price level (bucket), the number of shares is reduced by the turnover amount to represent shares transferring from existing holders.
3. The bar's total volume is then added to buckets corresponding to that period's price range.
Currently, the model assumes each share has an equal probability of being exchanged, regardless of how long ago it was acquired or at what price. Potential optimizations could incorporate factors like making shares held longer face a smaller chance of transfer compared to more recently purchased shares.
────────────────────────────────────────────
中文介绍:该指标为“筹码分布”的一个 TradingView 实现 :)