Fixed-Range Volume-Profile ZonesFixed Range Volume Profile Zones (with Dynamic Percentile Buffers) 
This indicator calculates a fixed‑range volume profile over a user‑defined lookback period and identifies three key zones:
 – VAL (Value Area Low)
– POC (Point of Control)
– VAH (Value Area High) 
Volume is grouped into user‑selected price bins to create a profile of where the most trading activity occurred.
The script then splits the distribution into three zones and highlights the extremes (VAL/VAH) and the highest‑volume price (POC).
 Dynamic Percentile Buffers 
Instead of static offsets, this version computes the 10th and 90th percentile prices (user‑adjustable) of recent closes over the same lookback window.
These percentiles are used to create adaptive buffers above VAH and below VAL.
The buffers automatically expand or contract with market volatility and recent price distribution, filtering out weak or noisy touches.
 Visual Elements: 
– Green/orange/red horizontal lines = VAL / VAH / POC
– Green shading below VAL = buy zone
– Red shading above VAH = sell zone
– Down arrows above bars = closes above VAH + buffer
– Up arrows below bars = closes below VAL – buffer
 Inputs: 
– Lookback Days: number of bars used to build the profile
– Number of Bins: controls resolution of the volume profile
– VAH Percentile and VAL Percentile: choose which percentile levels to use for dynamic buffers
 Use Cases: 
– Quickly identify areas of high participation (POC) and potential support/resistance (VAL/VAH)
– Filter out weak breakouts using dynamic buffers
– Combine with other signals to improve entries/exits
 ⚠️ Disclaimer: 
This script is for educational and informational purposes only.
It does not constitute financial advice or a recommendation to buy or sell any security.
Past performance or historical data does not guarantee future results.
Always perform your own analysis and use risk management when trading.
Volume-profile
Volume Profile Auto POC📌 Overview 
Volume Profile Auto POC is a trend-following strategy that uses the automatically calculated Point of Control (POC) from the volume profile, combined with ATR zones, to capture reversals and breakouts.
By basing decisions on volume concentration, it dynamically visualizes the price levels most watched by market participants.
⚠️ This strategy is provided for educational and research purposes only.
Past performance does not guarantee future results.
 🎯 Strategy Objectives 
 
  Automatically detect the volume concentration area (POC) to improve entry accuracy
  Optimize risk management through ATR-based volatility adjustment
  Provide early and consistent signals when trends emerge
 
 ✨ Key Features 
 
   Automatic POC Detection : Updates the volume profile over a defined lookback window in real time
   ATR Zone Integration : Defines a POC ± 0.5 ATR zone to clarify potential reversals/breakouts
   Visual Support : Plots the POC line and zones on the chart for intuitive decision-making
 
 📊 Trading Rules 
Long Entry:
Price breaks above the POC + 0.5 ATR zone
Volume is above average to support the breakout
Short Entry:
Price breaks below the POC - 0.5 ATR zone
Volume is above average to support the downside move
Exit (or Reverse Position):
Price returns to the POC area
Or touches the ATR band
 ⚙️ Trading Parameters & Considerations 
Indicator Name: Volume Profile Auto POC
Parameters:
 
  Lookback Bars: 50
  Bins for Volume Profile: 24
  ATR Length: 14
  ATR Multiplier: 2.0
 
 🖼 Visual Support 
POC line plotted in red
POC ± 0.5 ATR zone displayed as a semi-transparent box
ATR bands plotted in blue for confirmation
 🔧 Strategy Improvements & Uniqueness 
This strategy is inspired by traditional Volume Profile + ATR analysis,
while adding the improvement of a sliding-window mechanism for automatic POC updates.
Compared with conventional trend-following approaches,
its strength lies in combining both price and volume perspectives for decision-making.
 ✅ Summary 
Volume Profile Auto POC automatically extracts key market levels (POC) and combines them with ATR-based zones,
providing a responsive trend-following method.
It balances clarity with practicality, aiming for both usability and reproducibility.
⚠️ This strategy is based on historical data and does not guarantee future profits.
Always use proper risk management when applying it.
POC Migration Velocity (POC-MV) [PhenLabs]📊POC Migration Velocity (POC-MV)  
Version: PineScript™v6
 📌Description 
