Sessions & Liquidity with HTF Order BlocksWHAT IT DOES
This indicator combines three intraday concepts on one chart: the actual price range of each trading session, the unswept extremes those sessions leave behind, and higher-timeframe order blocks. The goal is to see where liquidity is resting and where the higher timeframe last shifted direction, without stacking three separate scripts on the chart.
1. SESSION RANGE
For each of the three sessions (Asia, London, New York) the script tracks the running high and low and draws them as two horizontal segments bounded by the session window itself — the segments do not run across the whole chart. While a session is open, the segments are projected forward to its scheduled close time, which is computed from the session string (HHMM-HHMM) in the selected time zone; overnight windows such as 1600-0100 are handled by rolling the close into the next day. When the session ends, the projection is trimmed back to the last bar of the session, so what remains on the chart is the true range of that session and nothing more.
Session windows, names, colors and the time zone are all inputs. The defaults are set for Europe/Moscow (UTC+3): Asia 03:00-12:00, London 10:00-19:00, New York 16:00-01:00.
2. LIQUIDITY LEVELS (HH session / HL session)
The moment a session closes, its high and low are converted into liquidity levels: dashed lines extended to the right and re-anchored to the current bar on every new bar. The idea is the standard one — a session extreme that has not been traded through is resting liquidity, and price tends to reach for it.
A level is considered swept as soon as any bar trades beyond it (high > level for a high, low < level for a low). A swept level is deleted from the chart instead of being greyed out, so at any moment the chart only shows liquidity that is still intact. Optionally an alert fires on the sweep, on bar close, with the level type and price in the message.
Only the N most recent levels per side are kept (4 by default) so the chart does not accumulate old lines.
3. HIGHER-TIMEFRAME ORDER BLOCKS
Order blocks are calculated on a configurable higher timeframe (1H by default) via request.security with lookahead_off, so no future data is used and the blocks do not repaint into the past.
The definition used here is deliberately simple and mechanical:
- a bullish block is the last bearish candle after which the next candle closed above its high;
- a bearish block is the last bullish candle after which the next candle closed below its low.
That candle's range (its high and low) becomes the zone. A block is drawn from the timestamp of the origin candle and its right edge follows the close of the session currently in progress — when London and New York overlap, the earlier close is used, and the edge jumps forward once that session ends. This ties the zones visually to the session structure rather than letting them extend indefinitely.
A block is removed as soon as price closes beyond it (below a bullish zone, above a bearish zone) — a wick through the zone does not mitigate it. Only the N most recent blocks per side are kept (3 by default).
HOW TO USE IT
- Intended timeframes: 5m, 15m, 30m, 1H. Sessions do not exist on daily and above, so on 1D and higher the script only prints a warning label and draws nothing.
- Set the time zone input to the one your session hours are written in — everything else follows from it.
- A typical read: price sweeps an HH session level (the level disappears and the alert fires), then reacts from a higher-timeframe order block in the opposite direction. The sweep marks where liquidity was taken; the block marks where the reaction is expected.
- The session ranges themselves are useful as context: a New York range opening entirely above the London range is a different market than one opening inside it.
ALERTS
Enable "Alert when a level is swept" and create an alert on the indicator with "Any alert() function call". The message contains the level type (HH/HL session) and its price.
ORIGINALITY AND NOTES
Session boxes, liquidity levels and order blocks all exist as separate published scripts. What is specific to this one is how the three are wired together: session extremes become liquidity levels automatically on session close, swept levels are deleted rather than kept, and the right edge of every order block is bound to the close of the session currently running instead of extending forever. All levels come from closed sessions and all order blocks are read with lookahead_off, so nothing on the chart is drawn using data that was not available at that time.
This script is not a signal generator and produces no entries or exits — it is a context tool.
Indicator

Bollinger-Fibonacci Trend Extension [MarkitTick]💡 This tool automates the identification of three-point corrective price structures (A-B-C swings) and projects a suite of Fibonacci-based extension targets from them, filtered through a Bollinger Band mean-reversion confirmation layer and an optional trend-strength gate. Rather than requiring a trader to manually draw retracement/extension tools every time price forms a pullback, the script continuously scans pivot structure in real time, validates the geometry of each swing against strict corrective-wave rules, and projects a set of forward-looking price zones — including a shaded "Golden Zone" between the 1.5 and 1.618 extensions — the moment a qualifying structure is confirmed.
✨ Originality and Utility
Fibonacci extension tools are common on PulseWire, but most require manual anchor placement on every swing and provide no objective criteria for which swings are valid setups. This script closes that gap by fully automating structure detection: it runs a custom zigzag engine with a significance threshold (ATR-based or percentage-based) to filter noise, then validates any three consecutive pivots against explicit corrective-structure rules (alternating high/low sequence, with the C-point required to retrace between the A and B extremes) before it will draw anything.
Two independent confirmation layers are stacked on top of raw structure detection: a Bollinger Band basis-cross filter that requires price to be trading on the correct side of its short-term mean before a new structure is accepted, and an optional ADX/DMI filter that suppresses structures formed during low directional-strength conditions. A configurable "adaptive filter" further lets traders pre-smooth the high/low series feeding the pivot engine using one of eight smoothing methods — including a Kalman filter and an LLAMA (linear-regression-slope-adjusted moving average) implementation — before pivots are ever detected, changing the sensitivity and lag characteristics of what counts as a swing point. The combination of automated, rule-based structure validation, dual confirmation filters, and selectable pre-smoothing is what differentiates this from a static or manually-drawn extension tool.
🔬 Methodology and Concepts
• Adaptive Pivot Detection
The script identifies swing highs and lows using a symmetric lookback/lookforward window (the "Pivot Lookback Depth" input): a bar qualifies as a pivot high only if no other bar within that window on either side has a higher value, and analogously for pivot lows. Traders can choose to feed this detection engine either raw high/low price or a smoothed version of it via the Adaptive Filter setting. Available smoothing methods include standard SMA, EMA, and RMA; a Double WMA (a WMA applied twice in succession, sharpening lag reduction); a Triple VWMA (volume-weighted MA applied three times); HMA (Hull Moving Average); LLAMA, a custom method that adds a linear slope projection (calculated from the change in price over the lookback window) on top of a simple average; and a lightweight Kalman filter that recursively updates a state estimate based on a fixed process/measurement noise ratio. Smoothing the pivot source changes which swings register as significant, effectively tuning the sensitivity of the whole structure-detection pipeline.
• Significance Threshold
Not every alternating high/low pair is kept — a new pivot only replaces the prior point of the same type, or is added as a new leg, if it clears a minimum distance threshold from the last opposite-type point. This threshold can be set as a multiple of ATR (Average True Range, over a configurable period) or as a fixed percentage of the current close, letting the sensitivity of the zigzag scale with volatility or stay fixed in percentage terms.
• A-B-C Structure Validation
Once at least three qualifying zigzag points exist, the script inspects the most recent three (A, B, C) to determine whether they form a valid corrective structure. A bullish setup requires the sequence low → high → low (A is a low, B a high, C a low), with the additional geometric constraint that point C must close above point A but below point B — meaning the pullback from B did not fully retrace into new lows and did not exceed the origin of the move. The bearish case is the mirror image (high → low → high, with C bounded between A and B). Structures that don't satisfy these geometric constraints are rejected outright; the script will not draw a structure from just any three consecutive swings.
• Bollinger Band Confirmation Filter
When enabled, a newly detected A-B-C structure is only accepted if the prior confirmed close is positioned correctly relative to the Bollinger Band basis (an SMA of price, with upper/lower bands built from standard deviation multiples): bullish structures require the close to be above the basis, bearish structures require it to be below. This filters out structures forming against the prevailing short-term mean, reducing the incidence of countertrend triggers.
• ADX/DMI Trend-Strength Filter (optional)
When the ADX filter is enabled, new structures are only confirmed if the ADX value (calculated from the Directional Movement Index over a configurable length) meets or exceeds a user-defined threshold. This is intended to suppress structure formation during ranging, low-momentum conditions where corrective patterns are statistically less reliable.
• Fibonacci Extension Projection
Once a structure is confirmed, the script projects forward price targets from the A-B-C swing using the standard extension formula: target = C + ((B − A) × ratio). An optional logarithmic-scale calculation is available, which performs the equivalent projection in log-price space before converting back — useful on instruments or timeframes where percentage moves are more meaningful than absolute point moves. Selectable extension ratios include 0.618, 1.000, 1.272, and 1.618, each independently toggleable, plus a fixed internal 1.5 ratio used only to bound the shaded "Golden Zone." Each level is optionally annotated with a loose Elliott Wave association label (e.g., the 1.618 level is labeled "Wave 3") purely as a descriptive reference point for traders familiar with that framework — the script does not perform full Elliott Wave counting or degree analysis.
• Structure Invalidation
Active structures are continuously monitored: a bullish structure is invalidated if the close trades back below point A, and a bearish structure is invalidated if the close trades back above point A. This uses the point-A extreme as a structural stop level, consistent with the idea that a valid corrective pattern should not be revisited past its origin. On invalidation, the trader can choose to have the structure's drawings grayed out in place (to preserve chart history) or fully deleted.
🎨 Visual Guide
Gold and blue lines plotted directly on price represent the Bollinger Bands: the basis (gold, an SMA of price) and the upper/lower bands (blue, basis ± a standard-deviation multiple). These can be hidden independently of the confirmation filter itself.
Solid colored lines connect point A to point B, and dashed colored lines connect point B to point C, forming the visual "A-B-C" skeleton of each detected structure. Color reflects direction: the Bullish Structure Color for up-setups and the Bearish Structure Color for down-setups (both user-configurable, default green/red).
Small labeled tags marked "A," "B," and "C" are placed at each swing point, color-matched to the structure's direction, with their vertical orientation (label above or below price) automatically flipped depending on whether the point is a high or a low.
Dotted horizontal lines extending from point C represent each active Fibonacci extension level (0.618, 1.000, 1.272, 1.618, as enabled). The 1.618 level is rendered as a solid line rather than dotted, distinguishing it as the primary extension target. Each line carries a right-aligned label showing the ratio, its optional Elliott Wave tag, and the exact price level.
A shaded rectangular zone between the 1.5 and 1.618 extension levels — tinted in the structure's directional color — marks the "Golden Zone," a commonly-referenced confluence area for potential reversals or profit-taking, with a "Golden Zone" text label at its midpoint.
When a structure is invalidated and the "Gray Out" invalidation action is selected, all of the above elements (lines, labels, the zone fill) desaturate to the Invalidated Structure Color, visually distinguishing historical, no-longer-valid structures from the currently active one without removing them from the chart.
An on-chart dashboard (top-right by default, repositionable) displays: the current symbol and timeframe, an overall directional Bias read from the most recent structure, the current ATR value, the active significance threshold in price terms, a visual bar-gauge showing how many structures are currently tracked relative to the configured maximum, the pass/block state of the Bollinger Band filter, the live ADX reading and pass/fail state, the selected Adaptive Filter method, and a log of the last structural event (new bullish/bearish structure, or bullish/bearish invalidation).
📖 How to Use
Wait for a complete A-B-C structure to be drawn and confirmed — the script only finalizes structures on confirmed bar closes, so no signal will repaint intrabar.
A newly confirmed bullish structure (green by default) suggests the recent pullback (B to C) may extend toward the plotted Fibonacci levels; the 1.618 extension and the shaded Golden Zone are commonly treated as primary target/reaction areas.
A newly confirmed bearish structure works symmetrically to the downside.
Point A acts as the structural invalidation level: if price closes back through point A against the direction of the setup, treat the structure as void — the script will automatically flag this via graying-out or deletion, along with a dashboard "Last Event" update and an optional alert.
Use the Bollinger Band filter to avoid structures forming against the short-term mean, and the ADX filter to avoid trading corrective setups during flat, low-momentum conditions.
The dashboard's Bias, Threshold, and filter-status rows are designed to be checked at a glance before acting on any newly drawn structure.
Built-in alerts are available for new bullish/bearish structures and for bullish/bearish invalidations, each firing a JSON-formatted payload (ticker, timeframe, direction, entry, TP, SL) suitable for direct use with webhook-based automation, with the action keywords for each alert type fully customizable in the Alerts group.
⚙️ Inputs and Settings
Pivot Lookback Depth — the number of bars checked on each side of a candidate bar when detecting swing highs/lows. Larger values produce fewer, more significant pivots and slower reaction time; smaller values increase sensitivity and structure frequency.
Use ATR-Based Threshold / ATR Period / ATR Multiplier — when enabled, the minimum move required to register a new zigzag leg scales with recent volatility (ATR × multiplier) rather than a fixed percentage.
Fixed Deviation % — used instead of the ATR threshold when ATR-based thresholding is disabled; sets the minimum percentage move required between opposite-type pivots.
Enable Structure Invalidation — toggles whether structures are automatically invalidated when price closes back through point A.
Keep Last N Structures — caps how many structures remain tracked/drawn simultaneously; older structures are cleaned up once the cap is exceeded.
Enable BB Confirmation Filter / BB Length / BB StdDev Mult — controls the Bollinger Band basis-cross requirement for new structures, and the parameters of the underlying Bollinger Band calculation.
Use ADX Filter / ADX Threshold / ADX Length — controls the optional trend-strength gate and its calculation parameters.
Adaptive Filter / Adaptive Filter Length — selects the smoothing method (if any) applied to the high/low series before pivot detection, and its lookback length.
Invalidation Action — choose whether invalidated structures are grayed out in place or deleted from the chart.
Show Bollinger Bands / Use Logarithmic Scale — visual toggle for the BB plots, and whether extension targets are computed in log-price space.
Show 0.618 / 1.000 / 1.272 / 1.618 Level — independently toggle each Fibonacci extension line.
Extend Lines Right — extends extension lines indefinitely to the right instead of stopping at the current bar.
Show A-B-C Labels / Show Structure Lines / Show Elliott Wave Labels — independent visibility toggles for each drawing category.
Show Dashboard / Position — toggles the on-chart dashboard table and sets its screen corner.
Alert action fields (Open Long/Short, Close Long/Short) — customizable text keywords embedded in the JSON alert payloads, matching the syntax expected by the trader's automation/webhook setup.
Enable Test Alert — fires a payload on every confirmed bar close, intended only for verifying webhook routing before disabling it.
Color inputs — full control over structure colors, label backgrounds, invalidated-structure color, Bollinger Band plot colors, and dashboard styling.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The script's structural core rests on the concept of a zigzag transformation, a standard technique in technical analysis for reducing noisy price series into a simplified sequence of significant turning points, filtered here by a volatility-normalized (ATR-scaled) or percentage-based significance threshold rather than a fixed tick count — a design choice that keeps the sensitivity of the transformation consistent across instruments and volatility regimes.
The A-B-C labeling convention and the specific extension ratios offered (0.618, 1.000, 1.272, 1.618) draw on the Fibonacci sequence and its derived ratios, which have a long history of application in corrective-wave analysis, most notably within Elliott Wave Theory and W.D. Gann's work on proportional price projections. The mathematical basis is the golden ratio (φ ≈ 1.618) and its reciprocal/power relationships, which recur in the ratios above; their use in this script is descriptive and pattern-based rather than derived from any claim of causal market structure — the script projects targets from these ratios but does not assert that price is mechanically obligated to reach them.
The optional Bollinger Band filter is grounded in the standard statistical definition of a Bollinger Band: a moving-average basis with bands set at a multiple of the rolling standard deviation, functioning here as a simple mean-reversion/trend-context gate rather than a full volatility-breakout system.
The ADX/DMI filter derives from Welles Wilder's Directional Movement System, which measures trend strength independently of trend direction by comparing the magnitude of directional price movement to overall volatility (true range) over a smoothing period; using it as a pre-condition for structure confirmation is consistent with its original design purpose of distinguishing trending from non-trending regimes.
The adaptive smoothing options span several distinct estimation philosophies: SMA/EMA/RMA represent classical fixed- and exponentially-weighted moving averages; the Double WMA and Triple VWMA apply cascaded weighted/volume-weighted averaging to reduce lag at the cost of some smoothness; HMA (Hull Moving Average) is a weighted-average construction specifically designed to reduce lag while preserving smoothness; the Kalman filter implementation applies a simplified recursive Bayesian estimation approach (balancing a process-noise and measurement-noise ratio to continuously re-weight new observations against the prior estimate), a technique originally developed for state estimation in control systems and adapted here for price smoothing; and the LLAMA method combines a simple average with a linear slope term derived from the net change in price over the lookback window, a basic linear-regression-style adjustment for trend drift.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

