TTP IMB - Unfilled ImbalancesWhat it draws
Unfilled imbalances — three-bar fair value gaps — from four timeframes at once (4H, 1D, 1W, 1M by default, all configurable), rendered on whatever chart timeframe you are on. Switching the chart resolution does not change the levels: a weekly gap keeps the same two prices whether you are looking at 4H or 1D.
A gap is defined by wicks across a three-bar window:
bullish — the high of the first bar is below the low of the third
bearish — the low of the first bar is above the high of the third
The box spans exactly those two extremes.
When a gap stops being drawn
Once price has overlapped 66.6% of the box's ORIGINAL height, measured from the side price enters by. A bullish gap dies when price falls that far into it from the top; a bearish gap when price rises that far from the bottom. A wick is enough by default — there is a setting to require a close instead, which leaves noticeably more zones alive.
The threshold is adjustable. 100 means only a complete traverse closes a zone, 50 is the classic midpoint rule.
Partially overlapped zones keep their full original geometry — the box does not shrink, so you can always see the imbalance as it was formed.
Fading
A zone price has already eaten at least 50% into, but which has not reached the closing threshold, is drawn faded and labelled with its fill percentage. This separates an untouched imbalance from one that has already been worked, without hiding either.
Multiplicative search band
Zones lying entirely outside a band around current price are discarded before anything else. That band is a RATIO — price/N up to price*N, N=2 by default — not a percentage.
This matters more than it sounds. A symmetric percentage band is badly lopsided, because price moves in multiples: −80% is 0.2x, a five-fold drop, practically zero, while +80% is only 1.8x, a couple of levels. Equal ratios up and down is what a log chart actually shows.
Timeframe gating
Only timeframes at or above the chart's own are computed, and only up to a ceiling of N rungs above it (2 by default). On a 4H chart that gives 4H/1D/1W and drops the monthly; on a daily chart, 1D/1W/1M. Timeframes below the chart are never drawn — they would be hairlines — and are not calculated at all.
Set the ceiling to 3 to see everything at or above the chart, or to 0 for the chart's own timeframe only.
How much is shown
Per timeframe: the N nearest unfilled zones above price and N below (3 each by default), plus every zone that currently CONTAINS price — those are the operative ones and are never rationed away.
Border thickness increases with timeframe, so the hierarchy reads at a glance.
Settings worth knowing
Filled at (%) — closing threshold, default 66.6
A wick is enough to fill — off requires a bar close beyond the threshold
Zones per side, per TF — default 3
Search range (xN) — multiplicative band, default 2
Dim a zone once filled (%) — fading threshold, default 50
Rungs above chart TF — the gating ceiling, default 2
Ignore zones thinner than (%) — optional micro-gap filter, off by default
Notes and limitations
The still-forming higher-timeframe bar cannot CREATE a zone — that would repaint intrabar — but it does count toward FILLING one, so a zone can die live as price moves into it. Everything else is closed-bar only.
Buffers fill only as far back as the chart's own loaded history reaches. On a 4H chart covering roughly two years, the monthly buffer holds about two dozen months rather than the full setting. This does not affect zones near price, which is all the script draws.
The gap scan is linear in the number of bars. The "has this gap been filled" test is answered with suffix extremes rather than a nested scan over later bars, which is what keeps four timeframes inside the execution budget instead of timing out.
This is a visualisation tool. It marks structural levels and does not generate entry or exit signals. مؤشر

Structure Participation Matrix [MQLSoftware]OVERVIEW
Structure Participation Matrix turns confirmed structure breaks into auditable records. It shows price-travel and chart-feed participation context, then compares endpoints across frozen score buckets. Each record has four readings, a score, and one delayed observation. It is research, not entries, stops, targets, sizing, execution, or forecasts.
Its distinct contribution is the complete frozen event ledger: strict delayed pivots, four disclosed measurements fixed at the break close, explicit UNSCORED handling, and one outcome check aggregated by frozen bucket. It links structure, participation, and later observation rather than merely combining standard indicators.
CONCEPTS
Strict symmetric pivots require a unique extreme on both sides; ties are rejected. A pivot becomes eligible only after its full right-side delay. A break requires a confirmed close beyond the armed level plus the ATR buffer; a wick alone is not an event.
Four 0-100 components freeze at that close. PATH measures displacement against the leg's total path. CLOSE averages directional close location over its final bars. REL VOL compares average leg volume with a rolling median. BALANCE weights volume by close location. The fixed score is 30% EFF/PATH, 25% CLOSE, 25% RVOL/REL VOL, and 20% BAL/BALANCE, normalized once for displays, buckets, and alerts.
RVOL uses reported or tick volume; BAL is an OHLCV proxy. They are not bid/ask delta, order flow, or a footprint; neither proves participant identity or predicts future behavior. Missing leg volume or bounded history makes an event UNSCORED and excludes it from bucket statistics.
After exactly N confirmed bars, the close is checked once. HELD N means the endpoint is beyond the broken level; FAILED N means it is not. HELD does not mean price stayed beyond the level throughout. The result is fixed.
FEATURES
Confirmed BREAK UP and BREAK DOWN events
Latest-event PATH, CLOSE, VOL, BAL rail
LOW, MODERATE, HIGH, and VERY HIGH score bands
HELD N or FAILED N endpoint checks
Sample-aware count and held-at-N rate by bucket
Break, direction, score-60+, and outcome alerts
HOW TO USE
Start with defaults. Higher Strict Swing Strength gives fewer pivots and a longer delay. Break Buffer sets the required closing distance in ATR units. Maximum Measured Leg Bars bounds history; an older leg remains a visible UNSCORED break.
Read the latest label first. In the rail, PATH describes travel efficiency; CLOSE, final-bar commitment; VOL, relative chart activity versus baseline; and BAL, a directional OHLCV proxy. The score summarizes a frozen event, not an instruction or probability.
The newest event keeps its expanded label and rail. Older events become compact labels; Historical Detailed Rails restores detail. Visual switches and retention affect drawings only, not calculations, counts, or alerts.
The matrix uses events recalculated from the history currently loaded on the chart. Counts and rates change with symbol, timeframe, inputs, or the history boundary. Small buckets remain collecting. HELD N rates are historical endpoint observations, not future estimates.
CONCLUSION
The result is an inspectable break record with transparent measurements, compact history, one timed outcome, and visible data limits. مؤشر

Unicorn Model Unicorn Model
Finds the ICT Unicorn and frames its context. A Unicorn forms where a displacement leaves a Breaker behind and the Fair Value Gap that displacement traded through inverts onto it — the same-direction Inversion FVG overlapping the Breaker is what confirms it. Two arrays reinforcing each other at one price, which ICT teaches as a tight, high-probability zone. This tool detects that overlap, marks the Breaker that qualifies, always shows the inversion FVG that makes it one, tracks the liquidity that engineered it, and keeps the HTF bias and the draw on a clean dashboard. It maps structure. It does not fire trades.
The sequence it looks for
The Unicorn is a confluence, not a standalone trigger. Bullish below; bearish mirrors.
Liquidity is taken — price sweeps a sellside low, engineering the reversal.
A swing is broken — displacement closes through the last swing high. The candles immediately before that leg are left behind as an order block, and it becomes a Breaker only once price later closes back through it, the block failing and flipping exactly as an FVG inverts into an IFVG.
The FVG inverts onto the Breaker — a candle body closes through the gap, so it fails and flips polarity into an Inversion FVG. A Breaker that a same-direction IFVG overlaps IS the Unicorn; with no overlapping IFVG it stays a plain Breaker.
Bias frames it — the model needs a clear higher-timeframe read, so a bullish Unicorn shows in a bullish or discount context and a bearish one in premium.
The draw — engineered liquidity in the direction of bias is the target the setup delivers toward.
Because the Unicorn is only as good as its narrative, bias is first-class: qualification is gated to the HTF read by default, and the dashboard keeps the read, the raid and the draw in front of you.
These are established Inner Circle Trader concepts — the Fair Value Gap, the Breaker, market structure shift, liquidity, the Midnight Open and premium/discount. This script is an original implementation of them, and what makes it its own thing is that it resolves the Breaker and the Inversion FVG that confirms it into a single zone rather than plotting each array in isolation.
What it draws
The Unicorn. When a live same-direction IFVG overlaps a Breaker, that box is relabelled Unicorn + or Unicorn -, drawn in purple or magenta with a distinct dashed border so the setup reads at a glance against the solid-bordered arrays around it. It is confirmed once and holds — it does not flicker bar to bar — and the confirming IFVG is kept alive with it. The two live and die together, so a Unicorn always shows the inversion that makes it one.
The ingredients. Drawn faintly beneath: FVGs in blue for bullish and red for bearish, Breakers in a neutral black, each tagged with the chart timeframe. A gap that sits inside the Unicorn or its inversion hides its own box, so the zone is never buried under the ingredient it is built from. Everything invalidates by candle body only — a wick through a zone never counts. A plain FVG inverts the moment one body closes through it; the Breaker and the inversion take a configurable number of body closes to retire, two by default.
The inversion. When a body closes through an FVG it does not vanish, it inverts — flipping polarity to deliver from the other side. The same-direction inversion overlapping a Breaker is what confirms the Unicorn. It is shaded orange, carries no label because orange reads as IFVG on its own, and sits behind the Unicorn so the zone stays in front.
Liquidity. Swing highs are buyside, swing lows are sellside, plus prior-day and prior-week levels as external-range reference, each anchored to the candle that formed it. The outermost live swing each side is tagged Buyside or Sellside Liquidity; inner swings carry Minor tags; prior-period levels keep a dated one. A level that is also an Asia, London or New York session extreme carries that tag too. Every level is removed the instant it is taken — no dotted stub, no lingering line — and an un-taken level that price trends a full range past without returning also clears. Tags that share a price merge into one rather than stacking.
Midnight Open. The 00:00 New York open, a core daily reference and a bias input. Below it leans bullish, above it leans bearish.
The draw. The target the setup delivers toward. It stays hidden until a Unicorn has set up AND its setup-side liquidity has been swept; only then is the opposing draw tagged on that level. That ordering is deliberate — the marker can never read as a standalone entry signal.
Dashboard
HTF bias, bullish or bearish or mixed, auto or manual. Whether a Unicorn is live and which way, falling back to the last one's direction rather than a bare dash. Which side of liquidity was most recently raided. The current draw with its price. Prior-day high and low, tracked even when the lines are hidden. Price against the Midnight Open. And where price sits in the dealing range, discount or premium against the equilibrium.
Reading it in practice
Trade with the dashboard bias. A Unicorn marks the Breaker whose overlapping inversion FVG makes it one; the orange IFVG shows the imbalance it sits within. ICT guidance waits for price to tap the FVG side, places the stop beyond the combined Breaker and FVG extreme — whichever is furthest — and targets the engineered liquidity the draw tag names. A gap left open below a bullish Unicorn range is intended: it shows intent and speed, and is not meant to be filled.
Method and repainting
All detection evaluates on closed bars. Swings, the structure break, the Breaker flip, the FVGs, the inversion and the Unicorn overlap are confirmed on candle close, never intrabar. Once a Unicorn is confirmed it is locked — it does not re-evaluate or flip state bar to bar — and invalidation counts only confirmed body closes, so an in-progress candle, wick included, never removes it. The Midnight Open fixes on its forming bar, and every level anchors to the candle that formed it.
Live zones and levels extend to the right edge for readability. That projection is cosmetic and changes no confirmed level, tap or raid.
Settings
Session timezone, right-side offset and label sizes. Bias mode and whether Unicorns are gated to it. Pivot strength. Liquidity display, per-side level caps, prior day and week levels with their lookbacks, and the raid-relevance window. Session tagging and the three session windows. FVG minimum height and displacement size, both in ATR, the declutter, the cap on live gaps, the framing IFVG, and how many body closes retire a zone. Unicorn colours. Dashboard position, including middle right, and text size.
Analytics only
This is a decision-support tool for discretionary ICT study. It maps zones, structure and context. It contains no alerts and no buy or sell signals, and it does not tell you when to enter or exit. The draw marker is a text label that appears only after a Unicorn has set up and liquidity has been swept, pointing at a liquidity target — not a trade instruction.
Disclaimer
This is a decision-support tool for discretionary ICT trading. It is not financial advice, and no market's past behaviour is indicative of future results. مؤشر

