PulseHub
OPEN-SOURCE SCRIPT

Advanced Market Structure

1 770
Advanced Market Structure

The Advanced Market Structure indicator is a comprehensive technical analysis script built for price action traders, Smart Money Concepts (SMC) practitioners, and market structure analysts. It helps traders map market context, spot key liquidity sweeps, and trade along institutional flow without cluttering the chart.

Key Features Overview

1. Smart Money Market Structure Engine
Automatically detects Break of Structure (BOS) for trend continuation and Change of Character (CHoCH) for potential trend reversals on valid swing points.

2. Intermediate Term Structure (ITH and ITL)
Replaces generic entry labels with institutional Intermediate Term Highs (ITH) and Intermediate Term Lows (ITL). These point out major liquidity pools where smart money often seeks liquidity.

3. Dynamic Candle Glow and Phase Detection
Calculates ATR and price expansion/contraction in real time to visually separate Consolidation phases from Expansion phases directly through candle coloring.

4. Auto Disappearing PDH and PDL
Plots Active Previous Day High (PDH) and Previous Day Low (PDL). As soon as price breaks through these liquidity levels, they automatically disappear to keep your workspace clean.

5. Dynamic 0.5 Equilibrium Range
Calculates the 50 percent Fibonacci Equilibrium line across recent swings, making it easy to identify Premium and Discount pricing zones.

6. Glowing Wave Line and Dashboard
Combines a dynamic Hull Moving Average trend line with a clean on screen dashboard displaying active structure context, market phase, and key level statuses.

Detailed How to Use Guide

Step 1: Determine the Macro Bias
Check the Glowing Wave Line color and recent market structure labels. A sequence of bullish BOS signals along with price staying above the Wave Line indicates a strong bullish bias.

Step 2: Identify Premium vs Discount Zones
Use the 0.5 Equilibrium Line to contextualize price position:
- Premium Zone (Above 0.5 EQ): Ideal area to search for short setups near Intermediate Term Highs (ITH) or Bearish CHoCH signals.
- Discount Zone (Below 0.5 EQ): Ideal area to search for long setups near Intermediate Term Lows (ITL) or Bullish CHoCH signals.

Step 3: Wait for Phase Transition
Observe the Candle Glow Engine. When candles transition from neutral or consolidation colors to strong trend expansion colors near an ITL or ITH level, it signals institutional participation.

Step 4: Liquidity Sweeps (PDH and PDL)
Watch how price interacts with Previous Day High and Low. A sweep followed by an immediate CHoCH back inside the daily range often offers high probability reversal scenarios.

Settings Overview and Customization

Candle Glow and Consolidation Settings
- Trend Momentum Lookback: Adjusts the sensitivity of the volatility calculation.
- Consolidation Range ATR Multiplier: Sets the sensitivity threshold for detecting squeeze or ranging market conditions.

Market Structure (BOS and CHoCH) Settings
- Structure Sensitivity (Pivot Length): Controls how sensitive the script is to swing points. Lower values (3 to 7) show lower timeframe structure, while higher values (10 to 20) show major structural points.
- Structure Colors: Full color customization for bullish and bearish structure lines and text labels.

Major Structure Labels (ITH and ITL) Settings
- Major Pivot Lookback: Defines the bar count required to mark Intermediate Term Highs and Lows.
- Label Customization: Customize colors and visibilities for ITH and ITL tags.

Previous Day High / Low and Equilibrium Settings
- Toggle Show Active PDH / PDL: Turn daily high/low tracking on or off.
- Equilibrium Lookback: Adjusts the swing period used to generate the 50 percent Fibonacci level.

Pro Tips for Effective Usage

Tip 1: Trade in the Direction of Macro Wave
For higher probability trades, take long positions when price is in a Discount Zone and the Wave Line is green. Take short positions when price is in a Premium Zone and the Wave Line is red.

Tip 2: Focus on Multi-Timeframe Confluence
Identify ITH/ITL levels on higher timeframes (such as 1-Hour or 4-Hour) and drop down to lower timeframes (5-Min or 15-Min) to spot CHoCH signals for refined entries.

Tip 3: Look for Liquidity Grab Reactions
Pay close attention when an active PDH or PDL line disappears. If price breaks the level and quickly creates a CHoCH in the opposite direction, it indicates a false breakout / liquidity sweep.

Things to Avoid

1. Avoid Trading During Consolidation
Do not take aggressive breakout entries when the Candle Glow engine highlights market consolidation. Wait for an explicit expansion candle close outside the range box.

2. Avoid Trading Counter Trend at Equilibrium
Do not short right at the 0.5 Equilibrium line if the overall structural trend is strongly bullish with consecutive bullish BOS signals.

3. Avoid Over Sensitivity on Scalping Timeframes
Do not set the Structure Sensitivity too low (below 3) on sub-minute charts, as minor price noise may generate excess structural markings.

Disclaimer
This tool is built strictly for educational and analytical purposes. It does not provide financial advice or direct trading signals. Always practice proper risk management and position sizing.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by PulseWire. Read more in the Terms of Use.