Confluence Trend SignalsConfluence Trend Signals
The Confluence Trend Signals indicator is a comprehensive, multi-factor tool designed to identify high-probability trading setups by integrating five separate, proven technical analysis components. It generates clear "High Quality BUY" and "High Quality SELL" signals based on the alignment of these different trend and structure elements.-----Key Confluence Components
The indicator combines the following five components to calculate a final confluence score and trigger signals:
🪸 Coral Trend: Acts as the primary trend filter, using both a "Fast Coral" for entries and a "Slow Coral" for bias confirmation.
📏 Price % of Pivots: Measures price's current position relative to recent swing pivots (highs/lows) and includes an optional Higher Timeframe (HTF) Pivot filter for macro trend alignment.
📈 MACD: Utilizes a custom MACD to confirm directional momentum.
🧱 Smart Money Concepts (SMC) - Order Blocks: Detects both Swing and Internal Order Blocks, and checks if price is within "proximity" (defined by ATR) of a relevant unmitigated block.
📊 VWAP Bias: Filters trades based on price position relative to the Volume Weighted Average Price (VWAP), with a momentum bonus for rising/falling VWAP.
-----High Quality Signal Logic
A signal is generated only when a minimum confluence score is reached and specific gating conditions are met.
High Quality BUY Signal: Requires a Coral Bull Flip, high Pivot % > low Pivot %, MACD bullish alignment, proximity to a bullish Order Block, and price above VWAP (bullish bias).
High Quality SELL Signal: Requires a Coral Bear Flip, high Pivot % < low Pivot %, MACD bearish alignment, proximity to a bearish Order Block, and price below VWAP (bearish bias).
-----Advanced Trade Management
The indicator includes a robust risk management engine with multiple options:
Stop Loss (SL): Calculates a Stop Loss based on ATR (Average True Range) and includes an option for a Structure-Based SL placed beyond the nearest relevant Order Block or swing point.
Take Profits (TPs): Provides up to three Take Profit levels (TP1, TP2, TP3) based on multiples of the initial risk.
Exit Modes: Supports Trailing Stops (trailing to BE, TP1, TP2) or Fixed Exits with options for a single TP target or Partial Exits (scaling out at multiple TPs).
Confluence Decay Exit: A unique feature that closes the trade if the underlying directional confluence score drops below a dynamic or absolute threshold for a specified number of bars, aiming to "let winners run" until the core thesis is invalidated. مؤشر

Institutional 7-Point Checklist█ INSTITUTIONAL 7-POINT PRE-TRADE CHECKLIST v2.0 █
█ Pine Script® v6 █
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
OBJECTIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Most retail traders show up at 9:30 AM with no plan. They react to 5-minute noise and get chopped to pieces. This indicator solves that.
It runs a 7-point institutional checklist automatically — pulling data from the 4H, 1H, and daily timeframes — and displays a real-time pass/fail panel directly on your chart. Before you take a single trade, the panel tells you whether TODAY is even a trading day, what direction to expect, where to enter, and what to target.
The framework combines two proven concepts:
▸ 4H Chart Analysis — reading institutional expansion vs consolidation for structural bias
▸ Session Profiling — checking whether Asia or London reversed to classify New York as continuation or reversal
v2.0 adds the layers that give you complete market context without switching timeframes:
▸ Multi-timeframe liquidity mapping (Daily, Weekly, Monthly highs/lows)
▸ Anchored VWAP (Daily, Weekly, Monthly) for institutional cost basis
▸ Smart moving averages at the periods that actually matter per timeframe
▸ Midnight Open reference line
▸ Smart nearest-liquidity detection across all tiers
Everything new is an optional toggle. The default view stays clean — just the checklist, PDH/PDL, Daily VWAP, and the 4H 20 EMA. Power users turn on the layers they want.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE 7 CHECKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ 1. Is the 4H expanding?
Evaluates the last three completed 4H candles. "Expanding" means ≥2 candles have bodies larger than the expansion multiplier × ATR(20), AND the most recent candle has small wicks relative to its range. If the 4H is consolidating → no trade today.
✅ 2. Did the prior session reverse or consolidate?
Tracks Asia (6 PM – 2 AM ET) and London (2 AM – 5 AM ET) in real time. A session "reversed" if it swept a key level and closed back through it. "Consolidated" if its range was under 40% of the daily ATR.
✅ 3. Continuation or reversal day?
▸ Any prior session reversed → NY = CONTINUATION
▸ No session reversed → NY = REVERSAL
✅ 4. Nearest FVG (entry zone)
Scans the 1H for 3-candle Fair Value Gaps — unfilled imbalances from aggressive expansion. Identifies the nearest bullish or bearish FVG with its midpoint price. This is your entry zone.
✅ 5. Nearest external liquidity (target) — NEW: SMART MULTI-TF
Now scans across Daily, Weekly, and Monthly levels (whichever are enabled) and automatically identifies the closest liquidity pool above and below price. The panel shows the tier label (PDH, PWH, PMH, etc.) so you know which level matters most right now. Bigger pools = stronger magnets.
✅ 6. Has price swept external liquidity? (trigger) — NEW: ANY TIER
Monitors sweeps across all enabled tiers. If price takes out PWH while PDH hasn't been swept, that still counts — any tier sweep is a valid trigger. The panel lists exactly which levels have been swept today.
✅ 7. One-sentence bias (auto-generated)
Combines all findings into a single actionable statement:
"4H expanding bearish. NY=CONTINUATION. Pullback into FVG → target PDL."
NEW: CONTEXT ROW
Below the 7 checks, a context line shows price position relative to Daily VWAP and 4H 20 EMA. Example: "above VWAP | above 4H EMA" — a quick confluence check without reading the chart.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
NEW IN v2.0: LIQUIDITY HIERARCHY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Not all liquidity is equal. A daily level might produce a 10-point displacement on NQ. A weekly level might produce 50 points. A monthly level could fuel a full trend day.
▸ Previous Day H/L (PDH/PDL) — ON by default
Yesterday's range extremes. Stop losses from day traders. Blue dashed lines.
▸ Previous Week H/L (PWH/PWL) — OFF by default
Swing trader stops. Much larger pool than daily. Purple dashed lines.
▸ Previous Month H/L (PMH/PML) — OFF by default
Institutional swing and fund allocation levels. Orange solid lines (thicker for visual hierarchy).
▸ Midnight Open — OFF by default
Price at 00:00 ET. Directional separator for ICT-style analysis. Gray dotted line. Above midnight open = bullish lean, below = bearish lean.
Each tier has its own color and line weight so you can glance at the chart and instantly see which pool price is approaching. The smart detection in Checks 5 and 6 automatically picks the nearest level regardless of tier.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
NEW IN v2.0: ANCHORED VWAP
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VWAP shows where the majority of institutional money actually transacted. It's not just an average — it's the volume-weighted cost basis.
▸ Daily VWAP — ON by default (amber)
Anchored to today's open. The single most referenced level by institutional algorithms during NY session. When price is above VWAP, institutions are in profit and likely to defend it. Below = underwater.
▸ Weekly VWAP — OFF by default (purple)
Anchored to Monday's open. Broader lens on net bullish/bearish flow for the week. Confirms your 4H bias: if 4H is expanding bullish AND price is above weekly VWAP = confluence.
▸ Monthly VWAP — OFF by default (orange)
Background context. Rarely comes into play intraday, but when price tests monthly VWAP at a weekly liquidity level = high-conviction zone.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
NEW IN v2.0: MOVING AVERAGES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Each MA is chosen for a specific purpose at its timeframe. No filler MAs — every line earns its place on the chart.
▸ 5-MIN 9/21 EMA — execution pair — OFF by default (cyan / indigo)
After your sweep + displacement, the 5m 9 EMA crossing above/below the 21 EMA confirms micro order-flow shift. The gap between them acts as a dynamic FVG — separation = imbalance, convergence = equilibrium.
WHY 9 AND 21: The 9 EMA covers roughly 45 minutes — one micro session. The 21 EMA covers ~105 minutes — the 9:30–11:00 kill zone. Together they capture the rhythm of institutional execution.
▸ 1H 9/21 EMA — intraday pulse — OFF by default (cyan / indigo, stepline)
The 9 EMA represents one full trading session (~6.5 hours). If price rides the 1H 9 EMA during expansion = clean momentum. The 21 EMA covers about two trading days — the intraday trend anchor. Price whipping above/below the 1H 9 EMA = chop warning.
WHY 9 AND 21: On the 1H, 9 periods = one session's worth of candles. 21 periods ≈ two full sessions. These match the session profiling logic in Check 2 — you're seeing the same structure as numbers.
▸ 4H 20 EMA — swing direction — ON by default (green, stepline, thick)
This is the primary MA. It represents roughly one trading week. Institutional swing traders watch the 4H 20 EMA for pullback entries. When your expansion candles are pushing away from this level = strong momentum. When they're drifting back = fading expansion.
WHY 20: On the 4H chart, 20 periods = ~3.3 trading days. This captures the core weekly rhythm — the period where institutional swing positions are managed.
▸ DAILY 20 EMA — monthly trend — OFF by default (yellow, stepline)
Roughly one month of trading days. If price is above the D 20 EMA, the intermediate trend supports your intraday bias. Below it, your bullish setups have headwind.
WHY 20: 20 trading days ≈ 1 calendar month. This is the standard period institutional portfolio managers use for intermediate trend assessment.
▸ DAILY 50 SMA — quarterly trend — OFF by default (orange, stepline)
About 2.5 months of data. When the D 20 EMA is above the D 50 SMA = healthy trend. When they converge or cross = transition zone where 4H consolidation becomes more common. Background context, not a trade trigger.
WHY 50: 50 trading days ≈ one quarter. Fund managers and institutional desks use this as the boundary between "trending" and "mean-reverting."
IMPORTANT: Higher-timeframe MAs projected onto a 5-min chart appear as staircase lines (stepline style). This is correct — the staircase shows you exactly where the value was when the higher timeframe last printed. It's not a bug; it's a feature.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT APPEARS ON YOUR CHART
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DEFAULT VIEW (clean — what loads when you first add the indicator):
▸ Checklist panel with all 7 checks + context row
▸ PDH/PDL liquidity lines (blue dashed)
▸ FVG zone (green or red shaded box)
▸ Daily VWAP (amber line)
▸ 4H 20 EMA (green stepline)
▸ Summary badge: TRADE READY / WAIT FOR SETUP / NO TRADE TODAY
OPTIONAL LAYERS (toggle on in settings):
▸ PWH/PWL (purple dashed)
▸ PMH/PML (orange solid, thicker)
▸ Midnight Open (gray dotted)
▸ Weekly VWAP (purple line)
▸ Monthly VWAP (orange line)
▸ 5m 9/21 EMA pair (cyan/indigo)
▸ 1H 9/21 EMA pair (cyan/indigo stepline)
▸ D 20 EMA (yellow stepline)
▸ D 50 SMA (orange stepline)
▸ Price labels on all level lines
All colors are fully customizable in settings.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
FULL PROPERTIES / SETTINGS REFERENCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THRESHOLDS:
▸ Expansion multiplier (1.5) — body must exceed this × ATR(20). Raise for volatile instruments, lower for quieter ones.
▸ Max wick-to-range ratio (0.35) — candle must be cleaner than this threshold to count as expansion.
▸ 4H candles to evaluate (4) — how many candles the script considers for expansion profiling.
SESSIONS:
▸ Asia session (1800–0200) — overnight accumulation window
▸ London session (0200–0500) — primary reversal window
▸ New York session (0930–1600) — execution window
▸ Timezone (America/New_York) — also supports America/Chicago, Europe/London, Asia/Tokyo, UTC
LIQUIDITY LEVELS:
▸ Previous Day H/L (on) — blue dashed, width 2
▸ Previous Week H/L (off) — purple dashed, width 2
▸ Previous Month H/L (off) — orange solid, width 3
▸ Midnight Open (off) — gray dotted, width 1
▸ All colors are customizable per tier
ANCHORED VWAP:
▸ Daily VWAP (on) — amber, width 2
▸ Weekly VWAP (off) — purple, width 2
▸ Monthly VWAP (off) — orange, width 1
MOVING AVERAGES:
▸ 5m 9/21 EMA (off) — cyan fast / indigo slow
▸ 1H 9/21 EMA (off) — cyan fast / indigo slow, stepline
▸ 4H 20 EMA (on) — green, stepline, thick
▸ D 20 EMA (off) — yellow, stepline
▸ D 50 SMA (off) — orange, stepline
▸ All colors customizable
FAIR VALUE GAP:
▸ Plot FVGs on chart (on) — green box = bullish, red box = bearish
DISPLAY:
▸ Show checklist panel (on)
▸ Panel position (top_right) — 6 positions available
▸ Panel text size (small) — tiny / small / normal / large / huge
▸ Header/summary text size (normal) — controls title and badge
▸ Show price labels on levels (on) — small tags at the right edge of each line
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE — STEP BY STEP
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETUP:
1. Add to a 5-minute chart (NQ, ES, or your instrument)
2. The panel auto-populates from 4H, 1H, and daily data — no timeframe switching needed
3. Toggle on additional layers as desired in settings
MORNING ROUTINE:
6:00 AM — Open chart. Panel shows:
▸ Check 1: 4H expanding? If ❌ → no trade today, done
▸ Check 2: What did Asia and London do?
▸ Check 3: Continuation or reversal day?
▸ Context: Price vs VWAP and 4H EMA alignment
6:15 AM — Read auto-generated bias (Check 7). Write it down.
9:15 AM — Panel updates:
▸ Check 4: FVG present? Zone is shaded on chart
▸ Check 5: Nearest liquidity above/below with tier labels
9:30 AM — Watch for Check 6 to flip green (sweep at any tier)
TRADE READY (all checks green):
▸ Drop to 5-min for timing
▸ Wait for displacement + CISD in your bias direction
▸ Use 5m 9/21 EMA cross as micro-confirmation (if enabled)
▸ Enter after confirmation
▸ Stop above/below the sweep
▸ Target the opposite liquidity pool
10:30 AM — In profit, stopped out, or no setup. Done for the day.
KEY RULES:
▸ Check 1 is ❌ → close the laptop
▸ Can't write bias in one sentence → no trade
▸ 0–2 trades per day max
▸ The indicator identifies CONDITIONS, not entries. Final execution is yours.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RECOMMENDED SETUPS BY STYLE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MINIMALIST (learning the framework):
ON: Checklist panel, PDH/PDL, FVG, Daily VWAP, 4H 20 EMA
OFF: Everything else
→ Clean chart, just the essentials. Master the 7 checks first.
INTERMEDIATE (adding confluence):
ADD: PWH/PWL, Midnight Open, 5m 9/21 EMA pair
→ Weekly liquidity for bigger targets, midnight open for directional lean, execution MAs for timing entries.
FULL CONTEXT (experienced trader):
ADD: PMH/PML, Weekly VWAP, 1H 9/21 EMA, D 20 EMA, D 50 SMA
→ Complete institutional map. Every level you might need is on one chart. Use price labels (on) to read values at a glance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Three built-in alert conditions:
▸ "4H began expanding" — morning wake-up call: today is potentially a trade day
▸ "External liquidity swept" — fires on the first sweep of ANY enabled tier (PDH, PWH, PMH, etc.)
▸ "ALL CHECKS PASSED" — all 7 conditions met. Eyes on chart — setup is live.
Set via: right-click chart → Add alert → select indicator → choose condition
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MA PERIOD RATIONALE — WHY THESE NUMBERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Every period was chosen to align with a real institutional time horizon:
5m 9 EMA = ~45 min = one micro-session (the opening drive)
5m 21 EMA = ~105 min = the 9:30–11:00 AM kill zone window
1H 9 EMA = ~1.4 days = one full trading session
1H 21 EMA = ~3.2 days = two full sessions (matches session profiling)
4H 20 EMA = ~3.3 days = one trading week's core rhythm
D 20 EMA = ~1 month = intermediate trend (monthly portfolio reviews)
D 50 SMA = ~2.5 months = quarterly trend (fund allocation cycles)
The 4H 20 EMA is ON by default because it's the single most useful MA for this framework — it directly represents the timeframe the entire strategy is built on.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
UNDERLYING ALGORITHM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The entire framework rests on one cycle:
External liquidity → Internal liquidity → External liquidity
(Sweep stops) → (Fill the FVG) → (Target opposite stops)
▸ The 4H chart tells you the DIRECTION
▸ The session profile tells you the TIMING
▸ The VWAP tells you the INSTITUTIONAL COST BASIS
▸ The MAs tell you whether STRUCTURE supports your bias
▸ The 5-minute chart is for EXECUTION ONLY
You read the book from chapter 1, not from the last page.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TUNING TIPS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
"Check 1 always red" — lower expansion multiplier to 1.2 or 1.0. Different instruments have different volatility profiles.
"FVG never shows" — there's no unfilled 1H gap right now. Wait for the next expansion candle.
"Session labels wrong" — set the Timezone dropdown to match your chart's exchange timezone.
"VWAP looks flat" — if your instrument has no volume data (some forex/CFD feeds), VWAP defaults to HLC3. Switch to a data feed that provides volume, or disable VWAP.
"Too many lines on chart" — start with the Minimalist setup (see Recommended Setups). Only toggle on new layers after you've used the basic setup for at least a week.
"4H EMA appears as staircase" — this is correct. Higher-timeframe data on a lower-timeframe chart updates in steps. The staircase shows you the exact value at the last 4H close.
"Panel covers price" — change panel position to a different corner, or reduce text size.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TIMEFRAMES & INSTRUMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Designed for: 5-minute chart (execution timeframe)
Internally references: 4H (bias), 1H (FVG), Daily/Weekly/Monthly (liquidity + MAs)
Works on: Futures (NQ, ES, YM, RTY), Forex, Crypto, Equities
Best suited for: Intraday traders with a 9:30–11:00 AM ET window
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY PINE SCRIPT v6
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This script is written in Pine Script v6 — the latest version of TradingView's language (released Nov 2024). Benefits over v5:
▸ Strict boolean logic — booleans are always true or false, never na. Eliminates an entire class of edge-case bugs in complex conditions like the multi-check panel.
▸ Short-circuit evaluation — and/or operations stop evaluating the moment the result is determined. Significant performance improvement for scripts with many compound conditions (which this checklist uses heavily).
▸ Future-proof — all new TradingView features going forward are v6 exclusive. Dynamic requests, footprint data, enhanced arrays, and upcoming additions will only work on v6.
▸ Cleaner integer division — 5/2 now correctly returns 2.5 instead of 2. Important for any ratio calculations (expansion multiplier, wick ratios).
If you're migrating from the v1 script (which was v5), the logic is identical — v6 just makes it faster and more reliable.
x.com/tsmake
Developed after reading: x.com
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is an EDUCATIONAL TOOL designed to enforce trading discipline. It does NOT generate buy/sell signals, does NOT constitute financial advice, and does NOT guarantee profitability. The checklist identifies structural conditions — the final entry decision, risk management, and position sizing are entirely your responsibility.
Trading futures, equities, options, forex, and crypto carries significant risk of loss. Past performance does not guarantee future results. Backtest thoroughly, start with a simulator, and never risk capital you cannot afford to lose. Consult a licensed financial advisor before making trading decisions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TAGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ICT, Smart Money, Liquidity, Fair Value Gap, FVG, Session Profile, VWAP, PDH, PDL, PWH, PWL, PMH, PML, Institutional, Checklist, Pre-Market, Bias, External Liquidity, Internal Liquidity, Moving Average, 4H, NQ, ES, Futures, Forex مؤشر