SATTAM | CRT+TBSOVERVIEW
A rule-based implementation of Candle Range Theory (CRT) combined with Turtle Body Soup (TBS). It reads the setup on a higher timeframe, requires a key level for context, waits for a liquidity sweep, then marks the entry and manages the trade on your current chart.
HOW IT WORKS
Seven stages are evaluated in order. A failure at any stage cancels everything downstream.
1. Higher timeframe selection — automatic pairing (a 5m chart reads 4H, a 1H chart reads Daily), or set manually
2. Key level detection — Old High, Old Low, Order Block, Fair Value Gap
3. CRT detection — accumulation, manipulation, distribution
4. Time filter — configurable blocked hours
5. TBS confirmation — a body sweep of prior liquidity plus a reversal close
6. Entry model — Model #1, CISD, or MSS+FVG
7. Trade management — stop, three targets, breakeven
THE CRT SEQUENCE
Accumulation — one candle defines the range; its high becomes CRH, its low CRL.
Manipulation — a later candle wicks through the boundary but closes back inside. Direction and target are set here.
Distribution — price travels toward the opposite side.
The decisive rule: the break is made by the wick, with the close returning inside. A close beyond the range is a genuine breakout, not a trap — the setup is invalidated and labelled a reverse CRT.
Four CRT types are classified automatically. The fourth, where price is swept twice, is flagged as a caution and draws its T.S level.
The manipulation is drawn as a zone spanning the candles that carried price past the level and back, so the depth of the sweep is visible rather than implied.
KEY LEVELS
A CRT in isolation is treated as insufficient — the methodology names a missing key level as a primary failure cause. Confluence is required by default and can be disabled.
Display toggles for each zone type control drawing only. Hidden zones are still detected, still satisfy confluence, and still count toward the zone cap. Hiding a zone type never changes which signals fire.
TURTLE BODY SOUP
Two conditions together: a candle closes beyond a prior swing (the sweep is made by the body, not the wick), and a subsequent candle closes back beyond the last opposing candle.
ENTRY MODELS
Model #1 — a full candle closes beyond the previous candle; entry at that close.
CISD — the opening level of the last directional leg is broken; entry on the break.
MSS + FVG — structure breaks with displacement leaving a gap; entry from the gap on the retrace.
All three can run together, or one can be selected. Each fires once per setup.
TRADE MANAGEMENT
Stop sits beyond the manipulation and sweep extremes with an ATR buffer.
Targets follow the range rather than fixed risk multiples:
TP1 — the range midpoint, the 50% level the methodology marks in its diagrams
TP2 — the opposite extreme, the target the methodology names; risk-to-reward is measured here
TP3 — an extension beyond the range, by a configurable multiple
A target that does not sit beyond the entry is dropped rather than drawn behind price. Once TP1 trades through, the stop moves to entry. The stop is checked before the targets on each bar, so a bar touching both is reported as the loss.
ADDITIONAL MODULES
Accumulation and Distribution — detects range compression and classifies it by which way price finally leaves.
Sweep — marks wick raids on internal pivots that no close has broken, with a cooldown so the same area is not reported repeatedly.
Daily Bias — previous day and previous week high and low, each anchored to the candle that made it and extended with price, plus unmitigated swing points.
DASHBOARD AND ALERTS
An on-chart table reports the higher timeframe in use, CRT stage and type, direction, CRH and CRL, the three targets, live trade state, key level type, active entry model, daily bias, and time filter status.
Seventeen alert conditions cover every stage from CRT formation through target completion.
REPAINTING
Higher timeframe data is requested with a one-bar offset so only closed higher timeframe candles are used. Signals are evaluated on bar close by default. The script does not repaint under these settings. Disabling the bar-close option allows intrabar signals, which can change before the candle completes — this is stated in the setting's tooltip.
NOTES
The blocked-hours defaults follow the source methodology, which does not state a reference timezone. The timezone input therefore defaults to New York and should be adjusted to your own reference.
Interface labels are bilingual. Text drawn on the chart switches between Arabic and English; setting names show both, because Pine requires input titles to be known at compile time.
This script implements the CRT+TBS methodology as published by its original author. Credit for the underlying concepts belongs to that source; the Pine implementation is my own.
This is an analysis tool. It organises a discretionary method into explicit rules and visible states — it does not predict outcomes and is not a signal service. Position sizing and risk management remain entirely the responsibility of the user. Test on historical data and in simulation before applying to a live account.
نظرة عامة
تطبيق قائم على القواعد لنظرية نطاق الشمعة (CRT) مدمجاً مع حساء جسم السلحفاة (TBS). يقرأ الإعداد على فريم كبير، ويشترط منطقة اهتمام، وينتظر سحب السيولة، ثم يحدد الدخول ويدير الصفقة على شارتك.
آلية العمل
سبع مراحل متسلسلة. فشل أي مرحلة يُلغي ما بعدها.
١. اختيار الفريم الكبير — ترابط تلقائي حسب جدول المنهج، أو يدوي
٢. رصد مناطق الاهتمام — قمة سابقة، قاع سابق، أوردر بلوك، فجوة سعرية
٣. رصد الـCRT — تجميع، تلاعب، توزيع
٤. فلتر الأوقات الممنوعة
٥. تأكيد الـTBS
٦. مودل الدخول
٧. إدارة الصفقة
تسلسل الـCRT
تجميع — شمعة تحدد النطاق، قمتها CRH وقاعها CRL.
تلاعب — شمعة لاحقة يخترق ويكها الحد ثم يعود الإغلاق داخل النطاق. هنا يُحدَّد الاتجاه والهدف.
توزيع — السعر يقصد الطرف المقابل.
القاعدة الحاسمة: الاختراق بالويك والإغلاق راجع داخل النطاق. أما الإغلاق خارجه فاختراق حقيقي لا فخ — ويُلغى الإعداد ويوصف بـ«CRT عكسي».
تُصنَّف الأنواع الأربعة تلقائياً. والرابع، حيث يُسحب السعر مرتين، يُعلَّم كتحذير ويُرسم مستوى T.S الخاص به.
ويُرسم التلاعب منطقةً تغطي الشمعات التي تجاوزت الحد وعادت، فيظهر عمق السحب بدل أن يُستنتج.
مناطق الاهتمام
الـCRT وحده غير كافٍ — فالمنهج يعدّ غياب منطقة الاهتمام سبباً رئيسياً للفشل. الاشتراط مفعّل افتراضياً ويمكن إطفاؤه.
مفاتيح إظهار كل نوع تتحكم بالرسم وحده. المناطق المخفية تُرصد وتُحقق شرط الالتقاء وتُحتسب في الحد. إخفاء نوع لا يغيّر الإشارات إطلاقاً.
حساء جسم السلحفاة
شرطان معاً: إغلاق شمعة يتجاوز قمة أو قاعاً سابقاً — السحب بالجسم لا بالويك — ثم إغلاق شمعة لاحقة خلف آخر شمعة معاكسة.
مودلات الدخول
Model #1 — إغلاق شمعة كاملة خلف السابقة، والدخول عند ذلك الإغلاق.
CISD — كسر مستوى فتح آخر موجة، والدخول فور الكسر.
MSS + FVG — كسر بنيوي بإزاحة تخلّف فجوة، والدخول من الفجوة عند الارتداد.
تعمل الثلاثة معاً أو يُختار واحد. كل مودل يُطلق مرة واحدة لكل إعداد.
إدارة الصفقة
الوقف خلف أقصى امتداد للتلاعب والسحب، مع هامش محسوب بالـATR.
الأهداف تتبع الرنج لا مضاعفات ثابتة للمخاطرة:
TP1 — منتصف الرنج، وهو مستوى ٥٠٪ الذي يعلّمه المنهج في رسوماته
TP2 — الطرف المقابل، هدف المنهج المعلن، وعليه تُقاس نسبة المخاطرة للعائد
TP3 — امتداد بعد الرنج بمضاعف قابل للتعديل
الهدف الذي لا يقع خلف سعر الدخول يُهمَل بدل رسمه خلف السعر. وعند تحقق TP1 ينتقل الوقف لنقطة التعادل. ويُفحص الوقف قبل الأهداف في كل شمعة، فالشمعة التي تلمس الاثنين تُحتسب خسارة.
وحدات إضافية
التجميع والتوزيع — يرصد انضغاط النطاق ويصنّفه باتجاه خروج السعر منه.
سحب السيولة — يعلّم غارات الويك على نقاط داخلية لم يكسرها إغلاق، مع فترة تهدئة تمنع تكرار الإشارة.
الانحياز اليومي — أعلى وأدنى اليوم والأسبوع السابقين، كل مستوى مربوط بالشمعة التي صنعته وممتد مع السعر، مع نقاط التأرجح غير المستهلكة.
الجدول والتنبيهات
جدول على الشارت يعرض الفريم الكبير المستخدم، ومرحلة الـCRT ونوعه، والاتجاه، وCRH وCRL، والأهداف الثلاثة، وحالة الصفقة الحيّة، ونوع منطقة الاهتمام، والمودل النشط، والانحياز اليومي، وحالة فلتر الوقت.
سبعة عشر تنبيهاً تغطي كل مرحلة من تكوّن الـCRT حتى تحقق الأهداف.
إعادة الرسم
تُطلب بيانات الفريم الكبير بإزاحة شمعة واحدة، فلا تُستخدم إلا الشمعات المغلقة. وتُقيَّم الإشارات على إغلاق الشمعة افتراضياً. المؤشر لا يعيد الرسم بهذه الإعدادات. وإطفاء خيار الإغلاق يسمح بإشارات داخل الشمعة قد تتغيّر قبل اكتمالها، وهذا مذكور في تلميح الإعداد.
ملاحظات
الساعات الممنوعة الافتراضية تتبع المنهج المصدر، وهو لا يذكر التوقيت المرجعي. لذلك يأتي إعداد المنطقة الزمنية بتوقيت نيويورك افتراضياً، ويُضبط حسب توقيتك.
واجهة الإعدادات ثنائية اللغة. نصوص الشارت تتبدّل بين العربية والإنجليزية، أما أسماء الإعدادات فتظهر باللغتين معاً لأن Pine يشترط معرفة عناوين المدخلات وقت التصريف.
هذا المؤشر يطبّق منهجية CRT+TBS كما نشرها مؤلفها الأصلي. الفضل في المفاهيم الأساسية يعود لذلك المصدر، والتنفيذ بلغة Pine من عملي.
أداة تحليل تنظّم منهجاً اجتهادياً في قواعد صريحة وحالات مرئية — لا تتنبأ بالنتائج وليست خدمة توصيات. تحديد حجم المركز وإدارة المخاطر مسؤولية المستخدم وحده. اختبره على البيانات التاريخية وفي التداول التجريبي قبل تطبيقه على حساب حقيقي. Indicator

