Range Sentiment Profile [LuxAlgo]The Range Sentiment Profile indicator is inspired from the volume profile and aims to indicate the degree of bullish/bearish variations within equidistant price areas inside the most recent price range.
The most bullish/bearish price areas are highlighted through lines extending over the entire range.
 🔶 SETTINGS 
 
 Length: Most recent bars used for the calculation of the indicator.
 Rows: Number of price areas the price range is divided into.
 Use Intrabar: Use intrabar data to compute the range sentiment profile.
 Timeframe: Intrabar data timeframe.
 
 🔶 USAGE 
  
This tool can be used to easily determine if a certain price area contain more significant bullish or bearish price variations. This is done by obtaining an estimate of the accumulation of all the close to open variations occurring within a specific profile area.
A blue range background indicates a majority of bullish variations within each area while an orange background indicates a majority of bearish variations within each area.
  
Users can easily identify the areas with the most bullish/bearish price variations by looking at the bullish/bearish maximums.
  
It can be of interest to see where profile bins might have no length, these can indicate price areas with price variations with alternating signs (bullish variations are followed by a bearish sign) and similar body. They can also indicate a majority of either bullish or bearish variations alongside a minority of more significant opposite variations.
These areas can also provide support/resistance, as such price entering these areas could reverse.
  
Users can obtain more precise results by allowing the profile to use intrabar data. This will change the calculation of the profile, see the  details  section for more information.
 🔶 DETAILS 
The Range Sentiment Profile's design is similar to the way a volume profile is constructed.
First the maximum/minimum values over the most recent  Length  bars are obtained, these define the calculation range of the profile.
The range is divided into  Rows  equidistant areas. We then see if price lied within a specific area, if it's the case we accumulate the difference between the closing and opening price for that specific area.
Let  d = close - open . The length of the bin associated to a specific area is determined as follows:
 length = Width / 100 * Area / Max 
Where  Area  is the accumulated  d  within the area, and  Max  the maximum value between the absolute value of each accumulated  d  of all areas.
The percentage visible on each bin is determined as 100 multiplied by the accumulated  d  within the area divided by the total absolute value of  d  over the entire range.
 🔹 Intrabar Calculation 