Compression Pressure Map [AGPro Series]Compression Pressure Map
⚡ Overview
────────────────────────────────────────
Compression Pressure Map is a structural context tool that measures how tightly price is compressing against the nearest pivot-based level, and evaluates two behavioral scenarios in parallel: breakout anticipation and reversal watch. The output is a visual map of where pressure is accumulating — rendered as an evolving pressure zone that moves through BUILDING, ARMED and READY states.
This is not a signal engine, not a forecast, and not a trading strategy. It is a visualization layer that answers a single question: where is compression building around the active level, and in which direction is that pressure leaning.
🧭 Unique Edge
────────────────────────────────────────
Most compression indicators reduce behavior to a single direction. CPM separates compression into two parallel scoring engines that run on the same structural core:
🔹 Breakout Anticipation — pressure building for a directional break through the level
🔹 Reversal Watch — pressure building for a rejection at the level
In Auto mode the dominant scenario is rendered on the chart (cleaner visual), while the panel shows both scores side by side for transparency. Power users can lock the engine to a single mode. The active level is stabilized with a clustered pivot refinement and a drift-control lock, so the displayed level stays consistent instead of jumping on every new pivot. A compression gate keeps the pressure score aligned with the compression core: when compression is weak, pressure cannot escalate into high states.
🧪 Methodology
────────────────────────────────────────
The pressure score is a weighted composite of six structural components, measured on the active scenario:
🔹 Range compression (short-window range vs long-window range)
🔹 ATR compression (short-window ATR vs long-window ATR)
🔹 Body tightness (average body size relative to average range)
🔹 Quiet-bar persistence (how many recent bars qualify as calm)
🔹 Proximity to the active level (normalized by ATR)
🔹 Directional posture (slope, close position in bar)
Reversal scoring adds wick-rejection weight at the active level (average lower-wick size for bull reversals, upper-wick size for bear reversals). Breakout scoring adds approach slope weight toward the active level. A shared EMA smoothing step produces calmer state transitions. A dominance margin and cooldown prevent rapid scenario flipping. The final score is driven through a BUILDING → ARMED → READY state machine with hysteresis on the zone visibility to avoid flicker.
🎯 Signals & Alerts
────────────────────────────────────────
The state machine produces four transition alerts plus two pace alerts:
🔹 Pressure Armed Near Level — score crosses the armed threshold with an active scenario
🔹 Ready Zone Reached — score crosses the ready threshold with an active scenario
🔹 Armed Bullish / Bearish Scenario — directional armed transitions
🔹 Ready Bullish / Bearish Scenario — directional ready transitions
🔹 Pressure Rising — score is climbing while the zone is live
🔹 Pressure Released — the active scenario resolves (through the level or by decay)
On the chart, state transitions are marked with discrete A and R markers on the active side. A score label near price always shows the current pressure value, bias and state for quick reading without opening the panel.
⚙️ Key Inputs
────────────────────────────────────────
🔹 Engine Mode — Auto, Breakout Anticipation, or Reversal Watch
🔹 Compression Length — main lookback for range, ATR and body tightening
🔹 Trigger Distance (ATR) — how close price must be to a level to start evaluating
🔹 Hold Distance (ATR) — how far price can drift before the active context is cleared
🔹 Pivot Left/Right and Cluster Tolerance — pivot strength and blending behavior
🔹 Compression Gate and Gate Threshold — compression-first discipline control
🔹 Armed / Ready / Zone On / Zone Off Thresholds — state machine calibration
🔹 Full visual controls — zone width, band extend, line width, label size, panel position and font
All defaults are tuned for mid-volatility crypto pairs on 1H and 4H timeframes, but the engine adapts across symbols and timeframes through its ATR-normalized distance logic.
📘 How to Use
────────────────────────────────────────
🔹 Open the indicator in Auto mode and observe which scenario the panel highlights
🔹 Wait for the pressure zone to appear on the chart (BUILD → LIVE transition)
🔹 Read the state: BUILDING means the setup is forming, ARMED means the setup is mature, READY means compression and proximity are both at peak
🔹 Cross-reference with your own structural read — CPM describes the compression landscape, the decision is yours
🔹 If you prefer one behavioral lens only, lock the engine to Breakout Anticipation or Reversal Watch
🔹 Use the Compression Gate to enforce compression-first discipline — when compression is weak, the pressure score stays in WATCH
🔹 The tool is timeframe-agnostic; try it on 15m, 1H, 4H and 1D to see how compression contexts nest
CPM is designed to sit alongside your strategy, not replace it. It maps the compression field; you read the context.
⚠️ Limitations & Transparency
────────────────────────────────────────
🔹 CPM is a context visualization tool, not a signal generator — it does not issue buy or sell calls
🔹 The pressure score is a structural measurement, not a probability estimate
🔹 State transitions describe the compression field at the moment they print; they do not imply what happens next
🔹 Active level refinement is intentionally conservative — the level may feel slower to update than raw pivots, by design
🔹 Very high volatility regimes may keep the compression score low for extended periods, which is the intended behavior
🔹 The tool is deterministic on closed bars; intrabar values are provisional until bar close
CPM is released as Public, Open-source under MPL 2.0. The source is fully readable and auditable.
🛡️ Risk Disclosure
────────────────────────────────────────
This indicator is published for educational and analytical purposes only. It is not financial advice, not a trading strategy, and not a recommendation to buy or sell any asset. Past behavior of any level or pressure state does not predict future behavior. Markets carry risk of loss; users are solely responsible for their own decisions and risk management. Always do your own research and consider consulting a qualified professional before making trading or investment decisions. مؤشر