Daily Levels + Score# Daily Levels + Score (DHL×2)
---
## WHAT IT DOES
Most support/resistance scripts draw every level they find and leave you to guess which ones matter. DHL×2 finds the daily highs and lows that cluster together, draws them on your intraday chart, and then **grades each level with a statistical effectiveness score** based on how price actually reacted to it — evaluated strictly out-of-sample, so a level never "confirms itself". It also maps the current premium/discount context of the range with a time-at-price profile (POC / VAH / VAL).
## HOW IT WORKS
**1. Level detection — density clustering (KDE).**
Daily highs and lows over the lookback window are grouped with a kernel density estimate (triangular kernel, bandwidth = tolerance). Levels are the peaks of that density, so the result does not depend on the order in which candles are scanned, unlike the usual greedy grouping. Each touch is weighted by recency, and the final level is the weighted average of its touches. Tolerance adapts to volatility: Parkinson (default, converges faster after regime changes) or ATR.
**2. No self-confirmation bias.**
The touches that *form* a cluster do not count as tests. A cluster is "born" once it gathers the minimum number of touches; everything after that candle is out-of-sample evaluation. This is the key difference from scripts that count the same touches twice — once to build the level and again to "prove" it works.
**3. Effectiveness score.**
From its birth onward, every approach to the level is classified as respected or broken (consecutive candles in the zone count as one event). Three score modes:
- **Wilson 95%** — lower bound of the confidence interval; small samples are pushed toward 0 instead of showing a misleading "100% (2/2)".
- **Bayes (shrinkage)** — empirical Bayes: each level's score is pulled toward the base rate of all levels on the chart, with a configurable prior strength.
- **Raw %** — no correction, for comparison.
On top of that:
- **Time decay** — a respect from 30 days ago weighs less than yesterday's (configurable half-life).
- **Liquidity-consumption penalty** — consecutive respected tests progressively weaken the score, mimicking how resting orders get consumed at a real level.
- **Bounce magnitude (MFE)** — the average favorable excursion after each respect, expressed in daily-volatility multiples (σ), shown next to the score.
**4. Confluence.**
Round numbers (●, step configurable: e.g. 100 for NQ, 25 for ES) and proximity to the range equilibrium (◆) add a score bonus.
**5. Premium / Discount + time-at-price profile.**
The selected range (previous day, last N days, or full lookback) is split with fib lines (0 / 25 / 50 / 75 / 100) and an equilibrium line. A TPO-style **time-at-price profile** (no volume needed) is built from chart-resolution bars inside the range and plots the **POC, VAH and VAL**. When the POC sits meaningfully away from the geometric equilibrium (threshold as % of the range), the status label flags the imbalance with its direction: **POC>EQ** (p-shaped, value built in premium) or **POC مؤشر

Pivot Channel Breakouts█ OVERVIEW
Pivot Channel Breakouts is an adaptive market-structure indicator. It automatically builds a sloped channel from confirmed High and Low pivots, checks the geometry of the formation, and marks a breakout only when the close moves beyond the channel by a minimum ATR margin.
After a breakout the channel is moved into history, and an optional TP/SL module draws Entry, Stop Loss and up to three Risk:Reward targets. The indicator can be used both to read structure and to plan a potential trade after the breakout.
█ CONCEPTS
The indicator automatically detects pivots and builds the widest possible price channel that still contains all remaining points and candle closes. The goal is to recognize channel formations quickly without drawing the lines by hand.
Pivot-Based Channel Structure
The channel has two independent boundaries:
- Resistance — the upper line from High pivots.
- Support — the lower line from Low pivots.
The channel is drawn only when both sides of the buffer hold the required number of pivots. With the default setting that means at least two High pivots and two Low pivots. Until one side is incomplete, no formation is created.
Each boundary needs at least two pivots. With more points the indicator does not require collinearity. It searches pairs and keeps the pair with the greatest span, provided the remaining pivots and the candle closes stay on the correct side of the line. The first two pivots of the formation must be opposite — one High and one Low — so the channel starts from an alternating structure rather than two extremes of the same side. Envelope fit describes the price structure, not a perfect straight line through every point.
Pivot Detection
Pivot Left is the number of bars before the extreme, Pivot Right is the number of bars after it required for confirmation. Smaller values detect more local turns, larger values produce fewer and usually more significant pivots. A pivot is confirmed only after Pivot Right bars, so detection has a built-in delay.
Pivot Count
This parameter sets how many of the most recent High and Low pivots are kept in the buffer. A value of 2 builds a segment through two points on each side. Higher values increase selectivity: a line is created only when a pair meeting the structural rules can be found. The channel does not appear until both sides have collected the same required number of pivots.
Pivot Age and Channel Width
Max Pivot Age removes old points so a fresh pivot is not paired with a stale extreme. Minimum Channel Width rejects formations that are too short and accidental.
Dynamic Channel Adjustment
Until a confirmed breakout, a wick can bend the active boundary toward the new extreme. A temporary wick pierce does not end the channel. A breakout still requires a close beyond the line with an ATR margin.
ATR-Based Breakout and Close-Based Confirmation
A breakout is valid on the close only:
- above resistance + ATR × multiplier — long,
- below support − ATR × multiplier — short.
A wick alone does not generate a signal. The threshold scales with volatility: a higher multiplier cuts false breakouts, a lower one produces more signals.
Channel History and Pivot Reset
After a breakout the active channel is cut at the breakout bar and moved into history. Max Channels Shown limits how many old formations remain on the chart.
Reset Pivots on Breakout off: the next channel can form immediately from a mix of old and new pivots. On: both buffers are cleared and a completely new set of points must be collected.
TP/SL Framework
Each new breakout can draw:
- Entry — the close of the breakout candle,
- SL — ATR × multiplier or a fixed percent from entry,
- TP1 / TP2 / TP3 — targets as multiples of the Entry–SL distance (RR).
The layout moves with the chart and is closed when price hits SL or the farthest enabled TP.
█ FEATURES
General
- Max channels shown (history) — how many completed channels stay on the chart. Older ones are removed after the limit is exceeded.
Pivots
- Pivot Left / Pivot Right — sensitivity and confirmation delay of pivot detection.
- Pivots required to define a line — number of points in the buffer (2–6) on each side. The channel appears only after that many High pivots and that many Low pivots have been collected.
- Max pivot age (bars) — maximum age of a point.
- Minimum channel width (bars) — minimum length of the formation.
- Line extension to the right (bars) — visual extension of the lines to the right only; it does not affect detection.
Breakout
- ATR Period — ATR length used for the minimum breakout size.
- Minimum breakout size (x ATR), close only — required distance beyond the line on the close.
- Reset pivots on breakout — clears the buffers after a signal.
Appearance
- Resistance / Support Color — boundary colors.
- Trend line transparency — transparency of the channel lines.
- Channel fill color + Fill transparency — fill between the boundaries.
- Show breakout signals — triangles below/above the bar.
- Show dots on pivots — markers on every newly confirmed pivot.
- Dot color — resistance / support pivots.
TP/SL
- Show TP/SL Levels — enables the full layout.
- SL = ATR — SL from ATR or from a percentage.
- ATR Period (TP/SL) — separate ATR for the targets.
- ATR Multiplier for SL / SL % from Entry.
- RR for TP1 / TP2 / TP3.
TP/SL Display
- Show SL / TP1 / TP2 / TP3 Level — independent display of each level and its label.
█ APPLICATIONS
Channel Structure Analysis
Automatic drawing of sloped boundaries instead of connecting pivots by hand. Useful in trends, pullbacks and periods when price respects two parallel or near-parallel edges.
Breakout Confirmation
A triangle marks a close outside the channel with an ATR filter, not a mere line pierce. It is a starting point for further analysis of direction, momentum and context — not a standalone entry signal.
Risk/Reward Planning
After a breakout, Entry, SL and three targets are visible at once. SL can be based on volatility (ATR) or on a fixed percentage.
█ NOTES
- Larger Pivot Left/Right values mean slower, more selective detection.
- The signal is close-only; a wick can only bend the line.
- The breakout threshold scales with ATR.
- After a breakout the channel is archived; the pivot reset setting decides whether the next formation starts from scratch.
- TP/SL is visual R:R planning, not an assessment of trade quality. مؤشر