When using intrabar data the range sentiment profile is calculated differently. 
For a specific area and candle within the interval, the accumulated close to open difference is accumulated only if the intrabar candle of the user selected timeframe lies within the area.
This can return more precise results compared to the standard method, at the cost of a higher computation time.
ابحث في النصوص البرمجية عن "volume profile"
Volume Point of Control with Fib Based Profile🍀Description:
This indicator is a comprehensive volume profile analysis tool designed to identify key price levels based on trading activity within user-defined timeframes. It plots the Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL), along with dynamically calculated Fibonacci levels derived from the developing period's range. It offers extensive customization for both historical and developing levels.
🍀Core Features:
Volume Profiling (POC, VAH, VAL):
Calculates and plots the POC (price level with the highest volume), VAH, and VAL for a selected timeframe (e.g., Daily, Weekly).
The Value Area percentage is configurable. 70% is common on normal volume profiles, but this script allows you to configure multiple % levels via the fib levels. I recommend using 2 versions of this indicator on a chart, one has Value Area at 1 (100% - high and low of lookback) and the second is a specified VA area (i.e. 70%) like in the chart snapshot above. See examples at the bottom.
Historical Levels:
Plots POC, VAH, and VAL from previous completed periods.
Optionally displays only "Unbroken" levels – historical levels that price has not yet revisited, which can act as stronger magnets or resistance/support.
The user can manage the number of historical lines displayed to prevent chart clutter.
Developing Levels:
Shows the POC, VAH, and VAL as they form in real-time during the current, incomplete period. This provides insight into intraday/intra-period value migration.
Dynamic Fibonacci Levels:
Calculates and plots Fibonacci retracement/extension levels based dynamically on the range between the developing POC and the developing VAH/VAL.
Offers 8 configurable % levels above and below POC that can be toggled on/off.
Visual Customization:
Extensive options for colors, line styles, and widths for all plotted levels.
Optional gradient fill for the Value Area that visualizes current price distance from POC - option to invert the colors as well. 
Labels for developing levels and Fibonacci levels for easy identification.
🍀Characteristics:
Volume-Driven: Levels are derived from actual trading volume, reflecting areas of high participation and price agreement/disagreement.
Timeframe Specific: The results are entirely dependent on the chosen profile timeframe. 
Dynamic & Static Elements: Developing levels and Fibs update live, while historical levels remain fixed once their period closes.
Lagging (Historical) & Potentially Leading: Historical levels are based on the past, but are often respected by future price action. Developing levels show current dynamics.
🍀How to Use It:
Identifying Support & Resistance: Historical and developing POCs, VAHs, and VALs are often key areas where price may react. Unbroken levels are particularly noteworthy.
Market Context & Sentiment: Trading above the POC suggests bullish strength/acceptance of higher prices, while trading below suggests bearishness/acceptance of lower prices. 
Entry/Exit Zones: Interactions with these levels (rejections, breakouts, tests) can provide potential entry or exit signals, especially when confirming with other analysis methods.
Dynamic Targets: The Fibonacci levels calculated from the developing POC-VA range offer potential intraday/intra-period price targets or areas of interest.
Understanding Value Migration: Observing the movement of the developing POC/VAH/VAL throughout the period reveals where value is currently being established.
🍀Potential Drawbacks:
Input Sensitivity: The choice of timeframe, Value Area percentage, and volume resolution heavily influences the generated levels. Experimentation is needed for optimal settings per instrument/market. (I've found that Range Charts can provide very accurate volume levels on TV since the time element is removed. This helps to refine the accuracy of price levels with high volume.)
Volume Data Dependency: Requires accurate volume data. May be less reliable on instruments with sparse or questionable volume reporting.
Chart Clutter: Enabling all features simultaneously can make the chart busy. Utilize the line management inputs and toggle features as needed.
Not a Standalone Strategy: This indicator provides context and key levels. It should be used alongside other technical analysis tools and price action reading for robust decision-making.
Developing Level Fluctuation: Developing POC/VA/Fib levels can shift considerably, especially early in a new period, before settling down as more volume accumulates and time passes.
🍀Recommendations/Examples:
I recommend have this indicator on your chart twice, one has the VA set at 1 (100%) and has the fib levels plotted. The second has the VA set to 0.7 (70%) to highlight the defined VA.  
Here is an example with 3 on a chart. VA of 100%, VA of 80%, and VA of 20% 
Price Map Profile [BigBeluga]An advanced volume-based tool designed to map out how trading activity is distributed across price levels. It combines dynamic volume profiling with structural pivot detection to highlight key levels of interest in the market — including hidden support/resistance zones and dominant liquidity areas. 
Unlike traditional volume profiles locked to fixed sessions, this indicator continuously processes historical bars to build a real-time "map" of volume distribution. It intelligently reveals where buyers and sellers were most active, helping traders pinpoint high-impact zones with clarity.
 🔵 KEY FEATURES   
 
  Creates a  volume map profile  by scanning price action over a defined lookback window (`length`).  
  Divides price vertically into  volume bins  (default: 100) and aggregates either total volume or bar count per bin.  
  Bins are plotted as horizontal  zones extending to the right  of the chart — wider offset means more volume at that price.  
  
  Each zone is  color-coded using gradients  to represent volume magnitude:  
     - Below average volume = cool tones (blue/teal)  
     - Above average volume = warm tones (red/orange)  
  
  The  highest volume bin  is highlighted with a red label showing the exact volume, helping to identify strong price agreement.  
  
  Detects  pivot highs and lows  using a 15-bar swing method, marking them as potential S/R levels.  
  If a pivot level is located inside a  low-volume zone  (volume < average), it is  emphasized with a dashed line and label .  
  Pivot line color matches direction:  
     - High pivots =  yellow   
     - Low pivots =  aqua  
  
  The volume of the bin containing the pivot is shown alongside the pivot, providing  volume context  for the structural level.  
  
  Filters out nearby duplicate pivots using ATR-based distance checks to ensure clean and non-redundant signals.  
 
 🔵 HOW TO USE   
 
  Use the wide red zones as  liquidity and consolidation areas  where price may stall, reverse, or absorb volume.  
  Pivot-based dashed lines within low-volume zones highlight  hidden support/resistance levels  where price may react sharply.  
  Combine this indicator with trend or order flow tools to validate  reversal or breakout setups .  
  Switch between Volume and Frequency modes to adapt to the type of data your asset provides.  
 
 🔵 CONCLUSION   
The  Price Map Profile  transforms raw volume into an actionable visual map. By aligning volume depth with key market structure levels, it helps traders identify where market participants are most active — and where hidden inefficiencies lie. Ideal for traders seeking precision entries, dynamic S/R zones, and deeper volume structure insight.
Dashboard MTF profile volume Indicator Description
This indicator, titled "Swing Points and Liquidity & Profile Volume," combines multiple features to provide a comprehensive market analysis:
Volume Profile: Displays buy and sell volumes across multiple timeframes (1 minute, 5 minutes, 15 minutes, 1 hour, 4 hours, 1 day).
Volume Moving Averages: Plots two moving averages (short and long) to analyze volume trends.
Dashboard: A summary dashboard shows buy and sell volumes for each timeframe, with distinct colors for better visualization.
Swing Points: Identifies liquidity levels and swing points to help pinpoint key entry and exit zones.
How to Use
1. Indicator Installation
Go to TradingView.
Open the Pine Script Editor.
Copy and paste the provided code.
Click on "Add to Chart."
2. Indicator Settings
The indicator offers several customizable parameters:
Display Volume (1 minute, 5 minutes, 15 minutes, 1 hour, 4 hours, 1 day): Enable or disable volume display for each timeframe.
Short Moving Average Length (MA): Set the short moving average period (default: 5).
Long Moving Average Length (MA): Set the long moving average period (default: 14).
Dashboard Position: Choose where to display the dashboard (bottom-right, bottom-left, top-right, top-left).
Text Color: Customize the text color in the dashboard.
Text Size: Choose text size (small, normal, large).
3. Using the Indicator
Volume Analysis
The dashboard displays buy (Buy Volume) and sell (Sell Volume) volumes for each timeframe.
Buy Volume: Volume of trades where the closing price is higher than the opening price (aggressive buying).
Sell Volume: Volume of trades where the closing price is equal to or lower than the opening price (aggressive selling).
Volumes are displayed in real-time and update with each new candle.
Volume Moving Averages
Two moving averages are plotted on the chart:
MA Volume (Short): Short moving average (blue) to identify short-term volume trends.
MA Volume (Long): Long moving average (red) to identify long-term volume trends.
Use these moving averages to spot accumulation or distribution periods.
Swing Points and Liquidity
Swing points are identified based on price levels where volumes are highest.
These levels can act as support/resistance zones or liquidity areas to plan entries and exits.
Usage Guidelines
1. Entering a Position
Buy (Long):
When Buy Volume is significantly higher than Sell Volume across multiple timeframes.
When the short moving average (blue) crosses above the long moving average (red).
Sell (Short):
When Sell Volume is significantly higher than Buy Volume across multiple timeframes.
When the short moving average (blue) crosses below the long moving average (red).
2. Exiting a Position
Use liquidity levels (swing points) to set profit targets or stop-loss levels.
Monitor volume changes to anticipate trend reversals.
3. Risk Management
Use stop-loss orders to limit losses.
Avoid trading during low-volume periods to reduce false signals.
Compliance with Trading View Guidelines
Intellectual Property:
The code is provided for educational and personal use. You may modify and use it but cannot resell or distribute it as your own work.
Responsible Use:
Trading View encourages responsible use of indicators. Test the indicator on a demo account before using it in live trading.
Transparency:
The code is fully transparent and can be reviewed in the Pine Script Editor. You may modify it to suit your needs.
Practical Examples
Scenario 1: Bullish Trend
Buy Volume is high on 1-hour and 4-hour time frames.
The short moving average (blue) is above the long moving average (red).
Action: Open a long position (Buy) and set a stop-loss below the last swing low.
Scenario 2: Bearish Trend
Sell Volume is high on 1-hour and 4-hour time frames.
The short moving average (blue) is below the long moving average (red).
Action: Open a short position (Sell) and set a stop-loss above the last swing high.
Wave Consolidation [LuxAlgo]The Wave Consolidation indicator uses market profiles to highlight consolidation zones based on upward and downward moves determined when a Higher-High or Lower-Low is created.
Users can control the amount of consolidation zones to display and the sensitivity of the swing point detection used to return those zones.
🔶  USAGE 
  
These zones are intended as areas of interest to traders where price has seen historical interactions, which can be interpreted as support and resistance. By identifying these areas of interest before the price returns to them, traders are able to anticipate and prepare for various scenarios and respond dynamically to the behavior of the market, as seen below.
 
 Rejection:  A quick move away from the zone may indicate that the area is either overvalued or undervalued, leading to a fast movement in the opposite direction. 
 Breakthrough:  Moving beyond a zone could indicate acceptance at that specific price, potentially signaling a shift in momentum or the start of a new trend. In a strong major trend, zones created from smaller trends could be used as price targets for taking profit and managing risk.
 Consolidation:  Holding these zones might suggest a market in balance at these levels, this could lead to opportunities for range-bound trading.
 
Below is an example of the Rejection and Consolidation scenarios described above.
  
 Note:  By analyzing the tests and retests of these zones, traders can also gain further insight into where participants are interacting in the market.
🔶  DETAILS 
The full process for acquiring and managing these zones is described in the sub-sections below.
🔹  Creation 
By only considering market movements creating a higher-high or lower-low, we can identify meaningful, directional, moves which can then be used to calculate zones. 
  
Once a move is identified, the script calculates a volume profile spanning the length of the given move. 
  
The width of the zones is determined starting from the POC of the profile and expanding outwards until the value of the profile's row falls below the profile's average.
 Note:  By increasing the "Multiplier" Input, Users can increase the threshold the script uses to determine zone width in multiples of Standard Deviations above the Average.
While this area is similar to a VP Value Area, it is not intended to replicate a value zone. The calculation is not concerned with capturing any % of the total profile's volume within the zone and only analyzes based on a fixed inclusion threshold.
🔹  Management 
To keep clutter to a minimum, If a new zone overlaps a recently created zone, the zones are grouped as one. This is especially helpful in areas where prices are ranging, creating multiple zones in a very similar area.
Zones before management:
  
Zones after management:
  
🔹  Deletion 
Just because a zone is crossed, does not make it immediately unimportant!
Once a Zone is mitigated (crossed in the opposite direction of its bias) it is reduced to a single dotted line representing the outer threshold for the zone. These lines are important to watch, as the price will often retest a break. For this reason, they will stay on the chart until the next swing point is detected when they will finally be deleted for good.
Below is an example of activity around a broken zone before it is deleted.
  
Below is the same example  2bBars later , once the new swing is confirmed, the dotted lines are deleted and new zones are created. 
  
Notice how the newly formed resistance zone is in the same area where we noticed sellers previously.
🔶  SETTINGS 
🔹 Structure 
 
 Display Structure:  Determines if swing structures are displayed.
 Structure Length:  Sets Length for structure identification.
 
🔹 Zones 
 
 Volume-Based Calculations:  Opt to use a "Volume" based Profile Calculation instead of the default "Price Action" based Calculation.
 Display Count:  Sets the specific number of bullish and bearish zones to display on the chart.
 Multiplier:  Sets the multiplier to use for the value cut-off for determining zone boundaries.
 
🔹 Style 
 
 Display Average Lines:  Toggles on/off the average (mid) lines for the zones.
Market Profile Visible RangeSup TV, 2 important points .
1) surprisingly, it's the first MP Visible Range script on TV;
2) This one doesn't use any bagging/binning*, instead each row represents the time spent on the actual minimal price steps (aka ticks).
The script will be further extended with usual market profile related functionally in future updates. At this point we have:
- Profile itself (each row represents how many bars touch the given price);
- Mode of the profile (called POC)**;
* Still it will be introduced in future when I will find / design the proper aggregating technique. It is vital for processing very wide price ranges (for example, 500 days on ES futures).
** The script correctly calculates POC by finding all the modes in the data & choosing the closest one to data's midrange.
For this kind of technical instrument finally it was more convenient to use Pine Script 5 (btw it's my first Pine 5).
Basically this script is a side-effect of another R&D I'm doing, the stuff is useful tho so let's go.
By choosing length we both specify the amount of data to be processed & the profile's location screen-wise. It's pretty cool and & useful, on my screen it's always almost touching the left side and still always visible.
The code is heavily commented in order to be understood fast, nothing fantastic, just a lil patience required this time.
 Rationale 
Market & volume profiles are well known concepts, lotta info available, the most important point of all that is that MP is just another way of visualizing data that lets you notice things you don't usually notice on sequential charts. From my side I can only add that it's better to use your own brain for thinking and reconsidering using volume profile in all the cases, especially on decentralized markets (unless you're aggregating ALL the volume data from everywhere, including options, OTC etc).
Here is it, for you
Volume Range Profile with Fair Value (Zeiierman)█  Overview 
The  Volume Range Profile with Fair Value (Zeiierman)  is a precision-built volume-mapping tool designed to help traders visualize where institutional-level activity is occurring within the price range — and how that volume behavior shifts over time.
Unlike traditional volume profiles that rely on fixed session boundaries or static anchors, this tool dynamically calculates and displays volume zones across both the upper and lower ends of a price range, revealing point-of-control (POC) levels, directional volume flow, and a fair value drift line that updates live with each candle.
   
 You’re not just looking at volume anymore. You’re dissecting who’s in control — and at what price. 
⚪  In simple terms: 
 
 Upper Zone  = The upper portion of the price range, showing concentrated volume activity — typically where selling or distribution may occur
 Lower Zone  = The lower portion of the price range, highlighting areas of high volume — often associated with buying or accumulation
 POC Bin  = The bin (price level) with the highest traded volume in the zone — considered the most accepted price by the market
 Fair Value Trend  = A dynamic trend line tracking the average POC price over time — visualizing the evolving fair value
 Zone Labels  = Display real-time breakdown of buy/sell volume within each zone and inside the POC — revealing who’s in control
 
█  How It Works 
 ⚪  Volume Zones 
 
 Upper Zone: Anchored at the highest high in the lookback period
 Lower Zone: Anchored at the lowest low in the lookback period
 Width is user-defined via % of range
 Each zone is divided into a series of volume bins
 
⚪  Volume Bins (Histograms) 
Each zone is split into N bins that show how much volume occurred at each level:
 
 Taller = More volume
 The POC bin (Point of Control) is highlighted
 Labels show % of volume in the POC relative to the whole zone
 
⚪  Buy vs Sell Breakdown 
Each volume bin is split by:
 
 Buy Volume = Close ≥ Open
 Sell Volume = Close < Open
  The script accumulates these and displays total Buy/Sell volume per zone.
 
⚪  Fair Value Drift Line 
A POC trend is plotted over time:
 
 Represents where volume was most active across each range
 Color changes dynamically — green for rising, red for falling
 Serves as a real-time fair value anchor across changing market structure
 
█  How to Use 
⚪  Identify Key Control Zones 
 
 Use Upper/Lower Zone structures to understand where supply and demand is building.
 Zones automatically adapt to recent highs/lows and re-center volume accordingly.
 
   
⚪  Follow Institutional Activity 
 
 Watch for POC clustering near price tops or bottoms.
 Large volumes near extremes may indicate accumulation or distribution.
 
  
⚪  Spot Fair Value Drift 
 
 The fair value trend line (average POC price) gives insight into market equilibrium.
 One strategy can be to trade a re-test of the fair value trend, trades are taken in the direction of the current trend. 
 
  
█  Understanding  Buy & Sell Volume Labels (Zone Totals) 
These labels show the total buy and sell volume accumulated within each zone over the selected lookback period:
 
 Buy Vol (green label)  → Total volume where candles closed bullish
 Sell Vol (red label)  → Total volume where candles closed bearish
 
Together, they tell you which side dominated:
 
 Higher Buy Vol  → Bullish accumulation zone
 Higher Sell Vol  → Bearish distribution zone
 
This gives a quick visual insight into who controlled the zone, helping you spot areas of demand or supply imbalance.
  
█  Understanding POC Volume Labels 
The POC (Point of Control) represents the price level where the most volume occurred within the zone. These labels break down that volume into:
 
 Buy %  – How much of the volume was buying (price closed up)
 Sell %  – How much was selling (price closed down)
 Total %  – How much of the entire zone’s volume happened at the POC
 
Use it to spot strong demand or supply zones:
 
 High Buy % + High Total %  → Strong buying interest = likely support
 High Sell % + High Total %  → Strong selling pressure = likely resistance
 
It gives a deeper look into who was in control at the most important price level.
  
█  Why It’s Useful 
 
 Track where fair value is truly forming
 Detect aggressive volume accumulation or dumping
 Visually split buyer/seller control at the most relevant price levels
 Adapt volume structures to current trend direction
 
█  Settings Explained 
 
 Lookback Period:  Number of bars to scan for highs/lows. Higher = smoother zones, Lower = reactive.
 Zone Width (% of Range):  Controls how much of the range is used to define each zone. Higher = broader zones.
 Bins per Zone:  Number of volume slices per zone. Higher = more detail, but heavier on resources.
 
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
VolumeProfileLibrary   "VolumeProfile" 
Analyzes volume and price and calculates a volume profile, in particular the Point Of Control and Value Area values.
 new(rowSizeInTicks, valueAreaCoverage, startTime) 
  Constructor method that creates a new Volume Profile
  Parameters:
     rowSizeInTicks (float) : Internal row size (aka resolution) of the volume profile. Useful for most futures contracts would be '1 / syminfo.mintick'. Default '4'.
     valueAreaCoverage (int) : Percentage of total volume that is considered the Value Area. Default '70'
     startTime (int) : Start time (unix timestamp in milliseconds) of the Volume Profile. Default 'time'.
  Returns: VolumeProfile object
 method calculatePOC(vp) 
  Calculates current Point Of Control of the VP
  Namespace types: VolumeProfile
  Parameters:
     vp (VolumeProfile) 
  Returns: void
 method calculateVA(vp) 
  Calculates current Value Area High and Low of the VP
  Namespace types: VolumeProfile
  Parameters:
     vp (VolumeProfile) 
  Returns: void
 method update(vp, h, l, v, t) 
  Processes new chart data and sorts volume into rows. Then calls calculatePOC() and calculateVA() to update the VP. Parameters are usually the output of request.security_lower_tf.
  Namespace types: VolumeProfile
  Parameters:
     vp (VolumeProfile) 
     h (array) : Array of highs
     l (array) : Array of lows
     v (array) : Array of volumes
     t (array) : Array of candle times
  Returns: void
 method setSessionHigh(vp, h) 
  Sets the high of the session the VP is tracking
  Namespace types: VolumeProfile
  Parameters:
     vp (VolumeProfile) 
     h (float) 
  Returns: void
 method setSessionLow(vp, l) 
  Sets the low of the session the VP is tracking
  Namespace types: VolumeProfile
  Parameters:
     vp (VolumeProfile) 
     l (float) 
  Returns: void
 method getPOC(vp) 
  Gets the current Point Of Control
  Namespace types: VolumeProfile
  Parameters:
     vp (VolumeProfile) 
  Returns: Point Of Control (float)
 method getVAH(vp) 
  Gets the current Value Area High
  Namespace types: VolumeProfile
  Parameters:
     vp (VolumeProfile) 
  Returns: Value Area High (float)
 method getVAL(vp) 
  Gets the current Value Area Low
  Namespace types: VolumeProfile
  Parameters:
     vp (VolumeProfile) 
  Returns: Value Area Low (float)
 VolumeProfile 
  Fields:
     rowSizeInTicks (series float) 
     valueAreaCoverage (series int) 
     startTime (series int) 
     valueAreaHigh (series float) 
     pointOfControl (series float) 
     valueAreaLow (series float) 
     sessionHigh (series float) 
     sessionLow (series float) 
     volumeByRow (map) 
     totalVolume (series float) 
     pocRow (series float) 
     pocVol (series float)
Volume Positive & Negative Levels [ChartPrime]Volume Positive & Negative Levels  
 Overview: 
The Volume Positive & Negative Levels indicator by ChartPrime is designed to provide traders with a clear visualization of volume activity across different price levels. By plotting volume levels as histograms, this tool helps identify significant areas of buying (positive volume) and selling (negative volume) pressure, enhancing the ability to spot potential support and resistance zones.
 Key Features: 
⯁  Lookback Period: 
 
    - The `lookbackPeriod` parameter, set to 500 bars, determines the range over which the volume analysis is conducted, ensuring a comprehensive view of the market’s volume activity. The maximum lookback period is 500 bars or the bars currently visible on the chart, whichever is smaller.
 
  
⯁  Dynamic Volume Calculation: 
 
    - Volume is calculated dynamically based on the price action, with positive volume indicating buying pressure (close > open) and negative volume indicating selling pressure (close < open).
 
⯁  Color Coding for Clarity: 
 
    - Positive Volume: Represented with a distinct color (`#ad9a2c`), making it easy to identify areas of buying interest.
    - Negative Volume: Highlighted with another color (`#ad2cad`), simplifying the detection of selling pressure.
 
  
 Volume Threshold and Bins: 
 
    - The indicator allows users to set a volume threshold (`volume_level`) to highlight significant volume levels, with the default set at 70.
    - The number of bins (`numBins`) defines the granularity of the volume profile, with a higher number providing more detail.
 
  
⯁  Volume Profile Visualization: 
 
    - The volume profile is plotted as a histogram, with the height of each bar proportional to the volume at that price level. This visualization helps in quickly assessing the strength of volume at various price points.
 
  
⯁  Interactive Labels and Threshold Indicators: 
 
    - Labels: The indicator uses labels to mark significant volume levels, providing quick reference points for traders.
    - Threshold Lines: Lines are drawn at specified volume thresholds, with colors and widths dynamically adjusted based on the volume levels.
 
⯁  User Inputs: 
 
 - Volume Threshold (`volume_level`): Sets the minimum volume required to highlight significant levels.
 - Number of Bins (`numBins`): Determines the resolution of the volume profile.
 - Line Width (`line_withd`): Specifies the width of the lines used in the visualization.
 
The Volume Positive & Negative Levels indicator is a powerful tool for traders looking to gain deeper insights into market dynamics. By providing a clear visual representation of volume activity across different price levels, it helps traders identify key support and resistance zones, spot trends, and make more informed trading decisions. Whether you are a day trader or a swing trader, this indicator enhances your ability to analyze volume data effectively, improving your overall trading strategy.
Volume Footprint Voids [BigBeluga]Volume Footprint Voids is a unique tool that uses lower timeframe calculation to plot different styles of single candle POC.
This indicator is very powerful for scalping and finding very precise entry and exits, spotting potential trapped traders, and more.
Unlike many other volume profiles, this aims to plot single candle profiles as well as their own footprints.
 🔶 FEATURES 
The script includes the following settings:
 
 Windows: Plotting style and calculations
 Coloring modes
 Display modes
 lower-timeframe calculations
 
 🔶 CALCULATION 
  
In the image above we can see how the script calculates each level position that will serve as a calculation process to see how much volume/closes there are within the levels.
  
In the image above, we can have a more clear example of how we count each candle close.
We use the prior screenshot as an example, after setting each level we will use the lower-timeframe input to measure the amount of closes within the ranges.
Depending on the lot size, the box will be larger or smaller, usually the POC will always have the highest box size.
 NOTE:  Size is the starting point, always from the low of the candle.
To find more voids, select a closer LTF to the current one you're using.
To find fewer voids, select a timeframe away from your current one.
Due to Pine Script limitations, we are only able to plot a certain amount of footprints, and we can't plot the whole history chart.
  
POC will be the largest block displayed, indicating the time point of control
Gray areas are closes above the average
Black are Void or imbalance that price will fill in the future, like FVG
  
The image above shows an incorrect size input that will lead to bad calculations, while on the other side, a correct size input that will lead to a clear vision and better calculation.
 🔶 WINDOWS 
  
The "▲▼" Mode will display delta buyers and delta sellers coloring with voids as black.
It also offers a gradient mode for a beautier visualization
  
The "Total Volume" mode will display the net volume within the lot size (closes within the levels).
This is useful to spot possible highest net volume within the same highest lot size.
  
The "POC + Gaps" will show both POC and Gaps as the highest block while all the rest will be considered as the smaller block.
This is useful to see where the highest lot were and if there are higher or lower imbalances within the candle
  
The last option "Gaps" will simply display the gaps as the highest block, while the POC as the lowest block.
This is useful to have a better view of the gaps areas
 🔶 EXAMPLE 
  
This is one of the most basic examples of how this script can be used. POC at the bottom creating a strong support area as price holds and creates higher voids gap that price fills while rising.
 🔶 SETTINGS 
Users have full control over the script, from colors to choosing the lower-timeframe inputs to disabling the lot size.
Magnifying Glass (LTF Candles) by SiddWolf█  OVERVIEW 
This indicator displays The Lower TimeFrame Candles in current chart, Like Zooming in on the Candle to see it's Lower TimeFrame Structure. It plots intrabar OHLC data inside a Label along with the volume structure of LTF candle in an eloquent format.
 █  QUICK GUIDE 
Just apply it to the chart, Hover the mouse on the Label and ta-da you have a Lower Timeframe OHLC candles on your screen. Move the indicator to the top and shrink it all the way up, because all the useful data is inside the label.
Inside the label: The OHLC ltf candles are pretty straightforward. Volume strength of ltf candles is shown at bottom and Volume Profile on the left. Read the Details below for more information.
In the settings, you will find the option to change the UI and can play around with Lower TimeFrame Settings.
 █  DETAILS 
First of all, I would like to thank the @TradingView team for providing the function to get access to the lower timeframe data. It is because of them that this magical indicator came into existence.
Magnifying Glass indicator displays a Candle's Lower TimeFrame data in Higher timeframe chart. It displays the LTF candles inside a label. It also shows the Volume structure of the lower timeframe candles. Range percentage shown at the bottom is the percentage change between high and low of the current timeframe candle. LTF candle's timeframe is also shown at the bottom on the label.
This indicator is gonna be most useful to the price action traders, which is like every profitable trader.
 How this indicator works: 
I didn't find any better way to display ltf candles other than labels. Labels are not build for such a complex behaviour, it's a workaround to display this important information.
It gets the lower timeframe information of the candle and uses emojis to display information. The area that is shown, is the range of the current timeframe candle. Range is a difference between high and low of the candle. Range percentage is also shown at the bottom in the label.
I've divided the range area into 20 parts because there are limitation to display data in the labels. Then the code checks out, in what area does the ltf candle body or wick lies, then displays the information using emojis.
The code uses matrix elements for each block and relies heavily on string manipulation. But what I've found most difficult, is managing to fit everything correctly and beautifully so that the view doesn't break.
 Volume Structure: 
Strength of the Lower TimeFrame Candles is shown at the bottom inside the label. The Higher Volume is shown with the dark shade color and Lower Volume is shown with the light shade. The volume of candles are also ranked, with 1 being the highest volume, so you can see which candle have the maximum to minimum volume. This is pretty important to make a price action analysis of the lower timeframe candles.
Inside the label on the left side you will see the volume profile. As the volume on the bottom shows the strength of each ltf candles, Volume profile on the left shows strength in a particular zone. The Darker the color, the higher the volume in the zone. The Highest volume on the left represents Point of Control (Volume Profile POC) of the candle.
 Lower TimeFrame Settings: 
There is a limitation for the lowest timeframe you can show for a chart, because there is only so much data you can fit inside a label. A label can show upto 20 blocks of emojis (candle blocks) per row. Magnifying Glass utilizes this behaviour of labels. 16 blocks are used to display ltf candles, 1 for volume profile and two for Open and Close Highlighter.
So for any chart timeframe, ltf candles can be 16th part of htf candle. So 4 hours chart can show as low as 15 minutes of ltf data. I didn't provide the open settings for changing the lower timeframe, as it would give errors in a lot of ways. You can change the timeframe for each chart time from the settings provided.
 Limitations: 
Like I mentioned earlier, this indicator is a workaround to display ltf candles inside a label. This indicator does not work well on smaller screens. So if you are not able to see the label, zoom out on your browser a bit. Move the indicator to either top or bottom of all indicators and shrink it's space because all details are inside the label.
 █  How I use MAGNIFYING GLASS: 
This indicator provides you an edge, on top of your existing trading strategy. How you use Magnifying Glass is entirely dependent on your strategy.
I use this indicator to get a broad picture, before getting into a trade. For example I see a Doji or Engulfing or any other famous candlestick pattern on important levels, I hover the mouse on Magnifying Glass, to look for the price action the ltf candles have been through, to make that pattern. I also use it with my "Wick Pressure" indicator, to check price action at wick zones. Whenever I see price touching important supply and demand zones, I check last few candles to read chart like a beautiful price action story.
Also volume is pretty important too. This is what makes Magnifying Glass even better than actual lower timeframe candles. The increasing volume along with up/down trend price shows upward/downward momentum. The sudden burst (peak) in the volume suggests volume climax.
Volume profile on the left can be interpreted as the strength/weakness zones inside a candle. The low volume in a price zone suggests weakness and High volume suggests strength. The Highest volume on the left act as POC for that candle.
Before making any trade, I read the structure of last three or four candles to get the complete price action picture.
 █  Conclusion 
Magnifying Glass is a well crafted indicator that can be used to track lower timeframe price action. This indicator gives you an edge with the Multi Timeframe Analysis, which I believe is the most important aspect of profitable trading.
~ @SiddWolf
VP and POCThis code is credited to juliangonzaconde. Have taken his help to modify his beautiful creation.
Volume profile is a key study when comes to understanding the auction trading process. Volume Profiles will show you exactly how much volume, as well as relative volume, occurred at each price as well as the exact number of contracts for the entire session. It is a visualization tool to understand the high activity zone and low activity zone.
Volume profile measures the confidence of the traders in the market. From short term trading perspective monitoring the developing volume profile in realtime make more sense to track current market participation behavior to take better trading decisions.
Hope this helps you in trading on daily timeframe.
Happy Trading.
Price–Volume Anomaly DetectorDescription 
This indicator identifies unusual relationships between price strength and trading volume. By analyzing expected intraday volume behavior and comparing it with current activity, it highlights potential exhaustion, absorption, or expansion events that may signal changing market dynamics.
 How It Works 
The script profiles average volume by time of day and compares current volume against this adaptive baseline. Combined with normalized price movement (ATR-based), it detects conditions where price and volume diverge:
 
 Exhaustion:  Strong price move on low volume (potential fade)
 Absorption:  Weak price move on high volume (potential reversal)
 Expansion:  Strong price move on high volume (momentum continuation)
 
 Key Features 
 
 Adaptive time-based volume normalization
 Configurable sensitivity thresholds
 Optional visibility for each anomaly type
 Adjustable label transparency and offset
 Light Mode support: label text automatically adjusts for dark or light chart backgrounds
 Lightweight overlay design
 
 Inputs Overview 
 
 Volume Profile Resolution:  Defines time bucket size for expected volume
 [* ]Lookback Days:  Controls how quickly the profile adapts
 Price / Volume Thresholds:  Tune anomaly sensitivity
 Show Expansion / Exhaustion / Absorption:  Toggle specific labels
 Label Transparency & Offset:  Adjust chart visibility
 
 How to Use: 
 
 Apply the indicator to any chart or timeframe.
 Observe where labels appear:
🔴 Exhaustion: strong price, weak volume
🔵 Absorption: weak price, strong volume
🟢 Expansion: strong price, strong volume
 Use these as context clues, not trade signals — combine with broader volume or trend analysis.
 
 How It Helps 
 
 Reveals hidden price–volume imbalances
 Highlights areas where momentum may be fading or strengthening
 Enhances understanding of market behavior beyond raw price action
 
⚠️Disclaimer:
This script is provided for educational and informational purposes only. It is not financial advice and should not be considered a recommendation to buy, sell, or hold any financial instrument. Trading involves significant risk of loss and is not suitable for every investor. Users should perform their own due diligence and consult with a licensed financial advisor before making any trading decisions. The author does not guarantee any profits or results from using this script, and assumes no liability for any losses incurred. Use this script at your own risk.
X rVPoCOverview
The rVPoC indicator isolates and displays the Volume Point of Control — the price level within a chosen lookback window that has accumulated the highest traded volume.
Unlike typical volume profiles that analyze an entire session or day, this version is designed for rolling intraday precision. It continually updates the VPoC using data from a lower “zoomed-in” timeframe (e.g., 1-minute) to refine accuracy, even when viewed on higher-timeframe charts.
How It Works
At its core, the indicator “zooms in” via Pine Script’s multi-timeframe engine:
Lower timeframe aggregation:
A secondary (zoomed) timeframe — by default 1-minute — is used to pull detailed OHLCV data through request.security().
Rolling window analysis:
The user-defined bars_per_current parameter determines how many of those lower-timeframe bars to include (e.g., 15 → a 15-minute rolling window).
Volume binning:
The high-to-low range of that window is divided into evenly spaced price bins (vp_price_levels). Each bin accumulates the volume of trades overlapping its range.
Point of Control selection:
The bin with the greatest accumulated volume is located, and its volume-weighted midpoint is plotted as the VPoC.
Visual output:
Discrete line-break markers are plotted for each bar, preventing the “connecting line” distortions common in continuous plots.
Use Case
This indicator is ideal for intraday traders who want to:
Track how the most active traded price shifts over time.
Identify short-term value zones forming within a 15-minute (or custom) rolling range.
Observe micro-structure behavior during developing sessions without committing to full volume profile tools.
Overlay a lightweight VPoC on top of other tools such as open-range or VWAP-based frameworks.
It is particularly effective on 1-minute and 5-minute charts, providing a granular yet efficient measure of volume concentration that updates bar-by-bar.
Summary
The VPoC indicator delivers a continuously updating micro-profile of where trading volume is most active within a chosen intraday window.
It’s designed to complement range, VWAP, and order-flow analysis by highlighting evolving value zones without visual clutter or session-anchoring logic.
Traders can interpret shifts in the VPoC as changes in short-term control — where buyers or sellers are concentrating their activity within the evolving price structure.
Advanced Moving Average ChannelAdvanced Moving Average Channel (MAC) is a comprehensive technical analysis tool that combines multiple moving average types with volume analysis to provide a complete market perspective.
Key Features:
1. Dynamic Channel Formation
   - Configurable moving average types (SMA, EMA, WMA, VWMA, HMA, TEMA)
   - Separate upper and lower band calculations
   - Customizable band offsets for precise channel adjustment
2. Volume Analysis Integration
   - Multi-timeframe volume analysis (1H, 24H, 7D)
   - Relative volume comparison against historical averages
   - Volume trend detection with visual indicators
   - Price-level volume distribution profile
3. Market Context Indicators
   - RSI integration for overbought/oversold conditions
   - Channel position percentage
   - Volume-weighted price levels
   - Breakout detection with visual signals
Usage Guidelines:
1. Channel Interpretation
   - Price within channel: Normal market conditions
   - Price above upper band: Potential overbought condition
   - Price below lower band: Potential oversold condition
   - Channel width: Indicates market volatility
2. Volume Analysis
   - High relative volume (>150%): Strong market interest
   - Low relative volume (<50%): Weak market interest
   - Volume trend arrows: Indicate increasing/decreasing market participation
   - Volume profile: Shows price levels with highest trading activity
3. Trading Signals
   - Breakout arrows: Potential trend continuation
   - RSI extremes: Confirmation of overbought/oversold conditions
   - Volume confirmation: Validates price movements
Customization:
- Adjust MA length for different market conditions
- Modify band offsets for tighter/looser channels
- Fine-tune volume analysis parameters
- Customize visual appearance
This indicator is designed for traders who want to combine price action, volume analysis, and market structure in a single, comprehensive tool.
Volume Footprint POC for Every CandleCalculating and plotting the Point of Control (POC) for every candle on a volume footprint chart can provide valuable insights for traders. Here are some interpretations and uses of this information:
1. Identify Key Price Levels
Highest Traded Volume: The POC represents the price level with the highest traded volume for each candle. This level often acts as a significant support or resistance level.
Confluence Zones: When multiple POCs align at similar price levels over several candles, it indicates strong support or resistance zones.
2. Gauge Market Sentiment
Buyer and Seller Activity: High volume at certain price levels can indicate where buyers and sellers are most active. A rising POC suggests stronger buying activity, while a falling POC suggests stronger selling activity.
Volume Profile: Analyzing the volume profile helps in understanding the distribution of traded volume across different price levels, providing insights into market sentiment and potential reversals.
3. Spot Trends and Reversals
Trend Continuation: Consistent upward or downward shifts in POC levels can indicate a trend continuation. Traders can use this information to stay in trending positions.
Reversal Signals: A sudden change in the POC direction may signal a potential reversal. This can be used to take profits or enter new positions.
4. Intraday Trading Strategies
Short-Term Trading: Intraday traders can use the POC to make informed decisions on entry and exit points. For example, buying near the POC during an uptrend or selling near the POC during a downtrend.
Scalping Opportunities: High-frequency traders can use shifts in the POC to scalp small profits from price movements around these key levels.
5. Volume-Based Indicators
Confirmation of Other Indicators: The POC can be used in conjunction with other technical indicators (e.g., moving averages, RSI) to confirm signals and improve trading accuracy.
Support and Resistance: Combining the POC with traditional support and resistance levels can provide a more comprehensive view of the market dynamics.
In summary, the Point of Control (POC) is a valuable tool for traders to understand market behavior, identify key levels, and make more informed trading decisions. If you have specific questions or need further details on how to use this information in your trading strategy, feel free to ask! 😊
MM Day Trader LevelsAs an intraday trader, there are certain key levels that I care about for short-term price action on every single chart. When I first began day trading, each morning I would painstakingly mark those key levels off on the charts I planned to trade each day. Depending on the number of charts I was watching, this would take up quite a bit of my time that I felt would have been much better spent doing other things. It also meant that those levels would often be left behind, and on later days I might be trading a symbol and get confused when a line appeared and I'd be paying attention to it only to later discover that it wasn't from prior day, but from some other day in the past when I had marked it off. 
I looked all over TradingView to find indicators that did this automatically for me, and I found a lot of them. One by one I tried them, and inevitably I would always find that something was wrong with them. Often they didn't have all of the levels I wanted (so I would have to combine multiple indicators), but more often I found that the levels would be incorrect, or they would be buggy and not appear consistently, or they would not appear at the right time, or they would not work on futures! The list of problems went on and on. And the biggest issue I found was that nobody knew how to get session volume profile in an indicator.
So, over the course of a few years I figured out how to solve all of those problems and now I'm thrilled to present this free indicator for everyone like me who trades intraday and wants a clean consistent way to see the prior day levels that they care about automatically on every single chart (even futures). The levels the indicator provides are:
 
 Yesterday High & Low
 Value Area High & Low & Point of Control
 Today's Open
 Yesterday's Close (aka "Settlement" on futures)
 Premarket High & Low (non-futures only)
 Overnight High & Low (futures only)
 
These levels are extremely important, and I expect price to be reactive to them, so each level has a shaded background behind it so that the levels stand out against other lines you may have on your chart. I try to keep configuration as simple as possible, but there are configuration options that allow you to:
 
 Hide any of the levels
 Change the color for the levels
 Shade the value area (or not)
 Change the label text, size, type (basic label or plain text) and location (how far to the right of last candle to place the label
 Adjust session volume profile value area volume & number of rows
 
The biggest advantage to this indicator over others on TradingView is how it handles session volume profile. When it comes to futures, TradingView does differentiate between regular trading hours and "electronic" trading hours on the charts, but their timeframes for those sessions are unusual, and they do not provide any programmatic way to differentiate between them. So, I created a whole new library for dealing with futures sessions that is fully integrated into both my Session Volume Profile library and this indicator, allowing me to bring you the best and only custom indicator available on TradingView that provides you with true regular session volume profile information across every type of symbol, including futures. 
I'm incredibly proud of everything I've been able to provide with this indicator, and even more thrilled to say that I'm proud of how the indicator has been implemented. Once again releasing this indicator and all associated code for free and open source. I encourage you to take a look at the source code to see how it all works, take advantage of the free underlying libraries I created to make all of this possible: Session Library and Session Volume Profile Library.
Smart MTF S/R Levels[BullByte]
 Smart MTF S/R Levels   
 Introduction & Motivation   
Support and Resistance (S/R) levels are the backbone of technical analysis. However, most traders face two major challenges:  
 Manual S/R Marking:  Drawing S/R levels by hand is time-consuming, subjective, and often inconsistent.  
 Multi-Timeframe Blind Spots:  Key S/R levels from higher or lower timeframes are often missed, leading to surprise reversals or missed opportunities.  
 Smart MTF S/R Levels  was created to solve these problems. It is a fully automated, multi-timeframe, multi-method S/R detection and visualization tool, designed to give traders a complete, objective, and actionable view of the market’s most important price zones.  
 What Makes This Indicator Unique?   
 Multi-Timeframe Analysis:  Simultaneously analyzes up to three user-selected timeframes, ensuring you never miss a critical S/R level from any timeframe.  
 Multi-Method Confluence:  Integrates several respected S/R detection methods—Swings, Pivots, Fibonacci, Order Blocks, and Volume Profile—into a single, unified system.  
 Zone Clustering:  Automatically merges nearby levels into “zones” to reduce clutter and highlight areas of true market consensus.  
 Confluence Scoring:  Each zone is scored by the number of methods and timeframes in agreement, helping you instantly spot the most significant S/R areas.  
 Reaction Counting:  Tracks how many times price has recently interacted with each zone, providing a real-world measure of its importance.  
 Customizable Dashboard:  A real-time, on-chart table summarizes all key S/R zones, their origins, confluence, and proximity to price.  
 Smart Alerts:  Get notified when price approaches high-confluence zones, so you never miss a critical trading opportunity.  
 Why Should a Trader Use This?   
 Objectivity:  Removes subjectivity from S/R analysis by using algorithmic detection and clustering.  
 Efficiency:  Saves hours of manual charting and reduces analysis fatigue.  
 Comprehensiveness:  Ensures you are always aware of the most relevant S/R zones, regardless of your trading timeframe.  
 Actionability:  The dashboard and alerts make it easy to act on the most important levels, improving trade timing and risk management.  
 Adaptability:  Works for all asset classes (stocks, forex, crypto, futures) and all trading styles (scalping, swing, position).  
 The Gap This Indicator Fills   
Most S/R indicators focus on a single method or timeframe, leading to incomplete analysis. Manual S/R marking is error-prone and inconsistent. This indicator fills the gap by:  
 Automating S/R detection  across multiple timeframes and methods  
 Objectively scoring and ranking zones  by confluence and reaction  
 Presenting all this information  in a clear, actionable dashboard  
 How Does It Work? (Technical Logic)   
 1. Level Detection   
For each selected timeframe, the script detects S/R levels using:  
 SW (Swing High/Low):  Recent price pivots where reversals occurred.  
 Pivot:  Classic floor trader pivots (P, S1, R1).  
 Fib (Fibonacci):  Key retracement levels (0.236, 0.382, 0.5, 0.618, 0.786) over the last 50 bars.  
 Bull OB / Bear OB:  Institutional price zones based on bullish/bearish engulfing patterns.  
 VWAP / POC:  Volume Weighted Average Price and Point of Control over the last 50 bars.  
 2. Level Clustering   
Levels within a user-defined % distance are merged into a single “zone.”  
Each zone records which methods and timeframes contributed to it.  
 3. Confluence & Reaction Scoring   
 Confluence:  The number of unique methods/timeframes in agreement for a zone.  
 Reactions:  The number of times price has touched or reversed at the zone in the recent past (user-defined lookback).  
 4. Filtering & Sorting   
Only zones within a user-defined % of the current price are shown (to focus on actionable areas).  
Zones can be sorted by confluence, reaction count, or proximity to price.  
 5. Visualization   
 Zones:  Shaded boxes on the chart (green for support, red for resistance, blue for mixed).  
 Lines:  Mark the exact level of each zone.  
 Labels:  Show level, methods by timeframe (e.g., 15m (3 SW), 30m (1 VWAP)), and (if applicable) Fibonacci ratios.  
 Dashboard Table:  Lists all nearby zones with full details.  
 6. Alerts   
Optional alerts trigger when price approaches a zone with confluence above a user-set threshold.  
 Inputs & Customization (Explained for All Users)   
 Show Timeframe 1/2/3:  Enable/disable analysis for each timeframe (e.g., 15m, 30m, 1h).  
 Show Swings/Pivots/Fibonacci/Order Blocks/Volume Profile:  Select which S/R methods to include.  
 Show levels within X% of price:  Only display zones near the current price (default: 3%).  
 How many swing highs/lows to show:  Number of recent swings to include (default: 3).  
 Cluster levels within X%:  Merge levels close together into a single zone (default: 0.25%).  
 Show Top N Zones:  Limit the number of zones displayed (default: 8).  
 Bars to check for reactions:  How far back to count price reactions (default: 100).  
 Sort Zones By:  Choose how to rank zones in the dashboard (Confluence, Reactions, Distance).  
 Alert if Confluence >=:  Set the minimum confluence score for alerts (default: 3).  
 Zone Box Width/Line Length/Label Offset:  Control the appearance of zones and labels.  
 Dashboard Size/Location:  Customize the dashboard table.  
 How to Read the Output   
 Shaded Boxes:  Represent S/R zones. The color indicates type (green = support, red = resistance, blue = mixed).  
 Lines:  Mark the precise level of each zone.  
 Labels:  Show the level, methods by timeframe (e.g., 15m (3 SW), 30m (1 VWAP)), and (if applicable) Fibonacci ratios.  
 Dashboard Table:  Columns include:  
 Level:  Price of the zone  
 Methods (by TF):  Which S/R methods and how many, per timeframe (see abbreviation key below)  
 Type:  Support, Resistance, or Mixed  
 Confl.:  Confluence score (higher = more significant)  
 React.:  Number of recent price reactions  
 Dist %:  Distance from current price (in %)  
 Abbreviations Used   
 SW =  Swing High/Low (recent price pivots where reversals occurred)  
 Fib =  Fibonacci Level (key retracement levels such as 0.236, 0.382, 0.5, 0.618, 0.786)  
 VWAP =  Volume Weighted Average Price (price level weighted by volume)  
 POC =  Point of Control (price level with the highest traded volume)  
 Bull OB =  Bullish Order Block (institutional support zone from bullish price action)  
 Bear OB =  Bearish Order Block (institutional resistance zone from bearish price action)  
 Pivot =  Pivot Point (classic floor trader pivots: P, S1, R1)  
These abbreviations appear in the dashboard and chart labels for clarity.  
 Example: How to Read the Dashboard and Labels (from the chart above)   
Suppose you are trading BTCUSDT on a 15-minute chart. The dashboard at the top right shows several S/R zones, each with a breakdown of which timeframes and methods contributed to their detection:  
  
 Resistance zone at 119257.11:   
The dashboard shows:  
5m (1 SW), 15m (2 SW), 1h (3 SW)  
This means the level 119257.11 was identified as a resistance zone by one swing high (SW) on the 5-minute timeframe, two swing highs on the 15-minute timeframe, and three swing highs on the 1-hour timeframe. The confluence score is 6 (total number of method/timeframe hits), and there has been 1 recent price reaction at this level. This suggests 119257.11 is a strong resistance zone, confirmed by multiple swing highs across all selected timeframes.  
 Mixed zone at 118767.97:   
The dashboard shows:  
5m (2 SW), 15m (2 SW)  
This means the level 118767.97 was identified by two swing points on both the 5-minute and 15-minute timeframes. The confluence score is 4, and there have been 19 recent price reactions at this level, indicating it is a highly reactive zone.  
 Support zone at 117411.35:   
The dashboard shows:  
5m (2 SW), 1h (2 SW)  
This means the level 117411.35 was identified as a support zone by two swing lows on the 5-minute timeframe and two swing lows on the 1-hour timeframe. The confluence score is 4, and there have been 2 recent price reactions at this level.  
 Mixed zone at 118291.45:   
The dashboard shows:  
15m (1 SW, 1 VWAP), 5m (1 VWAP), 1h (1 VWAP)  
This means the level 118291.45 was identified by a swing and VWAP on the 15-minute timeframe, and by VWAP on both the 5-minute and 1-hour timeframes. The confluence score is 4, and there have been 12 recent price reactions at this level.  
 Support zone at 117103.10:   
The dashboard shows:  
15m (1 SW), 1h (1 SW)  
This means the level 117103.10 was identified by a single swing low on both the 15-minute and 1-hour timeframes. The confluence score is 2, and there have been no recent price reactions at this level.  
 Resistance zone at 117899.33:   
The dashboard shows:  
5m (1 SW)  
This means the level 117899.33 was identified by a single swing high on the 5-minute timeframe. The confluence score is 1, and there have been no recent price reactions at this level.  
 How to use this:   
Zones with higher confluence (more methods and timeframes in agreement) and more recent reactions are generally more significant. For example, the resistance at 119257.11 is much stronger than the resistance at 117899.33, and the mixed zone at 118767.97 has shown the most recent price reactions, making it a key area to watch for potential reversals or breakouts.  
 Tip:   
“SW” stands for Swing High/Low, and “VWAP” stands for Volume Weighted Average Price.  
The format 15m (2 SW) means two swing points were detected on the 15-minute timeframe.  
 Best Practices & Recommendations   
 Use with Other Tools:  This indicator is most powerful when combined with your own price action analysis and risk management.  
 Adjust Settings:  Experiment with timeframes, clustering, and methods to suit your trading style and the asset’s volatility.  
 Watch for High Confluence:  Zones with higher confluence and more reactions are generally more significant.  
 Limitations   
 No Future Prediction:  The indicator does not predict future price movement; it highlights areas where price is statistically more likely to react.  
 Not a Standalone System:  Should be used as part of a broader trading plan.  
 Historical Data:  Reaction counts are based on historical price action and may not always repeat.  
 Disclaimer   
This indicator is a technical analysis tool and does not constitute financial advice or a recommendation to buy or sell any asset. Trading involves risk, and past performance is not indicative of future results. Always use proper risk management and consult a financial advisor if needed.  
Bar Statistics - DELTA/OI/TOTAL/BUY/SELL/LONGS/SHORTSBar Statistics - Advanced Volume & Open Interest Analysis
Overview
The Bar Statistics indicator is a comprehensive analytical tool designed to provide traders with detailed insights into market microstructure through advanced volume analysis, open interest tracking, and market flow detection. This indicator transforms complex market data into easily digestible visual information, displaying six key metrics in customizable colored boxes that update in real-time.
Unlike traditional volume indicators that only show basic volume data, this indicator combines multiple data sources to reveal the underlying forces driving price movement, including volume delta calculations from lower timeframes, open interest changes, and estimated market positioning.
What Makes This Indicator Unique
1. Multi-Timeframe Volume Delta Precision
The indicator utilizes lower timeframe data (default 1-second) to calculate highly accurate volume delta measurements, providing much more precise buy/sell pressure analysis than standard timeframe-based calculations. This approach captures intraday volume dynamics that are often missed by conventional indicators.
2. Real-Time Updates
Unlike many indicators that only update on bar completion, this tool provides live updates for the developing candle, allowing traders to see evolving market conditions as they happen.
3. Market Flow Analysis
The unique "L/S" (Long/Short) metric combines open interest changes with price/volume direction to estimate net market positioning, helping identify when participants are accumulating or distributing positions.
4. Adaptive Visual Intensity
The gradient color system automatically adjusts based on historical context, making it easy to identify when current values are significant relative to recent market activity.
5. Complete Customization
Every aspect of the display can be customized, from the order of metrics to individual color schemes, allowing traders to adapt the tool to their specific analysis needs.
6.All In One Solution
6 Metrics in one indicator no more using 5 different indicators.
Core Features Explained
DELTA (Volume Delta)
What it shows: Net difference between aggressive buy volume and aggressive sell volume
Calculation: Uses lower timeframe data to determine whether each trade was initiated by buyers or sellers
Interpretation:
Positive values indicate aggressive buying pressure
Negative values indicate aggressive selling pressure
Magnitude indicates the strength of directional pressure
OI Δ (Open Interest Change)
What it shows: Change in open interest from the previous bar
Data source: Fetches open interest data using the "_OI" symbol suffix
Interpretation:
Positive values indicate new positions entering the market
Negative values indicate positions being closed
Combined with price direction, reveals market participant behavior
L/S (Net Long/Short Bias)
What it shows: Estimated net change in long vs short market positions
Calculation method: Combines open interest changes with price/volume direction using configurable logic
Scenarios analyzed:
New Longs: Rising OI + Rising Price/Volume = Long position accumulation
Liquidated Longs: Falling OI + Falling Price/Volume = Long position exits
New Shorts: Rising OI + Falling Price/Volume = Short position accumulation
Covered Shorts: Falling OI + Rising Price/Volume = Short position exits
Result: Net bias toward long (positive) or short (negative) market sentiment
TOTAL (Total Volume)
What it shows: Standard volume for the current bar
Purpose: Provides context for other metrics and baseline activity measurement
Enhanced display: Uses gradient intensity based on recent volume history
BUY (Estimated Buy Volume)
What it shows: Estimated aggressive buy volume
Calculation: (Total Volume + Delta) / 2
Use case: Helps quantify the actual buying pressure in monetary/contract terms
SELL (Estimated Sell Volume)
What it shows: Estimated aggressive sell volume
Calculation: (Total Volume - Delta) / 2
Use case: Helps quantify the actual selling pressure in monetary/contract terms
Configuration Options
Timeframe Settings
Custom Timeframe Toggle: Enable/disable custom lower timeframe selection
Timeframe Selection: Choose the precision level for volume delta calculations
Auto-Selection Logic: Automatically selects optimal timeframe based on chart timeframe
Net Positions Calculation
Direction Method: Choose between Price-based or Volume Delta-based direction determination
Value Method: Select between Open Interest Change or Volume for position size calculations
Display Customization
Row Order: Completely customize which metrics appear and in what order (6 positions available)
Color Schemes: Individual color selection for positive/negative values of each metric
Gradient Intensity: Configurable lookback period (10-200 bars) for relative intensity calculations
Visual Elements
Box Format: Clean, professional box display with clear labels
Color Coding: Intuitive color schemes with customizable transparency gradients
Real-time Updates: Live updating for developing candles with historical stability
How to Use This Indicator
For Day Traders
Volume Confirmation: Use DELTA to confirm breakout validity - strong directional moves should show corresponding volume delta
Entry Timing: Watch for volume delta divergences at key levels to time entries
Exit Signals: Monitor when aggressive volume shifts against your position
For Swing Traders
Market Flow: Focus on the L/S metric to identify when participants are accumulating or distributing
Open Interest Analysis: Use OI Δ to confirm whether moves are backed by new money or position adjustments
Trend Validation: Combine multiple metrics to validate trend strength and sustainability
For Scalpers
Real-time Edge: Utilize the live updates to see developing imbalances before bar completion
Quick Decision Making: Focus on DELTA and BUY/SELL for immediate market pressure assessment
Volume Profile: Use TOTAL volume context for optimal entry/exit sizing
Setup Recommendations
Futures Markets: Enable OI tracking and use Volume Delta direction method
Crypto Markets: Focus on DELTA and volume metrics; OI may not be available
Stock Markets: Use Price direction method with volume value calculations
High-Frequency Analysis: Set lower timeframe to 1S for maximum precision
Technical Implementation
Data Accuracy
Utilizes TradingView's ta.requestVolumeDelta() function for precise buy/sell classification
Implements error checking for data availability
Handles missing data gracefully with fallback calculations
Performance Optimization
Efficient array management with configurable lookback periods
Smart box creation and deletion to prevent memory issues
Optimized real-time updates without historical data corruption
Compatibility
Works on all timeframes from seconds to daily
Compatible with futures, forex, crypto, and stock markets
Automatically adjusts calculation methods based on available data
Risk Disclaimers
This indicator is designed for educational and analytical purposes. It provides statistical analysis of market data but does not guarantee trading success. Users should:
Combine with other forms of analysis
Practice proper risk management
Understand that past performance doesn't predict future results
Be aware that volume delta and open interest data quality varies by market and data provider
Conclusion
The Bar Statistics indicator represents a significant advancement in retail trader access to professional-grade market analysis tools. By combining multiple data sources into a single, customizable display, it provides the depth of analysis needed for comprehensive market microstructure understanding while maintaining the simplicity required for effective decision-making.
Multy Dynamic POCThis script displays up to 4 independent Point of Control (POC) levels based on volume profile logic.
📌 Each POC can be configured individually:
Period options: Daily (D), Weekly (W), Monthly (M), or BARS (rolling bar window).
Dynamic recalculation when the period changes (e.g., new day/week/month or custom bar count).
Price-anchored lines for each POC level that scale correctly with the chart.
Customizable line color and thickness.
🔍 How it works:
For each active POC line, the script builds a simple volume distribution based on the candle’s average price (hl2) and volume.
The price range is split into 100 buckets. The one with the highest accumulated volume is selected as the Point of Control (POC).
In BARS mode, POC is recalculated every N bars. In D/W/M modes, it resets exactly at the beginning of a new period (according to TradingView’s time() function).
✅ Useful for:
Traders applying volume profile analysis without needing the full built-in volume profile tool.
Spotting dynamic high-volume zones in trends or ranges.
Strategy development or confirmation around high-interest price levels.
_______________________________________________________________________________
Данный индикатор отображает до 4 независимых уровней Point of Control (POC), рассчитанных по объёмам.
📌 Каждый POC можно настраивать отдельно:
Периоды: День (D), Неделя (W), Месяц (M) или BARS (скользящее окно по количеству баров).
Автоматический пересчёт при смене периода (например, новый день, неделя или месяц).
Линии POC привязаны к цене и масштабируются вместе с графиком.
Настраиваемый цвет и толщина линий.
🔍 Как работает:
Для каждой активной линии POC создаётся объёмное распределение: берется средняя цена свечи (hl2) и объем.
Диапазон цен делится на 100 уровней. Тот, где накоплено больше всего объёма, и есть POC.
В режиме BARS уровень пересчитывается каждые N баров. В режимах D/W/M — строго в начале нового периода.
✅ Подходит для:
Трейдеров, использующих объёмный анализ, но не имеющих платной подписки на Volume Profile.
Поиска уровней интереса и подтверждения сигналов.
Разработки стратегий с опорой на объём.
Profile Any Indicator [Kioseff Trading]Create a visible-range profile for almost any indicator! 
Hello! 
This script "Profile Any Indicator" allows you to create a  visible-range profile  for *almost* any indicator hosted on TradingView. 
Therefore, the only requirement:
1. Indicator must have a retrievable plot value.
Should your indicator have a retrievable plot value (most indicators do), you can use this script to create a visible-range profile of its values!
Consequently, the profile's always oriented to the left-most or right-most side of your chart - updating as you scroll left or right.
  
The image above shows me using the indicator to create a profile for MACD. I am largely zoomed out and the profile has adjusted to chart orientation.
Let's zoom in and see what happens!
  
Voila! 
The indicator adjusted to my chart positioning and created a new visible-range profile! No manual adjustments are required (:
 Instructions 
 1. Load the indicator you'd like to profile on the chart. 
  
The image above shows me applying the OBV indicator to the chart. Additionally, the "Profile Any Indicator" script is also loaded on the chart, instructing me to add an indicator to its settings.
 2. From the settings for "Profile Any indicator", locate the "Indicator" setting and select the indicator you would like to profile. 
  
The image above shows me selecting the OBV indicator in the settings for  "Profile Any Indicator".
Once steps 1 and 2 are complete you'll have a visible-range profile for the selected indicator on your chart!
  
The image above shows the completion of the process.
 3. Merge the indicator pane or select to plot the selected indicator in the current pane. 
From here, you can select to plot the value of the selected indicator in the current pane or merge the selected indicator's pane (which must stay on the chart) with the pane designated to the "Profile Any Indicator" script.
  
The image above shows the two panes merged.
  
The image above shows the two panes separate. Alternatively, in the settings for "Profile Any Indicator", I selected to plot OBV in its pane.
  
You can select to populate the visible-range profile on the right of the chart!
Additionally, you can modify the POC line, value area %, and, essentially, any parameter you'd find for a volume-profile-like indicator!
Thanks for checking this out (:
Game Theory Trading StrategyGame Theory Trading Strategy: Explanation and Working Logic
This Pine Script (version 5) code implements a trading strategy named "Game Theory Trading Strategy" in TradingView. Unlike the previous indicator, this is a full-fledged strategy with automated entry/exit rules, risk management, and backtesting capabilities. It uses Game Theory principles to analyze market behavior, focusing on herd behavior, institutional flows, liquidity traps, and Nash equilibrium to generate buy (long) and sell (short) signals. Below, I'll explain the strategy's purpose, working logic, key components, and usage tips in detail.
1. General Description
Purpose: The strategy identifies high-probability trading opportunities by combining Game Theory concepts (herd behavior, contrarian signals, Nash equilibrium) with technical analysis (RSI, volume, momentum). It aims to exploit market inefficiencies caused by retail herd behavior, institutional flows, and liquidity traps. The strategy is designed for automated trading with defined risk management (stop-loss/take-profit) and position sizing based on market conditions.
Key Features:
Herd Behavior Detection: Identifies retail panic buying/selling using RSI and volume spikes.
Liquidity Traps: Detects stop-loss hunting zones where price breaks recent highs/lows but reverses.
Institutional Flow Analysis: Tracks high-volume institutional activity via Accumulation/Distribution and volume spikes.
Nash Equilibrium: Uses statistical price bands to assess whether the market is in equilibrium or deviated (overbought/oversold).
Risk Management: Configurable stop-loss (SL) and take-profit (TP) percentages, dynamic position sizing based on Game Theory (minimax principle).
Visualization: Displays Nash bands, signals, background colors, and two tables (Game Theory status and backtest results).
Backtesting: Tracks performance metrics like win rate, profit factor, max drawdown, and Sharpe ratio.
Strategy Settings:
Initial capital: $10,000.
Pyramiding: Up to 3 positions.
Position size: 10% of equity (default_qty_value=10).
Configurable inputs for RSI, volume, liquidity, institutional flow, Nash equilibrium, and risk management.
Warning: This is a strategy, not just an indicator. It executes trades automatically in TradingView's Strategy Tester. Always backtest thoroughly and use proper risk management before live trading.
2. Working Logic (Step by Step)
The strategy processes each bar (candle) to generate signals, manage positions, and update performance metrics. Here's how it works:
a. Input Parameters
The inputs are grouped for clarity:
Herd Behavior (🐑):
RSI Period (14): For overbought/oversold detection.
Volume MA Period (20): To calculate average volume for spike detection.
Herd Threshold (2.0): Volume multiplier for detecting herd activity.
Liquidity Analysis (💧):
Liquidity Lookback (50): Bars to check for recent highs/lows.
Liquidity Sensitivity (1.5): Volume multiplier for trap detection.
Institutional Flow (🏦):
Institutional Volume Multiplier (2.5): For detecting large volume spikes.
Institutional MA Period (21): For Accumulation/Distribution smoothing.
Nash Equilibrium (⚖️):
Nash Period (100): For calculating price mean and standard deviation.
Nash Deviation (0.02): Multiplier for equilibrium bands.
Risk Management (🛡️):
Use Stop-Loss (true): Enables SL at 2% below/above entry price.
Use Take-Profit (true): Enables TP at 5% above/below entry price.
b. Herd Behavior Detection
RSI (14): Checks for extreme conditions:
Overbought: RSI > 70 (potential herd buying).
Oversold: RSI < 30 (potential herd selling).
Volume Spike: Volume > SMA(20) x 2.0 (herd_threshold).
Momentum: Price change over 10 bars (close - close ) compared to its SMA(20).
Herd Signals:
Herd Buying: RSI > 70 + volume spike + positive momentum = Retail buying frenzy (red background).
Herd Selling: RSI < 30 + volume spike + negative momentum = Retail selling panic (green background).
c. Liquidity Trap Detection
Recent Highs/Lows: Calculated over 50 bars (liquidity_lookback).
Psychological Levels: Nearest round numbers (e.g., $100, $110) as potential stop-loss zones.
Trap Conditions:
Up Trap: Price breaks recent high, closes below it, with a volume spike (volume > SMA x 1.5).
Down Trap: Price breaks recent low, closes above it, with a volume spike.
Visualization: Traps are marked with small red/green crosses above/below bars.
d. Institutional Flow Analysis
Volume Check: Volume > SMA(20) x 2.5 (inst_volume_mult) = Institutional activity.
Accumulation/Distribution (AD):
Formula: ((close - low) - (high - close)) / (high - low) * volume, cumulated over time.
Smoothed with SMA(21) (inst_ma_length).
Accumulation: AD > MA + high volume = Institutions buying.
Distribution: AD < MA + high volume = Institutions selling.
Smart Money Index: (close - open) / (high - low) * volume, smoothed with SMA(20). Positive = Smart money buying.
e. Nash Equilibrium
Calculation:
Price mean: SMA(100) (nash_period).
Standard deviation: stdev(100).
Upper Nash: Mean + StdDev x 0.02 (nash_deviation).
Lower Nash: Mean - StdDev x 0.02.
Conditions:
Near Equilibrium: Price between upper and lower Nash bands (stable market).
Above Nash: Price > upper band (overbought, sell potential).
Below Nash: Price < lower band (oversold, buy potential).
Visualization: Orange line (mean), red/green lines (upper/lower bands).
f. Game Theory Signals
The strategy generates three types of signals, combined into long/short triggers:
Contrarian Signals:
Buy: Herd selling + (accumulation or down trap) = Go against retail panic.
Sell: Herd buying + (distribution or up trap).
Momentum Signals:
Buy: Below Nash + positive smart money + no herd buying.
Sell: Above Nash + negative smart money + no herd selling.
Nash Reversion Signals:
Buy: Below Nash + rising close (close > close ) + volume > MA.
Sell: Above Nash + falling close + volume > MA.
Final Signals:
Long Signal: Contrarian buy OR momentum buy OR Nash reversion buy.
Short Signal: Contrarian sell OR momentum sell OR Nash reversion sell.
g. Position Management
Position Sizing (Minimax Principle):
Default: 1.0 (10% of equity).
In Nash equilibrium: Reduced to 0.5 (conservative).
During institutional volume: Increased to 1.5 (aggressive).
Entries:
Long: If long_signal is true and no existing long position (strategy.position_size <= 0).
Short: If short_signal is true and no existing short position (strategy.position_size >= 0).
Exits:
Stop-Loss: If use_sl=true, set at 2% below/above entry price.
Take-Profit: If use_tp=true, set at 5% above/below entry price.
Pyramiding: Up to 3 concurrent positions allowed.
h. Visualization
Nash Bands: Orange (mean), red (upper), green (lower).
Background Colors:
Herd buying: Red (90% transparency).
Herd selling: Green.
Institutional volume: Blue.
Signals:
Contrarian buy/sell: Green/red triangles below/above bars.
Liquidity traps: Red/green crosses above/below bars.
Tables:
Game Theory Table (Top-Right):
Herd Behavior: Buying frenzy, selling panic, or normal.
Institutional Flow: Accumulation, distribution, or neutral.
Nash Equilibrium: In equilibrium, above, or below.
Liquidity Status: Trap detected or safe.
Position Suggestion: Long (green), Short (red), or Wait (gray).
Backtest Table (Bottom-Right):
Total Trades: Number of closed trades.
Win Rate: Percentage of winning trades.
Net Profit/Loss: In USD, colored green/red.
Profit Factor: Gross profit / gross loss.
Max Drawdown: Peak-to-trough equity drop (%).
Win/Loss Trades: Number of winning/losing trades.
Risk/Reward Ratio: Simplified Sharpe ratio (returns / drawdown).
Avg Win/Loss Ratio: Average win per trade / average loss per trade.
Last Update: Current time.
i. Backtesting Metrics
Tracks:
Total trades, winning/losing trades.
Win rate (%).
Net profit ($).
Profit factor (gross profit / gross loss).
Max drawdown (%).
Simplified Sharpe ratio (returns / drawdown).
Average win/loss ratio.
Updates metrics on each closed trade.
Displays a label on the last bar with backtest period, total trades, win rate, and net profit.
j. Alerts
No explicit alertconditions defined, but you can add them for long_signal and short_signal (e.g., alertcondition(long_signal, "GT Long Entry", "Long Signal Detected!")).
Use TradingView's alert system with Strategy Tester outputs.
3. Usage Tips
Timeframe: Best for H1-D1 timeframes. Shorter frames (M1-M15) may produce noisy signals.
Settings:
Risk Management: Adjust sl_percent (e.g., 1% for volatile markets) and tp_percent (e.g., 3% for scalping).
Herd Threshold: Increase to 2.5 for stricter herd detection in choppy markets.
Liquidity Lookback: Reduce to 20 for faster markets (e.g., crypto).
Nash Period: Increase to 200 for longer-term analysis.
Backtesting:
Use TradingView's Strategy Tester to evaluate performance.
Check win rate (>50%), profit factor (>1.5), and max drawdown (<20%) for viability.
Test on different assets/timeframes to ensure robustness.
Live Trading:
Start with a demo account.
Combine with other indicators (e.g., EMAs, support/resistance) for confirmation.
Monitor liquidity traps and institutional flow for context.
Risk Management:
Always use SL/TP to limit losses.
Adjust position_size for risk tolerance (e.g., 5% of equity for conservative trading).
Avoid over-leveraging (pyramiding=3 can amplify risk).
Troubleshooting:
If no trades are executed, check signal conditions (e.g., lower herd_threshold or liquidity_sensitivity).
Ensure sufficient historical data for Nash and liquidity calculations.
If tables overlap, adjust position.top_right/bottom_right coordinates.
4. Key Differences from the Previous Indicator
Indicator vs. Strategy: The previous code was an indicator (VP + Game Theory Integrated Strategy) focused on visualization and alerts. This is a strategy with automated entries/exits and backtesting.
Volume Profile: Absent in this strategy, making it lighter but less focused on high-volume zones.
Wick Analysis: Not included here, unlike the previous indicator's heavy reliance on wick patterns.
Backtesting: This strategy includes detailed performance metrics and a backtest table, absent in the indicator.
Simpler Signals: Focuses on Game Theory signals (contrarian, momentum, Nash reversion) without the "Power/Ultra Power" hierarchy.
Risk Management: Explicit SL/TP and dynamic position sizing, not present in the indicator.
5. Conclusion
The "Game Theory Trading Strategy" is a sophisticated system leveraging herd behavior, institutional flows, liquidity traps, and Nash equilibrium to trade market inefficiencies. It’s designed for traders who understand Game Theory principles and want automated execution with robust risk management. However, it requires thorough backtesting and parameter optimization for specific markets (e.g., forex, crypto, stocks). The backtest table and visual aids make it easy to monitor performance, but always combine with other analysis tools and proper capital management.
If you need help with backtesting, adding alerts, or optimizing parameters, let me know!
Liquidity Break Probability [PhenLabs]📊 Liquidity Break Probability  
 Version:  PineScript™ v6
The Liquidity Break Probability indicator revolutionizes how traders approach liquidity levels by providing real-time probability calculations for level breaks. This advanced indicator combines sophisticated market analysis with machine learning inspired probability models to predict the likelihood of high/low breaks before they happen.
Unlike traditional liquidity indicators that simply draw lines, LBP analyzes market structure, volume profiles, momentum, volatility, and sentiment to generate dynamic break probabilities ranging from 5% to 95%. This gives traders unprecedented insight into which levels are most likely to hold or break, enabling more confident trading decisions.
 🚀 Points of Innovation 
 
  Advanced 6-factor probability model weighing market structure, volatility, volume, momentum, patterns, and sentiment
  Real-time probability updates that adjust as market conditions change
  Intelligent trading style presets (Scalping, Day Trading, Swing Trading) with optimized parameters
  Dynamic color-coded probability labels showing break likelihood percentages
  Professional tiered input system - from quick setup to expert-level customization
  Smart volume filtering that only highlights levels with significant institutional interest
 
 🔧 Core Components 
 
   Market Structure Analysis:  Evaluates trend alignment, level strength, and momentum buildup using EMA crossovers and price action
   Volatility Engine:  Incorporates ATR expansion, Bollinger Band positioning, and price distance calculations
   Volume Profile System:  Analyzes current volume strength, smart money proxies, and level creation volume ratios
   Momentum Calculator:  Combines RSI positioning, MACD strength, and momentum divergence detection
   Pattern Recognition:  Identifies reversal patterns (doji, hammer, engulfing) near key levels
   Sentiment Analysis:  Processes fear/greed indicators and market breadth measurements
 
 🔥 Key Features 
 
   Dynamic Probability Labels:  Real-time percentage displays showing break probability with color coding (red >70%, orange >50%, white <50%)
   Trading Style Optimization:  One-click presets automatically configure sensitivity and parameters for your trading timeframe
   Professional Dashboard:  Live market state monitoring with nearest level tracking and active level counts
   Smart Alert System:  Customizable proximity alerts and high-probability break notifications
   Advanced Level Management:  Intelligent line cleanup and historical analysis options
   Volume-Validated Levels:  Only displays levels backed by significant volume for institutional-grade analysis
 
 🎨 Visualization 
 
   Recent Low Lines:  Red lines marking validated support levels with probability percentages
   Recent High Lines:  Blue lines showing resistance zones with break likelihood indicators
   Probability Labels:  Color-coded percentage labels that update in real-time
   Professional Dashboard:  Customizable panel showing market state, active levels, and current price
   Clean Display Modes:  Toggle between active-only view for clean charts or historical view for analysis
 
 📖 Usage Guidelines 
 Quick Setup 
 
   Trading Style Preset 
    Default: Day Trading
    Options: Scalping, Day Trading, Swing Trading, Custom
    Description: Automatically optimizes all parameters for your preferred trading timeframe and style
   Show Break Probability % 
    Default: True
    Description: Displays percentage labels next to each level showing break probability
   Line Display 
    Default: Active Only
    Options: Active Only, All Levels
    Description: Choose between clean active-only view or comprehensive historical analysis
 
 Level Detection Settings 
 
   Level Sensitivity 
    Default: 5
    Range: 1-20
    Description: Lower values show more levels (sensitive), higher values show fewer levels (selective)
   Volume Filter Strength 
    Default: 2.0
    Range: 0.5-5.0
    Description: Controls minimum volume threshold for level validation
 
 Advanced Probability Model 
 
   Market Trend Influence 
    Default: 25%
    Range: 0-50%
    Description: Weight given to overall market trend in probability calculations
   Volume Influence 
    Default: 20%
    Range: 0-50%
    Description: Impact of volume analysis on break probability
 
 ✅ Best Use Cases 
 
  Identifying high-probability breakout setups before they occur
  Determining optimal entry and exit points near key levels
  Risk management through probability-based position sizing
  Confluence trading when multiple high-probability levels align
  Scalping opportunities at levels with low break probability
  Swing trading setups using high-probability level breaks
 
 ⚠️ Limitations 
 
  Probability calculations are estimations based on historical patterns and current market conditions
  High-probability setups do not guarantee successful trades - risk management is essential
  Performance may vary significantly across different market conditions and asset classes
  Requires understanding of support/resistance concepts and probability-based trading
  Best used in conjunction with other analysis methods and proper risk management
 
 💡 What Makes This Unique 
 
   Probability-Based Approach:  First indicator to provide quantitative break probabilities rather than simple S/R lines
   Multi-Factor Analysis:  Combines 6 different market factors into a comprehensive probability model
   Adaptive Intelligence:  Probabilities update in real-time as market conditions change
   Professional Interface:  Tiered input system from beginner-friendly to expert-level customization
   Institutional-Grade Filtering:  Volume validation ensures only significant levels are displayed
 
 🔬 How It Works 
1.  Level Detection: 
    
     Identifies pivot highs and lows using configurable sensitivity settings
     Validates levels with volume analysis to ensure institutional significance
    
2.  Probability Calculation: 
    
     Analyzes 6 key market factors: structure, volatility, volume, momentum, patterns, sentiment
     Applies weighted scoring system based on user-defined factor importance
     Generates probability score from 5% to 95% for each level
    
3.  Real-Time Updates: 
    
     Continuously monitors price action and market conditions
     Updates probability calculations as new data becomes available
     Adjusts for level touches and changing market dynamics
    
 💡 Note:  This indicator works best on timeframes from 1-minute to 4-hour charts. For optimal results, combine with proper risk management and consider multiple timeframe analysis. The probability calculations are most accurate in trending markets with normal to high volatility conditions.






