Delta Volume Structure [CLEVER]📌 Overview
Concept and Objective
Delta Volume Structure (DVS) is an analytical overlay tool developed to model directional volume pressure using standard OHLCV candle data. The core concept of the script is to estimate how trading volume may be distributed relative to price movement inside each bar and across broader session structures.
Traditional volume indicators typically display total traded volume per candle without distinguishing directional participation. DVS approaches this limitation by applying structured estimation logic that attempts to approximate buying and selling pressure based on measurable candle characteristics such as range, body position, and wick structure. The goal is not to replicate true bid/ask transaction data, but to provide a consistent, rule-based framework for interpreting volume behavior within the constraints of standard chart data.
The primary objective of the script is to enhance contextual analysis of price action. Instead of producing automatic trade entries or predictive signals, DVS is designed to help users evaluate:
Relative strength of directional participation
Imbalance between estimated buying and selling pressure
Momentum shifts reflected in cumulative delta flow
Structural pressure development during a session
Potential absorption or exhaustion characteristics
All calculations are derived exclusively from historical OHLCV data available on the active chart. The script does not access external order flow feeds, bid/ask transaction streams, or broker-specific execution data. As a result, delta values represent modeled approximations rather than confirmed executed trade-side data.
The tool is structured to support analytical decision-making rather than replace it. Its objective is to provide additional volume-based context alongside price structure, allowing users to assess how participation dynamics may align or diverge from visible price movement.
DVS is intended for educational and analytical use. It does not provide financial advice, guaranteed outcomes, or performance claims. Users are encouraged to apply independent judgment and appropriate risk management when interpreting its outputs.
📐 Delta Estimation Framework
The Delta Estimation Framework forms the computational foundation of the script. Its purpose is to approximate directional volume pressure using only standard OHLCV (Open, High, Low, Close, Volume) candle data available on the chart.
Since true bid/ask transaction data is not accessible within standard chart feeds, the framework does not attempt to replicate actual executed buy and sell orders. Instead, it applies rule-based mathematical modeling to estimate how total candle volume may be proportionally distributed between upward and downward price movement.
1️⃣ Directional Volume Modeling Approach
The framework provides multiple configurable estimation methods. Each method applies a different interpretation of candle structure to assign directional bias to volume.
• OHLC Proportional Distribution
In this model, volume allocation is influenced by the candle’s internal range positioning. The relationship between open, high, low, and close is used to estimate how much of the range reflects upward displacement versus downward displacement. Volume is then proportionally distributed based on this relative movement within the candle’s total range.
This approach attempts to reflect intrabar structural balance rather than relying solely on net bar direction.
• Close vs Open Allocation
This simplified model assigns directional bias based on whether the closing price is above or below the opening price. If the candle closes higher than it opens, volume is estimated as predominantly positive delta. If it closes lower, volume is estimated as predominantly negative delta.
This method prioritizes net directional outcome rather than internal range structure.
• Wick-Weighted Estimation
The wick-weighted model considers the relationship between candle body and upper/lower wicks. Larger lower wicks may indicate rejection of lower prices, while larger upper wicks may indicate rejection of higher prices. Volume distribution is adjusted proportionally according to body-to-wick structure.
This model attempts to incorporate intrabar rejection characteristics into directional estimation.
2️⃣ Delta Calculation
For each candle, estimated buy volume and sell volume are derived using the selected allocation model.
Delta is calculated as:
Estimated Buy Volume − Estimated Sell Volume
The result represents a modeled directional imbalance for that bar.
It is important to note that delta values generated by this framework are estimations derived from price structure and total volume. They do not represent confirmed trade-side execution.
3️⃣ Optional Smoothing and Noise Control
To reduce short-term volatility in delta readings, optional smoothing can be applied using configurable moving average logic. This allows users to balance responsiveness against stability depending on timeframe and instrument behavior.
Smoothing does not introduce forward-looking data and operates strictly on historical bars.
4️⃣ Cumulative Delta Integration
Individual bar delta values can be aggregated into cumulative delta (CVD). The framework supports configurable reset conditions such as:
Continuous accumulation
Daily reset
Weekly reset
This enables users to evaluate directional pressure across different structural horizons.
Cumulative calculations are derived solely from previously calculated delta values and do not incorporate future data.
5️⃣ Framework Limitations
Because the estimation logic is based entirely on OHLCV candle structure:
It does not use bid/ask execution data.
It does not access order book information.
It does not represent confirmed institutional order flow.
It reflects modeled approximations rather than transaction-level precision.
The framework is designed to provide structured analytical context within the constraints of available chart data.
Summary
The Delta Estimation Framework offers a configurable, rule-based system for approximating directional volume pressure using measurable candle characteristics. Its objective is to enhance contextual interpretation of participation dynamics while remaining fully dependent on standard historical data.
It is intended for analytical and educational use and should be interpreted alongside independent market structure analysis and risk management practices.
📊 Cumulative Delta and Session Structure
Conceptual Foundation
Cumulative Delta (CVD) within this script is designed as a structured aggregation of the previously calculated per-bar delta values. Rather than analyzing directional imbalance on a single candle basis, cumulative delta provides a running total of modeled buy–sell pressure over a defined period.
The objective is to observe how directional participation evolves across time, not to predict future price movement or replicate institutional order flow. All calculations rely strictly on historical OHLCV data available on the chart.
1️⃣ What Cumulative Delta Represents
Each bar produces an estimated delta value derived from the selected delta estimation framework.
Cumulative Delta is calculated as:
Previous CVD + Current Bar Delta
This produces a continuous directional pressure curve that reflects how modeled imbalance builds or unwinds over time.
It is important to clarify:
CVD is a derived analytical metric.
It does not represent confirmed executed buy/sell volume.
It does not access bid/ask trade-level data.
It reflects structured modeling within data limitations.
2️⃣ Session-Based Structure
To improve contextual clarity, the script allows cumulative delta to operate within defined structural boundaries. Instead of accumulating indefinitely, CVD can reset based on session logic.
Supported structural modes may include:
• Continuous Mode
CVD accumulates across all visible historical bars without reset.
Useful for observing long-term directional participation trends.
• Daily Reset
CVD resets at the beginning of each trading day.
This isolates intraday pressure dynamics.
• Weekly Reset
CVD resets at the beginning of each trading week.
This allows mid-term directional evaluation without long-term carryover distortion.
Reset logic is time-based and relies strictly on chart session boundaries. No forward-looking data is used.
3️⃣ Why Session Segmentation Matters
Without structural segmentation, cumulative data may become skewed by distant historical activity. Session-based resets allow users to:
Compare relative strength between trading sessions
Evaluate intraday participation shifts
Identify whether directional pressure is sustained or fading
Contextualize price movement within a defined structural window
This segmentation enhances analytical clarity but does not alter the underlying delta estimation method.
4️⃣ Divergence Observation
When price forms higher highs while cumulative delta fails to confirm, or when price forms lower lows while delta stabilizes, users may observe structural divergence patterns.
However:
The script does not label signals as predictive.
Divergence should be interpreted as contextual information.
No guarantee of reversal or continuation is implied.
All interpretations remain discretionary.
5️⃣ Internal Data Handling
The cumulative calculation process:
Uses only previously calculated delta values
Avoids repainting logic
Does not reference future bars
Updates strictly at bar close (unless user enables real-time intrabar updates within platform limits)
This ensures transparency and compliance with platform standards.
6️⃣ Structural Limitations
Because cumulative delta is derived from modeled directional allocation:
It does not represent actual order flow imbalance.
It does not replace exchange-level footprint data.
It may behave differently across assets with varying liquidity profiles.
Users should consider timeframe, instrument volatility, and volume characteristics when interpreting results.
Summary
Cumulative Delta and Session Structure within this script provide a rule-based framework for tracking modeled directional participation across defined structural windows. By combining delta aggregation with session segmentation, the tool aims to enhance contextual analysis of market pressure while remaining fully dependent on historical chart data.
It is intended for analytical and educational use and should be combined with independent risk management and broader market structure evaluation.
🎯 Advanced Pressure and Imbalance Metrics
Conceptual Objective
Advanced Pressure and Imbalance Metrics are designed to extend basic delta analysis into a more structured interpretation of participation dynamics. Instead of observing raw delta values alone, this framework evaluates how directional imbalance behaves relative to price structure, volatility, and session boundaries.
The purpose is not to generate guaranteed signals or predictive outcomes, but to provide layered analytical context derived strictly from historical OHLCV data.
All metrics remain model-based estimations and do not represent confirmed transaction-side execution.
1️⃣ Relative Delta Strength
Raw delta values can vary significantly across assets and timeframes. To improve interpretability, the script may normalize or scale delta readings relative to:
Average session volume
Recent rolling delta averages
Candle range expansion
This produces a contextual pressure measurement rather than an absolute number.
For example:
A moderate delta reading during low volume conditions may represent stronger relative pressure.
A large absolute delta during extreme volatility may represent balanced participation when scaled proportionally.
Normalization helps reduce distortion without introducing forward-looking logic.
2️⃣ Imbalance Intensity Mapping
Imbalance intensity refers to the magnitude of directional pressure relative to structural price movement.
The script may evaluate:
Delta relative to candle range
Delta relative to recent volatility
Acceleration or deceleration of cumulative delta slope
This allows identification of:
Sustained directional participation
Exhaustion behavior
Gradual absorption
Pressure compression zones
These observations are descriptive, not predictive.
3️⃣ Price–Delta Structural Relationship
Rather than treating delta in isolation, the framework evaluates how imbalance interacts with price behavior.
Common structural observations may include:
• Expansion with Participation
Price moves directionally while delta confirms consistent imbalance.
• Expansion with Weak Participation
Price continues higher or lower while delta flattens or contracts.
• Compression Before Break
Price consolidates while delta gradually builds in one direction.
These conditions are analytical interpretations and should not be treated as automatic trade signals.
4️⃣ Delta Acceleration & Deceleration
Beyond absolute values, the framework may assess the rate of change of delta.
This includes:
Increasing slope of cumulative delta
Sudden spike in single-bar imbalance
Progressive reduction in directional intensity
Acceleration metrics attempt to capture changes in participation tempo rather than static pressure.
All calculations are derived from previously computed delta values and do not reference future data.
5️⃣ Session-Weighted Pressure Context
When session segmentation is enabled, imbalance metrics are evaluated within the boundaries of the active session.
This allows users to observe:
Early session dominance
Mid-session absorption
Late-session exhaustion patterns
Session weighting ensures that pressure analysis reflects local structural conditions rather than distant historical accumulation.
6️⃣ Visual Representation Logic
Advanced pressure metrics may be displayed using:
Gradient-based histogram intensity
Heatmap-style background zones
Delta slope curves
Threshold-based markers
Visual elements are representations of calculated data and do not modify underlying calculations.
All visual updates occur using historical bar information only.
7️⃣ Limitations and Data Constraints
These metrics operate within the following constraints:
No bid/ask level trade data
No order book depth
No access to tick-level execution classification
Dependent on candle-based modeling
As such, the imbalance framework reflects structured estimation rather than exchange-confirmed order flow.
Behavior may vary across instruments with differing liquidity profiles.
Analytical Intent
The Advanced Pressure and Imbalance Metrics are designed to:
Provide layered context to delta behavior
Highlight participation shifts
Enhance structural observation within sessions
Support discretionary analysis
They are not designed to guarantee profitability, predict reversals, or replace independent risk management practices.
Summary
The Advanced Pressure and Imbalance Metrics expand basic delta modeling into a structured evaluation of participation strength, acceleration, and structural interaction with price. All calculations remain fully derived from historical OHLCV data and operate within clearly defined modeling limitations.
The framework is intended for analytical and educational use and should be interpreted alongside broader market structure analysis.
📉 Divergence and Structural Detection
Conceptual Foundation
Divergence and Structural Detection within this framework is designed to evaluate the relationship between modeled directional pressure (delta / cumulative delta) and visible price structure.
The objective is not to predict reversals or confirm future price movement, but to identify conditions where price expansion and participation pressure are no longer aligned. These structural differences may provide analytical context for discretionary decision-making.
All divergence calculations rely strictly on previously computed delta values and historical OHLCV data.
1️⃣ What Structural Divergence Represents
Divergence occurs when:
Price forms a new structural high while cumulative delta fails to form a corresponding high
Price forms a new structural low while cumulative delta fails to form a corresponding low
This indicates a potential imbalance between visible price movement and modeled participation pressure.
It is important to clarify:
Divergence is an observational condition, not a predictive signal
It does not guarantee reversal
It does not confirm exhaustion
It reflects structural mismatch within historical data
2️⃣ Types of Divergence Observed
• Bearish Structural Divergence
Price prints higher highs while cumulative delta forms lower highs or flattens.
Interpretation context:
Participation intensity may be weakening relative to price expansion.
This does not imply immediate downside movement.
• Bullish Structural Divergence
Price prints lower lows while cumulative delta forms higher lows or stabilizes.
Interpretation context:
Directional selling pressure may be reducing relative to price decline.
This does not imply guaranteed upside reversal.
• Hidden Structural Divergence
In some configurations, continuation-type divergence may also be observed:
Price forms higher low while delta forms lower low
Price forms lower high while delta forms higher high
These observations reflect structural shifts in participation relative to pullbacks.
All divergence types are derived from swing comparisons within defined lookback windows.
3️⃣ Swing Detection Methodology
Structural comparisons require identification of local swing points in price and cumulative delta.
Swing detection may use:
Configurable lookback periods
Fractal-based high/low recognition
Pivot confirmation logic
Range-based filtering
All pivot detection operates using confirmed historical bars only. No future data or repainting logic is used beyond normal pivot confirmation delay.
4️⃣ Structural Strength Filtering
To reduce noise, divergence logic may incorporate filtering conditions such as:
Minimum delta magnitude threshold
Minimum price swing distance
Session-bound comparison
Volatility-adjusted swing qualification
This ensures divergence is evaluated within meaningful structural movement rather than minor fluctuations.
Filtering enhances clarity but does not eliminate false positives.
5️⃣ Multi-Session Context
When session segmentation is enabled, divergence may be evaluated:
Within the active session
Across session boundaries
Relative to prior session cumulative extremes
This allows contextual interpretation of whether divergence reflects intraday imbalance or broader structural shift.
6️⃣ Visualization Logic
Divergence detection may be displayed through:
Connecting swing lines
Highlighted pivot markers
Structural labeling
Subtle background indication
Visual representation does not alter the underlying delta computation.
All signals are plotted using confirmed bar data to maintain transparency.
7️⃣ Practical Interpretation Considerations
Divergence should be evaluated alongside:
Market structure (trend vs range)
Volatility regime
Volume expansion or contraction
Higher timeframe context
Divergence in isolation does not provide sufficient confirmation for trade execution.
8️⃣ Limitations
Because delta itself is modeled from OHLCV data:
Divergence reflects modeled imbalance, not confirmed order flow
It does not access tick-level trade classification
Results may vary across assets with different liquidity structures
Short timeframes may produce higher noise frequency
Users should adjust structural sensitivity according to timeframe and instrument behavior.
Summary
The Divergence and Structural Detection module evaluates the relationship between price swings and modeled cumulative delta behavior. By identifying structural mismatches between price movement and directional pressure, the framework provides contextual insight into participation dynamics.
All calculations are historical, rule-based, and non-predictive in nature. The feature is intended for analytical and educational use and should be combined with independent market structure analysis and disciplined risk management.
🧩 Dashboard Architecture
Conceptual Overview
The Dashboard Architecture in this script is designed as a structured information layer that consolidates multiple analytical outputs into a single, readable interface. Instead of displaying isolated indicators separately, the dashboard organizes delta, volume, cumulative metrics, and structural signals into a unified layout.
The objective is to improve readability and decision context by presenting computed values in a compact format. It does not introduce new predictive logic; it only visualizes already calculated data in a structured form.
All displayed values are derived from historical OHLCV-based calculations within the script.
1️⃣ Core Design Philosophy
The dashboard follows a multi-row, multi-column structured grid system. Each cell represents a specific analytical metric, grouped by functional categories such as:
Delta and volume behavior
Cumulative delta structure
Imbalance and participation metrics
Trend and momentum context
Session-based statistics
This modular layout ensures that each category remains visually separated while still contributing to an integrated market view.
2️⃣ Multi-Layer Information Structure
The dashboard is organized into layered rows, where each row represents a different level of analytical depth:
• Primary Layer (Core Metrics)
This layer focuses on immediate market pressure representation, such as:
Delta values
Buy/sell proportion
Imbalance ratio
Aggregated pressure score
These values reflect short-term participation structure.
• Secondary Layer (Behavioral Context)
This layer expands interpretation by including:
Cumulative delta status
Trend classification
Momentum state
Strength scaling of participation
It provides context to raw pressure readings without altering their computation.
• Structural Layer (Session & Flow Context)
This layer focuses on broader structural behavior:
Session cumulative delta
Flip counts and directional shifts
Institutional footprint flags
Absorption and climax counts
It helps in understanding how market behavior evolves over time within a session boundary.
• Diagnostic Layer (Pressure Visualization)
This layer translates numeric relationships into readable classifications such as:
Strong / weak participation
Balanced / imbalanced flow
High / low volatility pressure states
Streak-based directional behavior
These classifications are derived from thresholds and ratios, not external data.
3️⃣ Data Aggregation Logic
The dashboard does not compute raw indicators independently. Instead, it aggregates already calculated internal variables, such as:
Delta (bar-level directional estimation)
Cumulative delta (session-based accumulation)
Volume averages (rolling statistical baseline)
Price structure metrics (range, position, body size)
This ensures that the dashboard remains a visualization layer rather than a computation engine.
4️⃣ Dynamic Update Mechanism
All dashboard values update in real-time based on completed bar data. The update process follows these principles:
No forward-looking calculations
No repainting beyond standard bar confirmation behavior
Updates occur only when new bar data is confirmed
Session resets apply when configured time boundaries are reached
This maintains consistency between plotted data and displayed values.
5️⃣ Visual Hierarchy System
The dashboard uses a structured visual hierarchy to improve readability:
Color coding distinguishes bullish, bearish, and neutral conditions
Font emphasis highlights key metrics
Section separators visually isolate analytical groups
Grid alignment ensures consistent comparison across metrics
The visual design supports interpretation but does not influence calculations.
6️⃣ Session Integration Layer
Session-based logic plays a key role in dashboard behavior. Metrics are optionally reset or segmented based on:
Daily session boundaries
Weekly session boundaries
Continuous accumulation mode
This allows the dashboard to reflect either intraday behavior or extended structural flow depending on configuration.
7️⃣ Performance and Optimization Considerations
To maintain efficiency:
Computations are reused rather than recalculated where possible
Rolling functions are applied with fixed lookback windows
Table updates are optimized through structured cell updates
No unnecessary external data calls are used
This ensures stable performance even with high-frequency updates.
8️⃣ Interpretation Boundaries
The dashboard is a visualization framework only. It does not:
Predict future price movement
Guarantee trade outcomes
Replace market structure analysis
Access real order book data
All displayed insights are derived strictly from historical OHLCV-based calculations.
Summary
The Dashboard Architecture provides a structured visualization layer that organizes multiple delta-based and volume-based metrics into a unified analytical interface. It enhances readability by grouping related market behavior indicators into a clean, hierarchical grid system while maintaining strict reliance on historical data inputs.
The system is designed for analytical clarity and observational context rather than predictive functionality, ensuring compliance with platform standards and maintaining transparency in data representation.
📌 How It Works
⚙️ Core Concept
The core idea is that the market is not interpreted through single candle values or simplified price points, but as a continuous intrabar auction process where buyers and sellers actively compete at every price level. Instead of treating Open, High, Low, and Close as summary values, each candle is analyzed as a full internal price journey.
📊 Intrabar Price Path Logic
Every candle is assumed to contain a complete price path rather than a single directional move. This means price is considered to have traveled through multiple levels within the candle, creating micro-interactions of buying and selling. These internal movements are used to reconstruct how activity was distributed across price levels.
🔥 Volume Distribution Mechanism
Instead of assigning volume to only one price point, volume is distributed across the entire path of the candle. Each segment of price movement receives a proportional share of volume based on how the market behaved during that movement. This creates a more accurate representation of real participation in the market.
🎯 Market Behavior Interpretation
This structure helps identify hidden market behavior that traditional candle analysis cannot show. It reveals where liquidity was actively consumed, where acceptance occurred, and where rejection started. Essentially, it exposes the underlying order flow behavior behind each candle.
🧠 Final Understanding
Overall, the system is designed to combine price action with intrabar volume distribution, allowing the market to be read as an auction-based structure rather than a simple sequence of candles. This makes it possible to understand institutional-level activity more clearly and accurately.
⚙️ Core Concept
📌 Market as an Auction System
The market is best understood as a continuous auction where buyers and sellers constantly compete to agree on price. Every candle represents a mini-auction session rather than a simple directional move. Price is not random; it is the outcome of repeated negotiations between aggressive buyers and aggressive sellers at different levels.
📊 Price Discovery Process
In this auction system, price continuously moves to find areas of acceptance and rejection. When buyers dominate, price is pushed upward until sellers step in. When sellers dominate, price is pushed downward until buyers absorb the supply. This ongoing interaction forms the structure of price discovery within every candle.
🔥 Liquidity Interaction Model
Each price level inside a candle represents a point where liquidity is tested. The market does not move in a straight line; it moves by consuming available liquidity step by step. Strong participation at certain levels indicates acceptance, while weak participation indicates rejection zones.
🎯 Imbalance Between Buyers and Sellers
The core driver of movement is imbalance. When buying pressure outweighs selling pressure, the auction shifts upward. When selling pressure dominates, the auction shifts downward. This imbalance is what creates trends, reversals, and consolidations in the market.
🧠 Final Understanding
Ultimately, viewing the market as an auction system means understanding that every price movement is the result of real-time competition between buyers and sellers. Price only changes when one side becomes stronger than the other, making market structure a direct reflection of underlying order flow behavior.
📌 How It Is Used
⚙️ Core Usage Idea
This system is used to read the market as a liquidity-driven auction, where the main focus is not prediction based on patterns, but interpretation of who is in control (buyers or sellers) at specific price zones. Traders use it to understand where real participation is happening and where the market is likely to react due to imbalance.
📊 Identifying High-Probability Zones
One of the primary uses is to detect important price zones such as high-volume areas, value areas, and low-volume gaps. These zones act as decision points where price either continues its trend or reverses. Traders use these areas to plan entries and exits based on acceptance or rejection of price.
🔥 Understanding Market Pressure
The system is used to measure buying and selling pressure through volume distribution and delta behavior. When buying pressure consistently dominates at higher levels, it signals bullish strength. When selling pressure dominates at lower levels, it signals bearish control. This helps in reading real market intent rather than guessing direction.
🎯 Entry and Exit Timing
Traders use this structure to refine timing. Entries are typically planned at points where the market shows imbalance shift or rejection from low-volume zones. Exits are often planned near high-volume nodes or value boundaries where price is likely to slow down or consolidate.
📐 Trend Continuation and Reversal Detection
This approach is also used to identify whether a trend is strong or weak. If volume supports the direction consistently, the trend is considered strong. If volume starts shifting against the direction, it signals potential exhaustion and reversal.
🧠 Final Practical Understanding
In practical use, this system is not just an indicator but a decision-making framework. It helps traders read real-time market behavior, understand institutional activity, and align trades with actual liquidity flow instead of relying on simple chart patterns or lagging signals.
📌 How the Concepts Work Together
⚙️ Unified Market Structure
The real strength of this system appears when all components are combined into a single framework. The market is not analyzed as isolated indicators, but as a unified structure where price action, volume distribution, session behavior, and order flow pressure all interact simultaneously to define market intent.
📊 Price and Volume Integration
First, the full candle movement (Open, High, Low, Close) is combined with volume distribution. Instead of assigning volume to a single price point, it is spread across the entire intrabar price path. This reveals where actual trading activity occurred and which price levels attracted real participation.
🔥 Auction and Liquidity Behavior
The market is treated as a continuous auction where liquidity is constantly being tested and consumed. High-volume zones represent areas of acceptance where the market is comfortable trading, while low-volume zones represent inefficiency where price tends to move quickly due to lack of participation.
🎯 Delta and Pressure Confirmation
After volume distribution, delta analysis is used to confirm whether buyers or sellers are in control. When price movement aligns with strong delta, it confirms trend strength. When price moves against delta, it signals weakening momentum and potential reversal conditions.
📐 Session-Based Context Filtering
Each movement is evaluated within its specific trading session (Asia, London, New York). This helps filter noise and highlights periods of strong institutional activity. It also shows when the market is likely to trend versus when it is likely to consolidate.
🔗 Step-by-Step Combined Workflow
The full intrabar price path is analyzed
Volume is distributed across price levels
Key zones such as POC, VAH, VAL, HVN, and LVN are formed
Delta confirms buying or selling pressure
Session context validates market strength
Final interpretation (trend, reversal, breakout) is derived
🧠 Final Combined Understanding
When all components work together, the market is no longer viewed as random price movement. It becomes a structured auction map where every move has a clear reason—showing where liquidity exists, who is in control, and how institutional participation is shaping price behavior.
📌 Key Features
📊 Path-Based Volume Distribution
One of the core features is the ability to distribute volume across the entire intrabar price path instead of assigning it to a single candle close. This allows the system to show where actual trading activity happened inside each candle, giving a more realistic view of market participation and liquidity flow.
🔥 Session-Based Market Segmentation
The system divides the market into separate trading sessions such as Asia, London, and New York. Each session behaves differently in terms of volatility and liquidity. By isolating sessions, the indicator highlights institutional participation periods and removes mixed noise from different market phases.
🎯 Value Area and Control Zones
It automatically identifies key structural zones such as Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL). These zones represent areas where the market has accepted price or rejected it, helping traders understand balance and imbalance in market structure.
📐 High and Low Volume Nodes (HVN / LVN)
The system highlights areas of concentrated and thin volume. High Volume Nodes indicate strong acceptance zones where price tends to consolidate, while Low Volume Nodes represent inefficiency zones where price can move rapidly due to lack of liquidity.
🔥 Delta and Pressure Analysis
A key feature is the calculation of buying and selling pressure through delta. This shows whether buyers or sellers are dominating at specific price levels. It helps identify strength behind moves rather than just direction.
⚡ Dynamic Real-Time Updating
The structure updates in real-time as new candles form. Each new price movement adjusts volume distribution, zones, and pressure metrics. This makes the system adaptive and responsive to changing market conditions.
🎯 Institutional Footprint Detection
By combining volume, price path, and delta, the system reveals hidden institutional behavior. It helps identify where large participants are entering or exiting the market, which is often invisible in traditional indicators.
🧠 Final Understanding
Overall, the key features work together to transform raw price action into a structured market map. This map shows liquidity distribution, control zones, pressure imbalance, and real-time institutional activity, making the market behavior easier to interpret and analyze.
⚙️ Settings & Customization
📌 Core Customization Philosophy
The main purpose of customization is to allow the system to adapt to different trading styles, strategies, and risk preferences. The default configuration only provides a baseline structure, while real effectiveness comes when the user fine-tunes the tool according to how they read and trade the market.
🕒 Session Settings Control
Session customization allows traders to select which trading sessions to analyze, such as Asia, London, or New York. Each session has different liquidity and volatility characteristics. By enabling or disabling specific sessions, traders can remove unnecessary noise and focus only on high-impact market periods.
📊 Volume Sensitivity Adjustment
This setting controls how detailed the volume distribution will be. Higher sensitivity reveals finer intrabar activity and micro-level participation, while lower sensitivity highlights only major liquidity zones. This allows traders to switch between precision-based analysis and simplified structure reading depending on their strategy.
🔥 Profile Resolution Control
Profile resolution determines how finely the price path is divided. A higher resolution creates a more detailed and complex market structure, while a lower resolution produces a cleaner and more readable chart. Scalpers and intraday traders often prefer higher resolution, while swing traders prefer lower resolution for clarity.
🎯 Zone Display Options
This customization allows users to enable or disable specific structural zones such as:
Point of Control (POC)
Value Area High (VAH) and Value Area Low (VAL)
High Volume Nodes (HVN) and Low Volume Nodes (LVN)
Turning off unnecessary zones helps maintain a clean chart and improves decision clarity.
📐 Delta & Pressure Filters
These settings control how buying and selling pressure is calculated and displayed. Strong filtering reduces noise and produces more stable signals, while weaker filtering increases sensitivity and produces earlier but more volatile signals. This directly impacts trend confirmation and reversal detection accuracy.
⚡ Real-Time Update Speed
This setting defines how quickly the indicator updates with new price data. Faster updates are useful for scalping and fast execution strategies, while slower updates provide smoother and more stable analysis for swing or positional trading.
🧠 Final Customization Insight
Overall, customization transforms the system from a fixed indicator into a flexible market analysis framework. By adjusting sessions, volume sensitivity, resolution, zones, and update speed, each trader can build a personalized structure that matches their trading style and improves decision-making accuracy.
🧠 Final Note
⚙️ Complete Market Understanding
This entire system is designed to change the way the market is viewed. Instead of treating price as a simple line moving up and down, it reveals the market as a liquidity-driven auction environment where every movement is the result of real interaction between buyers and sellers.
📊 From Noise to Structure
What looks like random candles on a chart is actually structured behavior. When volume is distributed across the price path and combined with session context and pressure analysis, the market stops being noise and starts forming a clear structure of acceptance, rejection, and imbalance.
🔥 Real Intent vs Visual Movement
The key transformation is the ability to separate visual price movement from real market intent. A candle may look strong or weak visually, but true strength is confirmed only when volume, delta, and liquidity zones support that move. This is where hidden institutional activity becomes visible.
🎯 Decision-Making Clarity
This framework does not predict the market; it helps interpret it. It gives clarity on where participation is strong, where liquidity is trapped, and where the market is likely to react. This reduces emotional trading and replaces it with structured decision-making based on data behavior.
🧠 Final Insight
Ultimately, the final purpose of this system is to shift thinking from “guessing direction” to “reading behavior.” Once a trader understands how price, volume, and liquidity interact together, the market becomes less unpredictable and more logical. The real edge comes from understanding this hidden auction structure, not from any single indicator or signal.
⚠️ Disclaimer
📌 Educational Purpose Only
This system, explanation, and all related concepts are provided strictly for educational and informational purposes. It is designed to help understand market structure, volume behavior, and auction-based price action, not to provide guaranteed trading results or financial advice.
📊 No Financial Advice
Nothing in this content should be considered financial, investment, or trading advice. The interpretation of markets is highly subjective and depends on individual skill, experience, and risk management. Users are fully responsible for their own trading decisions.
🔥 Market Risk Warning
Trading in financial markets involves high risk of loss, and it is possible to lose all invested capital. Past behavior, volume analysis, or indicators do not guarantee future performance. Market conditions can change rapidly and unpredictably.
🎯 No Guarantee of Accuracy
Although the system is designed to improve market understanding, no method, indicator, or framework can predict the market with 100% accuracy. All signals, zones, and interpretations should be treated as analytical tools, not absolute outcomes.
🧠 User Responsibility
Every trading decision made using this information is the sole responsibility of the user. Proper risk management, discipline, and independent verification are essential before entering any trade.
⚡ Final Note
This content is meant to enhance market understanding and analytical thinking. It should be used as a supportive tool within a broader trading strategy, not as a standalone system for guaranteed profits.
⚠️ Repainting / Misleading Behavior (Important Note)
Pivot-based signals in this script are based on confirmed swing points using ta.pivothigh and ta.pivotlow, which naturally appear only after a defined confirmation length (divergence period). To prevent misleading behavior, proper offset handling is applied so signals are plotted on validated structure rather than future or unconfirmed data. The script does not use any lookahead logic, does not access future data, and avoids security() misuse, ensuring that all signals are generated strictly from historical confirmed price action.
⚠️ Potential Risk Areas (Minor – Terminology Clarity)
The variable is Institutional should be described carefully to avoid implying direct detection of real institutional orders, as this can be considered a misleading claim under publishing guidelines. Instead of stating that it “detects real institutional activity,” it is safer and more accurate to define it as identifying high-volume, compressed-range price behavior that may represent areas of increased participation or strong market activity. This ensures the description remains compliant, realistic, and focused on observable market data rather than unverified institutional inference. مؤشر