Keltner Channel Trend + SMC Liquidity Sweep [BigBeluga]🔵 OVERVIEW
The Keltner Channel Trend + SMC Liquidity Sweep is an advanced technical indicator created by BigBeluga to map volatility channels alongside Smart Money Concepts (SMC) liquidity pools and structural sweep zones. Traditional momentum strategies often fail to account for institutional liquidity resting above swing highs and below swing lows. In order to provide a solution to this problem, this indicator combines Keltner Channel trend metrics with dynamic Buyside Liquidity (BSL) and Sellside Liquidity (SSL) box tracking, identifying high-probability liquidity sweeps and trend continuation triggers directly on the chart.
The indicator aims to visualize volatility expansion, structural liquidity pools, and stop-hunt reversal zones. The core element of its calculation involves evaluating Keltner Channel moving average basis lines and Average True Range offset bands alongside swing pivot extremes.
The system establishes a dynamic trend envelope using exponential moving averages and volatility multipliers, while swing pivot detection locates key structural high and low levels. Higher values of length and multiplier settings allow the indicator to filter market noise and isolate major institutional liquidity zones.
🔵 FEATURES
The system utilizes a multi-layered matrix structure to provide actionable market intelligence:
1 — Keltner Channel Trend Engine
Adaptive Basis Midline: Computes an Exponential Moving Average basis line that dynamically changes color based on its slope.
Volatility Bands: Projects upper and lower ATR-based channel bands with a background fill to gauge volatility expansion and contraction.
2 — SMC Liquidity Pool Tracking
Buyside & Sellside Zones: Automatically plots dynamic BSL and SSL range boxes when swing pivots form outside the Keltner Channel boundaries.
Extended Box Projections: Continuously updates and extends active liquidity boxes forward until price interacts with the structural levels.
3 — Liquidity Sweep & Mitigation Detection
Sweep Reversals: Detects when price wicks past a liquidity level (BSL/SSL) but fails to close beyond it, signaling an institutional sweep and triggering entry labels.
Structural Break Handling: Automatically terminates and restyles liquidity boxes into dashed gray zones when candles close cleanly past the levels.
🔵 HOW TO USE
Apart from the basic visualization of trend channels, this tool can also act in alternative ways to support decision-making:
Spot Institutional Liquidity Sweeps: Monitor the chart for SSL sweep or BSL sweep labels occurring when price wicks past BSL or SSL boxes outside the Keltner bands.
Trade Trend Reversals from Sweeps: Use bullish SSL sweep signals as potential long entries following a sell-side liquidity grab, and bearish BSL sweep signals as short entries after a buy-side sweep.
Track Trend Momentum via Midline: Observe the color transitions of the Keltner Channel basis line to align trades with the prevailing higher-timeframe trend direction.
🔵 NOTES
Why this implementation is unique:
It bridges traditional volatility-based Keltner Channels with advanced Smart Money Concepts liquidity pooling and sweep detection.
The dynamic box engine automatically manages box extensions, terminations, and mitigation styling.
The script is fully optimized for performance, utilizing advanced box rendering, custom styling parameters, and strict bar confirmation logic for high-precision execution.
مؤشر

مؤشر

ICT Kill Zones and Session High LowICT Kill Zones and Session High Low
What it does
This indicator draws the intraday sessions as boxes with their high and low, marks the three daily opening levels, and reports which time state the chart is currently in. Its point is not the feature list, which you can find elsewhere; its point is being right at the edges. Everything is anchored to New York wall-clock time, so the sessions keep their place through every daylight-saving changeover, including the weeks when the United States and Europe have not both switched yet. On those weeks the panel says so.
How it works
Every window is resolved through the named time zone America/New York rather than a fixed offset, the chart time zone or your local time. That single choice is what makes the boxes sit correctly in March and October, and it is the reason a session cannot drift by an hour without anyone noticing.
A session starts on the first bar that falls inside its window, not on a bar whose clock reads exactly the start time. On a 45 minute chart no bar lands on 07:00, and a script that waits for one draws nothing that day.
While a session runs, its box grows and its high and low move with it. That state is drawn with a dashed border, because a level that can still change must not look like one that cannot.
When the session ends, the high and low are fixed and never move again. The border turns solid and the two levels extend to the right.
The bar that ends a session can already trade through what that session just fixed, so both things are allowed to happen on the same bar. A level that was taken immediately is never shown as untouched first.
A level is taken when price trades strictly beyond it, by wick or by close depending on the setting. A value exactly on the level is not a take, and each level changes state only once.
The New York to London offset is recalculated per trading day from the calendar itself. It is displayed, never applied: the sessions sit right because they are anchored to New York, not because anything is shifted.
Short trading days and holidays are read from the bars that exist, not from a stored calendar that would need maintenance and would eventually be wrong.
How to use it
Add the script to an intraday chart. Sessions cannot be resolved above 60 minutes, and on higher timeframes the script says so instead of drawing something misleading.
Read the dashed box as the session in progress and the solid one as finished. The two lines running to the right are the finished session's high and low.
Watch the panel in March and late October. When it reads 4h instead of 5h, the two regions are out of step and the London session sits an hour away from where it was the week before. The gap can last up to three weeks in spring and about a week in autumn, depending on the year.
If a day reads Early close or No RTH session, that day was short or closed. Both are recognised after the day is over, so the label refers to the last completed day.
Inputs
Sessions group - one row per session with a switch, its start and end time in New York wall-clock time, and its colour. London Close is off by default so the standard chart shows four boxes that do not overlap.
Session Levels group - show the fixed high and low, extend them to the right, and choose whether a wick or a close counts as taking them.
Time Markers group - Midnight Open, True Day Open and RTH Open, each switchable. The last two are hidden automatically where they have no meaning. Extend Markers Right lets the newest marker of each type run past the latest candle so its line and label stay visible in front of the price action; range 0-500, default 10. Older markers still end where the next marker of the same type begins.
Level Line Style and Marker Line Style - solid, dashed or dotted. The markers are dotted by default so they read as references rather than as structure.
Label Background - off by default, so only the label text shows. Turn it on where a label sits over the candles and the bare text is hard to read.
Days Retained - how many trading days stay drawn, the current one included. Range 1-10, default 2. Older days are deleted, not hidden. On futures the Sunday evening open counts as its own day, so on a Monday the default keeps Sunday and Monday rather than Friday and Monday.
Display group - session labels and where they sit: Above Box by default, Inside Box or Below Box, always centred on the width of the box. Plus text size in points, the time state panel and its corner.
Style group - how far the boxes fade for finished and running sessions, line widths, and one colour per time marker.
Alerts group - each of the four alert conditions can be switched off.
Signals and alerts
Session opened - fires on the first closed bar of a tracked session. Off by default, because the clock is not news.
Session closed - fires when a session has ended and its levels are fixed. Off by default for the same reason.
Session high taken and Session low taken - fire when price trades through a fixed level. On by default, because this is the one event of the four that is not predictable from a clock.
All four fire on the close of the bar that produced the change, and each level can only be taken once.
Repainting
Sessions start, end and levels are taken only on closed bars. A running session is the one thing that changes while it runs, and that is its purpose rather than a defect: its box grows with each bar and is drawn with a dashed border to say so. Once a session is finished its box and its two levels are fixed and are never rewritten, and the offset shown in the panel changes nothing that is already on the chart.
Limitations
A short trading day or a holiday is recognised only after the day is over, because it is read from the bars that exist rather than from a stored calendar. The panel therefore reports the last completed day. On futures that means a short Friday is reported during the Sunday evening session and is replaced once Monday begins.
Sessions need an intraday timeframe. Above 60 minutes the windows cannot be resolved and nothing is drawn.
On instruments without a regular trading session - spot forex, crypto and CFDs - the True Day Open and RTH Open markers are hidden because they are not defined there. The panel says so.
Only the most recent day's time markers carry a label. Older ones keep their line but would otherwise stack their labels on the same spot at the right edge.
A session with no bars inside its window produces nothing at all, which is correct but means an empty session leaves no trace to explain itself.
Days Retained set to 1 together with a window you moved across midnight keeps only the session that is still running. Its completed form is never shown, because the day it belongs to is already outside the retention. Raise Days Retained to 2 if you want to see it finished.
Only the bars of the chart timeframe are used. There is no higher timeframe layer, no intrabar data and no volume.
The script describes when things happened and whether a level was traded through. It does not compare sessions, rank them, or suggest entries, exits or targets.
This script is a charting tool for educational purposes. It does not provide financial advice and does not predict future price movement. Trading carries risk; decisions and their outcome remain yours. مؤشر

Key Levels - Cash MarketThis is a Pine v6 modernization of the original SpacemanBTC Key Levels indicator. The original was already a useful way to keep important higher-timeframe levels on chart, but parts of the session logic, timezone handling, and display system were showing their age—especially for equities and index futures traders.
This version keeps the same core idea while rebuilding the underlying logic for cleaner, more reliable behavior.
What changed
Updated to Pine Script v6
Modernized the codebase and removed a large amount of repetitive legacy plotting logic.
Cash-market sessions instead of FX-style sessions
London, New York, and Tokyo now use their actual local cash-market hours rather than generic FX session windows.
Timezone-aware session handling
Sessions use Europe/London, America/New_York, and Asia/Tokyo, so daylight-saving changes are handled automatically.
More reliable session High / Low / Open levels
Session tracking was rebuilt to reset from the actual first bar of each session, avoiding incorrect levels caused by gaps, stale values, or RTH-only charts.
Improved Tokyo handling
The Tokyo range accounts for the exchange's midday lunch break while preserving the morning range into the afternoon session.
Non-repainting Current Year levels
Current Year High, Low, and Mid were rewritten to avoid higher-timeframe lookahead behavior that could make historical levels differ from what was available in real time.
Improved Monday Range for futures
Uses TradingView's trading-day logic so overnight futures sessions—such as NQ beginning Sunday evening—are correctly associated with Monday.
Simplified display controls
The old Distance and Anchor Distance controls were replaced by a single Right Offset setting. Right Anchored mode now simply starts levels at the current bar.
Cleaner session settings UI
Each cash session now has its enable toggle, session time, and color on the same row.
Global Coloring is now truly global
London, New York, and Tokyo session levels now respect the Global Coloring setting as well.
Based on the original Key Levels SpacemanBTC IDWM source. The original source credited @sbtnc for the base code. This version remains open source with credit to the work it was built from.
مؤشر

