PROTECTED SOURCE SCRIPT
Zaktualizowano

Premium & Liquidity Zones By TradingSmurf ver.20250911

516
=========================================
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.
Informacje o Wersji
===============================================
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
Informacje o Wersji
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.
Informacje o Wersji
==================================================
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.
Informacje o Wersji
Minor bug fixes
Informacje o Wersji
Minor fixes with the date stamps.
Informacje o Wersji
Minor updates
Informacje o Wersji
minor updates
Informacje o Wersji
minor update
Informacje o Wersji
minor update
Informacje o Wersji
==============================
WHAT'S NEW IN THIS UPDATE
==============================

1. Liquidity Label Placement
- Choose where labels appear:
[Right of bars] [Left of bars] [Line Start] [Line Mid]

2. Per-Timeframe Control
- Separate label placement for Daily, Weekly, Monthly.

3. Offsets
- Adjustable left & right offsets (in bars).

4. Sticky Labels
- Labels now only move vertically with price,
keeping your chosen horizontal position.
Informacje o Wersji
==========================================================
Premium & Liquidity Zones — Update Summary
==========================================================

What’s New
---------------------------------------------------------
• Professional "Scalp Liquidity Map" Panel
- Compact, two-column design with monospaced alignment.
- Default text size = Small for a clean professional look.
- Consistent padding and separators for readability.

• Session-Persistent Status Logic (✓ / X)
- Each checklist item answers: "Has this been taken today?"
- Resets at new trading day; ✓ stays latched once satisfied.
- Fixes old behavior where status could revert back to X.

• VWAP Bias
- First row shows: VWAP BIAS: BULLISH / BEARISH / NEUTRAL
- Bias calculated from price vs Daily VWAP ± tolerance band.

• Ordered Liquidity Checks (exact order requested):
1) PDH / PDL → ✓ once PDH high or PDL low is swept
2) Prev. Session H/L→ ✓ once prev. session high/low taken
3) Asia Open → ✓ once price crosses Asia open (00:00)
4) London Open → ✓ once price crosses London open (03:00)
5) NY Open → ✓ once price crosses New York open (09:30)
6) Other Confluences→ Reserved row (e.g. round numbers, extras)
7) Micro BOS/CHoCH → ✓ once internal BOS/CHoCH occurs today
8) 2-of-3 OB/FVG/MSS→ ✓ once 2 of 3 signals confirmed today

• Robust "Taken" Trackers
- Implemented with persistent vars that reset daily.
- Latch true once event occurs; cannot revert intraday.
- Session opens captured at exact time, validated vs bar range.

---------------------------------------------------------
Result:
A clean, pro-grade Scalp Liquidity Map panel with ✓/X states,
session-awareness, VWAP bias, and ordered daily scalping checks.
==========================================================
Informacje o Wersji
minor changes

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.