nichoxbt's NUPL ratio BTC NUPL (Net Unrealized Profit/Loss) is an on-chain indicator that measures the overall profitability of Bitcoin holders by comparing Market Cap and Realized Cap.
It provides a clear view of market cycles by showing whether investors are, on average, in profit or loss — making it a powerful tool for identifying long-term tops and bottoms.
NUPL is calculated as:
- Market Cap → current value of all BTC
- Realized Cap → aggregate cost basis of all BTC
By comparing the two, the indicator reveals the level of unrealized profit in the market.
Explanation:
- Green = Capitulation/Pain zone, perfect for accumulating because macro bottom is likely to form
- Blue = Hope/Slow recovery, good for accumulating since its not likely to bottom yet
- Orange = Belief/Growth, start scalling out slowly because macro top is near
- Red = Euphoria/Greed, its highly recommended to take profits because macro top is likely to form
Conclusion:
Green, Blue = Buy (Bear market bottom)
Orange, Red = Sell (Bull market top)
Important Notes
This is a macro-level indicator, not designed for short-term trading signals
Best used for cycle analysis and long-term positioning
Works strongest when combined with other tools and market context مؤشر

Reaction Efficiency Meter [AGPro Series]Reaction Efficiency Meter
A pure observation lens that scores every pivot-based support and resistance reaction from 0 to 100 and classifies it as WEAK, LIMITED, FAIR, STRONG or EFFICIENT. Designed to answer one specific question on any chart: how well did price actually react when it touched that level? Not a strategy, not a signal generator — a quality meter for S/R reactions.
🔹 Overview
Reaction Efficiency Meter watches pivot-based support and resistance levels and, the moment price touches any of them, opens a fixed reaction window to observe what happens next. At the end of that window the reaction is scored from 0 to 100 using four weighted components — strength, speed, cleanliness, follow-through — and then classified into a five-tier hierarchy. The result is printed directly on the chart as a color-coded label (BULL or BEAR), while a side panel keeps a live summary of the last bullish reaction, last bearish reaction and the currently active event window. The indicator is built as a post-event quality lens for traders who already work with horizontal levels, pivot zones, or structural S/R and want an objective readout of reaction quality instead of a subjective eyeball assessment.
🔸 Unique Edge
Most support and resistance indicators stop at drawing lines or zones. Reaction Efficiency Meter goes one step further and evaluates the reaction itself on a fixed, reproducible scale. Four distinct quality dimensions are blended into a single 0-100 score, and a separate adverse-excursion penalty reduces the score when price violated the level before reacting. The result is a transparent number tied to a five-tier verbal classification (WEAK / LIMITED / FAIR / STRONG / EFFICIENT), which makes reactions directly comparable across symbols and timeframes. There are no repainting signals, no lagging smoothers and no hidden strategy logic — the scoring is purely descriptive and fires only after the reaction window closes on a confirmed bar.
🔹 Methodology
The engine has four clear stages:
1. Level detection. Classic pivot highs and lows are tracked as dynamic resistance and support. Only the most recent N levels per side stay active — older ones are retired, so the chart never clutters.
2. Touch detection. A touch is registered when the bar's range enters a tolerance band around any active level (expressed in ATR units so the logic auto-scales across volatility regimes). A cooldown of N bars between tests on the same level prevents noise from restarting an event too quickly.
3. Event tracking. Once a touch fires, a reaction window of N bars is opened. During that window the script tracks (a) the best favorable excursion in ATR units, (b) the worst adverse excursion in the wrong direction, (c) which bar produced the peak favorable move, (d) the net retained move at window close.
4. Scoring and classification. At window close the four components are combined with a penalty:
• Strength (0-35): best favorable excursion relative to 1.5 ATR reference.
• Speed (0-20): how early the peak favorable bar occurred inside the window.
• Cleanliness (0-20): reduced linearly by adverse excursion.
• Follow-through (0-15): how much of the peak move was retained at window close.
• Adverse penalty (up to -15): applied when price broke through the level.
Final score is clamped 0-100 and mapped to: WEAK (<25), LIMITED (25-44), FAIR (45-64), STRONG (65-79), EFFICIENT (80+).
🔸 Signals & Alerts
The indicator does not emit buy or sell alerts. Its outputs are purely descriptive:
• A color-coded reaction label (BULL or BEAR with score and tier) plotted after each completed window.
• Active zone rectangle and reaction corridor drawn around the touched level while the window is open.
• Touch markers on the bar where a new event begins.
• Live status tag showing BULL WINDOW x/N or BEAR WINDOW x/N during an active event.
• A stateful side panel with Status, Last Bull, Last Bear, Window progress and Mode rows.
All visuals render on confirmed bars only, so the score and tier of a completed reaction do not change afterwards.
🔹 Key Inputs
• Pivot Length — bar distance used to qualify pivot highs and lows.
• Max Active Levels / Side — how many recent resistance and support levels stay active.
• ATR Length — volatility reference for tolerance, corridor depth and scoring.
• Touch Tolerance (ATR) — how close to the level a bar must come to count as a touch.
• Reaction Window Bars — fixed observation length per event.
• Minimum Bars Between Tests — cooldown on the same level.
• Reaction Corridor Depth (ATR) — vertical span of the reaction corridor drawn during the window.
• Display group — toggles for levels, tags, markers, labels, active zone, corridor, panel.
• Theme & Layout — panel theme (Auto / Dark / Light), position, font size, line width and opacity controls.
🔸 How to Use
The indicator is intended as a companion lens, not a standalone system. Typical workflows include:
• Confluence study. Compare reaction scores at different levels on the same chart to see which zones historically produced stronger reactions.
• Bias assessment. Watching whether BULL and BEAR labels on a given timeframe skew toward higher or lower tiers can inform directional bias for discretionary decisions made elsewhere.
• Framework validation. Add it on top of an existing S/R, order block or pivot framework to quantify whether the levels those tools produce actually generate efficient reactions.
• Multi-timeframe scanning. Running the indicator on multiple timeframes shows where strong reactions cluster — often useful for context, not entry timing.
The tool is descriptive and retrospective. It is not designed to replace risk management, structural analysis or the user's own trading plan.
🔹 Limitations & Transparency
• The reaction window is fixed per event. Very fast V-reversals may still register as WEAK if most of the favorable move happens after the window closes; conversely, slow grind reactions may score lower on the Speed component even when the net outcome is good.
• Pivot-based levels are, by definition, confirmed with a lag equal to Pivot Length bars.
• Scores are descriptive — a STRONG tag on a past reaction does not imply that the next test of the same level will also react strongly.
• All scoring uses confirmed-bar logic, so the indicator is non-repainting by design.
🔸 Risk Disclosure
This indicator is provided for educational and analytical purposes only. It is not financial advice, not a trade signal generator, and not a recommendation to buy or sell any instrument. Trading involves substantial risk of loss. Past reactions do not guarantee future reactions. Users are solely responsible for their own trading decisions and risk management. مؤشر

