Multi-Layer Volume Profile [BigBeluga]A powerful multi-resolution volume analysis tool that stacks multiple profiles of historical trading activity to reveal true market structure.
This indicator breaks down total and delta volume distribution across time at four adjustable depths — enabling traders to spot major POCs, volume shelves, and zones of price acceptance or rejection with unmatched clarity.
🔵 KEY FEATURES
Multi-Layer Volume Profiles:
Up to 4 separate volume profiles are stacked on the chart:
- Profile 1: Full period
- Profile 2: Half-length
- Profile 3: Quarter-length
- Profile 4: One-eighth-length
This layering helps traders assess confluence across different time horizons.
Custom Bin Resolution:
Each profile uses a customizable number of bins to control visual precision.
More bins = higher granularity, fewer bins = smoother profile.
Precise POC Highlighting:
The price level with the maximum traded volume in each profile is highlighted with a thick blue POC line.
This key level shows the most accepted price for each period.
Total and Delta Volume Labels:
- Total Volume: Displays cumulative volume over the profile period at the top of the profile box.
- Delta Volume: The difference between bullish and bearish volume is labeled at the base, showing directional pressure.
Positive delta = buyer dominance, negative delta = seller dominance.
Range Levels:
Each profile includes horizontal reference lines showing its high, low, bounds.
These edges often align with price reaction zones and become future resistance/support.
🔵 HOW IT WORKS
For each active profile, the indicator:
- Collects price range (highs/lows) across the selected `length`
- Divides this range into equal bins
- Assigns volume into bins based on candle close location
- Aggregates volume per bin to form the profile (polylines)
Separately tracks:
- Total volume (sum of all candles in range)
- Delta volume (sum of candle volumes: positive for bullish, negative for bearish closes)
Highlights the bin with maximum volume (POC)
and marks it with a thick blue line.
Adds auxiliary lines for high/low of each profile box
and total/delta volume tags with tooltips.
🔵 USAGE
Spot Acceptance Zones:
Thick, flat areas on the profile show where price stayed longest — ideal for building positions.
Identify Rejection Zones:
Thin volume areas signal price rejection and are often used for stop placement or entries.
Delta Confirmation:
Use strong positive/negative delta readings as directional bias confirmation for breakout trades.
Confluence Detection:
Watch for overlapping POCs between layers to identify extremely strong support/resistance zones.
🔵 CONCLUSION
Multi-Layer Volume Profile equips traders with a deeply layered market structure view.
Whether you're scalping intraday levels or analyzing macro support zones, the ability to stack volume perspectives, visualize directional delta, and anchor POCs provides an edge in anticipating market moves.
Use this tool to validate entries, confirm structure, and make more informed, volume-aware trading decisions.
Volumen
Volume MAs Supertrend | Lyro RS📊 Volume MAs Supertrend | Lyro RS is an advanced trading tool that combines volume-adjusted moving averages with a dynamic Supertrend system. This indicator provides a robust framework for identifying market trends and entry/exit points.
✨ Key Features :
📈 Volume-Weighted Moving Averages (VWMA): Integrates price and volume data to provide a more accurate moving average, allowing for better trend analysis.
🔧 Multiple MA Types: Choose from SMA, EMA, WMA, VWMA, DEMA, TEMA, RMA, HMA, ALMA to suit your preferred trading strategy.
📊 Dual-Multiplier Supertrend System: Uses ATR to dynamically calculate upper and lower bands for long and short trends, with distinct multipliers for each.
🎨 Customizable Color Schemes: Choose from Classic, Mystic, Accented, and Royal color palettes or customize your own colors for bullish and bearish trends.
🔍 Visual Enhancements: Color-coded Supertrend lines, candlesticks, and bars for quick trend identification.
⏰ Alert System: Alerts for long and short signals based on trend changes.
🔧 How It Works :
The Supertrend line is calculated using ATR over a user-defined period, with separate multipliers for long and short positions.
📈 A bullish trend is signaled when the price crosses above the upper band, and a bearish trend is signaled when the price crosses below the lower band.
🎨 The Supertrend line changes color to reflect trend direction, with candlesticks and bars matching the trend's color for visual clarity.
⚙️ Customization Options :
🛠️ Moving Average Settings: Select your preferred moving average type (SMA, EMA, VWMA, etc.) and adjust the length for smoother or more responsive trend signals.
📐 Supertrend Parameters: Define the ATR period and adjust multipliers to fine-tune sensitivity for long and short signals.
🎨 Color Configuration: Choose from predefined color palettes or create your own custom scheme for trend signals.
📈 Use Cases :
✅ Confirm market trends before entering trades.
🚪 Identify potential entry/exit points as trend directions shift.
👀 Visually analyze market conditions with color-coded candlesticks and bars.
⚠️ Disclaimer :
This indicator should not be used as a standalone tool for making trading decisions. Always combine with other forms of analysis and risk management practices.
AlgoRanger Fibonacci Synthesis📘 AlgoRanger Fibonacci Synthesis
Author:
🔍 What It Does:
The AlgoRanger Fibonacci Synthesis is a powerful technical analysis tool that automatically draws dynamic Fibonacci retracement levels between algorithmically detected swing highs and lows. It combines price action structure, retracement theory, and trend confirmation in one seamless indicator.
This tool is ideal for traders looking to enter on pullbacks, confirm trend reversals, or identify key price reaction zones without having to manually draw Fibonacci levels.
🛠️ How It Works:
Auto Swing Detection: The indicator uses recent price pivots to define a high-low range and draws Fibonacci levels within it (0% to 100%).
Key Fib Levels: The classic 23.6%, 38.2%, 50%, 61.8%, and 78.6% retracement levels are plotted to show areas of potential support/resistance.
Color-Coded Zones: Each level is clearly color-coded to help you visually assess risk/reward and decision zones.
Trend Mapping: Works in conjunction with AlgoRanger Smart Signal and Trend Dashboard for market structure confirmation.
Dynamic Support Line: A red stepped baseline highlights trailing support or trend-following strength zones.
📈 How to Use It:
Entry Zones: Look to enter long trades during pullbacks to the 38.2%–61.8% retracement in an uptrend. Enter shorts in the same range during a downtrend.
Confirmation: Use trend context (e.g. green/red structure lines or other AlgoRanger tools) to confirm the dominant direction.
Stops and Targets:
Place stops near 78.6%–100% levels (end of retracement).
Use 0% or new swing highs/lows as initial profit targets.
Reversal Watching: If price hits 78.6%–100%, monitor for rejection candles or divergences for potential reversal entries.
✅ Best For:
Day trading (15m–1h charts)
Swing trading
Trend-following and countertrend strategies
⚙️ Settings You Can Customize (If Included):
Lookback length for pivot calculation
Visibility of individual Fib levels
Alert options when price crosses Fib zones (optional)
Style and color preferences
OB Sweeps ReversalOB Sweeps Reversal is a high-precision market structure tool that identifies and dynamically tracks bullish and bearish order blocks — key zones where institutional participants are likely to be active. These zones act as support and resistance levels, adapting to market behavior in real time.
The script monitors price interaction with each OB and classifies its status as:
Unmitigated (price has not yet returned)
Mitigating (price is testing the zone)
Invalidated (zone has been broken)
Traders can use these zones directly as actionable support/resistance — or wait for additional confirmation via the system’s liquidity sweep detection and optional filters.
🔍 Key Features:
Automatically detects and plots bullish and bearish OBs
Tracks mitigation status and updates visuals accordingly
Detects liquidity sweeps of recent highs/lows
Optional filters:
• 200 EMA trend direction
• Momentum of current or previous candle
Plots stop-loss and take-profit lines using ATR-based logic
Clean entry labels with full contextual data
Built-in alert system with constant-string messages (automation ready)
📈 How to Use:
Load the script on any timeframe (15m–4H recommended)
Observe the live OB zones as they develop
Trade based on price interaction:
• Bounce off a bullish OB = potential long setup
• Rejection from a bearish OB = potential short
• Sweep + snapback into an OB = optional trap reversal entry
SL/TP levels are drawn automatically for reference
Use alerts to automate or monitor high-conviction setups
The order blocks themselves are valuable on their own — even without waiting for a signal. They can be used as dynamic support and resistance zones, offering excellent structure-based trading opportunities.
🧠 Ideal For:
Traders who follow price action and market structure
Those using support/resistance, OBs, or supply/demand
Intraday and swing traders looking for cleaner structure alignment
Users who prefer low-frequency, high-quality setups
⚠️ Note:
This tool does not produce frequent signals. It is designed for precision and discipline, with a focus on clarity and confluence. It complements — not replaces — a trader’s decision-making process.
This script is open-source and designed with integrity, precision, and trader usability in mind. No links, no upsells, no promotions — just a reliable system for structural market analysis.
Technical Signal Master📘 **Technical Signal Master** - Multi-Indicator Signal Table (50+ indicators)
This script integrates over 50 technical indicators and outputs Buy / Sell / Neutral signals into a dual-column table, helping traders evaluate market conditions at a glance.
---
🔍 **Included Indicators**
- Oscillators: RSI, MACD, Stochastic, Momentum, ADX, CCI, Williams %R, Awesome Oscillator
- Trend Tools: EMA (20/50/75/100/200), Supertrend, PSAR, HMA, KAMA, DMI
- Volume-Based: OBV, MFI, CMF, Chaikin Oscillator, VFI, Force Index, Acc/Dist
- Composite: TDI, Aroon, KST, Coppock, TSI, DPO, ROC, PPO
---
🧠 **What This Script Does**
- Each indicator outputs a numeric value and a signal (Buy = green, Sell = red, Neutral = gray)
- A total score is calculated to summarize the market sentiment (Bullish / Bearish / Neutral)
- All signals are shown in a fixed table at the top-right (overlay = false)
---
🎯 **Use Case**
This tool is designed for:
- Discretionary traders to make informed decisions
- Streamers or instructors to visually show signal summaries
- Anyone needing a unified signal dashboard
---
📝 **日本語説明(for JP users)**
このスクリプトは、50種類以上のテクニカル指標を統合し、それぞれの買い/売り/中立の判定をテーブル形式で表示します。チャート上には描画せず、右上に固定テーブルを表示するのみです。裁量判断や配信補助ツールとして活用できます。
---
✅ No repaint / No overlay plots / Fully open source
Session VolumeThis script tracks and displays 30-minute volume segments during the Regular Trading Hours (RTH) session. It allows traders to visually compare each time block’s volume today vs. the same block from the previous day, helping spot early signs of strength, weakness, or divergence.
Features:
Tracks 13 blocks from 9:30 AM to 4:15 PM ET.
Compares today's volume against historical volume from the same time block yesterday.
Highlights percentage changes per block.
Summary row totals show overall volume trend today vs. yesterday.
This tool is useful for discretionary traders, auction market theorists, and anyone who incorporates market-generated information into their decision-making.
Volume EfficiencyThis indicator displays each candle's volume in an enhanced visual form, combining the amount of volume with the efficiency of the price movement.
Each volume bar changes its color intensity based on:
Higher efficiency (large price movement with low volume) → stronger color.
Lower efficiency (high volume with little price movement) → weaker color.
Additionally:
Green: Bullish candles (close > open).
Red: Bearish candles (close < open).
The color reflects not only the volume but also how "easily" the price moved.
The efficiency calculation is based on the actual body movement of the candle (abs(close - open)) divided by the total volume, dynamically adjusted to the maximum efficiency over the last N candles (configurable).
Interpretation:
Intensely green or red volume bars: clean and efficient movements (low resistance).
Pale bars: market absorption or indecision (high volume but little price movement).
Configurable parameter:
Efficiency period: number of candles used to normalise the maximum efficiency.
Volume Divergence 11192It calculates a custom volume-weighted moving average using the pine_wma() function which takes into account whether each candle is bullish or bearish
It processes volume data through multiple layers of this custom moving average
It detects four types of divergences:
Regular Bullish Divergence: When price makes a lower low but volume makes a higher low (potential bullish reversal)
Hidden Bullish Divergence: When price makes a higher low but volume makes a lower low (potential bullish continuation)
Regular Bearish Divergence: When price makes a higher high but volume makes a lower high (potential bearish reversal)
Hidden Bearish Divergence: When price makes a lower high but volume makes a higher high (potential bearish continuation)
It visualizes these divergences on the chart with colored markers and labels
Pump Detector - EMA 4H + Retest H1 (Valid 10x4H bars)📈 Pump Detector – EMA 12/21 on 4H + Retest on H1
This indicator is designed to detect sudden bullish moves ("pumps") on the 4-hour timeframe, and alert traders of potential retest entry points on the 1-hour timeframe.
🔍 Pump activation conditions (on 4H):
EMA 12 crosses above EMA 21
Current volume exceeds the 20-period SMA of volume (on 4H)
When both conditions are met, a pump alert is triggered and a time window opens.
📉 Retest detection logic (on H1):
For the next 10 bars on the 4H chart (~40 hours), the indicator monitors price behavior on the 1H timeframe
If the LOW of any H1 candle touches or drops below EMA 12 or 21 (on H1), a second alert is triggered
✅ Key Features:
Draws EMA 12/21 from the 4H timeframe directly on the chart
Enforces 4H and H1 timeframes, regardless of the chart the script is applied to
One-time detection per pump window: once the 10-bar window expires, the retest alert is disabled until a new pump is detected
Ideal for capturing momentum breakouts followed by technical pullbacks
⚠️ Recommended for:
Traders looking for scalping or swing trading setups on crypto, forex, or stocks. Helps identify post-breakout entry opportunities using a structured and disciplined approach.
Order Block Matrix [Alpha Extract]The Order Block Matrix indicator identifies and visualizes key supply and demand zones on your chart, helping traders recognize potential reversal points and high-probability trading setups.
This tool helps traders:
Visualize key order blocks with volume profile histograms showing liquidity distribution.
Identify high-volume price levels where institutional activity occurs.
rank historical order blocks and analyze their strength based on volume.
Receive alerts for potential trading opportunities based on price-block interactions.
🔶 CALCULATION
The indicator processes chart data to identify and analyze order blocks:
Order Block Detection
Inputs:
Price action patterns (consolidation areas followed by breakouts).
Volume data from current and lower timeframes.
User-defined lookback periods and thresholds.
Detection Logic:
Identifies consolidation areas using a dynamic range comparison.
Confirms breakout patterns with percentage threshold validation.
Maps volume distribution across price levels within each order block.
🔶Volume Analysis
Volume Profiling:
Divides each order block into configurable grid segments.
Maps volume distribution across price segments within blocks.
Highlights zones with highest volume concentration.
Strength Assessment:
Calculates total block volume and relative strength metrics.
Compares block volume to historical averages.
Determines probability of reversal based on volume patterns.
isConsolidation(len) =>
high_range = ta.highest(high, len) - ta.lowest(high, len)
low_range = ta.highest(low, len) - ta.lowest(low, len)
avg_range = (high_range + low_range) / 2
current_range = high - low
current_range <= avg_range * (1 + obThreshold)
🔶 DETAILS
Visual Features
Volume Profile Histograms:
Color-coded bars showing volume concentration within order blocks.
Gradient coloring based on relative volume (high volume = brighter colors).
Bull blocks (green/teal) and bear blocks (red) with varying opacity.
Block Visualization:
Dynamic box sizing based on volume concentration.
Optional block borders and background fills.
Volume labels showing total block volume.
Screener Table:
Real-time analysis of order block metrics.
Shows block direction, proximity, retest count, and volume metrics.
Color-coded for quick reference.
Interpretation
High Volume Areas: Zones with institutional interest and potential reversal points.
Block Direction: Bullish blocks typically support price, bearish blocks typically resist price.
Retests: Multiple tests of an order block may strengthen or weaken its influence.
Block Age: Newer blocks often have stronger influence than older ones.
Volume Concentration: Brightest segments within blocks represent the highest volume areas.
🔶 EXAMPLES
The indicator helps identify key trading opportunities:
Bullish Order Blocks
Support Zones: Identify strong support levels where price is likely to bounce.
Breakout Confirmation: Validate breakouts with volume analysis to avoid false moves.
Retest Strategies: Enter trades when price retests a bullish order block with high volume.
Bearish Order Blocks
Resistance Zones: Identify strong resistance levels where price is likely to reverse.
Distribution Areas: Detect zones where smart money is distributing to retail.
Short Opportunities: Find optimal short entry points at high-volume bearish blocks.
Combined Strategies
Order Block Stacking: Multiple aligned blocks create stronger support/resistance zones.
Block Mitigation: When price breaks through a block, it often indicates a strong trend continuation.
Volume Profile Applications: Higher volume segments provide more precise entry and exit points.
🔶 SETTINGS
Customization Options
Order Block Detection:
Consolidation Lookback: Adjust the period for consolidation detection.
Breakout Threshold: Set minimum percentage for breakout confirmation.
Historical Lookback Limit: Control how far back to scan for historical order blocks.
Maximum Order Blocks: Limit the number of visible blocks on the chart.
Visual Style:
Grid Segments: Adjust the number of volume profile segments.
Extend Blocks to Right: Enable/disable extending blocks to current price.
Show Block Borders: Toggle border visibility.
Border Width: Adjust thickness of block borders.
Show Volume Text: Enable/disable volume labels.
Volume Text Position: Control placement of volume labels.
Color Settings:
Bullish High/Low Volume Colors: Customize appearance of bullish blocks.
Bearish High/Low Volume Colors: Customize appearance of bearish blocks.
Border Color: Set color for block outlines.
Background Fill: Adjust color and transparency of block backgrounds.
Volume Text Color: Customize label appearance.
Screener Table:
Show Screener Table: Toggle table visibility.
Table Position: Select positioning on the chart.
Table Size: Adjust display size.
The Order Block Matrix indicator provides traders with powerful insights into market structure, helping to identify key levels where smart money is active and where high-probability trading opportunities may exist.
OBV by readCrypto
-------------------------------------
OBV is used as a leading indicator to predict stock price movements by measuring changes in trading volume.
Reflecting the cumulative value of trading volume,
- When the price rises, if the trading volume increases, OBV rises,
- When the price falls, if the trading volume decreases, OBV falls.
Therefore, the movement of the OBV indicator must be checked along with the price movement, and it has the disadvantage of being unreliable for coins (tokens) with low trading volume.
---------------------------------------
(First interpretation method)
By adding a signal line for the OBV indicator,
- If the OBV indicator moves above the signal line, it is likely to show an upward trend,
- If the OBV indicator moves beyond the signal line, it is likely to show a downward trend.
This interpretation method is difficult to use in actual trading strategies because the OBV indicator often moves up and down repeatedly based on the signal line.
Therefore, it is recommended to use this interpretation method as reference when analyzing charts.
-------------------------------
(Second interpretation method)
Draw support and resistance lines based on the high and low points of the OBV indicator
- If the OBV indicator breaks through the previous high point, it is likely to show an upward trend,
- If the OBV indicator breaks through the previous low point, it is likely to show a downward trend.
This interpretation method is a bit more reliable than the first interpretation method, but it has the disadvantage of having to consider support and resistance lines separately based on the high and low points.
-
To compensate for this, a High line for the high point and a Low line for the low point were added.
- If the OBV indicator shows an upward breakout of each line (Low, HL2, High), the price is likely to rise,
- If the OBV indicator shows a downward breakout of each line (Low, HL2, High), the price is likely to fall.
-
Also, the Low and High lines can be interpreted like Bollinger Bands.
That is, if the Low and High lines show a contraction, the price is likely to move sideways, and if they show an expansion, the price is likely to show a trend.
Therefore, if the High line breaks upward in a contracted state,
- It is likely to show an upward trend,
- If the Low line breaks downward, it is likely to show a downward trend.
In an expanded state, you should focus on finding the point to realize profits rather than conducting new transactions.
--------------------------------
It is not easy to interpret the change in actual transaction volume and use it to create a trading strategy.
In particular, it is more difficult in the coin market where multiple exchanges are linked to show movements for one coin (token).
Therefore, the coin market is actively conducting transactions without referring to trading volume at all by following trends.
However, I think that if you interpret the change in trading volume and use it to find a trading point, it can help you find a more accurate trading point.
In that sense, I think that an indicator that adds the High and Low lines of the OBV indicator can be used as meaningful reference material.
-----------------------------------------------------------------
-------------------------------------
OBV는 거래량의 변화를 측정하여 주가 움직임을 예측하는 선행 지표로 활용됩니다.
거래량의 누적값을 반영하여
- 가격이 상승할 때 거래량이 증가면 OBV가 상승하고,
- 가격이 하락할 때 거래량이 줄면 OBV가 하락하게 됩니다.
따라서, 가격의 움직임과 함께 OBV 지표의 움직임을 확인하여야 하고 거래량이 적은 코인(토큰)에서는 신뢰성이 떨어지는 단점도 가지고 있습니다.
---------------------------------------
(첫번째 해석 방법)
OBV 지표에 대한 Signal선을 추가하여
- OBV 지표가 Signal선 이상에서 이동하게 되면 상승세를 보일 가능성이 높고,
- OBV 지표가 Signal선 이항에서 이동하게 되면 하락세를 보일 가능성이 높습니다.
이러한 해석 방법은 Signal선을 기준으로 OBV 지표가 반복적으로 위아래로 움직임을 보이는 경우가 많기 때문에 실제 거래 전략에 활용되기가 어려운 면이 있습니다.
따라서, 이러한 해설 방법은 차트 분석을 할 때 참고 자료로 활용하는 것이 좋습니다.
-------------------------------
(두번째 해석 방법)
OBV 지표의 고점과 저점을 기준하여 지지와 저항선을 그려
- OBV 지표가 이전 고점을 상향 돌파하면 상승세를 보일 가능성이 높고,
- OBV 지표가 이전 저점을 하향 돌파하면 하락세를 보일 가능성이 높습니다.
이러한 해석 방법은 첫번째 해석 방법보다 좀 더 신뢰성이 있는 방법이지만, 고점과 저점을 기준으로 지지와 저항선을 나누어 생각해야 하는 단점이 있습니다.
-
이를 보완하고자 고점에 대한 High선과 저점에 대한 Low선을 추가하였습니다.
- OBV 지표가 각 선(Low, HL2, High)을 상향 돌파하는 모습을 보이면 가격이 상승할 가능성이 높고,
- OBV 지표가 각 선(Low, HL2, High)을 하향 돌파하는 모습을 보이면 가격이 하락할 가능성이 높습니다.
-
또한, Low선과 High선을 볼린저밴드와 같이 해석할 수 있습니다.
즉, Low선과 High선이 수축하는 모습을 보이면 가격은 횡보할 가능성이 높고, 확장하는 모습을 보이면 가격은 추세를 나타낼 가능성이 높습니다.
따라서, 수축한 상태에서
- High선을 상향 돌파하게 되면 상승세를 나타낼 가능성이 높고,
- Low선을 하향 돌파하게 되면 하락세를 나타낼 가능성이 높습니다.
확장된 상태에서는 신규 거래를 진행하기 보다 수익 실현할 시점을 찾는데 집중해야 합니다.
--------------------------------
실제 거래량의 변화를 해석하여 거래 전략을 만드는데 활용하기가 쉽지 않습니다.
특히, 하나의 코인(토큰)에 대해서 여러 개의 거래소가 연동되어 움직임을 나타내는 코인 시장에서는 더욱 어려움이 있습니다.
따라서, 코인 시장은 추세 추종으로 아예 거래량을 참고하지 않고 거래를 진행하는 방법이 활성화되어 있기도 합니다.
하지만, 거래량의 변화를 해석하여 거래 시점을 찾는데 활용한다면 보다 정확한 거래 시점을 찾는데 도움을 받을 수 있다고 생각합니다.
그러한 의미에서 OBV 지표의 High선과 Low선을 추가한 지표가 의미 있는 참고 자료로 활용될 수 있다고 생각합니다.
-------------------------------------------------------------------
Enhanced Volume Trend Indicator with BB SqueezeEnhanced Volume Trend Indicator with BB Squeeze: Comprehensive Explanation
The visualization system allows traders to quickly scan multiple securities to identify high-probability setups without detailed analysis of each chart. The progression from squeeze to breakout, supported by volume trend confirmation, offers a systematic approach to identifying trading opportunities.
The script combines multiple technical analysis approaches into a comprehensive dashboard that helps traders make informed decisions by identifying high-probability setups while filtering out noise through its sophisticated confirmation requirements. It combines multiple technical analysis approaches into an integrated visual system that helps traders identify potential trading opportunities while filtering out false signals.
Core Features
1. Volume Analysis Dashboard
The indicator displays various volume-related metrics in customizable tables:
AVOL (After Hours + Pre-Market Volume): Shows extended hours volume as a percentage of the 21-day average volume with color coding for buying/selling pressure. Green indicates buying pressure and red indicates selling pressure.
Volume Metrics: Includes regular volume (VOL), dollar volume ($VOL), relative volume compared to 21-day average (RVOL), and relative volume compared to 90-day average (RVOL90D).
Pre-Market Data: Optional display of pre-market volume (PVOL), pre-market dollar volume (P$VOL), pre-market relative volume (PRVOL), and pre-market price change percentage (PCHG%).
2. Enhanced Volume Trend (VTR) Analysis
The Volume Trend indicator uses adaptive analysis to evaluate buying and selling pressure, combining multiple factors:
MACD (Moving Average Convergence Divergence) components
Volume-to-SMA (Simple Moving Average) ratio
Price direction and market conditions
Volume change rates and momentum
EMA (Exponential Moving Average) alignment and crossovers
Volatility filtering
VTR Visual Indicators
The VTR score ranges from 0-100, with values above 50 indicating bullish conditions and below 50 indicating bearish conditions. This is visually represented by colored circles:
"●" (Filled Circle):
Green: Strong bullish trend (VTR ≥ 80)
Red: Strong bearish trend (VTR ≤ 20)
"◯" (Hollow Circle):
Green: Moderate bullish trend (VTR 65-79)
Red: Moderate bearish trend (VTR 21-35)
"·" (Small Dot):
Green: Weak bullish trend (VTR 55-64)
Red: Weak bearish trend (VTR 36-45)
"○" (Medium Hollow Circle): Neutral conditions (VTR 46-54), shown in gray
In "Both" display mode, the VTR shows both the numerical score (0-100) alongside the appropriate circle symbol.
Enhanced VTR Settings
The Enhanced Volume Trend component offers several advanced customization options:
Adaptive Volume Analysis (volTrendAdaptive):
When enabled, dynamically adjusts volume thresholds based on recent market volatility
Higher volatility periods require proportionally higher volume to generate significant signals
Helps prevent false signals during highly volatile markets
Keep enabled for most trading conditions, especially in volatile markets
Speed of Change Weight (volTrendSpeedWeight, range 0-1):
Controls emphasis on volume acceleration/deceleration rather than absolute levels
Higher values (0.7-1.0): More responsive to new volume trends, better for momentum trading
Lower values (0.2-0.5): Less responsive, better for trend following
Helps identify early volume trends before they fully develop
Momentum Period (volTrendMomentumPeriod, range 2-10):
Defines lookback period for volume change rate calculations
Lower values (2-3): More responsive to recent changes, better for short timeframes
Higher values (7-10): Smoother, better for daily/weekly charts
Directly affects how quickly the indicator responds to new volume patterns
Volatility Filter (volTrendVolatilityFilter):
Adjusts significance of volume by factoring in current price volatility
High volume during high volatility receives less weight
High volume during low volatility receives more weight
Helps distinguish between genuine volume-driven moves and volatility-driven moves
EMA Alignment Weight (volTrendEmaWeight, range 0-1):
Controls importance of EMA alignments in final VTR calculation
Analyzes multiple EMA relationships (5, 10, 21 period)
Higher values (0.7-1.0): Greater emphasis on trend structure
Lower values (0.2-0.5): More focus on pure volume patterns
Display Mode (volTrendDisplayMode):
"Value": Shows only numerical score (0-100)
"Strength": Shows only symbolic representation
"Both": Shows numerical score and symbol together
3. Bollinger Band Squeeze Detection (SQZ)
The BB Squeeze indicator identifies periods of low volatility when Bollinger Bands contract inside Keltner Channels, often preceding significant price movements.
SQZ Visual Indicators
"●" (Filled Circle): Strong squeeze - high probability setup for an impending breakout
Green: Strong squeeze with bullish bias (likely upward breakout)
Red: Strong squeeze with bearish bias (likely downward breakout)
Orange: Strong squeeze with unclear direction
"◯" (Hollow Circle): Moderate squeeze - medium probability setup
Green: With bullish EMA alignment
Red: With bearish EMA alignment
Orange: Without clear directional bias
"-" (Dash): Gray dash indicates no squeeze condition (normal volatility)
The script identifies squeeze conditions through multiple methods:
Bollinger Bands contracting inside Keltner Channels
BB width falling to bottom 20% of recent range (BB width percentile)
Very narrow Keltner Channel (less than 5% of basis price)
Tracking squeeze duration in consecutive bars
Different squeeze strengths are detected:
Strong Squeeze: BB inside KC with tight BB width and narrow KC
Moderate Squeeze: BB inside KC with either tight BB width or narrow KC
No Squeeze: Normal market conditions
4. Breakout Detection System
The script includes two breakout indicators working in sequence:
4.1 Pre-Breakout (PBK) Indicator
Detects potential upcoming breakouts by analyzing multiple factors:
Squeeze conditions lasting 2-3 bars or more
Significant price ranges
Strong volume confirmation
EMA/MACD crossovers
Consistent price direction
PBK Visual Indicators
"●" (Filled Circle): Detected pre-breakout condition
Green: Likely upward breakout (bullish)
Red: Likely downward breakout (bearish)
Orange: Direction not yet clear, but breakout likely
"-" (Dash): Gray dash indicates no pre-breakout condition
The PBK uses sophisticated conditions to reduce false signals including minimum squeeze length, significant price movement, and technical confirmations.
4.2 Breakout (BK) Indicator
Confirms actual breakouts in progress by identifying:
End of squeeze or strong expansion of Bollinger Bands
Volume expansion
Price moving outside Bollinger Bands
EMA crossovers with volume confirmation
MACD crossovers with significant price range
BK Visual Indicators
"●" (Filled Circle): Confirmed breakout in progress
Green: Upward breakout (bullish)
Red: Downward breakout (bearish)
Orange: Unusual breakout pattern without clear direction
"◆" (Diamond): Special breakout conditions (meets some but not all criteria)
"-" (Dash): Gray dash indicates no breakout detected
The BK indicator uses advanced filters for confirmation:
Requires consecutive breakout signals to reduce false positives
Strong volume confirmation requirements (40% above average)
Significant price movement thresholds
Consistency checks between price action and indicators
5. Market Metrics and Analysis
Price Change Percentage (CHG%)
Displays the current percentage change relative to the previous day's close, color-coded green for positive changes and red for negative changes.
Average Daily Range (ADR%)
Calculates the average daily percentage range over a specified period (default 20 days), helping traders gauge volatility and set appropriate price targets.
Average True Range (ATR)
Shows the Average True Range value, a volatility indicator developed by J. Welles Wilder that measures market volatility by decomposing the entire range of an asset price for that period.
Relative Strength Index (RSI)
Displays the standard 14-period RSI, a momentum oscillator that measures the speed and change of price movements on a scale from 0 to 100.
6. External Market Indicators
QQQ Change
Shows the percentage change in the Invesco QQQ Trust (tracking the Nasdaq-100 Index), useful for understanding broader tech market trends.
UVIX Change
Displays the percentage change in UVIX, a volatility index, providing insight into market fear and potential hedging activity.
BTC-USD
Shows the current Bitcoin price from Coinbase, useful for traders monitoring crypto correlation with equities.
Market Breadth (BRD)
Calculates the percentage difference between ATHI.US and ATLO.US (high vs. low securities), indicating overall market direction and strength.
7. Session Analysis and Volume Direction
Session Detection
The script accurately identifies different market sessions:
Pre-market: 4:00 AM to 9:30 AM
Regular market: 9:30 AM to 4:00 PM
After-hours: 4:00 PM to 8:00 PM
Closed: Outside trading hours
This detection works on any timeframe through careful calculation of current time in seconds.
Buy/Sell Volume Direction
The script analyzes buying and selling pressure by:
Counting up volume when close > open
Counting down volume when close < open
Tracking accumulated volume within the day
Calculating intraday pressure (up volume minus down volume)
Enhanced AVOL Calculation
The improved AVOL calculation works in all timeframes by:
Estimating typical pre-market and after-hours volume percentages
Combining yesterday's after-hours with today's pre-market volume
Calculating this as a percentage of the 21-day average volume
Determining buying/selling pressure by analyzing after-hours and pre-market price changes
Color-coding results: green for buying pressure, red for selling pressure
This calculation is particularly valuable because it works consistently across any timeframe.
Customization Options
Display Settings
The dashboard has two customizable tables: Volume Table and Metrics Table, with positions selectable as bottom_left or bottom_right.
All metrics can be individually toggled on/off:
Pre-market data (PVOL, P$VOL, PRVOL, PCHG%)
Volume data (AVOL, RVOL Day, RVOL 90D, Volume, SEED_YASHALGO_NSE_BREADTH:VOLUME )
Price metrics (ADR%, ATR, RSI, Price Change%)
Market indicators (QQQ, UVIX, Breadth, BTC-USD)
Analysis indicators (Volume Trend, BB Squeeze, Pre-Breakout, Breakout)
These toggle options allow traders to customize the dashboard to show only the metrics they find most valuable for their trading style.
Table and Text Customization
The dashboard's appearance can be customized:
Table background color via tableBgColor
Text color (White or Black) via textColorOption
The indicator uses smart formatting for volume and price values, automatically adding appropriate suffixes (K, M, B) for readability.
MACD Configuration for VTR
The Volume Trend calculation incorporates MACD with customizable parameters:
Fast Length: Controls the period for the fast EMA (default 3)
Slow Length: Controls the period for the slow EMA (default 9)
Signal Length: Controls the period for the signal line EMA (default 5)
MACD Weight: Controls how much influence MACD has on the volume trend score (default 0.3)
These settings allow traders to fine-tune how momentum is factored into the volume trend analysis.
Bollinger Bands and Keltner Channel Settings
The Bollinger Bands and Keltner Channels used for squeeze detection have preset (hidden) parameters:
BB Length: 20 periods
BB Multiplier: 2.0 standard deviations
Keltner Length: 20 periods
Keltner Multiplier: 1.5 ATR
These settings follow standard practice for squeeze detection while maintaining simplicity in the user interface.
Practical Trading Applications
Complete Trading Strategies
1. Squeeze Breakout Strategy
This strategy combines multiple components of the indicator:
Wait for a strong squeeze (SQZ showing ●)
Look for pre-breakout confirmation (PBK showing ● in green or red)
Enter when breakout is confirmed (BK showing ● in same direction)
Use VTR to confirm volume supports the move (VTR ≥ 65 for bullish or ≤ 35 for bearish)
Set profit targets based on ADR (Average Daily Range)
Exit when VTR begins to weaken or changes direction
2. Volume Divergence Strategy
This strategy focuses on the volume trend relative to price:
Identify when price makes a new high but VTR fails to confirm (divergence)
Look for VTR to show weakening trend (● changing to ◯ or ·)
Prepare for potential reversal when SQZ begins to form
Enter counter-trend position when PBK confirms reversal direction
Use external indicators (QQQ, BTC, Breadth) to confirm broader market support
3. Pre-Market Edge Strategy
This strategy leverages pre-market data:
Monitor AVOL for unusual pre-market activity (significantly above 100%)
Check pre-market price change direction (PCHG%)
Enter position at market open if VTR confirms direction
Use SQZ to determine if volatility is likely to expand
Exit based on RVOL declining or price reaching +/- ADR for the day
Market Context Integration
The indicator provides valuable context for trading decisions:
QQQ change shows tech market direction
BTC price shows crypto market correlation
UVIX change indicates volatility expectations
Breadth measurement shows market internals
This context helps traders avoid fighting the broader market and align trades with overall market direction.
Timeframe Optimization
The indicator is designed to work across different timeframes:
For day trading: Focus on AVOL, VTR, PBK/BK, and use shorter momentum periods
For swing trading: Focus on SQZ duration, VTR strength, and broader market indicators
For position trading: Focus on larger VTR trends and use EMA alignment weight
Advanced Analytical Components
Enhanced Volume Trend Score Calculation
The VTR score calculation is sophisticated, with the base score starting at 50 and adjusting for:
Price direction (up/down)
Volume relative to average (high/normal/low)
Volume acceleration/deceleration
Market conditions (bull/bear)
Additional factors are then applied, including:
MACD influence weighted by strength and direction
Volume change rate influence (speed)
Price/volume divergence effects
EMA alignment scores
Volatility adjustments
Breakout strength factors
Price action confirmations
The final score is clamped between 0-100, with values above 50 indicating bullish conditions and below 50 indicating bearish conditions.
Anti-False Signal Filters
The indicator employs multiple techniques to reduce false signals:
Requiring significant price range (minimum percentage movement)
Demanding strong volume confirmation (significantly above average)
Checking for consistent direction across multiple indicators
Requiring prior bar consistency (consecutive bars moving in same direction)
Counting consecutive signals to filter out noise
These filters help eliminate noise and focus on high-probability setups.
MACD Enhancement and Integration
The indicator enhances standard MACD analysis:
Calculating MACD relative strength compared to recent history
Normalizing MACD slope relative to volatility
Detecting MACD acceleration for stronger signals
Integrating MACD crossovers with other confirmation factors
EMA Analysis System
The indicator uses a comprehensive EMA analysis system:
Calculating multiple EMAs (5, 10, 21 periods)
Detecting golden cross (10 EMA crosses above 21 EMA)
Detecting death cross (10 EMA crosses below 21 EMA)
Assessing price position relative to EMAs
Measuring EMA separation percentage
Recent Enhancements and Evolution
Version 5.2 includes several improvements:
Enhanced AVOL to show buying/selling direction through color coding
Improved VTR with adaptive analysis based on market conditions
AVOL display now works in all timeframes through sophisticated estimation
Removed animal symbols and streamlined code with bright colors for better visibility
Improved anti-false signal filters throughout the system
Optimizing Indicator Settings
For Different Market Types
Range-Bound Markets:
Lower EMA Alignment Weight (0.2-0.4)
Higher Speed of Change Weight (0.8-1.0)
Focus on SQZ and PBK signals for breakout potential
Trending Markets:
Higher EMA Alignment Weight (0.7-1.0)
Moderate Speed of Change Weight (0.4-0.6)
Focus on VTR strength and BK confirmations
Volatile Markets:
Enable Volatility Filter
Enable Adaptive Volume Analysis
Lower Momentum Period (2-3)
Focus on strong volume confirmation (VTR ≥ 80 or ≤ 20)
For Different Asset Classes
Equities:
Standard settings work well
Pay attention to AVOL for gap potential
Monitor QQQ correlation
Futures:
Consider higher Volume/RVOL weight
Reduce MACD weight slightly
Pay close attention to SQZ duration
Crypto:
Higher volatility thresholds may be needed
Monitor BTC price for correlation
Focus on stronger confirmation signals
Integrated Visual System for Trading Decisions
The colored circle indicators create an intuitive visual system for quick market assessment:
Progression Sequence: SQZ (Squeeze) → PBK (Pre-Breakout) → BK (Breakout)
This sequence often occurs in order, with the squeeze leading to pre-breakout conditions, followed by an actual breakout.
VTR (Volume Trend): Provides context about the volume supporting these movements.
Color Coding: Green for bullish conditions, red for bearish conditions, and orange/gray for neutral or undefined conditions.
Supply Contraction IndicatorATR 14 decreasing in conjunction with 20MA volume, Supply contracting due to lessening volatility combined with lessening average volume.
FVG + OB + RSI Divergence + Volume Spikes🧠 FVG + OB + RSI Divergence + Volume Spikes – Market Structure Confluence Tool
This all-in-one indicator brings together four powerful market concepts into a single script designed to help traders identify high-probability trade setups with precision and clarity:
🔍 What It Does
✅ Fair Value Gaps (FVG)
Highlights inefficiencies in price action, showing where the market may return to “rebalance.”
✅ Order Blocks (OB)
Marks key institutional footprints — bullish and bearish order blocks based on engulfing candle structures.
✅ RSI Divergence
Detects both bullish and bearish divergences between price and RSI, signaling potential reversals.
✅ Volume Spikes
Flags bars where volume significantly exceeds the average — a common footprint of smart money.
🎯 How to Use
Use this tool to spot confluences between price inefficiencies (FVG), key reversal zones (OB), momentum shifts (RSI Divergence), and institutional interest (Volume Spikes). The best setups often occur when multiple signals align — especially at key support/resistance or trend zones.
⚙️ Inputs
RSI length (for divergence)
Volume spike sensitivity (multiplier)
Lookback for Order Blocks and FVGs
⚠️ Notes
This is a non-repainting tool.
Ideal for price action, SMC, ICT, and order flow traders.
Combine with your existing strategy and higher time frame bias for best results.
Harmony in Havoc - The Entropy of VoVix Harmony in Havoc – The Entropy of VoVix
There are moments in the market when chaos and order are not opposites, but partners in a dance.
Harmony in Havoc is not just an indicator—it’s a window into that dance.
Most tools try to tame the market by smoothing it, boxing it in, or chasing after what’s already happened. This script does the opposite: it listens for the music beneath the noise, the rare moments when volatility and unpredictability align, and the market’s next movement is about to begin.
What is Harmony in Havoc?
VoVix Spike:
The pulse of volatility-of-volatility. Not just how much the market is moving, but how violently its own heartbeat is changing.
Entropy:
A real-time measure of surprise. When entropy is high, the market is not just moving—it’s breaking its own patterns, rewriting its own rules.
Progression Bar & Status:
The yellow bar is your visual gauge of tension. As it fills, the market is winding up.
Wait: The world is calm.
Get ready!: The storm is building.
Take Action!!: The probability of a regime eruption is at its peak.
Yellow Background:
When the background glows, the market is at its most unstable—this is not a buy or sell signal, but a quant alert: the next chapter is about to be written.
How does it work?
Every tick, Harmony in Havoc measures the distance between the market’s current volatility and its own unpredictability.
When the VoVix spike approaches or exceeds the entropy threshold, the system knows:
“ This is the moment when the improbable becomes possible. ”
Why is this different?
It doesn’t tell you what to do.
It doesn’t chase price.
It doesn’t care about trends, bands, or the past.
Instead, it gives you a quantitative sense of anticipation—a way to see when the market is most likely to break from its own history, and when the edge is at its sharpest.
How to use it:
Watch for the yellow background and “ Take Action!! ” status.
Use it as a regime filter, a volatility dashboard, or a warning system for your own strategies.
Tune the inputs for your asset and timeframe—make it your own.
Inputs—explained for you:
VoVix Fast/Slow ATR & Stdev:
Control how sensitive the system is to volatility shocks. Lower = more signals, higher = only the rarest events.
Entropy Window & Bins:
Control how “surprised” the entropy engine is by current volatility. Shorter window = more responsive, more bins = finer detail.
Show/Hide Controls:
Toggle the VoVix spike, entropy line, and their glows to customize your visual experience.
Bottom line:
This is not a buy or sell script.
This is a quant regime detector for those who want to feel the market’s tension—to sense when harmony and havoc are about to collide.
Disclaimer:
Trading is risky. This script is for research and informational purposes only, not financial advice. Backtest, paper trade, and know your risk before going live. Past performance is not a guarantee of future results.
*I've only tested this on 1 and 5 min frames.
To TradingView mods and serious users:
This is not just another indicator. This is a quant instrument for the next era. If flagged, we’ll keep adapting and republishing until real quant tools get their place.
Use with discipline. Trade your edge.
— Dskyz, for DAFE Trading Systems
Smoothed Momentum Signal (15-Bar Window)Price up 12 out of 15 days
Price up 25% in 15 days
Volume up 25% in 15 Days
David Ryan Institutional Volume Parameters. Can be used as Entry and Exit Basis.
Zen FDAX Session📝 Description
OVERVIEW
The Zen FDAX Session indicator highlights periods outside the regular trading hours of the FDAX (DAX Futures) on the Xetra exchange. It shades the chart background during non-trading hours, aiding traders in distinguishing active market periods from inactive ones.
FUNCTIONALITY
Customizable Trading Hours: Users can define the session's start and end times in UTC, allowing flexibility to match personal trading schedules or account for daylight saving changes.
Visual Clarity: The indicator applies a subtle background color to non-trading hours, ensuring clear demarcation without obscuring price data.
Time Zone Awareness: Designed with UTC inputs to maintain consistency across different user time zones.
USAGE
Add the Indicator: Apply the "Zen FDAX Session" indicator to your chart.
Set Trading Hours: Input your desired session start and end times in UTC.
Interpret the Shading: Areas with shaded backgrounds represent times outside your defined trading session.
Note: This indicator does not generate buy/sell signals but serves as a visual aid to identify trading sessions.
High-Delta Candle HighlighterThis indicator highlights powerful candles that we are suppose to have a reaction from. Based on volume delta.
Mervin 2025 Predictive BOS Reversal DetectorObjective of the Script
To help traders predict and confirm market reversals using a combination of candlestick alignment, BOS logic, and trend strength indicators (CCI & ATR).
How the Script Works – Step-by-Step
Step 1: Detect Body Alignment Reversal
This step checks if the current candlestick is a potential reversal, defined as:
Opposite direction to the previous candle, and
Body alignment, meaning the previous close is nearly equal to the current open within a small tolerance.
✅ Conditions:
Bullish reversal: Previous candle is red (down), current candle is green (up).
Bearish reversal: Previous candle is green (up), current candle is red (down).
Aligned: abs(prevClose - currOpen) <= tolerance
If both alignment and reversal are detected:
A potential bullish BOS or potential bearish BOS is predicted.
📍 Displayed on Chart:
🔶 Orange triangle up = predicted bullish BOS
🔶 Orange triangle down = predicted bearish BOS
Step 2: Predict and Confirm Break of Structure (BOS)
Once a reversal is predicted, the script waits for a break above or below a key level from the previous candle:
Bullish BOS confirmed if the price breaks above the previous high.
Bearish BOS confirmed if the price breaks below the previous low.
📍 Displayed on Chart:
✅ Green label up = confirmed bullish BOS
❌ Red label down = confirmed bearish BOS
Step 3: Alerts
The script includes alerts that can be turned on in TradingView:
Predict Bullish BOS – potential long opportunity
Predict Bearish BOS – potential short opportunity
Confirmed BOS Bullish – confirmation to enter or add to a long
Confirmed BOS Bearish – confirmation to enter or add to a short
Step 4: Candle Strength and Forecast Bias Table
This section provides trend strength analysis using:
Candle strength: Percentage change from open to close
CCI (Commodity Channel Index): Detects trend direction and strength
ATR (Average True Range): Measures volatility
Bias Logic:
Buy: CCI is positive, increasing, and ATR is rising.
Sell: CCI is negative, decreasing, and ATR is rising.
Wait: No clear signal.
📍 Displayed on Chart:
A table in the top-right corner shows:
Candle strength and label (Bullish/Bearish)
Bias with color coding: ✅ Lime (Buy), ❌ Red (Sell), ⚪ Gray (Wait)
🛠️ Inputs You Can Customize
Input Name Description Default
Alignment Tolerance How closely previous close should match current open to consider aligned 0.01
Predict BOS within next N bars Number of bars to watch for BOS confirmation 2
CCI Length Period for CCI calculation 20
ATR Length Period for ATR calculation 14
🧭 Trading Strategy – Steps to Use
🔍 Step 1: Watch for BOS Prediction
Look for orange triangle up/down on the chart.
This is your heads-up for a potential reversal.
✅ Step 2: Wait for BOS Confirmation
Only trade if:
Price breaks above the high (for bullish) or below the low (for bearish) of the previous bar.
You’ll see green/red labels on the chart.
🛒 Step 3: Entry
Bullish Entry (Long):
After confirmed bullish BOS
Bias table shows "Buy"
Bearish Entry (Short):
After confirmed bearish BOS
Bias table shows "Sell"
🎯 Step 4: Stop Loss and Take Profit
Use ATR to gauge volatility and set stop loss.
Example: SL = Entry ± 1.5x ATR
Consider previous swing high/low for take profit levels.
🔔 Step 5: Set Alerts
Turn on alerts in TradingView to be notified of predictions and confirmations.
Approx. Footprint: Volume DeltaThis indicator brings you a simplified “footprint” view by charting the volume delta—the imbalance between bullish and bearish volume—alongside total bar volume.
Delta Bars: Green/red columns show where buyers (close > open) or sellers (close < open) dominated each bar.
Total Volume: Semi-transparent gray columns in the background give you overall context.
No Hidden Data: Works on any symbol/timeframe without tick-by-tick or bid/ask feeds.
Use it to quickly spot bars with strong buying or selling pressure, identify momentum shifts, and confirm breakouts or reversals—all within TradingView’s standard volume streams.
Money Flow Index + VWAP Trend FilterThis indicator combines the volume-weighted momentum analysis of the Money Flow Index (MFI) with the trend-filtering capabilities of the Volume Weighted Average Price (VWAP) to generate reliable buy and sell signals. By requiring MFI overbought/oversold conditions to align with the trend direction relative to VWAP, this indicator reduces false signals, making it ideal for trading on timeframes like 5-minute to 4-hour charts.
How It Works
The indicator uses two technical components to produce signals:
Money Flow Index (MFI) for Momentum Extremes:
The MFI, calculated over a default 14-period length, measures buying and selling pressure using price and volume data. A buy signal is triggered when MFI crosses above the oversold level (default: 20), indicating potential buying pressure, while a sell signal occurs when MFI crosses below the overbought level (default: 80), suggesting selling pressure.
Volume Weighted Average Price (VWAP) for Trend Direction:
The VWAP calculates the average price of an asset, weighted by volume, resetting at the start of each trading session (e.g., daily for stocks). It acts as a dynamic support/resistance level. A bullish trend is confirmed when the price is above the VWAP, and a bearish trend when the price is below the VWAP. This ensures MFI signals are filtered to align with the broader trend direction, plotted as a purple line on the chart.
Signal Generation
Signals are generated using the previous bar’s values to prevent repainting:
Buy Signal: The MFI crosses above the oversold level, and the price is above the VWAP (bullish trend). Displayed as a green upward triangle below the bar.
Sell Signal: The MFI crosses below the overbought level, and the price is below the VWAP (bearish trend). Displayed as a red downward triangle above the bar.
Hassan Zig ZagDisplay ZigZag with volume value. This will help to indicate the support and resistance levels based on the top and bottom created by the zigzag when the price is moving. also, the volume will support in taking decision to buy or sill
US Net Liquidity Tracker with Sentiment & OffsetU.S. Net Liquidity Tracker with Sentiment & Offset - Documentation
This document explains the rationale behind the Pine Script indicator "U.S. Net Liquidity Tracker with Sentiment & Offset" and why it provides an accurate representation of liquidity in the U.S. financial system.
The indicator leverages data from the Federal Reserve's Economic Data (FRED) to calculate net liquidity, offering traders and analysts a tool to assess market conditions influenced by monetary policy.
Purpose of the Indicator
The U.S. Net Liquidity Tracker is designed to measure the amount of liquidity available in the U.S. financial system by accounting for both liquidity injections and drains. Liquidity is a critical factor in financial markets: high liquidity often supports rising asset prices, while low liquidity can signal potential market downturns. This indicator helps users anticipate market trends by providing a clear, data-driven view of net liquidity dynamics.
! raw.githubusercontent.com
Rationale Behind the Indicator
What is U.S. Net Liquidity?
Net liquidity represents the money available in the financial system after subtracting liquidity-draining factors from the total liquidity provided by the Federal Reserve. The indicator calculates this by combining key data points that reflect both the creation and removal of liquidity.
Data Sources
The indicator uses the following FRED datasets:
Fed Balance Sheet (WALCL): Total assets held by the Federal Reserve, including securities from quantitative easing (QE). An expanding balance sheet adds liquidity, while a shrinking one (quantitative tightening, QT) reduces it.
Treasury General Account (WTREGEN): The U.S. Treasury’s cash balance at the Fed. A high balance drains liquidity, while spending releases it into the system.
Overnight Reverse Repurchase Agreements (RRPONTSYD): Short-term operations where the Fed borrows cash from institutions, temporarily reducing available liquidity.
Earnings Remittances (RESPPLLOPNWW): Payments from the Fed to the Treasury, which remove liquidity from circulation.
These components are chosen because they collectively represent the primary sources and drains of liquidity in the U.S. economy, providing a comprehensive view of net liquidity.
Calculation
The core formula for net liquidity is:
global_balance = fed_balance - us_tga_balance - overnight_rrp_balance - earnings_remittances_balance
fed_balance: Total Fed assets (WALCL).
us_tga_balance: Treasury General Account (WTREGEN).
overnight_rrp_balance: Reverse repo operations (RRPONTSYD).
earnings_remittances_balance: Fed remittances to Treasury (RESPPLLOPNWW).
This subtraction isolates the liquidity remaining after accounting for major drains, offering a net perspective on funds available to influence markets.
Additional Features
Smoothing: A Simple Moving Average (SMA) is applied to the net liquidity value to reduce noise and emphasize longer-term trends.
Sentiment Coloring: An Exponential Moving Average (EMA) determines market sentiment:
Bullish (Green): Smoothed liquidity is above the EMA, indicating improving liquidity conditions.
Bearish (Red): Smoothed liquidity is below the EMA, signaling deteriorating conditions.
Offset: Users can shift the liquidity plot forward or backward in time to align it with market data (e.g., S&P 500) for correlation analysis.
Rate of Change (ROC): A plot of the Fed balance sheet’s ROC highlights the pace of monetary policy shifts.
Why This is an Accurate Picture of U.S. Liquidity
The indicator accurately reflects U.S. liquidity for several reasons:
Comprehensive Data:
It incorporates all major liquidity-affecting factors: the Fed’s balance sheet (source) and TGA, reverse repos, and remittances (drains). This holistic approach ensures no significant component is overlooked.
Real-Time Insights:
By pulling data directly from FRED, the indicator reflects current economic conditions, making it relevant for timely decision-making.
Customizability:
Features like toggling components, adjusting smoothing periods, and offsetting the plot allow users to tailor the indicator to their specific analytical needs, enhancing its practical accuracy.
Visual Clarity:
Sentiment coloring and the ROC plot provide intuitive cues about liquidity trends and monetary policy impacts, making complex data actionable.
Conclusion
The "U.S. Net Liquidity Tracker with Sentiment & Offset" is a robust tool for understanding liquidity dynamics in the U.S. financial system. By combining key FRED datasets into a net liquidity calculation, smoothing the results, and adding sentiment and offset features, it delivers an accurate and user-friendly picture of liquidity. This makes it invaluable for traders and analysts seeking to correlate liquidity with market movements and anticipate economic shifts.
Source Code
The source code for this indicator is available on GitHub: ebasurtop/Macro
Disclaimer
All codes and indicators provided by Enrique Basurto are 100% free and open for public use. If you find this work valuable, please consider donating to The Brain Foundation through the Autism Research Coalition to support critical translational research for individuals with autism.
Your contributions help fund vital research initiatives.
Donation Link: Autism Research Coalition
Follow Enrique Basurto on X: @EnriqueBasurto