POC IndicatorThis simplified Point of Control (POC) indicator for TradingView is designed to identify and plot the price level where the highest volume of trading occurred over a specified period. The script works as follows:
Input and Initialization: The user specifies a length for the analysis period. Variables highestVolPrice and highestVol are initialized to track the price with the highest volume and the highest volume encountered, respectively.
Volume Analysis Loop: For each bar in the specified period (up to length bars back from the current bar), the script compares the volume of the current bar (volume ) to highestVol. If the current bar's volume is higher, highestVol and highestVolPrice are updated to reflect the volume and closing price of the current bar.
Plotting the POC: Instead of using a horizontal line (hline), which cannot be dynamically updated within the loop, the script uses plot to draw the POC. This plotting function draws a line on the chart that represents the closing price level associated with the highest volume observed within the analysis period.
Resetting Variables: To ensure the indicator updates correctly with each new bar, the script resets highestVol and highestVolPrice at the start of the analysis for each new period. This step is designed to recalculate the POC dynamically as new data comes in.
This approach offers a basic method for visualizing significant price levels where substantial trading activity occurred, potentially indicating areas of strong support or resistance. However, it's a simplified model and does not calculate the true POC based on a detailed volume profile across all price levels within the period.
Buscar en scripts para "volume profile"
Volume Grid [SS Premium]Hey everyone!
This is the Volume Grid indicator. It is essentially very similar to the Volume Profile Histogram indicator I released, but this premium version overlays on the chart and provides you with the tradeable ranges and the volume composition in each range. So let's get into it!
What it does:
This indicator cumulates buy and sell volume over a user defined lookback period in addition to calculating the average ranges that the stock trades in and the volume composition in each respective range.
It then paints these ranges based on the volume composition. Red means selling and green means buying. However, the brighter the red or green, the higher the buying or selling (essentially a heatmap).
The indicator will also provide you alerts when there are buying or selling volume spikes and circle the candle in which that has happened on (see example in main chart).
These alerts can of course be toggled on or off.
Trading with it:
This indicator can be used as a stand alone trading indicator, and here is how:
The ranges act as support and resistance. Within each range you can see whether the composition is buying or selling.
If we are in a green zone, it means there is buying and it is essentially a buy the dip situation (see below example):
When we are in a heavy selling zone, its essentially a short the rip situation:
You can also see when a zone transfers from a bearish or bullish zone, to the inverse:
The indicator also will plot a POC (point of control). Because we are not only pulling from daily volume data, we will already have a well established POC going into open:
This was SPY on Friday. The POC marked the current point of control from a volume perspective, which was at 482.
And here is what happened:
The POC will change colours between Red and Green, if its a bearish POC it will turn Red, bullish green. For the most part, both the bearish and bullish POCs remain within the same range but sometimes they will diverge and the indicator will alert you when this happens.
Additional options:
In addition to toggling off and on the alerts, you can also change the text colour and size.
As well, there is an option to "Condense Range". What that will do is reduce the range by a factor of 2 (in half). This will give you more aggressive support and resistance levels that you can play.
Condensed Range:
Uncondensed Range:
Personally, I prefer the condensed range, especially when trading leveraged shares, because I treat them as support and resistance levels and play breaks of them in either direction.
And last but not least, you can adjust the ranges to the daily, hourly, monthly or any timeframe you want, you simply select your desired timeframe and it will plot the ranges for that specific period:
SOXL on the week:
The yellow line represents the current period open. It is your reference line and frequently will act as support and resistance, depending on the market sentiment at the time.
That is the indicator in a nut shell, as always, please let me know your questions and suggestions below!
Safe trades and enjoy!
For access, please review the instructions below.
Heat profileA trader once told me that top wicks equals sell interest and bottom wicks equals buy interest. If that's true then this indicator tries to organize and visualize this idea.
It uses transparent boxes to give the impression of a heat map. Due to limitations of my own skill and possibly pinescript it is not possible to render it in a useful manner using different colors that depicts buy and sell interests respectively. This means it works more like a volume profile in that it mixes the buy and sell interest together in the heat map. This can still be helpful because it help traders focus their attention on areas other than the current price candle.
In my limited time of using it, it seems like on the large timeframes the highlighted areas is where the price wants to go, and on small time frames the darkest areas is where the price wants to go. But i will leave it up to any user to spot and use their own patterns with the indicator.
Last but not least, the indicator only uses the last 50 candles, which can be too little on a small timeframe. Unfortunately the way i have done it this limitation is hardcoded in the script due to how pinescript works, by editing the code you can increase it. (Put max_boxes_count = x after overlay = true. Maximum number is 500)
Hope you enjoy. Have a nice day.
MONEY ZONEA volume profile is an advanced charting tool that displays the traded volume at different price levels over a specific period. It helps you visualize where the majority of trading activity has occurred.
This indicator is a Market Profiling tool used to analyse the Point of Control (POC) and Value Area (VAH/VAL) on the daily, weekly and monthly timeframes. It also optionally displays historical Value Areas to help find confluence with past data.
The Point of Control describes the price level where the most volume was traded. A Naked Point of Control (also called a Virgin Point of Control) is a previous POC that has not been traded.
The Value Area is a range of prices where the majority of trading volume took place on the prior trading day. In specific, this area is the range where 70% of the prior day’s volume happened. The value area is approximately one standard deviation above and below the average highest volume price. With this knowledge, there are specific probabilities of market behavior we can understand to digest the value area. The value area gives us an idea of where the smart money is playing ball and where the institutions are guiding the market. From this data, we can derive intra-day strategies that capitalize on market behavior.
🔹 Point of Control (PoC)
Point of Control (POC) – The price level for the time period with the highest traded volume
🔹 Value Area (VA)
Value Area (VA) – The range of price levels in which the specified percentage of all volume was traded during the time period.
Balance Zone ExtensionBalance zones are an aspect of trading that many traders notice. Balance Zones are formed when a market is in equilibrium and respects a certain high and low multiple times. These zones could also be called accumulation or distribution areas depending on the price action. If the term "choppy" is used to describe a given markets price action, it is probably a fair statement to say that the market is currently in a Balance Zone.
This script is a take on vwaptrader1's teachings where you take a balance zone and "double it" to get a target if/when it does break out of balance. It provides an automated way of extending levels based on a given balance range.
The lines plotted by the script are calculated based off of the balance high/low inputs, how many sections are desired per zone, and how many boxes to plot based on the other user inputs.
Warning: Due to a current limitation of the Pine, this script is only allowed to plot up to 500 lines total. If you start to notice lines starting to disappear or you begin getting a script error, double check the input settings as the script may have crossed the 500 line threshold.
This can be used in conjunction with Fixed Range Volume Profile . Select the balance range with the Fixed Volume Profile . Note the Value Area High and Value Area Low prices and input those into the balance range High/Low inputs.
Use to create price targets from Balance Zone Breakouts
A recent example of this idea in action on ticker ES1! 2 hour chart where the balance range was found and the target (double the box size of the balance range) was hit.
Another example of this same concept but on a normal security like AAPL but on a 30 minute chart:
Extending the usefulness even further to crypto on BTCUSD with a 5 minute chart:
Use to create reference levels for future price action
The other way to utilize this is to provide future reference levels from a key balance range from the past.
Here is another example utilizing the AMD daily chart . First, a balance zone was noted for all of 2017:
Moving forward to the most recent price action in 2023, notice that the box extension levels are still fairly well respected almost 6 years later!
Largest Candle Profile - Selection ToolLargest Candle Profile
A simple script that finds the largest candle between a user's defined area. Search for the largest candle (high-low), largest body (open-close) or largest wick between any selected area.
How To Use:
Anchor pivot A and B on the area of choice.
Indicator can be used to detect levels of interest. Coded to be used with anchored vwap, flexible volume profile or liquidity gaps.
In action:
Market Maker Volatility Diameter V2 by Hawkeye Charting***German Description below***
Hey guys,
we are proud to publish the Market Maker Volatility Diameter V2!
Our goal with this indicator is to provide an All-in-one indicator, combining some special tools of open source scripts as well as some of our own developments and the algorithm of our MMVD V1.
We will create a video series very soon, where we will explain each aspect of the tool, your options and of course our trading strategies with this indicator.
You have the following technical tools and information combined in this indicator, which can each be shown and hidden:
- Psychological Ranges (Weekly Opening High/ Low for Crypto and Forex)
- Market Maker Sessions (Sydney, Asia, London, NY)
- Trade Cloud (algorithm developed by Hawkeye Charting)
- Fibonacci Cloud (inspired by watching paid offerings, coded by Hawkeye Charting)
- Display Moving Averages (select the visualization of up to 6 moving averages. You can change for each of these 6 MA's the type and the length.)
- Display Major Trend Cloud (developed by Hawkeye Charting)
- PVSRA Candle Colors
- Vector Candle Zones
- Pivots
- Pivot Fibonacci Levels (developed by Hawkeye Charting)
- OHLC-Levels
- Average Daily, Weekly, Monthly Ranges
- Volume Profile for Intraday Trading for up to 8 days.
We hope especially for people, who can not afford the Pro offering from TradingView, to give access to a good indicator, which includes many tools and alerts.
Our goal is to lower the barriers for new entrants and of course to protect people, to pay for indicators, which are completely insane priced.
Only, that you get an idea: the whole indicator has only cost me about 100 h of work (for a single person!), and I'm no Pine script expert, so don't get fooled when someone offers you insane amounts for an indicator...
There is no holy grail. Each indicator works only with calculations on previous data.
We appreciate seeing that you guys like this work, so please leave a like and a follow and share this indicator.
*****German Description*****
Hey Leute,
wir sind stolz, unsere 2. Version des Market Maker Volatility Diameter zu veröffentlichen!
Unser Ziel ist es, mit diesem Indikator eine All-In-One Lösung anzubieten, welche einige nicht ganz geläufige Tools sowie unsere eigenen Entwicklungen und natürlich den Algorithmus des MMVD V1 vereinen.
Wir werden in naher Zukunft eine Video Serie veröffentlichen, in welcher wir Stück für Stück jeden Aspekt des Werkzeugs, die Einstellungsmöglichkeiten sowie unsere Trading Strategien mit diesem Indikator erklären werden.
Ihr habt die folgenden technischen Werkzeuge und Informationen in diesem Indikator vereint, welche jede einzeln an- oder abgewählt und eingestellt werden können:
- Psychological Ranges (Weekly Opening High/ Low für Krypto and Forex)
- Market Maker Sessions (Sydney, Asia, London, NY)
- Trade Cloud (Algorithmus von Hawkeye Charting entwickelt)
- Fibonacci Cloud (inspiriert von der Beobachtung eines Paid-Indikators, Code geschrieben von Hawkeye Charting)
- Moving Averages (Ihr könnt die Darstellung von bis zu 6 Gleitenden Durchschnitten auswählen und für jeden dieser Durchschnitte den Typ und die Länge ändern.)
- Display Major Trend Cloud (entwickelt von Hawkeye Charting)
- PVSRA Candle Colors
- Vector Candle Zones
- Pivots
- Pivot Fibonacci Levels (entwickelt von Hawkeye Charting)
- OHLC-Levels
- Average Daily, Weekly, Monthly Ranges
- Volume Profile für Intraday Trading, Darstellungsmöglichkeit für 3-8 Tage
Wir hoffen, dass wir speziell für Leute, die sich nicht das PRO-Abo aufwärts von TradingView leisten können, Zugang zu einem guten Indikator, welche viele Werkzeuge und Alarme vereint gewährleisten zu können.
Unser Ziel ist es, die Eintrittsbarrieren für neue Marktteilnehmer senken und natürlich Leute vor wahnsinnigen Paid-Angeboten beschützen zu können.
Nur, damit ihr eine Vorstellung bekommt: den gesamten Indikator hat mich lediglich 100h Arbeit gekostet (für eine einzelne Person!), und ich bin kein Pine Script Experte. Also lasst euch bitte nicht verar******, wenn euch Paid-Angebote erreichen, mit dem Versprechen, den "zu 95% erfolgreich" Indikator erwerben zu können.
Es gibt keinen heiligen Gral, jeder Indikator arbeitet nur mit Berechnung von Vergangenheitswerten.
Wir würden uns riesig freuen, wenn euch diese Arbeit gefällt und ihr uns Likes und Follows hinterlasst und ihr diesen Indikator teilt.
RSI Effective Volume Reversal IndicatorAbout The Indicator
I want to start with a few short paragraphs of how this indicator came to be and why it's different than 80% of the indicators on this platform. If you are just interested in how the indicator works, you can skip the story, although I recommend at least skimming through it.
Originally, this indicator was developed to be part of a trend-trading strategy that analyzed the three main components - Price , Volume and Strength . It was broken down to 2 indicators - on-chart and off-chart, similarly to my first premium indicator "Trend Indicator for Directional Trading". Despite the similar concept, the current one is miles ahead in almost any regard.
As most of you know, strategies (especially the really good ones) are fairly more complex to use and navigate. You need to input the parameters for generating and tweaking the indicator, then you need to enter your risk management parameters like stop loss, position size, etc. and finally you need to set the exit criteria, like specified percent target, trial stop or an indicator condition. So, what was supposed to be a simple strategy that anyone can use and make money with, turned out to be a very complex one with over 20 parameters to tweak. I know from experience that when it comes to trading, less is more. This is especially true for the indicators.
As a result, I decided to split the project into two separate strategies - one for trend/directional trading and one for volume and strength (the one you are looking at right now). The problem was that as a standalone strategy it didn't perform all that well. And it shouldn't come as a surprise to anyone who has been trading long enough - divergences are one of the biggest tricksters there are - easy to identify only in hindsight. They are the new-trader's doom. I lost a decent amount of money chasing tops and bottoms through divergences and for that reason it's always been somewhat a goal of mine to create an indicator that can assist in this conquest (call it a personal vendetta). This indicator comes as close as I've ever been to this goal.
Right, but I just said a few lines above that this indicator doesn't work that well for divergences? That's true, but only if you completely automate it and let it buy every bullish and sell every bearish divergence. I have extensively tested it on the securities I actively trade (SPX500, Crude Oil, Gas, Gold, Copper) and with the right settings it does generate positive return (what strategy wouldn't with enough optimization, right?), but I would have made so much more money if I didn't fight the trend.
So, I decided to do something else - convert the strategy back to an indicator and use it for discretional trading in which it assists (not explicitly tell) me in making the decisions. And oh boy, did I hit the sweet spot there! It has been notoriously difficult for most scripts and indicators to identify proper support and resistance levels or at least not nearly as good as the human eye can do. This is especially the case with ascending and descending channels. Seeing how well it worked in helping me open longs and shorts at key levels, I decided to strip it from all unnecessary features and simplify the interface for easier navigation (about 300 lines of code less). This brings me to my next point.
How Does It Work?
The indicator relies on two main components in order to identify reversals - RSI module and Effective Volume module, hence the name RSI Effective Volume Reversal Indicator (not very creative, I know). You select which one you want to display via the dropdown menu. Now let me outline how each one works.
RSI module (top) - similarly to the traditional RSI, it is bound between 0 and 100. Oversold area is marked in green (15-25) and overbought area is marked in red (75-85). You can change those as you please, but I found those to be the perfect spots for identifying potential opportunities. This is where the similarities end. As you've noticed, it's not nearly as choppy as the traditional RSI, just the opposite - it's rather smooth, resembling Heikin-Ashi candles. Further, the way the candle is formed can indicate if we are approaching a top or bottom and if you should be looking for an opportunity to open a trade against the trend. Believe it or not, I've been developing and using this indicator for the past 6 months, so there's a lot to be said about the formation of those candles with clear examples, but I will leave those for the guide book that comes along with each purchase/subscription.
Effective Volume (bottom) - As I already have developed quite an extensive indicator that utilizes the effective volume profile, I just grabbed certain elements from it, simplified it and smoothed it via a new custom-made moving average along with some other minor updates. The results from RSI and Effective Volume may seem quite similar, but they actually reveal slightly different information and can be used to complement each other. In terms of coloring - green gradient above 50 and red gradient below 50.
What To Expect
It's important to understand that technical analysis does not predict prices. I am not claiming this indicator to be the crystal ball that will tell you when to long or short with max leverage. All I am saying is that it's a pretty good tool to help you time your trades, show real exhaustion of trends and reveal when a new direction is forming.
This indicator has been, and most likely will continue to be, work in progress. I've been experimenting with tons of features to make it better for the past 6 months and I finally believe it is stable and beneficial enough in order for you to use it. There's always something more that I would like to add and/or change, but I know that if I continue digging and improving, the indicator would have never seen the light of day. That's why I want to add the critical component to it - you. Through your feedback and recommendations, I believe we can make this indicator truly a masterpiece.
With that being said, I do have some future improvements planned, which I will be releasing on the go. Some are major, like updating it to v.5 and adding new features that are only available to the newest version of PineScript, while others are minor, such as color variations and more one-click customizations.
I hope I managed to portray an objective picture (with reasonable amount of words) of something that I've put a lot of work into, so that you can successfully use and make even more money on the markets. Once again, each purchase/subscription of this indicator comes with a guide in which I go into great detail explaining how to use the indicator, so rest assured that you will be able to take full advantage of it.
TradingLatino_StrategySPANISH:
TL_STRATEGY:
El TL_STRATEGY, es todo un ecosistema de indicadores que conforman una estrategia bastante potente y famosa en el trading de criptomonedas, está compuesta por los siguientes indicadores:
• Bandas de medias móviles exponenciales (10 y 55)
• Squeeze Momentum Indicator (SQZMON PRO+).
• Volume Profile (VP Desarrollado por APIDEVs).
• Average Directional Index ( ADX PRO+).
En ApiDev, decidimos optimizar visualmente esta estrategia, es por ello que creamos un panel informativo que muestra la proyección conjunta de todos los indicadores que ya mencionamos.
MEJORAS REALIZADAS EN LA ESTRATEGIA:
Más simple: Simplificamos la interfaz de todos los indicadores [para que el operador pueda seguir el ABC de su estrategia sin mucha complicación.
Señales de compra y venta: Basado en una estrategia que incorpora dos medias móviles de 10 y 55 periodos, la observación de la fuerza del ADX y la direccionalidad de los osciladores del SQZMON, señales de compra y venta para ser valorado por el comerciante.
Panel lateral: Integramos un panel lateral que permite observar la valoración y dirección de todos los indicadores que componen la estrategia.
Tiene un sistema de alerta que enviará notificaciones sobre los cambios que se produzcan en el indicador.
ENGLISH:
TL_STRATEGY:
The TL_STRATEGY , is a whole ecosystem of indicators that make up a quite powerful and famous strategy in cryptocurrency trading, it is composed of the following indicators:
• Exponential moving media bands (10 and 55).
• Squeeze Momentum indicator (SQZMON PRO +).
• Volume profile (VP Developed by APIDEVs).
• Average directional index ( ADX PRO +).
In ApiDev , we decided to visually optimize this strategy, that is why we created an information panel that shows the joint projection of all the indicators that we already mentioned.
IMPROVEMENTS MADE IN THE STRATEGY:
Simpler: We simplified the interface of all indicators [so that the trader can follow the ABCs of his strategy without much complication.
Buy and sell signals: Based on a strategy that incorporates two moving averages of 10 and 55 periods, the observation of the strength of the ADX and the directionality of the oscillators of the SQZMON, signals of buying and selling to be valued by the trader.
Side panel: We integrate a side panel that allows observing the assessment and direction of all the indicators that make up the strategy.
It has an alert system that will send notifications about the changes that occur in the indicator.
Fr3d0's Volume Profile Visible RangeLow level implementation
At the core of VPVR there’s a concept called “bucketization”.
Question : what is bucketization?
Answer : bucketization consists of identifying metrics with high predictive power and combine them appropriately.
I think this is a problem of bucketization because what the VPVR does is to take a price range, divide it into buckets and fill them up with the volume that was produced in each bucket’s range over the given period.
The more we divide our price range the finer the resolution, but also the less significant each bucket will become.
The steps are :
1. Get the price range with min and max over the give period;
2. Divide the range into buckets;
3. Loop over each candle of the given period and proportionally assign volume to one or more bucket.
Question : how to assign volume to buckets?
Answer : we need to calculate the right amount to add to each bucket for each candle. If 20% of a candle lies on a bucket then that bucket needs to have 20% of the volume of that candle, the rest 80% belongs to other buckets.
To get the percentage of a candle on a given bucket we have to find the price range of the candle contained within the bucket, then divide that amount by the entire length of the candle.
How to bucketize
Question : what are the formulas of A, B, C and Target respectively?
Answer :
- A = Max(candle_high, bucket_top) - Min(candle_low, bucket_bottom);
- B = Max(candle_high, bucket_top) - Min(candle_high, bucket_top);
- C = Max(candle_low, bucket_bottom) - Min(candle_low, bucket_bottom);
- Target = A - B - C.
Now that we now how to calculate the price range belonging to each bucket we need to calculate a percentage of volume to fill the bucket with.
The formula is trivially simple :
Volume * Target / (candle_high - candle_low).
Question : can we distinguish between buy volume and sell volume? If so, how?
Answer : yes we can and the following paragraph will teach you how.
Put it simply we can use the difference between the extremes of a candle (low and high) and its close price to get the buy and sell volumes.
The formulas for that are :
- Buy volume = Volume * (close - low) / (high - low);
- Sell volume = Volume * (high - close) / (high - low).
I know this is rather simplicistic but it makes sense.
Closing thoughts
This script is a working progress and I’m going to give more details if necessary, just let me know in the comments down below.
Delta Volatility ProfileThis script attempts to visualize the footprints of bullish volatility and bearish volatility. By design, it has a close resemblance to volume profile, but the engine behind has been customized for improved accuracy with a novel volatility model.
For usage, it can be used to have an overview of the supply and demand over past periods, to time your entry/ exit & maximize your RR ratio.
May you be on the right side of the trade.
[francrypto® strategy] 4 EMAs, P.SAR & Vol.Prof. (by kv4coins)(ENG)
This script consists of my own strategy for cryptocurrency (but can be adapted very well for stocks, forex, etc.)
Is a combination of:
- Four Exponentials Moving Average (EMA), configurables: by defect are 10, 21, 55 and 200 periods in yellow, aqua, orange and blue each of them
- Parabolic SAR System (PSAR), configurable
- Volume Profile (that has been developed by kv4coins - he has already authorized me to use it under the same OSS Licence Terms: MPL 2.0), configurable: with another default values and bilingual support for Spanish (SPA)
How it works
1) It is always better to detect specifics candlesticks or patrons: doji , pinbar or inverted pinbar , engulfing bars , morning star or evening star , harami , twizzer bottom or top , etc.
2) The 10 and 21 periods EMA help to identify the short-term behavior
3) The 55 periods EMA can be used like a support or resistance in medium-term, as 200 periods EMA in very long-term
4) It will convenient search for a double cross (10 & 21) or a triple cross (10, 21 & 55) to determine the medium-term change Downtrend to UpTrend (or viceversa)
5) Confirm the change patron with the Parabolic SAR and then identify potencials purchases or sales
6) Use Volume profile to detect potential supports or resistances areas, in order to set stop limit/loss and take profit orders.
Hope this helps!
Cheers,
FRANCRYPTO®
–––––– 0 ––––––
(ESP)
Este script consiste en mi propia estrategia para criptomonedas (pero puede adaptarse muy bien para acciones, forex, etc.)
Es la combinación de:
1) Cuatro Medias Móviles Exponenciales (EMA), configurables: por defecto son de 10, 21, 55 y 200 períodos en amarillo, turquesa, naranja y azul cada una de ellas
2) Sistema Parabolic SAR (PSAR), configurable
3) Perfil de Volumen (que fuera desarrollado por kv4coins - que ya me ha autorizado a su uso bajo las mismas condiciones de la Licencia OSS: MPL 2.0), configurable: con otros valores por defecto y soporte bilingüe para Español (SPA)
Cómo funciona
1) Siempre va a resultar mejor detectar velas japonesas específicas o patrones: doji , martillos o martillos invertidos , velas envolventes , patrón amanecer o atardecer , harami , velas gemelas , etcétera
2) La EMA de 10 y 21 períodos ayudan a identificar el comportamiento de corto plazo
3) La EMA de 55 períodos puede ser usada como un soporte o resistencia de mediano plazo, como así también, la EMA de 200 períodos en el muy largo plazo
4) Será conveniente buscar un doble cruce (10 & 21) o un triple cruce (10, 21 & 55) para determinar un cambio de la tendencia de mediano plazo de bajista hacia alcista (o viceversa)
5) Confirmá el patrón de cambio con la Parabólica de SAR y entonces identificá potenciales compras o ventas
6) Usá el perfil de volumen para detectar las potenciales zonas de soporte o resistencia, principalmente para establecer ordenes stop limit/loss o take profit.
¡Espero que pueda serles de utilidad!
Saludos,
FRANCRYPTO®
Trend Volume RSI AnalysisHOW'S THIS INDICATOR DIFFERENT ?
If you are familiar with my work, then you would know that I am into creating indicators with tons of parameters, almost all of which are left for you to configure. While this gives you an incredible level of customization, the feedback I received was that some of you felt a bit overwhelmed by them.
As such, I decided to create an incredibly simple, yet effective indicator that can give you a better overview of what's going on with the security you are trading/investing in without you needing to tweak a dozen parameters. So, the first and most obvious difference you will notice with Trend Volume RSI Analysis is that you have only 1 parameter to configure (length), one checkbox to tick (highlight buy/sell zones), and one dropdown menu to choose from (the type of analysis). All unnecessary features are stripped away and all calculations are done on the backend. Now let's see if this simplicity affects the efficiency of the indicator.
HOW DOES THE INDICATOR WORK?
1. Trend Analysis
The first type of analysis, selected by default, is the Trend. It shows the balance between bulls and bears and their respective strength. In order to filter out the noise and smooth out the graph, a moving average is applied twice - once from left to right, and once from right to left. Although this causes a minor delay, it is justified since the common moving averages lag is significantly reduced. The screenshot below shows an example of a small bull run on the 1h chart.
The indicator also performs very well in spotting divergences. Two divergences (bearish and bullish respectively) are illustrated in the screenshot below.
2. Volume Analysis
Volume Analysis doesn't just sum the standard volume of the trend. Rather, it calculates the effective volume - the one responsible for moving the price up or down and seeks the relationship between total volume and price movement. Thus, you get a smooth volume trendline that should prevent you from opening a position against the trend. As logic dictates, if the buying volume is growing, then the trendline will go up and it will be in green. If, however, the selling volume is growing, the trendline will decline and it will be in red. This analysis is better used on a bigger time frame, such as on a 4h chart.
Note: For those of you who have used my other indicator Multi Time Frame Effective Volume Profile, the formula used here is slightly different. The one used there is optimized for volume bars, while the modifications here deliver a slightly better trendline with less noise.
3. RSI Analysis
Contrary to the standard RSI which derives its results from price movement, this RSI is calculated based on the modified volume. So it's fair to say that it's a Volume RSI. This makes it a bit jerkier, almost something in between an RSI and Stochastics. However, it is much better in identifying divergences and will quickly indicate potential trends as it will start climbing up sooner. The screenshot below is on a 4h chart, but that's only because I want to show more examples. It works equally well on the 1h or even on a minute chart.
In the first example, the divergence is pretty obvious on all three indicators. However, in example 2 you would be able to spot it only on Trend Volume RSI Analysis and somewhat in Stochastics. RSI makes a double bottom there. Similar is the case with example 3, where this indicator is long gone on the way up in comparison to the other two. The difference in reaction comes from the supply and demand relationship, not just from the price movement. When bears are losing steam, the indicator detects this as a low supply level, thus printing the divergence or even climbing up to indicate the start of a new mini-trend.
I must note, however, that this part of the indicator must be used in accordance with the main trend (this is where the other two analyses come into play). You go long on a pullback when there's an established bull trend and you go short on a pullback when there's an established bear trend.
4. Additional Settings
I know, for an indicator with just one parameter this description is getting pretty long. There's only one thing left to cover - highlighting the buy/sell zones. It is fairly simple - when it's ON, the zones where bulls are stronger than bears will be highlighted in green. When the opposite is true, the background will be red. You can switch it OFF if it intervenes with your analysis, but I prefer having it as it shows a confluence of bull/bear force and the indicator itself. Here's an example below:
HOW MUCH DOES THIS INDICATOR COST ?
Although Trend Volume RSI Analysis may look like an incredibly simple indicator, I can assure you that a great deal of time, testing, and optimizing have gone into creating an indicator that does almost everything for you. The initial version was much more complex and a few dozen iterations were required to reach that level of simplicity and practicality. Furthermore, I will continue to update this indicator as well as introduce user-requested features if they will improve its overall performance. To find out more about how to gain access to this indicator, please use the provided information below or just message me . Thank you for your time.
Disclaimer: The purpose of all indicators is to indicate potential setups, which may lead to profitable results. No indicator is perfect and certainly, no indicator has a 100% success rate. They are subject to flaws, wrongful interpretation, bugs, etc. This indicator makes no exception. It must be used with a sound money management plan that puts the main emphasis on protecting your capital. Please, do not rely solely on any single indicator to make trading decisions instead of you. Indicators are storytellers, not fortune tellers. They help you see the bigger picture, not the future.
[R&D] Moving CentroidThis script utilizes this concept. Instead of weighting by volume, it weights by amount of price action on every close price of the rolling window. I assume it can be used as an additional reference point for price mode and price antimode.
it is directly connected with Market (not volume) profile, or TPO charts.
The algorithm:
1) takes a rolling window of, for example, 50 data points of close prices:
2) for each of this closing prices, the algorithm will check how many bars touched this close price.
3) then: sum of datapoints * weights/sum of weights
Since the logic is implemented in pretty non-efficient way, the script sometimes can take time to make calculations. Moreover, it calculates the centroid taking into account only close prices, not every tick. of a given rolling window That's why it's still experimental.
Trendgap strategyPrice action pattern with gap, imbalance and pivot. Simply used with volume profile. Calculating luqidity, volume on bar, price action patter.
[3Captain] Iron Dragon LineIntroducing the new indicator Iron Dragon Line.
Volume Profile (Visible Range) is expressed in solid lines.
The stronger the intensity, the more solid lines are superimposed, so it is expressed in bold.
It is based on a strategy of entering a solid line and clearing the dotted line.
When used with the " the korean secret sarunan" strategy, it is easy to identify and enter.
You can change the position of the dotted line through the source at the input.
As a result of back-testing, it was confirmed that high / low was advantageous in time frames of 15 minutes or less, and close was advantageous in higher frames.
신규 인디케이터 Iron Dragon Line 을 소개합니다.
Volume Profile (Visible Range)를 실선으로 표현했습니다.
강도가 강할수록 실선이 중첩되기 때문에 진하게 표현됩니다.
실선에서 진입을 하여 점선에 청산하는 전략을 기본으로 합니다.
input에 있는 소스를 통하여 점선의 위치를 변경할 수 있습니다.
백테스팅 결과 15분이하의 타임프레임에서 high/low가 유리했으며 높은 프레임일수록 close가 유리한것을 확인할 수 있었습니다.
GA - Value at RiskGA Value at Risk is a multifunctional tool. Its main purpose is to plot on the chart the Value at Risk . But it shows also integrated features related to the Volatility.
Value at Risk is a measure of the risk of loss for investments, given normal market conditions, in a period.
It measures and quantifies the level of financial risk. In this case, the risk is within position over a specific time frame.
Defining p as VaR, the probability of a loss greater than VaR is p, at most. Instead, the probability of loss that is less than VaR is 1-p, at least.
The VaR Breach occurs when a loss exceeds the VaR threshold .
For this case, VaR calculation uses the volatility estimation in a time interval. It defines the Probability Confidence according to the Normal Distribution. VaR is a percentile of the Normal Distribution. This is a multiplier of the Standard Deviation that define a Volatility Range.
The Normal Distribution Area around +- the Standard Deviation gives 68% of Confidence. 2 times the Standard Deviation returns a 95% of probability area. 3 time the Standard Deviation the Area returns 99.7% of Confidence.
Knowing VaR modeling, it is possible to determine the amount of a potential loss . Then, it is possible to know if there is enough capital to cover losses. In the same way, higher-than-acceptable risks forces reducing exposure in a financial instrument.
One of its practical use is to estimate the risk of an investment that is already at portfolio. Indeed, this is the purpose of the Value at Risk calculated in this script.
At the VaR Breach that investment has reached its worst scenario. Then, it can be the case to manage that investment into the balanced portfolio.
The Value at Risk does not tell when to enter the market.
Moving Averages
GA Value at Risk bases its calculations on a set of Moving Averages. Every feature of the script uses one of these Moving Averages for its algorithm.
Moving Averages from MA0 to MA8, are the core of each feature of the script.
By default, from MA0 to MA8, Moving Averages use the Fibonacci Series to define their lengths. This happens because of the power of the Golden Ratio in the market behavior.
Instead, the first moving average is an extra resource. Its purpose is to plot a Signal Line on the chart.
The script does not consider plotting every Moving Average on the chart. But it lets you enable the plotting of 7 Moving Averages (from MA0 to MA5 + Signal Line).
It is possible to select the Moving Average Formula to use in the script. This is a setting that affects every Moving Average. Then, it changes also the result of every feature of the script.
The selection is between:
Exponential Moving Average.
Simple Moving Average.
Weighted moving Average.
Simple Moving Averages and Pointers - Full Visibility
Moving Averages and Partial Visibility
The plotting of each Moving Average can be total or partial.
By default, the plotting of Moving Averages and Signal Line is partial.
When the price approaches a Moving Average a little part of the curve becomes visible. This highlights supports or resistances.
Besides, this tracking remains on the chart. Then it shows supports and resistances that the price reached during its progression.
The Partial Visibility Algorithm is a great advantage, ruling how to plot curves. It uses a parameter to set how much of the curves is to plot.
Exponential Moving Averages and Pointers - Partial Visibility
Exponential Moving Averages and Pointers - Full Visibility
Moving Averages and Pointers
As it is clear, it is not necessary to plot entire curves of Moving Averages on the chart. But it becomes relevant to plot Pointers to Moving Averages.
Indeed, the script plots horizontal segments that point to the latest Average Prices.
Every segment has a Label that shows Average Price, Length, and its related Moving Average (from MA0 to MA8). Besides, it is possible to extend the segment to right.
These pointers are a very useful automatization. They point to the Moving Averages. In this way, they show Dynamic Supports and Resistances as horizontal segments.
They are adaptive. Used together with the Volume Profile their progression approaches Edges of High Nodes.
This adaptive behavior makes easy to see when the price reaches Volume High Nodes and slows down.
Moving Average Pointers use the Partial Visibility Algorithm. In this case, the algorithm shows pointers with higher frequency than curves.
Moving Averages Pointers have:
Horizontal Segment as a Pointer with Arrow.
Label with details.
Circle to the current Average Price.
Weighted Moving Averages and Pointers - Full Visibility
Volatility Channels
Having Moving Averages, from MA0 to MA8, it is possible to plot 9 Volatility Channels.
Each Volatility Channel uses one of the Moving Averages, from MA0 to MA8.
Indeed, each Volatility Channel has the same designation of the Moving Average used.
The Standard Deviation defines the Volatility Range. It uses the length of the Moving Average related to the Volatility Channel.
The Volatility Range is unique for each Volatility Channel. In the same way, each Volatility Channel is unique because of its relation to only one Moving Average.
By default, each volatility channel has the 2 value as Standard Deviation Multiplier. This gives 95% of Confidence that the price will stay into the Volatility Range.
Using the Simple Moving Average, each Volatility Channel becomes a Bollinger Bands envelop.
Volatility Channels work very well even using Exponential or Weighted Moving Averages.
MA0 - Volatility Channel
Volatility Channels - From MA0 to MA8
Value at Risk (VaR)
GA Value at Risk plots VaR according to the volatility. The VaR plotting follows the Trend Momentum or Buying-Selling Waves.
By default, VaR follows the Trend Momentum by 2 times the Standard Deviation of MA0. Where MA0 is the first Moving Average and Volatility Channel of the set.
Besides, by default, the calculation of the Value at Risk is adaptive. It does not follow the Volatility Channel Bands. But it changes according to the fast reaction of the price into the Volatility Range.
By default, VaR follows the main momentum even if the price is moving in opposition to it. This occurs as long as the Trend Momentum persists.
In the settings box, It is possible to select the following of the latest Buying Wave or Selling Wave.
In this case, VaR changes according to the change of Buying Wave or Selling Wave. This means that, on these conditions, VaR follows main swings. Then it follows the weakening and the strengthening of the trend momentum as long as it persists.
The plotting of the Value at Risk can show these features:
Red cycle to show the Value at Risk at the current price.
Look Back Red Line that shows the progression of the Value at Risk.
Label with details.
MA0 - Value at Risk - Not Adaptive
MA0 - Value at Risk - Adaptive
It is possible to use a different Moving Average and Volatility Channel from the set. This affects the calculation and the plotting of the Value at Risk. In this way, the algorithm return the Value at Risk for the short, middle, or long-term.
Then, you can get the Value at Risk for that Financial Instrument, calculated for ~1 year or more so as for 1 month.
The Value at Risk does not tell you when to enter the market. Besides, it does not show you that the trend is changing.
MA3 - Value at Risk - Adaptive
Value at Profit (VaP)
The Value at Profit has a descriptive purpose. It points the Volatility Band that is opposite to the Value at Risk.
I chose Value at Profit as a designation for this feature. It does not tell you where to exit the market.
But is shows what the price progression is pointing on. This happens following the switching between Volatility Ranges.
The VaP follows the Volatility Band where the price tends to converge.
An outperforming or underperforming price is running faster than the average trend. Then when the price runs enough to converge to the Volatility Band, it is over extended or under extended.
At these conditions, the increased buying or selling pressure affects the price behavior. This slows down the price progression.
The Algorithm behind the Value at Profit is adaptive. Then the pointer jumps up and down the Volatility Bands of the 9 Volatility Channels. This occurs according to the price progression, following the switching between Volatility Ranges.
So, the VaP points a Volatility Band as long as the price can have chances to converges on it. Instead, when the price has chances to exceed the Volatility Band, the VaP points to the next one.
The plotting of the Value at Profit occurs enabling its Label with details.
Value at Profit - MA0 Volatility Channel Upper Band
Value at Profit - MA6 Volatility Channel Upper Band
Price Extension
When the price runs far away from the average trend price, GA Value at Risk can plot the price extension.
It shows the distance in percentage of the price from a Moving Average of the set. This tends to highlight conditions where the price is over or under extended.
An overbought or oversold condition precedes the shortening of the Trust. It is a cause of the hesitation of the price to continue its progression. This includes also Climactic Points and Signs of Dominance.
The Price Extension plotting uses a variation of the Partial Visibility Algorithm. It plots the Price Extension Arrow only when there are specific volatility conditions.
When the Partial Visibility is set to 0, the Price Extension Arrow is always visible on the chart.
The plotting of the Price Extension includes a Label with details.
Over Extension - The Price is Outperforming MA0
Under Extension - The Price is Underperforming MA0
Price Extension Coloring for Bars and Line Chart
GA Value at Risk lets you enable the coloring of vertical charts. Green and Red colors mark the over and under extended price on bars, candle sticks, and also on the Line Chart.
The Price Extension Algorithm colors Bars and Line Chart by a momentum function.
Indeed, the coloring happens following Relative Strength Index or Bollinger Bands %B.
These 2 Momentum functions are different. Indeed, they color the chart according to the purpose of their curves.
Coloring the Line Chart, it is necessary to put on front the script visibility.
Overbought and Oversold Conditions on Line Chart by Bollinger Bands %B
Overbought and Oversold Conditions on Candlesticks Chart by Relative Strength Index
Note: I restrict access to the tool. Use the links in my signature field to gain access to the script. Feel free to send me a PM for any question.
Thank you
Girolamo Aloe
Founder of Profiting Me Finance Analytics
-
Disclaimer
Nobody in Girolamo Aloe websites and trading view profile is a Financial Advisor. Nothing therein is intended to be constructed as Financial Advice. The content on his websites is for information and educational purposes only.
Trading carries high risk. You should not invest money that you cannot afford to lose. Past performance is not an indication of future results.
PpSignal Volume Profilethis indicator shows us the strength of the volume. green is buy signal an orange is sell signal.
The yellow signal is the net volueme. Net volume is a technical indicator calculated by subtracting a security's uptick volume by its downtick volume over a specified period of time.
when the volume buy is greater than the volume of sell the background change to aqua color. When the sell volume is greater than the buy volume, the background is painted orange ...
MULTITIMEFRAME_VWAP_MANOJVWAP is a powerful concept.
It denotes the fair price that is traded in the market.
In other words, it represents a variance of POINT OF CONTROL (POC) which is a Market Profile / Volume Profile Concept.
It is a leading indicator as it is dependent on the price and volume .
Usually VWAP is used for intraday trades and Trading view as an in built indicator which works only for intraday.
This script plots daily vwap , monthly vwap , quarterly vwap and yearly vwap .
The suggested combination is :
intraday charts - daily vwap
daily charts - monthly and / or quarterly vwap
weekly charts - quarterly and / or yearly vwap
Price Action UltimateThe Price Action Ultimate indicator is an innovative tool designed to provide traders with a comprehensive view of price action based on either volume or touches. By default, the indicator displays touches, offering a unique perspective on price levels that have been frequently interacted with by the market.
At its core, the indicator divides the price range of a specified lookback period into a number of rows (default 25). For each row, it calculates either the volume traded or the number of times the price touched that level. This data is then visualized in two ways: as a histogram and as horizontal lines on the chart.
The histogram, displayed on the right side of the chart, represents the distribution of touches (or volume) across different price levels. Each bar in the histogram shows the number of touches and the percentage of total touches for that price level. The color of the bars ranges from a user-defined low activity color to a high activity color, providing a quick visual reference for the most active price levels.
The horizontal lines drawn across the chart represent the most significant levels based on touches (or volume). By default, the indicator displays the top 3 levels, but this can be adjusted. The thickness of these lines corresponds to the relative importance of each level - thicker lines indicate more touches or higher volume. This feature allows traders to quickly identify key support and resistance levels based on historical price action.
One of the most innovative aspects of this indicator is the option to fade older levels over time. When enabled, this feature gradually increases the transparency of lines as they age, with newer levels appearing more prominently. This helps traders focus on the most recent and relevant price action while still maintaining awareness of older, potentially significant levels.
The indicator offers flexibility in its display options. Users can choose to show levels based on volume, touches, or both. This allows traders to compare and contrast different perspectives on price action. Additionally, the indicator includes options to display a volume profile and a background fill for the analysis range, further enhancing its visual appeal and informational content.
What makes this indicator particularly valuable is its ability to provide a clear, uncluttered view of key price levels without relying on complex calculations or multiple indicators. It distills price action down to its essence - where price has spent the most time or where the most trading activity has occurred. This can be incredibly useful for identifying potential support and resistance levels, areas of consolidation, or possible breakout points.
For traders focused on price action strategies, this indicator offers a powerful tool to enhance their analysis. It provides a data-driven approach to identifying significant price levels, which can be used to inform entry and exit decisions, set stop losses, or anticipate potential market reactions.
This indicator is a tool to aid in market analysis and should not be used as the sole basis for trading decisions. Always combine multiple forms of analysis and practice proper risk management when trading. Past performance does not guarantee future results.
Uptrick: Market MoodsThe "Uptrick: Market Moods" indicator is an advanced technical analysis tool designed for the TradingView platform. It combines three powerful indicators—Relative Strength Index (RSI), Average True Range (ATR), and Bollinger Bands—into one cohesive framework, aimed at helping traders better understand and interpret market sentiment. By capturing shifts in the emotional climate of the market, it provides a holistic view of market conditions, which can range from calm to stressed or even highly excited. This multi-dimensional analysis tool stands apart from traditional single-indicator approaches by offering a more complete picture of market dynamics, making it a valuable resource for traders looking to anticipate and react to changes in market behavior.
The RSI in the "Uptrick: Market Moods" indicator is used to measure momentum. RSI is an essential component of many technical analysis strategies, and in this tool, it is used to identify potential market extremes. When RSI values are high, they indicate an overbought condition, meaning the market may be approaching a peak. Conversely, low RSI values suggest an oversold condition, signaling that the market could be nearing a bottom. These extremes provide crucial clues about shifts in market sentiment, helping traders gauge whether the current emotional state of the market is likely to result in a reversal. This understanding is pivotal in predicting whether the market is transitioning from calm to stressed or from excited to overbought.
The Average True Range adds another layer to this analysis by offering insights into market volatility. Volatility is a key factor in understanding the mood of the market, as periods of high volatility often reflect high levels of excitement or stress, while low volatility typically indicates a calm, steady market. ATR is calculated based on the range of price movements over a given period, and the higher the value, the more volatile the market is. The "Uptrick: Market Moods" indicator uses ATR to dynamically gauge volatility levels, helping traders understand whether the market is currently moving in a way that aligns with its emotional mood. For example, an increase in ATR accompanied by an RSI value that indicates overbought conditions could suggest that the market is in a highly excited state, with the potential for either strong momentum continuation or a sharp reversal.
Bollinger Bands complement these tools by providing visual cues about price volatility and the range within which the market is likely to move. Bollinger Bands plot two standard deviations away from a simple moving average of the price. This banding technique helps traders visualize how far the price is likely to deviate from its average over a certain period. The "Uptrick: Market Moods" indicator uses Bollinger Bands to establish price boundaries and identify breakout conditions. When prices break above the upper band or below the lower band, it often signals that the market is either highly stressed or excited. This breakout condition serves as a visual representation of the market mood, alerting traders to moments when prices are moving beyond typical ranges and when significant emotional shifts are occurring in the market.
Technically, the "Uptrick: Market Moods" indicator has been developed using TradingView’s Pine Script language, a highly efficient language for building custom indicators. It employs functions like ta.rsi, ta.atr, and ta.sma to perform the necessary calculations. The use of these built-in functions ensures that the calculations are both accurate and efficient, allowing the indicator to operate in real-time without lagging, even in volatile market conditions. The ta.rsi function is used to compute the Relative Strength Index, while ta.atr calculates the Average True Range, and ta.sma is used to smooth out price data for the Bollinger Bands. These functions are applied dynamically within the script, allowing the "Uptrick: Market Moods" indicator to respond to changes in market conditions in real time.
The user interface of the "Uptrick: Market Moods" indicator is designed to provide a visually intuitive experience. The market mood is color-coded on the chart, making it easy for traders to identify whether the market is calm, stressed, or excited at a glance. This feature is especially useful for traders who need to make quick decisions in fast-moving markets. Additionally, the indicator includes an interactive table that updates in real-time, showing the most recent mood state and its frequency. This provides valuable statistical insights into market behavior over specific time frames, helping traders track the dominant emotional state of the market. Whether the market is in a prolonged calm state or rapidly transitioning through moods, this real-time feedback offers actionable data that can help traders adjust their strategies accordingly.
The RSI component of the "Uptrick: Market Moods" indicator helps detect the speed and direction of price movements, offering insight into whether the market is approaching extreme conditions. By providing signals based on overbought and oversold levels, the RSI helps traders decide whether to enter or exit positions. The ATR element acts as a volatility gauge, dynamically adjusting traders’ expectations in response to changes in market volatility. Meanwhile, the Bollinger Bands help identify trends and potential breakout conditions, serving as an additional confirmation tool that highlights when the price has moved beyond normal boundaries, indicating heightened market excitement or stress.
Despite the robust capabilities of the "Uptrick: Market Moods" indicator, it does have limitations. In markets affected by sudden shifts, such as those driven by major news events or external economic factors, the indicator’s performance may not always be reliable. These external factors can cause rapid mood swings that are difficult for any technical analysis tool to fully anticipate. Additionally, the indicator’s complexity may pose a learning curve for novice traders, particularly those who are unfamiliar with the concepts of RSI, ATR, and Bollinger Bands. However, with practice, traders can become proficient in using the tool to its full potential, leveraging the insights it provides to better navigate market shifts.
For traders seeking a deeper understanding of market sentiment, the "Uptrick: Market Moods" indicator is an invaluable resource. It is recommended for those dealing with medium to high volatility instruments, where understanding emotional shifts can offer a strategic advantage. While it can be used on its own, integrating it with other forms of analysis, such as fundamental analysis and additional technical indicators, can enhance its effectiveness. By confirming signals with other tools, traders can reduce the likelihood of false signals and improve their overall trading strategy.
To further enhance the accuracy of the "Uptrick: Market Moods" indicator, it can be integrated with volume-based tools like Volume Profile or On-Balance Volume (OBV). This combination allows traders to confirm the moods identified by the indicator with volume data, providing additional confirmation of market sentiment. For example, when the market is in an excited mood, an increase in trading volume could reinforce the reliability of that signal. Conversely, if the market is stressed but volume remains low, traders may want to proceed with caution. Using multiple indicators together creates a more comprehensive trading approach, helping traders better manage risk and make informed decisions based on multiple data points.
In conclusion, the "Uptrick: Market Moods" indicator is a powerful and unique addition to the suite of technical analysis tools available on TradingView. It provides traders with a multi-dimensional view of market sentiment by combining the analytical strengths of RSI, ATR, and Bollinger Bands into a single tool. Its ability to capture and interpret the emotional mood of the market makes it an essential tool for traders seeking to gain an edge in understanding market behavior. While the indicator has certain limitations, particularly in rapidly shifting markets, its ability to provide real-time insights into market sentiment is a valuable asset for traders of all experience levels. Used in conjunction with other tools and sound trading practices, the "Uptrick: Market Moods" indicator offers a comprehensive solution for navigating the complexities of financial markets.
nPOC Levels by Tyler### Explanation of the Pine Script
This Pine Script identifies and displays weekly naked Points of Control (nPOCs) on a TradingView chart. An nPOC represents a Point of Control (POC) from a previous week that has not been revisited by price action in subsequent weeks. These nPOCs are extended to the right as horizontal lines, indicating potential support or resistance levels.
#### Script Overview
1. **Indicator Declaration:**
```pinescript
//@version=5
indicator("Weekly nPOCs", overlay=true)
```
- The script is defined as a version 5 Pine Script.
- The `indicator` function sets the script's name ("Weekly nPOCs") and specifies that the indicator should be overlaid on the price chart (`overlay=true`).
2. **Function to Calculate POC:**
```pinescript
f_poc(_hl2, _vol) =>
var float vol_profile = na
if (na(vol_profile))
vol_profile := array.new_float(100, 0.0)
_bin_size = (high - low) / 100
for i = 0 to 99
if _hl2 >= low + i * _bin_size and _hl2 < low + (i + 1) * _bin_size
array.set(vol_profile, i, array.get(vol_profile, i) + _vol)
max_volume = array.max(vol_profile)
poc_index = array.indexof(vol_profile, max_volume)
poc_price = low + poc_index * _bin_size + _bin_size / 2
poc_price
```
- The function `f_poc` calculates the Point of Control (POC) for a given period.
- It takes two parameters: `_hl2` (the average of the high and low prices) and `_vol` (volume).
- A volume profile array (`vol_profile`) is initialized to store volume data across different price bins.
- The price range between the high and low is divided into 100 bins (`_bin_size`).
- The function iterates over each bin, accumulating the volumes for prices within each bin.
- The bin with the maximum volume is identified as the POC (`poc_price`).
3. **Variables to Store Weekly Data:**
```pinescript
var float poc = na
var float prev_poc = na
var line poc_lines = na
if na(poc_lines)
poc_lines := array.new_line(0)
```
- `poc` stores the current week's POC.
- `prev_poc` stores the previous week's POC.
- `poc_lines` is an array to store lines representing nPOCs. The array is initialized if it is `na` (not initialized).
4. **Calculate Weekly POC:**
```pinescript
is_new_week = ta.change(time('W')) != 0
if (is_new_week)
prev_poc := poc
poc := f_poc(hl2, volume)
if not na(prev_poc)
line new_poc_line = line.new(x1=bar_index, y1=prev_poc, x2=bar_index + 100, y2=prev_poc, color=color.red, width=2)
label.new(x=bar_index, y=prev_poc, text="nPOC", style=label.style_label_down, color=color.red, textcolor=color.white)
array.push(poc_lines, new_poc_line)
```
- `is_new_week` checks if the current bar is the start of a new week using the `ta.change(time('W'))` function.
- If it's a new week, the previous week's POC is stored in `prev_poc`, and the current week's POC is calculated using `f_poc`.
- If `prev_poc` is not `na`, a new line (`new_poc_line`) representing the nPOC is created, extending it to the right (for 100 bars).
- A label is created at the `prev_poc` level, marking it as "nPOC".
- The new line is added to the `poc_lines` array.
5. **Remove Old Lines:**
```pinescript
if array.size(poc_lines) > 52
line.delete(array.shift(poc_lines))
```
- This section ensures that only the last 52 weeks of nPOCs are kept to avoid cluttering the chart.
- If the `poc_lines` array contains more than 52 lines, the oldest line is deleted using `array.shift`.
6. **Plot the Current Week's POC as a Reference:**
```pinescript
plot(poc, title="Current Weekly POC", color=color.blue, linewidth=2, style=plot.style_line)
```
- The current week's POC is plotted as a blue line on the chart for reference.
#### Summary
This script calculates and identifies weekly Points of Control (POCs) and marks them as nPOCs if they remain untouched by subsequent price action. These nPOCs are displayed as horizontal lines extending to the right, providing traders with potential support or resistance levels. The script also manages the number of lines plotted to maintain a clear and uncluttered chart.
CVD Divergence Strategy.1.mmThis is the matching Strategy version of Indicator of the same name.
As a member of the K1m6a Lions discussion community we often use versions of the Cumulative Volume Delta indicator
as one of our primary tools along with RSI, RSI Divergences, Open interest, Volume Profile, TPO and Fibonacci levels.
We also discuss visual interpretations of CVD Divergences across multiple time frames much like RSI divergences.
RSI Divergences can be identified as possible Bullish reversal areas when the RSI is making higher low points while
the price is making lower low points.
RSI Divergences can be identified as possible Bearish reversal areas when the RSI is making lower high points while
the price is making higher high points.
CVD Divergences can also be identified the same way on any timeframe as possible reversal signals. As with RSI, these Divergences
often occur as a trend's momentum is giving way to lower volume and areas when profits are being taken signaling a possible reversal
of the current trending price movement.
Hidden Divergences are identified as calculations that may be signaling a continuation of the current trend.
Having not found any public domain versions of a CVD Divergence indicator I have combined some public code to create this
indicator and matching strategy. The calculations for the Cumulative Volume Delta keep a running total for the differences between
the positive changes in volume in relation to the negative changes in volume. A relative upward spike in CVD is created when
there is a large increase in buying vs a low amount of selling. A relative downward spike in CVD is created when
there is a large increase in selling vs a low amount of buying.
In the settings menu, the is a drop down to be used to view the results in alternate timeframes while the chart remains on current timeframe. The Lookback settings can be adjusted so that the divs show on a more local, spontaneous level if set at 1,1,60,1. For a deeper, wider view of the divs, they can be set higher like 7,7,60,7. Adjust them all to suit your view of the divs.
To create this indicator/strategy I used a portion of the code from "Cumulative Volume Delta" by @ contrerae which calculates
the CVD from aggregate volume of many top exchanges and plots the continuous changes on a non-overlay indicator.
For the identification and plotting of the Divergences, I used similar code from the Tradingview Technical "RSI Divergence Indicator"
This indicator should not be used as a stand-alone but as an additional tool to help identify Bullish and Bearish Divergences and
also Bullish and Bearish Hidden Divergences which, as opposed to regular divergences, may indicate a continuation.