Reference Price Operating Map [AGPro Series]Reference Price Operating Map
🔹 OVERVIEW
Reference Price Operating Map is a focused overlay that consolidates the four most universally watched reference prices — Daily Open, Weekly Open, Monthly Open, and Previous Close — into a single operating map. It tracks how price interacts with each level in real time, attributes control to the reference currently leading price action, groups overlapping references into confluence clusters, and fades distant context so the active map stays clean.
The chart answers one direct question at a glance: which reference is controlling the session right now.
Built for intraday operators, swing traders, and position traders who anchor their bias to session and period opens. Works on any symbol and any intraday or daily timeframe.
🔸 WHAT MAKES IT DIFFERENT
Most open-line indicators simply draw horizontal lines for Daily, Weekly, Monthly, and Previous Close and stop there. This script goes further by adding four layers on top of those lines:
• State tracking — each reference is classified as Untouched, 1st Touch, Tested, Held, Reclaimed, or Rejected, and the state updates bar by bar as price interacts with the level.
• Control attribution — a proximity-weighted scoring system selects one reference as the current "controller" of price action, highlighted with a dominant-row background in the panel and a thicker line on the chart.
• Confluence grouping — when two or more references sit within 0.5 ATR of each other, they collapse into a single cluster label (for example "D-Open + W-Open + PClose") instead of stacking separate labels on top of each other.
• Distance-aware rendering — references far from current price are demoted to a thin gray zone with a dotted line, keeping them visible as structural context without crowding the active map.
The engine also includes a far-aware state machine: references that price has not meaningfully engaged stay in the Untouched state instead of being forced into misleading classifications.
🔷 METHODOLOGY
Reference levels are pulled directly from the higher timeframe open (Daily, Weekly, Monthly) and the previous daily close using lookahead-safe security calls on confirmed bars.
Distance classification uses ATR(14) as a volatility scale. A reference is considered "near" when price is within a configurable ATR multiple and "far" when it exceeds the far-distance threshold. This adapts the map to both low-volatility ranges and high-volatility expansions without manual tuning.
State transitions are driven by a finite state machine with six states. Key transitions:
• Untouched → 1st Touch when price enters the touch zone (default 0.25 ATR) or wicks through it.
• 1st Touch / Tested → Held when price moves cleanly away from the level on the same side.
• 1st Touch / Tested → Reclaimed when price closes on the opposite side (optionally requiring multi-bar confirmation).
• Any engaged state → Rejected when a large wick rebounds from the level with more than 60 percent wick ratio.
• Held / Rejected → Reclaimed on a confirmed cross.
The control score combines proximity (how close price is to the reference relative to ATR) with a state weight (Reclaimed and 1st Touch score highest, Held scores lowest). The reference with the highest score is tagged as controller; if no reference has meaningful engagement the panel reports No Active Control.
🔶 SIGNALS AND ALERTS
Three alert conditions are exposed:
• Reference Touched — fires the first time any reference is touched in its period.
• Reference Reclaimed — fires when any reference transitions into the Reclaimed state.
• Reference Rejected — fires when a large-wick rejection bar is registered at any reference.
On-chart, first-touch diamond markers are placed on recent bars to make period engagement easy to spot in screenshots and reviews. The panel footer reports the current controller and updates in real time.
🔹 KEY INPUTS
Reference Lines — independent toggles for Daily Open, Weekly Open, Monthly Open, and Previous Close.
Display — Show Active References Only (hide untouched references for a cleaner map), Strict Reclaim Confirmation (require multiple confirmation bars for Reclaim), Label Density (Minimal shows only the dominant reference, Normal shows all active, Detailed appends state names to labels), Show Reaction Bands, Mark First Touches.
Panel — position (four corners), font size, label font size. All default to Normal per AG Pro Series visual standards.
Sensitivity — Touch Threshold (ATR multiple defining a touch), Reclaim Confirm Bars (strict-mode confirmation count), Band Width (reaction band width in ATR), Far Distance (ATR multiple beyond which references are faded to context).
All parameters are ATR-scaled so defaults transfer cleanly across instruments and timeframes.
🔸 HOW TO USE
1. Open the panel and read the controller. If the footer shows "D-Open Controls" with a Bull bias, intraday operators treat Daily Open as the session pivot and trade with that bias until the state changes.
2. Watch the confluence label. A grouped label such as "D-Open + W-Open + PClose" means three references are stacked — a cluster of this kind is typically a higher-conviction zone than a single isolated reference.
3. Use state transitions as triggers. A Rejected state at Monthly Open during a rally is a different signal than a Reclaimed state at the same level. The state tells you what just happened at the level, not just where the level is.
4. Use the far zone as context. A Monthly Open plotted as a gray zone five ATR away from price is not an execution level — it is orientation. When price approaches it, the zone transitions into an active band and the state engine re-engages.
5. Combine with your own structure work. This map is designed to sit underneath price action analysis, order flow, or trend tools, not replace them.
🔷 LIMITATIONS AND TRANSPARENCY
• This is an indicator, not a strategy. No entries, exits, position sizing, or backtesting is performed.
• Reference prices are sourced from higher timeframe candles using confirmed lookahead. Results on intraday charts should match the official Daily, Weekly, and Monthly opens of the exchange the chart is connected to.
• State classifications are heuristic. They describe observed behavior at each level in historical terms and should not be read as forecasts. A Reclaimed state is a description of what just happened, not a prediction of what comes next.
• ATR-based thresholds mean the map adapts to volatility but can feel different on very low-volume or very thinly traded instruments. Adjust the touch threshold and far distance inputs if defaults feel too loose or too tight.
• Confluence grouping uses a 0.5 ATR window. On very wide-range days this window can become large; on very narrow ranges it can feel tight.
🔶 RISK DISCLOSURE
This indicator is provided for informational and educational purposes only. It does not constitute financial advice, investment advice, trading advice, or any other form of advice. Past performance of any level, state, or methodology shown on the chart does not guarantee future results. Trading and investing involve substantial risk of loss. You alone are responsible for your decisions, for managing your risk, and for complying with the laws and regulations that apply to you. Test any tool on a demo account or in paper trading before using it with real capital. مؤشر