NASDAQ Pre-Market Range Sweep [josseliani]NASDAQ Pre-Market Range Sweep is an intraday trading assistant built around a familiar pre-market range sweep-and-reclaim setup. It automatically maps the NASDAQ range formed between 08:00 and 09:00 New York time, then monitors price behavior as activity increases ahead of the 09:30 cash-session open. The main idea is simple: after price sweeps liquidity beyond one side of the pre-market range, it may either continue moving away or return inside the range and move toward its midpoint or opposite boundary. Instead of requiring users to draw these levels manually and monitor every candle, the indicator plots the range, qualifies the sweep, waits for one of two entry confirmations, marks Entry and TP1, and collects historical statistics for the same setup.
This is an indicator, not a TradingView strategy. It does not place orders or manage positions.
WHY THIS RANGE
By default, the range is built from M1 candles between 08:00 and 09:00 in the America/New_York time zone.
This hour captures a defined part of the NASDAQ pre-market before the transition into the more active New York morning and the 09:30 cash-session open. Once this period is complete, the indicator fixes: → Range High → Range Low → the 50% midpoint
With the default one-minute delay, sweep monitoring begins at 09:01 New York time.
The range levels can remain visible for a fixed number of minutes or extend until the next daily range begins.
QUALIFIED LIQUIDITY SWEEP
A small wick through Range High or Range Low is not enough to qualify as a sweep.
The entire M1 candle must be outside the range: → for an upper sweep, the candle’s low must be above Range High → for a lower sweep, the candle’s high must be below Range Low
By default, the outside candle must also take the nearest previously confirmed pivot on the same side. This optional structural filter helps distinguish a more substantial liquidity event from a minor extension beyond the range.
A qualified sweep is not an immediate entry. The indicator then waits for one of two confirmations: Range Reclaim or Pivot Entry.
RANGE RECLAIM
Range Reclaim is used when price returns inside the pre-market range after the sweep.
For a BUY after a lower sweep, the indicator waits for a closed M1 candle that: → closes inside the range → has at least 70% of its body inside the range under the default settings
Once that candle has closed, its high becomes the confirmation level. BUY is displayed when price subsequently breaks that high.
For a SELL after an upper sweep, the logic is reversed: the acceptance candle closes inside the range, and SELL is confirmed when price subsequently breaks its low.
For Range Reclaim: → Entry is the high or low whose break confirmed the signal → TP1 · Partial close is placed at the 50% midpoint of the range
The midpoint is used as the first structural objective because price has returned inside the range but is not guaranteed to reach the opposite boundary.
PIVOT ENTRY
Pivot Entry is designed for cases where price continues significantly beyond the swept range boundary.
The search for this entry is activated only after price has moved at least one complete range width beyond that boundary.
The indicator then waits for a new confirmed pivot to form outside the range: → after a lower sweep, it looks for a confirmed pivot high below Range Low and a subsequent break above it → after an upper sweep, it looks for a confirmed pivot low above Range High and a subsequent break below it
For Pivot Entry: → Entry is placed at the broken pivot level → TP1 · Partial close is placed at the nearest boundary of the original range
If Range Reclaim and Pivot Entry are confirmed on the same M1 candle, only one signal is recorded.
SIGNAL CONTROL
The same acceptance candle or confirmed pivot cannot generate repeated signals.
After a BUY, another BUY requires a genuinely new low beyond the extreme of the previous outside movement. After a SELL, another SELL requires a genuinely new high. The number of signals per range is also limited by the Maximum signals per range setting.
Once price reaches the opposite boundary of the range, the current range cycle is considered complete, and no additional signals are generated until the next range.
CHART DISPLAY
The indicator can display: → Range High and Range Low → the 50% midpoint → confirmed BUY and SELL arrows → Entry → TP1 · Partial close → the statistics table
BUY and SELL arrows show that one of the two confirmation models has been completed. Entry marks the level whose break confirmed the setup. TP1 · Partial close marks the first structural reference: → the range midpoint for Range Reclaim → the nearest range boundary for Pivot Entry
The trade markup is an analytical reference. It does not represent an automatically executed order or a guaranteed target.
TIMEFRAMES
All signal calculations are performed using M1 data.
On M1, the indicator displays the original signals together with the Entry and TP1 markup. On M5 and M15, it displays markers cloned from the original M1 events. It does not recalculate the setup using M5 or M15 candles. This allows the same M1 signals to be viewed within a wider market context.
Timeframes above M15 are not supported.
STATISTICS TABLE
The statistics table provides a historical view of how price behaved after a qualified sweep. For each completed range, the table evaluates the first qualified sweep found within the observation window.
Return depth is normalized according to the width of each individual range: → 0% = the swept boundary → 50% = the range midpoint → 100% = the opposite boundary
OVERVIEW
Completed ranges — the number of completed observations. An observation ends when price reaches the opposite boundary or when the statistics look-forward window expires.
Qualified sweeps — the number of completed ranges in which a qualified sweep occurred. The percentage is calculated from all completed ranges.
Returned into range — the number and percentage of qualified sweeps followed by at least some movement back inside the range.
Full opposite edge — the number and percentage of qualified sweeps that eventually reached the opposite range boundary.
RETURN DEPTH
Average return (>0) — the average maximum return depth among sweeps that produced a positive return. A complete return is capped at 100%.
Minimum return (>0) — the smallest positive return recorded in the sample.
0–25%, 25–50%, 50–75%, 75–90%, and 90–99% — the distribution of incomplete returns that did not reach the opposite boundary.
These rows show how far price most often returned. They are useful because waiting for the opposite boundary in every case may not be realistic.
RISK & TIME
Average adverse excursion — the average maximum distance that price continued moving away from the range after the qualified sweep. It is expressed as a percentage of that range’s width.
Maximum adverse excursion — the largest such movement recorded in the available sample.
For example, a maximum adverse excursion of 600% means that, in the most extreme historical case, price continued approximately six range widths farther away before the observation ended.
Average time to 20% — the average number of minutes from the sweep until price completed a 20% return.
Average time to 50% — the average number of minutes from the sweep until price reached the range midpoint.
Average time to full — the average number of minutes from the sweep until price reached the opposite boundary.
These values help estimate how long the historical return process usually took rather than assuming that it should happen immediately.
BREAK-EVEN SIMULATION
BE armed / stopped / later full is a statistical simulation only.
It shows: → how many events reached the selected return depth and activated the hypothetical protection level → how many subsequently returned to that simulated protection level → how many of those stopped cases later reached the opposite boundary anyway
The simulation does not move a real stop, alter the signals, or manage a trade.
EXAMPLE OF READING THE TABLE
The table shown in this example contains:
→ Completed ranges: 18
→ Qualified sweeps: 18 | 100%
→ Returned into range: 16 | 88.89%
→ Full opposite edge: 5 | 27.78%
Completed ranges: 18
The indicator completed 18 statistical observations on the available chart history.
An observation is considered complete when either:
→ price reaches the opposite boundary of the range
→ the Statistics look-forward window expires
This number does not represent 18 trades. It represents 18 completed range observations.
Qualified sweeps: 18 | 100%
A qualified sweep was found in all 18 completed observations.
The 100% is calculated as:
→ 18 qualified sweeps ÷ 18 completed ranges
For the statistics, only the first qualified sweep found within each range observation is evaluated.
Returned into range: 16 | 88.89%
After 16 of the 18 qualified sweeps, price made at least some positive movement back inside the range.
The percentage is calculated as:
→ 16 returns ÷ 18 qualified sweeps = 88.89%
This does not mean that all 16 events reached the midpoint or the opposite boundary. It means only that price moved back inside the range by more than 0%.
Full opposite edge: 5 | 27.78%
In 5 of the 18 qualified sweep events, price moved through the entire range and reached its opposite boundary.
The percentage is calculated as:
→ 5 full returns ÷ 18 qualified sweeps = 27.78%
This is an important distinction. In this sample, price returned inside the range in 88.89% of the events, but it completed the full journey to the opposite boundary in only 27.78%.
The table therefore helps avoid the assumption that every successful return should be held all the way to the other side of the range.
RETURN DEPTH
The same example shows:
→ Average return (>0): 66.2%
→ Minimum return (>0): 3.33%
Average return (>0): 66.2%
Among the 16 events that produced a positive return, the average maximum return depth was 66.2% of the corresponding range width.
The calculation includes partial returns and full returns. A return that reaches the opposite boundary is capped at 100%.
This does not mean that every event returned 66.2%. It means that 66.2% was the average maximum depth across the positive-return sample.
Minimum return (>0): 3.33%
The smallest positive return in the sample was only 3.33% of the range width.
Events with no positive return are not included in this minimum calculation. This row shows the weakest recorded return that was still greater than zero.
INCOMPLETE RETURN DISTRIBUTION
The example contains:
→ 0–25%: 4 | 30.77%
→ 25–50%: 2 | 15.38%
→ 50–75%: 5 | 38.46%
→ 75–90%: 2 | 15.38%
→ 90–99%: 0 | 0%
Five events reached the full opposite boundary and are therefore excluded from these incomplete-return groups.
That leaves:
→ 18 qualified sweeps − 5 full returns = 13 incomplete returns
The percentages in this section are calculated from these 13 incomplete events, not from all 18 qualified sweeps.
0–25%: 4 | 30.77%
Four of the 13 incomplete observations returned by less than 25% of the range width.
This group also includes events with a 0% return. Therefore, not every event in the 0–25% group necessarily moved back inside the range.
25–50%: 2 | 15.38%
Two incomplete observations returned through at least 25% of the range but did not reach its midpoint.
50–75%: 5 | 38.46%
Five incomplete observations reached the midpoint and continued beyond it, but did not reach 75% of the range.
This was the largest incomplete-return group in the example.
75–90%: 2 | 15.38%
Two observations returned through at least 75% of the range but stopped before reaching 90%.
90–99%: 0 | 0%
None of the incomplete observations stopped between 90% and 99%.
Events that reached 100% are counted separately under Full opposite edge.
ADVERSE EXCURSION
The example shows:
→ Average adverse excursion: 189.34%
→ Maximum adverse excursion: 665.07%
Adverse excursion measures how far price continued moving away from the swept boundary after the qualified sweep.
It is also normalized according to the width of the corresponding range.
Average adverse excursion: 189.34%
On average, price traveled approximately 1.89 range widths farther away from the swept boundary during the observed events.
This number shows why a liquidity sweep should not automatically be treated as an immediate reversal or as an entry without confirmation.
Maximum adverse excursion: 665.07%
In the most extreme observation, price continued approximately 6.65 range widths beyond the swept boundary.
This does not mean that every setup requires such a large stop. It shows the largest historical extension found in the available sample and demonstrates that price can continue significantly farther after a sweep.
TIME STATISTICS
The example shows:
→ Average time to 20%: 14.86 min
→ Average time to 50%: 23.75 min
→ Average time to full: 30 min
These values are measured from the qualified sweep.
Average time to 20%: 14.86 min
Among the observations that reached a 20% return, the average time required was 14.86 minutes.
Events that never reached 20% are not included in this average.
Average time to 50%: 23.75 min
Among the observations that reached the range midpoint, the average time required was 23.75 minutes.
Events that never reached 50% are not included.
Average time to full: 30 min
Among the five observations that reached the opposite boundary, the average time required to complete the full return was 30 minutes.
This does not mean that a full return should always occur within 30 minutes. It describes only the average of the completed full-return cases in this sample.
BREAK-EVEN SIMULATION
The example shows:
→ BE armed / stopped / later full: 14 / 10 / 4
With the default 20% activation setting, this means:
→ 14 events reached at least a 20% return and activated the hypothetical protection level
→ 10 of those events subsequently returned to the simulated protection level
→ 4 of those 10 events later reached the opposite boundary anyway
This row helps examine whether protecting a position after the first part of the return might remove exposure from some events that would later continue to the full target.
It is a statistical simulation only. It does not place a stop, move a stop, change the signals, or manage a real position.
WHAT THE TABLE TELLS ME
In this particular sample, the table shows that a return inside the range occurred much more frequently than a complete move to the opposite boundary.
It also shows:
→ how deep the average return was
→ how shallow the weakest positive return was
→ where incomplete returns most often stopped
→ how long different stages of the return usually took
→ how far price sometimes continued away from the range before returning or before the observation ended
The purpose of the table is not to prove that the setup will work in the future. It provides a structured statistical view of the price behavior visible on the current chart, symbol, data feed, and settings.
HOW I USE IT
I use the indicator on a NASDAQ M1 chart and first wait for the pre-market range to be completed.
After 09:00 New York time, I watch for a qualified sweep of one of the boundaries. The sweep itself is not my entry.
I then wait for either: → a confirmed return inside the range through Range Reclaim → a confirmed pivot break after a deeper movement outside the range
The arrow shows that one of these confirmation conditions has been completed. Entry marks the confirmation level and the potential trade-entry level. TP1 · Partial close marks the first structural area where a partial exit or closer observation of the price reaction may be considered.
The default settings and presets are built for the NASDAQ sweep-and-reclaim strategy around the New York pre-market open. The same logic can also be used on other instruments, including FX pairs and gold. On gold, you can keep the same New York pre-market range; the market will simply produce its own statistics. On EURUSD, for example, you can build a London session window by adjusting Range start hour / minute and Range length (still entered in New York time).
Use the statistics table to judge how clean the setup looks on that symbol and those settings, and build the variation that fits you: → try different instruments and currency pairs → try different chart timeframes → choose your own pre-market hour and range length → decide from the table whether the setup is worth trading there
MAIN SETTINGS
Range start hour / minute — sets the beginning of the range in New York time.
Range length — sets the duration of the range.
Start watching after range end — sets the delay before sweep monitoring begins. The default value of one minute starts monitoring at 09:01.
Statistics look-forward window — sets how long each sweep is observed for the statistics table.
Signal window mode — limits signal generation to a fixed period or allows it to continue until the next range.
Signal window — sets the duration of the fixed signal-search period.
Maximum signals per range — limits the number of confirmed signals for one range.
Minimum reclaim body inside range — sets how much of the closed acceptance candle’s body must be inside the range.
Require nearest confirmed pivot sweep — requires the outside candle to take the nearest confirmed pivot.
Pivot strength — controls the size and confirmation delay of local pivots.
Level extension — extends the range levels for a fixed period or until the next range.
Trade markup length — controls the length of the Entry and TP1 lines.
ORIGINALITY
Pre-market ranges, liquidity sweeps, and confirmed pivots are established market concepts. The originality of this implementation lies in how these elements are combined and managed as one complete process.
The script: → requires the entire M1 candle to move outside the range → can require the nearest confirmed pivot to be swept → separates the liquidity event from the entry confirmation → provides two distinct confirmation models: Range Reclaim and Pivot Entry → activates Pivot Entry only after a one-range-width excursion → prevents the same candle or pivot from producing repeated signals → requires a new external extreme before another same-direction signal can occur → terminates the cycle after price reaches the opposite boundary → includes a normalized statistics table designed specifically to evaluate this range-sweep setup
The table is not intended to present a strategy win rate. It provides a statistical view of the underlying idea: how often qualified sweeps occurred, how often price returned inside the range, how frequently it reached the opposite boundary, the average and minimum return depth, the time required for different stages of the return, and the adverse distance price sometimes traveled before returning or before the observation ended.
This helps users evaluate the historical behavior of the setup instead of assuming that every sweep must produce a complete return or that every return should take the same amount of time.
The indicator is published free and open-source so that users can inspect the calculations and verify how the signals and statistics are produced.
LIMITATIONS
Results can differ between NASDAQ symbols, exchanges, and data feeds because the calculations depend on M1 OHLC data.
Confirmed pivots require bars on their right side and therefore become available only after a structural confirmation delay.
M5 and M15 display cloned M1 events, not independently calculated higher-timeframe signals.
The statistics describe only the available historical sample under the current settings. They are not a strategy report and do not guarantee future results.
The indicator does not account for commissions, slippage, position size, or individual stop-loss placement. Entry, TP1, and the break-even simulation are analytical references, not automated trade-management instructions. مؤشر

