Institutional Liquidity Flow Engine [JOAT]Institutional Liquidity Flow Engine
Introduction
The Institutional Liquidity Flow Engine is an advanced open-source volume analysis indicator that combines relative volume monitoring, buyer/seller strength analysis, multi-timeframe alignment detection, and comprehensive flow metrics into a unified institutional-grade tool. This indicator helps traders identify when institutional money is entering or exiting positions by analyzing volume patterns, pressure dynamics, and liquidity conditions across multiple timeframes.
Unlike basic volume indicators that simply show volume bars, this engine dissects volume into actionable intelligence: relative volume (RVOL) to identify unusual activity, buyer/seller strength ratios to determine who controls the market, accumulation/distribution trends to track smart money positioning, and multi-timeframe alignment to confirm directional conviction. The indicator is designed for traders who understand that volume precedes price and that institutional footprints can be detected through systematic volume analysis.
Why This Indicator Exists
This indicator addresses a critical gap in retail trading: the ability to detect institutional activity in real-time. Institutional traders move large positions that create detectable volume signatures. By combining multiple volume analysis methodologies, this indicator reveals:
Relative Volume Analysis: Identifies when volume is significantly above or below average, signaling potential institutional activity
Buyer/Seller Strength: Quantifies the balance of power between buyers and sellers using volume-weighted calculations
Multi-Timeframe Alignment: Confirms whether volume patterns align across 1m, 5m, 15m, 30m, 1h, 2h, 4h, Daily, and Weekly timeframes
Flow Metrics: Tracks Money Flow Index (MFI), On-Balance Volume (OBV), Accumulation/Distribution (A/D), and VWAP deviation
Liquidity Classification: Categorizes market conditions as Strong Buying, Strong Selling, Balanced, or Thin liquidity
Each component provides a different lens on volume behavior. RVOL shows intensity, buyer/seller strength shows direction, MTF alignment shows conviction, flow metrics show institutional positioning, and liquidity classification shows market conditions. Together, they create a comprehensive view of institutional activity.
Core Components Explained
1. Relative Volume (RVOL) Analysis
RVOL is calculated as current volume divided by the average volume over a specified period (default 20 bars):
avgVolume = ta.sma(volume, volumeLength)
relativeVolume = avgVolume > 0 ? volume / avgVolume : 1.0
The indicator classifies RVOL into five categories:
Extreme (RVOL >= 3.0): Institutional-level activity, potential climax moves
High (RVOL >= 1.5): Above-average activity, significant interest
Normal (RVOL >= 1.0): Average activity, typical market conditions
Low (RVOL >= 0.5): Below-average activity, reduced interest
Very Low (RVOL < 0.5): Minimal activity, thin liquidity
RVOL thresholds are customizable. Higher RVOL often precedes significant price moves as institutions accumulate or distribute positions.
2. Buyer/Seller Strength Analysis
The indicator calculates buyer and seller strength using volume-weighted analysis:
buyerVolume = close > open ? volume : 0
sellerVolume = close < open ? volume : 0
buyerStrength = ta.sma(buyerVolume, volumeLength)
sellerStrength = ta.sma(sellerVolume, volumeLength)
Strength ratios are calculated as percentages:
Buyer Ratio: (buyerStrength / totalStrength) * 100
Seller Ratio: (sellerStrength / totalStrength) * 100
When buyer ratio exceeds 70%, bullish pressure dominates. When seller ratio exceeds 70%, bearish pressure dominates. The indicator also integrates ATR-based strength calculations to filter for significant moves and RSI-based strength classification (Strong/Moderate/Weak) for additional context.
3. Multi-Timeframe Alignment
The indicator requests RVOL data from three customizable timeframes (default: 5m, 15m, 60m) and calculates alignment:
mtf1_bullish = rvol_mtf1 > 1.0 and vol_mtf1 > ta.sma(vol_mtf1, 20)
mtfAlignment = (mtf1_bullish ? 1 : 0) + (mtf2_bullish ? 1 : 0) + (mtf3_bullish ? 1 : 0)
Alignment status:
Strong Aligned (3/3): All timeframes show elevated volume - high conviction
Aligned (2/3): Majority timeframes show elevated volume - moderate conviction
Weak (1/3): Only one timeframe shows elevated volume - low conviction
No Alignment (0/3): No timeframes show elevated volume - no conviction
Strong alignment across multiple timeframes indicates institutional participation at scale, as large orders are often split across timeframes to minimize market impact.
4. Flow Metrics Suite
Money Flow Index (MFI):
Volume-weighted RSI that measures buying and selling pressure:
mfi = ta.mfi(close, volumeLength)
MFI > 80 indicates overbought conditions with high volume, MFI < 20 indicates oversold conditions with high volume.
On-Balance Volume (OBV):
Cumulative volume indicator that adds volume on up days and subtracts on down days:
obv = ta.cum(math.sign(ta.change(close)) * volume)
obvTrend = obv > obvMA ? "Bullish" : obv < obvMA ? "Bearish" : "Neutral"
OBV divergences from price often signal reversals.
Accumulation/Distribution (A/D):
Measures the cumulative flow of money into and out of a security:
ad = ta.cum(close == high and close == low or high == low ? 0 : ((2 * close - low - high) / (high - low)) * volume)
Rising A/D with rising price confirms uptrend, falling A/D with rising price signals distribution.
VWAP Deviation:
Measures how far price is from volume-weighted average price:
vwap = ta.vwap(close)
vwapDeviationPercent = vwap != 0 ? ((close - vwap) / vwap) * 100 : 0
Large deviations often mean-revert as institutions take advantage of inefficient pricing.
5. Volume Speed & Acceleration
The indicator calculates volume momentum and acceleration:
Volume ROC: Rate of change in volume over 5 periods
Volume Acceleration: Change in volume ROC (second derivative)
Volume Momentum: Current volume minus 10-period SMA
Volume Trend: Increasing or Decreasing based on EMA crossover
Accelerating volume often precedes breakouts or breakdowns as institutional orders hit the market.
6. Liquidity Classification System
The indicator classifies current liquidity conditions:
Strong Buying: High RVOL + positive net pressure (buyer strength > seller strength)
Strong Selling: High RVOL + negative net pressure (seller strength > buyer strength)
Balanced: Normal RVOL with relatively equal buyer/seller strength
Thin: Low RVOL indicating reduced liquidity and potential for slippage
Pressure intensity is calculated as:
pressureLevel = math.abs(netPressure) / avgVolume
pressureIntensity = pressureLevel >= 2.0 ? "Extreme" : pressureLevel >= 1.0 ? "High" : pressureLevel >= 0.5 ? "Moderate" : "Low"
Visual Elements
RVOL Histogram: Main plot showing relative volume with color-coded intensity (extreme = magenta, high = yellow, normal = green, low = gray)
Reference Lines: Horizontal lines at 1.0 (average), 1.5 (high threshold), and 3.0 (extreme threshold)
Buyer Pressure Fill: Background fill showing buyer pressure ratio (0-100%)
Volume Oscillator: Histogram overlay showing short-term vs long-term volume momentum
MFI Line: Thick line overlay showing Money Flow Index with gradient colors
Information Table: Comprehensive dashboard displaying all metrics in real-time
The table displays 15 metrics:
1. RVOL (current relative volume)
2. Status (Extreme/High/Normal/Low/Very Low)
3. Volume Trend (Increasing/Decreasing)
4. Pressure (Bullish/Bearish/Neutral)
5. Buyer Strength (percentage)
6. Seller Strength (percentage)
7. RSI (current value)
8. Liquidity (Strong Buying/Strong Selling/Balanced/Thin)
9. MTF Alignment (Strong Aligned/Aligned/Weak/No Alignment)
10. A/D Trend (Accumulation/Distribution/Neutral)
11. OBV Trend (Bullish/Bearish/Neutral)
12. MFI (current value)
13. VWAP Deviation (percentage)
14. Volume Momentum (percentage)
Input Parameters
Volume Analysis:
Volume MA Length: Period for volume moving average (default: 20)
High RVOL Threshold: Multiplier for high volume detection (default: 1.5)
Extreme RVOL Threshold: Multiplier for extreme volume detection (default: 3.0)
Multi-Timeframe Settings:
Show Multi-Timeframe Analysis: Toggle MTF calculations (default: enabled)
Timeframe 1/2/3: Customizable timeframes for alignment analysis (default: 5m, 15m, 60m)
Buyer/Seller Strength:
ATR Length: Period for ATR calculation (default: 14)
RSI Length: Period for RSI calculation (default: 14)
RSI Overbought/Oversold: Thresholds for RSI classification (default: 70/30)
Display Options:
Show Info Table: Toggle information dashboard (default: enabled)
Show Volume Histogram: Toggle RVOL histogram (default: enabled)
Show VWAP Deviation: Toggle VWAP calculations (default: enabled)
Table Position: Choose dashboard location (Top Right/Top Left/Bottom Right/Bottom Left)
Colors:
All colors are customizable including bullish, bearish, neutral, extreme volume, and high volume colors.
How to Use This Indicator
Step 1: Monitor RVOL for Unusual Activity
Watch for RVOL spikes above 1.5 (high) or 3.0 (extreme). These indicate institutional activity. Extreme RVOL often marks climax moves or major reversals.
Step 2: Check Buyer/Seller Strength
Identify who controls the market. Buyer ratio > 70% suggests bullish control, seller ratio > 70% suggests bearish control. Look for divergences where price moves one direction but strength moves another.
Step 3: Confirm with MTF Alignment
Strong alignment across multiple timeframes confirms institutional conviction. Weak or no alignment suggests retail-driven moves that may lack follow-through.
Step 4: Analyze Flow Metrics
Check MFI, OBV, and A/D for confirmation. Rising OBV with rising price confirms uptrend. Falling A/D with rising price warns of distribution.
Step 5: Assess Liquidity Conditions
Strong Buying or Strong Selling conditions with high RVOL often precede significant moves. Thin liquidity conditions increase risk of slippage and false moves.
Step 6: Look for Volume Acceleration
Accelerating volume momentum often precedes breakouts. Decelerating volume momentum often precedes consolidation or reversal.
Best Practices
Use on liquid instruments (major forex pairs, large-cap stocks, major crypto) for most reliable signals
Combine with price action analysis - volume shows intent, price shows result
Pay attention to RVOL spikes at key support/resistance levels
Look for volume divergences: price making new highs/lows without volume confirmation often fails
MTF alignment is most reliable on trending markets, less reliable in choppy conditions
Extreme RVOL can signal exhaustion - be cautious of chasing moves with RVOL > 5.0
Use VWAP deviation for mean reversion opportunities when price extends far from VWAP
Monitor A/D and OBV for early warning signs of trend changes
Indicator Limitations
Volume analysis works best on liquid instruments with consistent volume patterns
Low-volume instruments or off-market hours can produce unreliable RVOL readings
MTF alignment requires sufficient data on all timeframes - may not work on newly listed instruments
Volume precedes price but doesn't guarantee direction - high volume can occur on both breakouts and fakeouts
Buyer/seller strength calculations assume close > open = buying and close < open = selling, which is a simplification
RVOL thresholds may need adjustment for different instruments and market conditions
The indicator shows what is happening, not why - fundamental catalysts can override technical volume patterns
Extreme RVOL can persist longer than expected during major news events or market dislocations
Technical Implementation
Built with Pine Script v6 using:
Custom RVOL calculations with dynamic thresholds
Volume-weighted buyer/seller strength analysis
Multi-timeframe security requests with proper lookahead settings
Comprehensive flow metrics (MFI, OBV, A/D, VWAP)
Volume momentum and acceleration calculations
Real-time liquidity classification system
Dynamic table with 15 metrics and color-coded cells
Thick histogram and line plots for enhanced visibility
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive integration approach. While individual components (RVOL, MFI, OBV, A/D, buyer/seller strength) are established concepts, this indicator is justified because:
It synthesizes six distinct volume analysis methodologies into a unified system
The multi-timeframe alignment detection provides institutional conviction measurement not available in standard volume indicators
Buyer/seller strength calculations combine volume, ATR, and RSI for multi-dimensional pressure analysis
The liquidity classification system categorizes market conditions in real-time
Volume speed and acceleration metrics provide early warning of momentum shifts
The comprehensive dashboard presents 15 metrics simultaneously for holistic volume analysis
Integration of flow metrics (MFI, OBV, A/D, VWAP) with RVOL and strength analysis creates layered confirmation
Each component contributes unique information: RVOL shows intensity, buyer/seller strength shows direction, MTF alignment shows conviction, flow metrics show positioning, liquidity classification shows conditions, and volume acceleration shows momentum. The indicator's value lies in presenting these complementary perspectives simultaneously with a unified classification system.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Volume analysis is a tool for understanding market dynamics, not a crystal ball for predicting future price movement. High volume does not guarantee profitable trades. Past volume patterns do not guarantee future volume patterns. Market conditions change, and strategies that worked historically may not work in the future.
The metrics displayed are mathematical calculations based on current market data, not predictions of future price movement. High RVOL, strong buyer/seller ratios, and MTF alignment do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades
Pine Script® インジケーター