CORTEX MULTI-TIMEFRAME POI ENGINE# CORTEX MULTI-TIMEFRAME POI ENGINE
The CORTEX MULTI-TIMEFRAME POI ENGINE is a rules-based PulseWire indicator designed to identify, qualify, and manage supply-and-demand Points of Interest across multiple structural timeframes.
Rather than marking every pivot, opposing candle, or conventional order block, CORTEX applies a structured qualification process built around confirmed market structure, consolidation quality, displacement, retracement depth, imbalance, liquidity proxies, and breaker-block behavior.
## Multi-Timeframe Market Structure
CORTEX organizes market location into three distinct layers:
- **Daily POIs** establish higher-timeframe macro location.
- **H4 POIs** identify intermediate structural areas.
- **M15 and M5 AM-session POIs** support intraday refinement on NQ and ES.
Daily, H4, M15, and M5 layers are independently controlled, allowing traders to reduce chart clutter and focus only on the context relevant to their current workflow.
## POI Qualification
A standard CORTEX POI progresses through an objective detection pipeline:
1. Meaningful retracement
2. Compressed base formation
3. Institutional Footprint Candle refinement
4. Directional displacement
5. Mandatory break of structure
6. Liquidity and imbalance evaluation
7. Width and location validation
8. Transparent quality scoring
9. Confirmed zone creation
Break of structure is mandatory. Additional characteristics contribute to a configurable quality score rather than relying on unexplained probability claims.
Available qualification modes include:
- **Loose** for broader structural identification
- **Balanced** for the recommended combination of quality and frequency
- **Strict** for selective, higher-confluence zones
- **Custom** for complete user control
## Breaker-Block Fusion
The engine includes an independently developed ICT breaker-block module.
A potential order block becomes a breaker only after a later confirmed candle closes through its opposite boundary. Wick-only violations do not qualify.
Breaker blocks may:
- Create standalone breaker POIs
- Add confluence to existing supply or demand zones
- Merge with overlapping, same-direction POIs
- Refine the final area to the valid price intersection
- Increase the zone’s score without exceeding 100
Merged areas are classified as **Breaker-Confluent POIs**, helping distinguish ordinary structural zones from areas supported by a confirmed failed-block transition.
## CORTEX AM Session POI Layer
The intraday module is designed specifically for NQ and ES during the default **08:00–11:00 America/New_York** session.
It provides:
- M15 POIs on M15 and M5 charts
- M5 POIs on M5 charts
- Automatic daylight-saving adjustment
- Automatic NQ and ES futures-root recognition
- Optional manual instrument override
- Confirmed post-session BOS allowance
- Independent demand, supply, timeframe, and display controls
Mandatory default width limits are:
- **NQ: 250 ticks**
- **ES: 40 ticks**
Zone width is calculated using the instrument’s native minimum tick size. Candidates exceeding the applicable limit are rejected before publication.
## Transparent Scoring
Each POI receives an objective score from 0 to 100. Depending on the selected mode and timeframe, the score may incorporate:
- Confirmed BOS
- Base quality
- Retracement depth
- Departure strength
- Liquidity sweep
- Fair-value gap or imbalance
- Resting-liquidity proxy
- Breaker-block confluence
Scores and classifications can be displayed directly on zone labels and in the Data Window.
## Zone Lifecycle Management
Every confirmed POI is actively managed through the following lifecycle:
- **Fresh**
- **Tested**
- **Mitigated**
- **Invalidated**
- **Expired**
Users can configure mitigation and invalidation behavior, retain invalidated zones for historical review, and control how long intraday zones remain available.
## Non-Repainting Design
CORTEX uses confirmed source-timeframe information for zone creation.
Higher-timeframe results are transported using confirmed historical offsets, preventing unfinished Daily, H4, M15, or M5 candles from publishing premature zones. A confirmed POI may be anchored to its original footprint candle, but it does not become logically active before its qualifying structure is complete.
This deliberate confirmation delay is intended to support stable behavior across:
- Historical charts
- Realtime execution
- PulseWire Bar Replay
## Diagnostics and Alerts
The CORTEX diagnostics dashboard reports:
- Latest qualification stage
- Signals detected
- Candidates awaiting BOS
- Width-filter rejections
- Breaker flips
- Zones retained
- Session status
- Detected instrument
- Applicable tick limit
- Chart-timeframe compatibility
Alerts are available for new POIs, breaker zones, confluence, first tests, mitigation, and invalidation. Alerts should be configured for **Once Per Bar Close**.
## Intended Workflow
CORTEX is designed to support a top-down process:
1. Use Daily zones to establish macro location.
2. Use H4 zones to refine structural context.
3. Use M15 zones for intraday directional areas.
4. Use M5 zones for lower-timeframe refinement.
5. Evaluate price behavior at qualified zones rather than treating every zone as an automatic entry.
CORTEX does not claim to identify actual institutional orders. Supply, demand, liquidity, imbalance, and breaker classifications are objective technical proxies derived from price action.
This indicator is an analytical framework—not financial advice or a guarantee of future performance. Traders should combine it with appropriate confirmation, risk management, and independent judgment. Indicator

Liquidity Sweep Hunter [JPT] 🔷 OVERVIEW
Liquidity Sweep Hunter is an original Pine Script® v6 indicator designed to automatically detect key liquidity levels and identify Buy-Side and Sell-Side Liquidity Sweeps. The indicator plots significant swing highs and lows as liquidity zones, helping traders spot potential institutional stop hunts and market reversals without manually marking levels.
Suitable for Forex, Gold (XAUUSD), Silver (XAGUSD), Cryptocurrency, Stocks, Indices, Futures, and Commodities, the indicator provides a simple and clean Smart Money Concepts (SMC) workflow.
🔷 HOW IT WORKS
The indicator continuously scans price using confirmed pivot highs and pivot lows.
Buy-Side Liquidity (BSL)
When a confirmed Swing High is detected, the indicator plots a horizontal liquidity level representing Buy-Side Liquidity.
These levels often become areas where resting buy-stop orders accumulate.
Sell-Side Liquidity (SSL)
When a confirmed Swing Low is detected, the indicator plots a horizontal liquidity level representing Sell-Side Liquidity.
These zones commonly contain sell-stop liquidity below recent lows.
Liquidity Sweep Detection
The indicator automatically monitors price interaction with the latest liquidity levels.
Bearish Liquidity Sweep
A bearish sweep occurs when:
• Price trades above the previous Buy-Side Liquidity (Swing High)
• The candle closes back below the liquidity level
This may indicate a liquidity grab before a potential bearish move.
Bullish Liquidity Sweep
A bullish sweep occurs when:
• Price trades below the previous Sell-Side Liquidity (Swing Low)
• The candle closes back above the liquidity level
This may indicate a stop hunt before a potential bullish reversal.
🔷 VISUAL FEATURES
• Automatic Swing High Detection
• Automatic Swing Low Detection
• Buy-Side Liquidity (BSL) Levels
• Sell-Side Liquidity (SSL) Levels
• Dashed Liquidity Lines
• BSL Labels
• SSL Labels
• Bullish Liquidity Sweep Detection
• Bearish Liquidity Sweep Detection
• Optional EMA Trend Filter
• Clean and Lightweight Chart Display
🔷 INPUTS
Available settings include:
• Pivot Length
• EMA Length
• Show EMA
• Show Liquidity Lines
These settings allow traders to adjust swing sensitivity and customize the chart appearance.
🔷 HOW TO USE
A common workflow is:
Wait for the indicator to identify Buy-Side or Sell-Side Liquidity.
Watch for price to sweep one of these liquidity levels.
Look for additional confirmation using price action or market structure.
Use the sweep as a potential indication of a continuation or reversal, depending on your trading plan.
🔷 MARKETS
Liquidity Sweep Hunter can be used on:
• Forex
• Gold (XAUUSD)
• Silver (XAGUSD)
• Cryptocurrency
• Stocks
• Indices
• Futures
• Commodities
Compatible with all PulseWire-supported timeframes.
🔷 BEST PRACTICES
Many traders combine liquidity sweeps with:
• Market Structure (HH, HL, LH, LL)
• Break of Structure (BOS)
• Change of Character (CHoCH)
• Order Blocks
• Fair Value Gaps (FVG)
• Support & Resistance
• EMA Trend Confirmation
• Higher Timeframe Analysis
Using multiple confirmations can provide additional context when evaluating liquidity events.
🔷 UPCOMING FEATURES
Future updates may include:
• Equal High / Equal Low Detection
• Liquidity Sweep Labels
• Multi-Timeframe Liquidity Levels
• Order Block Detection
• Fair Value Gap (FVG) Integration
• BOS & CHoCH Confirmation
• Trend Dashboard
• Smart Money Alerts
• ATR-Based Liquidity Filter
• Advanced Notification System
🔷 DISCLAIMER
This indicator is provided for educational and informational purposes only. It identifies confirmed liquidity levels and potential liquidity sweeps based on historical price action. It does not predict future market movements or guarantee trading results. Always perform your own analysis, apply sound risk management, and consider additional market factors before making trading decisions. Indicator

MTF Liquidity Density Ladder [PhenLabs]📊 MTF Liquidity Density Ladder
Version: PineScript™ v6
📌 Description
The MTF Liquidity Density Ladder maps buy-side and sell-side liquidity as a clean, ranked ladder — not a wall of equal-level spam. Equal highs (BSL) and equal lows (SSL) earn a density score from repeat touches, relative volume, and higher-timeframe confluence, then move through a simple lifecycle: Fresh → Tapped → Raided → Restack.
By default the chart stays quiet: short soft rays for only the densest nearby pools, one label per side, raided levels hidden, and a compact five-row dashboard. When a dense pool is raided, a cascade magnet marks the next densest untapped pool on that side so you always know where liquidity is likely to pull price next.
Built for ICT/SMC traders who want multi-timeframe liquidity context without burying price action.
🚀 Points of Innovation
Density-ranked BSL/SSL ladder instead of unweighted equal-level clutter
Clean-by-default display: proximity filter, top-N visible pools, short rays, raided levels hidden
Full pool lifecycle with restack detection after raids
HTF pivot confluence boost so higher-timeframe equals dominate ranking
Cascade magnet arms the next densest same-side pool after a raid
Compact dashboard with adjustable Table Size (Tiny → Large)
🔧 Core Components
Pool Seeder: swing pivots register BSL (equal highs) and SSL (equal lows)
Merge Engine: nearby pivots collapse into one pool inside an ATR tolerance
Density Scorer: touches × weight + volume score + optional HTF boost
Raid Detector: wick-through with optional close-beyond confirmation
Restack Tracker: new equals reforming after a recent raid
Cascade Magnet: next densest same-side untapped pool after a raid
Clean Display Layer: proximity, max visible, short rays, soft colors
🔥 Key Features
Only the top densest nearby pools drawn per side (default 2)
Short rays instead of chart-wide lines
One compact label per side (▲ density / ▼ density)
Raided pools hidden by default
Quiet raid dots; cascade triangle markers optional
Dashboard: Above · Below · Magnet · Event
Table Size setting scales the whole dashboard for readability
Alerts for raids, cascade magnets, and restacks
🎨 Visualization
Soft red ray above price = best nearby buy-side liquidity (BSL)
Soft teal ray below price = best nearby sell-side liquidity (SSL)
Dashed blue ray = active cascade magnet
Tiny raid dots on confirmed dense-pool raids
Compact panel: LDL header, Above, Below, Magnet, Event
Muted palette with adjustable line transparency
📖 Usage Guidelines
Swing Pivot Length — Default: 5 — Raise on noisy lower timeframes
Merge Tolerance (× ATR) — Default: 0.45 — Higher merges more equals into fewer cleaner pools
Enable HTF Confluence — Default: true — Boosts density when LTF pools align with HTF pivots
HTF Timeframe — Default: 60 — Match your execution ladder (e.g. 15m → 1H)
Min Density (signals + draw) — Default: 2.0 — Filters weak pools from chart and alerts
Max Visible Pools / Side — Default: 2 — Hard cap on drawn levels for clarity
Proximity Filter (× ATR) — Default: 4.0 — Hides pools far from current price
Ray Length / Extend — Defaults: 35 / 8 — Keeps levels local to recent price action
Hide Raided Pools — Default: true — Shows resting liquidity only
Table Size — Default: Small — Tiny / Small / Normal / Large dashboard text scale
Dashboard Position — Default: Top Right — Move the panel anywhere on chart
✅ Best Use Cases
ICT/SMC traders mapping BSL/SSL without hand-drawing every equal
Continuation after a dense pool raid toward the cascade magnet
Fade context when price approaches a high-density untapped pool
FX, indices, and liquid crypto on intraday or swing timeframes
Alert-driven raid → magnet → restack workflows
⚠️ Limitations
Density is a relative score, not a guaranteed fill
Pivot-based equals lag by design (no lookahead)
Very choppy markets may need higher merge tolerance or min density
Cascade magnets assume same-side liquidity runs; opposing narrative can invalidate
Analytical aid only — pair with bias, structure, and risk rules
💡 What Makes This Unique
Ranks liquidity by density so weak equals stay off the chart
Clean display defaults designed for publish-ready screenshots
Restack + cascade magnet answer both “what was taken?” and “where next?”
Table Size control makes the dashboard readable on any screen without code edits
🔬 How It Works
Confirmed swing highs seed or merge into BSL pools; swing lows into SSL pools
Density = touches×weight + average volume score×weight + HTF boost
A raid needs a wick through the pool (and optional close beyond)
On raid, the densest remaining same-side untapped pool beyond that price becomes the magnet
Only nearby, high-density, non-raided (by default) pools are drawn as short rays
Dashboard summarizes the best level above, best below, magnet, and last event
💡 Note:
Use the MTF Liquidity Density Ladder as a liquidity map and confluence layer. Prefer higher-density untapped pools and wait for bar close on raid events. This is an analytical aid, not financial advice.
Indicator

Inversion Order Blocks [iOB] (Zeiierman)█ Overview
Inversion Order Blocks (Zeiierman) identifies when traditional Order Blocks fail and transition into inversion zones where the opposing side of the market may gain control.
A regular Order Block represents the final opposing candle before a strong displacement move breaks market structure. These areas are commonly monitored as potential support or resistance because they mark the origin of aggressive buying or selling pressure.
However, not every Order Block remains valid.
Some Order Blocks are broken as price closes completely through them. Rather than immediately discarding these failed zones, the indicator stores them inside an internal memory system and watches for a later opposing Order Block to form in the same price region.
When an Order Block fails, the indicator remembers it. If an opposite Order Block forms soon after in the same price area, either overlapping it or sitting very close to it, that area becomes an Inversion Order Block.
This creates a more selective framework that focuses on failed Order Blocks followed by confirmation from the opposite side of the market.
⚪ Order Block Detection
The indicator continuously scans the price for displacement candles that close through recent market structure.
A Bullish Order Block forms when:
• A bullish displacement candle closes above the previous structure high.
• The candle range exceeds the minimum ATR requirement.
• The candle body occupies the required percentage of its total range.
• The nearest bearish candle before the displacement becomes the bullish Order Block.
A Bearish Order Block forms when:
• A bearish displacement candle closes below the previous structure low.
• The candle range exceeds the minimum ATR requirement.
• The candle body occupies the required percentage of its total range.
• The nearest bullish candle before the displacement becomes the bearish Order Block.
⚪ Inversion Order Block Detection
Once an Order Block is created, it enters the internal memory system. If price later closes through the far side of the Order Block, the zone is considered broken.
A broken Order Block is not immediately forgotten. It remains eligible to pair with a later opposing Order Block for the duration of the Pairing Window.
Unlike strict inversion models, the two Order Blocks do not need to overlap perfectly. They may also form within a small ATR-adjusted proximity controlled by the Maximum Pairing Proximity setting.
Bullish iOB
• A bearish Order Block is broken.
• A bullish Order Block forms within the Pairing Window.
• The two zones overlap or form within the allowed proximity.
• The resulting area becomes a bullish Inversion Order Block.
Bearish iOB
• A bullish Order Block is broken.
• A bearish Order Block forms within the Pairing Window.
• The two zones overlap or form within the allowed proximity.
• The resulting area becomes a bearish Inversion Order Block.
█ How It Works
⚪ Order Block Detection
The script searches for strong displacement candles that close beyond recent market structure.
Each displacement is filtered using:
• ATR-based candle range.
• Minimum candle body ratio.
• Minimum Order Block size.
The nearest opposing candle before the displacement becomes the Order Block.
⚪ Memory & iOB Formation
Every valid Order Block is stored internally.
A bullish OB is considered broken when price closes below it, while a bearish OB is broken when price closes above it.
If a later opposing OB forms within the Pairing Window, the script checks whether the two zones overlap or sit within the Maximum Pairing Proximity.
bool overlaps = overlapHi > overlapLo
bool nearby = not overlaps and gap <= tolerance
When they overlap, the shared price area becomes the iOB. When they are only nearby, the failed original OB becomes the inversion zone.
⚪ Zone Management
Each zone can transition through several states:
• Active
• Tested
• Mitigated
• Frozen
• Removed
Mitigation may use wick touches or candle closes and can occur at the 50% level or after a full fill. Mitigated zones can either be deleted or retained as historical references.
⚪ Dynamic Zone Merging
Nearby compatible zones may be combined visually to reduce clutter.
• Bullish OBs merge with bullish OBs.
• Bearish OBs merge with bearish OBs.
• Bullish and bearish iOBs may merge into one neutral Merged iOB.
• Live and retained mitigated zones remain separate.
Retained zones only merge when their historical active periods overlap.
⚪ Distance Filtering
Zones beyond the selected ATR distance from the current price are hidden from the chart.
Hidden zones remain internally active and continue updating their memory, mitigation, and alert states.
█ How to Use
⚪ Bullish iOB Retest
After a bearish Order Block fails and a later bullish Order Block confirms the inversion, the resulting bullish iOB may act as support.
Rather than entering during the initial displacement, traders can wait for price to retrace into the bullish iOB.
A bullish reaction from the zone may indicate that buyers are defending the former resistance area.
⚪ Bearish iOB Retest
After a bullish Order Block fails and a later bearish Order Block confirms the inversion, the resulting bearish iOB may act as resistance.
Traders can wait for price to retrace into the bearish iOB and observe whether selling pressure returns.
A bearish reaction may indicate that sellers are defending the former support area.
█ Settings
Structure Lookback: Number of completed bars used to determine the structure high or low that a displacement candle must close through.
Order Block Search: Number of previous candles searched to locate the nearest opposing candle before the displacement.
Minimum Displacement Range: Minimum candle range measured as a multiple of ATR before a displacement is accepted.
Minimum Displacement Body: Minimum percentage of the displacement candle that must be occupied by its body.
Order Block Source: Select whether Order Blocks use the complete candle range or only the candle body.
Minimum Order Block Size: Minimum ATR-adjusted size required before an Order Block is accepted.
Pairing Window: Number of bars a broken Order Block remains eligible to pair with a later opposing Order Block.
Maximum Memory Age: Maximum number of bars an Order Block may remain inside the internal memory system.
Maximum Pairing Proximity: Maximum ATR-adjusted distance allowed between a failed Order Block and a later opposing Order Block. A value of zero requires direct overlap.
Delete Mitigated Zones: Removes mitigated zones or freezes them as historical references.
Mitigation Level: Select whether mitigation occurs at the 50% equilibrium level or after a complete fill.
Mitigation Source: Uses wick penetration or candle closes to confirm mitigation.
Merge Retained Mitigated Zones: Visually combines compatible historical zones that overlap in both price and active time.
Mitigated Zone Transparency: Controls how transparent retained historical zones appear.
Show Mitigated EQ Lines: Displays or hides equilibrium lines inside retained mitigated zones.
Filter Distant Zones: Hides Order Blocks and iOBs that are far away from the current price.
Maximum Distance From Price: Maximum ATR distance allowed before a zone becomes hidden.
Merge Nearby Zones: Visually combines compatible live zones and retained mitigated zones.
Maximum Merge Distance: Controls how close compatible zones must be before they merge visually.
Show iOBs: Displays bullish, bearish, and merged Inversion Order Blocks.
Show Regular OBs: Displays regular bullish and bearish Order Blocks. Detection and memory remain active when regular OBs are hidden.
Show EQ Line: Displays the equilibrium midpoint of each visible zone.
Fade With Age: Gradually increases zone transparency as the zone becomes older.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Indicator