Fixed Range Control Box [AGPro Series]Fixed Range Control Box
🔹 Overview
Fixed Range Control Box isolates a single high-conviction price range on your chart and classifies who is in control inside it. The tool draws one clean hero box around the most recent structural range, places a volume-weighted Control Line inside it, and tracks state transitions in real time: Inside, Upper, Lower, or Failed. When price structurally breaks the box, the range freezes, locking the reference so you can study the aftermath without visual drift.
Four range-definition modes are available — Pivot, Lookback, Compression, and Manual-Date — so the tool adapts to discretionary range traders, systematic rotation traders, and anyone who wants a fixed reference zone for backtesting or journaling.
🔸 Unique Edge
Most range tools on TradingView draw many boxes and leave the user to guess which one matters. Fixed Range Control Box is built around a different philosophy: one range, one story, one decision. The hero box is the visual focus; historical ranges fade into the background; the Control Line tells you which side of the range is winning the statistical argument.
Three design choices separate this from standard range-box scripts:
- Volume-weighted Control Line. Rather than dropping a midpoint line, the Control Line is computed from the volume-weighted typical price across the life of the range, with an edge-fallback to midpoint if the line drifts too close to either boundary. This produces a structurally meaningful reference instead of a geometric one.
- Retrospective fill on range rebuild. When a new range is committed, the script walks back through the range window and retroactively computes touch count, hold quality, and the Control Line. You see a fully-formed box with accurate statistics the moment it appears, not an empty box that slowly populates.
- Freeze-on-failure. When price closes beyond the range and the state transitions to Failed, the box locks at the break bar. No more drifting endpoints on broken structures — the reference stays where the story ended.
🔷 Methodology
The script cycles through four stages on every bar:
1. Range detection. Depending on the selected mode, the script looks for a qualifying range: confirmed swing pivots (Pivot), rolling highest/lowest (Lookback), short-ATR over long-ATR compression (Compression), or a user-defined date window (Manual). Gating rules — minimum lifespan, minimum width percentage, and a failed-state cooldown — prevent rapid re-triggers on noisy conditions.
2. Commit and retrospective fill. Once a range qualifies, the script snapshots the old range into history, installs the new one, and walks back through the window to compute the Control Line, touch count, and hold quality in a single pass. No warm-up period.
3. State machine. Each confirmed bar feeds the state machine. Strict logic requires bar closes on one side of the Control Line for the configured number of bars before switching to Upper or Lower; a close beyond either range boundary transitions to Failed.
4. Rendering. On the last bar, the hero box, Control Line, origin marker, and state badge are rebuilt from scratch. Historical ranges persist as muted boxes up to a configurable cap.
🔶 Signals & Alerts
Three alert conditions cover the full range lifecycle:
- New Control Box. Fires once per bar close when a new range is committed.
- Line Reclaimed (Bull or Bear). Fires when state transitions into Upper or Lower control, confirming directional bias inside the range.
- Control Failed. Fires once when price closes beyond the range and the box is frozen.
All alerts use alert() calls with once-per-bar-close frequency.
🔹 Key Inputs
- Range Mode — Auto-Pivot, Auto-Lookback, Auto-Compression, or Manual-Date.
- Pivot Length / Lookback Bars / Compression Window — window controls for each detection mode.
- Min Range Lifespan / Min Range Width % — structural filters to suppress micro-ranges.
- Failed Cooldown — bars to wait after a broken range before searching for a new one.
- Strict Control Logic + Reclaim Confirmation — governs how the Control Line state machine transitions.
- Visual controls — fade old boxes, max boxes kept, show state badge, show range origin, future projection bars, panel and label font sizes.
🔸 How to Use
1. Start on your primary timeframe and select the Range Mode that matches your style: Pivot for discretionary swing structures, Lookback for mechanical windows, Compression for auto-locking onto consolidations, Manual-Date for backtesting a specific episode.
2. Tune Min Range Width % and Min Range Lifespan so only structurally meaningful ranges appear.
3. Read the panel top-down: Mode confirms what you are tracking, Control tells you which side of the Control Line is winning, Range Age and Touches describe maturity and confluence, Hold Quality summarizes how cleanly price has respected the range, and State shows the live classification.
4. Use alerts to monitor the range lifecycle without staring at the chart.
🔻 Limitations & Transparency
- This is an analytical tool, not a strategy. It does not generate buy or sell recommendations and does not compute entries, stops, or targets.
- Past range behavior does not forecast future range behavior. Structural breaks can occur at any time.
- In very thin or illiquid markets, the volume-weighted Control Line can drift toward a boundary; the edge-fallback defaults to midpoint to protect against degenerate cases.
- Auto-Compression mode requires sufficient ATR history; expect a warm-up period on very recent symbols.
- The script is overlay-only and does not access other timeframes.
🔶 Risk Disclosure
Nothing in this script constitutes financial advice. Trading involves substantial risk of loss and is not suitable for every investor. Always do your own research and manage risk appropriately. مؤشر

Dynamic Acceptance Channel [AGPro Series]Dynamic Acceptance Channel
🔷 Overview
Dynamic Acceptance Channel is an adaptive volatility channel that builds a dynamic upper and lower edge around a robust median midpoint. The channel width breathes with the market's own return distribution and volatility regime, so it naturally widens when the market expands and tightens when it compresses. Every bar is classified as Inside, Breaching, or Respecting the channel, while the width itself is independently tracked as Compressed, Normal, or Expanded. The tool is designed to give traders a clean, consistent framework for reading acceptance, mean-reversion context, volatility squeezes, and adaptive range behavior across crypto, FX, and equities.
🟢 Unique Edge
Most channel indicators on the market rely on a single dispersion model — typically a moving average plus a fixed standard deviation or ATR multiplier. Dynamic Acceptance Channel takes a different route:
▪ Robust median midpoint instead of a simple mean, which stays stable when the market wicks or spikes and is not dragged around by outliers.
▪ Hybrid width model that combines the percentile spread of recent returns with a clamped ATR regime ratio. The user can switch between Hybrid, Return Percentile, or Volatility Regime, depending on whether distribution shape or raw volatility is the priority.
▪ Independent width regime classification (Compressed / Normal / Expanded) ranked against the channel's own history, with hysteresis applied so the regime does not flip-flop around threshold boundaries.
▪ Bar-level state machine (Inside, Breach, Respect) separated from the width regime, so traders can read location and regime as two orthogonal dimensions.
▪ Double-EMA smoothing on both the midpoint and the half-width, producing a calm, professional channel that is readable on any timeframe without looking jagged.
This combination is not found in common Bollinger Bands, Keltner Channels, or generic ATR channels.
🧭 Methodology
The midpoint is computed as a rolling median using linear-interpolation percentile logic, which is statistically more robust than an arithmetic mean when the return distribution is skewed or heavy-tailed. The half-width is then derived from two independent signals. The first is a return-percentile dispersion term: the script measures the 85th and 15th percentiles of recent per-bar returns, symmetrizes them, and scales by the square root of the lookback window to produce a percentile-based half-width proxy. The second is a volatility regime term: the current 14-bar ATR is compared to its own baseline over the adaptive window, and the resulting ratio is clamped between 0.6 and 1.8 to prevent explosive widths during regime shocks. The final half-width is either one of the two terms or their average, depending on the selected model, then scaled by a user-defined global multiplier and smoothed with double EMA. The width regime classification uses linear-interpolation percentiles of the channel width itself over a separate regime lookback, and a 10% hysteresis buffer prevents rapid state flipping around the Compressed and Expanded thresholds.
🎯 Signals & Alerts
▪ Channel Breached — fires on a fresh upper or lower breach, edge-triggered with a minimum three-bar gap to avoid clusters on choppy bars.
▪ Channel Compressed — fires when the width regime transitions into the Compressed state.
▪ Channel Expanded — fires when the width regime transitions into the Expanded state.
▪ Channel Respected — optional, fires when price wicked outside on the prior bar and closed back inside on the current bar, confirming a rejection at the edge.
Visuals include color-coded upper and lower lines, a regime-tinted fill, small circular breach markers on the breached line (no text labels to avoid clutter), and spaced Compressed or Expanded transition labels anchored outside the channel.
⚙️ Key Inputs
Adaptive Engine
▪ Adaptive Length — lookback window for the channel (default 60).
▪ Channel Width Model — Hybrid, Return Percentile, or Volatility Regime.
▪ Width Scale — global multiplier for tightening or loosening the channel.
▪ Channel Smoothing — EMA length for line smoothness.
▪ Strict Breach Logic — close-based versus wick-based breach.
Width Regime
▪ Compression Threshold — percentile below which the width is Compressed (default 25).
▪ Expansion Threshold — percentile above which the width is Expanded (default 75).
▪ Regime Lookback — lookback for the width percentile ranking (default 150).
Visuals
▪ Show Channel Fill, Show Midline, Show Breach Markers, Show Regime Transition Labels, Regime Label Spacing.
Panel
▪ Show / hide panel, Panel Location (6 options), Panel Font Size, Label Font Size.
Alerts
▪ Channel Breached, Compressed, Expanded, and Respected can be toggled independently.
🧠 How to Use
A common reading is to combine channel state with width regime. When the channel is Compressed and price is riding the edges, the market is often preparing for an expansion phase. When the channel transitions into Expanded, continuation on the active edge is more likely than immediate mean reversion. Respect events at either edge during Normal or Compressed regimes often line up with fade opportunities, while breaches during Expanded regimes often line up with trend continuation context. The midline can be used as a dynamic fair-value reference for pullback entries inside the channel. Traders typically overlay this script with their own structure, momentum, or higher-timeframe bias tools rather than using channel events in isolation.
⚠️ Limitations & Transparency
▪ The indicator is a context and structure tool. It does not generate buy or sell decisions and does not claim to identify every meaningful reversal or breakout.
▪ The channel is recomputed each bar from recent data, which means the current bar's channel values can refine until bar close.
▪ Width regime classification is relative to the regime lookback, not absolute. On instruments or timeframes with very low variance, the regime may behave differently than on highly volatile markets.
▪ The ATR ratio is intentionally clamped between 0.6 and 1.8. This prevents explosive widths but also means the channel will not fully mirror extreme volatility shocks; this is a deliberate design choice for readability.
▪ Alerts are configured to fire once per bar close to reduce noise. Intrabar conditions may change until close.
🛡 Risk Disclosure
This script is provided for educational and analytical purposes only. It is not a strategy, not financial advice, and not a trade recommendation. Past channel behavior on any instrument or timeframe does not imply future performance. Users are fully responsible for their own risk management, position sizing, and trading decisions. مؤشر

مؤشر

Volume Shelf Reaction Map [AGPro Series]Volume Shelf Reaction Map
🔷 OVERVIEW
Volume Shelf Reaction Map is a structural price-action tool that identifies horizontal zones where volume has historically stacked — "volume shelves" — and classifies, in real time, how price reacts each time it returns to them. Instead of showing a static S/R line, it answers a sharper question: when price revisits this level, does it hold, get reclaimed, get rejected, or lose the level entirely? Fresh shelves (never revisited) are visually separated from reused ones, so the chart communicates not just where the levels are, but which ones still carry unused participation behind them.
🧭 UNIQUE EDGE
Most support/resistance and volume tools stop at drawing a zone. This script adds a reaction-state layer on top of shelf detection:
• Five reaction states per shelf: TOUCH, HELD, RECL (reclaimed), REJ (rejected), LOST
• Fresh vs Reused classification — shelves that have already been tested at least once are faded, so untouched structural levels stand out immediately
• Sticky state logic — a shelf keeps its reaction color until a new transition actually occurs, preventing flicker between bars
• Passive-window coloring — shelves whose last reaction is older than the user-defined active window fade to the neutral accent color, keeping old/stale levels visible without dominating the chart
• Strongest-shelf-only reaction tags with cooldown — reaction labels are printed only for the highest-strength shelf and only on actual state transitions, producing a clean chart even on long histories
The result is a volume-aware reaction map rather than a crowded S/R overlay.
🧪 METHODOLOGY
1. Pivot detection — standard pivot highs and lows over a configurable pivot length act as shelf candidates.
2. Volume qualification — each pivot bar is checked against a rolling 20-bar volume average; bars above the Volume Filter multiplier contribute extra weight to shelf strength.
3. ATR-based clustering — candidates within a configurable ATR multiple of an existing shelf are merged using a touches-weighted mean price, stabilizing the shelf location as evidence accumulates.
4. Confirmation — a shelf must reach the Minimum Touches threshold before it is rendered; weak candidates are pruned after one-third of the lookback window.
5. State machine — on every confirmed bar, a shelf's reaction is updated against the prior close's side (support vs resistance context), using an ATR-scaled buffer to distinguish genuine holds and losses from noise.
6. Ranking and rendering — on the last bar, shelves are sorted by strength; only the top N are drawn, with fresh shelves rendered solid and reused shelves rendered thinner and faded.
🔔 SIGNALS & ALERTS
Three alert types, each debounced per shelf so the same state cannot spam consecutive bars:
• Shelf Touched — price range intersects a confirmed shelf for the first time since its last transition
• Shelf Respected — price HELDs, RECLs, or REJs at a shelf (reaction in favor of the shelf)
• Shelf Lost — price closes through a shelf with the required ATR buffer
Reaction tags on the chart (HELD / RECL / REJ / LOST) are printed only for the strongest shelf and only on a true state transition, with a user-adjustable cooldown for historical cleanliness.
⚙️ KEY INPUTS
Shelf Detection
• Lookback Window (bars) — how far back the pivot scan reaches
• Pivot Strength — bars required on each side of a pivot
• Cluster Distance (x ATR) — how tightly nearby pivots merge
• Minimum Touches — confirmation threshold
Filters & Cleanup
• Volume Filter (x average) — participation threshold for strength weighting
• Show Fresh Shelves Only — hide already-revisited shelves
• Max Shelves to Display — cap visible shelves for chart cleanliness
• Fade Reused Shelves — dim reused shelves so fresh ones stand out
• Reaction Sensitivity (x ATR) — ATR buffer used by the state machine
• Active Window (bars) — how recently a reaction must have occurred to show in full color
Visuals
• Label & Panel Size — Tiny / Small / Normal / Large (default: Normal)
• Show Reaction Tags — toggle on-chart state labels
• Tag Cooldown (bars) — minimum bars between tags on the same shelf
Panel
• Show Info Panel, Panel Location (6 anchors), Panel Theme (Dark / Light)
Alerts
• Shelf Touched, Shelf Respected, Shelf Lost
🧰 HOW TO USE
1. Add the indicator to any liquid symbol and timeframe. Volume-aware markets (crypto, index futures, major FX) and timeframes from 15m upward tend to produce the most structured shelves.
2. Start with defaults. The Active Window of 30 bars is a reasonable middle-ground; reduce it on intraday charts (around 20) or raise it on daily/weekly (30–60).
3. Read the panel:
• Active Shelves — how many of the eligible shelves are currently drawn
• Strongest Shelf — the top-ranked shelf by strength
• Current State — live reaction state of the top shelf
• Fresh / Reused — how the displayed shelves split between untested and already-tested levels
4. Use fresh shelves as higher-quality reaction candidates; treat reused shelves as context, not primary triggers.
5. Combine the HELD / RECL / REJ / LOST reactions with your own trigger logic (e.g. break-retest, liquidity sweeps, momentum shifts). This script is a location and reaction tool — not a standalone trade system.
🧱 LIMITATIONS & TRANSPARENCY
• This indicator describes historical structure and live reactions; it does not forecast price direction.
• Pivot-based detection requires the Pivot Strength window to complete on both sides, so fresh pivots appear with a natural lag equal to the pivot length.
• On very low-volume symbols or illiquid timeframes, shelves may be sparse or unstable.
• The state machine is bar-close based; intrabar wicks can temporarily intersect a shelf without changing its state until the bar confirms.
• Max drawing limits (max_lines_count, max_labels_count, max_boxes_count) are set to 120; extremely long histories combined with large lookbacks may drop the oldest drawings.
⚠️ RISK DISCLOSURE
This script is provided for educational and analytical purposes only. It is not a strategy, not a buy/sell signal generator, and not financial advice. Trading involves substantial risk of loss. Past behavior of levels, volume, or reactions does not guarantee future outcomes. Always apply your own risk management, position sizing, and independent judgment. The author and AGProLabs accept no responsibility for decisions made based on this indicator. مؤشر

