# SMT Divergences

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

SMT Divergences compares swing highs and lows on your chart against two user-selected correlated tickers, typically ES and YM, and labels the moments one instrument breaks its swing while the other refuses to follow. A statistics dashboard tracks how often those cracks appear, turning a discretionary read into measurable data.

- Indicator in the LuxAlgo Library, by LuxAlgo, published May 22, 2023.
- Access: free.
- Concepts: [Smart Money Technique Divergence](https://www.luxalgo.com/library/concept/smart-money-technique-divergence/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn5uo10088vhsgybqiid8g
- Page: https://www.luxalgo.com/library/indicator/smt-divergences/

**SMT Divergences** watches your chart alongside two user-selected comparison tickers (typically ES and YM) and labels every [SMT divergence](https://www.luxalgo.com/library/concept/smart-money-technique-divergence/): a matched swing point where one instrument breaks its level while its correlated partner fails to follow. Swings are detected on all series, aligned in time, and compared automatically, so the cracks between markets that stay invisible on a single chart are marked the moment they confirm.

## How to Trade the SMT Divergences?

- **Divergence labels**: printed when a swing on the chart ticker coincides with a swing on a comparison ticker and the two disagree: one making a new extreme, the other holding.
- **Swing confirmation**: swing points confirm after a set number of candles (3 by default), so labels appear once structure has settled rather than mid-formation.
- **Dashboard percentages**: show how often swing highs and swing lows have produced SMT divergences against each ticker, a live base rate for the signal you are trading.

Because confirmation is required, the tool lends itself to studying how price behaves after a divergence rather than chasing one tick by tick. Index partners like ES and YM are the classic pairing, but the comparison tickers are yours to choose, so any correlated pair can be monitored.

## SMT Divergences Settings

- **Pivot Lookback**: the number of bars on each side that confirm a swing point (3 by default). Larger values isolate broader, more significant swings.
- **Comparison Symbol**: the two external symbols (ES1! and YM1! by default) checked for divergences against the chart, each with its own on/off toggle.
- **Show Dashboard / Location / Size**: toggle the statistics table and control where and how large it renders.

## Frequently Asked Questions

### What exactly gets flagged as a divergence?

A swing high or low on your chart that aligns with a swing on a comparison ticker where the two instruments disagree about direction. Both swings must confirm first, which keeps the chart readable and filters out half-formed structure.

### How is this different from oscillator divergence?

Oscillator divergence compares price against a momentum reading on the same instrument; SMT compares two instruments against each other at matching swings. For the single-market variety, [Hidden Divergence](https://www.luxalgo.com/library/indicator/hidden-divergence/) works that style, and the two reads can complement each other at the same level.

### How can I use SMT Divergences for free?

The indicator belongs to the LuxAlgo Library's free collection. Load it from this page (including straight into Quant, our coding agent) and check the dashboard's divergence frequencies on your pair before trading them. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [Ultimate AMD Indicator](https://www.luxalgo.com/library/indicator/ultimate-amd-indicator/) (Accumulation-manipulation-distribution): markdown at https://www.luxalgo.com/library/indicator/ultimate-amd-indicator.md
- [AMD FVG Trade Setup](https://www.luxalgo.com/library/indicator/amd-fvg-trade-setup/) (Accumulation-manipulation-distribution): markdown at https://www.luxalgo.com/library/indicator/amd-fvg-trade-setup.md
- [FVG + Liquidity Sweep + CISD](https://www.luxalgo.com/library/indicator/fvg-liquidity-sweep-cisd/) (Change in State of Delivery): markdown at https://www.luxalgo.com/library/indicator/fvg-liquidity-sweep-cisd.md
- [HTF CISD Projections](https://www.luxalgo.com/library/indicator/htf-cisd-projections/) (IPDA & Price Delivery Theory): markdown at https://www.luxalgo.com/library/indicator/htf-cisd-projections.md
- [HTF PO3](https://www.luxalgo.com/library/indicator/htf-po3/) (Accumulation-manipulation-distribution): markdown at https://www.luxalgo.com/library/indicator/htf-po3.md
- [CISD Projections](https://www.luxalgo.com/library/indicator/cisd-projections/) (IPDA & Price Delivery Theory): markdown at https://www.luxalgo.com/library/indicator/cisd-projections.md
- [Institutional Order Flow Strength Classifier](https://www.luxalgo.com/library/indicator/institutional-order-flow-strength-classifier/) (Institutional Order Flow): markdown at https://www.luxalgo.com/library/indicator/institutional-order-flow-strength-classifier.md
- [Market Maker Models](https://www.luxalgo.com/library/indicator/market-maker-models/) (Smart Money Concepts / ICT): markdown at https://www.luxalgo.com/library/indicator/market-maker-models.md

---

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