TL Structure Pro - Mechanical SMC Engine: BOS, CHoCH, SweepsTL STRUCTURE PRO — Mechanical Smart Money Concepts (SMC) Engine: Market Structure, BOS/CHoCH, Liquidity Sweeps, Supply & Demand POI, FVG, Sessions, Signals & Webhook Automation
WHAT THIS INDICATOR DOES
TL Structure Pro turns a complete, fully mechanical Smart Money Concepts (SMC) trading model into one indicator. It automates the exact rule set many price-action traders apply manually: market structure mapping (HH/HL/LL/LH), Break of Structure (BOS), Change of Character (CHoCH), liquidity sweeps, supply and demand points of interest (POI), fair value gaps (FVG/imbalance), session timing (Asia / Frankfurt / London), a two-step entry model with internal realignment, and rule-based trade management with break-even logic — all with zero discretion and zero repainting (the engine only works on confirmed/closed candles).
Every element is drawn and labeled directly on the chart, so you can SEE why each signal happened: every zone is named, every structure point is tagged, and every BUY/SELL label explains its own reason.
THE MECHANICAL RULE SET (HOW IT THINKS)
1. BREAK & CLOSE RULE — A swing high/low only counts as broken when a candle BREAKS AND CLOSES beyond it. A wick through the level without a close is NOT a break.
2. LIQUIDATION ($) — If price wicks beyond a swing but fails to close beyond it, the indicator prints a "$" marker: that was a liquidity sweep / liquidity grab, not a break. These sweeps often precede reversals.
3. PULLBACK RULE — A new swing high/low is only confirmed after a valid pullback: N opposing candles in a row (default 3) with successive closes. No valid pullback = no new structure point; the move is just internal noise.
4. BOS — Break of Structure in the direction of the trend = continuation. Drawn as a gold dashed line with a BOS label.
5. CHoCH — Break & close AGAINST the current direction = Change of Character. Bias flips (bullish <-> bearish). Drawn in pink. After a bearish CHoCH the engine only looks for shorts; after a bullish CHoCH only longs.
6. POI ZONES — On every qualifying break the engine stores two zones: the DECISIONAL candle (last opposing candle before the breaking impulse) and, on CHoCH, the ORIGIN (last opposing candle at the origin of the impulse). Zones are drawn as labeled supply/demand boxes, extended in time, marked as "tapped" on first touch and deleted when invalidated by a close beyond them.
7. FVG / GAPS — Three-candle imbalances above a minimum size are boxed and removed once filled ("gaps get filled").
8. SESSIONS — Asian session, Frankfurt open and the London trade window are boxed with configurable times and timezone (defaults follow GMT+4 / Dubai time as in the original model: London window 11:00–14:00).
THE ENTRY MODEL (WHEN A SIGNAL FIRES)
A signal needs three conditions in sequence — the same checklist is shown live in the cockpit panel:
Step 1 — BIAS: structure must be clearly bullish or bearish (after BOS/CHoCH).
Step 2 — POI TAP: price returns INTO a supply zone (bearish bias) or demand zone (bullish bias) or a matching FVG. The setup is now "armed".
Step 3 — INTERNAL SHIFT (REALIGNMENT): inside the POI, the smaller internal structure (pivot-based, the "lower timeframe inside your chart") must shift in trade direction — a close beyond the last internal pivot. Only then a BUY/SELL label prints.
Risk placement is automatic and printed on the chart:
• ENTRY = close of the trigger candle
• STOP LOSS = POI extreme + a pip buffer (default 3.5 pips — capital preservation first)
• TAKE PROFIT = the weak swing low/high of the current range (structure target)
• R multiple of the setup is calculated and shown on the signal label
• BREAK-EVEN: once the trade runs the configured R distance (default 1R), the panel/alert moves the stop logic to break-even; TP hit, SL hit and BE exit are all labeled on the chart.
THE COCKPIT PANEL
The side panel shows: current bias, the live SMC checklist (structure / pullback / liquidity sweep / POI tap / entry shift / management) with OK-status per rule, active session window, structure timeframe and internal pivot length, SL buffer, current position with entry/SL/TP, the last signal with its R multiple, and a counter of active supply/demand/FVG zones. If a checklist row shows "‥" you immediately know which condition is still missing before the next signal can fire.
HOW TO USE IT — STEP BY STEP
1. Add the indicator to a clean chart. Recommended: liquid FX pairs (GBPUSD, EURUSD), gold (XAUUSD) or indices, timeframes M5–H1 for the session-based model (M15 is the classic choice). It works on any symbol/timeframe; sessions display on intraday charts up to 1h.
2. Set your timezone and session times in group ④ if you do not trade the default GMT+4 windows. Enable "Signals ONLY inside London window" if you want to trade the London session model strictly.
3. Read the structure first: follow the SWING HIGH / SWING LOW lines, the HH/HL/LH/LL tags and the BOS/CHoCH lines until you understand the current bias (also shown in the panel).
4. Watch the zones: price returning into a labeled SUPPLY/DEMAND (DECISIONAL/ORIGIN) box or FVG arms the setup — the panel switches to "ARMED (POI tapped)".
5. Wait for the printed BUY/SELL label — never front-run it. The label shows the R multiple and the reason (POI TAP + SHIFT); the tooltip lists entry, stop and target.
6. Manage by the printed levels: entry line (gold), SL line (pink, includes the pip buffer), TP line (mint, the weak swing). BE marker prints when break-even logic activates.
7. Tune mechanically, not emotionally: "Pullback rule candles" (2–5) controls how strict new structure confirmation is; "Internal pivot length" controls how fine the entry trigger is (smaller = earlier, noisier); "Min gap size" filters small FVGs; "Max zones" limits chart clutter.
8. Hover anything: every label, zone and marker has an explanatory tooltip, so the chart teaches the model while you trade it.
ALERTS & WEBHOOK AUTOMATION
Create ONE alert with condition "Any alert() function call" and paste your webhook URL — the indicator sends ready-to-parse JSON for every event:
{"id":"TL-STRUCTURE-PRO","symbol":"GBPUSD","action":"SELL","price":1.27201,"sl":1.27236,"tp":1.26350,"rr":"24.30","tf":"15","time":"2026-07-18 12:45"}
Actions: BUY, SELL, BREAK_EVEN, TP_HIT, SL_HIT, plus optional BOS_UP/BOS_DOWN/CHOCH_UP/CHOCH_DOWN. This makes the indicator plug-and-play with trade-automation bridges, bots and journaling tools. Classic alertconditions (BUY/SELL/BOS/CHoCH) are also available for simple popup/app notifications.
NON-REPAINT BEHAVIOUR
All structure logic, zones and signals are computed on CONFIRMED candles only (barstate.isconfirmed). Once printed, BOS/CHoCH lines, zones and signal labels do not repaint. Alerts fire on bar close.
NOTES
• The R multiples shown are the structural setup quality, not a performance promise. Nothing here is financial advice — backtest and forward-test before risking money.
• The panel is a table: if your main chart series is set above indicators, use right-click on the indicator legend -> Visual order -> Bring to front.
• Best visual experience with the dark PulseWire theme (the indicator brings its own navy chart theme, mint/red candles and paints the future margin).
Concepts covered: Smart Money Concepts, SMC, ICT-style market structure, break of structure, change of character, liquidity sweep, liquidity grab, stop hunt, supply and demand zones, order block style POIs, decisional candle, origin, fair value gap, imbalance, premium discount, London session, killzone, session trading, scalping, day trading, price action, forex, gold, indices, webhook automation, algo bridge.
Indicator

Displacement Acceptance Engine [PhenLabs]📊 Displacement Acceptance Engine
Version: PineScript™ v6
📌 Description
The Displacement Acceptance Engine grades what happens after a liquidity sweep — not just the sweep itself. Most sweep tools fire on a wick beyond a swing and stop there. DAE waits for a real displacement leg, then scores whether price accepts that move or rejects it.
Traders see a clean story on the chart: sweep zone → neon displacement beam → scored ▲ ACC / ✕ REJ label, plus a live dashboard with bias, state, score, last event, HTF context, and volume pulse. Built for SMC/ICT retail who want continuation quality after stop-hunts on crypto, indices, FX, and metals.
🔧 Core Features
• Confirmed BSL/SSL liquidity pools from swing pivots
• Stop-hunt sweep detection with ATR buffer and optional close-back-inside
• Displacement window that requires body + ATR expansion beyond the sweep
• Acceptance vs rejection resolve with hold-fraction logic
• Mechanical 0–10 score (depth, displacement, body, volume, structure, HTF)
• Neon beams, sweep zones, scored labels, and PhenLabs command dashboard
• Cooldown + max visible events to keep charts readable
⚙️ How It Works
• Sweep Depth — wick pierce beyond the pool normalized by ATR
• Displacement Magnitude — impulse leg size vs ATR after the sweep
• Body Quality — displacement candle body strength vs ATR
• Volume Pulse — bar volume vs SMA (HOT / OK / SOFT)
• Structure Break — close through recent swing extreme or pool buffer
• HTF Bias — optional higher-timeframe alignment bonus
• Final score gates high-conviction ▲ ACC labels; failed holds print ✕ REJ
🎨 Visual Guide
• Dotted pool rails — active buyside / sellside liquidity
• Translucent sweep boxes — stop-hunt event footprint
• Dual-glow displacement beams — core + outer rail from origin to impulse close
• ▲ ACC / ✕ REJ scored labels — continuation quality at a glance
• Soft bar highlight — high-score acceptance bars only
• Top-right dashboard — BIAS · STATE · SCORE · EVENT · HTF · VOL · POOLS
📡 Alerts
• Bull Liquidity Sweep
• Bear Liquidity Sweep
• Bull Displacement
• Bear Displacement
• Bull Acceptance High Score
• Bear Acceptance High Score
• Displacement Rejection
⚙️ Key Settings
• Pivot Lookback — Default: 5 — pool sensitivity
• Require Close Back Inside — Default: true — classic stop-hunt reclaim
• Displacement Window — Default: 6 bars — time allowed for impulse
• Min Displacement (ATR) — Default: 0.55 — impulse size gate
• Acceptance Window — Default: 8 bars — hold / fail resolve time
• Hold Fraction of Disp Leg — Default: 0.45 — acceptance hold line
• Min Acceptance Score — Default: 6.0 — label / highlight gate
• HTF Bias Timeframe — Default: 60 — score alignment context
• Max Visible Events — Default: 8 — clutter control
⚠️ Disclaimer
Educational tool only. Not financial advice. Past structure ≠ future results. Always manage risk. Indicator

Liquidity Sweep Hunter Algo [AlgoAlpha]🟠 OVERVIEW
Liquidity Sweep Hunter Algo identifies liquidity highs and lows across three different lookback periods and keeps them active until they are mitigated. This creates a persistent view of where resting liquidity has formed instead of only showing the latest swing points.
The indicator also displays a heatmap that highlights the relative strength of active liquidity levels and generates reversal signals after price sweeps multiple visible liquidity bands before reclaiming them. Optional trade drawings project a stop loss, reward target, and intermediate target levels directly on the chart.
🟠 CONCEPTS
Liquidity Level — A price extreme detected from fast, medium, and slow lookback windows. Matching levels are merged so nearby highs or lows are treated as the same liquidity area.
Liquidity Heatmap — A visual strength map where colour represents the relative strength of each active liquidity level compared to the other visible levels.
Multi-Level Liquidity Sweep — A reversal condition where price sweeps at least two visible liquidity bands and then closes back beyond the reclaim level within a limited number of bars. An optional strength filter can require the swept levels to exceed a minimum average strength.
🟠 FEATURES
Liquidity Heatmap — Displays active liquidity levels using a colour gradient that reflects their relative strength.
Multi-Level Sweep Signals — Plots bullish and bearish reversal labels after confirmed liquidity sweep and reclaim events.
Trade Projection Boxes — Draws entry, stop loss, reward zone, and target milestone levels after each signal.
Trade Progress Display — Fills the target area as price reaches successive target levels and marks completed trades with a check mark.
🟠 HOW TO USE
Watch the heatmap to identify where stronger liquidity has accumulated around current price.
Wait for a bullish or bearish sweep signal after price clears multiple liquidity bands and reclaims the area.
Use the optional trade projection as a visual reference for the calculated stop loss, reward target, and target milestones.
Increase the lookback values to focus on broader liquidity zones or decrease them to detect more local levels.
Adjust the sweep strength filter if you want signals only when stronger liquidity zones are involved.
🟠 CONCLUSION
Liquidity Sweep Hunter Algo combines persistent liquidity mapping, a relative strength heatmap, and multi-level liquidity sweep detection in a single indicator. It also provides optional trade projections that remain on the chart after each signal. Together these features help traders monitor where liquidity has formed, when it has been swept, and where price has reclaimed the area. Indicator