The POC Migration Velocity indicator revolutionizes market structure analysis by tracking the movement, speed, and acceleration of Point of Control (POC) levels in real-time. This tool combines sophisticated volume distribution estimation with velocity calculations to reveal hidden market dynamics that conventional indicators miss.
POC-MV provides traders with unprecedented insight into volume-based price movement patterns, enabling the early identification of continuation and exhaustion signals before they become apparent to the broader market. By measuring how quickly and consistently the POC migrates across price levels, traders gain early warning signals for significant market shifts and can position themselves advantageously.
The indicator employs advanced algorithms to estimate intra-bar volume distribution without requiring lower timeframe data, making it accessible across all chart timeframes while maintaining sophisticated analytical capabilities.
 🚀Points of Innovation 
 
 Micro-POC calculation using advanced OHLC-based volume distribution estimation
 Real-time velocity and acceleration tracking normalized by ATR for cross-market consistency
 Persistence scoring system that quantifies directional consistency over multiple periods
 Multi-signal detection combining continuation patterns, exhaustion signals, and gap alerts
 Dynamic color-coded visualization system with intensity-based feedback
 Comprehensive customization options for resolution, periods, and thresholds
 
 🔧Core Components 
 
 POC Calculation Engine: Estimates volume distribution within each bar using configurable price bands and sophisticated weighting algorithms
 Velocity Measurement System: Tracks the rate of POC movement over customizable lookback periods with ATR normalization
 Acceleration Calculator: Measures the rate of change of velocity to identify momentum shifts in POC migration
 Persistence Analyzer: Quantifies how consistently POC moves in the same direction using exponential weighting
 Signal Detection Framework: Combines trend analysis, velocity thresholds, and persistence requirements for signal generation
 Visual Rendering System: Provides dynamic color-coded lines and heat ribbons based on velocity and price-POC relationships
 
 🔥Key Features 
 
 Real-time POC calculation with 10-100 configurable price bands for optimal precision
 Velocity tracking with customizable lookback periods from 5 to 50 bars
 Acceleration measurement for detecting momentum changes in POC movement
 Persistence scoring to validate signal strength and filter false signals
 Dynamic visual feedback with blue/orange color scheme indicating bullish/bearish conditions
 Comprehensive alert system for continuation patterns, exhaustion signals, and POC gaps
 Adjustable information table displaying real-time metrics and current signals
 Heat ribbon visualization showing price-POC relationship intensity
 Multiple threshold settings for customizing signal sensitivity
 Export capability for use with separate panel indicators
 
 🎨Visualization 
 
 POC Connecting Lines: Color-coded lines showing POC levels with intensity based on velocity magnitude
 Heat Ribbon: Dynamic colored ribbon around price showing POC-price basis intensity
 Signal Markers: Clear exhaustion top/bottom signals with labeled shapes
 Information Table: Real-time display of POC value, velocity, acceleration, basis, persistence, and current signal status
 Color Gradients: Blue gradients for bullish conditions, orange gradients for bearish conditions
 
 📖Usage Guidelines 
POC Calculation Settings
 
 POC Resolution (Price Bands): Default 20, Range 10-100. Controls the number of price bands used to estimate volume distribution within each bar
 Volume Weight Factor: Default 0.7, Range 0.1-1.0. Adjusts the influence of volume in POC calculation
 POC Smoothing: Default 3, Range 1-10. EMA smoothing period applied to the calculated POC to reduce noise
 
Velocity Settings
 
 Velocity Lookback Period: Default 14, Range 5-50. Number of bars used to calculate POC velocity
 Acceleration Period: Default 7, Range 3-20. Period for calculating POC acceleration
 Velocity Significance Threshold: Default 0.5, Range 0.1-2.0. Minimum normalized velocity for continuation signals
 
Persistence Settings
 
 Persistence Lookback: Default 5, Range 3-20. Number of bars examined for persistence score calculation
 Persistence Threshold: Default 0.7, Range 0.5-1.0. Minimum persistence score required for continuation signals
 
Visual Settings
 
 Show POC Connecting Lines: Toggle display of colored lines connecting POC levels
 Show Heat Ribbon: Toggle display of colored ribbon showing POC-price relationship
 Ribbon Transparency: Default 70, Range 0-100. Controls transparency level of heat ribbon
 