Volatility-Scaled Range Level with Term Structure FilterWHAT IT DOES
This indicator plots a single volatility-scaled price level and evaluates three independent market-condition filters against it. The level sits one Average True Range below the prior period's close, so it widens automatically when realized volatility expands and tightens when volatility contracts. A summary table reports the level, its distance from current price as a percentage, and the state of each filter.
It is a reference and condition-monitoring tool. It does not generate buy or sell orders, does not connect to a broker, and takes no position on whether any particular trade should be placed.
HOW IT WORKS
The level is computed on a higher timeframe than the chart:
level = close of higher timeframe − ATR(14) of higher timeframe
ATR here is Wilder's RMA of True Range, which is what ta.atr() returns. Both components are pulled with request.security(..., lookahead = barmerge.lookahead_off) and referenced at index , so the value is drawn from the last completed higher timeframe bar and does not repaint. Setting the timeframe input to W produces a weekly-anchored level; D produces a daily-anchored one.
The level is then floored to a user-defined increment (default 5). This is optional rounding for users who want the level snapped to a round number rather than an arbitrary decimal.
Three filters are evaluated independently:
Term structure. The ratio of a short-dated volatility index to a longer-dated one (default CBOE:VIX over CBOE:VIX3M). A ratio below the threshold indicates contango, the normal state. A ratio above it indicates backwardation, which historically coincides with volatility clustering and trending decline. Both symbols are user inputs and can be swapped for other instruments.
Absolute volatility floor. A minimum level on the short-dated volatility index. Below this, the distance implied by ATR is small in absolute terms.
Optional trend filter. Price above its 21-period EMA.
The table reads GATES PASS only when all enabled filters are satisfied. An alert() call fires on the first bar of each new higher-timeframe period, with the level, the distance, and the filter states embedded in the message text.
HOW TO USE IT
Add to a daily chart. Set the ATR timeframe input to match the horizon you care about: W for a weekly-anchored level, D for a daily one. Confirm your data plan resolves both volatility symbols; substitute alternatives in the Symbols group if not.
The panel position is adjustable through the "Panel offset right of centre (%)" input, from 0 for centred through 45 for the right edge.
For notifications: right-click the chart, Add alert, select this indicator as the condition, choose "Any alert() function call", and set the frequency to Once Per Bar so it fires at the start of a new period rather than at its close.
The "Anchor on forming period" input switches the level to use the in-progress higher-timeframe bar rather than the last completed one. This produces a value that updates continuously through the period. It is intended as a preview of where the next period's level is forming, not as a signal, and it will change intrabar.
ORIGINALITY
Prior-close-minus-ATR levels are a well-established concept and several published indicators plot them, most notably Saty Mahajan's ATR Levels, which plots a full Fibonacci ladder of them across six timeframe modes. This script is not a republication of that work and does not reuse its code. It differs in scope and purpose:
It plots one level rather than a ladder, to keep the chart readable when the level is the only thing being monitored.
It adds volatility term structure and absolute volatility as explicit gating conditions, which existing ATR level indicators do not evaluate.
It rounds the level to a user-defined increment.
It emits a dynamic alert message containing the computed values, so the notification is self-contained and requires no chart lookup.
The arithmetic that produces the level is standard and deliberately matches the conventional definition so that values are comparable with other implementations.
LIMITATIONS AND SHORTCOMINGS
The level is descriptive, not predictive. It describes a distance in volatility units. Price reaching or not reaching it carries no guarantee of any kind.
The term structure filter depends on external symbols. If your data plan does not provide them, the filter cannot be evaluated and the table will not populate correctly. Verify both symbols resolve before relying on it.
Volatility index data is daily. The filter therefore updates on a slower cadence than the chart and can be stale relative to fast intraday moves.
The absolute volatility floor is a coarse proxy. It says nothing about the actual pricing of any instrument.
On index CFD feeds, the underlying value can differ slightly from the cash index. Where the level is near a rounding boundary, the rounded output may differ between feeds.
The forming-period preview mode updates continuously and is not a fixed reference.
No backtest or performance statistics are presented, because this is an indicator and not a strategy. Nothing here has been tested as a system.
CREDITS
The prior-close-minus-ATR level concept is widely used. Saty Mahajan's open-source ATR Levels indicator is the best-known implementation on TradingView and is worth reviewing for a fuller treatment of the concept across multiple timeframe modes and Fibonacci ratios.
DISCLAIMER
This script is provided for educational and analytical purposes. It is not financial, investment, or trading advice, and it is not a recommendation to buy or sell anything. Volatility-based levels describe historical range behaviour and carry no predictive guarantee. Any use of this tool is at your own risk.# TradingView publication description مؤشر

The Trap IndicatorThe Trap Indicator
WHAT IT IS
The Trap Indicator is a structure-based tool that automatically detects and marks a specific market sequence known as "the trap": a Change of Character (CHoCH) that catches one side of the market off guard, followed by a Break of Structure (BOS) that catches the opposite side, before price turns to sweep the liquidity left behind by both groups. Instead of drawing every structure break on the chart, it isolates this particular chained sequence and highlights only the CHoCH, the BOS, and the liquidity pool that sits between them.
WHAT IT IS BASED ON
The indicator is built on core Smart Money Concepts (SMC) / ICT-style ideas: market structure shifts (CHoCH and BOS), and liquidity resting above and below swing points as pools of stop orders that price tends to gravitate toward. The specific sequence it looks for is a practical extension of those building blocks: a structure break in one direction traps traders who enter on it, the market then reverses and breaks structure in the other direction, trapping a second, opposite group, and only after that combined liquidity has been swept does the underlying move tend to unfold with less resistance. The individual concepts (CHoCH, BOS, liquidity) are standard SMC/ICT vocabulary; the way they are chained together here into one tracked pattern is this indicator's own interpretation of that idea.
WHAT IT IS MADE OF
The indicator works from three consecutive swing points, labeled A, B and C:
- Swing A: a confirmed pivot (high or low) taken as the starting reference.
- Swing B: the swing right after A, in the opposite direction.
- Swing C: the swing right after B, in the same direction as A, but going further than A (a lower low for a bullish resolution, a higher high for a bearish resolution). This is what confirms the CHoCH — structure breaking against the initial A-to-B move, trapping whoever entered on it.
From there:
- BOS line: plotted when price closes back beyond swing B, confirming a Break of Structure in the opposite direction and trapping a second group of traders who act on that break.
- Rebound Zone: a box drawn across the price range between swings A and C — the pool of liquidity left behind by both trapped groups. The box grows bar by bar for a set number of bars after the BOS confirms, then disappears automatically, leaving only the CHoCH and BOS marks on the chart.
Swing detection uses standard pivot highs/lows, with an optional ATR-based minimum-amplitude filter to ignore minor, noise-level swings.
HOW TO USE IT
Add the indicator to any symbol and timeframe. When a valid CHoCH forms, an orange line appears at the level that was broken, labeled "CHoCH." If price then breaks structure the other way, a second line (green for a bullish resolution, red for a bearish one) appears at that level, labeled "BOS," together with the Rebound Zone box marking the liquidity range between swings A and C. That box is the area to watch: it represents the combined liquidity from both trapped groups, which price often revisits before the larger move plays out. Once the configured number of bars has passed, the box disappears on its own, while the CHoCH and BOS lines remain as a permanent record of the structure shift.
Settings worth adjusting:
- Pivot lookback/lookahead and the amplitude filter control how sensitive swing detection is — lower values catch more (and smaller) swings, higher values focus on more significant structure.
- Rebound zone duration (bars) sets how long the liquidity box stays visible before it is removed.
- Bullish/bearish resolutions can be toggled independently, and all colors, line width and label size are configurable.
This indicator only marks structure — it does not plot entries, targets, or stop levels, and it does not predict that price will necessarily reverse inside the Rebound Zone. It is meant to help visualize where this specific liquidity-trap sequence is forming, so it can be combined with the trader's own confirmation (price action, volume, or other tools) before making any decision. It is provided for educational and analytical purposes only and does not constitute financial advice. مؤشر

