Delta Microstructure AnalysisDelta Microstructure Analysis
Market microstructure analysis using footprint data for divergence, exhaustion, absorption, and trapped trader detection
Overview
Delta Microstructure Analysis is an order flow indicator that uses TradingView's footprint data to identify market conditions including divergences, exhaustion patterns, absorption zones, and trapped trader scenarios. The indicator calculates delta at each bar and tracks cumulative delta to identify potential reversals and continuations.
Key Features
Footprint Data Integration: Uses TradingView's built-in footprint data for accurate buy/sell volume delta calculation. Falls back to synthetic delta calculation when footprint data is unavailable.
Adaptive Tick Calculation: Automatically adjusts footprint tick size based on asset type and timeframe. Baseline values: crypto (200), forex (10), stocks (5), indices/futures (1), with timeframe scaling.
Cumulative Volume Delta (CVD): Tracks cumulative delta with reset options (None, Daily, Fixed Bars) to identify overall buying/selling pressure trends.
Divergence Detection: Identifies bullish and bearish divergences between price action and cumulative delta using configurable pivot strength (3-20 bars).
Exhaustion Pattern Recognition: Detects buying and selling exhaustion when delta exceeds configurable multiplier (2.0-10.0x) of average delta over lookback period (10-100 bars).
Absorption Zone Analysis: Identifies areas where aggressive orders are absorbed by resting liquidity, indicating potential support/resistance zones.
Trapped Trader Detection: Recognizes scenarios with strong initial momentum followed by sharp reversals, suggesting trapped positions.
Visual Labeling System: Displays signals as monospace labels (DIV↑/DIV↓, EXH↑/EXH↓, ABS↑/ABS↓, TRAP↑/TRAP↓) above/below candles.
Info Table Display: Shows current CVD, delta, average delta, data source, and active signals in a monospace-formatted table.
Alert System: Individual alerts for each signal type (divergences, exhaustion, absorption, trapped traders).
How It Works
Footprint Data Request: The indicator requests footprint data using adaptive tick sizing. If unavailable, uses synthetic delta calculation based on candle characteristics.
Delta Calculation: For footprint data, uses fp.delta() function. For synthetic delta, considers body size, wick analysis, and volume characteristics.
Cumulative Delta Tracking: Maintains running cumulative delta that resets based on selected mode (daily session changes or fixed bar intervals).
Pivot Detection: Uses configurable pivot strength to identify significant highs and lows in both price and cumulative delta.
Divergence Analysis: Compares price pivots with cumulative delta pivots. Bullish divergence: lower price lows with higher delta lows. Bearish divergence: higher price highs with lower delta highs.
Exhaustion Detection: Calculates average absolute delta over lookback period and identifies when current delta exceeds multiplier threshold.
Absorption Identification: Analyzes footprint patterns to detect when aggressive orders are met with sufficient resting liquidity.
Trapped Trader Recognition: Identifies strong momentum followed by sharp reversals using proprietary pattern recognition.
Signal Display: Shows signals as labels on chart and summarizes in info table with current market conditions.
Use Cases
Divergence Trading: Use divergence signals to identify potential trend reversals before they appear in price action.
Exhaustion Monitoring: Identify when buying or selling pressure may be exhausted, suggesting potential reversals.
Support/Resistance Levels: Use absorption zones to identify key price levels where institutional activity occurs.
Risk Management: Use trapped trader signals to anticipate sharp reversals and adjust position sizing.
Market Structure Analysis: Understand underlying order flow dynamics driving price movements.
Confirmation Tool: Combine with other technical indicators to confirm signals and improve trade probability.
Settings
Footprint Settings:
Use Footprint Data: Toggle between footprint and synthetic delta
Tick Size Mode: Auto (adaptive) or Manual tick sizing
Tick Density Multiplier: Adjusts price bucket size in footprint data
Manual Footprint Ticks: Custom tick size for Manual mode
CVD Settings:
CVD Reset Mode: None, Daily, or Fixed Bars
Reset Every N Bars: Number of bars between resets (10-1000)
Divergence Settings:
Pivot Strength: Bars required for pivot detection (3-20)
Show Divergence Lines: Toggle line display
Bullish/Bearish Divergence Color: Custom colors
Divergence Line Width: Line thickness (1-5)
Exhaustion Settings:
Delta Multiplier: Threshold multiplier (2.0-10.0)
Lookback for Avg Delta: Period for average calculation (10-100)
Show Exhaustion Markers: Toggle signal display
Display Options:
Show Info Table: Toggle table display
Table Position: Choose table location on chart
Table Styling:
Background, text, and border colors
Header styling options
Label Styling:
Label text color
Alert Settings:
Individual toggles for each signal type
Technical Notes
The indicator uses TradingView's footprint functions (request.footprint(), fp.delta()) for order flow analysis.
Adaptive tick calculation converts all timeframes to minutes for consistent scaling across chart intervals.
Synthetic delta calculation uses body size (70% weight), wick analysis, and body-to-range ratio for fallback when footprint data unavailable.
The indicator uses barstate.isconfirmed for calculations to prevent repainting.
All text displays use monospace font for consistent readability.
Table displays current CVD, delta, average delta, data source, and active signals in real-time.
Best Practices
Use on symbols where footprint data is available for most accurate analysis.
Combine divergence signals with price action for higher probability setups.
Monitor exhaustion signals in context of overall trend direction.
Pay attention to absorption zones at key technical levels.
Use trapped trader signals as early warning for potential reversals.
Adjust pivot strength based on trading timeframe (lower for shorter timeframes).
Consider data source indicator - synthetic delta may be less reliable than footprint data.
Set up alerts for preferred signal types when monitoring multiple symbols.
This indicator analyzes market microstructure using footprint data to identify divergences, exhaustion, absorption, and trapped trader patterns.
Volume
Smart Money Flow Signals [QuantAlgo]🟢 Overview
The Smart Money Flow Signals indicator synthesizes significant volume-price dynamics through multi-component analysis to identify potential accumulation and distribution phases driven by substantial market participants. It combines Money Flow Index momentum, Chaikin Money Flow accumulation patterns, volume-weighted price momentum, and buying/selling pressure metrics into a unified composite oscillator that quantifies periods of concentrated capital movement, helping traders and investors identify conditions where significant volume participants may be actively positioning across multiple market conditions and timeframes.
🟢 How It Works
The indicator's core methodology lies in its weighted composite approach, where multiple volume-price components are calculated sequentially and then integrated to create a comprehensive significant flow activity signal.
First, the Money Flow Index (MFI) is calculated to measure buying and selling pressure by incorporating volume into price momentum analysis:
raw_money_flow = source * volume
positive_flow = source >= source ? raw_money_flow : 0
negative_flow = source < source ? raw_money_flow : 0
positive_money_flow = math.sum(positive_flow, mfi_period)
negative_money_flow = math.sum(negative_flow, mfi_period)
money_flow_index = 100 - 100 / (1 + positive_money_flow / negative_money_flow)
This creates an RSI-style momentum indicator that tracks whether money (price × volume) is flowing into or out of the asset, with values ranging from 0 to 100 where readings above 50 suggest buying pressure dominance.
Then, Chaikin Money Flow (CMF) is computed to evaluate accumulation and distribution by analyzing where prices close within each bar's range, weighted by volume:
money_flow_multiplier = high != low ? (close - low - (high - close)) / (high - low) : 0
money_flow_volume = money_flow_multiplier * volume
volume_sma = ta.sma(volume, trend_period)
chaikin_money_flow = volume_sma != 0 ? ta.sma(money_flow_volume, trend_period) / volume_sma : 0
Positive CMF values indicate accumulation (closes near the high of the range), while negative values indicate distribution (closes near the low of the range), with volume weighting emphasizing periods of significant participation.
Next, Volume Analysis is performed to quantify current volume intensity relative to historical averages:
volume_average = ta.sma(volume, trend_period)
volume_strength = volume_average != 0 ? volume / volume_average : 1
volume_weight = math.log(volume_strength + 1)
The logarithmic transformation creates a volume weight that amplifies signals during high-volume periods while preventing extreme volume spikes from overwhelming the composite calculation.
Following this, Buy/Sell Pressure is quantified by comparing cumulative volume during bullish versus bearish candles:
buying_pressure = math.sum(volume * (close >= open ? 1 : 0), trend_period)
selling_pressure = math.sum(volume * (close < open ? 1 : 0), trend_period)
pressure_ratio = (buying_pressure - selling_pressure) / (buying_pressure + selling_pressure) * 100
This creates a directional pressure ratio that reveals whether significant participants are predominantly buying or selling, expressed as a percentage between -100 (all selling) and +100 (all buying).
Then, Volume-Weighted Momentum is calculated through an exponential smoothing channel that adjusts price deviation based on volume intensity:
exponential_smooth_average = ta.ema(source, momentum_channel_period)
deviation = ta.ema(math.abs(source - exponential_smooth_average), momentum_channel_period)
channel_index = deviation != 0 ? (source - exponential_smooth_average) / (0.015 * deviation) * (1 + volume_weight * 0.5) : 0
This channel index measures how far price has deviated from its exponential average relative to typical deviation, with the volume weight multiplier (1 + volume_weight * 0.5) amplifying the signal when significant volume accompanies the price movement.
Finally, the Composite Wave is constructed by combining all components with specific weighting to create the final oscillator:
momentum_wave = ta.ema(channel_index, trend_period)
money_flow_wave = (money_flow_index - 50) * 1.2
chaikin_flow_wave = chaikin_money_flow * 100
composite_wave = momentum_wave * 0.5 + chaikin_flow_wave * 0.3 + money_flow_wave * 0.2
smoothed_wave = ta.sma(composite_wave, signal_smoothing)
This creates a multi-dimensional volume flow oscillator that combines price-volume momentum, accumulation-distribution patterns, and buying-selling pressure into a single signal, providing traders with probabilistic insights into periods of concentrated market activity and directional bias based on weighted component convergence.
🟢 Signal Interpretation
▶ Positive Values (Above Zero, Green): Composite money flow above equilibrium indicating net accumulation pressure, positive buying volume dominance, and bullish volume-price alignment = Favorable conditions for long positions, significant capital flowing into the asset = Buy/hold opportunities
▶ Negative Values (Below Zero, Red): Composite money flow below equilibrium indicating net distribution pressure, negative selling volume dominance, and bearish volume-price alignment = Unfavorable conditions for long positions, significant capital flowing out of the asset = Sell/short opportunities
▶ Extreme Overbought Zone: Excessive bullish money flow indicating potential accumulation exhaustion, where buying pressure may have reached unsustainable levels with elevated reversal risk = Caution on new longs, potential distribution phase beginning, profit-taking zone for existing positions
▶ Extreme Oversold Zone: Excessive bearish money flow indicating potential distribution exhaustion, where selling pressure may have reached unsustainable levels with elevated reversal risk = Caution on new shorts, potential accumulation phase beginning, buying opportunity zone for contrarian entries
▶ Smoothed Trend Line (White) Alignment: When the smoothed trend line confirms the composite wave direction, it validates the underlying volume-price trend and filters false signals caused by short-term noise
▶ Volume Intensity Correlation: Gradient intensity (color saturation) reflects combined wave strength, volume participation, and directional alignment, where darker/more saturated colors indicate stronger concentrated activity and higher-probability directional moves
🟢 Features
▶ Preconfigured Presets: Three optimized parameter configurations accommodate different trading styles, timeframes, and market analysis approaches.
1. "Default" provides balanced volume flow measurement suitable for swing trading on 4-hour and daily charts, offering moderate responsiveness to money flow shifts with standard RSI-equivalent MFI period and moderate smoothing for most market conditions.
2. "Fast Response" delivers heightened sensitivity optimized for active intraday trading and scalping on 1-minute to 1-hour charts, using compressed calculation periods across all components and minimal smoothing to capture rapid volume flow changes and quick trend shifts as they develop, ideal for early entry/exit opportunities with acceptance of increased signal frequency during consolidation.
3. "Smooth Trend" offers conservative extreme identification ideal for position trading and long-term analysis on daily to weekly charts, employing extended periods across all money flow components with substantial smoothing to filter short-term noise and isolate only strong, sustained accumulation and distribution phases driven by significant volume participants.
▶ Built-in Alerts: Seven alert conditions enable comprehensive automated monitoring of significant money flow transitions and extreme market states.
1. "Bullish Flow" triggers when the composite wave crosses above zero, signaling the shift from distribution to accumulation and concentrated buying activity beginning.
2. "Bearish Flow" activates when the composite wave crosses below zero, signaling the shift from accumulation to distribution and concentrated selling activity starting.
3. "Any Flow Direction Change" provides a combined notification for either bullish or bearish crossover regardless of direction, useful for general money flow momentum shifts.
4. "Extreme Overbought" alerts when the composite wave reaches or exceeds the overbought threshold (default +60), indicating excessive buying pressure and potential exhaustion.
5. "Extreme Oversold" notifies when the composite wave reaches or falls below the oversold threshold (default -60), indicating excessive selling pressure and potential capitulation.
6. "Overbought Reversal" triggers specifically when the wave crosses back down through the overbought level after being extended, signaling the beginning of distribution from extreme levels.
7. "Oversold Reversal" activates when the wave crosses back up through the oversold level after being extended, signaling the beginning of accumulation from extreme levels.
▶ Color Customization: Six visual themes (Classic, Aqua, Cosmic, Ember, Neon, plus Custom) accommodate different chart backgrounds and visual preferences, ensuring optimal contrast and immediate identification of bullish versus bearish volume flow conditions across various devices and screen sizes. Optional bar coloring provides instant visual context of current significant volume activity intensity and direction without switching between the price pane and indicator pane, enabling traders and investors to immediately assess volume-price positioning dynamics while analyzing price action.
Smart Trader, Episode 03, by Ata Sabanci, Candles and TradelinesA volume-based multi-block analysis system designed for educational purposes. This indicator helps traders understand their current market situation through aggregated block analysis, volumetric calculations, trend detection, and an AI-style narrative engine.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DESIGN PHILOSOPHY: CLEAN CHART, RICH DASHBOARD
Traditional indicators often clutter charts with dozens of support/resistance lines, making it difficult to see price action clearly. This indicator takes a different approach:
The Chart:
Displays only the most meaningful, nearest levels (1 up, 1 down) that have not been consumed by price. This keeps your chart clean and focused on what matters right now.
The Dashboard:
Contains all detailed metrics, calculations, and analysis. Instead of drawing 20 lines on your chart, you get comprehensive data in an organized table format.
Why this approach?
• A clean chart allows you to see price action without visual noise
• Fewer but more meaningful levels help focus attention on immediate reference points
• The dashboard provides depth without sacrificing chart clarity
• Beginners can learn chart reading with an uncluttered view while accessing detailed analysis when needed
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. BLOCK SEGMENTATION
What it does:
Divides the analysis window into fixed-size blocks. Each block contains multiple bars that are analyzed as a single unit.
Why:
Individual bars contain noise. A single red candle in an uptrend might cause unnecessary concern, but when you view 5-10 bars as one block, the overall direction becomes clear. Block segmentation filters out bar-to-bar noise and reveals the underlying structure.
Benefit:
• Clearer view of market structure at a higher aggregation level
• Enables comparison between time periods (Block 1 vs Block 2 vs Block 3)
• Creates the foundation for composite candles and trend detection
• Reduces emotional reaction to single-bar movements
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2. COMPOSITE CANDLES (FRACTAL CONCEPT)
What it does:
Each block generates a "ghost candle" representing aggregated OHLC:
• Open: First bar's open in the block
• High: Highest high across all bars in the block
• Low: Lowest low across all bars in the block
• Close: Last bar's close in the block
Why:
This is essentially a FRACTAL view of the market. The same candlestick patterns that appear on a daily chart also appear on hourly charts, and on 5-minute charts. By aggregating bars into composite candles, you create a synthetic higher timeframe view without changing your actual timeframe.
Benefit:
• See higher timeframe patterns while staying on your preferred timeframe
• Identify block-level candlestick patterns (Doji, Hammer, Marubozu, Engulfing, etc.)
• Compare composite candle relationships: Does Block 1 engulf Block 2? Is Block 1 an inside bar relative to Block 2?
• Recognize patterns that individual bars obscure due to noise
Fractal Nature:
A hammer pattern means the same thing whether it appears on a 1-minute chart or a weekly chart: price tested lower levels and was rejected. Composite candles let you see these patterns at your chosen aggregation level, providing a multi-scale view of market behavior.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
3. VOLUME ENGINE
What it does:
This indicator is 100% VOLUME-BASED. It separates total volume into buying volume and selling volume using two methods:
Method 1 - Geometric (Approximation):
• Buy Volume = Total Volume × ((Close - Low) / Range)
• Sell Volume = Total Volume × ((High - Close) / Range)
Method 2 - Intrabar LTF (Precise):
Uses actual tick-level or lower timeframe data to determine real buy/sell distribution.
Why:
Raw volume tells you HOW MUCH was traded, but not WHO was aggressive. A large volume bar could mean heavy buying, heavy selling, or both. By separating buy and sell volume, you can identify which side is driving the market.
Benefit:
• Identify whether buyers or sellers are more aggressive
• Detect when volume contradicts price direction (divergence)
• Measure accumulation (buying into weakness) vs distribution (selling into strength)
• Quantify the delta (buy minus sell) to see net pressure
Why Delta Matters:
If price is rising but delta is negative, sellers are actually more aggressive despite the price increase. This divergence often precedes reversals because the price movement lacks volume confirmation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4. PIN ANALYSIS (WICK MEASUREMENT)
What it does:
Calculates average upper pin (wick) and lower pin sizes for each block, then tracks how these change across consecutive blocks.
Why:
Upper pins represent price levels that were tested but rejected by sellers. Lower pins represent price levels that were tested but rejected by buyers. The size and direction of pins reveal rejection strength at specific price zones.
Benefit:
• Large upper pins = strong selling pressure at higher levels
• Large lower pins = strong buying support at lower levels
• Increasing upper pins across blocks = intensifying selling pressure
• Decreasing lower pins across blocks = weakening buying support
Why Track Pin Changes:
Pin behavior often changes before price direction changes. If lower pins are shrinking while price is still rising, the buying support that was defending dips is weakening. This is observable data, not prediction.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5. TREND CHANNEL DETECTION
What it does:
Identifies trend direction using block-level price structure:
• UPTREND: Block highs are higher than previous block highs, AND block lows are higher than previous block lows (HH/HL pattern)
• DOWNTREND: Block highs are lower than previous block highs, AND block lows are lower than previous block lows (LH/LL pattern)
• RANGE: No consistent directional pattern
Once detected, the system draws upper and lower channel boundaries by connecting extreme points within each trend segment.
Why:
HH/HL and LH/LL are the classical definitions of trend. By applying this logic to composite candles (blocks) rather than individual bars, the trend detection becomes more stable and less prone to whipsaws from single-bar noise.
Benefit:
• Clear visual boundaries showing the current trend channel
• Upper channel line = dynamic resistance based on actual price structure
• Lower channel line = dynamic support based on actual price structure
• Channel angle indicates trend strength (steeper = stronger)
• Channel width indicates volatility
Why Lock Trend States:
Once a block's trend classification is determined, it locks and does not change on subsequent recalculations. Without locking, the same block could flip between UP and DOWN repeatedly, creating inconsistent analysis. Locking ensures stability.
Why Project Lines Forward:
Channel lines can be projected into the future to show where support/resistance would be if the current trend continues at the same angle. This is not a prediction; it is a visual reference showing the trend's trajectory.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
6. CORE LEVELS: POC, MAX BUY, MAX SELL
What it does:
Identifies key price levels within each block based on volume data:
POC (Point of Control):
The price level where the highest total volume occurred within the block.
MAX BUY Level:
The bar with the highest buying volume. The HIGH of this bar marks the level.
MAX SELL Level:
The bar with the highest selling volume. The LOW of this bar marks the level.
MIN BUY/SELL Levels:
Optional levels showing where minimum buy/sell volume occurred.
Why:
High volume at a specific price means many participants entered positions there. These participants have a vested interest in that price level. If price returns to that area, those same participants may act to defend their positions.
Benefit:
• POC acts as a volume-based magnet; price tends to revisit high-volume areas
• MAX BUY level shows where buyers committed most aggressively
• MAX SELL level shows where sellers committed most aggressively
• These levels are based on actual transaction data, not arbitrary calculations
Why Consumed Levels Disappear:
When price crosses through a level, that level has been "tested." Keeping consumed levels on the chart creates visual clutter and suggests they are still relevant when they may no longer be. Removing them keeps focus on levels that have not yet been tested.
Why Show Only Nearest Levels:
If you have 20 blocks, you could have 60+ potential levels (POC, MAX BUY, MAX SELL for each). Displaying all of them makes the chart unreadable. Showing only the nearest untested level above and below current price keeps the chart clean while providing immediate reference points.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
7. QUALITY SCORE AND TREND INTELLIGENCE
What it does:
Calculates a quality score (0-100) for the current trend based on multiple factors:
• Angle steepness (stronger trends have steeper angles)
• Delta consistency (does volume support the trend direction?)
• Volume momentum (is participation increasing or decreasing?)
• Body expansion (are candle bodies growing or shrinking?)
• Pin alignment (do pins support the trend direction?)
• Contradiction count (how many factors disagree?)
Why:
Not all trends are equal. A trend with consistent volume support, expanding bodies, and aligned pins is healthier than a trend with contradicting signals. The quality score quantifies this.
Benefit:
• HIGH quality (80+): Multiple factors confirm the trend
• MEDIUM quality (60-79): Some factors confirm, some neutral
• LOW quality (below 60): Multiple contradictions exist
• Strength rating based on channel angle: VERY STRONG, STRONG, MODERATE, WEAK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
8. NARRATIVE ENGINE
What it does:
Generates a text-based market analysis by synthesizing all calculated data into readable sentences.
How it works:
1. Analyzes current candle: pattern type (Doji, Hammer, Marubozu, etc.), body/wick ratios, range vs ATR
2. Analyzes composite candle: Block 1 pattern and relationship to Block 2 (Engulfing, Inside, Outside)
3. Evaluates trend context: direction, duration, quality, transitions
4. Examines volume data: delta, dominance, momentum direction
5. Checks proximity to key levels: channel boundaries, POC, core levels
6. Identifies divergences: when price and volume directions contradict
7. Produces a coherent narrative describing the current situation
Why:
Numbers and charts require interpretation. The narrative engine translates calculated data into plain language, helping traders understand what the data means in context. This is especially valuable for beginners learning to read charts.
Benefit:
• Synthesizes multiple data points into a coherent story
• Explicitly flags divergences and contradictions
• Describes the current situation without making predictions
• Educational: shows how different factors relate to each other
What the Narrative Does NOT Do:
The narrative describes what IS, not what WILL BE. It does not predict future price movement. It reports the current candle pattern, the current trend state, the current volume situation, and the current proximity to levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
9. SMART DASHBOARD
What it does:
Displays all metrics in an organized table with multiple sections.
Sections:
• Volume Engine: Calculation method, data availability, current candle buy/sell/delta
• Trend Volumetrics: Aggregated buy/sell/delta across the current trend, trend type
• Pressure and Momentum: Average pins, pin change percentages, body expansion status
• Trend Channel Boundaries: Upper/lower levels with exact prices, distances, percentages
• Trend Intelligence: Quality score, confidence level, strength rating, volume momentum
Why:
All the detailed calculations need to live somewhere without cluttering the chart. The dashboard provides comprehensive data in a structured format.
Benefit:
• All metrics in one place
• Organized by category for easy reference
• Hover over any label to see a tooltip explaining that metric
• No need to draw dozens of lines on the chart
TIP: Hover over dashboard headers and labels to see tooltips explaining each metric.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
10. LANGUAGE SUPPORT
The indicator supports three languages:
• English
• Türkçe (Turkish)
• हिन्दी (Hindi)
Why only three languages?
Each additional language requires duplicate strings throughout the code, increasing memory usage and compilation time. To keep the script optimized and responsive, language options are limited to these three.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
11. DATA ACCURACY AND LIMITATIONS
This indicator is 100% VOLUME-BASED and requires Lower Timeframe (LTF) intrabar data for accurate calculations.
DATA ACCURACY LEVELS:
• 1T (Tick): Most accurate, real volume distribution per tick
• 1S (1 Second): Reasonably accurate approximation
• 15S (15 Seconds): Good approximation, longer historical data available
• 1M (1 Minute): Rough approximation, maximum historical data range
BACKTEST AND REPLAY LIMITATIONS:
• Replay mode results may differ from live trading due to data availability
• For longer backtest periods, use higher LTF settings (15S or 1M)
• Not all symbols/exchanges support tick-level data
• Crypto and Forex typically have better LTF data availability than stocks
A NOTE ON DATA ACCESS:
Higher TradingView plans provide access to more historical intrabar data, which directly impacts the accuracy of volume-based calculations. More precise volume data leads to more reliable calculations.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
12. SETTINGS OVERVIEW
Main Settings:
• Window Bars: Total bars to analyze
• Group Count: Number of blocks to create
• Calculation Basis: Current bar (live updates) or Closed bar (stable, no repaint)
Block Analytics:
• Show Composite Candle: Toggle ghost candles on/off
• Composite Candle Transparency: Adjust visibility
• Dim Original Candles: Fade original candles when composites are shown
Volume Engine:
• Calculation Method: Geometric (approx) or Intrabar (precise)
• Lower Timeframe: Select LTF for intrabar calculations
Multi-Segment Trend:
• Enable Trend Detection: Toggle trend channels on/off
• Range Angle Threshold: Angle below which trend is classified as RANGE
• Line colors, width, and style
• Project to Future: Extend trend lines forward
Core Calculation:
• Enable Core Calculation: Toggle POC and core levels
• Show POC Nearest Up/Down: Display nearest untested POC levels
• Include MAX/MIN Buy/Sell Levels: Toggle extremes display
• Nearest Only: Show only the closest level above and below price
Market Narrative:
• Enable Market Narrative: Toggle narrative text
• Language selection
• Show Educational Disclaimer: Toggle disclaimer in dashboard
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EDUCATIONAL PURPOSE
This indicator is designed to help traders:
1. Understand their current market situation at a glance
2. Learn chart reading through block analysis and composite candles
3. See how volume relates to price movement
4. Recognize when technical factors align or contradict
5. Focus on meaningful levels without chart clutter
Whether you are a beginner learning to read charts or an experienced trader seeking a cleaner analytical view, this tool provides structured data to support your analysis.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
IMPORTANT DISCLAIMER
This indicator is for EDUCATIONAL PURPOSES ONLY and does not constitute investment advice. Always conduct your own research and consult with a qualified financial advisor before making investment decisions.
This disclaimer is also displayed within the indicator itself. If you prefer a cleaner chart, you can disable it in Settings under Market Narrative by unchecking Show Educational Disclaimer.
undan MTF Breakout - Modular V5# Kundan MTF Breakout V6 - Complete User Guide
## 📖 Table of Contents
1. (#overview)
2. (#installation)
3. (#core-strategy)
4. (#understanding-the-signals)
5. (#settings-explained)
6. (#how-to-trade)
7. (#best-practices)
8. (#troubleshooting)
---
## Overview
The **Kundan MTF Breakout V6** is a professional-grade indicator that detects high-probability reversal setups using:
- Multi-timeframe trend confirmation
- Volume tower detection
- Liquidity sweep enhancement
- Signal quality scoring
- Automatic SL/TP calculation
### What Makes This Indicator Unique?
| Feature | Benefit |
|---------|---------|
| Local Tower Volume | Detects volume spikes like your eyes do |
| Signal Scoring | Filters weak setups automatically |
| Liquidity Sweep | Identifies 90%+ probability trades |
| Session Filter | Avoid choppy market hours |
| Auto SL/TP | Know your risk before entering |
---
## Installation
### Step 1: Open TradingView
Go to (tradingview.com) and open any chart.
### Step 2: Open Pine Editor
Click on **Pine Editor** at the bottom of your screen.
### Step 3: Paste the Code
1. Delete any existing code in the editor
2. Copy the entire content of `kundan_mtf_breakout_v6_complete.pine`
3. Paste it into the editor
### Step 4: Save & Add to Chart
1. Click **Save** (Ctrl+S)
2. Name it: "Kundan MTF Breakout V6"
3. Click **Add to Chart**
### Step 5: Configure Settings
Click the ⚙️ gear icon next to the indicator name to open settings.
---
## Core Strategy
### The Pattern We're Trading
```
STEP 1: Big RED candle + HIGH volume (Tower)
↓
This is a "selling climax" - institutions dumping shares
STEP 2: Price creates a ZONE (yellow box on chart)
↓
High of red candle = Breakout level
Low of red candle = Stop loss area
STEP 3: Wait for GREEN candle to CLOSE ABOVE the zone
↓
This confirms buyers have taken control
STEP 4: BUY SIGNAL appears
↓
Enter long with SL below zone
```
### Why This Works
1. **Big red candle + high volume** = Weak hands selling in panic
2. **Price holds the low** = Strong hands absorbing the selling
3. **Breakout above** = Confirmation that selling is exhausted
4. **Low volume breakout** = No resistance left above
### Enhanced Signals (90%+ Probability)
When price **sweeps below the zone** before breaking out:
- This triggers stop losses of early buyers
- Institutions collect cheap shares
- The subsequent breakout is MORE powerful
- Indicator shows: 🔥 BUY 90%+
---
## Understanding the Signals
### Chart Elements
| Element | Color | Meaning |
|---------|-------|---------|
| 🔴 Red Box | Red border | Long setup zone (waiting for breakout) |
| 🟢 Green Box | Green border | Setup triggered (breakout occurred) |
| ⚫ Gray Box | Gray border | Setup expired (no breakout) |
| Green Dashed Line | Green | Breakout level to watch |
| 🔴 Red Solid Line | Red | Stop Loss level |
| 🟢 Green Solid Line | Green | Take Profit 1 |
| 🟩 Lime Solid Line | Lime | Take Profit 2 |
### Signal Labels
| Label | Meaning |
|-------|---------|
| `🔴 LONG #1 ` | Long setup detected, score 75% |
| `BUY` | Standard breakout signal |
| `🔥 BUY 90%+` | Enhanced signal with sweep |
| `SWEEP↓` | Liquidity sweep detected |
### Info Table (Top Right)
The table shows real-time status:
```
┌─────────────────────────────┐
│ 📊 MTF BREAKOUT V6 │ Both │
├─────────────────────────────┤
│ Daily: ⬆️ UP │
│ 4H: ⬆️ UP │
│ HTF Bias: 🟢 BULL │
├─────────────────────────────┤
│ ─── VOLUME ─── │
│ Method: Local Tower │
│ RVOL: 2.35x │
│ High Vol?: ✅ YES │
├─────────────────────────────┤
│ ─── SETUPS ─── │
│ 📈 Long: 2 active | 1 trig│
│ 📉 Short: 0 active | 0 trig│
├─────────────────────────────┤
│ Session: ✅ Active │
│ Scoring: Min 50% │
│ SL/TP: R:R 1.5/2.5 │
└─────────────────────────────┘
```
---
## Settings Explained
### 📊 Multi-Timeframe Settings
| Setting | Default | Description |
|---------|---------|-------------|
| Higher Timeframe 1 | Daily | Primary trend reference |
| Higher Timeframe 2 | 4H | Secondary trend reference |
| Lookback Periods | 5 | Bars to check for higher highs/lows |
| Trend Detection | Flexible | How strict trend must be |
**Tip:** Keep defaults for most markets. Use "Strict" for choppy markets.
### 🎯 Trade Direction
| Option | When to Use |
|--------|-------------|
| Both | Default - take longs and shorts |
| Long Only | Bullish market / uptrend |
| Short Only | Bearish market / downtrend |
### 📈 Volume Detection Settings
| Setting | Default | Description |
|---------|---------|-------------|
| Volume Method | Local Tower | **RECOMMENDED** - Best for detecting spikes |
| Volume Lookback | 20 | Bars to average for comparison |
**Volume Methods Explained:**
| Method | Best For |
|--------|----------|
| **Local Tower** | General use - detects spikes vs neighbors |
| SMA Multiple | Stable volume environments |
| Percentile Rank | Finding top X% volume bars |
| RVOL | Comparing to same time yesterday |
### 📊 Volume Method Parameters
| Setting | Default | Description |
|---------|---------|-------------|
| Tower: Neighbor Bars | 5 | Compare to last 5 bars |
| Tower: Must Be X Times | 2.0 | Volume must be 2x neighbors |
| Tower: Must Be Local Max | ON | Must be highest of neighbors |
**Tuning Tips:**
- More signals → Lower multiplier to 1.5
- Fewer signals → Raise multiplier to 2.5+
### 🕯️ Big Candle Detection
| Setting | Default | Description |
|---------|---------|-------------|
| Spread Multiplier | 1.5 | Candle must be 1.5x ATR |
| ATR Period | 14 | Average True Range period |
| Min Body % | 50 | Body must be 50% of candle |
| Require HTF Trend for Setup | OFF | If ON, only with-trend setups |
### 📉 Low Volume Settings (For Breakout)
| Setting | Default | Description |
|---------|---------|-------------|
| Low Volume Method | SMA Multiple | How to detect low volume |
| Low Volume Threshold | 1.0 | Below average (1.0 = below avg) |
| Require Low Vol Breakout | ON | Breakout needs low volume |
| Require Green Breakout | ON | Breakout candle must be green |
### 💧 Liquidity Sweep Settings
| Setting | Default | Description |
|---------|---------|-------------|
| Sweep Buffer % | 0.1 | How far below zone = sweep |
### 💰 Stop Loss / Take Profit
| Setting | Default | Description |
|---------|---------|-------------|
| Show SL/TP | ON | Display levels on chart |
| SL Buffer % | 0.1 | Extra room below setup low |
| TP1 R:R | 1.5 | First target (1.5x risk) |
| TP2 R:R | 2.5 | Second target (2.5x risk) |
**Example:**
- Entry: $100
- Setup Low: $98
- SL: $97.90 (with 0.1% buffer)
- Risk: $2.10
- TP1: $103.15 (1.5 × $2.10)
- TP2: $105.25 (2.5 × $2.10)
### 📊 Signal Quality Scoring
| Setting | Default | Description |
|---------|---------|-------------|
| Enable Scoring | ON | Calculate quality score |
| Min Score to Show | 50 | Hide signals below 50% |
| Show Score on Labels | ON | Display score on chart |
**Score Weights:**
| Factor | Points | What It Measures |
|--------|--------|------------------|
| Volume Strength | 30 | Tower height vs neighbors |
| Candle Size | 25 | Spread vs ATR |
| Trend Alignment | 25 | Agreement with HTF trend |
| Liquidity Sweep | 20 | Bonus if sweep occurred |
**Interpreting Scores:**
- **75-100%**: High quality - trade with confidence
- **50-74%**: Medium quality - trade with caution
- **Below 50%**: Low quality - consider skipping
### 🕐 Session Filter
| Setting | Default | Description |
|---------|---------|-------------|
| Enable Session Filter | OFF | Turn on to filter by time |
| Timezone | America/New_York | Your market timezone |
| London Session | 08:00-12:00 | London hours |
| NY Session | 13:00-17:00 | New York hours |
| Asia Session | 20:00-02:00 | Asia hours |
| Trade Monday-Friday | All ON | Day of week filter |
**When to Use:**
- Enable for Forex to trade during high-liquidity sessions
- Enable for stocks to avoid pre/post market
- Disable for crypto (24/7 market)
---
## How to Trade
### Step-by-Step Trading Process
#### 1. Wait for Setup
- Look for red box appearing on chart
- Check the score (aim for 50%+)
- Note the breakout level (green dashed line)
#### 2. Wait for Sweep (Optional but Better)
- If price dips below the red box → "SWEEP↓" appears
- This upgrades the setup to 90%+ probability
- Be patient for this!
#### 3. Wait for Breakout
- GREEN candle must CLOSE above the zone
- Volume should be LOW (indicator checks this)
- "BUY" or "🔥 BUY 90%+" signal appears
#### 4. Enter the Trade
- Entry: Just above the breakout level
- Stop Loss: Red line (below setup)
- TP1: Green line (take partial profits)
- TP2: Lime line (let remainder run)
#### 5. Manage the Trade
- At TP1: Close 50% of position
- Move SL to breakeven
- Let rest run to TP2
### Example Trade (Long)
```
Chart shows:
┌────────────────────────────────────┐
│ ║ │
│ Entry ──────────────── ║ ───────│ ← Green dashed line
│ ┌──────────────────────║──┐ │
│ │ RED ZONE ║ │ │ ← Yellow box
│ │ 🔴 LONG #1 ║ │ │
│ └──────────────────────║──┘ │
│ SWEEP↓ │ ← Liquidity sweep
│ ║ │
│ SL ─────────────────── ║ ───────│ ← Red line
└────────────────────────────────────┘
After breakout:
┌────────────────────────────────────┐
│ TP2 ─────────────────────────────│ ← Lime line
│ │
│ TP1 ─────────────────────────────│ ← Green line
│ │
│ 🔥 BUY 90%+ │
│ Entry ───────────────────────────│
│ ┌─────────────────────────┐ │
│ │ GREEN ZONE (triggered) │ │
│ └─────────────────────────┘ │
│ SL ──────────────────────────────│
└────────────────────────────────────┘
```
---
## Best Practices
### ✅ DO's
1. **Wait for the signal** - Don't anticipate, let it trigger
2. **Check the score** - Higher score = higher probability
3. **Use proper position sizing** - Risk 1-2% per trade max
4. **Trade with the trend** - HTF bias should match your trade
5. **Be patient for sweeps** - 90%+ signals are worth waiting for
6. **Honor your stop loss** - Never move it further away
### ❌ DON'Ts
1. **Don't chase** - If you missed the signal, wait for next one
2. **Don't overtrade** - Quality over quantity
3. **Don't ignore HTF trend** - Counter-trend setups are riskier
4. **Don't skip low-score setups then FOMO in** - Trust the system
5. **Don't trade during news** - Enable session filter if needed
### Recommended Settings by Market
#### Forex
```
- Session Filter: ON (London + NY)
- Volume Method: Local Tower
- Min Score: 50%
- Trade Direction: Based on HTF trend
```
#### Stocks
```
- Session Filter: ON (NY session only)
- Volume Method: Local Tower
- Min Score: 60%
- Trade Direction: Long Only (bull market) or Both
```
#### Crypto
```
- Session Filter: OFF (24/7 market)
- Volume Method: Local Tower
- Min Score: 50%
- Tower Multiplier: 2.5 (crypto is volatile)
```
#### Indices (ES, NQ, etc.)
```
- Session Filter: ON (NY session)
- Volume Method: Local Tower
- Min Score: 50%
- TP Ratios: 1.5 / 3.0 (indices trend well)
```
---
## Troubleshooting
### Problem: No Setups Appearing
**Check:**
1. Trade Direction matches market (not "Long Only" in downtrend)
2. Volume Method is "Local Tower"
3. Tower Multiplier not too high (try 1.5)
4. HTF Trend requirement is OFF
5. Session Filter is OFF or you're in active session
### Problem: Too Many Setups
**Fix:**
1. Raise Tower Multiplier to 2.5 or 3.0
2. Enable "Must Be Local Max"
3. Raise Min Score to 60% or 70%
4. Enable Session Filter
### Problem: Signals Triggering Late
**Check:**
1. Lower Sustain Bars to 1
2. Ensure "Require Low Vol Breakout" isn't too strict
3. Lower Low Volume Threshold to 1.2
### Problem: SL/TP Lines Not Showing
**Fix:**
1. Enable "Show SL/TP Levels"
2. Enable individual line toggles (SL, TP1, TP2)
3. Make sure you have a triggered signal (not just setup)
### Problem: Script Error
**Common Fixes:**
1. Make sure you copied the ENTIRE script
2. Check TradingView is on Pine Script v5
3. Clear browser cache and reload
4. Try a different browser
---
## Quick Reference Card
### Signal Meanings
| Signal | Action | Probability |
|--------|--------|-------------|
| 🔴 LONG # | Setup detected | Wait |
| BUY | Standard breakout | 70%+ |
| 🔥 BUY 90%+ | Sweep + breakout | 90%+ |
| SWEEP↓ | Stop hunt occurred | Prepare |
### Score Colors
| Color | Score | Quality |
|-------|-------|---------|
| Purple | 75%+ | Excellent |
| Red/Green | 50-74% | Good |
| Gray | <50% | Poor |
### Position Sizing Formula
```
Position Size = (Account × Risk%) / (Entry - SL)
Example:
- Account: $10,000
- Risk: 2% = $200
- Entry: $100
- SL: $98
- Position Size = $200 / $2 = 100 shares
```
---
## Support
If you have questions or issues:
1. Review this guide first
2. Check the Troubleshooting section
3. Test with default settings on a liquid market (ES, SPY, BTC)
**Happy Trading! 🚀**
---
*Version 6.0 | Last Updated: January 2026*
able bigtrades dom + liquidity sweep This Pine Script is a sophisticated **Order Flow and Liquidity analysis tool** designed for TradingView. It combines volume analysis, multi-exchange data, and price action to identify where institutional "whales" are entering the market.
Below is a detailed guide on how to interpret and use the **BigTrades DOM** indicator.
---
## 1. Core Concept: Big Trades Detection
Instead of looking at raw volume, this indicator uses **Z-Scores** (Standard Deviations). It compares current volume to the average of the last 30 bars (customizable).
* **Tier 1 (Small Circles):** Significant volume, slightly above average.
* **Tier 2 (Medium Circles):** High volume ( by default). These often act as local support/resistance.
* **Tier 3 (Large Circles):** Extreme volume. These represent institutional "Big Trades" that usually lead to trend reversals or major continuations.
---
## 2. Initiative (INIT) vs. Absorbed (ABS)
This is a powerful feature located in the **Confirmation** settings. It looks at what happens *after* a Tier 3 big trade occurs:
* **Initiative (Purple Circle `●`):** High volume occurs, and price **moves strongly** in that direction within bars. This confirms aggressive "Initiative" buying or selling.
* **Absorbed (Yellow Cross `✕`):** High volume occurs, but price **fails to move**. This indicates "Absorption"—where a large limit order (passive seller) is soaking up all the aggressive market buys, often leading to a reversal.
---
## 3. Liquidity Sweep Detection
The script tracks "Pivots" (old highs and lows) and watches for **Stop Runs**.
* **Bullish Sweep (LTL-SWEEP):** Price dips below a previous Low (Liquidity) but immediately closes back above it, usually accompanied by a Big Trade. This is a classic "Stop Hunt" before a move up.
* **Bearish Sweep (LTH-SWEEP):** Price spikes above a previous High but closes below it. This indicates "trapped longs" and potential downside.
* **Visuals:** The script draws a **Dotted Box** and a **Horizontal Line** to mark the swept liquidity zone.
---
## 4. The Mini DOM & Volume Profile
On the right side of your chart, you will see a real-time table:
* **Profile:** A visual histogram of volume distributed at specific price levels.
* **Bid/Ask:** Shows the estimated volume of sellers (Bid) and buyers (Ask) at those specific levels.
* **Delta (Δ):** The net difference. Green means more aggressive buyers; Red means more aggressive sellers.
* **Current Price:** Highlighted in Green to help you see where the "Value" is currently sitting.
---
## 5. Multi-Exchange Aggregation (Crypto Only)
If you are trading a crypto pair (e.g., BTCUSD), the script can fetch volume data from **Binance, Bybit, OKX, Coinbase, and Kraken** simultaneously.
> **Why it matters:** It gives you a "Global" view of volume. If you see a Big Trade on your chart, but the Multi-Exchange data shows high volume across all 5 exchanges, the signal is much more reliable.
---
## 6. How to Trade with this Indicator
### **Strategy A: The Liquidity Reversal**
1. Look for a **Liquidity Sweep** (LTL-SWEEP).
2. Wait for a **Big Trade (Tier 2 or 3)** to appear at the bottom of the sweep.
3. **Entry:** Long when the bar closes back above the sweep level.
4. **Target:** The opposite Liquidity High.
### **Strategy B: Following Initiative**
1. Wait for an **INIT (Purple Circle)** signal.
2. This confirms that the "Big Trade" has successfully pushed the market.
3. **Entry:** Enter in the direction of the INIT signal on the next pullback.
### **Strategy C: Fading Absorption**
1. Price reaches a resistance level.
2. An **ABS (Yellow Cross)** appears.
3. This means buyers are exhausted and being "absorbed" by a large seller.
4. **Entry:** Short on the break of the Absorption candle's low.
---
## 7. Recommended Settings
* **Sensitivity (Sigma):** Set to `2.5` for volatile markets (Crypto) or `2.0` for slower markets (Forex/Stocks).
* **Normalize by ATR:** Keep this **ON**. it ensures that "Big Trades" are calculated relative to current market volatility.
* **Require Big Trade (Sweep):** Keep this **ON** to filter out "fake" sweeps that don't have institutional backing.
VSB: Grandmaster Ecosystem📌 Description — VSB: Grandmaster Ecosystem
VSB: Grandmaster Ecosystem is a context-first market structure and expansion framework, designed to identify high-quality breakout scenarios derived from price compression, liquidity behavior, and controlled volatility release.
This script is not a trading system and does not execute or simulate trades.
It provides structured, probabilistic context to support discretionary decision-making.
🔍 Conceptual Overview
Unlike classic trend or momentum indicators, VSB does not rely on oscillators, moving-average crossovers, or retrospective signals.
Instead, it models how price contracts, stores potential energy, and then expands following a valid structural resolution.
The ecosystem is built around four tightly integrated analytical layers:
1️⃣ Adaptive Compression Channels (Core Engine)
VSB dynamically detects price compression zones using an adaptive statistical range rather than fixed lookback bands.
Channels are constructed only when volatility compression is detected.
Width, persistence, and decay are dynamically adjusted to market conditions.
Channels are invalidated if price behavior no longer supports controlled compression.
This avoids static ranges and prevents repaint-driven “perfect boxes”.
2️⃣ Liquidity Sweep & Expansion Logic
Breakouts are validated only when price demonstrates:
A liquidity probe (wick-based sweep beyond the channel boundary),
Followed by a decisive close back inside or beyond structure,
And a confirmed expansion impulse.
This sequence filters false breakouts and avoids entries triggered by random volatility spikes.
3️⃣ Authority Scoring System (Probabilistic Context)
Each valid expansion is evaluated through an Authority Score, which synthesizes:
Compression quality and duration,
Expansion strength,
Session alignment,
Structural cleanliness (absence of noise and overlap).
Signals are classified into hierarchical tiers:
Weak
Standard
Diamond (highest structural authority)
This is not a win-rate claim, but a relative quality index to compare setups within the same market regime.
4️⃣ Risk & Session Context (Informational)
VSB includes informational risk metrics derived from historical behavior patterns:
Volatility expansion efficiency
Drawdown pressure
Session-based expectancy bias
These values are theoretical estimates, displayed purely for contextual awareness.
They do not calculate position size, entries, exits, or financial risk.
🧩 Why This Is Not a “Mashup”
VSB does not merge unrelated indicators.
Each component exists to support a single analytical thesis:
High-probability price expansion emerges from structured compression and liquidity resolution.
Channels define where energy accumulates.
Sweep logic defines how liquidity is engaged.
Authority scoring defines when expansion quality is meaningful.
Session context defines if conditions are favorable.
Removing any layer breaks the model’s internal coherence.
🧠 How to Use
Recommended use:
Timeframes: intraday (5m–30m) or swing (1H–4H)
Markets: FX, Indices, Crypto (liquid instruments)
Typical workflow:
Identify a valid compression channel.
Wait for a confirmed sweep + expansion.
Use the Authority tier to contextualize signal quality.
Combine with your own execution rules (lower TF, order flow, price action).
VSB is designed to be a decision-support framework, not an entry generator.
⚠️ Important Notes
This script does not repaint historical signals.
It does not provide trade recommendations.
It does not replace risk management or execution logic.
All metrics are contextual and informational only.
🧾 Open-Source & Originality
This script is published as open-source.
All logic is original or significantly re-engineered.
If any open-source concepts are referenced, they are used as minor components within a substantially original architecture and do not constitute the core engine.
✅ Summary
VSB: Grandmaster Ecosystem is a market structure and expansion framework for traders who want:
Fewer but higher-quality signals,
Context over noise,
Structure over indicators.
It is built for clarity, discipline, and probabilistic thinking, not automation.
Kundan MTF Breakout - Modular V5Nakheel Breakout Strategy
This is best Startegy for Volume breakout
This is best Startegy for Volume breakoutThis is best Startegy for Volume breakoutThis is best Startegy for Volume breakoutThis is best Startegy for Volume breakout
RVE v3 Retracement Validity EngineCore Philosophy
RVE v2 only gives signals when ALL of the following align:
Higher-Timeframe Trend Alignment
Trades only in the direction of the HTF trend (default: 4H EMA filter)
No counter-trend noise
Real Retracement Location (Not Extension)
Price must pull back into the EMA20–EMA50 zone
Filters fake “grazes” — requires meaningful interaction with the zone
Controlled Pullback (No Panic Candles)
Uses ATR + candle body + wick analysis
Filters out:
Panic momentum candles
Chaotic liquidity sweeps
Over-extended retracements
Close-Based Confirmation (Execution Discipline)
No signals mid-candle
Entry only after reclaim of EMA levels
⚙️ Entry Modes (Important)
🟢 AGGRESSIVE (Recommended for Retracement Traders)
Triggers on EMA9 reclaim after zone touch
Earlier entries
Best for traders who struggle with late entries
🔵 SAFE
Requires reclaim of EMA9 + EMA20
Fewer signals
Higher confirmation, later entry
🧠 Smart Filters Included
✅ HTF trend filter (lookahead-safe)
✅ ATR-adaptive pullback control
✅ Optional 2-bar zone confirmation
✅ Anti-chop cooldown (prevents signal spam)
✅ Optional key-level reclaim gate
✅ ATR-buffered SL guide (zone + structure)
Gamma of Gamma - AnticipationGamma of Gamma — Anticipation Engine
What if you could detect market inflections before they become obvious? Not react to momentum — anticipate the momentum itself.
"Gamma here refers to mathematical acceleration (2nd derivative), NOT options Gamma"
Gamma of Gamma (GoG) operates one abstraction layer above conventional indicators. While RSI tells you what momentum did , GoG tells you what momentum is about to do . This is the difference between chasing price and positioning ahead of it.
Core Innovation: Traditional indicators measure first-order effects (price change) or second-order effects (momentum/acceleration). This system measures the third derivative — the rate of change of acceleration itself. When Gamma-of-Gamma reaches extremes, it signals that pressure dynamics are about to flip — often 2-5 bars before price visibly reacts.
Target Users: Discretionary traders, scalpers, and swing traders who want early positioning signals with statistical rigor. Effective on stocks, crypto, forex, and futures with meaningful volume data.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY THIRD-DERIVATIVE ANALYSIS?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The Hierarchy of Market Information
Most traders operate at the wrong level of abstraction:
• Price → What happened (lagging)
• Momentum → How fast it happened (still lagging)
• Gamma (2nd Derivative) → How momentum is changing (coincident)
• Gamma of Gamma (3rd Derivative) → How FAST that change is changing ( leading )
The third derivative captures inflection acceleration — the mathematical signature of regime transition. When GoG reaches extreme values, the market is telegraphing that current pressure dynamics are unsustainable.
Why This Beats RSI
RSI measures momentum magnitude. GoG measures momentum trajectory .
Consider this scenario: RSI reads 70 (overbought). Is the move exhausted or just getting started? RSI cannot tell you. GoG can — because it measures whether buying pressure is accelerating into the high RSI reading (continuation likely) or decelerating despite high RSI (reversal imminent).
RSI answers: "How strong was the move?"
GoG answers: "Is the move strengthening or weakening right now ?"
The first is historical. The second is predictive.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MATHEMATICAL FOUNDATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 1: Cumulative Volume Delta (CVD)
The foundation is order flow approximation:
• Up bar (close > prior close): Volume classified as buying pressure
• Down bar (close < prior close): Volume classified as selling pressure
• CVD = Running sum of signed volume
Interpretation: Rising CVD indicates net aggressive buying. Falling CVD indicates net aggressive selling. CVD divergence from price often precedes reversals.
Layer 2: Gamma (Second Derivative)
Gamma measures acceleration of order flow:
Formula: Gamma = CVD - 2×CVD + CVD
This is the discrete second derivative — the rate of change of the rate of change. When Gamma spikes positive, buying pressure is accelerating . When Gamma spikes negative, selling pressure is accelerating.
Layer 3: Gamma of Gamma (Third Derivative)
GoG measures jerk — the acceleration of acceleration:
Formula: GoG = Gamma - 2×Gamma + Gamma
Critical insight: Extreme GoG readings indicate that current pressure dynamics are reaching an inflection point. The system is "overextended" in its current trajectory and will likely revert or reverse.
Layer 4: Z-Score Normalization
Raw GoG values are normalized against their 50-period distribution:
Formula: GoG_Z = (GoG - Mean_50) / StdDev_50
Benefit: Z-scores are regime-adaptive. A "2.0" reading always means "2 standard deviations from normal" regardless of whether you're trading a penny stock or ES futures. This makes thresholds consistent across instruments and timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SIGNAL GENERATION LOGIC
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Long Signal (Bullish Anticipation)
Triggers when:
• GoG Z-score < -Threshold (default -2.0)
• Volume > Average Volume × Minimum Multiple (default 1.2×)
Interpretation: Selling pressure acceleration has reached an extreme negative reading. The selling is "exhausting itself" — acceleration is peaking and will soon decelerate. Buyers are likely to step in.
Short Signal (Bearish Anticipation)
Triggers when:
• GoG Z-score > +Threshold (default +2.0)
• Volume > Average Volume × Minimum Multiple (default 1.2×)
Interpretation: Buying pressure acceleration has reached an extreme positive reading. The buying is "exhausting itself" — often occurs at blow-off tops, failed breakouts, or momentum climaxes.
Why Volume Confirmation?
Gamma acceleration in thin liquidity is meaningless noise. The volume filter ensures signals occur only when meaningful participation backs the pressure dynamics. This dramatically reduces false signals during low-activity periods.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CONFIDENCE ENGINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Not all signals are equal. The Confidence Engine quantifies signal strength:
Confidence Calculation:
Confidence = 50 + ((|Z-Score| - Threshold) / Threshold) × 100
Capped at 100%
Visual Representation:
• Small orb = Low confidence (50-65%)
• Normal orb = Medium confidence (65-80%)
• Large orb = High confidence (80-100%)
Orb transparency also adjusts — high-confidence signals appear brighter and more prominent. This creates intuitive visual hierarchy where stronger signals demand more attention.
Practical Use:
• High confidence (>80%): Consider larger position size, tighter stops
• Medium confidence (50-80%): Standard position size
• Low confidence (<50%): Reduced size or wait for confirmation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
INTEGRATED BACKTESTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Every signal system needs accountability. The onboard backtester provides real-time performance tracking:
Core Metrics:
• Total Trades
• Win Rate
• Profit Factor
• Expectancy (average P&L per trade)
• Net P&L
• Max Drawdown
• Average Win / Average Loss
Methodology:
• Positions held for configurable bar count (default 10 bars)
• Forces objective evaluation independent of discretionary exits
• Updates in real-time as new trades complete
Optimizer Mode:
Enable for parameter tuning research:
• Stability Score (0-100 points): Composite evaluation of parameter robustness
• Trade Density : Signals per 1000 bars — monitors over/under-trading
• Parameter Display : Current settings for documentation
• Robustness Rating : ROBUST / STABLE / FRAGILE / OVERFIT
Stability Scoring Breakdown:
• Win Rate ≥55%: +25 points | ≥50%: +15 points | ≥45%: +5 points
• Expectancy >0.5%: +25 points | >0.1%: +15 points | >0%: +5 points
• Total Trades ≥30: +25 points | ≥20: +15 points | ≥10: +5 points
• Profit Factor ≥1.5: +25 points | ≥1.2: +15 points | ≥1.0: +5 points
Target: 60+ points indicates stable parameters. Below 40 suggests overfitting risk.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CHART EXECUTION SIGNALS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Unique feature: Entry and exit markers display directly on the price chart via force_overlay, even though the indicator runs in a separate pane.
Visual Markers:
• ▲ Green Triangle (below bar): Long entry at exact price level
• ▼ Red Triangle (above bar): Short entry at exact price level
• ✕ Gold X-Cross : Position exit after hold period
Benefit: Immediate visual correlation between GoG signals and price action. Review historical trades without switching between panes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DUAL DASHBOARD SYSTEM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Main Dashboard — Real-Time State
Displays:
• Current GoG regime (EXTREME HIGH / EXTREME LOW / NEUTRAL)
• GoG Z-Score (numerical)
• Raw GoG value
• Gamma value
• CVD (Cumulative Volume Delta)
• Volume status (Active/Low with ratio)
• Signal state (Scanning / Long Signal / Short Signal / In Position)
• Confidence meter with visual bar
• Entry price when in position
Backtest Dashboard — Performance Metrics
Displays all backtester metrics in compact format. Switches to Optimizer view when Optimizer Mode enabled.
Both dashboards feature:
• Configurable position (6 locations including Middle Left/Right)
• Adjustable text size (Tiny/Small/Normal/Large)
• Transparency control for visual integration
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PARAMETER GUIDE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Calculation Settings
• GoG Extreme Threshold (default 2.0): Z-score level for signal generation. Higher = fewer but stronger signals. Range: 0.5-5.0
• Gamma Smoothing (default 3): SMA period for Gamma. Lower = more responsive, more noise. Higher = smoother, more lag. Range: 1-20
• GoG Smoothing (default 5): SMA period for GoG. Filters micro-spikes while preserving structural inflections. Range: 1-20
• Min Volume Multiple (default 1.2): Volume must exceed this multiple of 20-period average. Ensures signals have participation backing. Range: 0.5-3.0
Backtester Settings
• Backtest Hold Bars (default 10): Forced holding period for backtester evaluation. Adjust based on timeframe and trading style.
• Parameter Optimizer Mode : Enables extended metrics for tuning research.
Tuning by Timeframe
Scalping (1-5 min):
Threshold: 1.5-2.0 | Gamma Smooth: 2-3 | GoG Smooth: 3-4 | Hold: 5-8 bars
Day Trading (15-60 min):
Threshold: 2.0-2.5 | Gamma Smooth: 3-5 | GoG Smooth: 5-7 | Hold: 8-12 bars
Swing Trading (4H-Daily):
Threshold: 2.5-3.0 | Gamma Smooth: 5-7 | GoG Smooth: 7-10 | Hold: 10-15 bars
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE: PRACTICAL WORKFLOW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 1: Identify Regime
Watch the GoG Z-score line. Most of the time it oscillates within the neutral zone (between thresholds). This is "scanning" mode — no actionable signal.
Step 2: Wait for Extreme
When Z-score crosses threshold AND volume confirms, a signal fires. The orb appears in the indicator pane; the triangle appears on price chart.
Step 3: Assess Confidence
Check orb size and dashboard confidence reading:
• Large bright orb + 80%+ confidence = High conviction setup
• Small faint orb + <60% confidence = Requires additional confirmation
Step 4: Execute with Context
GoG signals anticipate — they don't confirm. Use price structure (support/resistance), higher timeframe trend, or other confirmation before entry.
Step 5: Manage Position
Exit markers show backtester exits. For live trading, consider:
• Time-based exit (signal's hold period)
• Opposite signal exit
• Fixed R:R targets
Step 6: Review Performance
Check Backtest Dashboard regularly. If Win Rate drops below 45% or Expectancy goes negative, reassess parameters or market conditions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT THIS INDICATOR IS — AND ISN'T
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This Indicator IS:
✅ State-transition detector (balance → imbalance)
✅ Early warning system for momentum shifts
✅ Anticipation tool for pre-positioning
✅ Statistical framework with built-in accountability
This Indicator IS NOT:
❌ Mechanical buy/sell system (requires discretion)
❌ Trend-following indicator
❌ Reversal-only indicator
❌ Replacement for risk management
Best Use Cases:
• Detecting early reversals before obvious confirmation
• Anticipating breakouts during volatility compression
• Timing pullback entries in established trends
• Identifying exhaustion at momentum climaxes
Challenging Conditions:
• Extremely low volume environments
• News-driven gaps (no order flow to measure)
• Instruments with unreliable volume data
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORIGINALITY STATEMENT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Innovation 1: Third-Derivative Order Flow Analysis
While first and second derivatives are common, applying third-derivative (jerk) analysis to cumulative volume delta is novel. This captures inflection points that lower-order analysis misses entirely.
Innovation 2: Z-Score Adaptive Thresholds
Rather than fixed thresholds that require per-instrument tuning, z-score normalization creates self-adapting signal levels that work consistently across any liquid instrument.
Innovation 3: Confidence-Weighted Visual System
Dynamic orb sizing and transparency based on signal strength provides intuitive visual hierarchy. Stronger signals literally appear larger and brighter.
Innovation 4: Integrated Accountability
Built-in backtester with optimizer mode enables parameter validation directly on chart. No external tools or spreadsheets required.
Innovation 5: Dual-Pane Execution Visualization
Force-overlay chart signals bridge the gap between indicator pane and price action, enabling immediate visual trade review.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
LIMITATIONS & DISCLAIMERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Technical Limitations
• Volume classification uses bar direction (close vs prior close), not tick-level aggressor data. Precision loss estimated 10-15% vs institutional-grade data.
• CVD approximation assumes volume follows price direction. Works well in trending conditions; less precise in choppy markets.
• Backtester uses fixed hold period, not optimal exit logic. Real performance may vary with proper trade management.
Market Limitations
• Requires meaningful volume data. Avoid instruments with reported volume issues.
• Signals may cluster during high-volatility events. Not every signal should be traded.
• Anticipation signals appear early by design. Patience required — price may continue against signal briefly before reversing.
Risk Disclosure
• Trading involves risk of loss. Past performance does not guarantee future results.
• This indicator provides analysis tools, not financial advice.
• Always use proper position sizing and risk management.
• Backtest results are hypothetical and do not include slippage, commissions, or fees.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RECOMMENDED SETTINGS BY MARKET
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Crypto (BTC, ETH, SOL)
Threshold: 1.8-2.2 | Gamma: 3 | GoG: 5 | Volume: 1.3x | TF: 15min-4H
Notes: Higher volatility produces more signals. Consider higher threshold to filter.
Forex Majors (EURUSD, GBPUSD)
Threshold: 2.0-2.5 | Gamma: 4 | GoG: 6 | Volume: 1.2x | TF: 5min-1H
Notes: Lower volatility requires patience. Volume proxy via tick volume works adequately.
Stocks (Large Cap)
Threshold: 2.0-2.5 | Gamma: 3-4 | GoG: 5-6 | Volume: 1.2x | TF: 15min-Daily
Notes: Real volume data provides cleanest signals. Watch for opening/closing auction distortions.
Futures (ES, NQ, CL)
Threshold: 2.0-2.3 | Gamma: 3 | GoG: 5 | Volume: 1.2x | TF: 5min-1H
Notes: Excellent volume data. Session boundaries may produce false signals — consider RTH only.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CONCLUSION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Gamma of Gamma represents a fundamental shift in signal philosophy: from reacting to momentum to anticipating momentum.
By operating at the third derivative of order flow, this system detects the mathematical signatures of regime transition — the moments when current pressure dynamics become unsustainable and reversal becomes probable.
This is not another oscillator telling you what already happened. This is an anticipation engine positioning you for what's about to happen.
Stop chasing. Start anticipating.
RSI tells you where momentum was. GoG tells you where it's going.
Taking you to school. - Dskyz , Trade with probability. Trade with anticipation. Trade with GoG
Kundan Volume Breakout - Modular V6STEP 1: Big RED candle + HIGH volume (Tower)
↓
This is a "selling climax" - institutions dumping shares
STEP 2: Price creates a ZONE (yellow box on chart)
↓
High of red candle = Breakout level
Low of red candle = Stop loss area
STEP 3: Wait for GREEN candle to CLOSE ABOVE the zone
↓
This confirms buyers have taken control
STEP 4: BUY SIGNAL appears
↓
Enter long with SL below zone
AMDX Sessions AMDX sessions divide the trading day into four phases—Accumulation (A), Manipulation (M), Distribution (D), and Continuation/Reversal (X)—based on ICT (Inner Circle Trader) concepts and quarterly theory. These highlight institutional behavior patterns, aiding intraday analysis on TradingView charts.
Session Meanings
A (Accumulation): Institutions build positions quietly with potential buying interest.
M (Manipulation): False moves or liquidity grabs to trap retail traders.
D (Distribution): Selling off positions, often after highs with weakening volume.
X (Continuation or Reversal): Trend extension or shift back to equilibrium.
Trading Applications
Entry Strategies: Buy Accumulation (A) lows if structure holds; fade Manipulation (M) traps above/below key levels.
Risk Management: Avoid Distribution (D) tops; use X phase for trailing stops or reversals based on displacement.
Multi-Timeframe: Align 1H AMDX with daily bias—e.g., bullish daily favors A/X longs.
Variations and Customization
XAMD Order: Starts with X (killzone open), then A-M-D for Asian/London/NY sessions.
Quarterly Theory Link: Ties to 90/180-minute micro-cycles within quarters (AMD-X repeat).
Pine Script Tips: Adjust session inputs for timezone (e.g., UTC+2 for forex); add volume filters to validate phases.
5EMA + Volume Spikes + Ultra Fast Scalp V3Description
This indicator combines 5 EMAs, volume spike detection, and an ultra-fast scalping system designed for short-term trading.
The scalping logic uses a fixed + ATR hybrid price deviation, filtered by RSI and CCI to capture extreme overbought/oversold conditions while avoiding overheated zones.
It also includes previous day levels (high, low, body high/low) extended into the current session for clear intraday reference.
Optimized for fast scalping and momentum fades on lower timeframes.
SK INTRAY SETUPthis indicator help to trade in the primary trend direction with align and in direction of the trend
Dual Session VWAPs by GK snipervwaps automatically
for london
new york session
easy
will remove automatically next day
RVE Retracement Validity Engine📌 What This Indicator Does
RVE (Retracement Validity Engine) is a rule-based retracement confirmation tool designed to eliminate early entries, fake pullbacks, and emotional trading.
It does not predict price.
It validates whether a retracement is tradable.
If the conditions are not met, no signal appears.
🎯 Who This Indicator Is For
Traders who understand trend + pullback trading
Funded-account traders who need consistency over frequency
Traders struggling with when to enter retracements (not direction)
❌ Not for:
Scalping every candle
Counter-trend gambling
Indicator stacking
🧠 Core Logic (What RVE Confirms)
A signal is printed only when all conditions align:
1️⃣ Higher-Timeframe Trend Filter
Uses a selectable HTF (default 4H EMA 50)
BUY signals only in bullish HTF trend
SELL signals only in bearish HTF trend
➡️ This prevents counter-trend entries.
2️⃣ Controlled Pullback Detection
RVE filters out aggressive moves that are likely reversals:
Pullback candle size must remain within an ATR threshold
Pullback volume must stay below a defined volume average
➡️ If sellers/buyers are aggressive, no signal.
3️⃣ Retracement Zone Validation
Price must pull back into the EMA 20–50 zone, acting as a dynamic retracement area.
Optional background shading visually highlights:
When price is inside the retracement zone
When price is outside (no setup)
4️⃣ Candle-Close Confirmation (Execution Trigger)
The signal appears only after candle close:
BUY: close above EMA 9 & EMA 20
SELL: close below EMA 9 & EMA 20
➡️ No mid-candle guessing.
✅ What You See on the Chart
🟢 RVE BUY label → valid bullish retracement confirmed
🔴 RVE SELL label → valid bearish retracement confirmed
Grey background → retracement in progress (not yet confirmed)
Optional HTF EMA trend line
Dotted SL guide based on recent swing structure
🛑 What This Indicator Will NOT Do
It will not give frequent signals
It will not work in choppy, range-bound markets
It will not replace risk management
This is intentional.
⚙️ Recommended Usage
Execution timeframe: 15M
Trend timeframe: 4H (default)
Enter only after the label prints
Stop-loss: recent swing (guide included)
Take profit: structure-based (manual)
For funded accounts, stricter settings are recommended.
⚠️ Important Disclaimer
This indicator is a confirmation tool, not a signal generator for beginners.
It requires:
Market structure awareness
Proper risk management
Discipline to wait for candle closes
Used correctly, it helps traders trade less, but better.
TRIZONACCI_Mean reversal_signalsMarket State Engine
Deterministic Confidence-Scoring System for TradingView
A professional-grade PineScript v5 indicator that scores market conditions from 0-100, helping traders identify high-quality trading opportunities through systematic structure analysis, VWAP positioning, order flow dynamics, and time-based context.
🎯 Overview
The Market State Engine is not a trading bot—it's a noise-reduction and opportunity-ranking system designed to filter market conditions and surface only the highest-quality setups.
Instead of blindly taking every signal, this indicator:
✅ Scores market conditions objectively (0-100 scale)
✅ Filters out low-probability setups automatically
✅ Classifies opportunities into A, A+, and A++ grades
✅ Alerts only on confirmed structure shifts with supporting context
✅ Keeps the human in control - provides intelligence, not automation
Philosophy: Reduce Noise. Enforce Discipline. Surface Quality.
🚀 Key Features
Deterministic Scoring - No black boxes, fully explainable logic
Multi-Factor Analysis - Combines 4 independent market state components
Structure-First Approach - Only alerts on confirmed pivot breaks
VWAP Mean Reversion Logic - Directional filtering based on VWAP zones
Order Flow Proxy - CVD divergence and confirmation detection
Session-Aware Scoring - Prioritizes high-volume New York sessions
Alert De-Duplication - One alert per unique structure shift
Zero Repainting - Uses confirmed pivots only (left=2, right=2)
Fully Configurable - All parameters exposed as inputs
Visual Feedback - VWAP bands, setup labels, and real-time score panel
📊 Scoring System (0-100)
The Market State Engine evaluates four independent components, each contributing up to 25 points for a maximum total score of 100.
🎯 Component Breakdown
Component Max Points Description
VWAP Context 25 Measures price deviation from session VWAP
Structure Shift 25 Confirms pivot breakout (HARD GATE)
CVD Alignment 25 Detects order flow divergence/confirmation
Time-of-Day 25 Identifies high-probability trading sessions
1️⃣ VWAP Context (Max 25 Points)
Purpose: Identifies extreme price deviations from fair value for mean-reversion opportunities.
VWAP (Volume-Weighted Average Price) is calculated session-anchored to New York market time, with standard deviation bands creating zones of opportunity.
Band Structure:
1st Band: ±1σ from VWAP (fair value zone)
2nd Band: ±2σ from VWAP (moderate deviation)
3rd Band: ±3σ from VWAP (extreme deviation)
Scoring Logic (Exclusive):
Price in 3rd VWAP Band (>2σ and ≤3σ) → +25 points
Price in 2nd VWAP Band (>1σ and ≤2σ) → +15 points
Otherwise (inside 1σ or beyond 3σ) → 0 points
Key Insight: The further price stretches from VWAP, the higher the probability of mean reversion.
2️⃣ Structure Shift (Max 25 Points) — HARD GATE
Purpose: Confirms momentum shift through confirmed pivot breakouts.
⚠️ CRITICAL: Structure shift is mandatory. If no valid structure shift occurs, the total score becomes 0 regardless of other factors.
Detection Method:
Uses TradingView's ta.pivothigh() and ta.pivotlow() functions with locked parameters:
Left bars: 2
Right bars: 2
Source: Configurable (Wick or Body)
Break confirmation: Candle close only
Bullish Structure Shift:
✅ Prior swing high exists (confirmed pivot)
✅ Current candle closes above swing high + tick buffer
✅ Must occur in VWAP 2nd or 3rd band
✅ VWAP Filter: Price must be at or below VWAP (lower bands)
Bearish Structure Shift:
✅ Prior swing low exists (confirmed pivot)
✅ Current candle closes below swing low - tick buffer
✅ Must occur in VWAP 2nd or 3rd band
✅ VWAP Filter: Price must be at or above VWAP (upper bands)
Scoring:
Valid structure shift → +25 points
No structure shift → Total score = 0
Tick Buffer: Default 5 ticks (configurable) - prevents false breaks from minor price noise.
3️⃣ CVD Alignment (Max 25 Points)
Purpose: Detects institutional order flow through volume delta analysis.
CVD (Cumulative Volume Delta) is a proxy for order flow:
Close > Open → +Volume (buying pressure)
Close < Open → -Volume (selling pressure)
Scoring Logic:
Condition Points Description
Divergence +25 Price makes higher high + CVD makes lower high (bearish)
Price makes lower low + CVD makes higher low (bullish)
Confirmation +20 Price and CVD both make higher highs or lower lows
Neutral 0 No clear divergence or confirmation
Lookback Window: Last 20 bars (configurable) - prevents stale divergences.
Key Insight: Divergences suggest weakening momentum, while confirmations validate the trend.
4️⃣ Time-of-Day Context (Max 25 Points)
Purpose: Prioritizes high-volume, high-volatility New York sessions.
Scored Sessions (America/New_York timezone):
Session Time Range (NY) Points Description
Pre-Market 03:00 - 04:00 +25 Early liquidity injection
Market Open 09:30 - 11:30 +25 Highest volume period
Off-Hours All other times 0 Lower probability setups
Key Insight: Structure shifts during active sessions have higher follow-through probability.
🏆 Setup Classification
Setups are graded based on total score thresholds (configurable):
Grade Score Range Typical Components Quality Level
A++ Setup ≥90 All 4 factors aligned
(VWAP 3rd band + Structure + CVD + Session) Premium - Rare
A+ Setup ≥75 Structure + VWAP + CVD or Session
(3 of 4 factors) High - Select
A Setup ≥60 Structure + VWAP + Session
(Minimum viable setup) Good - Regular
No Grade <60 Insufficient confluence Filtered out
Default Thresholds:
A Setup: 60 points
A+ Setup: 75 points
A++ Setup: 90 points
📥 Installation
Step 1: Download the Indicator
Download the market_state_engine.pine file from this repository.
Step 2: Add to TradingView
Open TradingView
Open the Pine Editor (bottom panel)
Click "New" → "Blank indicator"
Delete all default code
Paste the contents of market_state_engine.pine
Click "Add to Chart"
Step 3: Configure for Your Symbol
Click the gear icon next to the indicator name
Adjust Tick Size for your instrument:
ES futures: 0.25
NQ futures: 0.25
Stocks: 0.01
Save settings
⚙️ Configuration
Symbol Settings
Parameter Default Description
Tick Size 0.25 Minimum price movement for your symbol
Tick Buffer Count 5 Ticks beyond swing for valid break
VWAP Settings
Parameter Default Description
VWAP Band 1 (σ) 1.0 1st standard deviation multiplier
VWAP Band 2 (σ) 2.0 2nd standard deviation multiplier
VWAP Band 3 (σ) 3.0 3rd standard deviation multiplier
Session Settings
Parameter Default Description
Session 1 0300-0400 Pre-market window (NY time)
Session 2 0930-1130 Market open window (NY time)
Score Thresholds
Parameter Default Description
A Setup Threshold 60 Minimum score for A grade
A+ Setup Threshold 75 Minimum score for A+ grade
A++ Setup Threshold 90 Minimum score for A++ grade
CVD Settings
Parameter Default Description
CVD Divergence Lookback 20 Maximum bars for divergence detection
Swing Settings
Parameter Default Options Description
Swing Detection Method Wick Wick / Body Use high/low or open/close for pivots
Visual Settings
Parameter Default Description
Show VWAP Bands ✅ Display VWAP and standard deviation bands
Show Setup Labels ✅ Display setup markers on chart
Show Score Panel ✅ Display real-time score breakdown
📖 How to Use
Step 1: Apply to 1-Minute Chart
⚠️ The indicator is locked to 1-minute timeframe - do not use on other timeframes.
Step 2: Understand the Visual Signals
Setup Labels
Green Triangle (▲) - Bullish (Long) setup detected
Red Triangle (▼) - Bearish (Short) setup detected
Label shows Grade (A/A+/A++) and Total Score
VWAP Bands
Yellow Line - Session VWAP (fair value)
Blue Bands - ±1σ (fair value zone)
Purple Bands - ±2σ (moderate deviation)
Red Bands - ±3σ (extreme deviation)
Score Panel (Top Right)
Real-time breakdown of all four components:
Component Score
VWAP Zone 15/25
Structure 25/25
CVD 20/25
Session 25/25
TOTAL 85/100 (A+)
Step 3: Interpret Signals
Valid Long Setup:
✅ Green triangle below candle
✅ Price in lower VWAP bands (below VWAP)
✅ Structure shift breaks swing high
✅ Score ≥60
Valid Short Setup:
✅ Red triangle above candle
✅ Price in upper VWAP bands (above VWAP)
✅ Structure shift breaks swing low
✅ Score ≥60
Step 4: Set Up Alerts (See Alert Conditions section)
🚦 Signal Filters (VWAP Zone Logic)
The indicator uses directional VWAP filtering to prevent counter-trend signals:
Long Signals (Green)
Only allowed when price is AT or BELOW VWAP
✅ Lower 2nd band (-2σ to -1σ)
✅ Lower 3rd band (-3σ to -2σ)
✅ At VWAP exactly
❌ BLOCKED in upper bands (above VWAP)
Logic: Longs when price is stretched below fair value (mean reversion)
Short Signals (Red)
Only allowed when price is AT or ABOVE VWAP
✅ Upper 2nd band (+1σ to +2σ)
✅ Upper 3rd band (+2σ to +3σ)
✅ At VWAP exactly
❌ BLOCKED in lower bands (below VWAP)
Logic: Shorts when price is stretched above fair value (mean reversion)
🎨 Visual Elements
Chart Overlays
Element Color Description
VWAP Line Yellow Session-anchored fair value
±1σ Bands Blue Fair value zone (no score)
±2σ Bands Purple Moderate deviation (15 pts)
±3σ Bands Red Extreme deviation (25 pts)
Swing Highs Red ▼ Confirmed pivot highs
Swing Lows Green ▲ Confirmed pivot lows
Session Background Light Green Active high-value session
Setup Labels
Bullish Setup:
A+
▲ 75
Green label below candle, shows grade and score
Bearish Setup:
A++
▼ 90
Red label above candle, shows grade and score
Score Panel
Real-time table in top-right corner:
Individual component scores (0-25 each)
Total score (0-100)
Current setup grade (A/A+/A++)
Updates in real-time as market conditions change
🔔 Alert Conditions
Setting Up Alerts
Method 1: Built-in Alert Conditions
Click "Create Alert" in TradingView
Select Market State Engine as condition
Choose alert type:
Bullish Setup - Long signals only
Bearish Setup - Short signals only
Any Setup - All signals
Set to "Once Per Bar Close"
Configure notification method (app, email, webhook)
Method 2: Custom Alert Message
Alert messages include full breakdown:
A+ Setup Detected (Score: 85)
Components: VWAP(25) + Structure(25) + CVD(20) + Time(15)
CVD State: Confirmation
Direction: Long
Timeframe: 1m
Alert Behavior
✅ One alert per unique pivot break - no spam
✅ Fires on candle close only - no repainting
✅ Minimum score filter - only A grade or higher (≥60)
✅ Direction-specific - separate bullish/bearish conditions
⚠️ No cooldown between different pivots - multiple alerts per session allowed if different swing levels break
🔧 Technical Details
Timeframe Lock
Required: 1-minute chart only
Reason: Scoring model calibrated for 1m micro-structure
Future: Multi-timeframe support planned for v2
Timezone Configuration
Hard-coded: America/New_York
Session Detection: Uses TradingView's native session functions
Consistency: All time-based logic uses NY timezone
Swing Detection Parameters
Locked to specification:
ta.pivothigh(source, left=2, right=2)
ta.pivotlow(source, left=2, right=2)
Implications:
Pivots confirmed 2 bars after formation
No repainting - historical pivots don't move
4-bar minimum swing structure (2 left + pivot + 2 right)
VWAP Calculation
Type: Session-anchored (resets daily)
Source: Typical price (high + low + close) / 3
Weighting: Volume-weighted
Standard Deviation: True population standard deviation
CVD Proxy Formula
barDelta = close > open ? volume : close < open ? -volume : 0
CVD = cumulative sum of barDelta (session-reset)
Performance Limits
Max Labels: 500 (TradingView limit)
Max Bars Back: 500
Memory: Lightweight - uses only essential variables
💡 Best Practices
1. Use as a Filter, Not a Strategy
❌ Don't: Blindly take every signal
✅ Do: Use score as confluence for your existing analysis
2. Higher Grades = Better Probability
A Setups (60-74): Regular opportunities, still require discretion
A+ Setups (75-89): High-quality, multiple factors aligned
A++ Setups (90-100): Rare premium opportunities, strongest edge
3. Respect the VWAP Zone Filter
The indicator automatically blocks:
Longs in upper VWAP bands (counter-trend)
Shorts in lower VWAP bands (counter-trend)
Trust this logic - it enforces mean reversion discipline.
4. Monitor the Score Panel
Watch which components are scoring to understand why a setup formed:
Missing CVD score? → No order flow confirmation
Missing Time score? → Outside high-volume sessions
Low VWAP score? → Weak deviation from fair value
5. Combine with Risk Management
The indicator provides opportunity scoring, not position sizing:
Use stop losses based on swing structure
Scale position size with setup grade (larger on A++, smaller on A)
Set profit targets at VWAP or opposing band
6. Session Awareness
Prioritize signals during active sessions:
03:00-04:00 NY: Pre-market momentum
09:30-11:30 NY: Highest volume, tightest spreads
Off-hours signals (0 time score) are lower probability but still valid if other factors strong.
7. Understand the Hard Gate
If no structure shift occurs:
Total score = 0
No alerts fire
Other components irrelevant
Why? Structure shift confirms momentum change - without it, there's no tradable opportunity.
8. Avoid Over-Optimization
Default settings are well-calibrated:
Don't chase "perfect" parameters
Test changes on historical data before live use
Document any modifications
9. Leverage Alert De-Duplication
The indicator prevents spam automatically:
One alert per unique swing break
New swing levels = new alerts
No need to manually filter notifications
10. Supplement with Price Action
Use the indicator alongside:
Support/resistance levels
Order flow footprint charts
Volume profile
Market internals (breadth, TICK, etc.)
📚 Example Scenarios
Example 1: A++ Premium Setup (Score: 95)
Price: In lower 3rd VWAP band (-2.8σ) → VWAP: 25 pts
Structure: Close breaks swing high → Structure: 25 pts
CVD: Price LL + CVD HL (bullish div) → CVD: 25 pts
Time: 10:15 AM NY (market open) → Time: 25 pts
Direction: LONG (price below VWAP) → Valid
Grade: A++ (95/100)
Interpretation: All factors aligned - premium mean-reversion long opportunity.
Example 2: A+ Strong Setup (Score: 80)
Price: In upper 2nd VWAP band (+1.5σ) → VWAP: 15 pts
Structure: Close breaks swing low → Structure: 25 pts
CVD: Price HH + CVD LH (bearish div) → CVD: 25 pts
Time: 2:00 PM NY (off-hours) → Time: 0 pts
Direction: SHORT (price above VWAP) → Valid
Grade: A+ (65/100)
Interpretation: Strong setup despite off-hours, bearish divergence adds confidence.
Example 3: Filtered Setup (Score: 0)
Price: In upper 3rd VWAP band (+2.5σ) → VWAP: 25 pts (if allowed)
Structure: Close breaks swing high → Structure: BLOCKED
CVD: Price HH + CVD HH (confirmation) → CVD: 20 pts (if allowed)
Time: 10:00 AM NY → Time: 25 pts (if allowed)
Direction: LONG (price ABOVE VWAP) → ❌ INVALID ZONE
Grade: None (0/100) - NO ALERT
Interpretation: VWAP filter blocked long signal in upper band - prevents counter-trend trade.
🛠️ Troubleshooting
No Signals Appearing
✅ Verify you're on 1-minute chart
✅ Check Tick Size matches your symbol
✅ Ensure VWAP Bands are visible
✅ Wait for confirmed pivots (requires at least 5 bars of history)
Alerts Not Firing
✅ Confirm alert is set to "Once Per Bar Close"
✅ Check score threshold (must be ≥60 by default)
✅ Verify VWAP zone filter isn't blocking signals
✅ Check that structure shift is actually occurring
Score Always Zero
✅ No structure shift detected (hard gate active)
✅ Price may not be in valid VWAP zone (2nd or 3rd band)
✅ Insufficient swing history (wait for pivots to form)
Too Many/Too Few Signals
Too many signals:
Increase A Setup Threshold (e.g., 70 instead of 60)
Increase Tick Buffer Count (reduces false breaks)
Too few signals:
Decrease A Setup Threshold (e.g., 50 instead of 60)
Decrease Tick Buffer Count (more sensitive to breaks)
📜 License
This indicator is provided under the Mozilla Public License 2.0.
🤝 Credits
Developed as a professional trading tool for systematic opportunity identification.
Philosophy: Reduce noise. Enforce discipline. Keep the human in control.
📞 Support
For questions, issues, or feature requests, please consult:
This README documentation
The specification document (pinescript_market_state_engine_spec.docx)
Inline code comments in market_state_engine.pine
🔄 Version History
v1.0 (Current)
Initial release
4-component scoring model (VWAP + Structure + CVD + Time)
VWAP zone directional filtering
Alert de-duplication
Configurable inputs
Real-time score panel
Session-aware logic
🎓 Understanding the Numbers
Quick Reference Card
Score Range Grade Quality Typical Use
90-100 A++ Premium Highest conviction trades
75-89 A+ High Strong probability setups
60-74 A Good Acceptable with discretion
0-59 None Filtered Skip or wait for confluence
Component Contribution Examples
Minimum A Setup (60 points):
Structure (25) + VWAP 3rd band (25) + Time (25) = 75 ✅
Typical A+ Setup (75 points):
Structure (25) + VWAP 2nd band (15) + CVD confirm (20) + Time (25) = 85 ✅
Maximum A++ Setup (100 points):
Structure (25) + VWAP 3rd band (25) + CVD divergence (25) + Time (25) = 100 ✅
🎯 Final Reminder
This is NOT a trading bot.
This is NOT financial advice.
This is a decision-support tool.
Always:
✅ Use proper risk management
✅ Understand the logic before trading
✅ Backtest on your symbols
✅ Keep the human in control
Happy Trading! 📈
bollinger bandsWhat the indicator is (Generated by trade-pilot.app Builder)
This is a hybrid trend/continuation + EMA crossover signal indicator that generates LONG/SHORT entries only when multiple filters agree. It’s built to avoid “random” signals by forcing confirmation from trend direction, volatility, and risk/reward conditions, and it can also restrict signals to a specific trading session + timezone.
Main modules inside the code
1) Session filter (time-based)
The script checks if the current bar is inside the chosen session (default 09:30–16:00 New York time).
✅ Signals only trigger inSession
❌ No signals outside session
This helps you avoid entries during dead/low-quality hours.
2) Bollinger “Continuation Setup”
It calculates Bollinger Bands (default Length 20, Mult 2) and looks for a continuation pattern:
Trend detection (slope-based):
It measures the slope of the Bollinger middle band (basis).
If slope is up and price is above the basis → uptrend
If slope is down and price is below the basis → downtrend
Pullback + confirmation:
Long setup: price makes a pullback toward the middle band area (without breaking too deep) and then prints a bullish confirmation candle closing above the basis.
Short setup: same idea but reversed (pullback up + bearish confirmation candle closing below the basis).
✅ Result: signals that aim to catch trend continuation after a pullback, not random touches.
3) Stop & Target visualization (Bollinger-based)
When a continuation setup happens, the script calculates:
Stop (long): near the middle band / recent lowest lows
Stop (short): near the middle band / recent highest highs
Target (long): upper Bollinger band
Target (short): lower Bollinger band
On the chart (like in your screenshot), you see:
Bollinger Bands
Stop/target points shown as colored circles when a setup triggers
This makes it easier to visually understand the trade structure.
4) Bandwidth filter (volatility filter)
It calculates Bollinger Bandwidth (percentage width of the bands).
Signal only passes if:
Bandwidth ≥ minimum threshold (default 0.8%)
✅ Helps avoid trading when volatility is too low (chop / squeeze conditions).
5) Risk:Reward filter (quality filter)
This part estimates whether the trade has enough “room” to make sense:
Stop distance is ATR-based: ATR × multiplier
Target distance is approximated using recent swing potential:
Long: distance to recent highest high (last 10 bars)
Short: distance to recent lowest low (last 10 bars)
Then it calculates:
RR = targetDistance / stopDistance
and requires:
RR ≥ minimum RR (default 1.0)
✅ Helps filter out trades where the potential reward is too small compared to risk.
6) EMA crossover signals (secondary signal engine)
It also plots:
Fast EMA (default 20)
Slow EMA (default 50)
It generates extra signals on:
Bullish crossover (fast crosses above slow)
Bearish crossunder
So final signals can come from:
Bollinger continuation OR
EMA crossover
…but still must pass bandwidth + RR + session filters.
Final signal rule (important)
A LONG is printed only when:
(Bollinger continuation long OR EMA bullish crossover)
AND bandwidth filter passes
AND RR filter passes
AND inside session
Same logic for SHORT.
That’s why the signals are more selective.
What you see on the chart (like your screenshot)
Bollinger Bands (upper/middle/lower)
EMA fast + EMA slow
Red/green arrows for entries
“LONG/SHORT” labels on signal candles
Optional alert triggers for automation
How it helps traders
✅ Cleaner entries (trend + pullback continuation + confirmation)
✅ Less chop (volatility bandwidth filter)
✅ Better trade quality (risk/reward filter)
✅ Session control (only trade when market conditions are best)
✅ Easy visual decision making (bands, EMAs, and stop/target markers on the chart)
✅ Alerts-ready for live notifications
Small note (so you don’t get surprised)
You have an input called “Show Dashboard”, but the current code does not actually create a dashboard table (no table.new section exists). Everything else works as shown.
prnt.sc
Time-Segmented RVOLTime-Segmented RVOL
The Mathematical Flaw in Standard RVOL
Most Relative Volume (RVOL) indicators are built on a "Linear Scaling" hypothesis. They take the daily average and divide it by the number of bars in the day. This fails to account for the "Volume Smile"—the natural tendency for volume to be heavy at the open/close and dry up during mid-day. This leads to "False Highs" every morning and "False Lows" during lunch.
The Solution: Time-Slot Memory
This script uses a high-performance array to create a 20-Day Memory for every specific minute of the trading day.
Contextual Comparison: It compares the current 10:30 AM bar only to the previous twenty 10:30 AM bars.
Pre-Market Precision: Because it compares 4:00 AM volume to historical 4:00 AM volume, it can spot "early-bird" runners hours before the opening bell, identifying unusual interest when total volume is still low.
The Coherent Momentum Tiers
We have organized the color logic into four distinct, logical tiers to assist in rapid decision-making:
Cold (Blue): RVOL < 1.0 . Volume is below the historical average for this specific time slot.
Building (Green): RVOL 1.0 – 3.0. Active participation. The stock is "Awake" and moving with healthy, sustainable interest.
High Intensity (Yellow): RVOL 3.0 – 5.0. Extreme interest. The trade is becoming "crowded"; look for increased volatility.
Parabolic/Super High (Pink): RVOL > 5.0. Massive abnormality (5x+ normal volume). Common in small-cap "pumpers" and major institutional news events.
Trading Strategy: Spotting the "In-Play" Runner
The Awake Signal: Watch for a transition from Blue to Green. This confirms the ticker is "in-play" relative to its own 20-day history.
The Breakout: Look for Yellow or Pink bars accompanied by a price breakout from a consolidation zone. High RVOL confirms the move has real conviction.
Exhaustion (White X): The script includes built-in divergence tracking. If the price makes a new high but the RVOL bars are shrinking, a "White X" will appear. This suggests "Volume Exhaustion"—the fuel is running out.
Settings
Lookback (Days): Default is 20. This acts as a "Truth Filter" to ensure the baseline remains grounded in long-term reality rather than chasing short-term noise.
Custom Thresholds: Fully adjustable levels for the Green, Yellow, and Pink tiers to suit different asset classes (Small-caps vs. Mega-caps).
Overshoot Stop Detector (EMA20 + ATR)How to read the signals (to match what you're doing):
An "OS" (Offside) above the previous bar indicates an overshoot.
A "STOP" (Stop) below the current bar indicates a potential "stop-loss" after an overshoot.
Then you can set a Beer-style trigger, for example:
Enter when the price breaks through the high of the STOP bar.
Or enter when the price closes green above the high of the STOP bar.
Then set your TP (Take Profit) at 10 to 15% as you've hypothesized.
(5M) REG SuperTrend Pullback SystemThis indicator implements a rule-based SuperTrend pullback system
designed for short-term trend continuation.
Core features:
• Regression-based SuperTrend with flip detection
• Pullback + reclaim entry logic (non-repainting, bar-close confirmed)
• Regime filter (Trend vs Range suppression)
• Exhaustion detection to avoid late entries
• ADX + EMA bias alignment
• USDT Dominance risk filter (risk-on / risk-off)
• Clear BUY / SELL and Pullback AI-style entry labels
This is NOT a trading bot and does NOT place orders.
All signals are for analytical and educational purposes only.






