Alert Settings
 
 Enable Continuation Alerts: Toggle alerts for continuation pattern detection
 Enable Exhaustion Alerts: Toggle alerts for exhaustion pattern detection
 Enable POC Gap Alerts: Toggle alerts for significant POC gaps
 Gap Threshold: Default 2.0 ATR, Range 0.5-5.0. Minimum gap size to trigger alerts
 
 ✅Best Use Cases 
 
 Identifying trend continuation opportunities when POC velocity aligns with price direction
 Spotting potential reversal points through exhaustion pattern detection
 Confirming breakout validity by monitoring POC gap behavior
 Adding volume-based context to traditional technical analysis
 Managing position sizing based on POC-price basis strength
 
 ⚠️Limitations 
 
 POC calculations are estimations based on OHLC data, not true tick-by-tick volume distribution
 Effectiveness may vary in low-volume or highly volatile market conditions
 Requires complementary analysis tools for complete trading decisions
 Signal frequency may be lower in ranging markets compared to trending conditions
 Performance optimization needed for very short timeframes below 1-minute
 
 💡What Makes This Unique 
 
 Advanced Estimation Algorithm: Sophisticated method for calculating POC without requiring lower timeframe data
 Velocity-Based Analysis: Focus on POC movement dynamics rather than static levels
 Comprehensive Signal Framework: Integration of continuation, exhaustion, and gap detection in one indicator
 Dynamic Visual Feedback: Intensity-based color coding that adapts to market conditions
 Persistence Validation: Unique scoring system to filter signals based on directional consistency
 
 🔬How It Works 
 Volume Distribution Estimation: 
 
 Divides each bar into configurable price bands for volume analysis
 Applies sophisticated weighting based on OHLC relationships and proximity to close
 Identifies the price level with maximum estimated volume as the POC
 
 Velocity and Acceleration Calculation: 
 
 Measures POC rate of change over specified lookback periods
 Normalizes values using ATR for consistent cross-market performance
 Calculates acceleration as the rate of change of velocity
 
 Signal Generation Process: 
 
 Combines trend direction analysis using EMA crossovers
 Applies velocity and persistence thresholds to filter signals
 Generates continuation, exhaustion, and gap alerts based on specific criteria
 
 💡Note: 
This indicator provides estimated POC calculations based on available OHLC data and should be used in conjunction with other analysis methods. The velocity-based approach offers unique insights into market structure dynamics but requires proper risk management and complementary analysis for optimal trading decisions.
Advanced Market TheoryADVANCED MARKET THEORY (AMT) 
 This is not an indicator. It is a lens through which to see the true nature of the market. 
Welcome to the definitive application of Auction Market Theory. What you have before you is the culmination of decades of market theory, fused with state-of-the-art data analysis and visual engineering. It is an institutional-grade intelligence engine designed for the serious trader who seeks to move beyond simplistic indicators and understand the fundamental forces that drive price.
This guide is your complete reference. Read it. Study it. Internalize it. The market is a complex story, and this tool is the language with which to read it.
 PART I: THE GRAND THEORY - A UNIVERSE IN AN AUCTION 
 To understand the market, you must first understand its purpose. The market is a mechanism of discovery, organized by a continuous, two-way auction. 
This foundational concept was pioneered by the legendary trader  J. Peter Steidlmayer  at the Chicago Board of Trade in the 1980s. He observed that beneath the chaotic facade of ticking prices lies a beautifully organized structure. The market's primary function is not to go up or down, but to  facilitate trade  by seeking a price level that encourages the maximum amount of interaction between buyers and sellers. This price is "value."
 The Organizing Principle: The Normal Distribution 
Over any given period, the market's activity will naturally form a bell curve (a normal distribution) turned on its side. This is the blueprint of the auction.
 The Point of Control (POC):  This is the peak of the bell curve—the single price level where the most trade occurred. It represents the point of maximum consensus, the "fairest price" as determined by the market participants. It is the gravitational center of the session.
 The Value Area (VA):  This is the heart of the bell curve, typically containing 70% of the session's activity (one standard deviation). This is the zone of "accepted value." Prices within this area are considered fair and are where the market is most comfortable conducting business.
 The Extremes:  The thin areas at the top and bottom of the curve are the "unfair" prices. These are levels where one side of the auction (buyers at the top, sellers at the bottom) was shut off, and trade was quickly rejected. These are areas of emotional trading and excess.
 The Narrative of the Day: Balance vs. Imbalance 
Every trading session is a story of the market's search for value.
 Balance:  When the market rotates and builds a symmetrical, bell-shaped profile, it is in a state of  balance . Buyers and sellers are in agreement, and the market is range-bound.
 Imbalance:  When the market moves decisively away from a balanced area, it is in a state of  imbalance . This is a trend. The market is actively seeking new information and a new area of value because the old one was rejected.
 Your Purpose as a Trader 
Your job is to read this story in real-time. Are we in balance or imbalance? Is the auction succeeding or failing at these new prices?  The Advanced Market Theory engine is your Rosetta Stone to translate this complex narrative into actionable intelligence. 
 PART II: THE AMT ENGINE - AN EVOLUTION IN MARKET VISION 
