Market Structure Oscillator
By LuxAlgoAug 1, 2024
Market Structure Oscillator is an indicator on Vela, our next-generation charting platform, written in Pine Script®.
Market Structure Oscillator turns swing-by-swing market structure 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 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 the optional Market Structure Oscillator crosses of the 50 equilibrium 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.
- Market Structure Oscillator - Crosses (Signals): marks the oscillator's crosses of the 50 equilibrium level (off by default).
- Cycle Oscillator - Histogram, Cycle Signal Length, Cycle Oscillator - Crosses (Signals): cycle histogram visibility, the EMA length the oscillator is compared against to form the histogram, and markers when the histogram crosses its midline.
- Market Structures on Chart and Oscillator Components: on-chart structures with line, label, and color options, plus separate Short, Intermediate and Long Term Oscillator plots.
Frequently Asked Questions
Free to use
Run it on Vela. Go further with a paid plan.
- Up to 500 strategy 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
Also works on
Related indicators
All 17 Swing Structure Grammar indicatorsRun 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.





