Skip to main content
Orderflows Divergence is a composite divergence indicator that analyzes multiple order flow dimensions simultaneously before generating a signal. Rather than relying on a single metric like delta or CVD, it examines the structural relationship between price extremes and the underlying order flow data, producing higher-conviction signals at the cost of lower frequency.

How It Works

The indicator identifies structural price extremes (swing highs and swing lows) and then evaluates whether the underlying order flow metrics confirm or contradict the price move. A divergence is flagged only when price makes a new extreme but multiple order flow factors fail to support it.

Multi-Factor Analysis

The algorithm evaluates several order flow dimensions at each price swing:
  • Delta trend: Is the net delta at the new extreme weaker than at the previous extreme?
  • Volume characteristics: Does the volume profile at the new swing suggest genuine participation or thin-liquidity overshoot?
  • Trade distribution: Are the trades concentrated or dispersed across price levels?
  • Composite scoring: All factors are combined into a single divergence score. Only when the composite score exceeds an internal threshold is the signal generated.
This multi-factor approach filters out the many false divergences that single-metric indicators produce, especially in choppy or range-bound markets.

Signal Types

SignalPrice ActionOrder FlowInterpretation
Bearish divergenceHigher highOrder flow metrics weaker at the new highRally is losing structural support. Multiple dimensions of buying pressure are declining.
Bullish divergenceLower lowOrder flow metrics weaker at the new lowDecline is losing structural support. Multiple dimensions of selling pressure are declining.
Because multiple factors must align, Orderflows Divergence signals tend to appear at more significant turning points than single-metric divergences.

Settings

Detection Parameters

ParameterDescriptionDefault
lookbackPeriodNumber of bars scanned for swing point detection. Larger values detect longer-term structural divergences.50
localExtremumPeriodNumber of bars on each side required to confirm a swing high or low. Higher values demand more established price pivots.3
minDistanceBetweenSignalsMinimum number of bars between two divergence signals. Prevents signal clustering in volatile conditions.5
minDistanceFromPreviousExtremumMinimum number of bars between two swing points used in a divergence comparison. Ensures the divergence spans a meaningful price structure.2
priceTolerancePctPrice tolerance percentage for determining whether a new extreme exceeds the previous one. A value of 0.1 means price must exceed the prior swing by at least 0.1% to qualify as a new extreme.0.1
The lookbackPeriod of 50 bars (default) is intentionally larger than the default for Delta Divergence (20) or CVD Divergence (20). This reflects the structural nature of Orderflows Divergence — it is designed to catch significant swing points, not minor fluctuations.

Visual Settings

ParameterDescriptionDefault
showLinesDraw connecting lines between the two swing points that form the divergence.true
lineThicknessWidth of the divergence connecting lines in pixels.1
symbolSizeSize of the divergence marker symbol in pixels.10
bullishColorColor for bullish divergence markers and lines.#22c55e
bearishColorColor for bearish divergence markers and lines.#ef4444

Alert Rules

EventFires When
new_divergenceA new multi-factor divergence is confirmed. The alert includes the direction, the price level of both swing points, and the bar timestamp.
Orderflows Divergence alerts fire less frequently than single-metric divergence alerts, making them suitable for notification-based workflows where you want to be alerted only to high-conviction setups.

Comparison with Other Divergence Indicators

Cluster Terminal includes three divergence indicators. Each serves a different purpose:
AspectDelta DivergenceCVD DivergenceOrderflows Divergence
InputSingle candle delta vs. priceCumulative delta vs. priceMultiple order flow factors vs. price
ScopeOne barMulti-bar trendMulti-bar structure
Signal frequencyHighMediumLow
False positive rateHigherMediumLower
Best forTactical entry timingTrend exhaustionStructural turning points
Confirmation delayMinimalModerate (fractal)Moderate (extremum + multi-factor)

When to Use Which

  • Scalping: Delta Divergence for quick entry signals at known levels.
  • Intraday swing: CVD Divergence for identifying when intraday trends are losing steam.
  • Swing / position: Orderflows Divergence for high-conviction structural reversals.
All three can be enabled simultaneously. When they all agree at the same price level, the confluence is exceptionally strong.

Practical Usage

Best Timeframes

TimeframeSuitabilityNotes
1m - 5mModerateSignals are rare due to multi-factor requirements. Use for confirmation only.
15m - 1hExcellentIdeal for intraday swing setups. Enough data for meaningful factor analysis.
4h - 1dExcellentStrong structural signals for multi-day position entries.

Confluence Setups

Orderflows Divergence produces the most reliable signals when it aligns with:
  • Established support/resistance: Divergence at a level that has been tested multiple times adds order flow evidence to a proven price level.
  • Volume Profile POC / Value Area: Divergence at the Point of Control or the boundary of the Value Area suggests that the market’s fair value assessment is shifting.
  • Absorption Alpha: When multi-factor divergence coincides with visible absorption at the swing point, institutional activity is confirmed from two independent angles.
  • Session levels: Divergence at the previous session high, low, or close carries additional weight because these levels are widely watched by market participants.

Parameter Tuning

  • Conservative (fewer signals, higher quality): Increase lookbackPeriod to 80, localExtremumPeriod to 5, and minDistanceBetweenSignals to 10. This configuration only fires at major structural turning points.
  • Moderate (balanced): Use defaults. Suitable for most intraday swing trading scenarios.
  • Aggressive (more signals): Reduce lookbackPeriod to 30, localExtremumPeriod to 2, and minDistanceBetweenSignals to 3. Produces more signals but with a higher noise ratio.
Orderflows Divergence is stronger than single-metric divergences because it requires agreement across multiple order flow dimensions. However, this also means it fires less often. Use it as a structural filter: when it signals, pay close attention. When it does not, rely on other indicators for tactical entries.