Rejection Block Quality [AGPro Series]Rejection Block Quality
🔹 OVERVIEW
Rejection Block Quality is an ICT-inspired detector that identifies long-wick rejection candles at swept swing pivots and grades each block by objective quality criteria. Unlike Order Block logic — which anchors to the last opposite-direction body before displacement — a Rejection Block (RB) is born from a wick that pierces a prior swing liquidity pool and closes back inside it, with the body confirming displacement on the follow-through bar. The rectangle is drawn from the wick base to the candle body, capturing the exact zone where smart money absorbed the sweep.
🎯 UNIQUE EDGE
Three design choices separate this tool from generic wick or order block indicators:
• Swing-pivot sweep requirement — a rejection is only counted when price sweeps a confirmed swing high or low before the reversal close. Stand-alone wick patterns without liquidity context are filtered out.
• Displacement confirmation window — the candle following the rejection must travel at least 0.6× ATR in the reversal direction, within a 1–5 bar lookahead. No displacement, no block.
• Quality tiering (A / B / C) from three orthogonal factors — wick-to-body ratio, displacement magnitude, and untested freshness. An exceptional wick ratio (≥5× body) promotes a block to A tier regardless of other scores, preserving rare high-conviction rejections.
🛠️ METHODOLOGY
Detection pipeline on every bar:
1. Confirm a pivot sweep using a user-configurable lookback (default 5 bars each side).
2. Check the wick-to-body ratio against a minimum threshold (default 1.8×), with the dominant wick on the sweep side.
3. Queue the candle as a pending block and wait for displacement confirmation.
4. Measure displacement as price travel from the body reference over 1 to 5 bars, normalized by ATR.
5. On confirmation, draw the RB zone from the wick base to the body, record the tier, and begin lifecycle tracking.
Zone lifecycle tracks four events — test (price enters the zone), hold (price exits without a body close through the far edge), break (body close through the far edge), and near miss (price approaches within a configurable ATR band without entering). All events are edge-detected to prevent inflated counts when price lingers near a zone.
📊 SIGNALS & ALERTS
• New block formation label — A / B / C tier plus wick ratio, placed with anti-collision offset.
• Test markers (T) — one per zone entry event, with cooldown to prevent visual clutter.
• Break markers (B) — placed when a zone is invalidated by a body close.
• Wick border highlight — thick colored line on the originating rejection candle.
• Alerts — configurable minimum tier (A, B, or C) fires once per bar close for each qualifying new block.
⚙️ KEY INPUTS
• Detection — Pivot Length, Min Wick-to-Body Ratio, ATR Length, Min Displacement (× ATR), Displacement Confirm Window.
• Zone Management — Max Active Zones per Side, Zone Right Extension, Near-Miss Distance, Near-Miss Cooldown, Break Requires Full Body Close.
• Visuals — Show Zones, Show Tier Labels, Highlight Rejection Wick Border, Show Test / Hold / Break Markers, Zone Fill Opacity, Label Font Size.
• Panel — Show Panel, Panel Location, Panel Font Size, Panel Theme (Dark / Light).
• Alerts — Minimum Tier for Alerts.
🧭 HOW TO USE
Start on a higher timeframe (4H or 1D) to identify macro RB zones, then drill down to execution timeframes for entries. Treat A-tier blocks as the highest-conviction zones, B-tier as situational, and C-tier as context-only. Combine with trend filters, higher-timeframe structure, and risk management — a Rejection Block is a zone of interest, not a standalone buy or sell signal. Use the panel statistics to evaluate how the selected symbol and timeframe have historically respected these zones before committing to them in live decision-making.
⚠️ LIMITATIONS & TRANSPARENCY
This indicator is a structural detector, not a trading strategy. It does not forecast price direction, generate entry or exit orders, or calculate position sizing. The Success Rate statistic reflects how often past tests on detected zones held versus failed within the visible history — it is a descriptive metric, not a performance projection. Zone detection is historical and reactive: a block only appears after the displacement bar closes, so interpretation on live-forming bars is tentative. Performance varies by symbol, timeframe, and market regime.
⚠️ RISK DISCLOSURE
Trading involves substantial risk of loss. Past behavior of any pattern does not guarantee future outcomes. Use this tool as part of a complete analytical framework that includes your own risk management, position sizing, and broader market context. Nothing in this indicator or description constitutes financial advice. مؤشر

Strata Volume Contour [JOAT]Strata Volume Contour
Introduction
Strata Volume Contour (SVC) is an open-source dynamic volume profile engine that divides a configurable lookback window into 25 equidistant price bins and accumulates the total traded volume within each bin. The result is a real-time horizontal histogram drawn to the right of the current bar, showing exactly where the market has spent the most volume over the selected period. The Point of Control (POC) — the highest-volume bin — is highlighted as the dominant fair-value level. The Value Area — the range of bins containing 70% of total volume — is shaded to mark the institutional accumulation zone.
The problem SVC solves is the inability of time-based charts to show volume distribution across price levels. Standard volume bars show how much was traded each period, but not at which prices. Volume profile reveals the price levels that attracted the most participation — these are the levels where institutional orders were concentrated, making them the most meaningful support and resistance references available. SVC brings this institutional-grade analysis directly to the chart without requiring specialized volume profile software.
Core Concepts
1. Price Range Binning
The indicator determines the highest high and lowest low across the full lookback window, then divides this range into 25 equal-width bins. Each bin represents a price zone:
float rangeHi = ta.highest(high, math.min(bar_index + 1, lookback))
float rangeLo = ta.lowest( low, math.min(bar_index + 1, lookback))
float binStep = (rangeHi - rangeLo) / BINS
A zero-range guard (binStep > 0) prevents division errors on flat or illiquid instruments. With 25 bins, the histogram provides enough granularity to identify structural features while remaining visually clean.
2. Volume Accumulation (Performance-Gated)
Volume accumulation runs exclusively on the last bar of the chart (barstate.islast). This is a critical design decision: running the O(bins x lookback) double-loop on every bar within the lookback window would create an O(bars x bins x lookback) computational cost that exceeds TradingView's execution limits on longer charts. By gating to the last bar, the full recalculation costs O(bins x lookback) exactly once per chart update:
if barstate.islast
if binStep > 0.0
for i = 0 to BINS - 1
float binLevel = rangeLo + binStep * i
float binVol = 0.0
for k = 0 to lookback - 1
if math.abs(close - binLevel) <= binStep
binVol += nz(volume , 0.0)
array.set(volBins, i, binVol)
Each bar within the lookback is assigned to the nearest bin based on its closing price.
3. Point of Control (POC)
The POC is the bin with the highest accumulated volume. It represents the price level where the most trading activity occurred over the lookback period. Markets tend to use the POC as a magnet — price is attracted to it during consolidation and uses it as a reference when transitioning between ranges. The POC is rendered with a distinct highlight color (default orange) to make it immediately identifiable.
4. Value Area Calculation (70% Rule)
The Value Area is determined by a symmetric expansion algorithm. Starting from the POC, the algorithm expands outward one bin at a time, always adding the bin (above or below) that contributes the most volume, until the accumulated volume within the expanding range reaches 70% of total volume:
while vaVol < vaTarget and (vaLow > 0 or vaHigh < BINS - 1)
float addUp = vaHigh < BINS - 1 ? array.get(volBins, vaHigh + 1) : 0.0
float addDn = vaLow > 0 ? array.get(volBins, vaLow - 1) : 0.0
if addUp >= addDn and vaHigh < BINS - 1
vaHigh += 1
vaVol += addUp
else if vaLow > 0
vaLow -= 1
vaVol += addDn
The Value Area High (VAH) and Value Area Low (VAL) define the institutional accumulation zone. Price outside the value area represents a premium (above) or discount (below) relative to the lookback period's fair value.
5. Horizontal Histogram Visualization
Each bin is drawn as a horizontal box extending rightward from the current bar. The box width is proportional to the bin's volume relative to the POC volume — the POC spans the maximum width (50 bars right), and all other bins scale proportionally. Volume amounts are labeled on each bar.
Features
25-Bin Volume Profile Histogram: Full horizontal volume distribution rendered to the right of price with proportional bar widths and volume labels
Point of Control (POC): Highest-volume bin highlighted in a distinct color (default orange) with automatic detection each bar update
Value Area (VAH / VAL): The 70%-volume range shaded in a distinct color, with Value Area High and Low explicitly tracked and displayed in the dashboard
Gradient Bin Coloring: Each non-POC, non-VA bin is colored on a gradient from low volume (nearly transparent) to high volume (full opacity), creating a visual density map
Static Level Plots: All 25 bin levels are plotted as horizontal lines over the lookback window, providing a persistent price level grid even without the boxes visible
Price vs POC Context: The dashboard reports whether price is currently Above POC, Below POC, or At POC
8-Row Dashboard (Top Right): POC price, VA High, VA Low, price vs POC relationship, total volume, lookback period, and version
Watermark: JackOfAllTrades signature at chart center-bottom
Input Parameters
Profile Settings:
Lookback Period: Number of bars to include in the volume accumulation (default: 200, range: 50-500)
Visual Settings:
Show Volume Bins: Toggle the horizontal histogram boxes
Bin Color: Base color for the bin gradient (default: blue)
Bin Width: Border width of histogram boxes (default: 1, range: 0-5)
Highlight POC: Toggle POC highlighting
POC Color: Color for the highest-volume bin (default: orange)
Show Value Area: Toggle the 70%-volume range shading
VA High Color: Color for the Value Area High reference
VA Low Color: Color for the Value Area Low reference
Theme: Auto, Dark, or Light
How to Use This Indicator
Step 1: Identify the Point of Control
The POC is the most important level on the profile. It is the price the market spent the most time trading at — the ultimate fair-value anchor. Price below the POC is at a discount; above is at a premium. Trading setups at the POC during retest often exhibit tight risk/reward.
Step 2: Use Value Area Boundaries for Support and Resistance
The Value Area High and Low are the primary structural boundaries. Price often oscillates within the value area and struggles when attempting to leave it. A close outside the value area with high volume often signals the beginning of a new directional move.
Step 3: Adjust Lookback to Your Trading Style
Shorter lookbacks (50-100 bars) produce a profile of recent price structure, relevant for intraday traders. Longer lookbacks (300-500 bars) produce a macro structural view, relevant for swing traders. The POC and value area boundaries shift as the lookback changes.
Step 4: Watch Price Return to the POC
After price moves away from the POC, it frequently returns to it during low-volume periods. When price is far from the POC and trending, the POC can serve as a magnet target for reversion. When price is oscillating around the POC, it reflects a balanced, two-sided auction.
Indicator Limitations
The profile recalculates only on barstate.islast — it reflects the state at the last confirmed bar. During real-time market hours, the profile is not updating tick-by-tick; it updates each time a bar closes
The volume accumulation assigns each bar to a bin based on closing price, not the intrabar high-low range. This is a simplification — a professional volume profile distributes volume across all prices touched during the bar. The close-based method is computationally feasible within Pine Script's constraints
The 25-bin resolution is fixed. Very large price ranges (e.g., a lookback spanning a major crash) may produce bins too wide to be structurally meaningful. Users should adjust the lookback to keep the range within a reasonable structural period
Instruments with no volume data (some indices, spot forex) will show all zero bins and the profile will not render meaningfully
The histogram boxes are drawn to the right of the current bar. On instruments with extended right-side padding disabled, the boxes may be partially hidden off-chart
Originality Statement
SVC is original in its approach to making volume profile accessible within Pine Script's performance constraints. This indicator is published because:
The barstate.islast performance gate is the key design innovation — it collapses what would otherwise be an O(bars x bins x lookback) computation into a single O(bins x lookback) pass, making a 25-bin volume profile with 500-bar lookback feasible within TradingView's execution limits
The 70% Value Area algorithm uses a symmetric expansion approach (always adding the larger of the next bin up or down) that correctly implements the standard Volume Profile Value Area methodology
The gradient bin coloring uses color.from_gradient() against the POC volume as the maximum reference, making the visual density map adaptive to the actual volume distribution rather than a fixed scale
The Price vs POC contextual label in the dashboard provides an immediately actionable market context read without requiring the user to visually judge their position relative to the histogram
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Volume profile levels are based on historical volume distribution and represent areas of past interest, not guarantees of future price behavior. The Point of Control and Value Area boundaries can and do shift significantly as the lookback window evolves. Always use proper risk management. The author is not responsible for any trading losses resulting from the use of this indicator.
-Made with passion by jackofalltrades
مؤشر

