PROTECTED SOURCE SCRIPT
Updated

Premium & Liquidity Zones By TradingSmurf ver.20250911

77
=========================================
Premium & Liquidity Zones (PLZ) + AEMA
=========================================

Features:
----------
• Liquidity Zones (Daily / Weekly / Monthly)
- Previous Highs/Lows with text labels
- Auto purge when liquidity is swept

• Adaptive EMA (Kaufman-style)
- Fast = 2, Slow = 30, Efficiency = 10
- Toggle On/Off

• Premium & Discount Zones
- Supply/Demand imbalance shading

• Market Structure Tools
- BOS (Break of Structure) / CHoCH detection
- Order Blocks
- Fair Value Gaps (FVGs)
- MSS signals
- Swing High/Low labels

• Signals & Alerts
- SSMA crossover Buy/Sell signals
- BOS, CHoCH, MSS alerts

Usage:
-------
All-in-one Smart Money Concepts (SMC) toolkit
for liquidity, structure, and adaptive trend
confirmation.
Release Notes
===============================================
Premium & Liquidity Zones (PLZ) - ver.20250911
===============================================

Summary:
---------
All-in-one SMC toolkit with Daily/Weekly/Monthly
liquidity lines, Premium/Discount zones,
BOS/CHoCH, Order Blocks, FVGs, MSS, SSMA signals,
and Adaptive EMA (Kaufman).
English is default, all labels customizable.

Features:
----------
• Liquidity Lines
- Auto-plots prior High/Low and extends forward
- Labels show HH/LL + timeframe info:
Daily -> "Daily HH/LL - Monday"
Weekly -> "Weekly HH/LL - Week 32"
Monthly -> "Monthly HH/LL - Sept."
- Labels glued to line ends, purged with lines
- Label text colors selectable per timeframe

• Structure Tools
- BOS / CHoCH (internal & swing)
- Optional Order Blocks
- FVG detection (auto/manual threshold)
- Swing HH/LL markers
- MSS signals

• Premium/Discount
- Dynamic shading for supply/demand imbalance

• Moving Averages & Signals
- SSMA Fast/Slow with Buy/Sell markers
- Buy/Sell text color configurable (default white)
- Adaptive EMA (Kaufman style) with Fast/Slow/ER Length

• Localization
- Default language: English
- Toggle available for Spanish (labels & dates)

New in ver.20250911:
--------------------
- Default language set to English
- Customizable label colors for D/W/M
- Configurable Buy/Sell text color
- Liquidity text enhanced with weekday, week #
and month abbreviations
- Labels stay glued to lines and purge correctly
- Adaptive EMA re-coded without ta.sum (stable in v6)

Inputs (highlights):
---------------------
- Signals -> Show SSMA Cross Signals
- Signals -> Signal text color (Buy/Sell)
- Configuration -> Daily/Weekly/Monthly label text color
- Adaptive EMA -> Source, Fast, Slow, ER Length
- Language -> Show Labels in English
Release Notes
Premium & Liquidity Zones (PLZ) — Pine v6
Smart liquidity map + structure and momentum toolkit.

What it shows
-------------
- Daily / Weekly / Monthly liquidity (previous HTF High/Low).
* Labels are English by default and larger.
* Auto-annotates: Monthly HH/LL (Sep.), Weekly HH/LL (Week 32), Daily HH/LL – Monday.
* If multiple timeframes sit at (nearly) the same price, labels are merged into one line
(priority: Monthly -> Weekly -> Daily).

Price structure & context
-------------------------
- Swing HH/HL/LH/LL with strong/weak tags.
- BOS / CHoCH detection (internal & swing) with alerts.
- Order Blocks (internal & swing) with live purge on invalidation.
- Fair Value Gaps (auto/TF-selectable) with fill handling.
- PDH/PDL lines with labels.
- Premium/Discount zone shading.

Momentum & signals
------------------
- SSMA Fast/Slow plots with optional Buy/Sell markers (text color configurable).
- Adaptive EMA (Kaufman) overlay + optional signal logic (SSMA <-> AEMA with slope filter).
- MSS (Momentum Shift Signal) with FVG confluence option.

Quality-of-life
---------------
- Clean-up of swept levels (kept as faint/dashed).
- Safe array handling to avoid runtime errors.
- Colors & label text customizable in settings.

Use
---
1) Map HTF liquidity and confluences.
2) Trade only when AEMA/SSMA bias aligns and structure confirms (BOS/CHoCH/MSS).
3) Target nearby liquidity/FVG/OB; avoid trades into opposing HTF levels.
Release Notes
==================================================
Premium & Liquidity Zones (PLZ) - v6
==================================================

What it does:
-------------
- Draws prior High/Low liquidity lines for Daily, Weekly, Monthly.
- Labels each line (bigger font):
• Daily HH/LL - <weekday>
• Weekly HH/LL - Week <num>
• Monthly HH/LL - <month abbr>
- Keeps labels “glued” to the right edge of their lines.
- Marks swept/invalidated levels and restyles them.
- Shows Premium/Discount zones between swing high/low.
- Detects structure events: BOS and CHoCH (swing + internal).
- Optional Order Blocks (internal & swing).
- Optional Fair Value Gaps (auto/manual threshold, extend right).
- Previous Day High/Low with labels.
- Plots SSMA fast/slow and Adaptive EMA (Kaufman).
- Signals: SSMA cross Buy/Sell with alerts.
- MSS (momentum shift) with optional FVG confirmation.
- Works reliably on all TFs (including 1-minute).

Key Updates in this build:
---------------------------
- Larger liquidity labels (size.small) for readability.
- Safe sticky-label updater (no out-of-bounds errors).
- Guards on label updates when arrays are empty.
- English labels are default with customizable colors.
- Adaptive EMA (Kaufman) included and plotted.
- SSMA cross signals + alerts retained.

Inputs (high level):
--------------------
- Configuration: toggle liquidity, label colors (D/W/M).
- Liquidity: widths and colors per timeframe.
- Structure: swings, BOS/CHoCH, internals, filters.
- Order Blocks: enable, show last N, filter method.
- Fair Value Gaps: enable, auto/manual, TF, extend bars.
- PDH/PDL: style and color.
- Premium/Discount: enable, colors.
- SSMA: fast/slow lengths, source, toggle.
- Signals: enable cross signals, text color.
- A-EMA: source, fast/slow lengths, ER length.
- MSS: enable, min body vs ATR, require FVG, lookback.

Alerts:
-------
- SSMA Bull Cross / Bear Cross
- Bullish BOS / Bearish BOS
- Bullish CHoCH / Bearish CHoCH
- MSS Bullish / MSS Bearish

Notes:
------
- Liquidity lines/labels update when a new HTF bar closes,
but remain visible on lower TFs (e.g., 1m).
- Purged levels are restyled and labels removed.
- Adaptive EMA uses an efficient ER calculation for stability.

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.