OPEN-SOURCE SCRIPT

Orderflow Detector [OmegaTools]

9 185
Orderflow Detector is a multi-layered market microstructure and intrabar signal analysis indicator designed to highlight price-action events that are commonly associated with liquidity interaction, aggressive participation, and absorption behavior. It is built for traders who want a compact but information-dense framework to detect potential orderflow footprints directly on the chart while also monitoring a normalized delta-based resistance metric in a separate panel. The indicator combines event classification, lower-timeframe aggregation, directional volume imbalance analysis, and percentile-based contextual filters to provide a structured read of intraday activity without requiring a full depth-of-market interface.

The software is designed around the idea that certain recurring price and volume patterns can act as practical proxies for underlying orderflow dynamics. Instead of attempting to reconstruct the full order book, it detects and labels specific bar formations and liquidity interactions that often reflect phenomena such as hidden liquidity execution, stop runs, and passive absorption. These detections are then enhanced by lower-timeframe sampling and by a delta-versus-range efficiency model that classifies bars according to whether price moved with unusually low or unusually high resistance.

At the core of the indicator is a three-pattern detection engine that identifies Iceberg, Sweep, and Absorption conditions. Each signal is classified directionally and displayed directly on the chart with distinct symbols and vertical offsets, allowing the trader to quickly distinguish overlapping events and read them in context with the surrounding structure. The indicator can display all pattern families simultaneously or focus on one category at a time, which makes it suitable both for broad discretionary analysis and for targeted signal study during strategy development.

The Iceberg detection logic is designed to identify potential hidden-liquidity style behavior around repeated highs or lows combined with strong participation and breakout/return dynamics. The script evaluates repeated local extremes, elevated volume relative to recent conditions, and short-term structural expansion beyond recent highs or lows. It then classifies the event according to whether the behavior is more consistent with buying pressure overcoming sell-side resistance or selling pressure overcoming buy-side support. This creates an interpretable label that can be used to spot possible areas where latent liquidity was present and subsequently absorbed or overwhelmed.

The Sweep detection logic focuses on stop-run and reclaim behavior. It looks for price briefly moving beyond a recent local extreme and then closing back within the prior range under exceptionally strong volume conditions. This is intended to capture the kind of price action often associated with liquidity grabs, failed breakouts, and aggressive trapping dynamics. Direction is assigned based on whether the sweep occurs below recent lows with a recovery back above the broken area or above recent highs with a rejection back below the broken area. In practical use, these signals can be helpful for identifying potential exhaustion points, reversal zones, or confirmation events when used alongside broader trend and structure analysis.

The Absorption detection logic seeks to identify bars where participation is elevated but realized range remains relatively compressed, which can indicate passive liquidity absorbing aggressive flow. The script compares current volume and true range behavior to recent averages, then combines this with wick asymmetry and candle direction to infer whether absorption is more likely occurring on the offer side or bid side. This produces directional absorption labels that can help traders recognize situations where apparent aggression is not translating into efficient price movement, a condition that often precedes either continuation after re-accumulation or reversal after failed initiative.

A major strength of the indicator is its use of lower-timeframe aggregation through a configurable resolution input. Instead of relying exclusively on the chart’s current timeframe, the script evaluates the core event conditions on a selected lower timeframe and aggregates the resulting directional detections into the active bar. This allows the indicator to preserve intrabar signal sensitivity while remaining visually usable on higher chart timeframes. In practice, this means a trader can analyze a higher timeframe chart while still receiving information about micro-events that occurred inside each bar, improving context without cluttering the chart with excessive detail.

In addition to event labeling, the software computes a lower-timeframe directional volume imbalance model by separately aggregating up-bar volume and down-bar volume. From this it derives a delta estimate, then normalizes it using a rolling standard-deviation framework to produce a standardized delta intensity metric. This metric is displayed as a histogram and serves as a quantitative measure of how unusual the current directional participation is relative to recent conditions. The result is a more informative volume read than raw volume alone, since it incorporates directional pressure and statistical normalization.

The indicator goes further by combining normalized delta intensity with a custom range-efficiency model to estimate a resistance metric. This metric is designed to reflect how much directional participation was required to produce the observed bar movement. Conceptually, it provides a practical approximation of whether price traveled easily or encountered significant resistance. When the metric is unusually low, the bar may represent movement with relatively little resistance, while unusually high values may indicate strong opposition to directional flow. This is then contextualized using percentile thresholds over a rolling window, allowing the script to identify statistically extreme low-resistance and high-resistance conditions in a dynamic, instrument-adaptive manner.

The percentile-based box overlay system visually marks these resistance extremes directly on price bars. Bars classified as low-resistance can be extended forward with shaded boxes to highlight potential paths of least resistance, while high-resistance bars can be marked as zones where market opposition was comparatively strong. The user can choose to display only low-resistance zones, only high-resistance zones, both, or none. This feature is particularly useful for discretionary traders who want a visual map of bars that may act as reference zones for continuation, reaction, or retest behavior in subsequent price action.

The software includes a flexible visual configuration system that allows traders to tailor the display to their workflow. Users can choose which event families to display, whether to project low- or high-resistance boxes, what lower timeframe to use for intrabar aggregation, and which colors to assign to bullish and bearish detections. The result is an indicator that can be configured for minimalist chart annotation or more comprehensive orderflow-style monitoring depending on the user’s objectives.

The indicator’s chart annotations are intentionally separated by type and offset to preserve readability when multiple signals occur on the same bar. Iceberg events, Sweep events, and Absorption events each use distinct visual markers and are placed at different distances from the bar so that they remain legible even in high-activity conditions. This design is especially useful during fast intraday sessions where several market microstructure events may cluster in a short period.

The delta histogram panel complements the chart annotations by giving the trader a continuous quantitative read of participation intensity. The histogram is color-coded according to directional delta and normalized magnitude, making it easy to identify whether a bar’s directional participation is weak, moderate, or extreme. Reference thresholds are displayed to help frame interpretation and support rule-based usage in discretionary or semi-systematic trading processes.

Orderflow Detector [OmegaTools] is intended for advanced chart users, intraday discretionary traders, and system developers who want a practical bridge between pure price action and more specialized orderflow analysis. It is especially useful in environments where access to full order book tools is limited or where a trader wants a portable, chart-native framework for identifying liquidity interactions and directional participation anomalies. It can be used to support breakout confirmation, trap detection, reversal timing, trend continuation analysis, and contextual filtering for execution decisions.

As with any analytical indicator, this software should be used as part of a broader decision-making framework that includes market structure, risk management, and trade management discipline. The signals and resistance classifications are probabilistic interpretations of price and volume behavior, not direct observations of all market participants. When used correctly and in context, the indicator provides a robust and professional toolset for detecting and visualizing actionable orderflow-related behavior in real time on TradingView.

- Eros

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.