All indicators

Displacement

By LuxAlgoMar 6, 2026

Displacement is an indicator on Vela, our next-generation charting platform, written in Pine Script®.

Static chart image

Displacement flags the legs where the market jumps to a new price rather than negotiating: runs of one-directional closes whose travel dwarfs the recent tape. Turning the displacement read into measurable criteria, it freezes a baseline before each leg, requires the leg's travel to clear a multiple of it, and enforces a per-candle body floor and an efficiency minimum.

How to Trade the Displacement?

  • Leg highlight and tag: a qualifying repricing; the tooltip reports bars, travel versus baseline, body efficiency, and any imbalance left inside.
  • Closed through structure: a leg breaking the prior untaken swing point is a structure shift backed by displacement.
  • Delivered from a sweep: a leg launched from a raid on the opposite swing, the sweep-then-displace evidence of a turn.
  • Killzone timing: restrict qualification to the London and New York killzone windows.

Displacement Settings

  • Baseline (default Average Body) and Baseline Length (default 40): the trailing yardstick; ATR is stricter, counting wicks and gaps.
  • Travel Multiple (default 4): minimum net travel versus the baseline. When in doubt, raise it.
  • Min Candle Body Multiple (default 1): per-candle body floor; 0 disables it.
  • Leg Length (Min / Max) (defaults 1 / 5): allowed run of one-directional closes.
  • Min Body Efficiency % (default 60): net travel as a share of the leg's span.
  • Require Imbalance Residue (default disabled): demand a fair value gap inside the leg.
  • Swing Length (default 5), Only Through Structure (default disabled), Only From Liquidity Sweep (default disabled), and Sweep Window (Bars Before Leg) (default 5): the context filters.
  • Only Inside Killzones (default disabled), with London Killzone (default 0200-0500), New York Killzone (default 0700-1000), and Killzone Timezone (default America/New_York).
  • Highlight Displacement Legs and Displacement Labels (both enabled) govern the visuals.

Frequently Asked Questions

Free to use

Run it on Vela. Go further with a paid plan.

  • Up to 500 Custom Alerts, with webhook automation
  • Up to 10× the chart history of Free
  • Orderflow lookback up to full history
  • More Quant usage to customize it, plus extra usage when you need it
  • Futures data alongside crypto, stocks, forex and commodities
See plans
Original indicatorBuilt in-house by LuxAlgo

Run it on Vela. Make it yours with Quant.

Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.