Order Blocks + Fib MTF [Modified]Voici une description TradingView propre et publiée-ready pour ton indicateur 👇
Order Blocks + Fib MTF
By LZ — Order Blocks, Major High/Low, Fibonacci avancé et labels MTF à droite
Order Blocks + Fib MTF est un indicateur conçu pour repérer les zones d’Order Block, afficher les Major High / Major Low, et projeter automatiquement une grille de Fibonacci précise basée sur la structure active du marché.
L’objectif est simple : combiner structure, zones institutionnelles et niveaux de retracement / extension dans un seul outil visuel, propre et rapide à lire.
Fonctionnalités principales
1. Détection automatique des Order Blocks
L’indicateur identifie automatiquement les :
Demand Zones (zones de demande)
Supply Zones (zones d’offre)
Chaque zone peut être :
affichée brute
ou raffinée avec un algorithme de correction
Deux modes de refinement sont disponibles :
Defensive → zone plus resserrée
Aggressive → zone plus large
2. Affichage des Major High / Major Low
L’indicateur détecte et affiche les :
Major High Levels
Major Low Levels
Ces niveaux servent de base au calcul Fibonacci et permettent de visualiser rapidement la structure dominante du marché.
3. Fibonacci automatique entre Major High et Major Low
Une grille Fibonacci complète est calculée à partir des extrêmes majeurs détectés.
Logique utilisée
Demand (zone verte)
0 = Major Low
1 = Major High
Supply (zone rouge)
0 = Major High
1 = Major Low
Cela permet d’avoir une lecture cohérente selon le sens de la zone active.
Niveaux disponibles
L’indicateur intègre une large sélection de niveaux personnalisables :
0.0 / 0.05 / 0.13 / 0.144 / 0.233 / 0.275 / 0.31 / 0.34 / 0.382 / 0.5 / 0.55 / 0.618 / 0.786 / 0.865 / 0.895 / 1.0 / 1.1 / 1.618
Chaque niveau peut être :
activé ou désactivé
personnalisé en couleur
4. Labels Fibonacci Multi-Timeframe à droite
L’indicateur peut afficher les niveaux Fibonacci de plusieurs unités de temps directement à droite du graphique, sous forme de labels.
Exemple :
0.618 1h
0.5 4h
0.895 1D
Cela permet d’obtenir rapidement une lecture de la confluence multi-timeframe sans surcharger le graphique avec trop de lignes.
MTF disponibles
MTF 1
MTF 2
MTF 3
Chaque timeframe peut être :
activée ou désactivée
choisie librement
affichée avec une taille de label personnalisable
5. Support / Resistance
L’indicateur peut également afficher :
le dernier support
la dernière résistance
Cela ajoute une lecture structurelle complémentaire à l’analyse des zones.
6. Système d’alertes intégré
L’indicateur inclut un système d’alertes permettant de recevoir des signaux lorsque le prix revient dans les zones détectées.
Options disponibles :
activation / désactivation des alertes
fréquence du message
fuseau horaire
message personnalisé bull / bear
Utilisation recommandée
Cet indicateur est particulièrement utile pour :
repérer les zones de réaction probables
surveiller les retests d’Order Blocks
travailler les entrées en confluence avec Fibonacci
comparer plusieurs timeframes en un coup d’œil
améliorer le timing sur des setups basés sur la structure
Il peut être utilisé seul, mais il devient encore plus puissant lorsqu’il est combiné avec :
action du prix
volume
RSI MTF
confirmations de retournement
contexte HTF
Points forts
lecture visuelle claire
Fibonacci avancé et personnalisable
logique différente selon Demand / Supply
confluence MTF sans surcharge
support et résistance intégrés
alertes prêtes à l’emploi
Remarques
Cet indicateur est un outil d’analyse visuelle et structurelle.
Il ne garantit pas à lui seul la réussite d’un trade et doit être utilisé avec une gestion du risque adaptée.
Crédits
Modification et adaptation par LZ
Basé sur une logique d’Order Blocks + Structure + Fibonacci MTF
Si tu veux, je peux maintenant te faire aussi une version plus “pro/prestige” pour publication publique TradingView, ou une version plus agressive marketing.
Affichage de fibo lZ.txt en cours... مؤشر

Meridian Session Atlas [JOAT]Meridian Session Atlas
Introduction
Meridian Session Atlas (MSA) is an open-source ICT-methodology session zone engine that renders all five major trading killzones — Asia, London, NY AM, NY Lunch, and NY PM — as live, price-tracking boxes on the chart. Each session gets its own high and low pivot lines that extend rightward until price sweeps them, a real-time session VWAP for fair-value reference, and a sweep detection system that fires when a wick pierces a session extreme and the bar closes back inside. Daily and weekly opening prices are overlaid as key reference levels. All five sessions are fully configurable: colors, time windows, and visibility can be customized independently.
The core problem MSA solves is the manual, time-consuming work of identifying and drawing session ranges each day. ICT traders use session high/low levels as primary liquidity pools — price regularly sweeps below Asia lows to grab sell-side liquidity before reversing, or above London highs to take buy-side liquidity before reversing. Identifying those sweeps in real time, across all sessions simultaneously, on a clean chart with VWAP context is what MSA automates completely.
Core Concepts
1. Session Detection and State Tracking
Each of the five sessions is detected using Pine Script's time() function with the user-configured session string and timezone. A session starts when the current bar's time falls inside the session window for the first time (transition from outside to inside), and ends when it transitions back out:
bool asiaOn = useAsia and not na(time("", asiaSess, tzInput))
bool asiaStart = asiaOn and not asiaOn
bool asiaEnd = not asiaOn and asiaOn
On session start, the high, low, left bar index, and VWAP accumulators are reset. During the session, the high and low expand with each bar. On session end, the pivot lines are drawn and extended right.
2. Killzone Boxes
Each session draws a box that expands in real time as the session progresses — the right edge and top/bottom move with each new bar's high and low. On session close, the box freezes at the final session high and low, creating a permanent visual record of that session's range. A configurable maximum history count prevents chart clutter by automatically deleting old session boxes when the count exceeds the limit.
3. Session VWAP
Volume-weighted average price accumulates from the first bar of each session. The formula uses cumulative price-volume (hl2 * volume) divided by cumulative volume, resetting at each session start:
float asiaVwap = asiaOn ? safeDiv(as_cpv, as_cv) : na
The VWAP is plotted as a line only during the active session, breaking between sessions. It represents the institutional fair-value level within each killzone — institutional order flow frequently uses the VWAP as an equilibrium reference.
4. Liquidity Sweep Detection
A sweep is detected when price wicks through a session's pivot high or low and then closes back inside. The logic applies a minimum depth filter (default 0.1 ATR) to eliminate trivial tag-and-return moves, an optional body filter to confirm directional close bias, and a cooldown period to prevent multiple signals from the same sweep:
if low < as_lo and close > as_lo and asWickDn >= minSweepATR * atrVal and asBodyOkB
as_bullSweep := true
as_sweep := bar_index
A bullish sweep fires when price wicks below the session low and closes back above it — this is the ICT buy-side liquidity grab pattern. A bearish sweep fires when price wicks above the session high and closes back below — the sell-side liquidity grab. All five sessions are monitored simultaneously.
5. Daily and Weekly Opens
The opening price of each new trading day and each new trading week is plotted as a horizontal line extending rightward. These levels represent the most important institutional reference prices of their respective periods — the daily open divides the day into a bullish (above) or bearish (below) context, and the weekly open does the same for the week.
Features
Five Independent Killzone Boxes: Asia, London, NY AM, NY Lunch, and NY PM each rendered as live price-tracking boxes with individual color, time, and visibility settings
Session Pivot Lines: High and low pivot lines extend from each completed session's extreme until price sweeps through them, providing persistent liquidity pool reference
Configurable Line Style: Pivot lines can be Solid, Dashed, or Dotted with adjustable width (1-3)
Five Session VWAPs: Real-time volume-weighted average price plotted for each active session in its respective color
Sweep Signal Labels: Bull and bear sweep labels fire at the bar where the wick/close confirmation occurs, sized Tiny, Small, or Normal, with the session name embedded in the label
Sweep Depth Filter: Minimum wick depth in ATR multiples prevents noise from triggering false sweep signals
Body Confirmation Filter: Optional close-in-upper/lower-half confirmation strengthens sweep signal quality
Sweep Cooldown: Configurable bar count prevents multiple signals from the same sweep event
Daily and Weekly Open Lines: Dotted (configurable) horizontal lines at the current day and week open prices
Timeframe Gate: All indicator elements automatically hide when the chart timeframe exceeds a configurable threshold — prevents the indicator from rendering on timeframes where session boxes are too compressed to be useful
Session History: Configurable maximum number of completed sessions to keep on chart (1-8 per killzone)
9-Row Dashboard (Top Right): Active session name with color, session highs and lows for all five sessions, daily open price, current timeframe, and version
Watermark: JackOfAllTrades signature at chart center-bottom
Sweep Alerts: Separate bull and bear sweep alertconditions with plain-text or JSON webhook format
Input Parameters
Main Settings:
Timezone: Exchange or broker timezone for session alignment (default: America/New_York)
Hide Above Timeframe: Chart TF at which indicator elements hide (default: 60-minute)
Session History: Number of completed sessions to keep per killzone (default: 3)
Killzones (each session has identical controls):
Enable toggle, session name, session time string, and color — fully independent per session
Default sessions: Asia 20:00-00:00, London 02:00-05:00, NY AM 09:30-11:00, NY Lunch 12:00-13:00, NY PM 13:30-16:00 (all in New York time)
Session Pivots:
Show Session Pivot Lines toggle
Show Session VWAP toggle
Pivot Line Style: Solid, Dashed, or Dotted
Pivot Line Width: 1-3
Sweep Signals:
Show Sweep Signals toggle
Min Sweep Depth (ATR x): Minimum wick depth as a multiple of ATR (default: 0.1)
Cooldown Bars: Minimum bars between sweep signals (default: 3)
Body Confirmation: Close must be in directional half of the candle body (default: enabled)
Signal Size: Tiny, Small, or Normal (default: Small)
How to Use This Indicator
Step 1: Identify the Active Session
The dashboard shows the current active session in its color. The live session box is expanding in real time. This gives immediate context for whether you are in a high-liquidity killzone or off-session dead time.
Step 2: Monitor Session Extremes for Liquidity Pools
Completed session highs and lows are the primary liquidity pools that ICT methodology targets. These are the levels where institutional order flow is placed — above previous highs (buy-side liquidity) and below previous lows (sell-side liquidity).
Step 3: React to Sweep Signals
When a sweep label appears, price has hunted a session extreme and rejected it. A bull sweep (below a session low, close back above) represents a sell-side liquidity grab and potential long entry opportunity. A bear sweep (above a session high, close back below) represents a buy-side liquidity grab and potential short entry opportunity. Confirm with higher-timeframe bias and session VWAP position.
Step 4: Use Session VWAP as Fair Value
Price above the active session VWAP is trading at a premium within that session. Price below is at a discount. ICT concepts suggest looking for longs from discount (below VWAP after a bullish sweep) and shorts from premium (above VWAP after a bearish sweep).
Step 5: Reference Daily and Weekly Opens
The daily open is the most important intraday reference level. Price holding above the daily open is a bullish intraday context. Sweeps of the daily open low with a close recovery signal potential long opportunities.
Indicator Limitations
Session times are fixed to the timezone input. On instruments that trade across midnight or on non-standard sessions, the default session strings may need manual adjustment
The timeframe gate hides the indicator above the configured threshold. On timeframes above that threshold, none of the visual elements render — intentional behavior to prevent meaningless session boxes on, for example, a daily chart
VWAP calculation uses hl2 (average of high and low) multiplied by volume. On indices, synthetic instruments, or assets with unreliable volume data, the VWAP reading will not be accurate
Sweep detection uses bar close as the confirmation. Intrabar wicks that would constitute sweeps but then recover within the same bar are captured; wicks that close beyond the pivot are not classified as sweeps (they become the new session extreme)
Session history has a maximum of 8 completed sessions per killzone. On very long charts or after major gaps, the oldest session data is automatically removed
Originality Statement
MSA is original in its simultaneous, automated management of five independent session zones with unified sweep detection and VWAP integration. This indicator is published because:
The integration of five simultaneous, independently configurable session zones — each with its own box, pivot lines, VWAP, and sweep detection — into a single, performance-efficient indicator is uncommon. Most session-zone indicators handle only one or two sessions
The sweep detection algorithm applies three independent confirmation layers (ATR depth filter, body filter, cooldown) simultaneously across all five sessions, with a unified aggregated signal that names the originating session
The session VWAP calculation resets correctly at each session boundary (not at day boundary), providing a genuine intra-killzone fair-value reference rather than a daily VWAP approximation
The timeframe gate is a usability feature that prevents the indicator from rendering meaninglessly on timeframes where session granularity is lost
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Session high and low levels are historical reference points — price does not respect these levels in all market conditions, and sweep signals do not guarantee continuation in any direction. ICT methodology concepts described here represent one school of technical analysis and are not universally accepted. Always use proper risk management. The author is not responsible for any trading losses resulting from the use of this indicator.
-Made with passion by jackofalltrades
مؤشر

مؤشر
