Swing Points & Liquidity — ENHANCED PRO (Dark/Light Mode)This indicator — “Swing Points & Liquidity — ENHANCED PRO (Dark/Light Mode)” — automatically detects and visualizes swing highs, swing lows, and liquidity levels on the chart with rich analytics and customizable visuals.
🔍 Core Features
Smart Swing Detection: Identifies pivot highs/lows based on adjustable left/right bar settings.
Liquidity Visualization: Draws dynamic boxes and lines for liquidity pools and swing zones.
Volume & OI Integration: Filters and colors levels using volume and Open Interest Δ (change).
Strength Meter: Highlights strong liquidity levels with color gradients based on OI + volume intensity.
Automatic Trendlines: Connects swing points with selectable style and width.
Fibonacci Mapping: Automatically projects fib retracements (23.6%, 38.2%, 50%, 61.8%, 78.6%) from swing-to-swing for confluence zones.
Statistics Panel: Displays live metrics — total levels, active/filled count, success rate, and average strength.
Alerts System: Alerts for new swing formations and when price touches or breaks a level.
Multi-Timeframe Option: Analyze swing structures from higher timeframes on any chart.
Dual Theme Mode: Fully optimized for both Dark and Light interface preferences.
⚙️ Advanced Options
Adjustable lookback range
Hide or extend filled levels
Configurable volume and OI thresholds
Supports multiple OI data sources (Binance, BitMEX, Kraken)
Fully dynamic text, color, and label alignment settings
💡 Use Case
Perfect for Smart Money Concept (SMC) and ICT-style analysis, liquidity sweeps, and swing-based trading.
Traders can quickly visualize where liquidity sits, track how it gets filled, and monitor structure shifts in real time.
Volume
Aggregated Open Interest Multi-Exchange (USD)This indicator aggregates Open Interest (OI) data from multiple major cryptocurrency exchanges into a single unified view in USD, using data available on TradingView. It automatically adapts to the asset you're viewing on the chart.
Features:
Aggregates OI from 7 major exchanges: Binance, Bybit, OKX, Bitget, Deribit, HTX, and Coinbase
All values converted to USD - unlike native OI which shows contracts/coins
Uses only data available on TradingView platform
Automatically detects the asset from your chart (BTC, ETH, SOL, etc.)
True apples-to-apples comparison across exchanges
Displays as candlesticks showing OI open, high, low, and close
Toggle exchanges on/off individually
Handles different contract types per exchange automatically
Why USD conversion matters:
Traditional OI indicators show values in contracts or crypto units, making it difficult to compare across exchanges. This indicator converts everything to USD, giving you the real dollar value of open positions across all exchanges.
How it works:
Simply add the indicator to any crypto perpetual futures chart. It will automatically fetch and aggregate OI data from all supported exchanges for that asset using TradingView's built-in data feeds, converting everything to USD.
Supported Exchanges:
Binance, Bybit, Bitget, HTX: USDT perpetuals
Deribit: BTC/ETH use USD contracts, others use USDC
OKX: Contract-based (automatically converted)
Coinbase: USDC perpetuals
Perfect for traders who want a comprehensive view of total market Open Interest in USD across exchanges using reliable TradingView data.
Charts Bubbles OrderFlow//@version=5
indicator("DeepCharts-Style Market Order Bubbles (Modified)", overlay=true, max_labels_count=500)
// === Inputs ===
lookback = input.int(50, "Volume SMA Lookback", minval=1)
multiplier = input.float(4.0, "Bubble Size Multiplier", step=0.1) // Increased default
threshold = input.float(1.5, "Min Volume/SMA Ratio", step=0.1)
showSmall = input.bool(true, "Show Smaller Bubbles")
mode = input.string("Bar Direction (simple)", "Aggressor Mode",
options= )
showLabels = input.bool(false, "Show Volume Labels")
// === Volume baseline ===
smaVol = ta.sma(volume, lookback)
volRatio = (smaVol == 0.0) ? 0.0 : (volume / smaVol)
// === Aggressor heuristic ===
aggSign = switch mode
"Bar Direction (simple)" => close > open ? 1 : close < open ? -1 : 0
"Close v PrevClose" => close > nz(close ) ? 1 : close < nz(close ) ? -1 : 0
"Estimated Tick Delta" =>
rng = high - low
pos = rng > 0 ? (close - low) / rng : 0.5
bias = close > open ? 0.1 : close < open ? -0.1 : 0
(pos + bias) > 0.5 ? 1 : -1
=> 0
isBuy = aggSign == 1
isSell = aggSign == -1
showBubble = (volRatio >= threshold) or (showSmall and volRatio >= 0.5)
// === Enhanced Bubble sizes (made bigger) ===
baseSize = math.max(1.5, math.min(8.0, volRatio * multiplier)) // Increased range
largeBubble = showBubble and baseSize > 6 // Raised threshold
mediumBubble = showBubble and baseSize > 4 and baseSize <= 6 // Raised threshold
smallBubble = showBubble and baseSize <= 4 // Adjusted threshold
// === Reversed positioning: Buy BELOW candle, Sell ABOVE candle ===
// Use body bottom for buy bubbles (below), body top for sell bubbles (above)
bodyTop = math.max(open, close)
bodyBottom = math.min(open, close)
// Add small offset to avoid overlap with candle body
bodyHeight = bodyTop - bodyBottom
offset = bodyHeight * 0.05 // 5% of body height offset
buyPos = bodyBottom - offset // Buy bubbles below candle
sellPos = bodyTop + offset // Sell bubbles above candle
// === Plot BIGGER bubbles with reversed positioning ===
plotshape(largeBubble and isBuy ? buyPos : na, title="Buy Large", style=shape.circle,
color=color.new(color.green, 50), size=size.huge, location=location.absolute)
plotshape(mediumBubble and isBuy ? buyPos : na, title="Buy Medium", style=shape.circle,
color=color.new(color.green, 65), size=size.large, location=location.absolute)
plotshape(smallBubble and isBuy ? buyPos : na, title="Buy Small", style=shape.circle,
color=color.new(color.green, 75), size=size.normal, location=location.absolute)
plotshape(largeBubble and isSell ? sellPos : na, title="Sell Large", style=shape.circle,
color=color.new(color.red, 50), size=size.huge, location=location.absolute)
plotshape(mediumBubble and isSell ? sellPos : na, title="Sell Medium", style=shape.circle,
color=color.new(color.red, 65), size=size.large, location=location.absolute)
plotshape(smallBubble and isSell ? sellPos : na, title="Sell Small", style=shape.circle,
color=color.new(color.red, 75), size=size.normal, location=location.absolute)
// === Optional volume labels (adjusted positioning) ===
if showLabels and showBubble
labelY = isBuy ? buyPos : sellPos
labelColor = isBuy ? color.new(color.green, 85) : color.new(color.red, 85)
txt = "Vol: " + str.tostring(volume) + " Ratio: " + str.tostring(math.round(volRatio, 2))
label.new(bar_index, labelY, txt, yloc=yloc.price, style=label.style_label_left,
color=labelColor, textcolor=color.white, size=size.small)
// === Info table ===
var table t = table.new(position.top_left, 1, 1)
if barstate.islast
infoText = "Vol Ratio: " + str.tostring(math.round(volRatio, 2))
table.cell(t, 0, 0, infoText, text_color=color.white, bgcolor=color.new(color.black, 80))
Mimic liquidity Order Blocks Modifiedits help to find liquidity order block and the bull bear percentage also delta
Tick-Based Delta Volume BubblesTICK-BASED DELTA VOLUME BUBBLES
OVERVIEW
A real-time order flow indicator that displays volume delta at the tick level, helping traders identify buying and selling pressure as it develops during live market hours. Unlike traditional volume delta indicators that rely on bar close data, this indicator captures actual tick-by-tick volume changes and directional bias, providing granular insight into market dynamics.
HOW IT WORKS
The indicator monitors live tick data during real-time trading by tracking volume increases between consecutive price updates. Each time volume increments, the script calculates the volume delta, determines price direction, assigns directional bias to the volume, and accumulates net delta for each bar.
This methodology is identical to the tick detection mechanism used in professional cumulative volume delta tools, ensuring accuracy and reliability.
FEATURES
Real-Time Tick Detection
- Captures genuine tick-by-tick volume flow using varip persistence
- Not estimated from OHLC data
- Processes actual market ticks as they occur
Adaptive Bubble Sizing
- Bubbles scale based on delta strength relative to a customizable moving average (default 20 bars)
- Highlights significant order flow imbalances
- Five size levels from tiny to huge
Dual Display Modes
- Normal Mode: Sized bubbles with optional volume labels positioned at bar midpoint
- Minimal Mode: Clean dots above/below bars for unobtrusive delta visualization
Flow Classification
- Aggressive Buy (bright green): Strong positive delta with greater than 1.2x strength
- Aggressive Sell (bright red): Strong negative delta with greater than 1.2x strength
- Passive Buy (light green): Moderate positive delta
- Passive Sell (light red): Moderate negative delta
Intensity Mode (Optional)
- Gray: Low intensity (less than 0.5x average)
- Blue: Medium intensity (0.5-1.0x average)
- Orange: High intensity (1.0-2.0x average)
- Red: Extreme intensity (greater than 2.0x average)
Smart Filtering
- Percentile-based filters (customizable) ensure only significant delta events are displayed
- Reduces chart clutter while highlighting important order flow
- Separate thresholds for bubble display and numeric labels
Data Collection Status
- Optional progress box in top-right corner
- Shows real-time bar collection progress
- Displays percentage completion and bars remaining
- Automatically hides when sufficient data is collected
Hide Until Ready Option
- Suppresses bubble display until the averaging period is complete
- Prevents misleading signals from incomplete data
- Default requires 20 bars before displaying bubbles
SETTINGS
Delta Average Length (1-200, default 20)
- Lookback period for calculating delta strength baseline
- Higher values = longer-term delta comparison
- Lower values = more sensitive to recent changes
Hide Bubbles Until Enough Data
- Prevents display until averaging period completes
- Ensures reliable delta strength calculations
Show Data Collection Status Box
- Displays progress indicator during initialization
- Can be disabled if you understand the warmup period
Minimal Mode
- Switches to simple dot display above/below bars
- Green dots above bars = positive delta
- Red dots below bars = negative delta
- Maintains color intensity or flow type classification
Show Bubbles
- Master toggle for bubble display
Bubble Volume Percentile (0-100, default 60)
- Minimum percentile rank required to display bubble
- Higher values = fewer, more significant bubbles
- Lower values = more bubbles displayed
Show Numbers in Bubbles
- Toggle delta value labels
- Only appears in normal mode
- Disabled automatically in minimal mode
Label Volume Percentile (0-100, default 90)
- Higher threshold for displaying numeric labels
- Typically set higher than bubble percentile
- Reduces label clutter on chart
Intensity Mode
- Switch from flow-type coloring to magnitude-based coloring
- Useful for identifying volume spikes regardless of direction
IMPORTANT NOTES
Real-Time Only: This indicator processes live tick data and does not provide historical analysis. It begins collecting data when added to a live chart.
Volume Required: Symbol must have volume data available. Will not function on symbols without volume (most forex pairs from retail brokers).
Initialization Period: Requires the specified number of bars (default 20) to calculate accurate delta strength. Use the "Hide Until Ready" option to prevent premature signals.
Market Hours: Only collects data during live market hours. Does not backfill historical data.
CREDITS
Tick detection methodology inspired by the Kioseff Trading Tick CVD indicator. This implementation adapts the same core tick-level volume delta calculation for bubble-style visualization and per-bar delta analysis.
Engulfing bull & bear w/ Volume Confirmation (v6)This script ID's bullish & bearish engulfing bars with volume ≥ SMA (volume, 20) x 1.3 and (optionally) ≥ previous bar's volume.
Parameters adjustable
Regular-Delta RSI Gap Indicator# Regular-Delta RSI Gap Indicator
## Overview
The **Regular-Delta RSI Gap Indicator** is a sophisticated momentum oscillator that compares traditional RSI with volume-based Delta RSI to identify trend strength and potential reversal points. This unique indicator combines price action with volume dynamics to provide enhanced market insights.
## Key Features
### 🔄 Dual RSI Analysis
- **Regular RSI**: Standard RSI based on price changes
- **Delta RSI**: Volume-weighted RSI calculated from volume change rates
- **Visual Comparison**: Clear plotting of both RSIs with ribbon fill
### 💪 Strength Measurement
- **ADX-style Strength Calculation**: Measures the divergence strength between Regular and Delta RSI
- **Configurable Threshold**: Customizable strength level for trend validation
- **Trend Classification**: Identifies strong vs. weak market conditions
### 📊 Multiple Display Options
- **Histogram Visualization**: Columns showing the gap between Regular and Delta RSI
- **Cross Signals**: Triangle markers for crossover events
- **Ribbon Fill**: Color-coded area between the two RSI lines
- **Real-time Table**: Summary table showing current values and trends
## Input Parameters
### Core Settings
- **RSI Period** (default: 14): Calculation period for both RSIs
- **Strength Smoothing** (default: 14): Smoothing period for strength calculation
- **Strength Threshold** (default: 5): Minimum level for strong trend classification
### Visual Customization
- **Show Histogram**: Toggle histogram display
- **Show Signals**: Display crossover signals
- **Show Labels**: Enable trend labels and information table
- **Histogram Height Scale**: Adjust histogram visibility (0.1-3.0)
- **Apply Ribbon Fill**: Enable/disable ribbon coloring
### Color Scheme
- Fully customizable colors for bullish, bearish, neutral, and strength elements
## Interpretation
### Trend Signals
- **Strong Uptrend**: Regular RSI > Delta RSI + Strength above threshold
- **Strong Downtrend**: Regular RSI < Delta RSI + Strength above threshold
- **Weak Trend**: Strength below threshold
### Key Levels
- **Overbought**: 70 level (red line)
- **Oversold**: 30 level (blue line)
- **Midline**: 50 level (gray dotted line)
- **Zero Line**: Histogram baseline
- **Threshold**: Strength reference line
### Signal Types
1. **Crossover Signals**: Regular RSI crossing above/below Delta RSI
2. **Strength Transitions**: Strength line crossing threshold
3. **Histogram Patterns**: Column color and height changes
## Alerts
The indicator provides four alert conditions:
- Divergence Strength Rising
- Divergence Strength Falling
- RSI Crossover (Regular above Delta)
- RSI Crossunder (Regular below Delta)
## Use Cases
- **Trend Confirmation**: Validate price trends with volume confirmation
- **Reversal Detection**: Spot potential trend changes early
- **Momentum Analysis**: Gauge market momentum strength
- **Divergence Trading**: Identify regular/volume RSI divergences
## Optimization Tips
- Adjust period lengths based on trading timeframe
- Modify threshold based on market volatility
- Combine with price action for confirmation
- Use in conjunction with support/resistance levels
This indicator is particularly useful for traders looking to incorporate volume confirmation into their RSI analysis and identify high-probability trend continuations or reversals.
Dynamic Volume Based Key Price LevelsDescription
This indicator introduces a volume-based approach to detecting support and resistance zones.
Instead of relying on price swings or pivots, it analyzes where the most trading activity occurred within a selected lookback period, then marks those levels directly on the chart.
The result is a clear visual map of price areas with strong historical participation, which often act as reaction zones in future moves.
How It Works
The script divides the analyzed range into price bins, sums traded volume for each bin, and highlights the strongest levels based on their share of total volume.
It also includes an optional multi-timeframe mode, allowing traders to analyze higher timeframe volume structures on a lower timeframe chart.
Key Features
🔹 Volume-Based Key Levels Detection: Finds statistically meaningful price zones derived from raw volume data.
🔹 Multi-Timeframe Mode: Optionally use higher timeframe volume to identify key market structure levels.
🔹 Visual Customization: Configure colors, line styles, transparency, and label formatting.
🔹 Automatic Ranking: Highlights the strongest to weakest levels using a color gradient.
🔹 Dynamic Updates: Levels adapt automatically as new bars form.
Inputs Overview
Lookback Bars: Number of historical bars used for analysis.
Price Bins: Defines the precision of volume distribution.
Number of Lines: How many key levels to display.
Min Volume %: Filters out less relevant low-volume bins.
Extend Lines: Choose how lines are projected into the future.
Use Higher Timeframe: Pull data from a higher timeframe for broader perspective.
How to Use
Apply the indicator to your chart and adjust the lookback period.
Optionally enable higher timeframe mode for more stable long-term zones.
Observe the horizontal lines — these represent volume-weighted support and resistance areas.
Combine with your existing tools for trend or momentum confirmation.
This tool helps visualize where market participation was strongest, giving traders a clearer view of potential reaction zones for both intraday and swing analysis.
It’s intended as a visual analytical aid, not a signal generator.
⚠️Disclaimer:
This script is provided for educational and informational purposes only. It is not financial advice and should not be considered a recommendation to buy, sell, or hold any financial instrument. Trading involves significant risk of loss and is not suitable for every investor. Users should perform their own due diligence and consult with a licensed financial advisor before making any trading decisions. The author does not guarantee any profits or results from using this script, and assumes no liability for any losses incurred. Use this script at your own risk.
Londen & New York Sessies (UTC+2)This script highlights the London and New York trading sessions on the chart, adjusted for UTC+2 timezone. It's designed to help traders easily visualize the most active and liquid periods of the Forex and global markets directly on their TradingView charts. The London session typically provides strong volatility, while the New York session brings increased momentum and overlaps with London for powerful trading opportunities. Ideal for intraday and session-based strategies.
MACD-V with RSI Gradient## Overview
MACD-V is a volatility-adjusted momentum indicator that normalizes MACD using ATR. This version adds a dynamic RSI-based background gradient to highlight momentum zones visually.
## Features
- **MACD-V Line**: EMA-based momentum normalized by ATR
- **Signal Line**: EMA of MACD-V
- **Histogram**: Color-coded based on slope and polarity
- **RSI Gradient Background**: Shading from bright green (RSI > 75) to bright red (RSI < 30), with intermediate tones for momentum context
## Use Case
Designed for 30-minute oil futures charts, this indicator helps identify:
- Trend strength and reversals
- Momentum zones using RSI shading
- Pullback opportunities and exhaustion zones
## Inputs
- Fast EMA (default: 12)
- Slow EMA (default: 26)
- Signal EMA (default: 9)
- ATR Length (default: 26)
## Notes
- RSI shading is purely visual—no alerts are wired in yet
- Histogram renders behind MACD-V and Signal lines for clarity
- Colors are tuned for dark charts
## Credits
The MACD-v is an indicator created in 2015 by Alex Spiroglou
and presented to the public in 2022
as a paper called: "𝗠𝗔𝗖𝗗-𝘃: 𝗩𝗼𝗹𝗮𝘁𝗶𝗹𝗶𝘁𝘆 𝗡𝗼𝗿𝗺𝗮𝗹𝗶𝘀𝗲𝗱 𝗠𝗼𝗺𝗲𝗻𝘁𝘂𝗺"
It received the following Awards:
1. “𝐅𝐨𝐮𝐧𝐝𝐞𝐫𝐬 𝐀𝐰𝐚𝐫𝐝” (2022),
for advances in Active Investment Management
from the National Association of Active Investment Managers (NAAIM)
2. “𝐂𝐡𝐚𝐫𝐥𝐞𝐬 𝐇. 𝐃𝐨𝐰 𝐀𝐰𝐚𝐫𝐝” (2022)
for outstanding research in Technical Analysis,
from the Chartered Market Technicians Association (CMTA)
The RSI Gradient was my idea, but quite frankly, if I go looking around I suppose I'll find that others had the same idea.
This is the first time I've ever published any code, so if I stepped on anyone's toes. I'm sorry.
MACD-V with RSI Gradient## Overview
MACD-V is a volatility-adjusted momentum indicator that normalizes MACD using ATR. This version adds a dynamic RSI-based background gradient to highlight momentum zones visually.
## Features
- **MACD-V Line**: EMA-based momentum normalized by ATR
- **Signal Line**: EMA of MACD-V
- **Histogram**: Color-coded based on slope and polarity
- **RSI Gradient Background**: Shading from bright green (RSI > 75) to bright red (RSI < 30), with intermediate tones for momentum context
## Use Case
Designed for 30-minute oil futures charts, this indicator helps identify:
- Trend strength and reversals
- Momentum zones using RSI shading
- Pullback opportunities and exhaustion zones
## Inputs
- Fast EMA (default: 12)
- Slow EMA (default: 26)
- Signal EMA (default: 9)
- ATR Length (default: 26)
## Notes
- RSI shading is purely visual—no alerts are wired in yet
- Histogram renders behind MACD-V and Signal lines for clarity
- Colors are tuned for dark charts
## Credits
Developed by Mark (SylvaRocks), optimized for tactical clarity and scalping precision.
ORBs, EMAs, AVWAPThis Pine Script (version 6) is a multi-session trading indicator that combines Opening Range Breakouts (ORBs), Exponential Moving Averages (EMAs), and an Anchored VWAP (AVWAP) system — all in one overlay script for TradingView.
Here’s a clear breakdown of its structure and functionality:
🕒 1. Session Logic and ORB Calculation
Purpose: Identify and plot the high and low of the first 30 minutes (default) for the Tokyo, London, and New York trading sessions.
Session Anchors (NY time):
Tokyo → 20:00
London → 03:00
New York → 09:30
(All configurable in inputs.)
ORB Duration: Default is 30 minutes (orbDurationMin), also user-configurable.
Resets:
London and NY ORBs reset at the start of each new New York trading day (17:00 NY time).
Tokyo ORB resets independently using a stored timestamp.
Process:
For each session:
While the time is within the ORB window, the script captures the session’s high and low.
Once the window closes, those levels remain plotted until reset.
Plot Colors:
Tokyo → Yellow (#fecc02)
London → Gray (#8c9a9c)
New York → Magenta (#ff00c8)
These form visible horizontal lines marking the prior session ranges — useful for breakout or retest trading setups.
📈 2. EMA System
Purpose: Provide trend and dynamic support/resistance guidance.
It calculates and plots four EMAs:
EMA Period Color Purpose
EMA 9 Short-term Green Fast signal
EMA 20 Short-term Red Confirms direction
EMA 113 Medium Aqua Trend filter
EMA 200 Long-term Orange Macro trend baseline
Each EMA is plotted directly on the price chart for visual confluence with ORB and VWAP levels.
⚖️ 3. Anchored VWAP (AVWAP)
Purpose: Display a volume-weighted average price anchored to specific timeframes or events, optionally with dynamic deviation or percentage bands.
Features:
Anchor Options:
Time-based: Session, Week, Month, Quarter, Year, Decade, Century
Event-based: Earnings, Dividends, Splits
VWAP resets when the chosen anchor condition is met (e.g., new month, new earnings event, etc.).
Bands:
Up to three levels of symmetric upper/lower bands.
Choose between Standard Deviation or Percentage-based widths.
Display Toggles:
Each band’s visibility is optional.
VWAP can be hidden on 1D+ timeframes (hideonDWM option).
Color Scheme:
VWAP: Fuchsia (magenta-pink) line
Bands: Green / Olive / Teal with light-filled zones
⚙️ 4. Technical Highlights
Uses ta.vwap() with built-in band calculations.
Handles instruments with or without volume (errors if missing volume).
Uses time-zone aware timestamps (timestamp(NY_TZ, …)).
Uses timeframe.change() to detect new anchors for the VWAP.
Employs persistent variables (var) to maintain session state across bars.
💡 In Practice
This indicator is designed for multi-session intraday traders who:
Trade Tokyo, London, or NY open breakouts or retests.
Use EMA stacking and crossovers for trend confirmation.
Use Anchored VWAP as a fair-value or mean-reversion reference.
Need clear visual structure across different market sessions.
It provides strong session separation, trend context, and volume-weighted price reference — making it ideal for discretionary or semi-systematic trading strategies focused on liquidity zones and session momentum.
MINE CBPR Pro ✦ v217.1MINE CBPR ✦ Pro is a next-generation universal indicator that combines Channel Breakout structure with Pivot Reversal logic to detect precise turning points across any market. Built for versatility, it adapts seamlessly from stocks and indices to crypto futures, and performs with exceptional precision even on ultra-short timeframes such as the 1-minute and 5-minute charts.
This system integrates advanced volatility filters and structural validation layers to reduce noise and highlight only high-probability reversal signals. Every component has been optimized to balance responsiveness and stability, providing traders with actionable insights in both trending and ranging markets.
Currently undergoing comprehensive backtesting and optimization, MINE CBPR ✦ Pro represents the latest evolution of the MINE series — engineered for traders who demand speed, accuracy, and reliability across all assets and timeframes. We hope you look forward to it.
Institutional Orderflow Pro — VWAP, Delta, and Liquidity
Institutional Orderflow Pro is a next-generation order flow analysis indicator designed to help traders identify institutional participation, directional bias, and exhaustion zones in real time.
Unlike traditional volume-based indicators, it merges VWAP dynamics, cumulative delta, relative volume, and liquidity proximity into a single unified dashboard that updates tick-by-tick — without repainting.
The indicator is open-source, transparent, and educational. It aims to provide traders with a clearer read on who controls the market — buyers or sellers — and where liquidity lies.
The indicator combines multiple institutional-grade analytics into one framework:
RVOL (Relative Volume) = Compares current volume against the average of recent bars to identify strong institutional participation.
zΔ (Delta Z-Score) = Normalizes the buying/selling delta to reveal unusually aggressive market behavior.
CVDΔ (Cumulative Volume Delta Change) = Shows which side (buyers/sellers) is dominating this bar’s order flow.
VWAP Direction & Slope = Determines whether price is trading above/below VWAP and whether VWAP is trending or flat.
PD Distance (Prev Day Confluence) = Measures the current price’s distance from previous day’s high, low, close, and VWAP in ATR units — highlighting liquidity zones.
ABS/EXH Detection = Identifies institutional absorption and exhaustion patterns where momentum may reverse.
Bias Computation = Combines VWAP direction + slope to give a simplified regime signal: UP, DOWN, or FLAT.
All metrics are displayed through a color-coded, non-repainting HUD:
🟢 = bullish / favorable conditions
🔴 = bearish / weak conditions
⚫ = neutral / flat
🟡 = absorption (potential trap zone)
🟠 = exhaustion (momentum fading)
| Metric | Signal | Meaning |
| ---------------------- | ------- | ---------------------------------------------- |
| **RVOL ≥ 1.3** | 🟢 | High institutional activity — valid setup zone |
| **zΔ ≥ 1.2 / ≤ -1.2** | 🟢 / 🔴 | Unusual buy/sell aggression |
| **CVDΔ > 0** | 🟢 | Buyers dominate this bar |
| **VWAP dir ↑ / ↓** | 🟢 / 🔴 | Institutional bias long/short |
| **Slope ok = YES** | 🟢 | Trending market |
| **PD dist ≤ 0.35 ATR** | 🟢 | Near key liquidity zones |
| **Bias = UP/DOWN** | 🟢 / 🔴 | Trend-aligned environment |
| **ABS/EXH active** | 🟡 / 🟠 | Caution — possible reversal zone |
How to Use
Confirm Volume Context → RVOL > 1.2
Align with Bias → Take longs only when Bias = UP, shorts only when Bias = DOWN.
Check Slope and VWAP Dir → Ensure trending context (Slope = YES).
Confirm CVD and zΔ → Flow should agree with price direction.
Avoid ABS/EXH Triggers → These signal exhaustion or absorption by large players.
Enter Near PD Zones → Ideal trade zones are within 0.35 ATR of prior-day levels.
This multi-factor confirmation reduces noise and focuses only on high-probability institutional setups.
Originality
This script was written from scratch in Pine v6.
It does not reuse existing public indicators except for standard built-ins (ta.vwap, ta.atr, etc.).
The unique combination of delta z-scoring, VWAP slope filtering, and real-time confluence zones distinguishes it from typical orderflow tools or cumulative delta overlays.
The core innovation is its merged real-time HUD that integrates institutional metrics and natural-language feedback directly on the chart, allowing traders to read market context intuitively rather than decode multiple subplots.
Notes & Disclaimers
This indicator does not repaint.
It’s intended for educational and analytical purposes only — not as financial advice or a guaranteed signal system.
Works best on liquid instruments (Futures, Indices, FX majors).
Avoid non-standard chart types (Heikin Ashi, Renko, etc.) for accurate readings.
Open-source, modifiable, and compatible with Pine v6.
Recommended Use
Apply it with clean charts and standard candles for the best clarity.
Use alongside a basic structure or volume profile to contextualize institutional bias zones.
Author: Dhawal Ranka
Category - Orderflow / VWAP / Institutional Analysis
Version: Pine Script™ v6
License: Open Source (Educational Use)
Sicari Momentum OscillatorSicari Momentum Oscillator (SMO)
What is it?
The Sicari Momentum Oscillator (SMO) is a price–volume momentum framework designed to quantify directional conviction in the market. It measures the acceleration of price movement relative to underlying participation, highlighting when momentum is being confirmed or contradicted by volume flow.
i) Uses exponential moving averages (EMAs) to calculate momentum rather than SMAs for faster response
ii) Identifies bullish and bearish divergences between price and momentum to anticipate exhaustion
iii) Integrates On-Balance Volume (OBV) to map volume momentum in real time
iv) Flags confluence where both price and volume momentum align, signalling stronger continuation potential
How it works
i) When EMAs expand or contract, the histogram adjusts dynamically to visualise the strength and direction of momentum
ii) Divergences appear when price and oscillator move in opposite directions - often preceding local tops or bottoms
iii) OBV is processed through the same EMA structure to produce a clean, comparable momentum curve
iv) Confluence dots appear only when both price and volume momentum agree in direction, marking periods of high-quality momentum
How to use it
i) Combine with the main Sicari indicator to validate directional bias and detect early trend transitions
ii) Watch for divergence to anticipate potential reversals or waning momentum
iii) Confluence dots indicate alignment between price and participation - a signal of underlying market strength or weakness
🟢 Bullish confluence when both price and volume expand upward
🔴 Bearish confluence when both contract in unison
The SMO distills the market’s internal rhythm into a single, adaptive pulse - delivering institutional-grade precision, clarity, and timing within the Sicari ecosystem.
VWAP + Multi-Condition RSI Signals + FibonacciPlatform / System
Platform: TradingView
Language: Pine Script® v6
Purpose: This script is an overlay indicator for technical analysis on charts. It combines multiple tools: VWAP, RSI signals, and Fibonacci levels.
1️⃣ VWAP (Volume Weighted Average Price)
What it does:
Plots the VWAP line on the chart, which is a weighted average price based on volume.
Can be anchored to different periods: Session, Week, Month, Quarter, Year, Decade, Century, or corporate events like Earnings, Dividends, Splits.
Optionally plots bands above and below VWAP based on standard deviation or a percentage.
Supports up to 3 bands with customizable multipliers.
Will not display if the timeframe is daily or higher and the hideonDWM option is enabled.
Visual on chart: A main VWAP line with optional shaded bands.
2️⃣ RSI (Relative Strength Index) Signals
What it does:
Calculates RSI with a configurable period.
Identifies overbought and oversold zones using user-defined levels.
Generates buy/sell signals based on:
RSI crossing above oversold → Buy
RSI crossing below overbought → Sell
Detects strong signals using divergences:
Bullish divergence: Price makes lower low, RSI makes higher low → Strong Buy
Bearish divergence: Price makes higher high, RSI makes lower high → Strong Sell
Optional momentum signals when RSI crosses 50 after recent overbought/oversold conditions.
Visual on chart:
Triangles for buy/sell
Different color triangles/circles for strong and momentum signals
Background shading in RSI overbought/oversold zones
Alerts: The script can trigger alerts when any of these signals occur.
3️⃣ Fibonacci Levels
What it does:
Calculates Fibonacci retracement and extension levels based on the highest high and lowest low over a configurable lookback period.
Plots standard Fibonacci levels: 0.146, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0
Plots extension levels: 1.272, 1.618, 2.0, 2.618
Helps identify potential support/resistance zones.
Visual on chart: Horizontal lines at each Fibonacci level, shaded with different transparencies.
Summary
This script is essentially a multi-tool trading indicator that combines:
VWAP with dynamic bands for trend analysis and price positioning
RSI signals with divergences for entry/exit points
Fibonacci retracement and extension levels for support/resistance
It is interactive and visual, providing both chart overlays and alert functionality for active trading strategies.
This code is provided for training and educational purposes only. It is not financial advice and should not be used for live trading without proper testing and professional guidance.
Dobrusky Volume PulseWhat it does & who it’s for
Volume Pulse is a lightweight, customizable volume profile overlay that shows traders how volume is distributed across price levels over a chosen lookback window. Unlike standard profiles, it also maps cumulative buy/sell pressure at each level, so you see not just where volume clustered, but which side dominated.
Core ideas
Cumulative volume by price: Builds a horizontal profile of traded volume at each level, based on user-defined depth and resolution.
Directional pressure mapping: At every price level, the script accumulates bullish vs. bearish volume based on candle closes vs. opens, providing a directional read on whether buyers or sellers had the upper hand.
POC: Automatically highlights the Point of Control (POC) — the level with the most activity.
Customizable presentation: Adjustable profile resolution, bar width, offset, colors, and whether to show cumulative, directional, or both.
How the components work together
The profile provides the “where,” while the buy/sell mapping adds the “who.” By combining these, traders can see whether a high-volume node was buyer-driven absorption or seller-driven distribution — a distinction classic profiles don’t reveal. This directional overlay reduces the guesswork of interpreting raw volume clusters.
How to use
Apply the overlay to your chart.
Watch the POC and areas of significant increase or decrease in volume (and pressure) as natural magnets or rejection areas.
When trading intraday, I've found that higher timeframe volume levels act as strong magnets. In the chart, you can see the volume levels I've drawn on the SPY daily chart. These levels are targets I use when trading the 5-minute chart.
Pay attention to color dominance at those zones — green-heavy nodes suggest buyer control; red-heavy nodes suggest seller control.
Combine with time-based volume tools and price-action for a more comprehensive trade plan.
Settings overview
Lookback depth: Number of bars used for profile calculation.
Profile resolution: Number of horizontal bars to split volume across price.
Bar style: Width, offset, and multiplier for scaling.
Toggle layers: Choose cumulative, directional, or both.
POC display: Optional highlight of the most traded level.
Limitations & best practices
This is a contextual overlay, not a trade-signal system.
Works best on liquid instruments (indices, futures, major stocks, liquid crypto) where volume distribution is meaningful.
Directional mapping uses candle body bias (close vs. open), not raw order flow. For full tape analysis, pair with actual order flow data.
Originality justification
Dual profile: combines cumulative volume-by-price and buyer/seller pressure per bin (close vs. open) — not a standard VP clone.
From-scratch binning + POC in a single pass for speed; no reused libraries.
Flexible display (cumulative / directional / both) with independent resolution, width, and offset for intraday or HTF use.
Clear visuals (optional POC, balanced node coloring) and open-source code so traders can audit and extend.
Volume MatrixVolume Matrix (VM) is a comprehensive volume and position-sizing toolkit designed to help traders interpret market participation and manage trade risk efficiently.
It combines volume analytics, risk-adjusted position sizing, and stock-specific financial data — all in a clear, visual, and automated format directly on TradingView charts.
The indicator integrates capital management, episodic volume spikes, and market capitalization data into a single, intuitive framework, giving traders an edge in both decision-making and discipline.
⚙️ Core Components & Features
🧩 1. Position Sizing & Risk Management
A dynamic risk table helps traders determine how much to trade and how much to risk per position, adapting automatically based on user inputs:
- Capital (CP): Total account size (₹ or $).
- Risk Mode (R): Choose between Percentage of capital or fixed Currency value.
- Lot Size Mode: Optional toggle to align quantities with F&O lot sizes (India-based).
- Standard Stop-Loss (SSL): Displays position quantities for three custom stop-loss levels (e.g., 0.75%, 1%, 1.25%).
- % Distance Metrics: D: Distance from day’s low/high (helps assess stop distance). DH: Distance from mid-body (useful for candle risk assessment). Auto-adjusts based on whether the trader is in Long, Short, or Both mode.
📈 Helps answer:
“How much quantity should I trade at my desired risk level?”
🔶 2. Volume Visualization
- Plots volume bars with default up/down coloring.
- Green for bullish bars.
- Red for bearish bars.
- Designed for quick visual differentiation of buying/selling pressure.
🚀 3. Episodic Pivot (EP) Detector
Identifies high-volume breakout or capitulation days, often marking significant turning points or trend initiations.
- Highlights bars where volume exceeds a custom threshold (in millions).
- Marks them visually with an orange triangle under the candle.
-Best used on daily charts to spot institutional footprints.
📊 Helps answer:
“Is today’s volume large enough to signal major institutional activity?”
🧾 4. Data Metrics Table
Displays fundamental and contextual data about the asset:
- Market Capitalization (MC): Auto-calculated using outstanding shares × price.
- Free Float (FF): Value of tradable shares in currency or Cr (INR).
- Industry × Sector × F&O Status: Shows the company’s industry and sector classification. Displays FC (Futures Contract) or NFC (Non-F&O stock).
- Customizable appearance: Choose between text/value display, text color, and background color. Flexible positioning and size control to suit any chart layout.
📚 Helps answer:
“What type of stock is this, how big is it, and does it trade in futures?”
🪄 5. User Interface Customization
- Modular UI grouped by functionality (Risk, Direction, Metrics, Volume, etc.).
- Flexible table position & size (Top/Bottom/Middle & Tiny–Huge).
- All elements are toggleable, giving full control over displayed data.
- Built to ensure visual clarity on any chart background.
| Trading Goal | How Volume Matrix Supports It |
| ------------------------------ | -------------------------------------------------------------- |
| **Risk Management** | Calculates optimal trade size and risk exposure automatically. |
| **Position Sizing Discipline** | Enforces consistent sizing across trades using SSL levels. |
| **Volume Confirmation** | Highlights institutional participation via Episodic Pivots. |
| **Stock Context Awareness** | Shows market cap, sector, and float value instantly. |
| **Efficiency** | Reduces manual work — no need for calculators or spreadsheets. |
💡 In Short
Volume Matrix simplifies trade planning, brings transparency to risk, and connects volume with context — all in one elegant visual tool.
Perfect for:
- Discretionary traders refining entries and sizing.
- Swing traders watching for volume-based pivots.
- Analysts who want price-volume fundamentals at a glance.
Volume Cluster Heatmap [BackQuant]Volume Cluster Heatmap
A visualization tool that maps traded volume across price levels over a chosen lookback period. It highlights where the market builds balance through heavy participation and where it moves efficiently through low-volume zones. By combining a heatmap, volume profile, and high/low volume node detection, this indicator reveals structural areas of support, resistance, and liquidity that drive price behavior.
What Are Volume Clusters?
A volume cluster is a horizontal aggregation of traded volume at specific price levels, showing where market participants concentrated their buying and selling.
High Volume Nodes (HVN) : Price levels with significant trading activity; often act as support or resistance.
Low Volume Nodes (LVN) : Price levels with little trading activity; price moves quickly through these areas, reflecting low liquidity.
Volume clusters help identify key structural zones, reveal potential reversals, and gauge market efficiency by highlighting where the market is balanced versus areas of thin liquidity.
By creating heatmaps, profiles, and highlighting high and low volume nodes (HVNs and LVNs), it allows traders to see where the market builds balance and where it moves efficiently through thin liquidity zones.
Example: Bitcoin breaking away from the high-volume zone near 118k and moving cleanly through the low-volume pocket around 113k–115k, illustrating how markets seek efficiency:
Core Features
Visual Analysis Components:
Heatmap Display : Displays volume intensity as colored boxes, lines, or a combination for a dynamic view of market participation.
Volume Profile Overlay : Shows cumulative volume per price level along the right-hand side of the chart.
HVN & LVN Labels : Marks high and low volume nodes with color-coded lines and labels.
Customizable Colors & Transparency : Adjust high and low volume colors and minimum transparency for clear differentiation.
Session Reset & Timeframe Control : Dynamically resets clusters at the start of new sessions or chosen timeframes (intraday, daily, weekly).
Alerts
HVN / LVN Alerts : Notify when price reaches a significant high or low volume node.
High Volume Zone Alerts : Trigger when price enters the top X% of cumulative volume, signaling key areas of market interest.
How It Works
Each bar’s volume is distributed proportionally across the horizontal price levels it touches. Over the lookback period, this builds a cumulative volume profile, identifying price levels with the most and least trading activity. The highest cumulative volume levels become HVNs, while the lowest are LVNs. A side volume profile shows aggregated volume per level, and a heatmap overlay visually reinforces market structure.
Applications for Traders
Identify strong support and resistance at HVNs.
Detect areas of low liquidity where price may move quickly (LVNs).
Determine market balance zones where price may consolidate.
Filter noise: because volume clusters aggregate activity into levels, minor fluctuations and irrelevant micro-moves are removed, simplifying analysis and improving strategy development.
Combine with other indicators such as VWAP, Supertrend, or CVD for higher-probability entries and exits.
Use volume clusters to anticipate price reactions to breaking points in thin liquidity zones.
Advanced Display Options
Heatmap Styles : Boxes, lines, or both. Boxes provide a traditional heatmap, lines are better for high granularity data.
Line Mode Example : Simplified line visualization for easier reading at high level counts:
Profile Width & Offset : Adjust spacing and placement of the volume profile for clarity alongside price.
Transparency Control : Lower transparency for more opaque visualization of high-volume zones.
Best Practices for Usage
Reduce the number of levels when using line mode to avoid clutter.
Use HVN and LVN markers in conjunction with volume profiles to plan entries and exits.
Apply session resets to monitor intraday vs. multi-day volume accumulation.
Combine with other technical indicators to confirm high-probability trading signals.
Watch price interactions with LVNs for potential rapid movements and with HVNs for possible support/resistance or reversals.
Technical Notes
Each bar contributes volume proportionally to the price levels it spans, creating a dynamic and accurate representation of traded interest.
Volume profiles are scaled and offset for visual clarity alongside live price.
Alerts are fully integrated for HVN/LVN interaction and high-volume zone entries.
Optimized to handle large lookback windows and numerous price levels efficiently without performance degradation.
This indicator is ideal for understanding market structure, detecting key liquidity areas, and filtering out noise to model price more accurately in high-frequency or algorithmic strategies.
RSI VWAP v1 [JopAlgo]RSI VWAP v1.1 made stronger by volume-aware!
We know there's nothing new and the original RSI already does an excellent job. We're just working on small, practical improvements – here's our take: The same basic idea, clearer display, and a single, specially developed rolling line: a VWAP of the RSI that incorporates volume (participation) into the calculation.
Do you prefer the pure classic?
You can still use Wilder or Cutler engines –
but the star here is the VW-RSI + rolling line.
This RSI also offers the possibility of illustrating a possible
POC (Point of Control - or the HAL or VAL) level.
However, the indicator does NOT plot any of these levels itself.
We have included an illustration in the chart for this!
We hope this version makes your decision-making easier.
What you’ll see
The RSI line with a 50 midline and optional bands: either static 70/30 or adaptive μ±k·σ of the Rolling Line.
One smoothing concept only: the Rolling Line (light blue) = VWAP of RSI.
Shadow shading between RSI and the Rolling Line (green when RSI > line, red when RSI < line).
A lighter tint only on the parts of that shadow that sit above the upper band or below the lower band (quick overbought/oversold context).
Simple divergence lines drawn from RSI pivots (green for regular bullish, red for regular bearish). No labels, no buy/sell text—kept deliberately clean.
What’s new, and why it helps
VW-RSI engine (default):
RSI can be computed from volume-weighted up/down moves, so momentum reflects how much traded when price moved—not just the direction.
Rolling Line (VWAP of RSI) with pure VWAP adaptation:
Low volume: blends toward a faster VWAP so early, thin starts aren’t missed.
Volume spikes: blends toward a slower VWAP so a single heavy bar doesn’t whip the curve.
You can reveal the Base Rolling (pre-adaptation) line to see exactly how much adaptation is happening.
Adaptive bands (optional):
Instead of fixed 70/30, use mean ± k·stdev of the Rolling Line over a lookback. Levels breathe with the market—useful in strong trends where static bounds stay pinned.
Minimal, readable panel:
One smoothing, one story. The shadow tells you who’s in control; the lighter highlight shows stretch beyond your lines.
How to read it (fast)
Bias: RSI above 50 (and a rising Rolling Line) → bullish bias; below 50 → bearish bias.
Trigger: RSI crossing the Rolling Line with the bias (e.g., above 50 and crossing up).
Stretch: Near/above the upper band, avoid chasing; near/below the lower band, avoid panic—prefer a cross back through the line.
Divergence lines: Use as context, not as standalone signals. They often help you wait for the next cross or avoid late entries into exhaustion.
Settings that actually matter
RSI Engine: VW-RSI (default), Wilder, or Cutler.
Rolling Line Length: the VWAP length on RSI (higher = calmer, lower = earlier).
Adaptive behavior (pure VWAP):
Speed-up on Low Volume → blends toward fast VWAP (factor of your length).
Dampen Spikes (volume z-score) → blends toward slow VWAP.
Fast/Slow Factors → how far those fast/slow variants sit from the base length.
Bands: choose Static 70/30 or Adaptive μ±k·σ (set the lookback and k).
Visuals: show/hide Base Rolling (ref), main shadow, and highlight beyond bands.
Signal gating: optional “ignore first bars” per day/session if you dislike open noise.
Starter presets
Scalp (1–5m): RSI 9–12, Rolling 12–18, FastFactor ~0.5, SlowFactor ~2.0, Adaptive on.
Intraday (15m–1H): RSI 10–14, Rolling 18–26, Bands k = 1.0–1.4.
Swing (4H–1D): RSI 14–20, Rolling 26–40, Bands k = 1.2–1.8, Adaptive on.
Where it shines (and limits)
Best: liquid markets where volume structure matters (majors, indices, large caps).
Works elsewhere: even with imperfect volume, the shadow + bands remain useful.
Limits: very thin/illiquid assets reduce the benefit of volume-weighting—lengthen settings if needed.
Attribution & License
Based on the concept and baseline implementation of the “Relative Strength Index” by TradingView (Pine v6 built-in).
Released as Open-source (MPL-2.0). Please keep the license header and attribution intact.
Disclaimer
For educational purposes only; not financial advice. Markets carry risk. Test first, use clear levels, and manage risk. This project is independent and not affiliated with or endorsed by TradingView.
Anchored VWAP Polyline [CHE] Anchored VWAP Polyline — Anchored VWAP drawn as a polyline from a user-defined bar count with last-bar updates and optional labels
Summary
This indicator renders an anchored Volume-Weighted Average Price as a continuous polyline starting from a user-selected anchor point a specified number of bars back. It accumulates price multiplied by volume only from the anchor forward and resets cleanly when the anchor moves. Drawing is object-based (polyline and labels) and updated on the most recent bar only, which reduces flicker and avoids excessive redraws. Optional labels mark the anchor and, conditionally, a delta label when the current close is below the historical close at the anchor offset.
Motivation: Why this design?
Anchored VWAP is often used to track fair value after a specific event such as a swing, breakout, or session start. Traditional plot-based lines can repaint during live updates or incur overhead when frequently redrawn. This implementation focuses on explicit state management, last-bar rendering, and object recycling so the line stays stable while remaining responsive when the anchor changes. The design emphasizes deterministic updates and simple session gating from the anchor.
What’s different vs. standard approaches?
Baseline: Classic VWAP lines plotted from session open or full history.
Architecture differences:
Anchor defined by a fixed bar offset rather than session or day boundaries.
Object-centric drawing via `polyline` with an array of `chart.point` objects.
Last-bar update pattern with deletion and replacement of the polyline to apply all points cleanly.
Conditional labels: an anchor marker and an optional delta label only when the current close is below the historical close at the offset.
Practical effect: You get a visually continuous anchored VWAP that resets when the anchor shifts and remains clean on chart refreshes. The labels act as lightweight diagnostics without clutter.
How it works (technical)
The anchor index is computed as the latest bar index minus the user-defined bar count.
A session flag turns true from the anchor forward; prior bars are excluded.
Two persistent accumulators track the running sum of price multiplied by volume and the running sum of volume; they reset when the session flag turns from false to true.
The anchored VWAP is the running sum divided by the running volume whenever both are valid and the volume is not zero.
Points are appended to an array only when the anchored VWAP is valid. On the most recent bar, any existing polyline is deleted and replaced with a new one built from the point array.
Labels are refreshed on the most recent bar:
A yellow warning label appears when there are not enough bars to compute the reference values.
The anchor label marks the anchor bar.
The delta label appears only when the current close is below the close at the anchor offset; otherwise it is suppressed.
No higher-timeframe requests are used; repaint is limited to normal live-bar behavior.
Parameter Guide
Bars back — Sets the anchor offset in bars; default two hundred thirty-three; minimum one. Larger values extend the anchored period and increase stability but respond more slowly to regime changes.
Labels — Toggles all labels; default enabled. Disable to keep the chart clean when using multiple instances.
Reading & Interpretation
The polyline represents the anchored VWAP from the chosen anchor to the current bar. Price above the line suggests strength relative to the anchored baseline; price below suggests weakness.
The anchor label shows where the accumulation starts.
The delta label appears only when today’s close is below the historical close at the offset; it provides a quick context for negative drift relative to that reference.
A yellow message at the current bar indicates the chart does not have enough history to compute the reference comparison yet.
Practical Workflows & Combinations
Trend following: Anchor after a breakout bar or a swing confirmation. Use the anchored VWAP as dynamic support or resistance; look for clean retests and holds for continuation.
Mean reversion: Anchor at a local extreme and watch for approaches back toward the line; require structure confirmation to avoid early entries.
Session or event studies: Re-set the anchor around earnings, macro releases, or session opens by adjusting the bar offset.
Combinations: Pair with structure tools such as swing highs and lows, or with volatility measures to filter chop. The labels can be disabled when combining multiple instances to maintain chart clarity.
Behavior, Constraints & Performance
Repaint and confirmation: The line is updated on the most recent bar only; historical values do not rely on future bars. Normal live-bar movement applies until the bar closes.
No higher timeframe: There is no `security` call; repaint paths related to higher-timeframe lookahead do not apply here.
Resources: Uses one polyline object that is rebuilt on the most recent bar, plus two labels when conditions are met. `max_bars_back` is two thousand. Arrays store points from the anchor forward; extremely long anchors or very long charts increase memory usage.
Known limits: With very thin volume, the VWAP can be unavailable for some bars. Very large anchors reduce responsiveness. Labels use ATR for vertical placement; extreme gaps can place them close to extremes.
Sensible Defaults & Quick Tuning
Starting point: Bars back two hundred thirty-three with Labels enabled works well on many assets and timeframes.
Too noisy around the line: Increase Bars back to extend the accumulation window.
Too sluggish after regime changes: Decrease Bars back to focus on a shorter anchored period.
Chart clutter with multiple instances: Disable Labels while keeping the polyline visible.
What this indicator is—and isn’t
This is a visualization of an anchored VWAP with optional diagnostics. It is not a full trading system and does not include entries, exits, or position management. Use it alongside clear market structure, risk controls, and a plan for trade management. It does not predict future prices.
Inputs with defaults
Bars back: two hundred thirty-three bars, minimum one.
Labels: enabled or disabled toggle, default enabled.
Pine version: v6
Overlay: true
Primary outputs: one polyline, optional labels (anchor, conditional delta, and a warning when insufficient bars).
Metrics and functions: volume, ATR for label offset, object drawing via polyline and chart points, last-bar update pattern.
Special techniques: session gating from the anchor, persistent state, object recycling, explicit guards against unavailable values and zero volume.
Compatibility and assets: Designed for standard candlestick or bar charts across liquid assets and common timeframes.
Diagnostics: Yellow warning label when history is insufficient.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Proteus EMA SystemInstitutional-Grade EMA System
Overview and Originality
The Institutional-Grade EMA System is an advanced, multi-layered Exponential Moving Average (EMA) overlay indicator designed to provide institutional-level trend analysis, market regime identification, and trade signal generation. Unlike standard multi-EMA scripts that simply plot averages and basic crossovers, this indicator introduces a proprietary integration of features tailored for professional traders: customizable presets that dynamically adjust EMA lengths for specific trading styles (e.g., scalping vs. position trading), multiple selectable trend detection algorithms (including a unique multi-bar slope analysis with percentage-based strength thresholding), EMA alignment and confluence detection for spotting high-conviction trends and reversal zones, volume-based signal filtering, and a comprehensive statistics dashboard for real-time market insights.
What makes this script original and worthy of closed-source protection is the bespoke combination of these elements into a cohesive system. For instance, while basic EMA ribbons or trend coloring exist in other indicators, this script's trend detection goes beyond simple comparisons by incorporating a normalized slope percentage calculation (detailed below) to quantify trend strength on a 0-100% scale, integrated with EMA stacking checks and confluence thresholds. This proprietary logic—refined through extensive backtesting on diverse assets—allows for nuanced market regime classification (e.g., "Strong Uptrend" only when alignment, slope strength, and volume align), which isn't replicated in open-source alternatives. The closed-source format protects the exact orchestration of these algorithms, including custom threshold derivations and dashboard computations, preventing direct replication while allowing users full access to the tool's outputs. If published open-source, the unique mathematical formulations (e.g., slope-to-strength mapping) could be easily copied, diminishing its edge in competitive trading environments.
This indicator draws conceptual inspiration from institutional trend-following systems (e.g., those using multiple time-horizon EMAs like in hedge fund models), but enhances them with modern Pine Script capabilities for visual and analytical depth. It's particularly useful for traders seeking to reduce false signals in volatile markets by requiring multi-factor confluence.
What It Does
Core EMA Plotting and Visualization: Plots up to 7 EMAs (5 primary + 2 optional) with dynamic coloring based on detected trend direction and strength (strong bullish: bright green; weak: faded green; neutral: gray; etc.). Includes EMA ribbons (fills between consecutive EMAs) and clouds (broader fills between non-consecutive EMAs) to visualize trend expansion/contraction.
Trend Detection and Strength: Classifies trends as strong/weak bullish/bearish or neutral using user-selectable methods, with optional volume confirmation to filter low-conviction moves.
Advanced Analytics:
Detects EMA alignment (all EMAs stacked in ascending/descending order for bullish/bearish trends).
Identifies EMA confluence zones (tight clustering of EMAs, signaling potential reversals or consolidations).
Draws dynamic support/resistance lines from the nearest EMAs relative to price.
Signals and Alerts: Generates buy/sell signals on customizable EMA crossovers, only if volume thresholds are met. Includes alerts for crossovers, alignments, confluences, and regime shifts.
User Interface Enhancements: Background coloring for quick trend bias (e.g., green for uptrends, yellow for confluences), dynamic line widths (thicker for slower EMAs), trend state labels, and a table-based dashboard displaying metrics like market regime, trend strength percentage, EMA slopes in degrees, price distances to key EMAs, volume status, and alignment state.
Customization Presets: Pre-configured EMA lengths for Scalping (short, reactive: e.g., 5/8/13), Day Trading (balanced: 9/21/50), Swing Trading (medium-term: 20/50/100), Position Trading (long-term: 50/100/150), or fully custom.
The result is a versatile tool that adapts to any timeframe or asset, helping traders identify high-probability setups by combining trend momentum, volume, and EMA dynamics.
How It Works: Underlying Concepts and Calculations
Without revealing the full implementation, here's a transparent overview of the key concepts and methodologies to help users understand the indicator's logic:
EMA Calculation and Presets: EMAs are computed using standard exponential smoothing (weighting recent prices more heavily). Presets optimize lengths based on trading horizon—shorter for scalping to capture quick reversals, longer for position trading to filter noise. For example, Swing preset uses 20/50/100/150/200 to balance short-term pullbacks with long-term trends, derived from Fibonacci-inspired progressions for natural market rhythm alignment.
Trend Detection Methods: Users select from four algorithms for flexibility:
Multi-Bar Slope (Default): Calculates the average slope over a lookback period (e.g., 3 bars) as (current EMA value - EMA value ) / lookback. Normalizes to a percentage relative to the EMA value: slope_percent = (slope / EMA) * 100. Thresholds classify trends (e.g., >0.05% = strong bullish; 0.01-0.05% = weak; symmetric for bearish). This method draws from linear regression concepts but simplifies for real-time use, providing robust trend quantification over simple bar-to-bar changes.
Previous Bar: Compares current EMA to the prior bar's, with percentage change thresholds (e.g., >0.1% = strong) for quick momentum shifts.
EMA vs EMA: Measures the percentage difference between fast and slow EMAs (e.g., >2% = strong bullish), inspired by MACD-like divergence but applied directly to EMAs.
Price Position: Gauges price's percentage distance from the EMA (e.g., >1% above = strong bullish), similar to envelope channels but integrated into trend coloring.
Trend strength is further scored (0-100%) by averaging absolute slopes of key EMAs, scaled for dashboard display.
Volume Confirmation: Uses a simple moving average of volume over a user-defined length (default 20), requiring current volume to exceed it by a multiplier (default 1.2x) for signal validation. This filters out low-volume fakeouts, akin to institutional volume-weighted strategies.
EMA Alignment: Checks if all visible EMAs are in strict order (fastest highest in uptrends, lowest in downtrends) by iterating through active EMAs and verifying sequential relationships. Signals "ALIGNED" shapes when true, indicating stacked trends like in ribbon strategies but with programmatic validation.
EMA Confluence: Computes the average of active EMAs, then measures the maximum percentage deviation of any EMA from this average. If below a threshold (default 0.5%), marks a "CONFLUENCE ZONE" box, conceptually similar to Bollinger Band squeezes but applied to EMA clusters for reversal anticipation.
Market Regime Classification: Combines alignment, trend score (>30% for "strong"), and price position relative to slowest EMA. For example, bullish alignment + high score = "Strong Uptrend"; close clustering = "Consolidation". This heuristic draws from regime-switching models in quantitative finance.
Signals and Visuals: Crossovers between user-selected EMAs (e.g., fast #1 over slow #2) plot "BUY/SELL" shapes only if volume-confirmed. Ribbons use color fills (green/red) based on EMA order; background shades reflect regime; S/R lines extend from max/min EMAs below/above price over a lookback (default 50 bars).
These calculations ensure the indicator provides actionable, multi-confirmed insights rather than generic plots.
How to Use It
Setup: Add to your chart and select a preset (e.g., "Swing Trading" for 1H-4H charts). Customize trend method (start with "Multi-Bar Slope" for accuracy), enable volume filter for reliability, and toggle visuals like ribbons or dashboard.
Trend Following: In a "Strong Uptrend" (green background, upward slopes >30%, bullish alignment), go long above the fastest EMA. Use S/R lines for stops (below nearest support EMA).
Swing Trading Example: On a daily SPX chart with Swing preset:
Wait for "Weak Uptrend" transition to "Strong" (trend score >50%, positive slopes, volume spike).
Enter long on EMA1 (20) crossing EMA2 (50), confirmed by "BUY" signal.
Target next resistance EMA (e.g., 150), exit on bearish crossover or confluence zone (yellow box signaling potential top).
Risk: Stop below EMA3 (100); aim for 2:1 reward:risk on multi-day holds.
Scalp Trading Example: On a 5-min BTCUSD chart with Scalping preset:
Focus on quick "Weak Bullish" shifts (faded green EMAs, slope >0.01%).
Buy on EMA1 (5) crossing EMA3 (13) with high volume (>1.5x avg).
Scalp 0.2-0.5% gains, exit at slope flattening (dashboard shows <30% strength) or nearest resistance.
Avoid confluences (chop); use 1-min for entries, 15-min for bias.
General Tips:
Combine with price action (e.g., candlestick patterns at confluence zones).
Backtest presets on your asset—adjust thresholds for volatility (e.g., tighter confluence for forex).
Use alerts for hands-off monitoring; multi-timeframe analysis enhances accuracy (higher TF for regime, lower for signals).
For ranging markets ("Neutral" regime), fade extremes near S/R zones.
Examples for Swing Trading
Swing trading focuses on capturing medium-term moves (days to weeks) in trending markets. Use the "Swing Trading" preset, which sets EMAs to 20, 50, 100, 150, 200, 75, 125—balancing sensitivity and smoothness.
Bullish Setup Example: On a daily chart of AAPL, wait for a "Strong Uptrend" regime (green background, bullish alignment label, trend strength >50%). Enter long on a valid bullish crossover (green "BUY" circle) between EMA1 (20) and EMA2 (50), confirmed by high volume. Set stop below nearest support EMA (e.g., EMA3 at 100), target 2-3x risk or next resistance. Hold until bearish crossover or alignment breaks.
Bearish Setup Example: On a 4H chart of EURUSD, spot a "Strong Downtrend" (red background, bearish alignment). Short on a bearish crossover (red "SELL") between EMA1 and EMA3, with volume confirmation. Stop above nearest resistance EMA, exit on confluence zone (yellow) signaling potential reversal.
Tip: Focus on alignments for trend confirmation—avoid trading against them. Use confluence zones as profit-taking areas in ranging markets.
Examples for Scalp Trading
Scalping targets quick, short-term trades (minutes to hours) on lower timeframes. Select the "Scalping" preset for shorter EMAs (5, 8, 13, 21, 34, 55, 89) to catch rapid moves.
Bullish Setup Example: On a 1-min chart of BTCUSD, look for "Weak Uptrend" (faded green background, positive slopes). Enter long on a fast crossover (e.g., EMA1 over EMA2) with high volume and no confluence (avoid chop). Scalp for 0.5-1% gain, exit on slope flattening or bearish cross. Use tight stops below the fastest EMA.
Bearish Setup Example: On a 5-min chart of TSLA, identify "Weak Downtrend" (faded red). Short on a crossover between EMA2 and EMA3, confirmed by volume spike. Target small moves (e.g., 10-20 pips), exit at nearest support EMA or if trend strength drops below 30%.
Tip: Prioritize "Multi-Bar Slope" detection for quick trend shifts. Disable background if it's distracting; focus on crossovers and volume for high-frequency entries. Avoid during confluences, as they signal choppy conditions.
This detailed approach ensures traders can replicate setups while appreciating the indicator's original value. Feedback welcome—let's refine trading edges together!