A standard market profile tool shows you a picture.  The AMT Engine gives you the architect's full schematics, the engineer's stress tests, and the psychologist's behavioral analysis, all at once. 
This is what makes it the Advanced Market Theory. We have fused the timeless principles with layers of modern intelligence:
 TRINITY ANALYSIS:  You can view the market through three distinct lenses. A  Volume Profile  shows where the money traded. A  TPO (Time) Profile  shows where the market spent its time. The revolutionary  Hybrid Profile  fuses both, giving you a complete picture of market conviction—marrying volume with duration.
 AUTOMATED STRUCTURAL DECODING:  The engine acts as your automated analyst, identifying critical structural phenomena in real-time:
 Poor Highs/Lows:  Weak auction points that signal a high probability of reversal.
 Single Prints & Ledges:  Footprints of rapid, aggressive market moves and areas of strong institutional acceptance.
 Day Type Classification:  The engine analyzes the session's personality as it develops ("Trend Day," "Normal Day," etc.), allowing you to adapt your strategy to the market's current character.
 MACRO & MICRO FUSION:  Via the  Composite Profile , the engine merges weeks of data to reveal the major institutional battlegrounds that govern long-term price action. You can see the daily skirmish and the multi-month war on a single chart.
 ORDER FLOW INTELLIGENCE:  The ultimate advancement is the integrated  Cumulative Volume Delta (CVD)  engine. This moves beyond structure to analyze the raw aggression of buyers versus sellers. It is your window into the market's soul, automatically detecting critical  Divergences  that often precede major trend shifts.
 ADAPTIVE SIGNALING:  The engine's signal generation is not static; it is a thinking system. It evaluates setups based on a multi-factor  Confluence Score , understands the market  Regime  (e.g., High Volatility), and adjusts its own confidence ( Probability % ) based on the complete context.
This is not a tool that gives you signals. This is a tool that gives you  understanding .
 PART III: THE VISUAL KEY - A LEXICON OF MARKET STRUCTURE 
Every element on your chart is a piece of information. This is your guide to reading it fluently.
 --- THE CORE ARCHITECTURE --- 
 The Profile Histogram:  The primary visual on the left of each session. Its shape is the story. A thin profile is a trend; a fat, symmetrical profile is balance.
 Blue Box  :  The zone of accepted, "fair" value. The heart of the session's business.
 Bright Orange Line & Label  :   The Point of Control.  The gravitational center. The price of maximum consensus. The most significant intraday level.
 Dashed Blue Lines & Labels  :  The boundaries of value. Critical inflection points where the market decides to either remain in balance or seek value elsewhere.
 Dashed Cyan Lines & Labels  :  The major, long-term structural levels derived from weeks of data. These are institutional reference points and carry immense weight. Treat them as primary support and resistance.
 Dashed Orange Lines & Labels  :  Marks a  Poor  or  Unfinished Auction . These represent emotional, weak extremes and are high-probability targets for future price action.
 Diamond Markers  :  Mark  Single Prints , which are footprints of aggressive, one-sided moves that left a "liquidity vacuum." Price is often drawn back to these levels to "repair" the poor structure.
 Arrow Markers  :  Mark  Ledges , which are areas of strong horizontal acceptance. They often act as powerful support/resistance in the future.
 Dotted Gray Lines & Labels  :  The projected daily range based on multiples of the  Initial Balance . Use them to set realistic profit targets and gauge the day's potential.
 --- THE SIGNAL SUITE --- 
 Colored Triangles  :  These are your high-probability entry signals. The color is a strategic playbook:
 Gold Triangle  :   ELITE Signal.  An A+ setup with overwhelming confluence. This is the highest quality signal the engine can produce.
 Yellow Triangle  :   FADE Signal.  A counter-trend setup against an exhausted move at a structural extreme.
 Cyan Triangle  :   BREAKOUT Signal.  A momentum setup attempting to capitalize on a breakout from the value area.
 Purple Triangle  :   ROTATION Signal.  A mean-reversion setup within the value area, typically from one edge towards the POC.
 Magenta Triangle  :   LIQUIDITY Signal.  A sophisticated setup that identifies a "stop run" or liquidity sweep.
 Percentage   Number:  The engine's calculated  probability of success . This is not a guarantee, but a data-driven confidence score.
 Dotted Gray Line:  The signal's  Entry Price .
 Dashed Green Lines:  The calculated  Take Profit Targets .
 Dashed Red Line:  The calculated  Stop Loss  level.
 PART IV: THE DASHBOARD - YOUR STRATEGIC COMMAND CENTER 
