PROTECTED SOURCE SCRIPT
Updated MZ.ARM | Market Structure Identifier

This indicator reveals the true market structure, improving over the usual method that uses Williams Highs and Lows as pivots, which are only approximations. ⚡️
📈 How it works:
It precisely confirms Local Highs and Local Lows by rules:
A Local High gets confirmed only when a later candle closes below its low.
A Local Low gets confirmed only when a later candle closes above its high. 📍
Enforces strict alternation: a Low always follows a confirmed High and vice versa. No sequences like High, High, Low, Low allowed. 🔄
Identifies bullish market structure when price forms Higher Highs and Higher Lows (uptrend) 🐂, and bearish structure when price forms Lower Lows and Lower Highs (downtrend) 🐻.
Defines intermediate Highs and Lows as Ranging (neutral), which can precede trend continuation or reversal. 🔄
⚔️ Bullish/Bearish Breaks (early signals):
A Bullish Break happens when the current candle’s close exceeds the previous confirmed Local High 🔥.
A Bearish Break happens when the current close drops below the most recent confirmed Local Low ❄️.
Uses candle Close price (instead of High/Low) to reduce false signals from spikes 🎯.
📈 How it works:
It precisely confirms Local Highs and Local Lows by rules:
A Local High gets confirmed only when a later candle closes below its low.
A Local Low gets confirmed only when a later candle closes above its high. 📍
Enforces strict alternation: a Low always follows a confirmed High and vice versa. No sequences like High, High, Low, Low allowed. 🔄
Identifies bullish market structure when price forms Higher Highs and Higher Lows (uptrend) 🐂, and bearish structure when price forms Lower Lows and Lower Highs (downtrend) 🐻.
Defines intermediate Highs and Lows as Ranging (neutral), which can precede trend continuation or reversal. 🔄
⚔️ Bullish/Bearish Breaks (early signals):
A Bullish Break happens when the current candle’s close exceeds the previous confirmed Local High 🔥.
A Bearish Break happens when the current close drops below the most recent confirmed Local Low ❄️.
Uses candle Close price (instead of High/Low) to reduce false signals from spikes 🎯.
Release Notes
🛠️⚙️ Added 🟢🔴 dotted line to signal where trend is about to flip.Release Notes
📈🆕 Chart example of 𝗠𝗭.ARM trade.Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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 TradingView. Read more in the Terms of Use.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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 TradingView. Read more in the Terms of Use.