Market Structure BOS, CHoCH, HH HL LH LL & Trend Health [LunqFX]Market structure is the skeleton of every trend: a series of higher highs and higher lows, or lower highs and lower lows, until a break says the trend has changed. This indicator maps that skeleton automatically — labelling every swing as HH, HL, LH or LL, drawing each Break of Structure (BOS) and Change of Character (CHoCH) — and adds one thing no other structure tool has: it tells you the trend is failing BEFORE the structure actually breaks.
❶ THE STRUCTURE MAP
▸ SWING LABELS — every confirmed swing point is labelled HH (higher high), HL (higher low), LH (lower high) or LL (lower low). The sequence of those four labels IS the trend, and having it on the chart removes the guesswork from reading price action.
▸ BOS — Break of Structure. Price closes through the last swing level in the direction of the trend: the trend is continuing. Drawn as a dashed line from the broken level with a BOS label.
▸ CHoCH — Change of Character. Price closes through the last swing level against the trend: the trend has flipped. Drawn as a solid, highlighted line — this is the reversal signal smart-money traders wait for.
▸ STRUCTURE CANDLES — the candles themselves are coloured by the structural trend, not by whether each bar closed up or down. Green means the market structure is bullish, violet means bearish, so the regime is obvious at a single glance. Their brightness fades as Trend Health falls.
❷ TREND HEALTH 0–100 — THE EARLY WARNING
Every other structure tool tells you a trend has ended after CHoCH prints. By then the move is already gone. Trend Health measures the two things that decay before every structure break:
▸ EXPANSION — in a healthy trend each new extreme clears the previous one by at least as much as the last leg did. When new highs barely exceed the old ones, the trend is running out of fuel.
▸ RETRACEMENT — in a healthy trend pullbacks stay shallow. When each pullback eats deeper into the previous leg, control is shifting to the other side.
Both are measured on the live leg, normalised by ATR so the score behaves the same on any symbol and timeframe, and blended into a single 0–100 reading. When it drops below your threshold the dashboard flags WEAKENING — while the trend is still technically intact. That is the warning CHoCH cannot give you, because CHoCH is confirmation, not anticipation.
❸ THE STRUCTURE TAPE
Instead of a table of numbers, the dashboard shows a timeline of the last five structure events, oldest to newest: BOS ▲ · BOS ▲ · CHoCH ▼ · BOS ▼. Reading the sequence tells you instantly whether the market is trending cleanly (a run of BOS in one direction) or chopping (CHoCH flipping back and forth) — context you cannot get from a single label on the chart.
❹ HOW TO TRADE IT
1 — Establish the bias from MARKET STRUCTURE in the panel. Bullish structure = look for longs, bearish = look for shorts. Do not fight it.
2 — Use BOS as continuation. A BOS in the direction of your bias confirms the trend is intact; the broken level often becomes support or resistance on the retest.
3 — Use CHoCH as the reversal trigger. A CHoCH against the prevailing trend is the earliest confirmed signal that structure has flipped. Wait for it before trading a reversal.
4 — Use TREND HEALTH for timing and risk. Health above 65 with a run of BOS on the tape = a clean trend, hold your position and trail. Health falling into WEAKENING = tighten stops, take partials, and stop adding — the structure is decaying and a CHoCH becomes more likely.
5 — Read the tape for market state. Several BOS in a row = trending market, trade continuations. Alternating CHoCH = choppy market, stand aside or trade the range instead.
❺ HOW IT WORKS
Swing points come from confirmed pivots, so a swing only exists once the bars on both sides of it have closed. The most recent swing high and swing low become the active structure levels. When a bar CLOSES beyond one of them (a wick-based mode is available), the break is registered: in the direction of the current trend it is a BOS, against it a CHoCH, and the trend state flips. Trend Health compares the size of the current expansion leg with the previous one in ATR units, and the depth of the latest pullback against the leg it retraced, then blends them 60/40 into the 0–100 score. Immediately after a CHoCH there is no second leg to compare yet, so the panel honestly reports NEW TREND instead of a misleading health reading.
Works on every symbol and timeframe — forex, gold, indices, crypto and stocks — because every threshold is either structural or ATR-normalised, with nothing to configure per market.
SETTINGS — swing length (how major a swing must be), break on close or wick, the health threshold that flags weakening, swing labels and BOS/CHoCH lines on/off, number of events kept, structure candles on/off, and dashboard position.
ALERTS — BOS up, BOS down, CHoCH up, CHoCH down, and Structure Weakening (the early warning).
NON-REPAINTING — swings are built from confirmed pivots and every break is validated on bar close. A label or line that has printed never moves or disappears.
Every component here describes the same object — the market's structure — at a different resolution: the swings build it, BOS and CHoCH break it, Trend Health measures its condition, and the tape is its history. That is why they belong in one tool rather than five.
This indicator is an educational market-analysis tool, not financial advice. Trend Health describes the current structure's condition and does not predict future prices. Always confirm with your own analysis and manage your risk.
Pre-publish checklist Indicator

Hourly Liquidity Clock HOD/LOD Probability Map (AlgoForex) Most intraday tools tell you WHERE price may react. This one tells you WHEN.
Hourly Liquidity Clock builds a rolling statistical profile of the trading day
for the symbol you have open, and answers three questions:
• Which hour of the day most often contains the DAILY HIGH?
• Which hour most often contains the DAILY LOW?
• Which hour carries the largest average range?
── HOW IT WORKS ──────────────────────────────────────────────
For every completed day inside the lookback window (default 60 days) the script
records the hour in which the daily high and the daily low were printed, in the
timezone you select. Those counts are converted into a percentage of days.
In parallel it aggregates each clock hour independently: average high-to-low
range, and the share of hours that closed above their open (directional bias).
The three hours with the highest combined HOD + LOD count are labelled Power
Hours and tinted on the chart, so you can see at a glance whether the current
candle sits inside a historically decisive window or inside dead time.
Session ranges are drawn on top of this: Asia, London and New York boxes with
their high and low projected forward. When a projected level is traded through,
the level stops extending and a sweep marker is printed.
── HOW TO READ IT ────────────────────────────────────────────
HOD% column — share of days whose high formed in that hour. Brighter = higher.
LOD% column — share of days whose low formed in that hour.
BIAS column — green above 55%, red below 45%, neutral in between.
RANGE column — average range of that hour, in symbol price units.
A hour with a high HOD% and a low LOD% is a hour that historically completes
upside expansion. The mirror case marks downside expansion. Hours with low
values in both columns are consolidation windows.
── SETTINGS ──────────────────────────────────────────────────
Timezone — set this to your broker or server time so the hours match
the clock you actually trade on. Everything reprints.
Lookback (days) — 60 is a balance between sample size and adaptation.
Raise it for stable instruments, lower it after a regime
change.
Power Hours — how many hours are highlighted.
Sessions — three fully editable windows, name, time and colour.
Sweeps — markers and alert() calls on session high/low takes.
── NOTES ─────────────────────────────────────────────────────
Use a 1H timeframe or lower. On 4H and above an hour cannot be resolved and the
table will warn you.
The statistics need history. Give the chart enough bars for the lookback window
to fill, otherwise the sample is too small to read.
This is a timing and context tool. It produces no entries, no exits and no
buy/sell signals, and past hourly distributions do not guarantee future ones.
Nothing here is financial advice. Indicator

Liquidity Levels, Sweeps & Grabs | Falcon AIPrice is constantly hunting liquidity — the pools of stop orders that sit just beyond obvious highs and lows. This free tool draws the four levels where that liquidity rests, then flags the exact bar each one gets taken, so you see stop-runs as they happen instead of after the move.
THE LEVELS IT DRAWS
• Previous Day High / Low (PDH / PDL)
• Previous Week High / Low (PWH / PWL)
Calculated from the last COMPLETED day and week and fixed for the whole period — non-repainting.
TWO WAYS LIQUIDITY GETS TAKEN — FLAGGED SEPARATELY
• Sweep (triangle) — a multi-candle event. Price runs beyond a level, can hover or consolidate there, then closes back through it. The classic stop-run that often front-runs a reversal.
• Grab (diamond) — a single-candle event. One candle wicks sharply beyond the level and closes back inside with a small body (a doji-like rejection). A fast, one-bar liquidity raid.
The two are mutually exclusive per level: a slow multi-candle reversal reads as a sweep; a one-bar wick rejection reads as a grab.
ALERTS
Four ready-to-use alerts — high sweep, low sweep, high grab, low grab — so you're pinged the moment buy-side or sell-side liquidity is taken.
INPUTS
• Toggle each level set (day / week) and each signal type (sweeps / grabs)
• Grab sensitivity via a wick-to-body ratio (higher = stricter / more doji-like)
• Line style, colors, price labels
HOW TRADERS USE IT
Sweeping and grabbing liquidity is a core Smart-Money / ICT idea: price is pushed beyond a well-watched level to fill orders and trigger stops before reversing. Watching for a sweep or grab of PDH/PDL or PWH/PWL — especially into a higher-timeframe level or a session open — can help spot exhaustion and potential turning points. This tool marks those moments objectively; how you act on them is your call.
Educational tool — not financial advice. Past behavior does not guarantee future results. Indicator

FVG Sweep Magnet Engine [PhenLabs]📊 FVG Sweep Magnet Engine
Version: PineScript™ v6
📌 Description
The FVG Sweep Magnet Engine turns displacement-born Fair Value Gaps into scored magnetic targets that only arm after a real liquidity sweep. Instead of treating every imbalance as tradeable, FSME waits for buy-side or sell-side liquidity to be raided, then confirms when price is pulled back into a high-quality FVG.
This solves the two biggest failure modes retail ICT tools create: trading empty gaps with no context, and chasing sweeps that never reclaim structure. Neon multi-layer magnet beams, graded gap boxes, and a live regime dashboard make the confluence readable in one glance — built for dark-chart screenshots and fast decision-making on futures, indices, FX, and crypto.
🚀 Points of Innovation
Displacement-validated FVG detection filters out micro-noise gaps that never attract price
Liquidity sweep gate (BSL/SSL raid + rejection) must print before any magnet signal arms
0–10 quality score blends gap size, displacement strength, freshness, and volume impulse
Clean visual hierarchy: soft FVG zones + single CE midline by default; neon only on MAG
Partial-fill fade and full mitigation cleanup keep the chart honest as gaps get consumed
Live FSME dashboard tracks bias, live gaps, best score, sweep state, and last signal
🔧 Core Components
Displacement FVG Engine: Detects classic 3-candle bullish/bearish imbalances only when the middle candle body clears an ATR displacement threshold and the gap clears a minimum ATR size filter
Liquidity Rail Tracker: Maintains confirmed swing BSL/SSL pools as dotted rails and classifies wick-rejection raids that reclaim the level
Magnet Confluence Gate: Arms a signal only when a fresh sweep window overlaps a live scored FVG that price re-enters with directional close confirmation
Target Projector: Extends dotted neon target rays from the FVG midline by ATR multiple after a magnet print
Regime Dashboard: Compact top-right table summarizing bull/bear FVG count, best score, sweep state, last signal, nearest magnet mid, and ATR
🔥 Key Features
Non-repaint pivot liquidity and confirmed-bar FVG logic suitable for alerts and live trading
Configurable displacement, gap size, magnet window, min score, and target extension
Bull cyan / bear magenta neon palette with independent fill, border, rail, and beam colors
Optional faded mitigated FVGs for study mode, or hard-delete cleanup for clean charts
Alertconditions for bull/bear magnets, BSL/SSL sweeps, and new displacement FVGs
Works as a standalone SMC overlay or confluence layer on top of session/order-block tools
🎨 Visualization
FVG zones: Soft teal/red translucent boxes (high transparency so candles stay readable) with score on the right edge
CE midline: Single thin dashed line at the gap center — no permanent multi-layer beam cage
Neon on MAG only: Triple glow beam + TP ray appear only when a magnet signal arms
MAG labels: Clear ▲ MAG / ▼ MAG tags offset above/below the bar (not stacked on wicks)
Optional extras (off by default): liquidity rails and sweep diamonds for power users
Signal highlight: Soft bar tint only on confirmed MAG bars
Dashboard: Compact 6-row panel — Bias, Live Gaps, Best Score, Sweep, Last Signal
📖 Usage Guidelines
Max Active FVGs — Default: 10 — Range: 2-40 — Keep low for a clean chart
Displacement ATR Mult — Default: 1.25 — Range: 0.3-5.0 — Raise on noisy lower TFs
Min Gap Size (ATR) — Default: 0.25 — Range: 0.05-3.0 — Higher = fewer, cleaner zones
Require Displacement Candle — Default: true — Keep on for quality
Max FVG Age (bars) — Default: 60 — Range: 10-300 — Expires stale magnets
Magnet Window — Default: 18 — Range: 3-80 — Bars after a sweep for FVG entry confirm
Min Score for Signal — Default: 5 — Range: 0-10 — Raise to 7+ for selective setups
Show FVG Midline (CE) — Default: true — Single dashed CE line per zone
Neon Beam Only on MAG — Default: true — Neon appears only on confirmed signals
Show Liquidity Rails — Default: false — Optional; off keeps chart readable
Show Sweep Diamonds — Default: false — Optional; off by default to reduce noise
✅ Best Use Cases
ICT/SMC traders waiting for liquidity raids into unfilled FVGs instead of blind gap fades
Intraday index and futures traders (ES, NQ, YM) on 1m–15m seeking clean reversal confluence
FX and crypto traders mapping displacement legs during London/NY expansion
Prop-style discretionary traders who want scored setups with explicit invalidation (full gap fill)
Content creators capturing high-contrast neon dark-chart screenshots for PulseWire publish art
⚠️ Limitations
FVG detection is geometric (3-candle imbalance) and does not use true order-book data
Sweep logic uses confirmed swing pivots, so very fresh local highs/lows need pivot length bars to register
High-volatility news spikes can create large displacement gaps that score well but fail if context is one-way trend
Neon beams and boxes are object-limited; extreme settings (max FVGs + long age) can hit PulseWire object caps
This is a confluence overlay, not a complete strategy — always pair with risk rules and higher-timeframe bias
💡 What Makes This Unique
Sweep-gated magnets: FVGs stay passive until liquidity is actually raided — reverse of “every gap is a signal” tools
Scored gaps: Traders see why a zone matters (size, displacement, age, volume) instead of binary boxes
Signal-first visuals: zones stay quiet until confluence arms — neon and TP only on MAG
PhenLabs DNA: Liquidity + engine naming + dashboard, fused with this week’s dominant FVG/ICT community demand
🔬 How It Works
Displacement scan: On each bar the engine checks for a 3-candle bullish or bearish FVG, requires the middle candle body to clear ATR × displacement mult, and rejects gaps smaller than ATR × min gap size
Score + draw: Qualifying gaps receive a 0–10 score and are rendered as translucent boxes with a three-layer neon midline beam and optional score label
Liquidity map: Confirmed pivot highs/lows become BSL/SSL rails; a sweep prints when price raids the level with sufficient wick and closes back through it
Magnet arming: For a limited bar window after the sweep, if price re-enters a live same-direction FVG that clears the min score and closes in the reclaim direction, a MAG signal fires
Projection + lifecycle: Dotted ATR targets extend from the magnet mid; partial fills fade the box, full fills or max age invalidate the gap and clean objects unless faded mode is enabled
💡 Note:
Use FSME as a visual decision-support layer for liquidity-to-imbalance workflows. Confirm higher-timeframe bias, define risk beyond the opposite side of the FVG or swept pool, and never treat magnet markers as guaranteed entries. This script is an analytical aid only and does not constitute financial advice.
Indicator

