INVITE-ONLY SCRIPT
Order Flow Indicator

The Order Flow Indicator is an advanced order flow analysis tool that processes lower timeframe (LTF) tick-level data to reveal the underlying buying and selling dynamics behind price movement. Using custom scoring formulas and proprietary weighting algorithms, this indicator transforms raw tick data into actionable visualizations that help traders understand market microstructure, detect potential institutional activity, and identify shifts in buying and selling pressure.
Unlike standard volume indicators that only show total volume per bar, this indicator analyzes every individual tick within each chart bar—potentially hundreds or thousands of data points—to calculate directional pressure, volume absorption, and large order detection with far greater precision.
-------------------------------------------------------------------
Core Features
1. Institutional Buyer Histogram
The institutional buyer histogram identifies and displays large orders that likely represent institutional or professional trading activity. The indicator uses a proprietary classification system with an adaptive algorithm to detect which orders are the most important, automatically calibrating to different instruments and market conditions without manual adjustment.
Large orders are classified by direction:
The tiered filtering system allows you to adjust sensitivity:
An optional Size Filter can be enabled to set an absolute minimum order size in addition to tier filtering, allowing for precise control over which orders are displayed.
2. Buy & Sell Pressure Histogram
Visualizes the total directional pressure within each bar using a proprietary scoring system that weights volume by price impact. The histogram height represents total pressure intensity, while the color gradient—ranging from neutral gray to green (buying) or red (selling)—indicates how one-sided the activity was. Bars with strong directional conviction display more saturated colors, while mixed or balanced activity remains closer to neutral.
The color intensity is determined by custom adaptive algorithms that compare current activity against recent historical context, providing meaningful visual feedback about the strength and conviction of each bar's order flow.
3. Absorption Histogram
Detects when significant volume occurs without proportional price movement. High absorption readings suggest that large orders may be getting filled without moving the market, potentially indicating institutional activity, strong support/resistance levels, or an active battle between buyers and sellers. This can mean a reversal is coming or that the move is exhausted.
The indicator uses proprietary efficiency calculations and adaptive normalization to compare current absorption against recent historical context, automatically adjusting to different market conditions and volatility.
4. Neutral Volume Histogram
Displays cumulative volume where price remained unchanged between ticks. Elevated neutral volume may indicate consolidation, indecision, or large orders being executed at a single price level without directional impact. These are typically limit orders where institutional buyers were trying to get their orders filled without moving the markets.
5. Order Flow Trend Line & Moving Averages
Tracks cumulative directional order flow over time, resetting at user-defined intervals (hourly, daily, weekly, etc.). Two calculation methods are available:
Three time-based moving averages (default: 15min, 1H, 4H) provide trend context. Unlike traditional bar-based MAs, these automatically calculate the appropriate length based on your chart timeframe, ensuring consistent time periods across different charts. Optional color-filled areas show when the trend line is above or below each MA for quick visual reference.
-------------------------------------------------------------------
How To Read The Indicator
Institutional Histogram Interpretation:

Pressure Histogram Interpretation:

Absorption Histogram Interpretation:

Neutral Volume Histogram Interpretation:

Trend Line Interpretation:

