Skip to Content
ChartIndicatorsKyleLambda

KyleLambda

KyleLambda estimates how strongly a bar’s price responds to its delta (Kyle’s λ) and marks the bars with a large delta that moved noticeably less than expected (absorption) or more (vacuum). By default the indicator shows the absorption strength as columns; in the λ view it shows λ itself as a line.

The indicator is drawn in a separate area below the chart.

How to read it

  • An orange column up (absorption) — a bar with a large delta whose price moved in the delta’s direction less than it usually does with such a delta: passive orders absorbed the aggressor.
  • A blue column down (vacuum) — the price moved more than expected: there were no opposite orders.
  • A gray column — the absolute strength is below the threshold, an ordinary bar.
  • Bars without a column — the bar’s delta is not large, the strength was not computed.
  • The λ line rises (the λ view) — each unit of delta moves the price further: liquidity is getting thinner.

The dashed lines are the strength threshold above and below zero (Strength threshold, σ).

The legend under the cursor shows the bar’s class in its color (absorption, vacuum or within the threshold) and the strength; the bar’s price change in price steps and the change expected from the delta (“price … steps, expected …”); λ in price steps per 1000 units of delta.

The mechanics and examples are in the tutorial lesson Liquidity and market impact.

How it is calculated

  1. The bar’s price change is its close minus the previous bar’s close, in the symbol’s price steps. The first bar of the day has no change (the session boundary); such a bar and a bar without delta are left out.

  2. λ is the slope of the regression of the price change on the bar’s delta over exponentially weighted past bars: a bar Memory, bars old weighs half as much as the current one. λ is shown in price steps per 1000 units of delta.

  3. A bar’s delta is large if its absolute value is at least Large delta, σ standard deviations of the past bars’ delta. The strength is computed only for such bars:

    strength = −sign(delta) × (price change − λ × delta) / residual σ,

    where λ and the residual σ (the spread of the price change around the expected one) come from past bars, without the bar itself. A strength above zero means the price moved in the delta’s direction less than expected; below zero — more.

  4. An absolute strength of at least Strength threshold, σ colors the bar with Absorption or Vacuum, otherwise with Within the threshold. The threshold affects only the color, not the calculation.

Values appear after 20 bars with a price change. With Large delta, σ = 0 the strength is computed for every bar with a non-zero delta.

The indicator needs delta — trades with the aggressor side, as for the Delta indicator. Without delta the area stays empty.

Parameters

ParameterDescriptionDefault
ViewAbsorption strength — strength columns on the bars with a large delta; λ — the λ line.Absorption strength
Memory, barsThe half-life of the weights: a bar this old weighs half as much as the current one in the estimates of λ and the spread, from 10 to 1000.100
Large delta, σThe strength is computed on the bars whose absolute delta is at least so many standard deviations of the past bars’ delta, from 0 to 5 in steps of 0.25. At 2σ this is usually a few percent of the bars.2
Strength threshold, σAn absolute strength of at least the threshold marks the bar with the absorption or vacuum color, from 0.5 to 5 in steps of 0.25. On minute bars at 2σ — usually a few bars a day.2

Style

ParameterDescriptionDefault
AbsorptionThe price moved less than the delta predicts: passive orders absorbed the aggressor.Orange
VacuumThe price moved more than the delta predicts: there were no opposite orders.Blue
Within the thresholdAn absolute strength below the threshold; the threshold lines.Gray
λ line colorLine color in the λ view.Orange
λ line widthLine width in pixels in the λ view, from 1 to 5.1

You cannot place an alert line in the KyleLambda area.

How to add an indicator to the chart is described in Adding an indicator; how to change its parameters, on the Indicator manager page.

Last updated on