Indicator

Indicator

Institutional Flow MatrixInstitutional Flow Matrix is an open-source market-analysis framework designed to organize trend direction, confirmed market structure, institutional price zones, momentum, and location within a dealing range into one readable chart.
The purpose of this indicator is not to predict every price movement or generate constant entries. It is designed to answer a more practical sequence of questions:
1. What is the current directional bias?
2. Is market structure supporting that direction?
3. Is price trading from a meaningful location?
4. Has price returned to an active institutional zone?
5. Is momentum aligned with the proposed setup?
The script combines these questions into a structured workflow while keeping the default chart intentionally clean.
WHY THIS INDICATOR WAS BUILT
Many market-structure indicators display every swing, imbalance, liquidity level, zone, and signal at the same time. While that information can be useful for detailed analysis, it can also make the chart difficult to interpret during live trading.
Institutional Flow Matrix was built around a visual hierarchy:
* Directional bias is the primary layer.
* Active Order Blocks are the principal reaction zones.
* Momentum is a confirmation layer.
* Premium and Discount provide market location.
* Fair Value Gaps, liquidity pools, sweeps, and higher-timeframe levels are optional study tools.
The default Balanced preset focuses on the information most relevant to a directional pullback setup. Minimal mode removes most supporting visuals for live execution. Full mode reveals the additional market-structure tools for deeper analysis.
WHAT MAKES THE IMPLEMENTATION DIFFERENT
The individual concepts used by this script, including pivots, moving averages, ATR trend filters, Order Blocks, Fair Value Gaps, and Premium/Discount ranges, are established forms of technical analysis.
The original contribution of Institutional Flow Matrix is how those components are synchronized and managed as one decision framework.
Key design elements include:
* Confirmed structure events rather than unconfirmed swing guesses.
* A persistent directional state requiring agreement between structure, EMA alignment, and an ATR-based trend filter.
* Order Block freshness validation before a zone is accepted.
* Separate visual duration and analytical lifetime controls for zones.
* Automatic mitigation and expiration of old zones.
* Limited drawing-object counts to prevent long-term chart clutter.
* A weighted confluence model centered on trend, structure, zone interaction, market location, and momentum.
* Three visual presets that change the information hierarchy without changing the underlying calculations.
* Confirmed-bar signals and event-based alerts.
This is not intended to be a collection of unrelated indicators. Each module has a defined role in the same setup process.
DIRECTIONAL BIAS
The chart background represents the script's confirmed directional state.
A bullish state requires agreement between:
* Bullish market structure.
* Fast EMA positioning above the slow EMA.
* Bullish ATR trend conditions.
A bearish state uses the opposite conditions.
The background changes only after the required conditions are confirmed. A larger BUY or SELL label marks a confirmed change in this directional state.
These shift labels are different from the smaller confluence signals. A shift label identifies a change in directional bias. A confluence signal requires additional location, zone, and momentum conditions.
MARKET STRUCTURE
Confirmed pivot highs and lows form the structure engine.
The script tracks:
* Higher Highs
* Higher Lows
* Lower Highs
* Lower Lows
* Breaks of Structure
* Changes of Character
A bullish break occurs when a confirmed bar closes above the latest unbroken confirmed swing high. A bearish break occurs when a confirmed bar closes below the latest unbroken confirmed swing low.
Swing labels are retrospective by design. A pivot can only be confirmed after the selected number of right-side bars has closed. Once confirmed, its label is placed on the candle where the swing originally occurred. The label was not known on that earlier candle.
ORDER BLOCKS
Order Blocks are the primary reaction zones in the indicator.
After a confirmed structure break or qualifying displacement event, the script searches backward for an opposing candle. A candidate candle can be filtered by:
* Candle range relative to ATR.
* Body size as a percentage of candle range.
* Optional volume expansion.
* Wick-based or body-based zone construction.
Before accepting the candidate, the script checks whether price has already invalidated it. This prevents many stale zones from being created after the fact.
Active Order Blocks can be invalidated by either:
* A close beyond the opposite edge.
* A wick beyond the opposite edge.
The selected mitigation method is used consistently during both zone creation and live zone management.
Order Blocks have separate controls for visual extension and analytical age. This allows users to control how long a box remains visible independently from how long it remains eligible for signal calculations.
PREMIUM, DISCOUNT, AND EQUILIBRIUM
The script creates a rolling dealing range from the highest high and lowest low over the selected lookback.
The range is divided into:
* Premium: the upper portion of the range.
* Discount: the lower portion of the range.
* Equilibrium: the 50% midpoint.
Premium and Discount do not generate trades by themselves. They provide location.
In general:
* Bullish setups receive stronger contextual support in Discount.
* Bearish setups receive stronger contextual support in Premium.
* Equilibrium represents the midpoint of the current rolling range.
Because the range is rolling, its boundaries can change when a new lookback high or low is formed.
MOMENTUM RIBBON
The momentum module uses three exponential moving averages and an ATR-normalized difference between the fast and slow averages.
Bullish momentum requires:
* Fast EMA above the slow EMA.
* Positive normalized momentum.
* Momentum above its signal average.
Bearish momentum uses the opposite conditions.
Diamond markers identify confirmed momentum crossings. The ribbon is intended as confirmation rather than a standalone entry system.
CONFLUENCE SIGNALS
The script calculates a 0-100 Confluence Score from five conditions:
* Directional bias: 25 points.
* Market structure: 15 points.
* Momentum alignment: 15 points.
* Active Order Block interaction: 25 points.
* Premium or Discount location: 20 points.
The score measures condition alignment. It is not a probability, win rate, accuracy estimate, or forecast of future performance.
By default, BUY and SELL signals require:
* Confirmed directional bias.
* Matching confirmed structure.
* Interaction with an active Order Block.
* Correct Premium or Discount location.
* Matching momentum.
* Minimum Confluence Score.
* Completion of the selected signal cooldown.
Signals are displayed only when the complete condition changes from false to true. This prevents repeated labels while the same setup remains active.
OPTIONAL ADVANCED MODULES
Full mode provides additional analytical tools:
* Fair Value Gaps with ATR size filtering.
* Equal-high and equal-low liquidity pools.
* Confirmed liquidity sweeps.
* BOS and CHoCH labels.
* HH, HL, LH, and LL labels.
* Previous day, week, and month highs and lows.
* Optional momentum candle coloring.
These features are disabled or hidden from the default Balanced view to preserve readability.
VISUAL PRESETS
Minimal:
Designed for traders who want the least chart interference. It suppresses the background, ribbon, Premium/Discount display, trailing line, dashboard, and advanced structure annotations.
Balanced:
The default view. It emphasizes directional background, active Order Blocks, Premium/Discount context, momentum ribbon, diamonds, signals, and the dashboard.
Full:
Designed for detailed study. It adds structure labels, BOS/CHoCH events, Fair Value Gaps, liquidity tools, higher-timeframe levels, and optional candle coloring.
FOR NEWER TRADERS
A simple workflow is:
1. Start with the Balanced preset.
2. Use the background to identify the current directional bias.
3. Wait for price to return to an Order Block matching that bias.
4. Check whether price is in Discount for a bullish setup or Premium for a bearish setup.
5. Confirm that the momentum ribbon agrees.
6. Treat the signal as a point for further analysis, not an automatic order.
The equilibrium line can be used as a reference for the midpoint of the current dealing range. It is not automatically an entry or exit instruction.
FOR ADVANCED TRADERS
Experienced users can customize:
* Pivot confirmation sensitivity.
* ATR and EMA trend parameters.
* Wick-based versus body-based Order Blocks.
* Displacement-created zones.
* Candle body, range, and volume filters.
* Close-based versus wick-based mitigation.
* Zone visual duration and analytical age.
* Premium and Discount percentages.
* Fair Value Gap size.
* Liquidity sensitivity.
* Momentum lengths.
* Individual signal requirements.
* Minimum confluence threshold.
* Signal cooldown.
* Higher-timeframe reference levels.
Advanced users can also disable individual hard requirements and use the Confluence Score as a more flexible filtering system.
ALERTS
Alert conditions are included for:
* Break of Structure.
* Change of Character.
* New Order Block.
* BUY signal.
* SELL signal.
* Bias-aligned Order Block entry.
* Trend and momentum confluence.
* Liquidity sweep.
Alerts should be created using Once Per Bar Close when confirmed signals are required.
NON-REPAINTING AND TIMING
Structure breaks, directional shifts, zone creation, zone mitigation, momentum events, and confluence signals are evaluated on confirmed bars.
Pivot-based swing labels require future bars to confirm that a swing occurred. After confirmation, the label is displayed on the original pivot candle. This is delayed confirmation with retrospective placement, not advance knowledge of the swing.
Previous-period levels use completed higher-timeframe data.
LIMITATIONS
* This indicator does not predict future prices.
* It does not calculate position size, stop loss, or account risk.
* It is not a complete automated trading system.
* Signals can fail during volatile, illiquid, or range-bound conditions.
* Rolling Premium, Discount, and equilibrium levels can move when the lookback range changes.
* Confirmed pivots introduce an intentional delay.
* Order Block definitions vary among trading methodologies; this script uses the documented candle-search and filtering rules described above.
* Volume behavior differs across asset classes and data providers.
* Parameter settings that work on one symbol or timeframe may not be appropriate for another.
Suggested starting points are the 15-minute and 1-hour charts for intraday analysis and the 4-hour chart for broader swing structure. Users should test settings on their own symbols and trading sessions.
OPEN-SOURCE PURPOSE
The script is published open-source so traders can inspect the calculations, understand why signals occur, verify the confirmed-bar methodology, and adapt the framework for their own research.
The goal is to provide a readable and transparent market-structure workflow rather than a black-box prediction tool.
DISCLAIMER
This indicator is provided for educational and analytical purposes only. It is not financial advice and does not guarantee profitable results. Historical chart behavior does not ensure future performance. Users are responsible for their own analysis, testing, risk management, and trading decisions.
Indicator

Liquidity Sweep & Stop-Hunt Signals [ForexCracked]🔵 OVERVIEW
Liquidity Sweep & Stop-Hunt Signals marks the price levels where stop orders pile up, detects the moment price runs those stops and reverses, and prints a BUY or SELL with a ready-made entry, stop and target. It is a focused reversal tool built around one of the most reliable behaviours in the market: the failed breakout.
Every signal confirms on candle close, so nothing repaints after the bar is done. A live dashboard shows the higher-timeframe bias, the last signal, and the current trade plan.
🔵 WHAT A LIQUIDITY SWEEP ACTUALLY IS
Stops cluster in obvious places: just above a recent swing high (buy-side liquidity) and just below a recent swing low (sell-side liquidity). Price is often drawn to those pools because that is where resting orders sit.
A sweep, or stop hunt, happens when price spikes through one of those swings, triggers the stops, and then closes back inside the range on the same candle. Breakout traders get trapped, and the reversal that follows is the trade this tool is built to catch.
🔵 HOW IT FINDS SIGNALS
• It tracks recent swing highs and lows as liquidity lines and keeps them on the chart until they are taken
• A SELL fires when a candle's high runs above a tracked swing high but its close falls back below it (buy-side liquidity swept, then rejected)
• A BUY fires when a candle's low runs below a tracked swing low but its close climbs back above it (sell-side liquidity swept, then rejected)
• An optional rejection-body filter ignores weak wicks and only accepts sweeps that close with a real body back inside the level
• An optional higher-timeframe EMA bias lets you take only trend-aligned sweeps, only counter-trend sweeps, or all of them
🔵 THE TRADE PLAN IT DRAWS
On every signal the tool draws three lines and labels them:
• Entry at the close of the sweep candle
• Stop just beyond the swept wick, with an ATR buffer so normal noise does not clip it
• Target at your chosen reward-to-risk multiple of that stop distance
You get a complete plan on the chart the moment a signal prints, with the exact prices in the label.
🔵 SETTINGS
• Swing Strength: how major a swing must be to count as liquidity (higher = fewer, cleaner levels)
• Levels Tracked: how many liquidity lines to keep per side
• Trend Filter: All sweeps, HTF trend only, or Counter-HTF only
• HTF Bias Timeframe and EMA Length: the higher-timeframe trend reference
• Require Rejection Body and Min Rejection Body (x ATR): quality filter for the sweep candle
• Stop Buffer (x ATR) and Reward : Risk: the trade-plan geometry
🔵 HOW TO USE
• Start on H1 or H4 for forex, gold and indices, with the HTF bias set one or two steps higher
• Treat a swept level plus a strong rejection close as the signal, not the wick alone
• Use Counter-HTF only when you want pure reversal setups at range extremes, and HTF trend only when you want continuation entries after a stop-run against the trend
• Size every trade off the drawn stop distance at a fixed account risk
• Raise Swing Strength on noisy pairs so only the meaningful liquidity gets tracked
🔵 BEST AND WEAKEST CONDITIONS
✅ Strongest at range extremes, session highs and lows, and around prior day or week highs and lows, where liquidity genuinely rests
⚠️ Weakest in fast one-way trends with no pullbacks, and on very low timeframes where every wick looks like a sweep
⚠️ DISCLAIMER
This tool identifies liquidity sweeps and marks reversal setups. It does not predict price. A swept level is a probability, not a certainty, and sweeps can extend further before reversing. Results depend on market conditions, settings, and your own execution and risk management. Shared for educational and research purposes; not financial advice. Indicator

