# Market Structure Oscillator

The Market Structure Oscillator scores structure shifts and breaks across short, intermediate, and long-term swings, then blends them into one weighted oscillator with a companion cycle histogram. Equilibrium crosses, extreme readings, and divergences translate raw structure labels into momentum signals tuned to your preferred horizon.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Aug 1, 2024.
- Access: free.
- Concepts: [Swing Structure Grammar](https://www.luxalgo.com/library/concept/swing-structure-grammar/) (primary), [Break of Structure](https://www.luxalgo.com/library/concept/break-of-structure/), [Change of Character](https://www.luxalgo.com/library/concept/change-of-character/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn3jd4004xvhsg2ct3ml4p
- Page: https://www.luxalgo.com/library/indicator/market-structure-oscillator/

**Market Structure Oscillator** turns [swing-by-swing market structure](https://www.luxalgo.com/library/concept/swing-structure-grammar/) into a momentum reading. Short-term swing points are detected from price movements alone, intermediate and long-term swings are derived from them, and the [market structure shifts](https://www.luxalgo.com/library/concept/change-of-character/) and breaks across all three terms are blended into one oscillator whose term weights you control. A cycle histogram rides alongside for timing.

## How to Trade the Market Structure Oscillator?

- **Level and equilibrium crosses**: oscillator crossings generate signals, with Equilibrium Cross Signals flagging transitions between bullish and bearish structural momentum.
- **Extremes**: elevated and depressed readings mark overbought and oversold conditions, useful ahead of potential reversals.
- **Divergence**: price diverging from the oscillator warns that structural momentum is thinning.
- **Cycle histogram**: the Cycle Oscillator component visualizes market cycles, sharpening timing around turns.
- **Structures on the chart**: the display settings can draw the detected structures directly at price.

Because short-term swings seed the longer terms, the oscillator stays rooted in objective price behavior rather than user-tuned pivots. The weights only decide how loudly each horizon speaks.

## Market Structure Oscillator Settings

- **Short Term Weight** / **Intermediate Term Weight** / **Long Term Weight**: each term's influence on the blend; skew them toward your trading horizon.
- **Oscillator Smoothing**: smoothness of the composite line.
- **Equilibrium Cross Signals**: marks oscillator level crossings.
- **Cycle Oscillator - Histogram**, **Cycle Signal Length**, **Cycle Cross Signals**: cycle component visibility, signal duration, and cycle-based signals.
- **Market Structures Display** and **Independent Oscillators**: on-chart structures with line, label, and color options, plus separate per-term oscillator plots.

## Frequently Asked Questions

### How do the term weights change the reading?

They set the emphasis. Day traders might overweight short-term structures for responsiveness; swing traders can lean on the long-term weight to mute noise: same detection, different voice.

### Can I see the structure inside each candle too?

That's a different build: [Market Structure (Intrabar)](https://www.luxalgo.com/library/indicator/market-structure-intrabar/) rebuilds structure from a lower timeframe within every bar. It makes a natural companion when this oscillator's chart-level read needs finer confirmation.

### How do I access the Market Structure Oscillator?

Free of charge via the LuxAlgo Library, right from this page. Quant, our coding agent, can also backtest it on your behalf. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [Swing Structure Scanner](https://www.luxalgo.com/library/indicator/swing-structure-scanner/) (Swing Structure Grammar): markdown at https://www.luxalgo.com/library/indicator/swing-structure-scanner.md
- [HTF Swing Structure Signals](https://www.luxalgo.com/library/indicator/htf-swing-structure-signals/) (Swing Structure Grammar): markdown at https://www.luxalgo.com/library/indicator/htf-swing-structure-signals.md
- [Candlestick Structure](https://www.luxalgo.com/library/indicator/candlestick-structure/) (Swing Structure Grammar): markdown at https://www.luxalgo.com/library/indicator/candlestick-structure.md
- [Price Action Concepts](https://www.luxalgo.com/library/indicator/luxalgo-price-action-concepts/) (Swing Structure Grammar): markdown at https://www.luxalgo.com/library/indicator/luxalgo-price-action-concepts.md
- [LuxAlgo - Screener (PAC)](https://www.luxalgo.com/library/indicator/luxalgo-screener-pac/) (Swing Structure Grammar): markdown at https://www.luxalgo.com/library/indicator/luxalgo-screener-pac.md
- [Market Structure (Intrabar)](https://www.luxalgo.com/library/indicator/market-structure-intrabar/) (Swing Structure Grammar): markdown at https://www.luxalgo.com/library/indicator/market-structure-intrabar.md
- [Market Structure (Breakers)](https://www.luxalgo.com/library/indicator/market-structure-breakers/) (Break of Structure): markdown at https://www.luxalgo.com/library/indicator/market-structure-breakers.md
- [DTFX Algo Zones](https://www.luxalgo.com/library/indicator/dtfx-algo-zones/) (Break of Structure): markdown at https://www.luxalgo.com/library/indicator/dtfx-algo-zones.md

---

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