OPEN-SOURCE SCRIPT
Telah dikemas kini

Market Structure

1 582
Market Structure Indicator

The Market Structure indicator for TradingView helps traders identify key price action patterns by detecting swing highs and lows, visualizing trend structures, and marking potential areas of interest. It works by analyzing market swings and breakouts based on user-defined settings, making it useful for traders who follow Smart Money Concepts (SMC), price action strategies, or structure-based trading approaches.

How It Works and features:
This indicator tracks market structure shifts by analyzing price swings and breakouts.

1. Swing Points & Market Structure Shifts
  • Swing Width: Defines how many candles must separate two swing points (default: 3).
  • Higher Timeframe Swing Width (HTF): If on a higher timeframe (15M+), the indicator uses a different swing width setting (default: 7).
  • Break Type (Wick vs. Body): Choose whether market structure breaks are based on wicks (more sensitive) or candle bodies (more conservative).

2. Structure Visualization
  • Labels & Colors for Extremes: Mark highest highs (H) and lowest lows (L) on the chart.
  • Custom Styles: Choose between triangles or circles to represent swing points.
  • Trend & Breaks Visualization

3. Session-Specific Analysis
  • Set Trading Sessions (EST time): The indicator allows users to analyze specific market sessions (default: 9:30-10:30 AM EST).
  • Session Background Highlighting: Highlights the session timeframe on the chart for better visibility.
  • Apply Body Breaks to Session Only: Limits structure shifts based on candle bodies only during a chosen session (useful for session-based scalping strategies).

4. Points of Interest (POI) & Order Flow Shifts (OFS)
  • Extreme POI Zones: Highlights key structure breaks where strong price action occurred.
  • Order Flow Shifts (OFS) Lines: Identifies supply/demand changes with customizable styles and colors.
  • POI Box Customization: Allows traders to visualize liquidity zones where price reacted strongly.

Who Is This For?
✅ Smart Money Concept (SMC) Traders – Helps track liquidity grabs and structural shifts.
✅ Price Action Traders – Makes it easier to spot swing points and trend shifts.
✅ Breakout & Reversal Traders – Highlights market structure breaks for entry confirmation.
✅ Scalpers & Session-Based Traders – Allows session-specific market structure analysis.

How to Use It?
1️⃣ Adjust Swing Width: Set a number of candles between swing points.
2️⃣ Choose Break Type: Select Wick (aggressive) or Body (conservative) break confirmation.
3️⃣ Enable Sub-Structure & OFS: Visualize minor trends and order flow shifts.
4️⃣ Set Session Filters: Highlight market structure only during key trading hours.
5️⃣ Monitor POI & Trend Labels: Look for breakouts and retests at major swing points.

Conclusion:
The Market Structure Indicator provides a clear visual representation of market trends, breakouts, and liquidity areas, making it a powerful tool for traders who rely on structure-based trading. With extensive customization options, it adapts to various trading styles and strategies. 🚀📈
Nota Keluaran
Updated to add drawings (sub/OFS/POI) to 'body' breaks
Nota Keluaran
- Fixed several bugs
- Added option to hide POIs from 1M chart
Nota Keluaran
Added OFS/MSS counter (top right of chart)
- Resets every trading day
- Limit set to 3
- Only visible on MTF (10-15M)
Nota Keluaran
Updated OFS Counter limit to max 3 (previously 4)

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.