OPEN-SOURCE SCRIPT
已更新 Rally/Drop Market Structure (Multi-Timeframe)

Rally/Drop Market Structure
Supply and Demand Zones from Bullish/Bearish Breaks
Overview:
The Rally/Drop Market Structure indicator is a powerful price action tool that identifies key structural turning points in the market by detecting bullish and bearish breaks. After each confirmed break, it plots either a demand zone (following a bullish break or rally) or a supply zone (following a bearish break or drop). These zones represent institutional footprints — areas where price is likely to react due to imbalance or unfilled orders.
The indicator is based on synthetic higher timeframe (HTF) candles to provide a more stable and smoothed structural map, improving clarity and signal quality over raw candles.
How It Works:
- A bullish break is defined when price makes a higher high and a higher low (or closes above the previous high depending on your selected mode).
- A bearish break is defined when price makes a lower high and a lower low (or closes below the previous low).
- After a bullish break, the indicator plots a demand zone based on the low and high of the most recent bearish candle — representing where demand stepped in.
- After a bearish break, the indicator plots a supply zone from the most recent bullish candle — indicating where supply took control.
- Optional mitigation logic marks zones as mitigated (or deletes them) once price trades into the opposing side.
- Internal shift detection highlights swing highs and lows, labels structural points (HH, HL, LH, LL), and identifies potential liquidity sweeps.
Features:
- Dynamic plotting of rally-based demand zones and drop-based supply zones
- Toggle to use Highs/Lows or Close-based breaks for structure
- Support for LTF, MTF, and HTF analysis (with selectable timeframe)
- Zone mitigation logic with optional automatic cleanup
- Labeling of key swing points: HH, HL, LH, LL, and LS (Liquidity Sweep)
- Zigzag visualization for structure flow
- Alert-ready for internal shifts, BoS, and zone creation
- Separate styling options for BoS lines, internal shift shapes, and zone colors
How to Use:
- Set your desired HTF candle source (e.g., 1H or 4H) depending on your trading style.
- Use Highs/Lows mode for pure price action structure or Close mode for more conservative signals.
- Observe when a bullish break occurs — a demand zone will form where price previously dropped before rallying. Look for long opportunities if price revisits this zone.
- After a bearish break, a supply zone forms where the rally failed — use this to scout short entries on retests.
- Use BoS lines to confirm structure shifts and validate entry triggers or trend direction.
- Monitor mitigated zones for reduced reliability or avoid them completely by enabling automatic deletion.
- Use alerts to stay notified about key changes without watching the chart constantly.
Recommended Strategies:
- Smart money or ICT-style trading: identify institutional footprints and mitigation setups
- Reversal trading: catch price rejecting off unmitigated zones after structure break
- Trend continuation: enter in the direction of internal structure after pullbacks into zones
- Liquidity sweep confirmation: filter out false breaks using HH/LL with LS detection
Tips:
- Combine this indicator with a higher timeframe bias tool (e.g., moving average, higher timeframe market structure).
- For scalping, use tighter HTFs and reduce the zone duration.
- For swing trading, use larger HTFs (1H, 4H, Daily) and increase zone persistence.
Summary:
The Rally/Drop Market Structure indicator gives you an actionable framework for understanding price structure, market intent, and supply/demand imbalances. Whether you're looking for precision entries, trend confirmation, or smart money concepts, this tool helps simplify complex price behavior into clean, usable structure and zones.
Supply and Demand Zones from Bullish/Bearish Breaks
Overview:
The Rally/Drop Market Structure indicator is a powerful price action tool that identifies key structural turning points in the market by detecting bullish and bearish breaks. After each confirmed break, it plots either a demand zone (following a bullish break or rally) or a supply zone (following a bearish break or drop). These zones represent institutional footprints — areas where price is likely to react due to imbalance or unfilled orders.
The indicator is based on synthetic higher timeframe (HTF) candles to provide a more stable and smoothed structural map, improving clarity and signal quality over raw candles.
How It Works:
- A bullish break is defined when price makes a higher high and a higher low (or closes above the previous high depending on your selected mode).
- A bearish break is defined when price makes a lower high and a lower low (or closes below the previous low).
- After a bullish break, the indicator plots a demand zone based on the low and high of the most recent bearish candle — representing where demand stepped in.
- After a bearish break, the indicator plots a supply zone from the most recent bullish candle — indicating where supply took control.
- Optional mitigation logic marks zones as mitigated (or deletes them) once price trades into the opposing side.
- Internal shift detection highlights swing highs and lows, labels structural points (HH, HL, LH, LL), and identifies potential liquidity sweeps.
Features:
- Dynamic plotting of rally-based demand zones and drop-based supply zones
- Toggle to use Highs/Lows or Close-based breaks for structure
- Support for LTF, MTF, and HTF analysis (with selectable timeframe)
- Zone mitigation logic with optional automatic cleanup
- Labeling of key swing points: HH, HL, LH, LL, and LS (Liquidity Sweep)
- Zigzag visualization for structure flow
- Alert-ready for internal shifts, BoS, and zone creation
- Separate styling options for BoS lines, internal shift shapes, and zone colors
How to Use:
- Set your desired HTF candle source (e.g., 1H or 4H) depending on your trading style.
- Use Highs/Lows mode for pure price action structure or Close mode for more conservative signals.
- Observe when a bullish break occurs — a demand zone will form where price previously dropped before rallying. Look for long opportunities if price revisits this zone.
- After a bearish break, a supply zone forms where the rally failed — use this to scout short entries on retests.
- Use BoS lines to confirm structure shifts and validate entry triggers or trend direction.
- Monitor mitigated zones for reduced reliability or avoid them completely by enabling automatic deletion.
- Use alerts to stay notified about key changes without watching the chart constantly.
Recommended Strategies:
- Smart money or ICT-style trading: identify institutional footprints and mitigation setups
- Reversal trading: catch price rejecting off unmitigated zones after structure break
- Trend continuation: enter in the direction of internal structure after pullbacks into zones
- Liquidity sweep confirmation: filter out false breaks using HH/LL with LS detection
Tips:
- Combine this indicator with a higher timeframe bias tool (e.g., moving average, higher timeframe market structure).
- For scalping, use tighter HTFs and reduce the zone duration.
- For swing trading, use larger HTFs (1H, 4H, Daily) and increase zone persistence.
Summary:
The Rally/Drop Market Structure indicator gives you an actionable framework for understanding price structure, market intent, and supply/demand imbalances. Whether you're looking for precision entries, trend confirmation, or smart money concepts, this tool helps simplify complex price behavior into clean, usable structure and zones.
發行說明
chart updated to show HTF and MTF in input status發行說明
chart example updated開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。