# Smart Money Index

Smart Money Index is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Accumulates the session-anatomy line that subtracts the cash open's first 30 minutes and adds the final hour, with both window lengths and weights adjustable. A 20-period moving average colors the SMI and fires cross alerts, while pivot-based detection draws divergences against price. On daily and higher charts it falls back to overnight-gap versus open-to-close arithmetic, for index traders reading session flow.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Mar 4, 2026.
- Access: free.
- Concepts: [Smart Money Index](https://www.luxalgo.com/library/concept/smart-money-index/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=y9slf6wej03w6n2wac4vwcfk
- Page: https://www.luxalgo.com/library/indicator/smart-money-index/

**Smart Money Index** maintains the running total behind the session-anatomy read, the definitive clean build of the [Smart Money Index](https://www.luxalgo.com/library/concept/smart-money-index/) with its windows exposed as inputs. On intraday charts the opening window's net change is subtracted and the closing window's added, scaled by their weights; on daily and higher charts a fallback subtracts the overnight gap and adds the open-to-close move, a mode readout stating which calculation is active.

## How to Trade the Smart Money Index?

- **Direction over level**: the absolute value means little; an SMI grinding higher under a flat tape records persistent late-session firmness.
- **Bearish divergence**: price sets a higher high the SMI declines to confirm, the distribution-into-strength read.
- **Bullish divergence**: price dips to a lower low while the SMI's low holds higher, accumulation under a weak tape.
- **MA crosses**: the SMI crossing its moving average recolors the line and fires alerts, a faster trigger on a slow line.

Divergences are context, not triggers, and can build for weeks before mattering.

## Smart Money Index Settings

- **Opening Window** (default 30) and its **Weight** (default 1.0): minutes after the open treated as emotional flow and subtracted; 1 reproduces the classic formula.
- **Closing Window** (default 60) and its **Weight** (default 1.0): minutes before the close treated as deliberate flow and added. Use a chart timeframe dividing the windows evenly: 30m or lower for the defaults.
- **Show Moving Average** (default on), **Type** (default SMA), **Length** (default 20): the smoothing the line is judged against.
- **Show Divergences** (default on), **Pivot Length** (default 5), **Max Bars Between Pivots** (default 60): swing confirmation and the maximum span between compared swings.
- **Gradient Fill** (default on) and **Show Calculation Mode** (default on): presentation and the fallback readout.

## Frequently Asked Questions

### How does the SMI differ from On-Balance Volume?

The [On-Balance Volume line](https://www.luxalgo.com/library/indicator/on-balance-volume/) sums volume by the close's sign; the SMI cumulates price change by time of day and never touches volume. Both are slow cumulative context lines proxying entirely different behavior.

### Which markets does it suit?

Ones with a defined cash open and close (stock indexes above all), since the premise needs an open and a final hour hosting different participants. On 24-hour markets the windows lose meaning and the fallback becomes the honest mode.

### Why do divergences appear with a delay?

Pivots confirm only Pivot Length bars after their extreme (5 by default), so each divergence draws that many bars late, the cost of comparing completed swings rather than guessing at live ones.

## Related indicators

- [Oscillator Matrix](https://www.luxalgo.com/library/indicator/luxalgo-oscillator-matrix/) (Money Flow Index): markdown at https://www.luxalgo.com/library/indicator/luxalgo-oscillator-matrix.md
- [LuxAlgo - Screener (OSC)](https://www.luxalgo.com/library/indicator/luxalgo-screener-osc/) (Money Flow Index): markdown at https://www.luxalgo.com/library/indicator/luxalgo-screener-osc.md
- [Delta ZigZag](https://www.luxalgo.com/library/indicator/delta-zigzag/) (Weis Wave Volume): markdown at https://www.luxalgo.com/library/indicator/delta-zigzag.md
- [Price Zone Oscillator](https://www.luxalgo.com/library/indicator/price-zone-oscillator/) (Volume & Order Flow): markdown at https://www.luxalgo.com/library/indicator/price-zone-oscillator.md
- [OBV Divergence](https://www.luxalgo.com/library/indicator/obv-divergence/) (Volume & Order Flow): markdown at https://www.luxalgo.com/library/indicator/obv-divergence.md
- [Trade Volume Index](https://www.luxalgo.com/library/indicator/trade-volume-index/) (Volume & Order Flow): markdown at https://www.luxalgo.com/library/indicator/trade-volume-index.md
- [Volume Flow Indicator](https://www.luxalgo.com/library/indicator/volume-flow-indicator/) (Volume & Order Flow): markdown at https://www.luxalgo.com/library/indicator/volume-flow-indicator.md
- [Demand Index](https://www.luxalgo.com/library/indicator/demand-index/) (Volume & Order Flow): markdown at https://www.luxalgo.com/library/indicator/demand-index.md

---

Source: https://www.luxalgo.com/library/indicator/smart-money-index/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