ATR Dynamic ZigZag with Real-Time Confirmation StatsThis Pine Script indicator, "ATR Dynamic ZigZag with Real-Time Confirmation Stats", is a sophisticated tool that combines a volatility‑adjusted ZigZag with a statistical dashboard. Below is a clear breakdown of its purpose, mechanics, and how to interpret the data it provides.
🎯 What It Does
Dynamic ZigZag: Plots swing highs/lows only when price moves by a user‑defined multiple of Average True Range (ATR) – this filters out minor noise and adapts to current volatility.
Real‑Time Confirmation Stats: Tracks every confirmed swing and displays a live table with:
Theoretical vs. actual (confirmed) move percentages.
ATR lag cost (how much of the move was missed due to the confirmation rule).
System health diagnostics to help you tune the ATR multiplier.
Visual Overlays: Optionally shows Bollinger Bands, an EMA, and price/percentage labels on each ZigZag pivot.
⚙️ How It Works (Core Logic)
ATR Threshold
Calculates threshold = ATR(14) × Multiplier (default 2.0).
A new swing is confirmed only when price moves away from the current extreme by at least this amount.
Direction Tracking
Bullish mode (dir = 1): Tracks new highs. If price drops below extreme_high - threshold, the swing ends, and a new bearish swing begins.
Bearish mode (dir = -1): Tracks new lows. If price rises above extreme_low + threshold, the swing ends, and a new bullish swing begins.
Data Capture on Confirmation
When a swing completes, the script records:
Theoretical Move: % change between the two extreme pivot prices.
Confirmed (Real) Move: % change from the confirmation bar’s close to the new pivot (simulating an entry at the moment the reversal is confirmed).
Lag Cost: The difference between the two (i.e., missed profit due to waiting for ATR confirmation).
📊 Dashboard (Table) Interpretation
The table (top‑right) updates on the last bar and shows:
Row Metric What It Tells You
Count Number of completed swings Sample size for the stats.
Average / Max / Min Move Theoretical vs. Confirmed
If confirmed averages are much lower than theoretical, the ATR multiplier may be too large (lag) or too small (whipsaw).
Total Cum. Return Sum of all theoretical & confirmed % moves
A quick view of overall performance.
Positive = net upward swings, negative = net downward swings.
Recent Trades
Last 2 swings with direction (▲ BULL / ▼ BEAR)
Shows the most recent trade performance in detail.
ATR System Health Diagnostic status
Green = healthy edge (confirmed profits > lag).
Orange/Red = weak or unprofitable – adjust the ATR Multiplier.
🧠 How to Use & Optimize
Tuning the ATR Multiplier:
Too low → many small swings (whipsaw) – diagnostic will show “UNPROFITABLE EDGE”.
Too high → late entries (high lag) – diagnostic will show “WEAK EDGE”.
Aim for a value where “HEALTHY EDGE” appears and confirmed profits remain strong.
Visual Confirmation:
ZigZag lines change colour (green/red) based on direction.
Labels show the pivot price, theoretical %, and confirmed %. This helps you see if the system would have captured a move in real time.
Date Range: You can restrict the analysis to a specific period (e.g., only recent data) using the Start/End Date inputs.
🔧 Key Inputs You Can Adjust
Input Default Effect
ATR Length 14 Sensitivity of volatility measurement.
ATR Multiplier 2.0 Most important – controls the minimum swing size.
Show Zig Lines On Toggle the ZigZag drawing.
Show Percentage & Price Labels On Shows labels on each pivot.
EMA Length / Source 5, close
Used only for colour logic and reference (not for signals).
⚠️ Important Caveats
Not a standalone entry signal – it’s a post‑facto swing tracker that shows what would have happened. Use it to evaluate your ATR multiplier, not as a direct buy/sell trigger.
Confirmation price is the close of the bar where the reversal threshold is hit – in real trading, slippage and execution delays may increase the actual lag.
Stats accumulate from the start date; reset by changing the date range or reloading the chart.
✅ Summary
This indicator is an educational and diagnostic tool for traders who:
Want to see how an ATR‑based swing system performs historically.
Need to tune their volatility‑adjusted stop/reversal parameters.
Prefer a visual representation of “what would have been captured” vs. “what was actually captured” with a realistic confirmation delay.
By monitoring the System Health row and comparing theoretical vs. confirmed stats, you can systematically optimise the ATR multiplier for the asset and timeframe you are trading.
FOR EDUCATIONAL PURPOSES ONLY
NOT A FINANCIAL ADVICE مؤشر