-------------------------------------------------------------------
Trading Applications
Scalping & Intraday Trading: Use the Institutional Histogram to identify when large players are entering the market. Imbalances between institutional buying and selling often precede short-term price movements. Watch for a strong directional bias from large orders and then look for pullbacks to enter positions in the same direction of the large order bias.
Watch for high spikes in absorption after an extended move up or down. This typically represents a reversal is coming or that the move is exhausted and a pullback to fair price areas is likely so trail your stop tightly if you are already in a position or use the absorption spike as a signal to watch for a potential entry near that spike candle.
Support & Resistance Confirmation: High Absorption readings at key price levels may confirm that orders are being absorbed, strengthening the case for support or resistance. Clusters of absorption can help identify accumulation and distribution zones. These often have price reactions that can be scalped for quick profits by trading back towards where price approached the support/resistance level from.
Trend Confirmation: The Order Flow Trend Line can confirm or diverge from price trends. Strong price moves accompanied by aligned order flow provide higher conviction. Divergences between price and cumulative delta may signal weak conviction from traders and indicate a potential reversal is coming.
Institutional Order Detection: Filter for only the largest orders (Tier 1) to see when potential institutional players are most active. These rare, significant orders often precede meaningful price moves. When you see a clear bias in direction from the institutional traders, look for pullbacks and then enter a position in the same direction as the large trader bias.
Volume Analysis: Compare Pressure and Neutral Volume histograms together. High pressure with low neutral volume suggests conviction moves, while high neutral volume with low pressure may indicate consolidation or absorption.
-------------------------------------------------------------------
Settings Overview
Global Settings:
Institutional Buyer Histogram Settings:
Buy & Sell Pressure Histogram Settings:
Absorption Histogram Settings:
Neutral Volume Histogram Settings:
Order Flow Trend Settings:
Identification Table:
-------------------------------------------------------------------
Important Notes & Limitations
Lower Timeframe Data Requirements: This indicator is designed to work with tick-level data (1T timeframe) for maximum accuracy. The quality of analysis depends directly on the granularity of data available:
For complete information on data availability by subscription tier, see the TradingView pricing page.
Volume Data Required: This indicator requires volume data to function. Instruments without volume data (such as some forex pairs from certain brokers) cannot be analyzed with this tool.
Real-Time Updates: Without "Only Show Data For Confirmed Bars" enabled, the current bar's values will update in real-time as new ticks arrive. Enable this setting if you prefer to act only on finalized data that will not change upon bar confirmation.
Instrument Compatibility: While designed primarily for futures trading analysis, this indicator works on any instrument with volume data including stocks, forex, ETFs, and cryptocurrencies.
Using Multiple Instances Of The Indicator: There are multiple different options for you to use on this indicator, but having them on the same pane can be confusing and not obvious when the data overlaps. To fix this, just add a second or third instance of the indicator to your chart and then switch on the specific tool you want to use for that indicator pane. My personal favorite is the absorption on one pane and the institutional buyer histogram on another pane for easy analysis of both.
If you want to combine two histograms onto one indicator pane such as absorption and neutral volume, just enable the inversion setting on one of the tools so you get data on the positive side and negative side of the zero line and reduce how much space your indicator setup consumes of your chart.
Fix Indicator Loading Error: If the indicator fails to load or displays incorrectly, toggle the "Fix Indicator Loading Error" checkbox in settings. This forces TradingView to restart the indicator and typically resolves loading issues. Tradingview charts have issues with parsing tick data sometimes too, so if you see gaps between readings, try refreshing your browser. Most of the time that fixes the issue with gaps in data. If that does not resolve the issue, there may not be any tick data available from the exchange during that time period.
-------------------------------------------------------------------
Default Configuration
Out of the box, the indicator displays:
This provides immediate value by showing large order detection without overwhelming the chart. Enable additional features as needed for your trading style.
Unlike standard volume indicators that only show total volume per bar, this indicator analyzes every individual tick within each chart bar—potentially hundreds or thousands of data points—to calculate directional pressure, volume absorption, and large order detection with far greater precision.
-------------------------------------------------------------------
Core Features
1. Institutional Buyer Histogram
The institutional buyer histogram identifies and displays large orders that likely represent institutional or professional trading activity. The indicator uses a proprietary classification system with an adaptive algorithm to detect which orders are the most important, automatically calibrating to different instruments and market conditions without manual adjustment.
Large orders are classified by direction:
- Buy Orders (green, above zero): Large orders where price moved up
- Sell Orders (red, below zero): Large orders where price moved down
- Neutral Orders (white, split across zero): Large orders with no directional impact
The tiered filtering system allows you to adjust sensitivity:
- Tier 1 Only: Shows only the absolute largest, most significant orders
- Tier 1 & 2 Only: Shows very large orders (default setting)
- Tier 1, 2 & 3 Only: Shows large orders with more frequency
- All Tiers: Shows all significant orders above normal retail size
- Use Order Size Filter Only: Bypass the adaptive tier system and filter purely by a specific order size threshold
An optional Size Filter can be enabled to set an absolute minimum order size in addition to tier filtering, allowing for precise control over which orders are displayed.
2. Buy & Sell Pressure Histogram
Visualizes the total directional pressure within each bar using a proprietary scoring system that weights volume by price impact. The histogram height represents total pressure intensity, while the color gradient—ranging from neutral gray to green (buying) or red (selling)—indicates how one-sided the activity was. Bars with strong directional conviction display more saturated colors, while mixed or balanced activity remains closer to neutral.
The color intensity is determined by custom adaptive algorithms that compare current activity against recent historical context, providing meaningful visual feedback about the strength and conviction of each bar's order flow.
3. Absorption Histogram
Detects when significant volume occurs without proportional price movement. High absorption readings suggest that large orders may be getting filled without moving the market, potentially indicating institutional activity, strong support/resistance levels, or an active battle between buyers and sellers. This can mean a reversal is coming or that the move is exhausted.
The indicator uses proprietary efficiency calculations and adaptive normalization to compare current absorption against recent historical context, automatically adjusting to different market conditions and volatility.
4. Neutral Volume Histogram
Displays cumulative volume where price remained unchanged between ticks. Elevated neutral volume may indicate consolidation, indecision, or large orders being executed at a single price level without directional impact. These are typically limit orders where institutional buyers were trying to get their orders filled without moving the markets.
5. Order Flow Trend Line & Moving Averages
Tracks cumulative directional order flow over time, resetting at user-defined intervals (hourly, daily, weekly, etc.). Two calculation methods are available:
- Basic: Raw cumulative volume delta (up volume minus down volume)
- Advanced: Uses the proprietary scoring system for volume-weighted directional measurement
Three time-based moving averages (default: 15min, 1H, 4H) provide trend context. Unlike traditional bar-based MAs, these automatically calculate the appropriate length based on your chart timeframe, ensuring consistent time periods across different charts. Optional color-filled areas show when the trend line is above or below each MA for quick visual reference.
-------------------------------------------------------------------
How To Read The Indicator
Institutional Histogram Interpretation:
- Green spikes above zero = Large buying orders detected
- Red spikes below zero = Large selling orders detected
- White spikes above and below zero = Large neutral orders detected
- Simultaneous buy and sell spikes = Two-sided institutional activity (potential reversal zone or high-interest price level)
- The identification table on your chart shows which tier filter is active and any size filter threshold
Pressure Histogram Interpretation:
- Tall bars with saturated green = Strong, mostly one-sided buying pressure
- Tall bars with saturated red = Strong, mostly one-sided selling pressure
- Shorter or gray-tinted bars = Lower conviction or balanced activity from buyers and sellers
Absorption Histogram Interpretation:
- Tall bright bars = High volume absorbed without moving price (potential reversal or exhaustion of the move)
- Low/absent bars = Volume efficiently moving price as expected
Neutral Volume Histogram Interpretation:
- Large neutral volume signals clusters of limit orders from large buyers and sellers looking to fill their orders without moving the market. This can signal a potential reversal, or intention to support price from that area.
Trend Line Interpretation:
- Rising trend line (green) = Cumulative buying pressure increasing
- Falling trend line (red) = Cumulative selling pressure increasing
- Trend crossing above/below MAs = Potential shift in order flow momentum
-------------------------------------------------------------------
Trading Applications
Scalping & Intraday Trading: Use the Institutional Histogram to identify when large players are entering the market. Imbalances between institutional buying and selling often precede short-term price movements. Watch for a strong directional bias from large orders and then look for pullbacks to enter positions in the same direction of the large order bias.
Watch for high spikes in absorption after an extended move up or down. This typically represents a reversal is coming or that the move is exhausted and a pullback to fair price areas is likely so trail your stop tightly if you are already in a position or use the absorption spike as a signal to watch for a potential entry near that spike candle.
Support & Resistance Confirmation: High Absorption readings at key price levels may confirm that orders are being absorbed, strengthening the case for support or resistance. Clusters of absorption can help identify accumulation and distribution zones. These often have price reactions that can be scalped for quick profits by trading back towards where price approached the support/resistance level from.
Trend Confirmation: The Order Flow Trend Line can confirm or diverge from price trends. Strong price moves accompanied by aligned order flow provide higher conviction. Divergences between price and cumulative delta may signal weak conviction from traders and indicate a potential reversal is coming.
Institutional Order Detection: Filter for only the largest orders (Tier 1) to see when potential institutional players are most active. These rare, significant orders often precede meaningful price moves. When you see a clear bias in direction from the institutional traders, look for pullbacks and then enter a position in the same direction as the large trader bias.
Volume Analysis: Compare Pressure and Neutral Volume histograms together. High pressure with low neutral volume suggests conviction moves, while high neutral volume with low pressure may indicate consolidation or absorption.
-------------------------------------------------------------------
Settings Overview
Global Settings:
- Data Source: Analyze order flow from a different symbol (e.g., ES1! while viewing SPY). Leave empty to use the current chart symbol.
- Lower Timeframe: The granularity of tick data analysis (default: 1T for 1-tick). Lower timeframes provide more accurate data but have limited historical depth.
- Only Show Data For Confirmed Bars: When enabled, only displays data after bars close to prevent values from updating on open bars.
Institutional Buyer Histogram Settings:
- Order Size Tier Filter: Adjust sensitivity from Tier 1 (largest orders only) through All Tiers (broader detection), or use Size Filter Only mode
- Only Show Orders Above Filter Threshold: Enable an additional absolute minimum order size filter
- Order Size Filter Threshold: Set a specific minimum volume when the size filter is enabled
- Color Settings: Customize buy, sell, and neutral order colors
Buy & Sell Pressure Histogram Settings:
- Enable/disable and invert the histogram
- Customize buy pressure, sell pressure, and base colors for the gradient system
Absorption Histogram Settings:
- Enable/disable and invert the histogram
- Customize absorption and base colors
Neutral Volume Histogram Settings:
- Enable/disable and invert the histogram
- Customize the neutral volume color
Order Flow Trend Settings:
- Calculation Method: Basic (raw delta) or Advanced (proprietary scoring)
- Smoothing Length: Apply SMA smoothing to the trend line (1 = no smoothing)
- Reset Period: When cumulative values reset (5min through 1 Year)
- MA 1/2/3 Timeframes: Time-based moving average periods (each can be independently enabled)
- MA Fill: Optional color fill between trend line and MAs
Identification Table:
- Enable/disable the on-chart table showing active features
- Customize position, background color, and text color
-------------------------------------------------------------------
Important Notes & Limitations
Lower Timeframe Data Requirements: This indicator is designed to work with tick-level data (1T timeframe) for maximum accuracy. The quality of analysis depends directly on the granularity of data available:
- Tick-based intervals require a paid TradingView subscription (Ultimate plan)
- Historical tick data is very limited — even on the Ultimate plan, only 40,000 bars of historical tick data is available which can be days worth of data on some charts and only hours worth of data on charts like NQ where there are a large amount of traders constantly buying and selling.
- Second-based data requires Premium or Ultimate plans. This will give you more history to work with, but multiple transactions can happen within a single second bar, so the data, especially directional data will not be as accurate as tick level data.
- Using higher LTF settings (such as 1-minute) will still work but provides less granular order flow analysis
For complete information on data availability by subscription tier, see the TradingView pricing page.
Volume Data Required: This indicator requires volume data to function. Instruments without volume data (such as some forex pairs from certain brokers) cannot be analyzed with this tool.
Real-Time Updates: Without "Only Show Data For Confirmed Bars" enabled, the current bar's values will update in real-time as new ticks arrive. Enable this setting if you prefer to act only on finalized data that will not change upon bar confirmation.
Instrument Compatibility: While designed primarily for futures trading analysis, this indicator works on any instrument with volume data including stocks, forex, ETFs, and cryptocurrencies.
Using Multiple Instances Of The Indicator: There are multiple different options for you to use on this indicator, but having them on the same pane can be confusing and not obvious when the data overlaps. To fix this, just add a second or third instance of the indicator to your chart and then switch on the specific tool you want to use for that indicator pane. My personal favorite is the absorption on one pane and the institutional buyer histogram on another pane for easy analysis of both.
If you want to combine two histograms onto one indicator pane such as absorption and neutral volume, just enable the inversion setting on one of the tools so you get data on the positive side and negative side of the zero line and reduce how much space your indicator setup consumes of your chart.
Fix Indicator Loading Error: If the indicator fails to load or displays incorrectly, toggle the "Fix Indicator Loading Error" checkbox in settings. This forces TradingView to restart the indicator and typically resolves loading issues. Tradingview charts have issues with parsing tick data sometimes too, so if you see gaps between readings, try refreshing your browser. Most of the time that fixes the issue with gaps in data. If that does not resolve the issue, there may not be any tick data available from the exchange during that time period.
-------------------------------------------------------------------
Default Configuration
Out of the box, the indicator displays:
- Institutional Buyer Histogram: Enabled with Tier 1 & 2 filter
- Identification Table: Enabled (shows active features and current tier selection)
- All other features: Disabled
This provides immediate value by showing large order detection without overwhelming the chart. Enable additional features as needed for your trading style.
僅限邀請腳本
僅作者批准的使用者才能訪問此腳本。您需要申請並獲得使用許可,通常需在付款後才能取得。更多詳情,請依照作者以下的指示操作,或直接聯絡FriendOfTheTrend。
TradingView不建議在未完全信任作者並了解其運作方式的情況下購買或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
This is an invite only script, available at an affordable price to customers that subscribe to our Order Flow Pro indicator suite. To get access to this script, please go to our website https://friendofthetrend.com/ and purchase a subscription.
Trend Friend - Data Driven Trading Indicators For All Your Favorite Markets
Get Access To Our Premium Indicator Suite -> friendofthetrend.com/
Join Our Trading Group - facebook.com/groups/stockandcryptotradingstrategies
Get Access To Our Premium Indicator Suite -> friendofthetrend.com/
Join Our Trading Group - facebook.com/groups/stockandcryptotradingstrategies
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
僅限邀請腳本
僅作者批准的使用者才能訪問此腳本。您需要申請並獲得使用許可,通常需在付款後才能取得。更多詳情,請依照作者以下的指示操作,或直接聯絡FriendOfTheTrend。
TradingView不建議在未完全信任作者並了解其運作方式的情況下購買或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
This is an invite only script, available at an affordable price to customers that subscribe to our Order Flow Pro indicator suite. To get access to this script, please go to our website https://friendofthetrend.com/ and purchase a subscription.
Trend Friend - Data Driven Trading Indicators For All Your Favorite Markets
Get Access To Our Premium Indicator Suite -> friendofthetrend.com/
Join Our Trading Group - facebook.com/groups/stockandcryptotradingstrategies
Get Access To Our Premium Indicator Suite -> friendofthetrend.com/
Join Our Trading Group - facebook.com/groups/stockandcryptotradingstrategies
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。