ATAI Volume Pressure Analyzer V 1.0 — Pure Up/DownATAI Volume Pressure Analyzer V 1.0 — Pure Up/Down
Overview
Volume is a foundational tool for understanding the supply–demand balance. Classic charts show only total volume and don’t tell us what portion came from buying (Up) versus selling (Down). The ATAI Volume Pressure Analyzer fills that gap. Built on Pine Script v6, it scans a lower timeframe to estimate Up/Down volume for each host‑timeframe candle, and presents “volume pressure” in a compact HUD table that’s comparable across symbols and timeframes.
1) Architecture & Global Settings
Global Period (P, bars)
A single global input P defines the computation window. All measures—host‑TF volume moving averages and the half‑window segment sums—use this length. Default: 55.
Timeframe Handling
The core of the indicator is estimating Up/Down volume using lower‑timeframe data. You can set a custom lower timeframe, or rely on auto‑selection:
◉ Second charts → 1S
◉ Intraday → 1 minute
◉ Daily → 5 minutes
◉ Otherwise → 60 minutes
Lower TFs give more precise estimates but shorter history; higher TFs approximate buy/sell splits but provide longer history. As a rule of thumb, scan thin symbols at 5–15m, and liquid symbols at 1m.
2) Up/Down Volume & Derived Series
The script uses TradingView’s library function tvta.requestUpAndDownVolume(lowerTf) to obtain three values:
◉ Up volume (buyers)
◉ Down volume (sellers)
◉ Delta (Up − Down)
From these we define:
◉ TF_buy = |Up volume|
◉ TF_sell = |Down volume|
◉ TF_tot = TF_buy + TF_sell
◉ TF_delta = TF_buy − TF_sell
A positive TF_delta indicates buyer dominance; a negative value indicates selling pressure. To smooth noise, simple moving averages of TF_buy and TF_sell are computed over P and used as baselines.
3) Key Performance Indicators (KPIs)
Half‑window segmentation
To track momentum shifts, the P‑bar window is split in half:
◉ C→B: the older half
◉ B→A: the newer half (toward the current bar)
For each half, the script sums buy, sell, and delta. Comparing the two halves reveals strengthening/weakening pressure. Example: if AtoB_delta < CtoB_delta, recent buying pressure has faded.
[ 4) HUD (Table) Display /i]
Colors & Appearance
Two main color inputs define the theme: a primary color and a negative color (used when Δ is negative). The panel background uses a translucent version of the primary color; borders use the solid primary color. Text defaults to the primary color and flips to the negative color when a block’s Δ is negative.
Layout
The HUD is a 4×5 table updated on the last bar of each candle:
◉ Row 1 (Meta): indicator name, P length, lower TF, host TF
◉ Row 2 (Host TF): current ↑Buy, ↓Sell, ΔDelta; plus Σ total and SMA(↑/↓)
◉ Row 3 (Segments): C→B and B→A blocks with ↑/↓/Δ
◉ Rows 4–5: reserved for advanced modules (Wings, α/β, OB/OS, Top
5) Advanced Modules
5.1 Wings
“Wings” visualize volume‑driven movement over C→B (left wing) and B→A (right wing) with top/bottom lines and a filled band. Slopes are ATR‑per‑bar normalized for cross‑symbol/TF comparability and converted to angles (degrees). Coloring mirrors HUD sign logic with a near‑zero threshold (default ~3°):
◉ Both lines rising → blue (bullish)
◉ Both falling → red (bearish)
◉ Mixed/near‑zero → gray
Left wing reflects the origin of the recent move; right wing reflects the current state.
5.2 α / β at Point B
We compute the oriented angle between the two wings at the midpoint B:
β is the bottom‑arc angle; α = 360° − β is the top‑arc angle.
◉ Large α (>180°) or small β (<180°) flags meaningful imbalance.
◉ Intuition: large α suggests potential selling pressure; small β implies fragile support. HUD cells highlight these conditions.
5.3 OB/OS Spike
OverBought/OverSold (OB/OS) labels appear when directional volume spikes align with a 7‑oscillator vote (RSI, Stoch, %R, CCI, MFI, DeMarker, StochRSI).
◉ OB label (red): unusually high sell volume + enough OB votes
◉ OS label (teal): unusually high buy volume + enough OS votes
Minimum votes and sync window are user‑configurable; dotted connectors can link labels to the candle wick.
5.4 Top3 Volume Peaks
Within the P window the script ranks the top three BUY peaks (B1–B3) and top three SELL peaks (S1–S3).
◉ B1 and S1 are drawn as horizontal resistance (at B1 High) and support (at S1 Low) zones with adjustable thickness (ticks/percent/ATR).
◉ The HUD dedicates six cells to show ↑/↓/Δ for each rank, and prints the exact High (B1) and Low (S1) inline in their cells.
6) Reading the HUD — A Quick Checklist
◉ Meta: Confirm P and both timeframes (host & lower).
◉ Host TF block: Compare current ↑/↓/Δ against their SMAs.
◉ Segments: Contrast C→B vs B→A deltas to gauge momentum change.
◉ Wings: Right‑wing color/angle = now; left wing = recent origin.
◉ α / β: Look for α > 180° or β < 180° as imbalance cues.
◉ OB/OS: Note labels, color (red/teal), and the vote count.
◉Top3: Keep B1 (resistance) and S1 (support) on your radar.
Use these together to sketch scenarios and invalidation levels; never rely on a single signal in isolation.
[ 7) Example Highlights (What the table conveys) /i]
◉ Row 1 shows the indicator name, the analysis length P (default 55), and both TFs used for computation and display.
◉ B1 / S1 blocks summarize each side’s peak within the window, with Δ indicating buyer/seller dominance at that peak and inline price (B1 High / S1 Low) for actionable levels.
◉ Angle cells for each wing report the top/bottom line angles vs. the horizontal, reflecting the directional posture.
◉ Ranks B2/B3 and S2/S3 extend context beyond the top peak on each side.
◉ α / β cells quantify the orientation gap at B; changes reflect shifting buyer/seller influence on trend strength.
Together these visuals often reveal whether the “wings” resemble a strong, upward‑tilted arm supported by buyer volume—but always corroborate with your broader toolkit
8) Practical Tips & Tuning
◉ Choose P by market structure. For daily charts, 34–89 bars often works well.
◉ Lower TF choice: Thin symbols → 5–15m; liquid symbols → 1m.
◉ Near‑zero angle: In noisy markets, consider 5–7° instead of 3°.
◉ OB/OS votes: Daily charts often work with 3–4 votes; lower TFs may prefer 4–5.
◉ Zone thickness: Tie B1/S1 zone thickness to ATR so it scales with volatility.
◉ Colors: Feel free to theme the primary/negative colors; keep Δ<0 mapped to the negative color for readability.
Combine with price action: Use this indicator alongside structure, trendlines, and other tools for stronger decisions.
Technical Notes
Pine Script v6.
◉ Up/Down split via TradingView/ta library call requestUpAndDownVolume(lowerTf).
◉ HUD‑first design; drawings for Wings/αβ/OBOS/Top3 align with the same sign/threshold logic used in the table.
Disclaimer: This indicator is provided solely for educational and analytical purposes. It does not constitute financial advice, nor is it a recommendation to buy or sell any security. Always conduct your own research and use multiple tools before making trading decisions.
Volumeanalysis
Pivot Matrix & Multi-Timeframe Support-Resistance Analytics________________________________________
📘 Study Material for Pivot Matrix & Multi Timeframe Support-Resistance Analytics
(By aiTrendview — Educational Use Only)
________________________________________
🎯 Introduction
The Pivot Matrix & Multi Timeframe Support-Resistance Analytics indicator is designed to help traders visualize pivot points, support/resistance levels, VWAP, and volume flow analytics all in one place. Rather than giving explicit buy/sell calls, the dashboard provides reference insights so a learner may understand how different technical levels interact in real time.
This document explains its functionality step by step with formulas and usage guides.
________________________________________
1️⃣ Pivot System Logic
Pivot points are classic tools for mapping market support and resistance levels.
✦ How Calculated?
Using the Traditional Method:
• Pivot Point (PP):
PP=Highprev+Lowprev+Closeprev3PP = \frac{High_{prev} + Low_{prev} + Close_{prev}}{3}PP=3Highprev+Lowprev+Closeprev
• First Support/Resistance:
R1=2×PP−Lowprev,S1=2×PP−HighprevR1 = 2 \times PP - Low_{prev}, \quad S1 = 2 \times PP - High_{prev}R1=2×PP−Lowprev,S1=2×PP−Highprev
• Second Support/Resistance:
R2=PP+(Highprev−Lowprev),S2=PP−(Highprev−Lowprev)R2 = PP + (High_{prev} - Low_{prev}), \quad S2 = PP - (High_{prev} - Low_{prev})R2=PP+(Highprev−Lowprev),S2=PP−(Highprev−Lowprev)
• Third Levels:
R3=Highprev+2×(PP−Lowprev),S3=Lowprev−2×(Highprev−PP)R3 = High_{prev} + 2 \times (PP - Low_{prev}), \quad S3 = Low_{prev} - 2 \times (High_{prev} - PP)R3=Highprev+2×(PP−Lowprev),S3=Lowprev−2×(Highprev−PP)
• Similarly, R4/R5 and S4/S5 are extrapolated from extended range multipliers.
✦ How Used?
• Price above PP → bullish control bias.
• Price below PP → bearish control bias.
• R1–R5 levels act as resistances; S1–S5 act as supports.
Learners should watch how candles behave when approaching R/S zones to spot breakout vs. rejection conditions.
________________________________________
2️⃣ Multi Timeframe Logic
The indicator allows using daily-based pivot values (via request.security). This ensures alignment with institutional daily levels, not just intraday recalculations.
✦ Teaching Value
Understanding MTF pivots shows how markets respect higher timeframe levels (daily > intraday, weekly > daily). This helps learners grasp nested support-resistance structures.
________________________________________
3️⃣ VWAP (Volume Weighted Average Price)
Formula:
VWAPt=∑(Pricei×Volumei)∑(Volumei),Pricei=High+Low+Close3VWAP_t = \frac{\sum (Price_i \times Volume_i)}{\sum (Volume_i)}, \quad Price_i = \frac{High + Low + Close}{3}VWAPt=∑(Volumei)∑(Pricei×Volumei),Pricei=3High+Low+Close
Usage:
• VWAP is used as an institutional benchmark of fair value.
• Above VWAP = bullish flow.
• Below VWAP = bearish flow.
Learners should check whether price respects VWAP as a magnet or uses it as support/resistance.
________________________________________
4️⃣ Volume Flow Analysis
The script classifies buy volume, sell volume, and neutral volume.
• Buy Volume = if close > open.
• Sell Volume = if close < open.
• Neutral Volume = if close = open.
For daily tracking:
Buy%=DayBuyVolDayTotalVol×100,Sell%=DaySellVolDayTotalVol×100Buy\% = \frac{DayBuyVol}{DayTotalVol} \times 100, \quad Sell\% = \frac{DaySellVol}{DayTotalVol} \times 100Buy%=DayTotalVolDayBuyVol×100,Sell%=DayTotalVolDaySellVol×100
Usage for Learners:
• Dominant Buy% → accumulation/ bullish pressure.
• Dominant Sell% → distribution/ bearish pressure.
• Balanced → sideways liquidity building.
This teaches observation of order flow bias rather than relying only on price.
________________________________________
5️⃣ Dashboard Progress Bars & Colors
The script uses visual progress bars and dynamic colors for clarity. For example:
• VWAP Backgrounds: Green shades when price strongly above VWAP, Red when below.
• Volume Bars: More green blocks mean buying dominance, red means selling pressure.
This visual design turns concepts into easy-to-digest cues, useful for training.
________________________________________
6️⃣ Market Status Summary
Finally, the dashboard synthesizes all data points:
• Price vs Pivot (above or below).
• Price vs VWAP (above or below).
• Volume Pressure (buy side vs sell side).
Status Rule:
• If all three align bullish → Status box turns green.
• If mixed → Neutral grey.
• If bearish dominance → weaker tone.
Why Important?
This teaches learners that market conditions should align in confluence across indicators before confidence arises.
________________________________________
⚠️ Strict Disclaimer (aiTrendview)
The Pivot Matrix & Multi Timeframe Support-Resistance Analytics tool is developed by aiTrendview for strictly educational and research purposes.
❌ It does NOT provide buy/sell recommendations.
❌ It does NOT guarantee profits.
❌ Unauthorized use, copying, or redistribution of this code is prohibited.
⚠️ Trading Risk Warning:
• Trading involves high risk of financial loss.
• You may lose more than your capital.
• Past levels and indicators do not predict future outcomes.
This tool must be viewed as a visual education aid to practice technical analysis skills, not as trading advice.
________________________________________
✅ Now you have a step by step study guide:
• Pivot calculations explained
• VWAP with logic
• Volume breakdown
• Visual analytics
• Status confluence logic
• Disclaimer for compliance
________________________________________
⚠️ Warning:
• Trading financial markets involves substantial risk.
• You can lose more money than you invest.
• Past performance of indicators does not guarantee future results.
• This script must not be copied, resold, or republished without authorization from aiTrendview.
By using this material or the code, you agree to take full responsibility for your trading decisions and acknowledge that this is not financial advice.
________________________________________
⚠️ Disclaimer and Warning (From aiTrendview)
This Dynamic Trading Dashboard is created strictly for educational and research purposes on the TradingView platform. It does not provide financial advice, buy/sell recommendations, or guaranteed returns. Any use of this tool in live trading is completely at the user’s own risk. Markets are inherently risky; losses can exceed initial investment.
The intellectual property of this script and its methodology belongs to aiTrendview. Unauthorized reproduction, modification, or redistribution of this code is strictly prohibited. By using this study material or the script, you acknowledge personal responsibility for any trading outcomes. Always consult professional financial advisors before making investment decisions.
Quantum Trading MatrixThe Quantum Trading Matrix is a sophisticated Pine Script indicator designed for TradingView that offers a comprehensive trading dashboard by combining multiple market analysis techniques in one interface. The indicator integrates price action, volume, momentum, trend detection, institutional activity, and technical oscillators to provide traders a unified perspective on the market.
At its core, the script uses fundamental market data like price (open, high, low, close) and volume to calculate various metrics. The VWAP (Volume Weighted Average Price) is a key element that helps traders understand if the price is trading above or below the average price weighted by volume, indicating market strength or weakness. The distance of the current price from the VWAP is computed as a percentage to signal how far the price has diverged from this benchmark.
Momentum is measured through a "Quantum Momentum Oscillator" derived from the difference between fast and slow exponential moving averages of price. Positive momentum signals bullish conditions while negative momentum signals bearish ones. Volume flow analysis breaks down buying versus selling pressure on each bar by observing where the close price lies within the daily range combined with volume, generating an order flow ratio. This aids in identifying if buyers or sellers dominate the market at a given time.
Trend detection involves calculating EMAs of different lengths (8, 21, and 50) and aggregating their relationships into a trend score. Scores range from strong uptrend to downtrend, providing a clear directional bias. Institutional activity is inferred by detecting volume spikes significantly above the average volume, suggesting large players might be active. A dark pool estimate provides an approximate volume figure representing hidden or off-exchange trading.
The script also identifies market structure by detecting pivot highs and lows which act as resistance and support levels, respectively. These levels offer valuable insight into potential price reversals or breakouts. The RSI (Relative Strength Index) is incorporated, including a basic divergence detection to suggest potential bull or bear reversals. Volatility is measured using the Average True Range (ATR), classifying the current volatility from low to extreme, helping traders gauge the risk environment.
All these metrics are combined into a scoring system that awards points for positive indications such as price above VWAP, positive order flow, bullish momentum, and an uptrend in EMAs. The overall score ranges from 0 to 100 and is interpreted visually with emojis: a rocket for strong bullish setups, a chart up emoji for positive bias, a balanced scale for neutral, and a chart down emoji for bearish conditions.
The indicator issues alerts based on the combination of these signals, including bullish and bearish setups when multiple criteria align favorably, volume spike alerts when abnormal volume events occur, and institutional activity alerts for high volume surges.
To use this indicator effectively, traders should first assess the trend direction indicated by the EMA-based scoring. Positive momentum and price trading above the VWAP confirm bullish bias, while the opposite suggests bearishness. Volume flow and institutional activity provide additional confirmation. Support and resistance levels derived from pivots help in planning entries and exits. The RSI and volatility readings inform traders of potential overbought or oversold conditions and market risk levels. Alerts provide timely notifications to act on significant setups.
The indicator is highly customizable, allowing users to adjust the dashboard's position, size, and color theme to suit personal preferences. Parameters such as the momentum period, volume profile bars, trend multiplier, and signal sensitivity can be fine-tuned to adapt to different markets and trading styles.
This tool requires foundational knowledge of key technical concepts such as EMAs, VWAP, ATR, RSI, and volume analysis for best utilization. For traders interested in expanding their understanding, recommended resources include the TradingView Pine Script manual, technical analysis books by John J. Murphy and Dr. Alexander Elder, and practical video tutorials focusing on volume spread analysis and institutional order flow.
Overall, the Quantum Trading Matrix™ serves as a powerful control panel for active traders, providing a multi-dimensional view of the market through combined technical indicators, helping to identify high probability trade setups and manage risk effectively.
________________________________________
⚠️ Warning:
• Trading financial markets involves substantial risk.
• You can lose more money than you invest.
• Past performance of indicators does not guarantee future results.
• This script must not be copied, resold, or republished without authorization from aiTrendview.
By using this material or the code, you agree to take full responsibility for your trading decisions and acknowledge that this is not financial advice.
________________________________________
⚠️ Disclaimer and Warning (From aiTrendview)
This Dynamic Trading Dashboard is created strictly for educational and research purposes on the TradingView platform. It does not provide financial advice, buy/sell recommendations, or guaranteed returns. Any use of this tool in live trading is completely at the user’s own risk. Markets are inherently risky; losses can exceed initial investment.
The intellectual property of this script and its methodology belongs to aiTrendview. Unauthorized reproduction, modification, or redistribution of this code is strictly prohibited. By using this study material or the script, you acknowledge personal responsibility for any trading outcomes. Always consult professional financial advisors before making investment decisions.
Supply-Demand & Equilibrium Zones# Day Trading GPS Supply-Demand & Equilibrium Zones Indicator
## Overview
The Day Trading GPS Supply-Demand & Equilibrium Zones Indicator is an advanced tool designed to identify and visualize key supply and demand areas in the market. This indicator stands out by offering unparalleled customization options and a unique approach to detecting potential reversal zones.
## Key Features
1. **Comprehensive Zone Detection**:
- Identifies both main and additional supply and demand zones
- Uses sophisticated algorithms to detect potential reversal areas
2. **Highly Customizable Visuals**:
- Separate color settings for main and additional zones
- Adjustable line styles, widths, and colors for all elements
- Option to show or hide various components independently
3. **Advanced Equilibrium Levels**:
- Calculates and displays standard and weighted equilibrium levels between main supply and demand zones
- Customizable equilibrium line appearance and labeling
4. **Multi-Timeframe Analysis**:
- Adapts to any chart timeframe, providing consistent analysis across different time scales
5. **Interactive Dashboard**:
- Optional on-chart dashboard displaying real-time zone information
- Customizable dashboard position, size, and color scheme
## Unique Aspects
1. **Volume-Weighted Zone Calculation**:
Utilizes volume data to weigh the significance of supply and demand zones, providing a more accurate representation of market dynamics.
2. **Dual Equilibrium System**:
Offers both standard and weighted equilibrium levels, allowing traders to gauge market balance with greater precision.
3. **Adaptive Zone Drawing**:
Dynamically adjusts zone visibility based on recent price action, focusing on the most relevant levels.
## Customization Options
- Toggle visibility of main and additional supply/demand zones
- Adjust colors, styles, and widths for all lines and zones
- Customize equilibrium level calculations and display
- Fine-tune dashboard appearance and content
- Set specific session times for targeted analysis
## How It Enhances Your Trading
- Identify potential reversal zones with greater accuracy
- Understand the balance between supply and demand forces in the market
- Recognize significant market imbalances and potential turning points
- Adjust your analysis to specific trading sessions or market conditions
- Make more informed decisions with a comprehensive view of market structure
## Videos on setting up the Day Trading GPS Supply Demand & Equilibrium Zones Indicator & its features - make sure you watch both videos
- Video #1 is a short video (about 4 minutes): youtu.be
- Video #2 is much longer (about 25 minutes) and goes into much more detail on the Supply-Demand Zones indicator and it is at: youtu.be
## Note
While this indicator provides valuable insights into market dynamics, it should be used in conjunction with other forms of analysis and proper risk management strategies. The DayTradingGPS Supply/Demand Zones Indicator is a powerful tool designed to enhance your trading decisions, not to replace sound trading practices.
CVD Absorption + Confirmation [Orderflow & Volume]This indicator detects bullish and bearish absorption setups by combining Cumulative Volume Delta (CVD) with price action, candlestick, and volume confirmations.
🔹 What is Absorption?
Absorption happens when aggressive buyers/sellers push CVD to new highs or lows, but price fails to follow through.
Bearish absorption: CVD makes a higher high, but price does not.
Bullish absorption: CVD makes a lower low, but price does not.
This often signals that limit orders are absorbing aggressive market orders, creating potential reversal points.
🔹 Confirmation Patterns
Absorption signals are only shown if they are validated by one of the following patterns:
Engulfing candle with low volume → reversal faces little resistance.
Engulfing candle with high volume → strong aggressive participation.
Pin bar with high volume → absorption visible in the wick.
CVD flattening / slope reversal → shift in aggressive order flow.
🔹 Signals
✅ Bullish absorption confirmed → Green label below the bar.
❌ Bearish absorption confirmed → Red label above the bar.
Each label represents a potential reversal setup after orderflow absorption is validated.
🔹 Alerts
Built-in alerts are included for both bullish and bearish confirmations, so you can track setups in real-time without watching the chart 24/7.
📌 How to Use:
Best applied at key levels (supply/demand, VWAP, OR, liquidity zones).
Look for confluence with your trading strategy before taking entries.
Works on all markets and timeframes where volume is reliable.
VW Oscillator Fusion(Mastersinnifty)1. Overview
The VW Oscillator Fusion is a custom technical tool designed to track momentum shifts and reversal zones with a volume-weighted methodology. It blends two complementary oscillators into a unified framework, highlighting conditions where price movement and trading volume align to signal potential turning points.
2. Core Logic
Uses two volume-adjusted oscillators, each measuring momentum and price deviation in different ways.
Both are normalized to a comparable range, making interpretation easier.
Signal Generation:
Bullish setup when both oscillators align in oversold conditions.
Bearish setup when both oscillators align in overbought conditions.
3. Key Features
Dual oscillator fusion for higher reliability.
Volume weighting for more realistic market responsiveness.
Normalized values for easier cross-comparison.
Visual enhancements: oscillator plots, dynamic reference levels, background highlights.
Built-in alerts for bullish and bearish setups.
On-chart data table for quick reference of current oscillator readings.
4. Uniqueness
While most oscillators focus solely on price action, this tool emphasizes volume participation, ensuring that signals are weighted by actual market activity. The requirement of dual alignment across both oscillators helps filter out noise and false reversals, making it more robust than standalone tools.
5. How to Use
Add the indicator to your chart and adjust input lengths or thresholds as needed.
Look for bullish setups when both oscillators confirm oversold conditions.
Look for bearish setups when both oscillators confirm overbought conditions.
Combine with trend-following methods, support/resistance zones, or risk management practices for stronger decision-making.
Enable alerts to get notified of real-time trade setups.
6. Disclaimer
This indicator is a technical analysis tool only and does not provide financial advice. Past performance does not guarantee future results. Always manage risk appropriately and confirm signals with multiple analysis methods before making trading decisions.
VBC Signals V4.0 (Free version)Indy VBC Alert ตัวนี้จุดประสงค์คือต้องการสร้างตัว alert ให้กับเทคนิค VBC เพื่อไม่ให้พลาดเมื่อกราฟเข้าตามเทคนิคเท่านั้น ผู้ที่ใช้ให้ทำความเข้าใจเทคนิค VBC กับเงื่อนไขก่อนเรียกใช้
Use with your own risk นะครับ
----------------------------------------------------
This script created to alert when VBC Setup was found for any selected timeframe. Please use as your own risk.
-----------------------------------------------------
Indy VBC Alert: The initial requirement is to create an alert for the VBC technique so that you don't miss out on technically relevant chart entries. Users are advised to learn the VBC technique. Initial conditions are required.
Use at your own risk.
Advanced Volume Profile Pro Delta + POC + VAH/VAL# Advanced Volume Profile Pro - Delta + POC + VAH/VAL Analysis System
## WHAT THIS SCRIPT DOES
This script creates a comprehensive volume profile analysis system that combines traditional volume-at-price distribution with delta volume calculations, Point of Control (POC) identification, and Value Area (VAH/VAL) analysis. Unlike standard volume indicators that show only total volume over time, this script analyzes volume distribution across price levels and estimates buying vs selling pressure using multiple calculation methods to provide deeper market structure insights.
## WHY THIS COMBINATION IS ORIGINAL AND USEFUL
**The Problem Solved:** Traditional volume indicators show when volume occurs but not where price finds acceptance or rejection. Standalone volume profiles lack directional bias information, while basic delta calculations don't provide structural context. Traders need to understand both volume distribution AND directional sentiment at key price levels.
**The Solution:** This script implements an integrated approach that:
- Maps volume distribution across price levels using configurable row density
- Estimates delta (buying vs selling pressure) using three different methodologies
- Identifies Point of Control (highest volume price level) for key support/resistance
- Calculates Value Area boundaries where 70% of volume traded
- Provides real-time alerts for key level interactions and volume imbalances
**Unique Features:**
1. **Developing POC Visualization**: Real-time tracking of Point of Control migration throughout the session via blue dotted trail, revealing institutional accumulation/distribution patterns before they complete
2. **Multi-Method Delta Calculation**: Price Action-based, Bid/Ask estimation, and Cumulative methods for different market conditions
3. **Adaptive Timeframe System**: Auto-adjusts calculation parameters based on chart timeframe for optimal performance
4. **Flexible Profile Types**: N Bars Back (precise control), Days Back (calendar-based), and Session-based analysis modes
5. **Advanced Imbalance Detection**: Identifies and highlights significant buying/selling imbalances with configurable thresholds
6. **Comprehensive Alert System**: Monitors POC touches, Value Area entry/exit, and major volume imbalances
## HOW THE SCRIPT WORKS TECHNICALLY
### Core Volume Profile Methodology:
**1. Price Level Distribution:**
- Divides price range into user-defined rows (10-50 configurable)
- Calculates row height: `(Highest Price - Lowest Price) / Number of Rows`
- Distributes each bar's volume across price levels it touched proportionally
**2. Delta Volume Calculation Methods:**
**Price Action Method:**
```
Price Range = High - Low
Buy Pressure = (Close - Low) / Price Range
Sell Pressure = (High - Close) / Price Range
Buy Volume = Total Volume × Buy Pressure
Sell Volume = Total Volume × Sell Pressure
Delta = Buy Volume - Sell Volume
```
**Bid/Ask Estimation Method:**
```
Average Price = (High + Low + Close) / 3
Buy Volume = Close > Average ? Volume × 0.6 : Volume × 0.4
Sell Volume = Total Volume - Buy Volume
```
**Cumulative Method:**
```
Buy Volume = Close > Open ? Volume : Volume × 0.3
Sell Volume = Close ≤ Open ? Volume : Volume × 0.3
```
**3. Point of Control (POC) Identification:**
- Scans all price levels to find maximum volume concentration
- POC represents the price level with highest trading activity
- Acts as significant support/resistance level
- **Developing POC Feature**: Tracks POC evolution in real-time via blue dotted trail, showing how institutional interest migrates throughout the session. Upward POC migration indicates accumulation patterns, downward migration suggests distribution, providing early trend signals before price confirmation.
**4. Value Area Calculation:**
- Starts from POC and expands up/down to encompass 70% of total volume
- VAH (Value Area High): Upper boundary of value area
- VAL (Value Area Low): Lower boundary of value area
- Expansion algorithm prioritizes direction with higher volume
**5. Adaptive Range Selection:**
Based on profile type and timeframe optimization:
- **N Bars Back**: Fixed lookback period with performance optimization (20-500 bars)
- **Days Back**: Calendar-based analysis with automatic timeframe adjustment (1-365 days)
- **Session**: Current trading session or custom session times
### Performance Optimization Features:
- **Sampling Algorithm**: Reduces calculation load on large datasets while maintaining accuracy
- **Memory Management**: Clears previous drawings to prevent performance degradation
- **Safety Constraints**: Prevents excessive memory usage with configurable limits
## HOW TO USE THIS SCRIPT
### Initial Setup:
1. **Profile Configuration**: Select profile type based on trading style:
- N Bars Back: Precise control over data range
- Days Back: Intuitive calendar-based analysis
- Session: Real-time session development
2. **Row Density**: Set number of rows (30 default) - more rows = higher resolution, slower performance
3. **Delta Method**: Choose calculation method based on market type:
- Price Action: Best for trending markets
- Bid/Ask Estimate: Good for ranging markets
- Cumulative: Smoothed approach for volatile markets
4. **Visual Settings**: Configure colors, position (left/right), and display options
### Reading the Profile:
**Volume Bars:**
- **Length**: Represents relative volume at that price level
- **Color**: Green = net buying pressure, Red = net selling pressure
- **Intensity**: Darker colors indicate volume imbalances above threshold
**Key Levels:**
- **POC (Blue Line)**: Highest volume price - major support/resistance
- **VAH (Purple Dashed)**: Value Area High - upper boundary of fair value
- **VAL (Orange Dashed)**: Value Area Low - lower boundary of fair value
- **Value Area Fill**: Shaded region showing main trading range
**Developing POC Trail:**
- **Blue Dotted Lines**: Show real-time POC evolution throughout the session
- **Migration Patterns**: Upward trail indicates bullish accumulation, downward trail suggests bearish distribution
- **Early Signals**: POC movement often precedes price movement, providing advance warning of institutional activity
- **Institutional Footprints**: Reveals where smart money concentrated volume before final POC establishment
### Trading Applications:
**Support/Resistance Analysis:**
- POC acts as magnetic price level - expect reactions
- VAH/VAL provide intermediate support/resistance levels
- Profile edges show areas of low volume acceptance
**Developing POC Analysis:**
- **Upward Migration**: POC moving higher = institutional accumulation, bullish bias
- **Downward Migration**: POC moving lower = institutional distribution, bearish bias
- **Stable POC**: Tight clustering = balanced market, range-bound conditions
- **Early Trend Detection**: POC direction change often precedes price breakouts
**Entry Strategies:**
- Buy at VAL with POC as target (in uptrends)
- Sell at VAH with POC as target (in downtrends)
- Breakout plays above/below profile extremes
**Volume Imbalance Trading:**
- Strong buying imbalance (>60% threshold) suggests continued upward pressure
- Strong selling imbalance suggests continued downward pressure
- Imbalances near key levels provide high-probability setups
**Multi-Timeframe Context:**
- Use higher timeframe profiles for major levels
- Lower timeframe profiles for precise entries
- Session profiles for intraday trading structure
## SCRIPT SETTINGS EXPLANATION
### Volume Profile Settings:
- **Profile Type**: Determines data range for calculation
- N Bars Back: Exact number of bars (20-500 range)
- Days Back: Calendar days with timeframe adaptation (1-365 days)
- Session: Trading session-based (intraday focus)
- **Number of Rows**: Profile resolution (10-50 range)
- **Profile Width**: Visual width as chart percentage (10-50%)
- **Value Area %**: Volume percentage for VA calculation (50-90%, 70% standard)
- **Auto-Adjust**: Automatically optimizes for different timeframes
### Delta Volume Settings:
- **Show Delta Volume**: Enable/disable delta calculations
- **Delta Calculation Method**: Choose methodology based on market conditions
- **Highlight Imbalances**: Visual emphasis for significant volume imbalances
- **Imbalance Threshold**: Percentage for imbalance detection (50-90%)
### Session Settings:
- **Session Type**: Daily, Weekly, Monthly, or Custom periods
- **Custom Session Time**: Define specific trading hours
- **Previous Sessions**: Number of historical sessions to display
### Days Back Settings:
- **Lookback Days**: Number of calendar days to analyze (1-365)
- **Automatic Calculation**: Script automatically converts days to bars based on timeframe:
- Intraday: Accounts for 6.5 trading hours per day
- Daily: 1 bar per day
- Weekly/Monthly: Proportional adjustment
### N Bars Back Settings:
- **Lookback Bars**: Exact number of bars to analyze (20-500)
- **Precise Control**: Best for systematic analysis and backtesting
### Visual Customization:
- **Colors**: Bullish (green), Bearish (red), and level colors
- **Profile Position**: Left or Right side of chart
- **Profile Offset**: Distance from current price action
- **Labels**: Show/hide level labels and values
- **Smooth Profile Bars**: Enhanced visual appearance
### Alert Configuration:
- **POC Touch**: Alerts when price interacts with Point of Control
- **VA Entry/Exit**: Alerts for Value Area boundary interactions
- **Major Imbalance**: Alerts for significant volume imbalances
## VISUAL FEATURES
### Profile Display:
- **Horizontal Bars**: Volume distribution across price levels
- **Color Coding**: Delta-based coloring for directional bias
- **Smooth Rendering**: Optional smoothing for cleaner appearance
- **Transparency**: Configurable opacity for chart readability
### Level Lines:
- **POC**: Solid blue line with optional label
- **VAH/VAL**: Dashed colored lines with value displays
- **Extension**: Lines extend across relevant time periods
- **Value Area Fill**: Optional shaded region between VAH/VAL
### Information Table:
- **Current Values**: Real-time POC, VAH, VAL prices
- **VA Range**: Value Area width calculation
- **Positioning**: Multiple table positions available
- **Text Sizing**: Adjustable for different screen sizes
## IMPORTANT USAGE NOTES
**Realistic Expectations:**
- Volume profile analysis provides structural context, not trading signals
- Delta calculations are estimations based on price action, not actual order flow
- Past volume distribution does not guarantee future price behavior
- Combine with other analysis methods for comprehensive market view
**Best Practices:**
- Use appropriate profile types for your trading style:
- Day Trading: Session or Days Back (1-5 days)
- Swing Trading: Days Back (10-30 days) or N Bars Back
- Position Trading: Days Back (60-180 days)
- Consider market context (trending vs ranging conditions)
- Verify key levels with additional technical analysis
- Monitor profile development for changing market structure
**Performance Considerations:**
- Higher row counts increase calculation complexity
- Large lookback periods may affect chart performance
- Auto-adjust feature optimizes for most use cases
- Consider using session profiles for intraday efficiency
**Limitations:**
- Delta calculations are estimations, not actual transaction data
- Profile accuracy depends on available price/volume history
- Effectiveness varies across different instruments and market conditions
- Requires understanding of volume profile concepts for optimal use
**Data Requirements:**
- Requires volume data for accurate calculations
- Works best on liquid instruments with consistent volume
- May be less effective on very low volume or exotic instruments
This script serves as a comprehensive volume analysis tool for traders who need detailed market structure information with integrated directional bias analysis and real-time POC development tracking for informed trading decisions.
Scalp Sense AI# Scalp Sense AI (No Repaint)
**Adaptive trend & reversal detector with an AI-driven score, multi-timeframe confirmations, robust volume filters, and a purpose-built Scalping Mode.**
Signals are generated **only on bar close** (no repaint), include structured alert payloads for webhooks, and come with optional ATR-based TP/SL visualization for study and validation.
---
## What it is (in one paragraph)
**Scalp Sense AI** combines classic market structure (DI/ADX, EMA, SMA, Keltner, ATR) with a continuous **AI Score** that fuses RSI normalization, EMA distance (in ATR units), and DI edge into a single, volatility-aware signal. It adaptively gates **trend** and **reversal** entries, applies **HTF confirmation** without lookahead, and enforces **guard rails** (e.g., strong-trend reversal blocking) unless a high-confidence AI override and volume confirmation are present. **Scalping Mode** compresses reaction times and adds micro price-action cues (wick rejections, micro-EMA crosses, small engulfing) to surface more—but disciplined—opportunities.
---
## Non-Repainting Design
* All signals, markers, state, and alerts are computed **after bar close** using `barstate.isconfirmed`.
* HTF data are requested with `lookahead_off`.
* No “future-peeking” constructs are used.
* Result: signals do **not** change after the candle closes.
---
## How the engine works (pipeline overview)
1. **Base metrics**
* **RSI**, **EMA**, **ATR** (+ ATR SMA for regime/volatility), **SMA long & short**, **Keltner** (EMA ± ATR×mult).
* **Manual DI/ADX** for fine control (DM+, DM−, true range smoothing).
2. **Volatility regime**
* Compares ATR to its SMA and scales thresholds by √(ATR/ATR\_SMA) → robust “high\_vol” gating.
3. **Volume & flow**
* **Volume Z-score**, **OBV slope**, and **MFI** (all computed manually) to confirm impulses and filter weak reversals.
4. **Higher-Timeframe confirmation (optional)**
* Imports HTF **PDI/MDI/ADX** and **SMA** (no lookahead) to require alignment when enabled.
5. **AI Score**
* Weighted fusion of **RSI (normalized around 0)**, **EMA distance (in ATR)**, and **DI edge**.
* Smoothed; then its **mean (μ)** and **volatility (σ)** are estimated to form **adaptive bands** (hi/lo), with optional **hysteresis**.
* **Debounce** (M in N bars) avoids flicker; **bias state** persists until truly invalidated.
6. **Signal logic**
* **Trend entries** require AI bias + trend confirmations (DI/ADX/SMA, HTF if enabled), volatility OK, and **anti-breakout** filter.
* **Reversal entries** come in **core**, **early**, and **scalp** flavors (progressively more frequent), guarded by strong-trend blocks that an **AI+volume+ADX-cooling override** can bypass.
7. **Scalping Mode**
* Adaptive parameter contraction (shorter lengths), gentler guards, micro-patterns (wick/engulf/micro-EMA cross), and reduced cooldown to increase high-quality opportunities.
8. **Cooldown & state**
* One signal per side after a configurable spacing in bars; internal “last direction” avoids clustering.
9. **Visualization & alerts**
* **Triangles** for trend, **circles** for reversals (offset by ATR to avoid overlap).
* **Single-line alert payload** (BUY/SELL, reason, AI, volZ, ADX) ready for webhooks.
---
## Signals & visualization
* **Trend Long/Short** → triangle markers (above/below) when:
* AI bias aligns with trend confirmations (DI edge, ADX above threshold, price vs long SMA, optional HTF alignment).
* Volatility regime agrees; **anti-breakout** prevents entries exactly at lookback highs/lows.
* **Reversal Long/Short** → circular markers when:
* **Core**: AI near “loose” band, OBV/MFI/volZ supportive, ADX cooling, DI spread relaxed, PA confirms (crosses/div).
* **Early**: anticipatory patterns (Keltner exhaustion, simple RSI “quasi-divergence”).
* **Scalp**: micro-EMA cross, wick rejection, mini-engulfing, with relaxed guards but AI/volume still in the loop.
* **Markers appear only on the bar that actually emitted the signal** (no repaint); offsets use ATR so shapes don’t overlap.
---
## Alerts (ready for webhooks)
Enable “**Any alert() function call**” and you’ll receive compact, single-line payloads once per bar:
```
action=BUY;reason=reversal-early;ai=0.1375;volZ=0.82;adx=27.5
action=SELL;reason=trend;ai=-0.2210;volZ=0.43;adx=31.9
```
* `action`: BUY / SELL
* `reason`: `trend` | `reversal-core` | `reversal-early` | `reversal-scalp`
* `ai`: current smoothed AI Score at signal bar
* `volZ`: volume Z-score
* `adx`: current ADX
---
## Inputs (exhaustive)
### 1) Core Inputs
* **RSI Length (Base)** (`rsi_length_base`, int)
Base RSI lookback. Shorter = more reactive; longer = smoother.
* **RSI Overbought Threshold** (`rsi_overbought`, int)
Informational for context; RSI is used normalized in the AI fusion.
* **RSI Oversold Threshold** (`rsi_oversold`, int)
Informational; complements visual context.
* **EMA Length (Base)** (`ema_length_base`, int)
Primary adaptive mean; also used for Keltner mid and distance metric.
* **ATR Length (Base)** (`atr_length_base`, int)
Volatility unit for Keltner, SL/TP (debug), and regime detection.
* **ATR SMA Length** (`atr_sma_len`, int)
Smooth baseline for ATR regime; supports “high\_vol” logic.
* **ATR Multiplier Base** (`atr_mult_base`, float)
Scales volatility gating (sqrt-scaled); higher = tighter high-vol requirement.
* **Disable Volatility Filter** (`disable_volatility_check`, bool)
Bypass volatility gating if true.
* **Price Change Period (bars)** (`price_change_period_base`, int)
Simple momentum check (+/−% over N bars) used in trend validation.
* **Base Cooldown Bars Between Signals** (`signal_cooldown_base`, int ≥ 0)
Minimum bars to wait between signals (per side).
* **Trend Confirmation Bars** (`trend_confirm_bars`, int ≥ 1)
Require persistence above/below long SMA for this many bars.
* **Use Higher Timeframe Confirmation** (`use_higher_tf`, bool)
Turn on/off HTF alignment (no repaint).
* **Higher Timeframe for Confirmation** (`higher_tf`, timeframe)
E.g., “60” to confirm M15 with H1; used for HTF PDI/MDI/ADX and SMA.
* **TP as ATR Multiple** (`tp_atr_mult`, float)
For **visual debug** only (drawn after entries); not an order manager.
* **SL as ATR Multiple** (`sl_atr_mult`, float)
For visual debug only.
* **Enable Scalping Mode** (`scalping_mode`, bool)
Compresses lengths/thresholds, unlocks micro-PA modules, reduces cooldown.
* **Show Debug Lines** (`show_debug`, bool)
Plots AI bands, DI/ADX, EMA/SMA, Keltner, vol metrics, and TP/SL (debug).
### 2) AI Score & Thresholds
* **AI Score Smooth Len** (`ai_len`, int)
EMA smoothing over the raw fusion.
* **AI Volatility Window** (`ai_sigma_len`, int)
Window to estimate AI mean (μ) and standard deviation (σ).
* **K High (sigma)** (`ai_k_hi`, float)
Upper band width (σ multiplier) for strong threshold.
* **K Low (sigma)** (`ai_k_lo`, float)
Lower band width (σ multiplier) for loose threshold.
* **Debounce Window (bars)** (`ai_debounce_m`, int ≥ 1)
Rolling window length used by the confirm counter.
* **Min Bars>Thr in Window** (`ai_debounce_n`, int ≥ 1)
Minimum confirmations inside the debounce window to validate a state.
* **Use Hysteresis Thresholds** (`ai_hysteresis`, bool)
Requires crossing back past a looser band to exit bias → fewer whipsaws.
* **Weight DI Edge (0–1)** (`ai_weight_di`, float)
Importance of DI edge within the fusion.
* **Weight EMA Dist (0–1)** (`ai_weight_ema`, float)
Importance of EMA distance (in ATR units).
* **Weight RSI Norm (0–1)** (`ai_weight_rsi`, float)
Importance of normalized RSI.
* **Sensitivity (0–1)** (`sensitivity`, float)
Contracts/expands bands (higher = more sensitive).
### 3) Volume Filters
* **Volume MA Length** (`vol_ma_len`, int)
Baseline for volume Z-score.
* **Volume Z-Score Window** (`vol_z_len`, int)
Std-dev window for Z-score; larger = fewer volume “spikes”.
* **Reversal: Min Volume Z for confirm** (`vol_rev_min_z`, float)
Minimum Z required to validate reversals (adaptively relaxed in scalping).
* **OBV Slope Lookback** (`obv_slope_len`, int)
Rising/falling OBV over this window supports bull/bear confirmations.
* **MFI Length** (`mfi_len`, int)
Money Flow Index lookback (manual calculation).
### 4) Filters (Breakout / ADX / Reversal)
* **Enable Breakout Filter** (`enable_breakout_fil`, bool)
Avoid trend entries at lookback highs/lows.
* **Breakout Lookback Bars** (`breakout_lookback`, int ≥ 1)
Window for the anti-breakout guard.
* **Base ADX Length** (`adx_length_base`, int)
Lookback for DI/ADX smoothing (also adapted in Scalping Mode).
* **Base ADX Threshold** (`adx_threshold_base`, float)
Minimum ADX to validate trend context (scaled in Scalping Mode).
* **Enable Reversal Filter** (`enable_rev_filter`, bool)
Master switch for reversal logic.
* **Max ADX for Reversal** (`rev_adx_max`, float)
Hard cap: above this ADX, reversals are blocked (unless overridden by AI if allowed in Guards).
### 5) Reversal Guard (regime protection & overrides)
* **Strong Trend: ADX add-above Thr** (`guard_adx_add`, float)
Extra ADX above `adx_threshold` to mark “strong” trend.
* **Strong Trend: min DI spread** (`guard_spread_min`, float)
Minimum DI separation to consider a trend “dominant”.
* **Require ADX drop from window max (%)** (`guard_adx_drop_min_pct`, float 0–1)
ADX must drop at least this fraction from its window maximum to consider “cooling”.
* **Regime Window (bars)** (`guard_regime_len`, int ≥ 10)
Window over which ADX max is measured for the “cooling” check.
* **EMA Slope Lookback** (`guard_slope_len`, int ≥ 2)
EMA slope horizon used alongside Keltner for strong-trend identification.
* **Keltner Mult (ATR)** (`guard_kc_mult`, float)
Keltner width for strong trend bands and exhaustion checks.
* **HTF Reversal Block Mode** (`htf_block_mode`, string: `Off` | `On` | `AI-controlled`)
* `Off`: never block by HTF.
* `On`: block reversals whenever HTF is strong.
* `AI-controlled`: block **unless** AI+volume+ADX-cooling override criteria are met.
* **AI-controlled: allow AI override** (`ai_htf_override`, bool)
Enables the override mechanism in `AI-controlled` mode.
* **AI override multiplier (vs band\_hi)** (`ai_override_mult`, float)
Strength needed beyond the high band to count as “strong AI”.
* **AI override: min bars beyond strong thr** (`ai_override_min_bars`, int ≥ 1)
Debounce on the override itself.
### 6) Markers
* **Reversal Circle ATR Offset** (`rev_marker_offset_atr`, float ≥ 0)
Vertical offset for reversal circles; trend triangles use a separate (internal) offset.
### 7) Scalping Mode Tuning
* **Reversal aggressiveness (0–1)** (`scalp_rev_aggr`, float)
Higher = looser guards and stronger AI sensitivity.
* **Wick: body multiple (bull/bear)** (`scalp_wick_body_mult`, float)
Wick must be at least this multiple of body to count as rejection.
* **Wick: ATR multiple (min)** (`scalp_wick_atr_mult`, float)
Minimal wick length in ATR units.
* **Micro EMA factor (vs EMA base)** (`scalp_ema_fast_factor`, float 0.2–0.9)
Fast EMA length = base EMA × factor (rounded/int).
* **Relax breakout filter in scalping** (`scalp_breakout_relax`, bool)
Lets more trend entries through in scalping context.
### 8) ICT-style SMA (bases)
* **ICT SMA Long Length (Base)** (`sma_long_len_base`, int)
Long-term baseline for regime/trend.
* **ICT SMA Short1 Length (Base)** (`sma_short1_len_base`, int)
Short baseline for price-action crosses.
* **ICT SMA Short2 Length (Base)** (`sma_short2_len_base`, int)
Companion short baseline used in PA cross checks.
> **Adaptive “effective” values:** When **Scalping Mode** is ON, the script internally shortens multiple lengths (RSI/EMA/ATR/ADX/μσ windows, SMAs) and gently relaxes guards (ADX drop %, DI spread, volume Z, override thresholds), reduces cooldown/confirm bars, and optionally relaxes the breakout filter—so you get **more frequent but still curated** signals.
---
## Plots & debug (optional)
* DI+/DI−, ADX (curr + HTF), EMA, long SMA, Keltner up/down (when strong), AI Score, AI mean, AI bands (hi/lo; low plots only when hysteresis is on), Volume MA and Z-score, and ATR-based TP/SL guide (after entries).
* These are **study aids**; the indicator does not manage trades.
---
## Recommended use
* **Timeframes**:
* Scalping Mode: M1–M15.
* Standard Mode: M15–H1 (or higher).
* **Markets**: Designed for liquid FX, indices, metals, and large-cap crypto.
* **Chart type**: Standard candles recommended (Heikin-Ashi alters inputs and hence signals).
* **Alerts**: Use “Any alert() function call”. Parse the key/value payloads server-side.
---
## Good to know
* **Why some alerts don’t draw shapes retroactively**: markers are drawn **only on** the bar that emitted the signal (no repaint by design).
* **Why a reversal didn’t fire**: strong-trend guards + HTF block may have been active; check ADX, DI spread, Keltner position, EMA slope, and whether AI override criteria were met.
* **Too many / too few signals**: tune **Scalping Mode**, `signal_cooldown_base`, AI bands (`ai_k_hi/lo`, `sensitivity`), volume Z (`vol_rev_min_z`), and guards (`rev_adx_max`, `guard_*`).
---
## Disclaimer
This is an **indicator**, not a strategy or an execution system. It does not place, modify, or manage orders. Markets carry risk—validate on historical data and demo before any live decisions. No performance claims are made.
---
### Version
**Scalp Sense AI v11.5** — Adaptive AI bands with hysteresis/debounce, HTF no-lookahead confirmations, guarded reversal logic with AI override, full volume suite (Z, OBV slope, MFI), anti-breakout filter, and a dedicated Scalping Mode with micro-PA cues.
Cvd Divergence Signals with filter.
CVD Divergence + Candles - False Signal Filter
Hey traders,
I want to share my custom indicator with you. Through testing, I've found that CVD (Composite Volume Delta) captures divergences much more accurately than traditional tools like RSI. But this isn't just another divergence indicator - I've added strict candlestick pattern confirmation to filter out false signals. I'll keep improving this tool over time, and I welcome all your suggestions in the comments.
How it works step-by-step:
1. First, it detects CVD divergences (the delta between buy/sell volumes)
2. Then confirms each signal with reversal candlestick patterns:
- Hammer/Hanging Man
- Engulfing
- Pin Bar
- Inside Bar
Why mine beats standard CVD indicators:
• No raw divergences - only shows signals confirmed by BOTH volume AND price action
• Eliminates 80% of junk signals from basic versions
• Adaptable to any asset and timeframe
Simple usage guide:
Green arrows = Buy when:
- CVD shows bullish divergence
- AND a hammer/pin bar appears
Red arrows = Sell when:
- CVD shows bearish divergence
- Confirmed by hanging man/engulfing pattern
Pro tip:
For best results, combine with:
• Volume profile analysis
• Smart Money concepts (order blocks, FVGs )
Important notes:
This isn't a holy grail - I personally use it with support/resistance levels. Works best on 5M charts for scalping.
**PS** Got questions? Drop them in comments!
Cnagda Trading ToolCnagda Trading Tools - complete set of intraday trading
1. Trendline breakout based On ATR.
2. Live RSI, volume/candle average 20 Periods, trend direction last 34 periods, and some useful dashboard features.
3. Ma Scalp Line provide trend support and resistance + Where Line More Flat Previous Time You Also Use That Range As Support And Resistance
4. RSI based POC ( Point Of Control) indicate high Volume Area like fixed Range Volume profile
5. London session breakout with buy/sell Signal and NewYork session opening half hour range breakout with Buy/sell signal
Ma Scalp Buy And Sell Signal For Short term Scalping ( 5 Min Timeframe) Based on Ema And Wma Crossover
I hope these tools will improve your trading, but you should trade only after proper research, this indicator is not responsible for any loss.
Smart Wick AnalyzerSmart Wick Analyzer (SWA)
Purpose: Highlight potential liquidity‑grab candles (long wicks) and turn them into actionable, rule‑based buy/sell signals with trend, volume, and cooldown filters.
Type: Indicator (not a strategy). Educational tool to contextualize wick events.
🧠 What This Script Does
SWA looks for candles where the wick is large relative to its body—a common signature of liquidity sweeps / rejection. It then adds three confirmations before marking a trade signal:
1. Wick Event
• Upper‑wick event (possible rejection from above)
• Lower‑wick event (possible rejection from below)
• Condition: wick length > body × Wick‑to‑Body Ratio
2. Context Filters
• Trend filter : closing price vs. SMA of lookbackBars
• Volume filter : current volume vs. average volume × volumeThreshold
3. Signal Hygiene
• Cooldown : prevents clustering; a minimum number of bars must pass before a new signal is allowed.
If a candle passes these checks:
• Buy Signal (triangle up): long lower wick + price above SMA + relative‑high volume + cooldown passed
• Sell Signal (triangle down): long upper wick + price below SMA + relative‑high volume + cooldown passed
The signal candle is also bar‑colored black for quick visual focus.
⸻
✳️ What the Dotted Lines Mean (including the green one)
On every signal bar the script draws two dotted horizontal levels, extended to the right:
• Open line of the signal candle
• Close line of the signal candle
• They use the signal color: green for Buy, red for Sell.
How to interpret (example: green = Buy signal):
• The green dotted close line represents the momentum validation level. If subsequent candles close above this line, it indicates follow‑through after the wick rejection (buyers defended into the close).
• The green dotted open line is a risk context / invalidation reference. If price falls back below it soon after the signal, the wick event may have failed or devolved into chop.
In your annotated chart: the candle initially looked constructive (“closing above could be positive momentum”), but later price failed and rotated down—hence a sell signal interpreted when an upper‑wick event occurred under down‑trend conditions.
⸻
⚙️ Inputs & What They Control
• Wick‑to‑Body Ratio (wickThreshold): how “extreme” a wick must be to count as a liquidity‑grab.
• Lookback Period (lookbackBars):
• SMA period for trend context
• Volume MA for relative‑volume check
• Volume Multiplier (volumeThreshold): strengthens/loosens volume confirmation.
• Cooldown Bars (cooldownBars): minimum spacing between consecutive signals.
• Enable Alerts (showAlerts): turns on alert conditions.
⸻
🔔 Alerts (exact titles)
• “SWA Buy Alert” — potential reversal / Buy signal detected
• “SWA Sell Alert” — potential reversal / Sell signal detected
⸻
📌 How to Use (practical guide)
1. Scan for the black‑colored signal candle and its dotted lines.
2. For Buy signals (green): Prefer continuation if price closes above the green close line within the next few bars. Manage risk using the open line or your own level.
3. For Sell signals (red): Prefer continuation if price closes below the red close line.
4. Avoid chasing during low‑volume / counter‑trend signals; the filters help, but structure (HTF trend, S/R, session context) still matters.
5. Use the cooldown to reduce noise on fast time frames.
⸻
✅ Why This Isn’t Just “Another Wick Indicator”
• The script does not flag every long‑wick; it requires trend alignment and relative volume to suggest participation.
• The two reference lines (open/close) provide post‑signal state tracking—a simple, visual framework to judge follow‑through vs. failure without additional tools.
• Cooldown logic discourages clustered, low‑quality repeats around the same zone.
⸻
⚠️ Notes & Limitations
• Works across markets/time frames, but wick behavior varies by instrument and session. Parameters may need adjustment.
• Signals are contextual, not guarantees. Consolidation and news spikes can invalidate wick reads.
• This indicator is not a strategy; it does not backtest performance on its own.
⸻
📄 Disclaimer
This tool is for educational purposes only and should be combined with personal analysis and risk management. Markets are uncertain; past behavior does not guarantee future results.
Buy & Sell Volume (OWI)📊 Buy & Sell Volume (OWI) Indicator Guide
The Buy & Sell Volume (OWI) indicator is designed to provide a visual breakdown of buying and selling pressure in each candle, helping traders identify volume surges and potential market moves. It also includes a time filter to focus analysis during key trading hours.
⚙️ Setup & Inputs
When adding the indicator to your chart, you'll see several configurable inputs:
SMA Length : Sets the period for the Simple Moving Average (SMA) of total volume.
Enable Time Filter : Toggles whether to restrict analysis to US market hours (Eastern Time). |
Start Hour/Minute : Defines the beginning of the time filter window (default: 9:45 ET). |
End Hour/Minute : Defines the end of the time filter window (default: 16:15 ET). |
📈 How It Works
🔍 Volume Breakdown
Buy Volume: Estimated volume attributed to buyers, calculated based on candle position.
Sell Volume: Estimated volume attributed to sellers.
Total Volume SMA: A moving average of total volume to benchmark current activity.
⏰ Time Filter (Optional)
When enabled, the indicator only highlights volume spikes during the specified US market hours. This helps filter out noise from pre-market or after-hours trading.
🚨 Highlight Conditions
The indicator flags significant volume spikes with labels above the volume bars:
| Label | Condition |
| V+ | Volume is between 1.5× and 2× the SMA, during market hours (if enabled). |
| V++ | Volume exceeds 2× the SMA, during market hours (if enabled). |
💡 Tips
- Use shorter SMA lengths for more reactive volume analysis.
- Change the time filter if you're trading outside US market hours.
- Combine with candlestick patttern to confirm breakout or reversal signals.
ATAI Triangles — Volume-Based & Price Pattern Analysis (v1.01)ATAI Triangles — Volume-Based & Price Pattern Analysis (v1.01)
Overview
ATAI Triangles identifies two synchronized triangle structures — Hi-Lo-Hi (HLH) and Lo-Hi-Lo (LHL) — and analyzes them both geometrically and volumetrically. For each triangle, volume is split between its two legs (segments), providing interpretable insights into buyer vs seller activity along each path.
The idea is that certain geometric shapes, when paired with volume distribution on each leg, can reveal patterns worth exploring. Users are encouraged to share their observations and interpretations in the TradingView comments section so that more aspects of these triangle combinations can be discovered collectively.
Extra (for fun)
For a bit of entertainment, we’ve included a symbolic “hexagram” glyph that appears when both triangle types align in a particular way — it’s just a visual nod to geometry and has no predictive or trading value.
Interface & data clarity
- Inputs and parameters are organized by function (pattern geometry, volume analysis, visuals, HUD, labels).
- Each input includes tooltips explaining its purpose, units, and possible effects on calculations.
- All on-chart objects (polylines, labels, connectors) are named and colored to reflect their role, with volume values formatted in engineering notation (K, M, B).
- HUD columns and label texts use concise terms and consistent units, so that every displayed value is directly traceable to a calculation in the code.
- Daily and lower-timeframe volume series are clearly separated, with update logic documented to indicate intrabar provisional values vs finalized bar-close values.
Usage notes
Designed to be used alongside other indicators and chart tools for context; it is not a standalone signal generator.
All Buy/Sell volumes are absolute (non-negative); Δ = Buy − Sell.
Intrabar values update live and finalize at bar close (no repaint after close).
Disclaimer
For research, discussion, and educational purposes only. This is not financial advice and does not guarantee any outcome. Trade at your own risk.
XAUMO MEGABAR Detector]XAUMO MegaBar Detector – Breakout Candle Identification Tool
Purpose:
The XAUMO MegaBar Detector is built to highlight rare, high-impact candles where strong price movement and high trading volume occur together. These moments often reflect aggressive market activity and can be used to confirm potential breakouts or reversals.
How It Works (High-Level Overview)
The tool continuously monitors two primary conditions:
Price Expansion – Identifies large-bodied candles compared to recent averages.
Volume Expansion – Confirms that the move is supported by above-average trading activity.
When both conditions are present, the candle is marked:
🟢 Mega Bull – Strong bullish pressure.
🔴 Mega Bear – Strong bearish pressure.
Key Features
Automatic Timeframe Adjustment – Detection sensitivity changes based on chart timeframe, so results stay relevant from 1-minute scalps to multi-day swing setups.
Clear Visual Output – Significant candles are highlighted directly on the chart for easy recognition.
Optional Labels – Toggle on/off text labels (“Mega Bull” / “Mega Bear”) for a cleaner chart view.
Alert Integration – Set TradingView alerts to be notified immediately when a qualifying candle appears.
Universal Compatibility – Works on Forex, Commodities, Indices, Crypto, Stocks, ETFs, and Futures.
Practical Uses for Traders
As a confirmation tool when price approaches support/resistance or Fibonacci levels.
To filter low-quality setups by focusing only on moments where both price and volume confirm the move.
As part of a trend-following or breakout strategy when combined with other analysis methods.
Using the Indicator
Add the indicator to any chart and select your preferred timeframe.
Watch for highlighted candles – they indicate significant combined momentum and liquidity.
Use as a signal filter or confirmation alongside your existing trading system.
Optional: Set alerts to receive push/email/webhook notifications.
===================================
📌 MEGA BAR TRADING CHEAT SHEET
Spot Big Money. Ride the Move.
===================================
🧠 WHAT’S A MEGA BAR?
A Mega Bar is a candle so big it makes the rest look tiny — and it often means institutions are making a move.
Check the 4 Rules:
✅ Body size ≥ 2x average
✅ High relative volume (vs. last 20 bars)
✅ Closes near high (bull) or low (bear)
✅ Comes after sideways chop or price squeeze
📈 WHY IT MATTERS
Mega Bars = intent, not random spikes.
🟢 Mega Bull near support/Fib pullback → Likely accumulation
🔴 Mega Bear near resistance/Fib extension → Likely distribution or trap
🔧 HOW TO TRADE IT
1. WAIT FOR IT
No Mega Bar → No trade.
Mega Bull (big green) → BUY bias.
Mega Bear (big red) → SELL bias.
2. FIND THE SPOT
Fib levels: 61.8% / 78.6% / 138.2%
Major Support/Resistance
3. CONFIRM ON BIGGER TIMEFRAME
Example: 15M Mega Bar → Check 1H trend direction.
4. SET YOUR LEVELS
Stop-Loss:
Long → Below Mega Bull low (+0.2×ATR)
Short → Above Mega Bear high (+0.2×ATR)
Take-Profit:
Fib extensions: 127.2% / 161.8% / 261.8%
Prior highs/lows
5. RISK SMART
Risk 1–2% max per trade
Aim for 2:1+ R:R
🌍 WORKS ON:
Forex • Commodities • Stocks • Crypto • Indices
THE RETAILER’S FORMULA:
🟢 Big Green → Buy
🔴 Big Red → Sell
🎯 Fibs = Payday
One setup. One signal. Discipline = profit.
Consensus Signal Matrix Pro [By TraderMan] Consensus Signal Matrix Pro 🌟
What Does It Do? 📊
Consensus Signal Matrix Pro is a comprehensive technical analysis indicator designed for financial markets. 🧠 It aggregates signals from over 30 popular technical indicators (e.g., EMA, RSI, MACD, Bollinger Bands, Supertrend, Ichimoku, etc.) to provide a unified BUY, SELL, or NEUTRAL recommendation. 💡 This tool helps traders make informed decisions by consolidating signals and presenting them in a clear table format. 📈 It is particularly suited for leveraged trading (without built-in TP/SL). 🚀
How Does It Work? 🔍
Multi-Indicator Analysis 🛠️:
The indicator calculates signals from 30 different technical indicators (e.g., EMA 9/21, RSI, MACD, Supertrend, Ichimoku, Williams %R, etc.).
Each indicator generates a BUY, SELL, or NEUTRAL signal based on price action and volume data.
For example: RSI < 30 triggers a "BUY" signal, while RSI > 70 triggers a "SELL" signal. 🔔
Signal Aggregation and Consensus 🤝:
All indicator signals are collected into an array.
The number of BUY, SELL, and NEUTRAL signals is counted.
A percentage difference (percentDiff) is calculated by dividing the difference between BUY and SELL signals by the total number of indicators.
Based on this difference:
>20%: General status is GENERAL BUY. ✅
<-20%: General status is GENERAL SELL. ❎
In between: General status is NEUTRAL. ⚖️
Position Recommendation 💸:
The position type is determined based on the general status:
GENERAL BUY → LONG position recommended. 📈
GENERAL SELL → SHORT position recommended. 📉
NEUTRAL → No position (NONE). 🚫
Table Visualization 📋:
The indicator displays all signals and the general status in a table located in the top-right corner of the TradingView chart. 🎨
The table lists each indicator’s name, its signal (BUY/SELL/NEUTRAL), total indicator count, BUY/SELL/NEUTRAL counts, general status, and position type. 🖼️
Color coding is used: Green (BUY), Red (SELL), Gray (NEUTRAL), Orange (headers). 🌈
How to Use It? 🛠️
Setup ⚙️:
Copy and paste the indicator code into the Pine Editor on TradingView and compile it. 🖥️
Add it to your chart (works on any timeframe, though it uses D1 data for daily ATR). ⏰
Review the Table 📖:
Check the table displayed in the top-right corner of the chart.
Review each indicator’s signal (BUY/SELL/NEUTRAL) and the overall signal distribution.
Focus on the GENERAL STATUS and POSITION TYPE rows. 🔎
Position Opening Decision 💰:
LONG Position: If GENERAL STATUS is "GENERAL BUY" and the table shows mostly green (BUY) signals, consider opening a LONG position. 📈
SHORT Position: If GENERAL STATUS is "GENERAL SELL" and the table shows mostly red (SELL) signals, consider opening a SHORT position. 📉
NEUTRAL Status: If the status is "NEUTRAL," avoid opening a position. ⚖️
Risk Management ⚠️:
The indicator does not include Take Profit (TP) or Stop Loss (SL) levels. You must apply your own risk management strategy.
Recommended: Use ATR-based volatility (shown in the table as ATR signal) or support/resistance levels to set manual TP/SL. 🛡️
Timeframe and Asset ⏳:
Can be used on any financial asset (stocks, forex, crypto, etc.).
Works on short-term (1H, 4H) or long-term (D1, W1) charts. Evaluate signal speed based on your timeframe. 📅
How to Open Positions? 🎯
Trust the General Status: Use GENERAL STATUS (GENERAL BUY or GENERAL SELL) as the primary guide. A strong percentage difference (>20% or <-20%) indicates a more reliable signal. ✅
Check Signal Strength: Look at the table to assess the number of BUY or SELL signals. For example, if 20 out of 30 indicators signal BUY, it’s a strong LONG signal. 💪
Align with Market Conditions: Before acting, analyze the broader market trend (bullish, bearish, or sideways). For instance, SELL signals may be less reliable in a strong bull market. 📡
Combine with Other Analyses: Use the indicator alongside support/resistance levels, news flow, or fundamental analysis for confirmation. 🧩
Caution: The indicator is designed for leveraged trading but lacks TP/SL. Manage volatility and risk tolerance carefully. ⚠️
Advantages and Considerations 🌟
Advantages 😊:
Simplifies analysis by combining multiple indicators into one table.
Provides a quick overview of market direction.
User-friendly for both beginners and experienced traders.
Considerations ⚠️:
No signal is 100% accurate; markets can be unpredictable.
You must develop your own risk management strategy.
Signals may be misleading during high volatility; use additional confirmation.
Final Note 🎉:
Consensus Signal Matrix Pro is a powerful tool for traders seeking a consolidated view of multiple technical signals. 🚀 By combining diverse indicators into a single, easy-to-read table, it streamlines decision-making. However, always combine it with sound risk management and market context for the best results. 💸 Happy trading! 🤑
Market Regime Matrix [Alpha Extract]A sophisticated market regime classification system that combines multiple technical analysis components into an intelligent scoring framework to identify and track dominant market conditions. Utilizing advanced ADX-based trend detection, EMA directional analysis, volatility assessment, and crash protection protocols, the Market Regime Matrix delivers institutional-grade regime classification with BULL, BEAR, and CHOP states. The system features intelligent scoring with smoothing algorithms, duration filters for stability, and structure-based conviction adjustments to provide traders with clear, actionable market context.
🔶 Multi-Component Regime Engine Integrates five core analytical components: ADX trend strength detection, EMA-200 directional bias, ROC momentum analysis, Bollinger Band volatility measurement, and zig-zag structure verification. Each component contributes to a sophisticated scoring system that evaluates market conditions across multiple dimensions, ensuring comprehensive regime assessment with institutional precision.
// Gate Keeper: ADX determines market type
is_trending = adx_value > adx_trend_threshold
is_ranging = adx_value <= adx_trend_threshold
is_maximum_chop = adx_value <= adx_chop_threshold
// BULL CONDITIONS with Structure Veto
if price_above_ema and di_bullish
if use_structure_filter and isBullStructure
raw_bullScore := 5.0 // MAXIMUM CONVICTION: Strong signals + Bull structure
else if use_structure_filter and not isBullStructure
raw_bullScore := 3.0 // REDUCED: Strong signals but broken structure
🔶 Intelligent Scoring System Employs a dynamic 0-5 scale scoring mechanism for each regime type (BULL/BEAR/CHOP) with adaptive conviction levels. The system automatically adjusts scores based on signal alignment, market structure confirmation, and volatility conditions. Features decision margin requirements to prevent false regime changes and includes maximum conviction thresholds for high-probability setups.
🔶 Advanced Structure Filter Implements zig-zag based market structure analysis using configurable deviation thresholds to identify significant pivot points. The system tracks Higher Highs/Higher Lows (HH/HL) for bullish structure and Lower Lows/Lower Highs (LL/LH) for bearish structure, applying structure veto logic that reduces conviction when price action contradicts the underlying trend framework.
// Define Market Structure (Bull = HH/HL, Bear = LL/LH)
isBullStructure = not na(last_significant_high) and not na(prev_significant_high) and
not na(last_significant_low) and not na(prev_significant_low) and
last_significant_high > prev_significant_high and last_significant_low > prev_significant_low
isBearStructure = not na(last_significant_high) and not na(prev_significant_high) and
not na(last_significant_low) and not na(prev_significant_low) and
last_significant_low < prev_significant_low and last_significant_high < prev_significant_high
🔶 Superior Engine Components Features dual-layer regime stabilization through score smoothing and duration filtering. The score smoothing component reduces noise by averaging raw scores over configurable periods, while the duration filter requires minimum regime persistence before confirming changes. This eliminates whipsaws and ensures regime transitions represent genuine market shifts rather than temporary fluctuations.
🔶 Crash Detection & Active Penalties Incorporates sophisticated crash detection using Rate of Change (ROC) analysis with severity classification. When crash conditions are detected, the system applies active penalties (-5.0) to BULL and CHOP scores while boosting BEAR conviction based on crash severity. This ensures immediate regime response to major market dislocations and drawdown events.
// === CRASH OVERRIDE (Active Penalties) ===
is_crash = roc_value < crash_threshold
if is_crash
// Calculate crash severity
crash_severity = math.abs(roc_value / crash_threshold)
crash_bonus = 4.0 + (crash_severity - 1.0) * 2.0
// ACTIVE PENALTIES: Force bear dominance
raw_bearScore := math.max(raw_bearScore, crash_bonus)
raw_bullScore := -5.0 // ACTIVE PENALTY
raw_chopScore := -5.0 // ACTIVE PENALTY
❓How It Works
🔶 ADX-Based Market Classification The Market Regime Matrix uses ADX (Average Directional Index) as the primary gatekeeper to distinguish between trending and ranging market conditions. When ADX exceeds the trend threshold, the system activates BULL/BEAR regime logic using DI+/DI- crossovers and EMA positioning. When ADX falls below the ranging threshold, CHOP regime logic takes precedence, with maximum conviction assigned during ultra-low ADX periods.
🔶 Dynamic Conviction Scaling Each regime receives conviction ratings from UNCERTAIN to MAXIMUM based on signal alignment and score magnitude. MAXIMUM conviction (5.0 score) requires perfect signal alignment plus favorable market structure. The system progressively reduces conviction when signals conflict or structure breaks, ensuring traders understand the reliability of each regime classification.
🔶 Regime Transition Management Implements decision margin requirements where new regimes must exceed existing regimes by configurable thresholds before transitions occur. Combined with duration filtering, this prevents premature regime changes and maintains stability during consolidation periods. The system tracks both raw regime signals and final regime output for complete transparency.
🔶 Visual Regime Mapping Provides comprehensive visual feedback through colored candle overlays, background regime highlighting, and real-time information tables. The system displays regime history, conviction levels, structure status, and key metrics in an organized dashboard format. Regime changes trigger immediate visual alerts with detailed transition information.
🔶 Performance Optimization Features efficient array management for zig-zag calculations, smart variable updating to prevent recomputation, and configurable debug modes for strategy development. The system maintains optimal performance across all timeframes while providing institutional-grade analytical depth.
Why Choose Market Regime Matrix ?
The Market Regime Matrix represents the evolution of market regime analysis, combining traditional technical indicators with modern algorithmic decision-making frameworks. By integrating multiple analytical dimensions with intelligent scoring, structure verification, and crash protection, it provides traders with institutional-quality market context that adapts to changing conditions. The sophisticated filtering system eliminates noise while preserving responsiveness, making it an essential tool for traders seeking to align their strategies with dominant market regimes and avoid adverse market environments.
Moving Average Volume (20, 50)Shows two moving averages of volume, the 20 and 50 periods.
white bars in the background show volume, look for breaks of the target lines to confirm a breakout with volume
green shaded regions show how much higher the current volume is compared to historical volume
the greener the shade, the higher the multiple is (cap is 10x higher)
indicator is to be used with other breakout identifiers, or to help confirm the strength of a move out of an SAR level.
Volume Reinforced Supply/Demand Zoneswhen trading supply and demand i found a way to see which zones are high quality zones. this indicator tries to do that for you. its not nearly as good as doing it manually, but its pretty decent. feel free to fine tune the settings and see which works best for you.
the indicator uses volume and price movement to draw supply and demand zones. if the zone is tested, it will change color to let you know, so you can decide whether or not to use the zone.
if a zone is broken, it will display a signal which tells you which candle broke through the zone.
you can change in the settings the requirements for an area to be considered a zone.
Institutional HeatmapHeatmap Range - Volume Profile Visualization Indicator
What This Indicator Does
The Heatmap Range indicator provides a sophisticated volume profile visualization that displays price levels with the highest trading activity using color-coded heatmaps directly on your chart. Unlike traditional volume indicators, this tool shows WHERE the most significant trading occurred within specific price ranges over a customizable lookback period.
Advanced Volume Analysis
Volume-Weighted Price Levels: Calculates and displays up to 20 price levels based on actual trading volume
Customizable Time Period: Analyze volume distribution over 10-500 bars (default: 180 bars)
Smart Bin Sizing: Adjustable pip range (0.1-50 pips) for precise level identification
Peak Detection: Automatically identifies and centers display around highest volume areas
Visual Customization
3 Color Patterns:
Inverted Heat (Orange to Dark Red)
Inverted Cool (Orange to Dark Blue)
Inverted Purple (Light Pink to Dark Purple)
Transparency Control: 0-95% transparency for optimal chart readability
Adaptive Display: Shows most relevant levels centered around peak volume
Multi-Asset Support
Forex Pairs (EUR/USD, GBP/USD, etc.)
Precious Metals (Gold/XAUUSD, Silver/XAGUSD)
Futures (NQ, ES, YM, etc.)
Cryptocurrencies
Stock Indices
Customizable Parameters
Histogram Period (10-500, Default: 180) Bars to analyze for volume distribution
Bin Range (0.1-50 pips, Default: 5.0) Price range for each volume level
Color Pattern (1-3, Default: 1) Visual color scheme selection
Average Volume Period (10-200, Default: 100) Period for volume normalization
Max Display Levels (5-20, Default: 20) Maximum price levels to show
Transparency (0-95%, Default: 50%) Opacity of heatmap display
How to Use
For Day Traders
Identify key support/resistance levels based on actual volume
Spot high-probability reversal zones
Plan entries/exits around significant volume levels
For Swing Traders
Analyze longer-term volume distribution patterns
Identify major accumulation/distribution zones
Confirm breakout levels with volume validation
For Scalpers
Quick identification of intraday volume hotspots
Real-time volume level updates
Precise entry/exit timing around volume clusters
Visual Interpretation
Darker Colors: Higher volume concentration (stronger levels)
Lighter Colors: Lower volume concentration
Color Intensity: Directly correlates to volume strength at that price level
Level Positioning: Automatically centers around peak volume areas
Technical Specifications
Pine Script Version: v5
Chart Overlay: Yes
Max Bars Back: 1000
Performance Optimized: Limited to 200 bins for smooth operation
Real-time Updates: Dynamic calculation on each bar close
Getting Started
Add to Chart: Apply indicator to any supported timeframe
Adjust Period: Set histogram period based on your trading style
Choose Colors: Select color pattern that suits your chart theme
Fine-tune Levels: Adjust bin range and max levels for optimal display
Set Transparency: Balance visibility with chart clarity
Important Notes
Minimum Data Requirement: Needs at least 10 bars of history to function
Performance: Higher periods and smaller bin ranges require more processing
Volume Dependency: Most effective on instruments with consistent volume data
Timeframe Agnostic: Works on all timeframes from 1-minute to monthly
Status Information
The indicator includes a real-time information table showing:
Current settings (Period, Bin Range, Color Pattern, Transparency)
Indicator status (Active/Loading)
Disclaimer: This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always conduct your own analysis and risk management before making trading decisions.
Compatible with TradingView's Pine Script v5 | Optimized for all market conditions | Professional-grade volume analysis
Volume Imbalance# Volume Imbalance Indicator
## Description
The Volume Imbalance Indicator is a technical analysis tool that measures the imbalance between bullish and bearish volume over a specified period. This indicator helps traders identify the prevailing market sentiment and potential reversal points.
## How It Works
The indicator analyzes trading volume for each candle:
- **Bull Volume** - volume of candles where the closing price is higher than the opening price (green candles)
- **Bear Volume** - volume of candles where the closing price is lower than the opening price (red candles)
- **Imbalance** is calculated as the difference between the sum of bull volume and bear volume over the set period
## Signal Interpretation
- **Positive values (green histogram)** - bullish volume dominates, indicating buyer strength
- **Negative values (red histogram)** - bearish volume dominates, indicating seller strength
- **Zero line** - equilibrium between buyers and sellers
## Trading Applications
1. **Trend Confirmation** - imbalance in the direction of the trend confirms its strength
2. **Divergence Analysis** - divergence between price and indicator may signal potential reversals
3. **Accumulation/Distribution Zones** - prolonged periods of imbalance indicate large player activity
## Settings
- **Period** - number of candles for calculating the imbalance (default: 20)
## Features
- Displays in a separate panel below the main chart
- Histogram format for better visualization
- Color coding: green for bullish imbalance, red for bearish imbalance
- Suitable for all timeframes and trading instruments
This indicator is particularly effective when combined with other technical analysis tools for comprehensive market assessment.
Volume Pressure Analysis - Live DataVolume Pressure Gauge and Volume Percentage Indicator – Pine Script Guide
This indicator provides a simplified, real-time visualization of both volume pressure (buy vs. sell activity) and today’s trading volume in comparison to historical averages. It is designed to help traders assess whether buyers or sellers dominate the current session and whether today’s volume is significant relative to recent behaviour.
________________________________________
Key Functional Segments
1. Inputs and Configuration
Users can configure the length of the Simple Moving Average (SMA) used to calculate average volume, set the position of the gauge table on the chart, and toggle the visibility of the volume pressure display. This allows flexibility in integrating the tool with various trading styles and chart layouts.
2. Volume Data Calculations
The indicator calculates three key volume metrics:
• volToday: The current day’s volume.
• volAvg: The average volume over the user-defined SMA period (default is 20 bars).
• volPct: The current volume as a percentage of the average.
This enables traders to quickly recognize whether current trading activity is above or below normal, which can be a precursor to potential trend strength or weakness.
3. Volume Pressure Calculation
The script estimates buying and selling pressure based on price movement and volume. It distributes volume into upward (buy) and downward (sell) segments and expresses them as percentages of the total volume. This gives an immediate sense of whether bulls or bears are more active in the current session.
4. Visual Representation (Progress Bars)
The indicator renders a simplified visual gauge using horizontal bar segments (pseudo-bars) to reflect the proportion of buy and sell pressure. The length of each bar correlates with the strength of pressure from buyers or sellers, helping users assess dominance without analyzing candlestick behavior in depth.
5. Table Display
A compact table is drawn on the chart showing:
• Buy pressure percentage and corresponding bar.
• Sell pressure percentage and corresponding bar.
• Volume percentage compared to the recent average.
This format makes it easy to evaluate volume dynamics at a glance, without cluttering the price chart or relying on separate overlays.
________________________________________
How Traders Benefit from This Indicator
• Momentum Shift Detection: Early signs of trend reversal can be observed when volume pressure flips direction.
• Breakout Validation: High volume combined with dominant pressure supports the credibility of breakout moves.
• False Move Avoidance: If price moves on low volume or mixed pressure, traders can avoid low-probability entries.
• Market Context Awareness: Users can assess whether a day is behaving normally in terms of participation or is unusually quiet or aggressive.
________________________________________
Basic Usage Guide
1. Add the script to your TradingView chart and set your preferred SMA length for volume comparison.
2. Customize the table’s position using the X and Y settings for clarity and alignment.
3. Interpret the outputs:
o A higher red bar indicates dominant sell pressure.
o A higher green bar indicates dominant buy pressure.
o Volume % above 100% suggests above-average activity, while values below 100% may imply low conviction.
4. Apply to trading decisions:
o High buy pressure and high volume may indicate a strong long opportunity.
o High sell pressure and high volume may support short setups.
o Low volume or conflicting signals may call for caution.
5. Combine with other tools such as trend indicators, support/resistance zones, or price action patterns for more reliable trade setups.
________________________________________
Practical Example
• Sell Pressure: 70% → Suggests strong seller control; potential for short setups.
• Buy Pressure: 30% → Weak buying interest; long trades may carry risk.
• Volume Percentage: 120% → Indicates a surge in participation; movement may have greater validity.
________________________________________
Tips for New Traders
• Use this indicator as a confirmation tool rather than a standalone strategy.
• Begin on higher timeframes (4-hour or daily) to develop familiarity.
• Compare multiple examples to identify reliable patterns over time.
• Always incorporate proper risk management, including stop losses.
________________________________________
Disclaimer from aiTrendview
This indicator is intended solely for educational and informational use. It does not constitute investment advice, trade signals, or financial recommendations. aiTrendview and its affiliates are not liable for any trading losses incurred through use of this tool. All trading involves risk. Past performance of any indicator does not guarantee future results. Users should conduct independent research and consult with a certified financial advisor before making any trading decisions.