OPEN-SOURCE SCRIPT
Cập nhật

Order Flow: Structural Sniper [Profile + Signals]

136
Overview
This script is a comprehensive tool designed to bridge the gap between Market Structure and Order Flow analysis. It aims to eliminate the subjectivity of static support and resistance lines by focusing on dynamic liquidity and the behavior of aggressive versus passive market participants.
Unlike traditional indicators that plot static data, the Structural Delta Map dynamically anchors its analysis to the start of the current trend (Pivots), providing a clear "X-Ray" view of how volume was distributed during the current price swing.
How it Works
The indicator combines three distinct technical concepts into a single system:
1. Market Structure (Pivots):
It uses a pivot detection algorithm to identify significant Swing Highs and Swing Lows. This determines the market bias and anchors the analysis to the origin of the movement.
2. Anchored VWAP (Fair Price):
It automatically calculates the Volume Weighted Average Price (VWAP) starting from the last confirmed pivot. This yellow line acts as the "spine" of the trend, serving as dynamic institutional support/resistance.
3. Delta Profile & Heatmap:
A Volume Profile is plotted on the left side, anchored to the pivot.
Split Delta: Instead of a single color, bars are split into Green (Buying Volume) and Red (Selling Volume) based on price action estimation.
Heatmap Logic: The opacity of the bars adjusts automatically. Bright/Solid bars represent High Volume Nodes (HVN), while transparent bars represent Low Volume Nodes (LVN) or liquidity voids.
How to Use (Strategy)
The indicator provides both visual context and specific entry signals:
1. Visual Context:
Profile: Look for reactions at bright, wide bars (High Volume Nodes). These act as magnets or barriers.
Yellow Line (VWAP): In an uptrend, look for buy opportunities when price retraces to this line. In a downtrend, look for shorts on the retest.
2. Aggression Signals (Triangle "AGR"):
Type: Trend Continuation / Pullback.
Logic: Triggers when price retraces to the structural value zone (near VWAP), rejects it with higher-than-average volume, and closes in the direction of the trend.
3. Absorption Signals (Cross "ABS"):
Type: Reversal / Trap.
Logic:
Bullish Absorption: Price makes a new local low with high volume (selling pressure), but the candle closes bullish (leaving a long bottom wick). Passive buyers absorbed the aggression.
Bearish Absorption: Price makes a new local high with high volume, but closes bearish. Passive sellers absorbed the buying pressure.
Settings
Pivot Sensitivity: Adjusts how the script detects trend changes.
Profile Resolution: Controls the number of rows in the histogram.
Signal Filters: Enable/Disable signals and adjust the Volume Multiplier threshold.
Technical Disclaimer
This indicator estimates "Delta" (Buy vs. Sell volume) based on OHLC price action and bar volume, as Pine Script does not grant access to historical tick-by-tick data. While this approximation is highly effective for identifying aggression and absorption, it differs slightly from Level 2 footprint data found on platforms like Sierra Chart. Accuracy depends on the volume data provided by your exchange.
Phát hành các Ghi chú
This update fixes a critical Index out of bounds runtime error that caused the indicator to crash on certain assets.
Changes:
Fixed: Decoupled the array clearing logic for the Volume Profile drawing. The script now safely handles scenarios where the number of Buy nodes differs from Sell nodes, preventing array indexing errors.
Stability: The indicator is now stable across all timeframes and tickers.
Phát hành các Ghi chú
Bug fix
Phát hành các Ghi chú
Bug FIX
Phát hành các Ghi chú
Update

Pivot points

Flow volume

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.