Dynamic MSS Navigator [MarkitTick]💡 An advanced technical analysis tool engineered to automatically identify localized market structure, validate structural shifts, and dynamically generate risk-to-reward parameters. Built for systematic traders, it continuously scans price action to pinpoint candidate highs and lows based on user-defined lookback periods. Rather than relying on subjective charting, this indicator applies stringent mathematical logic—incorporating Average True Range (ATR) buffers, volume participation, and higher timeframe (HTF) alignment—to filter out market noise and present high-probability structural breaks. Once a valid break occurs, the indicator seamlessly transitions into trade management mode, drawing precise entry, stop-loss, and multiple take-profit levels directly onto the chart, accompanied by a comprehensive real-time data dashboard.
✨ Originality and Utility
● Automated Market Structure Mapping
The core utility of this indicator lies in its ability to remove human bias from market structure analysis. Traders often struggle with defining which highs and lows are structurally significant. This script mathematically defines them, tracking the absolute highest highs and lowest lows over a rolling window, and only recognizing a structural shift when a mathematically validated threshold is breached.
● Dynamic Risk-to-Reward Modeling
Unlike standard indicators that only print buy or sell arrows, this tool instantly calculates the exact risk parameter upon signal generation. By anchoring the stop-loss to the structural pivot with a built-in volatility buffer, it sizes the risk logically. It then extrapolates multiple take-profit targets based on fixed risk-to-reward ratios, providing a complete trade framework from inception to completion.
● Multi-Dimensional Filtering Mashup
This script operates as a highly cohesive mashup of distinct technical methodologies. It combines Donchian-style localized pivot detection for structure, Wilder’s Average True Range for volatility-based breakout validation, Simple Moving Averages of volume for participation measurement, and multi-timeframe security requests for overarching trend alignment. This combination ensures that a signal is only fired when price action, volatility, volume, and higher timeframe momentum are in total agreement.
🔬 Methodology and Concepts
● Localized Pivot Identification
The script continuously monitors the highest highs and lowest lows over a defined lookback period. When a new top is formed, it identifies the lowest point of that peak structure as the "Candidate Top Low." Conversely, when a new bottom forms, it marks the highest point of that valley structure as the "Candidate Bottom High." These form the immediate structural floors and ceilings.
● ATR-Buffered Breakout Logic
To confirm a shift, price must do more than just tick past the candidate line. The indicator requires price to breach the candidate level by an additional margin, calculated as a fraction of the current ATR. This ensures that only shifts with statistically significant momentum trigger a signal, heavily reducing false positives (fake-outs) during low-volatility chop.
● Composite Strength Scoring
Upon signal generation, the algorithm calculates a proprietary "Strength Score" from 0 to 100. This score is a weighted aggregate of three factors:
The distance of the closing price beyond the breakout threshold (measuring immediate momentum).
The current volume relative to its moving average (measuring market participation).
The alignment of the localized pivot with the higher timeframe pivot (measuring macro confluence).
● Dynamic Bias Tracking
The indicator tracks the ongoing market bias, classifying it as bullish, bearish, or neutral. A bullish bias is initiated upon a valid bottom break and remains intact until price breaches the newly established stop-loss level, at which point the bias flips or neutralizing protocols take over.
🎨 Visual Guide
● Chart Elements
• Candidate Lines
Dashed Red Lines indicate the support floor of a localized top. Dashed Green Lines indicate the resistance ceiling of a localized bottom. These project forward to show the exact price level that must be broken.
• Signal Markers
When a structural shift is validated, a solid Red Triangle appears above the bar for a bearish shift (labeled "BEAR"), and a solid Green Triangle appears below the bar for a bullish shift (labeled "BULL"). Small "+" cross icons appear for continuation signals where the trend is reinforced.
• Trade Projection Lines
A solid Red Line marks the calculated Stop Loss level. A dashed Blue Line marks the exact Entry Price. Dashed Teal Lines of varying opacities mark Take Profit 1 (TP1), Take Profit 2 (TP2), and Take Profit 3 (TP3).
• Zonal Fills
A semi-transparent Red Background fill connects the Entry line to the Stop Loss line, visually representing the initial capital risk. A semi-transparent Green Background fill connects the Entry line to the final TP3 line, representing the total projected reward zone.
• Heatmap Candles
The indicator takes control of the underlying candlestick colors to reflect the current structural bias. Deep Teal candles indicate an active bullish trend, Deep Red candles indicate an active bearish trend, and Gray candles indicate a neutral market state where structural direction is unresolved.
● Dashboard Readouts
A highly detailed heads-up display is rendered on the chart, featuring a dark background with bright, contrasting text. It provides rows of vital data including:
Last Signal and Trend State (e.g., HH-HL Up).
Candle Bias and a visual bar chart representing the Strength Score.
Confirmed Signal Count and Bars Since the Last Signal.
Active Position status, Entry Price, and Stop Loss Price.
Dynamic tick boxes for TP1, TP2, and TP3 displaying price levels and completion checkmarks.
Real-time Floating P/L (Profit/Loss) expressed in 'R' multiples.
Current ATR values and Volume vs Average visual bar meters.
Current state of Session and HTF filters.
📌 Note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
📖 How to Use
● Signal Execution
Traders should monitor the formation of the dashed candidate lines. When a breakout occurs, do not act prematurely; wait for the candle to close (if "Confirm by Close" is active) and ensure the primary signal triangle prints. This confirms that all volume and volatility parameters have been met.
● Assessing Trade Quality
Immediately consult the dashboard's "Strength Score." Higher scores (e.g., above 75%) indicate robust volume participation and excellent higher timeframe alignment, making them higher probability setups. Lower scores may warrant reduced position sizing or skipping the setup entirely.
● Trade Management
Utilize the dynamically plotted lines to set limit orders and stop losses in your execution platform. As price reaches TP1 and TP2 (indicated by checkmarks on the dashboard), consider trailing the stop loss to breakeven or the next logical structure point. If the candle heatmap shifts to gray (neutral) before reaching targets, it may be a prudent early exit warning.
⚙️ Inputs and Settings
● Core Settings
Lookback: Defines the number of bars used to identify localized tops and bottoms. Higher values find macro structures; lower values find micro structures.
Confirm by Close: Toggles whether the breakout must be confirmed by the candle's closing price or just the wick.
ATR Len & ATR Break Mult: Controls the volatility buffer required to validate a breakout.
● Filters
Volume Confirm: Requires breakout volume to exceed the moving average multiplied by the "Vol Spike Mult".
HTF Confluence: Restricts signals to those that align with the high/low structure of the user-defined Higher Timeframe.
Session Filter: Restricts signal generation to a specific daily time window (e.g., standard market hours).
● Trade Tools
TP1, TP2, TP3 R:R: Defines the static Risk-to-Reward multipliers for the take profit targets.
SL ATR Buffer: Adds additional breathing room to the stop loss beyond the absolute structural pivot.
● Visuals & Dashboard
Allows the user to toggle the display of candidate lines, heatmaps, and the main data dashboard, as well as reposition the dashboard to any corner of the screen.
● Alerts
Customizable string inputs for JSON payload generation, allowing traders to map long, short, close, trail, and target-hit actions directly to automated execution systems.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Dow Theory and Structural Extremes
The foundational logic of this script is rooted in classical Dow Theory, which posits that a trend is defined by a sequence of higher highs and higher lows (bullish) or lower highs and lower lows (bearish). By mathematically indexing `highestbars` and `lowestbars`, the script algorithmically isolates these fractal extremes, stripping away subjective human interpretation of market swings.
● Volatility-Normalized Breakout Thresholds
Financial markets are noisy, characterized by frequent false breaks (liquidity sweeps). This indicator employs Average True Range (ATR), a metric developed by J. Welles Wilder, to normalize the breakout threshold against current market volatility. By requiring price to exceed a structural level by a factor of the ATR, the algorithm relies on statistical significance—demanding that the breakout possesses enough standard deviations of momentum to be classified as a genuine shift in supply and demand, rather than random market drift.
● Volume Participation Theory
Drawing on Volume Price Trend (VPT) mechanics, the algorithm recognizes that price movement without volume is highly suspect. The implementation of a volume moving average filter ensures that structural breaks are validated by a true influx of market participation, confirming that the imbalance between buyers and sellers is robust enough to sustain a new directional vector.
● Automated Expected Value (EV) Projection
By mechanically tying the entry price to a mathematically defined stop-loss, and extrapolating predetermined Risk-to-Reward targets, the script enforces strict expected value mechanics. This removes emotional profit-taking, ensuring that winning trades scale out at mathematically optimal R-multiples (e.g., 1R, 2R, 3R), aligning the trader's execution with positive expectancy mathematical models over a large sample size of trades.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Liquidity Entry Signals [MarkitTick]💡 A comprehensive, multi-faceted approach to identifying potential market reversals based on classic liquidity sweep mechanics. By scanning for instances where price briefly breaches a significant structural high or low before immediately rejecting and closing back within the range, this tool highlights areas where trap-based price dynamics may be in play. It is designed to offer a complete trading framework rather than just a simple signal, integrating dynamic stop-loss and take-profit plotting, real-time advanced dashboard analytics, and comprehensive alert payloads. This indicator assists in bridging the gap between raw price action analysis and structured trade management.
● ✨ Originality and Utility
Many basic technical indicators simply look for higher highs or lower lows without assessing the quality of the rejection. This script elevates that concept by requiring strict closing conditions to validate a sweep. What truly sets it apart is its integration of multiple intelligent filters. Rather than relying on price action alone, users can mandate that sweeps align with the prevailing trend, occur during periods of sufficient volatility, and are backed by relative volume strength.
Additionally, the built-in risk management visualizations automatically calculate position risk parameters right on the chart. By projecting stop-loss and take-profit levels based on current volatility, it transforms a static signal into an actionable trade plan. The inclusion of dynamic JSON payload generation for alerts also makes this an incredibly versatile tool for those looking to automate their execution through third-party platforms.
● 🔬 Methodology and Concepts
The core logic of this script is built around the concept of a liquidity sweep, verified through price action closes, and filtered through statistical market conditions.
Bullish Sweep: The script continuously calculates the lowest low over a user-defined lookback window. A valid bullish signal occurs when the current bar's lowest price penetrates this recent low, but the closing price decisively reclaims it by closing higher than the structural low and higher than its own open.
Bearish Sweep: Conversely, the script identifies the highest high over the recent lookback period. If the current bar's high breaches this level, but the close falls below the recent high and below its own open, a short signal is triggered.
Trend Filtration: The indicator uses a Simple Moving Average (SMA) on both the current chart and a selected higher timeframe to establish a directional bias. Signals that conflict with these moving average baselines are suppressed to prevent counter-trend trading.
Volatility and Volume Analysis: The script evaluates the Average True Range (ATR) as a percentage of the current closing price to ensure sufficient market movement is present. It also compares the current volume to a standard moving average of volume, filtering out setups that lack participation.
● 🎨 Visual Guide
The script draws extensive visual overlays to assist in real-time decision-making and trade management.
• Signal Labels
When a valid sweep occurs, an "LS" label is plotted. Green labels positioned below the candle indicate bullish setups, while red labels above indicate bearish setups.
• Trade Execution Lines
Upon a signal, the indicator projects trade management lines directly on the chart for the next 50 bars.
Entry Line: A dashed blue line marking the closing price of the signal bar.
Stop Loss (SL): A solid red line placed away from the entry, calculated based on the ATR multiplied by the user's risk factor.
Take Profit (TP): Three dashed teal lines representing Take Profit 1, 2, and 3. These are calculated using specific Risk-to-Reward multiples of the stop-loss distance.
• Risk and Reward Zones
Semi-transparent colored fills visually separate the trade zones. A red fill highlights the risk zone between the entry and the stop loss, while a teal fill highlights the reward zone extending from the entry to the final take-profit level.
• Advanced Dashboard
A multi-row informational table appears in the selected corner of the chart. This dashboard provides a real-time status check of the prevailing trend bias, the number of bars since the last signal, exact entry/SL/TP price levels, current ATR, and visual progress bars for volatility and signal cooldown periods.
● 📖 How to Use
Traders can utilize this script as a complete top-down methodology for analyzing market structure. First, observe the dashboard to confirm that the current market environment aligns with your desired filters (e.g., ensuring the higher timeframe trend is supportive and volume thresholds are met).
When a valid "LS" label appears on the chart, immediately note the projected Entry, Stop Loss, and Take Profit lines. The dashed blue line serves as your reference for a potential entry point. You can calculate your position sizing based on the fixed distance between this blue Entry line and the solid red Stop Loss line.
The three Take Profit levels allow for a tiered approach to trade management, enabling partial profit-taking as the price advances in your favor. Advanced users can configure the custom string inputs to send highly detailed webhook payloads directly to execution platforms, passing the exact dynamically calculated price levels directly to their broker.
● ⚙️ Inputs and Settings
The script is highly customizable through categorized input groups, allowing adaptation to any asset class or timeframe.
• SMC Settings
Sweep Lookback: Defines the number of historical bars used to calculate the structural high and low points.
• Smart Filters
Trend Filter: Enables an SMA condition to dictate the allowed signal direction.
Volatility Filter: Requires the ATR to be a minimum percentage of the asset's price before a signal can fire.
Volume Filter: Demands that the current bar's volume exceeds a defined multiple of the volume moving average.
HTF Timeframe: Selects the specific higher timeframe used for long-term trend alignment.
Signal Cooldown: Prevents consecutive signals within a specified number of bars to reduce chart noise during extended consolidations.
• Trade Tools
SL ATR Mult: Determines the distance of the Stop Loss based on the current ATR, adjusting risk based on market volatility.
TP1 / TP2 / TP3 RR: Sets the specific Risk-to-Reward multiples for the three profit targets.
• Alerts
Action Strings: Customizable fields to inject specific commands into the JSON alert payloads for entries, exits, and partial take-profits.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
From a market microstructure perspective, liquidity sweeps represent a temporary imbalance in supply and demand. In auction market theory, price frequently probes beyond established boundaries to test for the presence of resting orders. When price penetrates a historical extreme but fails to sustain value there—evidenced by the immediate reversal and closing within the prior range—it indicates an absorption of liquidity by counter-trend market participants. This exhaustion of directional momentum is a well-documented phenomenon in order flow analysis.
To normalize these price extensions, the indicator applies the Average True Range (ATR). Developed by J. Welles Wilder, the ATR provides a robust statistical measure of absolute price volatility, capturing gaps and limit moves that standard standard-deviation metrics might underrepresent. By tying the Stop Loss logic directly to the ATR, the indicator adapts to heteroskedasticity, which is the changing variance of asset returns over time. This ensures that risk parameters dynamically widen during highly volatile periods to prevent premature stop-outs, and contract during quiet phases to optimize capital efficiency.
Furthermore, the reliance on moving averages for trend and volume filtration applies fundamental time-series smoothing. This inherently mitigates the noise of high-frequency price fluctuations, ensuring that the localized microstructure event (the sweep) is aligned with the macro directional drift of the broader dataset.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