MYND Fractal Support/Resistance Density Map [v1.4]MYND Fractal Support/Resistance Density Map
A decayed, multi-scale support/resistance DENSITY map - not a single pivot-line tool. It detects swing highs/lows at 3 configurable pivot scales, scores every confirmed pivot into a rolling price-bin array (volume-weighted), and decays that score every bar so old, stale levels fade out instead of piling up forever. The Top-N highest-density bins are surfaced as ranked, cluster-merged S/R zones - with early-warning alerts, reject-vs-break classification across all tracked zones, an optional full heatmap view, on-chart labels, and now a dashboard that shows distance-to-#1-zone, the single nearest zone to price, and when a zone's density really represents several folded-together levels.
WHAT IT DOES
Three pivot scales (short/medium/long) independently detect confirmed swing highs and lows. Every confirmed pivot adds a weighted density score to whichever price bin it touches - longer, more significant scales contribute more, and a pivot's own relative volume scales its contribution further. All accumulated density decays by a fixed factor every bar, so a level that mattered years ago but hasn't been touched since gradually fades. Near-adjacent candidate bins fold into one merged zone rather than showing as near-duplicates. The highest-density bins are ranked and surfaced as the tool's Top-N zones.
HOW TO USE IT
Treat higher-density zones as levels more likely to produce SOME reaction - a bounce, a rejection, a pause - not as levels guaranteed to hold. Use the Approaching-Zone alerts (Zone #1-specific or the all-zone aggregate) as your cue to start watching closely, then read the Reject/Break tag once price actually resolves. Check the new Nearest Zone to Price row for what's immediately relevant right now, separate from which zone ranks #1 by density overall. Raise Zone Cluster Merge Distance if nearby zones keep reading as near-duplicates - and watch for the "merged Nx" tag as a reminder that a zone's density may represent several folded levels, not one. Raise Minimum Touches to Show if you only want to act on zones that have already proven themselves. Turn on HTF Confluence for extra cross-timeframe conviction, and the Density Heatmap to see the whole structure at a glance.
KEY FEATURES
A live dashboard showing each Top-N zone's price, density, freshness, merge status, and touch-threshold status, plus distance-to-#1-zone and the single nearest zone to price. On-chart zone price labels. Volume-weighted, cluster-merged density scoring. Fully adjustable zone line width/style/color (per rank), table border width/color, and heatmap color. Full cross-tool export for all 5 possible zones plus distance-to-#1-zone. 10 individual alerts plus 1 combo bundle.
SETTINGS WORTH TUNING FIRST
Per-Bar Decay Rate is the core dial on how fast old levels fade. Enable Volume-Weighted Density is on by default - turn off if a ticker's volume data is unreliable. Zone Cluster Merge Distance controls how aggressively nearby candidates get folded together (and how often you'll see a "merged Nx" tag). Minimum Touches to Show is 0 by default - raise it to filter out unproven levels. Enable HTF Confluence Check is off by default.
WHAT THIS TOOL DELIBERATELY DOES NOT DO
Density is a proxy for level significance, not a guarantee a zone will hold. HTF Confluence compares against the HTF's own recent swing high/low, not a second full density map - a disclosed simplification. The touch count keeps accumulating in the background regardless of the Minimum-Touch filter setting. Zone lines, labels, and the heatmap only reflect the most recent bar's selection, not a full historical record. The new merge-count and nearest-zone-to-price data are dashboard-only - not yet exposed via the Cross-Tool Signal Export plots.
ALERTS
10 individual alerts (Price Entered Top-N Zone, Price Exited All Top-N Zones, Top Zone Reshuffled, Price Approaching #1 Zone, Zone #1 Rejected/Bounce, Zone #1 Broken Through, Zone #1 Aligned with HTF Level, Any Zone Approaching, Any Zone Rejected, Any Zone Broken Through) plus 1 combo bundle (ALL Fractal S/R Signals).
FEEDBACK WELCOME
If you've tweaked a setting, found a combination with another indicator that works well, or have an idea for what would make this more useful, I'd genuinely like to hear about it - drop a comment below (it helps other users too), or send a direct message if you'd rather keep the details private.
This tool identifies patterns in past price and structure - it is not a guarantee of future performance. This tool is provided for informational and educational purposes and does not constitute financial advice. Trading involves risk; past performance and historical patterns do not guarantee future results. مؤشر

MYND Structure Shift v1.3MYND Structure Shift
A market-structure tool: HH/HL/LH/LL swing labeling, Break of Structure (BOS) and Change of Character (CHoCH) detection, and a liquidity-sweep engine that only confirms a reversal once a swept swing point is followed by a genuine displacement candle and a volume spike - now with the signal-suppressing alignment gate turned into an informational tag, a grace period for confirmations, and a base-rate tally so frequency is tunable with real data.
WHAT IT DOES
This indicator tracks market structure the way price actually prints it: every confirmed swing high/low is classified as a Higher High, Higher Low, Lower High, or Lower Low, and every break of a swing level is tagged either BOS (continuation) or CHoCH (a potential structural reversal). Separately, a liquidity-sweep engine watches for wicks that pierce a swing point and close back inside it, and only treats it as a real signal once validated by a strong-range, strong-close, high-volume displacement candle within a confirmation window.
HOW IT WORKS
Swing points confirm once enough bars have passed on both sides. A close-based break of the most recent swing level is BOS if it agrees with standing structure bias, CHoCH if it reverses it. Independently, a wick piercing a swing point and closing back inside it opens a confirmation window (extended once by the Grace Period if it would otherwise expire without Invalidating); only a subsequent displacement candle within that window turns the sweep into a Confirmed Reversal, which as of v1.3 fires regardless of Structure Bias by default.
KEY FEATURES
A live dashboard showing Structure Bias, Last Break Event, Sweep Status (with a grace-used indicator), Last Sweep Outcome, Last Signal Quality, the new Sweep Outcome Tally, Equal High/Low context, and HTF Bias/prior levels. A "(vs Structure)" tag on any confirmed reversal that runs counter to the structural bias. Independent label size/color controls. Invisible signal-export plots for wiring into other MYND tools.
HOW TO USE IT
Only act on the BUY/SELL Confirmed Reversal triangle - note whether it's tagged "vs Structure" (countertrend, weigh accordingly). If signals still feel rare, check the Sweep Outcome Tally: a lot of Expired suggests loosening the displacement/volume/window thresholds; a lot of Invalidated suggests this ticker/timeframe may not suit the tool's sweep-and-reverse premise as well as others would.
SETTINGS WORTH TUNING FIRST
Enable Confirmation Grace Period / Grace Extension Bars - gives pending sweeps more room; watch the Tally to see the effect. Require Confirmed Reversal to Align With Structure Bias (Blocking) - off by default now, only turn on if you specifically want countertrend reversals blocked outright. Enable Signal Cooldown, Filter Out Low-Quality Signals - the remaining quality/noise levers, unchanged from v1.2.
WHAT THIS TOOL DELIBERATELY DOES NOT DO
Order Block and Fair Value Gap zones remain purely visual. The Setup Quality Score is a heuristic, not a backtested probability. The Sweep Outcome Tally counts from whenever the indicator was added or its inputs last changed - it's not a fixed historical backtest total.
ALERTS
16 alerts total, unchanged from v1.1/v1.2 - v1.3 changed which signals reach those alerts (by removing the blocking gate), not the alert types themselves.
FEEDBACK WELCOME
If you've tweaked a setting, found a combination with another indicator that works well, or have an idea for what would make this more useful, I'd genuinely like to hear about it - drop a comment below (it helps other users too), or send a direct message if you'd rather keep the details private.
This tool identifies patterns in past price, volume, and structure - it is not a guarantee of future performance. This tool is provided for informational and educational purposes and does not constitute financial advice. Trading involves risk; past performance and historical patterns do not guarantee future results. مؤشر

HERTZ Order Block - Active Market Bias & Depletion [5M]HERTZ Order Block - Active Market Bias & Depletion
HERTZ Order Block is a market-structure-based Order Block analysis tool designed primarily for short-term cryptocurrency charts, with a particular focus on 5-minute analysis.
The indicator does not treat every opposite-colored candle as an Order Block. Instead, an Order Block can only be created after a confirmed structural event and a qualifying displacement move. The script then evaluates the resulting zone using multiple contextual factors, including displacement strength, candle structure, optional Fair Value Gap confirmation, optional candle-pattern confirmation, volume expansion, liquidity sweep context, zone size, age, retests, nearby opposing Order Blocks, and repeated-use depletion.
The purpose of the script is not to predict the next candle or guarantee a reversal. Its purpose is to identify structurally relevant Order Block zones, track how price interacts with them over time, rank their current importance, and summarize the balance between active bullish and bearish Order Blocks.
Order Block formation
A bullish Order Block is searched for after a confirmed bullish Break of Structure and bullish displacement. The script looks backward for a qualifying bearish candle that preceded the displacement and uses that candle as the source of the bullish zone.
A bearish Order Block uses the opposite process. After a confirmed bearish Break of Structure and bearish displacement, the script searches backward for a qualifying bullish candle and uses it as the source of the bearish zone.
Depending on the selected zone mode, the Order Block can be constructed from the refined portion of the source candle, its candle body, or its full high-to-low range.
Once an Order Block is created, its original price boundaries are preserved. The zone is not continuously relocated to follow price.
Confirmed lifecycle states
Each active Order Block has a lifecycle. These lifecycle states are primarily updated from confirmed bars so that an unclosed candle does not permanently change the historical state of a zone.
FRESH means that the Order Block has been created and has not yet completed a confirmed retest.
APPROACH means price has moved within the defined ATR-based approach distance of the Order Block.
IN ZONE means a confirmed price bar has interacted with the Order Block.
HOLD means the zone was tested and a later confirmed bar moved away from the zone in the expected direction by the required ATR-based confirmation distance.
These states are used not only for display purposes but also to control which Order Blocks are considered immediately actionable.
Action priority
The indicator separates structural importance from immediate trading relevance.
Structural Score (S) represents the current structural strength of an active Order Block after considering its original quality, displacement characteristics, age, mitigation status, opposing-zone conflict, and repeated-test depletion.
Action Score (A) represents how relevant an Order Block is to the current price interaction.
A distant Order Block is therefore not automatically labeled as the most important trading zone simply because it had a high initial quality score.
Only Order Blocks in the APPROACH or IN ZONE states are eligible for ACTION #1 or ACTION #2.
A FRESH zone that is still too far from current price can remain a RESERVE zone.
A completed HOLD also returns to reserve status rather than continuously encouraging entries after the original reaction has already occurred.
If opposing bullish and bearish actionable zones have similar scores, the indicator can display a WAIT condition instead of presenting a small numerical difference as a meaningful directional advantage.
Conflict-aware Order Blocks
Active bullish and bearish Order Blocks are not evaluated independently.
The script checks whether an opposing Order Block overlaps the current zone or is located close enough to interfere with the expected reaction path.
Strong and nearby opposing zones reduce the structural score of the affected Order Block. Multiple opposing zones can create an additional conflict penalty.
This allows the indicator to distinguish between a structurally isolated Order Block and one that is operating inside a congested bullish/bearish conflict area.
Repeated-test depletion
Order Blocks are not assumed to retain the same strength indefinitely.
A separate retest counter tracks independent interactions with each zone. Multiple consecutive candles remaining inside the same zone are treated as one interaction rather than multiple independent tests.
For another test to be counted, price must first leave the interaction and later return to the Order Block.
The default progressive depletion model is:
T1 - first successful test, no additional depletion.
T2 - moderate structural reduction.
T3 - stronger structural reduction.
T4 - substantial structural reduction.
T5+ - additional progressive depletion up to the configured maximum.
This mechanism is intended to represent the idea that repeatedly tested liquidity or order-flow areas may become less structurally significant as they are revisited.
The depletion values are scoring adjustments. They should not be interpreted as measured probabilities of failure.
Live warnings versus confirmed states
The indicator deliberately separates confirmed lifecycle information from intrabar warnings.
The confirmed state may continue to display HOLD, IN ZONE, or another locked state while the current realtime candle is still open.
AT RISK is a realtime warning that price is approaching the Order Block's invalidation boundary.
LIVE BREAK indicates that the current unconfirmed candle is temporarily trading beyond the relevant invalidation boundary.
These live warnings can appear and disappear while the realtime candle is forming. They do not by themselves rewrite the confirmed lifecycle of the Order Block.
With close-based invalidation, an Order Block is not permanently invalidated until the relevant candle closes beyond the zone boundary.
With wick-based invalidation, the configured wick condition is used instead.
Active Order Block Market Bias panel
The information panel in the upper-right corner summarizes the current balance between active bullish and bearish Order Blocks.
MARKET displays BULLISH, BEARISH, or NEUTRAL.
BULL DOM shows the bullish share of the active Order Block dominance calculation.
BEAR DOM shows the bearish share.
ACTIVE displays the number of active bullish and bearish Order Blocks.
TOP BULL identifies the strongest currently relevant bullish Order Block score and state.
TOP BEAR provides the equivalent information for bearish Order Blocks.
EDGE displays the difference between bullish and bearish dominance.
The market-bias calculation does not simply count bullish and bearish boxes. Each active Order Block is weighted according to its structural or actionable score, lifecycle state, and proximity to price. Conflict and repeated-test depletion are already reflected in the underlying structural evaluation.
An IN ZONE Order Block therefore contributes more immediate contextual importance than a distant and heavily depleted historical Order Block.
The Bull and Bear Dominance percentages are relative Order Block dominance measurements. They are not probabilities that price will rise or fall, and they should not be interpreted as expected win rates.
Scoring terminology
Q represents formation quality based on the qualifying contextual conditions available when the Order Block is identified.
RP is an internal reversal-power score derived from formation quality, Order Block size characteristics, and displacement strength.
S is the current Structural Score.
A is the current Action Score.
T1, T2, T3, etc. represent independent confirmed tests of a previously held Order Block.
ACTION #1 is the highest-ranked currently actionable Order Block.
ACTION #2 is the second-ranked actionable Order Block when available.
RESERVE identifies a structurally relevant zone that is not currently considered an immediate actionable interaction.
WAIT indicates that opposing actionable Order Blocks are sufficiently close in ranking that the script does not assign a meaningful directional advantage.
Intended use
The indicator is designed as a discretionary market-structure and context tool rather than an automated trading strategy.
On a 5-minute cryptocurrency chart, traders can use it to identify active demand and supply areas, observe whether price is approaching or testing those areas, compare opposing Order Block strength, recognize repeatedly tested/depleted zones, and monitor whether active Order Block structure currently favors the bullish side, bearish side, or neither side.
The indicator does not generate orders, calculate position size, or provide a complete risk-management system.
Calculation and repainting considerations
Order Block creation requires confirmed structural conditions. Historical Order Block boundaries are based on already available candle data and are stored when the zone is created.
Confirmed lifecycle transitions such as retests, holds, and close-based invalidations are evaluated using confirmed bars.
The realtime AT RISK and LIVE BREAK warnings are intentionally intrabar and can therefore change before the current candle closes. This behavior is expected and is visually separated from confirmed lifecycle states.
Users should distinguish between a confirmed state and a realtime warning when interpreting the chart.
Limitations
Order Blocks are subjective market-structure concepts and there is no universally accepted mathematical definition of the exact boundaries or validity of an Order Block.
ATR thresholds, structure lookbacks, zone construction methods, displacement requirements, and optional confirmation filters can materially affect which zones are detected.
Cryptocurrency volatility can also change significantly across symbols and market regimes. Settings appropriate for one asset or period may not behave identically on another.
A high Quality, Structural, Action, RP, Bull Dominance, or Bear Dominance value does not guarantee that price will react from a zone.
The indicator does not account for every possible source of market information, including news, fundamental events, exchange-specific liquidity conditions, hidden orders, or external derivatives positioning.
For these reasons, the indicator should be used as one component of a broader analysis and risk-management process rather than as a standalone prediction system.
What is different about this implementation
Instead of displaying every detected Order Block with equal importance, this implementation maintains a lifecycle for each zone and continually differentiates between formation quality, structural relevance, immediate action relevance, opposing-zone conflict, and repeated-use depletion.
Its state-locked FRESH / APPROACH / IN ZONE / HOLD workflow, progressive T1/T2/T3/T4 depletion model, conflict-aware scoring, live-warning separation, and active Order Block dominance panel are designed to reduce visual ambiguity and make the changing condition of each active zone easier to interpret.
Recommended starting context
The default parameters were designed with 5-minute cryptocurrency analysis in mind. They are starting values, not universally optimal settings. Users should evaluate the script on the symbol, timeframe, market conditions, and execution method relevant to their own analysis.
This indicator is provided for analytical and educational purposes. It does not constitute investment advice, does not guarantee future results, and does not claim that any displayed score represents a future return or a statistically guaranteed probability. مؤشر

مؤشر

Stablecoin Dominance Sniper v1 [Alex Ko]Stablecoin Dominance Sniper v1
Buy/Sell labels on any coin chart, driven by reversals of stablecoin dominance (CRYPTOCAP:USDT.D + USDC.D). Dominance turning up means money moving into cash — Sell; turning down means money leaving cash for risk — Buy.
The reversal is a trailing extreme with an ATR-sized threshold, not a moving-average crossover: while dominance rises, ext = max(ext, close) and a retracement of ext − close >= ATR × mult flips the phase (mirrored when it falls). Signal lag therefore equals the pullback itself rather than an averaging window, and the threshold rescales with volatility on its own.
One setting matters: Reversal threshold, ATR × (default 2.0, sensible range 1.0–3.5) — lower is earlier and noisier, higher is later and cleaner. Modes: sum of both indices, either one alone, or both with confirmation. The panel shows pullback maturity, so you watch a signal build before it prints; alerts fire at 80 % of the threshold and on the reversal itself.
Pine v6, two request.security calls, lookahead_off, no repainting. This is context, not a standalone entry — strongest on altcoins, 1H and above.
Not financial advice. Test on your own instruments and timeframes. مؤشر

AM - 7h Session CandlesVersion 2.0.0
This is a major version because two defaults changed, so the tool behaves differently out of the box than v1.0.0 did.
NEW: SESSION BOUNDARY LINES
• Vertical lines on the real price bars showing where each 7-hour bucket starts, so it is obvious which stretch of chart each drawn candle is made of: the daily open (A starts), plus 7 hours (L starts), plus 14 hours (N starts), and where N ends.
• They cover exactly the buckets the strip is showing and no more, so raising "Sessions back" extends the lines along with the candles. There is no second control that can fall out of step with the first.
• The times come from the same daily-open arithmetic that decides which minute belongs to which bucket, never from a fixed clock, so a line cannot drift away from the candle it marks on any symbol or across a daylight saving change.
• Drawn on 1 hour charts and below only. Above that a 7-hour boundary falls too far inside a single bar for the line to mark anything useful. The candles themselves are unaffected on every timeframe.
• Own input group: show, colour, style and thickness. Drawn light grey at a fixed 25 percent opacity, so a boundary reads as a reference mark rather than competing with the price action.
CHANGED DEFAULT: THE 3 HOUR OVERNIGHT STUB IS NOW PART OF N
• New "NY 7h Candle Data Composition" dropdown. The new default, "NY plus 3h Overnight Stub", folds the last three hours of the day into the same N candle, so N runs from hour 14 to the end of the day and nothing is discarded.
• Why: dropping those hours left three hours of price action in no candle at all, so one day's N closed and the next day's A opened with a hole between them that nothing on the strip accounted for. Including them gives an unbroken day, with every minute in some candle and the bodies joining up.
• What it costs, stated plainly: a 10-hour N is no longer TradingView's own 7-hour bar, and it is no longer the three-equal-block model this tool credits to AMTrades. Choose "NY 7h Candle" to restore both. That setting is exactly what v1.0.0 shipped as.
• The letter stays N either way and no fourth candle ever appears. Only N's high, low and close can move, and it keeps updating for three hours longer than before. Where a day never reaches hour 21 at all, a short regular session for instance, there is no stub and the setting has no effect.
REMOVED: VERTICAL POSITION
• The "Vertical Position" input and its "Centred on Current Price" mode are gone. The strip now always sits at true prices, so a session high or low reads straight across to where that level falls in the price action.
• Why: centred mode added a constant to every drawn price and recomputed it on every tick, so the whole strip slid up and down as price moved and the completed A, L and N candles looked as though they were still forming. It was the default, so that was the out of the box behaviour.
• If you had already selected "Relative Position", your strip is unchanged.
• The cost is that a wide strip is now counted by the chart's auto scale and can compress the price action. Pine cannot exempt an overlay drawing from the scale, so the levers are a lower "Sessions back" or turning auto scale off.
SETTINGS PANEL
• Every tooltip rewritten in short lines, with anything that is a list set out one item per line instead of running on as a paragraph. A settings dialog does not wrap a paragraph usefully and a long one arrived as a dense slab.
• Laid out one row per element rather than one control per line. The boundary lines are a single row: the toggle carrying the name, then the colour, the style, and the width. The three candle colours share a row, and Wick Width shares one with Label Size. Fifteen rows became six, and each field now sits against its own label instead of in the dialog's shared left aligned column.
• Both Opacity inputs are gone. The candles are fixed fully solid and the boundary lines fixed faint, each at exactly what its input used to default to, so a chart on the defaults looks the same as before. Two fewer controls to set.
SMALLER CHANGES
• Candle Width and Gap Between Candles are no longer inputs. They are fixed at 2 bars and 1 bar, down from the 6 and 3 v1.0.0 shipped with, for a tighter strip. The wick still sits on true centre because 2 is even. Offset From Last Bar is now the only layout control.
• The originator is now credited as AMTrades throughout, rather than "AM".
• Documented that Extended hours is not the same as 24 hours and what it contains depends on the feed. US equity extended hours are 04:00 to 20:00, which is 16 hours, so even with the setting correct N gets only the two hours left after A and L and is a 2-hour candle presented as a New York 7-hour one.
FEEDBACK
Please let me know if you experience any issues, or have feedback for improvements or additions in the comments below. Thank you, Tom مؤشر

NQ Psychological LevelsNQ Psychological Levels automatically plots the round-number price levels closest to the current market price.
The indicator organizes these levels into five tiers:
• 50-point levels
• 100-point levels
• 250-point levels
• 500-point levels
• 1000-point levels
Each tier can be customized independently, including its color, opacity, width, and line style.
Features:
• Automatically plots the nearest psychological levels
• Configurable number of displayed levels
• Independent styling for every level tier
• Optional price labels
• Left or right label placement
• Configurable candle offset from the current bar
• Above, center, or below text alignment
• Custom label size and color
• Optional alerts when price touches a major 250-point level, including 500 and 1000 levels
This indicator is primarily designed for NQ and related Nasdaq futures charts. It can help identify commonly observed round-number areas and keep charts organized without manually drawing and updating each level.
The indicator does not generate entries, exits, directional bias, or trading recommendations. It is intended only as a charting and market-observation tool.
مؤشر

Maverick Trader Key Levels - PDH/L, PWH/L, London, Asia# Key Levels — PDH/L, PWH/L, London H/L, Asia H/L
## Overview
This indicator plots the four reference levels most intraday traders end up drawing by hand every morning: the previous day's high and low, the previous week's high and low, and the high and low of the London and Asia sessions. Every line is drawn automatically, updates as sessions develop, and carries a label at the right-hand edge of the chart.
The point of the tool is control over presentation. Each of the eight levels can be shown or hidden on its own, and each one has its own line color, its own label color, and its own label text. If you want a yellow Asia range with black text, previous-week levels twice as thick as everything else, and the previous-day low switched off entirely, all of that is a checkbox and a color picker away.
## Levels plotted
**Previous Day High / Low (PDH, PDL)** — taken from the last completed daily bar. The lines anchor to the open of the current day and project to the right.
**Previous Week High / Low (PWH, PWL)** — taken from the last completed weekly bar, anchored to the open of the current week.
**London Session High / Low** — the range of the London window, tracked live as the session unfolds. Once London closes, the levels freeze and stay on the chart until the next London session opens.
**Asia Session High / Low** — same behavior, over the Asia window.
Session levels require an intraday chart. On daily timeframes and above they are hidden automatically, since a session range cannot be resolved from a bar that contains the whole session.
## Session windows and timezone
London defaults to 02:00–05:00 and Asia to 20:00–00:00, both in New York time. Both windows are editable, and the timezone is a dropdown covering the common exchange and trading-desk zones. If you define your sessions differently, or you want to repurpose one of the two windows for a different session entirely, change the times and rename the labels to match.
## Labels
Labels sit past the right end of each line, clear of price action. Highs are placed above their line and lows below, so a tight range does not stack two labels on top of each other.
Four sizes are available: tiny, small, normal, and large.
Two label styles are available. Plain text is the default — just the text, no background, colored however you set it. Boxed labels put the text in a filled callout using the line color as the background and the label color as the font, which is the better choice when you want a strong contrast like black on yellow.
For plain text, the vertical clearance between the label and its line is set as a multiple of ATR(14) rather than a fixed number of points, so the spacing looks the same whether you are on an index future or a low-priced instrument.
## Settings
**General**
- Session timezone
- Label size — tiny / small / normal / large
- Boxed labels — on or off
- Extend lines right — how far past the last bar the lines project, in bars
- Label gap — spacing between the end of the line and its label, in bars
- Label offset — vertical clearance above highs and below lows, as a multiple of ATR(14)
**Session windows**
- London and Asia time windows
**Per section (Previous Day, Previous Week, London, Asia)**
- Show high — independent on/off
- Show low — independent on/off
- Line color for the high and for the low
- Label color for the high and for the low
- Line width, 1 through 5
- Line style — solid, dashed, or dotted
- Label text for the high and for the low
## Notes
Previous-day and previous-week values come from completed higher-timeframe bars only, so those lines do not repaint. Session high and low levels do move while their session is open — that is the intended behavior, since a session range is not final until the session closes. After the close, they hold until the next session begins.
This indicator marks reference levels. It generates no signals, no entries, and no exits, and makes no claim about what price will do at any of these levels. How you use them is up to your own method. مؤشر

مؤشر

Capital Breakdown: MIF SniperCapital Breakdown: MIF Sniper is a macro-to-micro decision framework built for traders who want more than a sector heatmap — it tells you who's actually leading inside that sector.
The system runs as a two-desk architecture:
TRADE DESK — pivot-based support/resistance, supertrend + DEMA trend confirmation, and RSI-based reversal signals, with a live signal HUD and built-in alerts.
MACRO DESK — an 11-sector SPDR rotation heatmap ranking all sectors by relative strength vs SPY, plus regime classification (Trend / Transition / Shock), a Dynamic Conviction Index, and active macro driver detection (USD, rates, energy, risk sentiment, growth, industrial).
NAME-LEVEL DRILL-DOWN — the newest layer. Pick any sector from the settings dropdown, and the HUD ranks the top 5 strongest names inside that sector using relative strength versus the sector's own ETF (not just the broad market). A live LEADER/WATCH indicator tells you instantly whether the sector you're drilled into is the one actually leading right now, or one you're simply watching. Every candidate list is fully editable in settings — no coding required.
This turns sector rotation from a top-down observation into a tradeable single-name idea: see which sector is winning, then see which stock inside it is winning hardest.
Built for traders working across US equities, sector ETFs, and single names who want an institutional-style read on where capital is actually flowing — not just where the index is pointing. مؤشر
