All indicators

Accumulative Swing Index

By LuxAlgoApr 12, 2026

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

Static chart image

Accumulative Swing Index is the library's first faithful build of Wilder's Accumulative Swing Index: the per-bar Swing Index is built from two bars of OHLC and summed into the ASI line, with the limit-move divisor supplied by a 14-period ATR or a fixed contract value. Around the line it adds swing levels, automatic trendlines and breakout validation against price.

Swing points confirm with 10 bars on each side, on price and on the ASI alike. The latest ASI swing high and low are held as levels, and every price breakout is graded against them.

How to Trade the Accumulative Swing Index?

  • Confirmed Bullish Breakout / Confirmed Bearish Breakdown: price crosses its prior swing extreme with the ASI beyond its own, the validated break.
  • Suspect Bullish Breakout / Suspect Bearish Breakdown: price breaks out alone; treat with suspicion.
  • ASI trendline breaks: dashed lines join falling ASI highs and rising ASI lows; breaks there often lead the same break on price.
  • Divergence lines: price sets a fresh swing extreme that the ASI refuses to match.

Accumulative Swing Index Settings

  • Limit Move (T) (default ATR-Based): the formula's divisor; Fixed Value reproduces the original futures usage, ATR-Based suits markets without price limits.
  • ATR Length (default 14): ATR window used in ATR-Based mode.
  • Fixed Limit Move (default 300): constant divisor; set it to the contract's limit move.
  • Swing Length (default 10): bars each side to confirm swing points on price and the ASI.
  • Show ASI Swing Levels (default on): keeps the latest ASI swing high and low in the pane.
  • Breakout Markers (default off): plots the confirmed and suspect marks; alerts fire either way.
  • ASI Trendlines (default on) and Divergence Lines (default off): the two automatic drawing layers.

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.