The dashboard is your real-time intelligence briefing. It synthesizes all the engine's analysis into a clear, concise, and constantly updating summary.
 --- CURRENT SESSION --- 
 POC, VAH, VAL:  The live values for the core structure.
 Profile Shape:  Is the current auction top-heavy ( b-shaped ), bottom-heavy ( P-shaped ), or balanced ( D-shaped )?
 VA Width:  Is the value area  expanding  (trending) or  contracting  (balancing)?
 Day Type:  The engine's judgment on the day's personality. Use this to select the right strategy.
 IB Range & POC Trend:  Key metrics for understanding the opening sentiment and its evolution.
 --- CVD ANALYSIS --- 
 Session CVD:  The raw order flow. Is there more net buying or selling pressure in this session?
 CVD Trend & DIVERGENCE:  This is your order flow intelligence. Is the order flow confirming the price action? If "DIVERGENCE" flashes, it is a critical, high-alert warning of a potential reversal.
 --- MARKET METRICS --- 
 Volume, ATR, RSI:  Your standard contextual metrics, providing a quick read on activity, volatility, and momentum.
 Regime:  The engine's assessment of the broad market environment:  High Volatility  (favor breakouts),  Low Volatility  (favor mean reversion), or  Normal .
 --- PROFILE STATS, COMPOSITE, & STRUCTURE --- 
These sections give you a quick quantitative summary of the profile structure, the major long-term Composite levels, and any active Poor Structures.
 --- SIGNAL TYPES & ACTIVE SIGNAL --- 
A permanent key to the signal colors and their meanings, along with the full details of the most recent active signal: its  Type ,  Probability ,  Entry ,  Stop , and  Target .
 PART V: THE INPUTS MENU - CALIBRATING YOUR LENS 
This engine is designed to be calibrated to your specific needs as a trader. Every input is a lever. This is not a "one size fits all" tool. The extensive tooltips are your built-in user manual, but here are the key areas of focus:
 --- MARKET PROFILE ENGINE --- 
 Profile Mode:  This is the most fundamental choice.  Volume  is the standard for price-based support and resistance.  TPO  is for analyzing time-based acceptance.  Hybrid  is the professional's choice, fusing both for a complete picture.
 Profile Resolution:  This is your zoom lens. Lower values for scalping and intraday precision. Higher values for a cleaner, big-picture view suitable for swing trading.
 Composite Sessions:  Your timeframe for macro analysis. 5-10 sessions for a weekly view; 20-30 sessions for a monthly, structural view.
 --- SESSION & VALUE AREA --- 
These settings must be configured correctly for your specific asset. The  Session  times are critical. The  Initial Balance  should reflect the key opening period for your market (60 minutes is standard for equities).
 --- SIGNAL ENGINE & RISK MANAGEMENT --- 
 Signal Mode:   THIS IS YOUR PERSONAL RISK PROFILE.  Set it to  Conservative  to see only the absolute best A+ setups. Use  Elite  or  Balanced  for a standard approach. Use  Aggressive  only if you are an experienced scalper comfortable with managing more frequent, lower-probability setups.
 ATR Multipliers:  This suite gives you full, dynamic control over your risk/reward parameters. You can precisely define your initial stop loss distance and profit targets based on the market's current volatility.
 A FINAL WORD FROM THE ARCHITECT 
The creation of this engine was a journey into the very heart of market dynamics. It was born from a frustrating truth: that the most profound market theories were often confined to books and expensive institutional platforms, inaccessible to the modern retail trader. The goal was to bridge that gap.
The challenge was monumental. Making each discrete system—the volume profile, the TPO counter, the composite engine, the CVD tracker, the signal generator, the dynamic dashboard—work was a task in itself. But the true struggle, the frustrating, painstaking process that consumed countless hours, was making them work  in unison . It was about ensuring the CVD analysis could intelligently inform the signal engine, that the day type classification could adjust the probability scores, and that the composite levels could provide context to the intraday structure, all in a seamless, real-time dance of data.
This engine is the result of that relentless pursuit of integration. It is built on the belief that a trader's greatest asset is not a signal, but  clarity . It was designed to clear the noise, to organize the chaos, and to present the elegant, underlying logic of the market auction so that you can make better, more informed, and more confident decisions.
It is now in your hands. Use it not as a crutch, but as a lens. See the market for what it truly is.
 "The market can remain irrational longer than you can remain solvent." 
 - John Maynard Keynes 
 DISCLAIMER 
 This script is an advanced analytical tool provided for informational and educational purposes only. It is not financial advice. All trading involves substantial risk, and past performance is not indicative of future results. The signals, probabilities, and metrics generated by this indicator do not constitute a recommendation to buy or sell any financial instrument. You, the user, are solely responsible for all trading decisions, risk management, and outcomes. Use this tool to supplement your own analysis and trading strategy. 
 PUBLISHING CATEGORIES 
 Volume Profile 
 Market Profile 
 Order Flow