ApexSignalPro SMC [ForexCracked]🔵 OVERVIEW
ApexSignalPro SMC is a confluence-scored Smart Money Concepts indicator that fires a signal only when multiple institutional footprints align on the same bar. Every signal carries a live score from 0 to 5 showing how many structural conditions agree — market structure, order blocks, fair value gaps, premium/discount location, and higher-timeframe bias.
Instead of the "every crossover is a signal" approach, it uses a strict confluence gate, a range-regime filter, and forced signal alternation — far fewer signals, much higher conviction. A live dashboard shows the score, active zones, and the last trade plan at a glance.
🔵 WHY THESE COMPONENTS ARE COMBINED
A break of structure alone, an order-block touch alone, or a single fair value gap all fire often and fail often. They become far more reliable when they occur together and agree with the higher-timeframe trend. Rather than overlaying five separate tools and leaving you to judge them, this script quantifies their agreement into one 0–5 score and only trades when enough align. Three principles guide it:
• Direction comes from market structure (BOS / CHoCH), not from price crossing smoothed averages
• Entries require confluence, never a single condition
• Signals alternate (BUY → SELL → BUY), never stacking the same direction in one leg
🔵 THE FIVE SCORED FACTORS (1 point each)
1️⃣ Market structure (BOS / CHoCH) points in the signal direction
2️⃣ Price is inside an unmitigated order block
3️⃣ Price is inside an unmitigated fair value gap
4️⃣ Correct half of the range — discount for longs, premium for shorts
5️⃣ Higher-timeframe EMA bias agrees
🔵 HOW A SIGNAL FIRES A BUY or SELL prints only when ALL of these are true:
• The confluence score meets your minimum (default 3 of 5)
• A strong-bodied candle closes in that direction
• The ADX regime filter confirms trending, not ranging
• The signal is opposite the previous one (forced alternation) Each signal draws Entry, Stop (beyond the nearest order block + ATR buffer), and Take Profit (configurable R:R), with pip labels.
🔵 HOW IT READS THE MARKET
• Market structure — confirmed swing pivots; a close beyond the last pivot is a BOS, the first break against structure is a CHoCH that flips the state
• Order blocks — the last opposing candle before an impulsive displacement (body > 1.2× ATR); tracked until mitigated or aged out
• Fair value gaps — three-candle imbalances filtered by a minimum ATR size; removed when filled
• Premium / discount — the swing-range midpoint splits discount (below) from premium (above) • Regime — ADX must exceed your minimum, suppressing signals in flat ranges
🔵 HOW TO USE
• Favour score 4–5 signals; treat score 3 with extra confirmation
• Require the dashboard HTF bias to match the signal for trend-aligned entries
• Use retests of unmitigated OBs or FVGs in the trend direction as continuation entries
• Size each trade off the drawn stop distance at a fixed account risk
• Raise Min Confluences to 4 for fewer, stronger signals
🔵 RECOMMENDED SETTINGS
• Swing Length: 5
• Higher Timeframe: 240 (H4) on H1 charts, D on H4 charts
• HTF EMA: 50 · OB Max Age: 20 · FVG Min Size: 0.3× ATR
• ADX Min: 22 · Min Confluences: 3 · SL Buffer: 0.5× ATR · R:R: 2.0
🔵 BEST / WEAKEST CONDITIONS ✅ Trending majors, gold, and indices on H1–H4; London / New York overlap ⚠️ Low-volatility ranges, gapped markets, and sub-5-minute noise
⚠️ DISCLAIMER ApexSignalPro SMC structures signals from Smart Money Concepts. It does not predict future price movement. Results depend on market conditions, settings, and your own execution and risk management. Shared for educational and research purposes; not financial advice. Indicator

Smart Money Concept [martineye15]Smart Money Concepts Toolkit — an all-in-one Smart Money / ICT overlay that auto-detects and draws the core concepts on any symbol and timeframe, then ties them together with a multi-factor confluence filter and a built-in risk:reward trade planner.
WHAT IT DRAWS
- Market structure: swing pivots labelled HH / HL / LH / LL, with Break of Structure (BOS, continuation) and Change of Character (CHoCH, first counter-trend break) and a persistent trend state. An optional faster "internal" structure stream can run alongside the major one.
- Liquidity: Equal Highs / Lows (EQH / EQL) detected within an ATR-based tolerance, plus liquidity sweeps / stop hunts (a wick beyond a prior swing that closes back inside).
- Order blocks: the last opposite-colour candle before a structural break, extended until mitigated. Choose Touch or Close mitigation, wick or body range, swing or internal origin, and optional breaker blocks.
- Fair value gaps: 3-candle imbalances, extended until filled, with Touch or Close fill logic and an option to keep only unfilled gaps.
- Premium / discount: dynamic zones from the current dealing range with a 50% equilibrium line and an optional OTE band (0.62-0.79).
- Sessions / kill zones: optional Asia / London / New York shading with a configurable timezone and session times.
CONFLUENCE ENGINE (optional)
A discreet long/short marker that prints only when the factors YOU enable all agree - any combination of: price in discount/premium, a BOS/CHoCH in the trade direction, an unmitigated order block, an unfilled FVG, an opposing liquidity sweep, and higher-timeframe bias alignment via an HTF EMA. A recency window controls how fresh an event must be to still count. Signals evaluate on bar close and only on the first bar the conditions are met, so they do not spam or flip intrabar.
TRADE SETUP (Risk:Reward)
When enabled, each confluence signal draws a full plan: an entry (market at the signal close, or a limit at the order-block midpoint), a stop anchored to the order block / swing point / ATR that would invalidate the idea (plus an ATR buffer), and TP1 to TP4 placed at your chosen R multiples. Levels project forward and the lines are draggable, so you can fine-tune the plan by hand.
ALERTS
Ready-made alerts for BOS, CHoCH, new bullish/bearish order block, new bullish/bearish FVG, liquidity sweep, and confluence long/short.
HOW TO USE
Add it to a standard candlestick chart. Read the market with structure, liquidity and premium/discount; use order blocks and fair value gaps as areas of interest; then, if you want a filter, enable the confluence engine and turn on only the factors that fit your approach. Enable the trade setup to auto-draw a structure-anchored R:R plan on each signal, and set alerts on the events you care about. Every module toggles independently, so you can keep the chart as clean or as detailed as you like.
WHAT MAKES IT DIFFERENT
Instead of isolating a single SMC concept, it unifies structure, liquidity, order blocks, FVGs, premium/discount and session timing, and adds two things on top: a configurable confluence filter that only signals when multiple user-chosen factors align, and an integrated R:R planner that anchors the stop to the actual level that invalidates the trade and projects targets by R multiple.
REPAINTING & LIMITATIONS
All structural logic is based on confirmed pivots and closed candles; fair value gaps are committed only on a confirmed bar; the higher-timeframe bias uses the previous closed HTF bar. Pivots appear after their lookback (the normal pivot lag), which is not repainting. Live drawings such as order blocks and premium/discount zones update as the current, unclosed bar develops and as new pivots confirm; this is expected behaviour, not a change to confirmed history.
This is a visual, decision-support tool. It is not a strategy, it produces no orders or performance statistics, and it is not financial advice. Indicator

Cumulative Rejection Heatmap [MarkitTick]💡 This advanced visual analytics tool is designed to track, aggregate, and display price rejection zones over a rolling historical window. By focusing entirely on market wicks—the footprints of supply and demand absorption—this script constructs a dynamic heatmap that highlights where price has repeatedly struggled to close. Instead of simply looking at volume or closing prices, it isolates the exact microscopic levels where buyers and sellers have historically stepped in to reverse the momentum, providing a crystal-clear map of underlying market mechanics.
● ✨ Originality and Utility
Traditional technical analysis often relies on closing prices or volume-at-price concepts like the Volume Profile. While valuable, these standard tools can sometimes obscure the specific price extremes where true order absorption occurs. This tool takes an entirely original approach by creating a "Rejection Profile."
It systematically scans every single bar within a defined historical window, mathematically measures the length of the upper and lower wicks, and compares them against the total range of the bar. When a wick meets a stringent, user-defined threshold, it is classified as a valid rejection. Over time, these individual rejection events are accumulated into specific price bins, forming a dense, visual heatmap.
The utility here is unparalleled for traders who rely on price action and liquidity concepts. By rendering a visual concentration of wicks, the chart immediately reveals hidden support and resistance walls that might not be evident through standard line-drawing techniques. It removes subjectivity from the process, mathematically proving where the market is consistently refusing to allow price to travel.
● 🔬 Methodology and Concepts
The core engine of this script relies on a rolling matrix computation combined with strict volatility filtering. The methodology can be broken down into several distinct logical phases:
Volatility Filtering: Before any rejection is considered, the script measures the current bar's true range against a fraction of the Average True Range (ATR). If the bar's range is too small, it is deemed market noise or chop, and is entirely ignored. This prevents tight, low-volatility consolidation from falsely inflating the rejection heatmap.
Wick Ratio Calculation: For valid bars, the script calculates the exact length of the upper wick (High minus the maximum of Open/Close) and the lower wick (minimum of Open/Close minus Low). This value is divided by the total bar range. If this ratio exceeds the minimum wick ratio threshold, a rejection event is triggered.
Price Discretization (Binning): The script continuously tracks the highest high and lowest low of the entire lookback window. It divides this total vertical price space into a user-defined number of equal-sized bins.
Rolling Matrix Accumulation: Using an advanced matrix data structure, the script logs each rejection event into its corresponding price bin. As the lookback window rolls forward in time, the oldest data is systematically overwritten by the newest data. This ensures the heatmap is constantly adapting to current market conditions without retaining stale historical data that is no longer relevant.
● 🎨 Visual Guide
The script overlays multiple layers of visual intelligence directly onto the main price chart, designed to be quickly readable without cluttering the workspace.
• The Rejection Heatmap
Projected forward from current price action, a series of horizontal boxes forms the heatmap. The vertical height of each box represents a specific price bin, while the color intensity indicates the density of rejections within that bin. Colors transition dynamically using a custom gradient. Areas with little to no rejection remain dark and transparent, while areas of extreme rejection light up in high-contrast neon tones. Each box contains a subtle text label displaying the exact number of rejection hits and its percentage relative to the most rejected level.
• Support and Resistance (S/R) Lines
The script automatically identifies the top bins with the absolute highest concentration of historical rejections. It projects dashed horizontal lines across the chart at the exact center of these bins. These lines act as major, mathematically validated support and resistance levels, highlighted in a distinct, user-defined border color.
• Directional Triangles
When an immediate price rejection occurs on the live chart, a small geometric shape is printed to alert the user:
A downward-pointing triangle above the bar indicates a significant upper wick rejection, signaling sudden selling pressure or supply absorption.
An upward-pointing triangle below the bar indicates a significant lower wick rejection, signaling sudden buying pressure or demand absorption.
• The Analytics Dashboard
A sleek, customizable table is anchored to a corner of the chart, providing a heads-up display of the current market state. It displays the active asset, the rolling window size, the current ATR, and the exact price level of the highest rejection density. Furthermore, it features a text-based ASCII progress bar showing the peak density relative to historical maximums, and a Bull/Bear Bias metric that calculates the exact ratio of upward versus downward rejections over the entire window.
● 📖 How to Use
Traders can integrate this visual framework into a variety of market approaches, primarily focusing on mean reversion, breakout confirmation, and precise risk management.
Identifying Liquidity Pools: The brightest zones on the heatmap represent areas where limit orders have historically absorbed market orders. Traders can use these glowing zones as highly probable target areas for taking profits, as price tends to gravitate toward and stall at heavy liquidity.
Validating Breakouts: If price breaks cleanly through a bright red, high-density rejection zone and closes beyond it, it indicates a significant shift in market structure. A zone that previously acted as a ceiling (supply) may now act as a floor (demand) upon a retest.
Stop Loss Placement: The automated S/R lines and high-density bins provide logical areas for stop-loss placement. Placing a stop just outside a heavy rejection bin ensures that the trade is only invalidated if the market successfully chews through a known area of heavy opposition.
Real-Time Execution: The live directional triangles can be used as immediate trigger signals when they align with the broader heatmap context. For example, an upward-pointing triangle printing exactly as price dips into a historically dense lower rejection bin provides a high-probability entry for a long position.
● ⚙️ Inputs and Settings
The script is highly customizable, allowing the user to tailor the mathematical sensitivity and visual output to their specific asset and timeframe.
• Heatmap Configuration
Window: The rolling lookback period. A larger window encompasses more macro price action, while a shorter window reacts faster to recent volatility.
Bins: Determines the vertical resolution. More bins create thinner, more granular price slices; fewer bins create wider, more generalized zones.
Min Wick Ratio: The strictness of the rejection criteria. A higher value (e.g., 0.60) requires the wick to make up at least 60% of the entire bar, filtering out weak signals.
Min Range (xATR): Filters out low-volatility bars to prevent tight consolidation from skewing the data.
Heatmap Width %: Controls how far the visual heatmap projects into the future on the right side of the chart.
• Dashboard and Visuals
Dashboard Pos: Anchors the analytics table to any corner of the chart to prevent obstruction of price action.
Top S/R Levels: Determines how many distinct dashed support/resistance lines are drawn based on the highest-ranking bins.
Use Neon Gradient: Toggles the dynamic color shading of the heatmap boxes.
• Alerts Configuration
Action Long / Action Short: Custom JSON string inputs that allow the user to format specific payloads for automated trading platforms or webhooks when a live rejection triangle prints.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
At its academic core, this tool is heavily rooted in Auction Market Theory and the statistical discretization of continuous price variables. Auction Market Theory posits that financial markets exist solely to facilitate trade between buyers and sellers, constantly probing upward and downward to find areas of liquidity (fair value). When price extends too far and encounters a massive wall of limit orders, aggressive market orders are absorbed, and price is rapidly driven back in the opposite direction. On a candlestick chart, this aggressive absorption is permanently recorded as a wick.
By systematically isolating wicks, this script is effectively reconstructing the historical limit order book imbalance. It moves away from the continuous nature of time-series data and utilizes statistical binning—a process of dividing a continuous numerical range into discrete, non-overlapping intervals (bins). This is mathematically analogous to constructing a multidimensional probability density histogram.
The underlying matrix acts as a Markovian state tracker, where the probability of future price rejection at a specific interval is inferred from the historical density of prior absorptions within that exact same interval. The application of the Average True Range (ATR) as a high-pass volatility filter ensures that the statistical sample is robust, eliminating low-amplitude noise and focusing the mathematical weight strictly on statistically significant standard deviation expansions.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator
