XauLabs BOS / CHoCHENGLISH
What it does
A market either keeps doing what it was doing, or it stops. This indicator marks the exact bar where that question gets answered: a BOS when structure continues in the same direction, a CHoCH when it breaks against it. Two scales are read in parallel — a swing structure for the major turns, an internal structure for the detail inside them — so the chart shows both the shape of the move and its texture.
Where this one differs
Most tools flip the bias to the opposite direction the moment a CHoCH prints. This one does not. A bullish CHoCH inside a downtrend cancels the downtrend and returns the state to RANGE — nothing more. The upside then has to prove its own sequence with a first BOS in its direction before an uptrend is declared. That is a deliberate choice: a change of character is evidence that the previous story ended, not evidence that the opposite story has begun. It is less flattering to read and closer to what actually happens.
How it works (full method)
Confirmed pivots, two widths. Swing pivots use 20 bars on each side by default, internal pivots use 5. A pivot is only registered once the right-hand bars have closed, which is what makes the tool non-repainting — and what makes a level appear with a delay rather than being revised later.
Breaks are judged on the close. A wick beyond a pivot changes nothing. The candle has to close beyond the level for the structure to be considered broken. This is the same rule used across the whole XauLabs set, and it is what separates a break from a sweep.
One level, one break. Each pivot carries a flag. Once it has produced a break it is retired, so a single level cannot trigger a cascade of marks as price oscillates around it.
State machine. Three states per scale: bullish, bearish, range. A break with the trend increments the BOS counter. A break against it sets the state to range and resets the counter to zero. From range, the first break in either direction establishes that direction with one BOS.
Optional shape filter. On the internal scale, breaks can be filtered by candle shape — a bullish break is kept only when the upper wick is shorter than the lower one, and conversely. Off by default.
Dashboard. Two columns, swing and internal, each showing the current state and the number of BOS in the running sequence, plus the exact level whose close would trigger the next CHoCH. When both columns agree, the move is aligned; when the internal scale drops to range while the swing scale still reads bullish, that divergence is the first sign of tiring.
No repainting
Pivots are confirmed by the right-hand bars and never revised. Breaks are evaluated on confirmed bars only. A mark printed in history is exactly what would have been printed live, with the same delay.
Settings
Swing and internal pivot width, either structure on or off, shape filter, which marks to display (all, BOS only, CHoCH only), number of marks kept on screen, level lines, colours, theme, dashboard and text size. Eight alert conditions, four per scale.
Educational structural tool. It gives no buy or sell signals and makes no performance claim. Trading involves substantial risk of loss.
FRANÇAIS
Ce que fait l'indicateur
Un marché continue ce qu'il faisait, ou il s'arrête. Cet indicateur marque la bougie exacte où la question est tranchée : un BOS quand la structure continue dans le même sens, un CHoCH quand elle casse à contresens. Deux échelles sont lues en parallèle — une structure swing pour les tournants majeurs, une structure interne pour le détail à l'intérieur — de sorte que le graphique montre à la fois la forme du mouvement et sa texture.
Ce qui distingue celui-ci
La plupart des outils basculent le biais dans la direction opposée dès qu'un CHoCH apparaît. Pas celui-ci. Un CHoCH haussier dans une tendance baissière annule la tendance baissière et ramène l'état à RANGE — rien de plus. La hausse devra ensuite prouver sa propre séquence par un premier BOS dans son sens avant qu'une tendance haussière soit déclarée. C'est un choix délibéré : un changement de caractère prouve que l'histoire précédente est terminée, pas que l'histoire inverse a commencé. C'est moins flatteur à lire, et plus proche de ce qui se passe réellement.
Comment il fonctionne (méthode complète)
Pivots confirmés, deux largeurs. Les pivots swing utilisent 20 bougies de chaque côté par défaut, les pivots internes 5. Un pivot n'est enregistré qu'une fois les bougies de droite clôturées : c'est ce qui rend l'outil non-repainting, et ce qui fait qu'un niveau apparaît avec un délai plutôt que d'être révisé après coup.
Les cassures se jugent en clôture. Une mèche au-delà d'un pivot ne change rien. La bougie doit clôturer au-delà du niveau pour que la structure soit considérée comme cassée. C'est la règle appliquée dans toute la série XauLabs, et c'est elle qui sépare une cassure d'un balayage.
Un niveau, une cassure. Chaque pivot porte un drapeau. Une fois qu'il a produit une cassure, il est retiré : un même niveau ne peut donc pas déclencher une cascade de marquages pendant que le prix oscille autour.
Machine à états. Trois états par échelle : haussière, baissière, range. Une cassure dans le sens de la tendance incrémente le compteur de BOS. Une cassure à contresens ramène l'état à range et remet le compteur à zéro. Depuis le range, la première cassure dans un sens établit ce sens avec un BOS.
Filtre de forme, optionnel. Sur l'échelle interne, les cassures peuvent être filtrées selon la forme de la bougie : une cassure haussière n'est retenue que si la mèche haute est plus courte que la basse, et inversement. Désactivé par défaut.
Tableau de bord. Deux colonnes, swing et interne, chacune affichant l'état courant et le nombre de BOS de la séquence en cours, plus le niveau exact dont la clôture au-delà déclencherait le prochain CHoCH. Quand les deux colonnes concordent, le mouvement est aligné ; quand l'échelle interne repasse en range alors que le swing reste haussier, cette divergence est le premier signe d'essoufflement.
Aucun repaint
Les pivots sont confirmés par les bougies de droite et ne sont jamais révisés. Les cassures ne sont évaluées que sur bougies confirmées. Un marquage visible dans l'historique est exactement celui qui serait apparu en direct, avec le même délai.
Réglages
Largeur des pivots swing et internes, activation de chaque structure, filtre de forme, marquages affichés (tout, BOS seulement, CHoCH seulement), nombre de marquages conservés, lignes de niveau, couleurs, thème, tableau de bord et taille du texte. Huit conditions d'alerte, quatre par échelle.
Outil structurel à but éducatif. Il ne donne aucun signal d'achat ou de vente et ne formule aucune promesse de performance. Le trading comporte un risque de perte important. مؤشر

Multi-Timeframe Structure Overlay [ITA]🟠 OVERVIEW
Multi-Timeframe Structure Overlay draws the structure of two higher timeframes
onto the chart you are actually trading.
Most multi-timeframe tools put the answer in a corner table: one hour bullish,
four hour bearish. That tells you the state but not where it sits, and price
does not trade against a table. Here the swing highs and lows those timeframes
are working with become lines on your chart, so you can see how far price is
from the level that would flip them.
Breaks are marked at the price where they happened, not in a corner.
🟠 CONCEPTS
* Higher Timeframe Structure - The swing highs and lows a larger timeframe has
confirmed. They are the levels that decide its direction, and they usually sit
somewhere your own timeframe never draws.
* Break of Structure - A close beyond the last confirmed swing in the direction
the timeframe was already going. Continuation.
* Change of Character - A break in the opposite direction to the previous one.
The first sign that the higher timeframe has turned, and marked separately
because it means something different.
* Bias - Which way each timeframe is currently pointing, based on its last
confirmed break. Shown as a small tag at the right edge rather than a panel.
* Alignment - Both higher timeframes pointing the same way. It has its own
alert, because that is usually the condition people are waiting for.
🟠 FEATURES
🔹 Two higher timeframes at once, each with its own colour, drawn as levels on
your chart rather than listed in a table
🔹 BOS and CHoCH labelled at the price where the break occurred, tagged with
which timeframe produced it
🔹 Bias tags at the right edge, offset from each other so they never overlap
🔹 A warning on the chart if a selected timeframe is lower than the one you are
viewing, instead of quietly drawing values that look plausible and mean nothing
🔹 Alignment alert for when both higher timeframes agree
🔹 Levels are requested with lookahead off and read from confirmed bars only,
so nothing shifts after the fact
🔹 Independent swing sensitivity, applied on each higher timeframe rather than
on your chart
🟠 HOW TO USE
Pick two timeframes above the one you are on. Working a 15 minute chart, one
hour and four hour is the usual pair. On a daily chart, use weekly and monthly.
Read the lines first. A higher timeframe level sitting just above price is the
level that flips its bias, and it is often nowhere near anything your own
timeframe would have drawn.
A CHoCH tag matters more than a BOS tag. Continuation is expected, a change of
character is the first evidence the larger move is turning.
When both bias tags point the same way, the higher timeframes agree. That is
the alignment alert, and it is usually a better filter than either timeframe on
its own.
Swing Lookback controls sensitivity on the higher timeframes. Raise it for
fewer and more significant levels.
🟠 CONCLUSION
Knowing the higher timeframe is bullish is not the same as knowing what price
has to do for that to change. This puts the second thing on the chart, where it
can actually be used. مؤشر

Breaker Block Identifier [algotim]Breaker Block Identifier is a market structure indicator that converts failed order block retests into scored, non-repainting breaker zones. Rather than flagging every order block that gets invalidated, the script requires a complete sequence of confirmed price events — order block formation, an opposing structure break, a retracement into the invalidated zone, and a failed retest of that zone — before a breaker is created, and then ranks the result with a transparent quality score.
Problem Statement
Order blocks are frequently invalidated by a structure break and later retested, but a retest failing to continue in the original direction is not automatically a tradable breaker block. Many public scripts draw a zone as soon as an order block is broken, without verifying that the subsequent retest actually failed, how deep that retest penetrated, or how convincingly price rejected the zone. This produces a high volume of low-quality zones that require manual filtering by the trader.
This indicator addresses that gap by treating breaker formation as a multi-stage state machine rather than a single condition, and by scoring every candidate that completes the sequence so weak retests can be filtered out programmatically instead of visually.
Methodology
Swing highs and lows are identified with ta.pivothigh/ta.pivotlow using a user-defined bar count on each side, so every structural level referenced by the script is a confirmed pivot, never a forming one.
An order block source candle is located as the last opposite-colored candle at or immediately before each confirmed swing pivot, within a fixed lookback. The candle must exceed a minimum size expressed as a multiple of ATR, and can optionally be required to close on above-average volume. Zone boundaries can be set to the candle body (open/close) or the full wick range (high/low).
Every order block candidate then moves through three internal states. In the Pending state the script waits for an opposing structure break (a close beyond the relevant swing high or low, optionally required to clear the level by a minimum ATR multiple). Once that break occurs the candidate becomes Flipped, and the script waits for price to retrace back into the now-invalidated zone. On entry into the zone the candidate becomes Retesting, and the script tracks the deepest penetration price reaches inside the zone on a bar-by-bar basis.
A Retesting candidate resolves in one of two ways. If price closes back through the zone in its original direction by the confirmation displacement threshold, the retest is judged to have held and the candidate is discarded with no breaker created. If price instead closes through the opposite edge of the zone by the same displacement threshold, and the tracked penetration depth met a minimum percentage of the zone's height (the Retest Qualification Filter), the retest is judged to have failed and the order block is converted into a breaker in the opposite direction of its original bias.
Each confirmed breaker is then scored from 0 to 100 using six independent, user-weighted factors: the displacement strength of the invalidating structure break, the ATR-relative size of the original order block candle, how closely the retest penetration matched a user-defined ideal depth (scored on a curve, so both shallow touches and near-total breaches score lower than a clean mid-zone tag), the wick-rejection ratio of the confirming candle, how quickly the retest resolved relative to the retest window, and the ATR-normalized distance price traveled before returning to retest. The six sub-scores are combined using auto-normalized weights, so a breaker only appears on the chart, gets drawn, and triggers alerts if it clears the configured minimum quality threshold.
Confirmed breakers remain in an Active/Touched state until price closes through the far edge of the zone by the invalidation displacement threshold, at which point the zone is marked invalidated, visually dimmed, and removed after a configurable linger period. A hard maximum-age limit and a per-direction cap on active zone count prevent unbounded object growth.
Signal Workflow
Step 1 — a confirmed swing pivot forms and an order block candidate is registered from the qualifying source candle behind it.
Step 2 — the candidate waits in a Pending state until an opposing structure break (BOS/CHoCH) closes beyond the originating swing level.
Step 3 — once flipped, the candidate waits for price to re-enter the invalidated zone, entering the Retesting state and tracking maximum penetration depth.
Step 4 — the retest resolves: a displacement close back through the zone in the original direction discards the candidate, while a displacement close through the opposite edge with sufficient penetration confirms a breaker.
Step 5 — the confirmed breaker is scored across six weighted factors and only drawn, labeled, and alerted on if it meets the minimum quality threshold.
Step 6 — the active breaker zone extends forward until price closes through its far edge by the invalidation displacement threshold, at which point it dims and is scheduled for removal.
Why This Indicator Is Different
Most public order block or breaker scripts draw a zone the moment an order block is invalidated by a structure break, without separately validating whether the ensuing retest actually failed.
This script models breaker formation as an explicit four-state pipeline (source candle, pending, flipped, retesting) and only creates a zone after the retest resolves against its original direction with a minimum measured penetration depth.
The Breaker Quality Score converts six independently disclosed factors, including retest penetration depth scored on a curve around a configurable ideal value rather than a simple threshold, into a single adjustable ranking rather than a cosmetic label.
Quality-score weighting is fully exposed, allowing the ranking to be tuned toward structure strength, retest precision, wick rejection, confirmation speed, or impulse distance depending on the trader's approach.
Zone fill transparency scales with the quality score, so higher-ranked breakers render more opaque and lower-ranked ones fade into the background without adding separate visual elements.
An optional formation preview renders the retest phase of a candidate before it resolves, giving visibility into why a breaker did or did not form without permanently cluttering the chart.
Inputs
Structure Settings
Swing Pivot Length
Displacement Filter on Structure Break
Structure Break Displacement (x ATR)
ATR Length
Order Block Detection
Use Candle Body for Zone Boundaries
Min Order Block Size (x ATR)
Candidate Expiry (bars)
Volume Confirmation Filter
Volume MA Length
Volume Multiplier Threshold
Breaker Conversion Rules
Retest Window (bars)
Confirmation Displacement (x ATR)
Min Retest Penetration (%)
Quality Score
Filter Breakers by Quality Score
Minimum Quality Score
Ideal Retest Penetration Ratio
Advanced weight sliders for structure break strength, impulse size, retest precision, wick rejection, confirmation speed, and distance traveled
Visual Settings
Bullish/Bearish Breaker Colors
Min/Max Fill Transparency
Show Zone Midline
Show Quality Label
Label Size
Formation Preview toggle and color
Lifecycle & Cleanup
Max Active Breakers (per side)
Invalidation Displacement (x ATR)
Invalidated Linger (bars)
Max Breaker Age (bars)
Info Panel
Show Info Panel
Panel Position
Alerts
Alerts are available for:
Bullish Breaker Block formed
Bearish Breaker Block formed
Structure confirmation on breaker conversion
Price entering an active breaker zone
Breaker invalidated
Practical Usage
Use the info panel's structure bias reading as directional context before evaluating individual breaker zones.
Treat a fresh, high-quality breaker aligned with the prevailing structure bias as a potential continuation zone rather than a standalone entry signal.
Raise the minimum quality threshold on lower timeframes or noisy instruments to reduce the number of marginal zones drawn.
Use the retest penetration and displacement settings together to control how strict the failed-retest qualification is for your instrument and timeframe.
Combine the alert feed with a broader trade plan, since each alert marks a structural event, not an execution signal.
Limitations
Swing pivots require bars to form on both sides before they confirm, so structure breaks and order block placement are inherently delayed by the swing pivot length.
The order block source candle is located within a fixed lookback behind each pivot; if no qualifying candle exists in that window, no candidate is created for that pivot.
Quality scoring is a relative ranking based on disclosed, adjustable factors and does not predict the outcome of any individual breaker zone.
Volume-based filtering depends on the data provider's reported volume and may behave inconsistently on instruments with limited or unreliable volume data.
As with any structure-based tool, results will vary across instruments, timeframes, and market regimes.
Notes
This indicator is a market structure analysis tool intended to organize and rank breaker block formation through a disclosed, multi-stage validation process.
All structure breaks, state transitions, breaker confirmations, and invalidations are evaluated on confirmed bar closes only, so no element of the script repaints once drawn.
The output is intended to support structural analysis and is not a standalone buy or sell recommendation. مؤشر

Order Block Mitigation Strategy [algotim]Overview
Order Block Mitigation Strategy identifies bullish and bearish order blocks from confirmed structure breaks and tracks the exact degree to which each zone has been consumed by subsequent price action. Rather than treating every order block as equally tradable, the script continuously measures how deep into a zone price has traveled and only signals reactions occurring at zones that are still statistically fresh, while allowing the trader to see heavily used zones visibly fade on the chart.
Problem Statement
Most order block tools draw a zone once and leave it static until price closes through it entirely. This binary treatment ignores a critical distinction: a zone that has been wicked into by 10% of its range carries very different odds than one that has already been penetrated 70% of the way through. Traders using static zones frequently take reaction entries at institutional levels that have already been substantially absorbed, with no way to quantify how much of the zone's liquidity remains untouched.
Methodology
Structure is established using confirmed swing pivots. A Break of Structure is only confirmed on a bar close that clears the swing level by a minimum ATR-based buffer, filtering marginal breaks. Once a break is confirmed, the script scans backward from the broken pivot for the last opposite-colored candle within a fixed window, since this candle (not the pivot bar itself) is the true origin of the displacement leg. That candle's high-low range becomes the order block, provided its range also exceeds a minimum ATR multiple.
From the moment a zone is created, the script tracks the deepest price extreme that has traded into it on every confirmed bar. This extreme can only advance in the direction of consumption, never retreat, and from it a Mitigation Percentage is calculated as the proportion of the zone's height that has been traded through. This percentage is classified into one of four bands (Fresh, Light, Moderate, Heavy) using user-defined thresholds, and a fifth state (Invalidated) removes the zone once the percentage crosses a final threshold.
The Mitigation Percentage also drives the zone's fill transparency directly, on a continuous interpolation between a fresh-zone opacity and a near-invalid opacity. A zone at 10% mitigation renders visibly more solid than one at 55%, and the fade is smooth rather than stepped between discrete color states. This means zone health can be read from the chart at a glance without a label or panel.
Entry signals are only evaluated at zones whose live Mitigation Percentage has not yet exceeded a separate, user-defined entry cap. When price trades into a qualifying zone, the closed candle is checked against a selectable rejection pattern (a dominant wick, an engulfing candle, a strong directional close, or a combination of wick and close). Optional filters can additionally require the candle to close beyond the zone's midpoint, require the candle's range to exceed an ATR multiple, and require volume above its rolling average. Each signal is issued once per zone's lifecycle.
Every signal carries a composite confidence score built from five equally weighted, disclosed factors: the ATR-normalized strength of the structure break that created the zone, the ATR-normalized size of the origin candle, the zone's freshness at the moment of the signal (the inverse of its mitigation percentage), the expansion of ATR since the zone was formed, and the ATR-normalized distance price traveled from the origin candle to the structure break. The score is displayed next to the signal marker.
Signal Workflow
Step 1: A swing high or low is confirmed once the required number of bars exist on both sides.
Step 2: A close beyond that swing level by the minimum ATR buffer confirms a Break of Structure.
Step 3: The script scans backward from the broken pivot for the last opposite-colored candle and builds the order block from its full range, provided the candle passes the minimum impulse size filter.
Step 4: On every subsequent confirmed bar, the zone's deepest intrusion is ratcheted forward and the Mitigation Percentage is recalculated, driving both the quality band and the continuous fade.
Step 5: When price re-enters a zone below the entry mitigation cap and a rejection pattern confirms on the closed candle, along with any enabled midpoint, ATR-expansion, and volume filters, a scored entry signal is generated.
Why This Indicator Is Different
Zone consumption is tracked as a continuous, monotonically increasing percentage rather than a binary tested or mitigated flag, so the trader always knows how much of a zone's original range remains untouched.
Fill transparency is interpolated in real time directly from that percentage, making zone health visible without any label, table, or dashboard.
The order block's origin candle is located by scanning back from the structure break for the true opposite-colored displacement candle, rather than defaulting to the pivot candle itself.
Entry signals are gated by a separate, independently configurable mitigation cap, so a trader can permit signals only at zones that remain within a defined freshness range.
Every signal discloses a five-factor confidence score built from break displacement, origin candle size, live freshness, ATR expansion since formation, and travel distance, so the score can be audited rather than trusted blindly.
Inputs
Detection
Swing Pivot Length
ATR Length
Min BOS Size (x ATR)
Min Impulse Candle Size (x ATR)
Zones
Maximum Zones (per side)
Zone Extension
Fixed Extension Length
Show Zone Midline
Dynamic Opacity by Mitigation %
Mitigation
Fresh Threshold %
Partial Threshold %
Heavy Threshold %
Invalidate Threshold %
Entries
Enable Entry Signals
Max Mitigation % Allowed for Entry
Rejection Pattern
Require Close Beyond Zone Midpoint
Require ATR Expansion
Require Volume Confirmation
High Confidence Threshold %
Appearance
Bullish Zone Color
Bearish Zone Color
Fresh Zone Transparency
Near-Invalid Zone Transparency
Signal Marker Size
Alerts
Enable All Alerts
Alert: New Order Block
Alert: Mitigation Milestones
Alert: Entry Signals
Alerts
Alerts are available for:
New Bullish Order Block formed
New Bearish Order Block formed
Bullish Order Block Partial Mitigation
Bearish Order Block Partial Mitigation
Bullish Order Block Heavy Mitigation
Bearish Order Block Heavy Mitigation
Bullish Order Block Invalidated
Bearish Order Block Invalidated
Bullish Rejection Entry
Bearish Rejection Entry
Premium Entry (High Confidence)
Practical Usage
Lower the Max Mitigation % Allowed for Entry to restrict signals to only the freshest zones, or raise it to also capture reaction trades at moderately used levels.
Watch the continuous fade of a zone as a visual proxy for its remaining reliability without needing to check a percentage value directly.
Use the disclosed confidence score to compare two simultaneous signals rather than treating every marker as equally weighted.
Switch Zone Extension to Until New BOS on trending instruments to stop a zone from extending once the opposing side of structure has broken.
Combine the ATR expansion and volume filters on the Entries tab when trading instruments where displacement quality varies significantly by session.
Limitations
Swing pivot confirmation introduces a lag equal to the pivot length setting, meaning a structure break can only be evaluated after that many bars have closed beyond the pivot.
The origin candle scan is bounded by a fixed lookback window, so on unusually extended displacement legs the true origin candle may fall outside that window and no zone will be created.
The confidence score is a disclosed, equally weighted composite of five factors and is not a probability of trade success.
Order blocks and their mitigation state are a price-action framework, not a standalone trading system, and should be evaluated alongside broader market context.
Notes
All detection, structure break, mitigation state, and entry logic execute strictly on confirmed bars, so no drawing, classification, or alert changes retroactively once printed.
Zone counts per direction are capped, with the oldest zone removed first once the limit is reached, keeping drawing object usage bounded regardless of session length.
alert() calls are used for every event category so a single "Any alert() function call" condition in the TradingView alert dialog captures all messages from this script. مؤشر

Sattam | Smart Money ToolkitSattam Smart Money Toolkit
English
SATTAM Smart Money Toolkit is an open-source Smart Money Concepts toolkit designed to bring several market-structure and price-action components into one configurable TradingView indicator.
The goal of the toolkit is not to generate automatic buy or sell recommendations. Instead, it provides a structured visual framework for analyzing market structure, liquidity, order blocks, imbalances, and price location from multiple perspectives.
What the indicator includes
The toolkit combines the following components:
* Swing Market Structure
* Internal Market Structure
* Break of Structure (BoS)
* Change of Character (ChoCh)
* Enhanced Change of Character (ChoCh+)
* Internal and Swing Order Blocks
* Volumetric Order Block metrics
* Order Block mitigation
* Equal Highs (EQH)
* Equal Lows (EQL)
* Multi-timeframe Order Block Scanner
* Higher-timeframe Order Blocks
* Accumulation and Distribution ranges
* Premium, Equilibrium, and Discount zones
* Fair Value Gaps (FVG)
* Volume Imbalances (VI)
* Opening Gaps / One-bar gaps (OG)
* Inverted Fair Value Gaps (iFVG)
* Liquidity Sweeps
* Configurable alerts
The components can be enabled, disabled, filtered, and visually customized from the indicator settings.
Market Structure
The market-structure engine is divided into two layers:
1. Swing structure
2. Internal structure
Swing structure uses a larger adaptive pivot length, while internal structure uses a fixed shorter pivot length.
The Swing structure can operate in:
* Manual mode
* Dynamic mode
In Manual mode, the swing length is fixed at 50 bars.
In Dynamic mode, the swing length adapts to the current volatility regime using the relationship between ATR(14) and ATR(200), while remaining bounded between 20 and 100 bars.
A structure level is considered broken when the candle closes beyond the corresponding confirmed pivot level.
The indicator classifies structural breaks as:
* BoS: a break occurring in the current structural trend direction.
* ChoCh: a break against the current structural trend.
* ChoCh+: a counter-trend break associated with the preceding swing relationship.
Both swing and internal structure can independently display All, ChoCh, ChoCh+, BoS, or None.
Structure state changes are processed on confirmed bars, helping keep the structural state from changing intrabar.
Order Blocks
The Order Block engine identifies the most recent opposite-direction candle before a structural break and associates it with the impulse that produced the break.
Bullish Order Blocks are created from bullish structural breaks, while bearish Order Blocks are created from bearish structural breaks.
The toolkit supports two structural layers:
* Internal Order Blocks
* Swing Order Blocks
Order Blocks can be filtered by:
* None
* BoS
* ChoCh
* ChoCh+
Each Order Block can also be managed using a mitigation rule:
* Absolute: the zone is considered invalid when price closes beyond the opposite edge.
* Middle: the zone is considered invalid when price reaches the midpoint.
The indicator can keep a configurable number of recent Order Blocks and can manage overlapping zones using the selected overlap method.
Volumetric Order Block Metrics
The Order Block engine also calculates volume distribution across the impulse that produced the zone.
Volume is separated into bullish and bearish candle volume and displayed visually inside the Order Block.
The indicator can display:
* Total volume associated with the impulse
* Approximate bullish volume percentage
* Buy-side and sell-side volume proportions
* A midpoint line
* Bar coloring while price is inside an active Order Block
These values are descriptive volume metrics associated with the detected structure; they are not presented as institutional order-flow data or exchange-level bid/ask volume.
Equal Highs and Equal Lows
The toolkit detects Equal Highs and Equal Lows by comparing consecutive confirmed swing pivots.
Two swing highs or lows are considered equal when their price difference is within 0.1 ATR(14).
Detected levels are marked with:
* EQH for Equal High
* EQL for Equal Low
These levels can be used as visual references for potential liquidity areas.
Multi-Timeframe Order Block Scanner
The built-in scanner evaluates internal Order Block state across several predefined timeframes:
* 15 minutes
* 1 hour
* 4 hours
* 1 day
The scanner reports whether price is currently inside:
* A Buy Order Block
* A Sell Order Block
* Both
* No detected Order Block
Timeframes lower than the active chart timeframe are ignored by the scanner.
Higher-Timeframe Order Blocks
The toolkit can also project the latest unmitigated Order Blocks from a selected higher timeframe onto the current chart.
The selected timeframe is evaluated independently and its latest Buy and Sell Order Blocks are displayed on the lower-timeframe chart.
The higher-timeframe data is requested with lookahead disabled, and the feature only becomes active when the selected timeframe is actually higher than the chart timeframe.
Each projected zone is labeled with its source timeframe, such as:
* 4H Buy OB
* 4H Sell OB
Accumulation and Distribution
The optional Accumulation and Distribution module searches for compressed price ranges.
The detection window can be:
* Fast: 20 bars
* Slow: 40 bars
The range is compared with ATR(200) using a window-scaled compression threshold.
When price eventually breaks the detected range:
* An upside breakout classifies the range as Accumulation.
* A downside breakout classifies the range as Distribution.
This module is disabled by default and can be enabled independently.
Premium, Equilibrium and Discount
The High and Low module uses the current confirmed swing range to divide price into three visual areas:
* Premium
* Equilibrium
* Discount
Equilibrium is the midpoint between the active swing high and swing low.
The zones are intended as a price-location framework rather than standalone trading signals.
Fair Value Gaps and Imbalances
The toolkit supports three gap models:
FVG
A three-candle imbalance is detected when the current candle creates a gap relative to the candle two bars earlier, with an additional displacement condition from the middle candle.
VI
Volume Imbalance mode uses candle-body separation while allowing wick overlap.
OG
Opening Gap mode detects a direct gap between consecutive candles.
The FVG module can operate on:
* The current chart timeframe
* A selected timeframe
The number of displayed recent gaps and their extension length are configurable.
FVG Mitigation and iFVG
Detected gaps can be mitigated using:
* Close
* Wick
Close mitigation requires price to close through the relevant far side of the gap.
Wick mitigation uses a wick penetration of the relevant boundary.
The optional iFVG feature converts a gap into an inverted zone when price closes through it.
The inverted zone represents the directional role reversal of the original imbalance and remains visible until price closes back through its opposite boundary.
Liquidity Sweeps
The Sweep module identifies raids of internal pivot liquidity.
A bearish sweep occurs when price:
1. Trades above an active internal high.
2. Closes back below that high.
3. Has not already swept the same pivot.
4. Meets the configured cooldown requirement.
A bullish sweep follows the opposite logic:
1. Price trades below an active internal low.
2. Closes back above that low.
3. The same pivot has not already been swept.
4. The cooldown requirement is satisfied.
Sweeps are displayed with a horizontal level and an "x" marker.
The cooldown period is configurable.
Alerts
The toolkit provides alert conditions for major events, including:
* Swing Bullish BoS
* Swing Bearish BoS
* Swing Bullish ChoCh
* Swing Bearish ChoCh
* Swing Bullish ChoCh+
* Swing Bearish ChoCh+
* Internal Bullish BoS
* Internal Bearish BoS
* Internal Bullish ChoCh
* Internal Bearish ChoCh
* Internal Bullish ChoCh+
* Internal Bearish ChoCh+
* Buy Order Block Touched
* Sell Order Block Touched
* Bullish Gap Formed
* Bearish Gap Formed
* Bullish iFVG Formed
* Bearish iFVG Formed
* EQH Formed
* EQL Formed
* Bullish Sweep
* Bearish Sweep
These alerts are event-based and are intended to notify the user when the corresponding condition is detected.
Repainting and Data Handling
The structural state, Order Block mitigation, EQH/EQL detection, FVG mitigation, and sweep events are processed using confirmed bars where applicable.
Higher-timeframe requests use lookahead_off to avoid intentionally requesting future higher-timeframe data.
However, users should understand that pivot-based market-structure concepts inherently require bars to form before a pivot can be confirmed. A pivot is therefore identified only after the required confirmation window has elapsed.
The indicator is designed for analytical visualization and does not guarantee that every historical drawing represents a real-time signal that would have been known at the exact beginning of that historical bar.
Important Notes
SATTAM Smart Money Toolkit is an analytical tool, not an automated trading system.
It does not guarantee profitable trades, future price direction, or any specific win rate.
BoS, ChoCh, Order Blocks, FVGs, liquidity sweeps, Premium/Discount zones, and other Smart Money Concepts are interpretive market-analysis frameworks. Their usefulness depends on the market, timeframe, instrument, and the user's methodology.
Volume displayed inside Order Blocks represents aggregated candle volume classified by candle direction. It should not be interpreted as exchange-level bid/ask order-flow data.
The indicator is intended to be used as a decision-support and market-structure visualization tool. Users should combine its information with their own analysis and risk-management process.
Open Source
This script is published open-source so users can inspect and understand how the calculations are performed, and contribute improvements.
The source code is intentionally available for transparency and educational value.
Please review the source code and settings before relying on any component in live market analysis.
العربية
ما هو Sattam Smart Money Toolkit؟
SATTAM Smart Money Toolkit هو مؤشر مفتوح المصدر يجمع مجموعة من أدوات تحليل حركة السعر ومفاهيم Smart Money Concepts في مؤشر واحد قابل للتخصيص.
الهدف من المؤشر ليس إعطاء توصيات شراء وبيع آلية، وإنما توفير إطار بصري منظم يساعد المتداول على دراسة:
* هيكل السوق
* السيولة
* مناطق Order Blocks
* الاختلالات السعرية
* مناطق Premium وDiscount
* سلوك السعر على أكثر من إطار زمني
هيكل السوق
المؤشر يقسم Market Structure إلى مستويين:
* Swing Structure
* Internal Structure
الـ Swing Structure يستخدم نطاقًا أكبر لتحديد القمم والقيعان، بينما يستخدم الـ Internal Structure نطاقًا أصغر.
يوجد وضعان للـ Swing Structure:
* Manual
* Dynamic
في الوضع اليدوي يتم استخدام طول ثابت قدره 50 شمعة.
أما الوضع الديناميكي فيقوم بتعديل طول Swing بناءً على حالة التذبذب من خلال العلاقة بين ATR(14) وATR(200)، مع إبقاء الطول بين 20 و100 شمعة.
يتم اعتبار الكسر هيكليًا عندما يغلق السعر خلف مستوى Pivot مؤكد.
ويصنف المؤشر الكسر إلى:
* BoS: كسر في اتجاه الهيكل الحالي.
* ChoCh: كسر عكسي لاتجاه الهيكل الحالي.
* ChoCh+: كسر عكسي مرتبط بعلاقة القمم والقيعان السابقة.
ويمكن التحكم بشكل مستقل في عرض Swing وInternal Structure.
Order Blocks
يقوم المؤشر بتحديد آخر شمعة في الاتجاه المعاكس قبل حدوث الكسر الهيكلي وربطها بالحركة السعرية التي أدت إلى الكسر.
يدعم:
* Internal Order Blocks
* Swing Order Blocks
كما يمكن فلترة المناطق حسب:
* None
* BoS
* ChoCh
* ChoCh+
وبالنسبة لإلغاء أو Mitigation المنطقة يوجد خياران:
* Absolute: يتم إلغاء المنطقة عند إغلاق السعر خلف الحافة المقابلة.
* Middle: يتم اعتبار المنطقة متأثرة عند وصول السعر إلى منتصفها.
كما يمكن تحديد عدد المناطق الأخيرة التي تريد الاحتفاظ بها وإدارة المناطق المتداخلة حسب الإعداد المختار.
Volumetric Order Blocks
يحسب المؤشر توزيع حجم التداول المرتبط بالحركة التي نتج عنها الـ Order Block.
ويتم تقسيم الحجم إلى:
* حجم الشموع الصاعدة
* حجم الشموع الهابطة
ثم يتم تمثيل هذه النسب بصريًا داخل المنطقة.
ويمكن إظهار:
* إجمالي الحجم
* نسبة الحجم الصاعد
* نسبة الحجم الهابط
* خط المنتصف
* تلوين الشموع أثناء وجود السعر داخل المنطقة
مهم: هذه البيانات تمثل تجميعًا لحجم الشموع وتصنيفها حسب اتجاه الإغلاق، وليست بيانات Bid/Ask أو Order Flow حقيقية من دفتر أوامر البورصة.
EQH / EQL
يقوم المؤشر باكتشاف:
* EQH = Equal High
* EQL = Equal Low
ويتم اعتبار قمتين أو قاعين متساويين عندما يكون الفرق السعري بينهما ضمن 0.1 من ATR(14).
ويمكن استخدام هذه المستويات بصريًا لتحديد مناطق قد ترتبط بالسيولة.
Multi-Timeframe Order Block Scanner
يوجد داخل المؤشر Scanner لمناطق الـ Order Blocks على:
* 15 دقيقة
* ساعة
* 4 ساعات
* يوم
ويبين ما إذا كان السعر داخل:
* Buy OB
* Sell OB
* Buy + Sell
* لا توجد منطقة
ولا يعرض الـ Scanner الإطارات الزمنية الأقل من الإطار المستخدم على الشارت.
Higher-Timeframe Order Blocks
يمكن إسقاط آخر Order Blocks غير المتأثرة من إطار زمني أعلى على الشارت الحالي.
مثلًا يمكن عرض:
* 4H Buy OB
* 4H Sell OB
على شارت أقل زمنيًا.
ويتم استخدام lookahead_off في طلب بيانات الإطار الأعلى لتجنب طلب بيانات مستقبلية بشكل متعمد.
Accumulation / Distribution
هذه الخاصية اختيارية وتبحث عن مناطق يحدث فيها انكماش نسبي في نطاق السعر.
يوجد وضعان:
* Fast = 20 شمعة
* Slow = 40 شمعة
بعد اكتشاف نطاق مضغوط، إذا حدث كسر للأعلى يتم تصنيفه كـ Accumulation، وإذا حدث كسر للأسفل يتم تصنيفه كـ Distribution.
Premium / Equilibrium / Discount
يقسم المؤشر النطاق السعري الحالي بين Swing High وSwing Low إلى:
* Premium
* Equilibrium
* Discount
ويتم حساب Equilibrium باعتباره منتصف المسافة بين القمة والقاع.
هذه المناطق تستخدم لتحديد موقع السعر داخل النطاق وليست إشارة دخول مستقلة.
FVG / VI / OG
يدعم المؤشر ثلاثة أنواع من الاختلالات:
FVG
يبحث عن اختلال ثلاثي الشموع مع شرط إضافي يتعلق بحركة الشمعة الوسطى.
VI
يعتمد على انفصال أجسام الشموع مع السماح بوجود تداخل بين الـ Wicks.
OG
يبحث عن Gap مباشر بين شمعتين متتاليتين.
ويمكن تشغيل البحث على الإطار الحالي أو اختيار إطار زمني آخر.
iFVG
يمكن للمؤشر تحويل الـ FVG إلى Inverted FVG عندما يغلق السعر من خلال المنطقة.
أي أن المنطقة الأصلية يتم التعامل معها كمنطقة معكوسة في الاتجاه.
وتستمر منطقة iFVG حتى يغلق السعر من الجهة المقابلة.
Liquidity Sweeps
يقوم المؤشر برصد عمليات Sweep للقمم والقيعان الداخلية.
الـ Bearish Sweep يحدث عندما:
1. يخترق الـ Wick قمة داخلية.
2. يغلق السعر أسفل القمة.
3. لم يتم Sweep لنفس الـ Pivot سابقًا.
4. يتم احترام فترة الـ Cooldown المحددة.
والـ Bullish Sweep يعمل بالعكس.
ويظهر الـ Sweep بخط أفقي وعلامة x.
Alerts
المؤشر يحتوي على Alerts للأحداث الرئيسية مثل:
* Swing BoS
* Swing ChoCh
* Swing ChoCh+
* Internal BoS
* Internal ChoCh
* Internal ChoCh+
* دخول السعر إلى Buy/Sell OB
* تكوّن Bullish/Bearish FVG
* تكوّن iFVG
* EQH / EQL
* Bullish / Bearish Sweep
هل المؤشر يعيد الرسم؟
المؤشر يستخدم Pivot-based structure، ولذلك يجب أن تمر فترة التأكيد المطلوبة قبل معرفة أن Pivot معين أصبح مؤكدًا.
تغييرات حالة الهيكل، Mitigation الخاصة بالـ Order Blocks، اكتشاف EQH/EQL، معالجة FVG، وعمليات Sweep يتم التعامل معها باستخدام الشموع المؤكدة حيثما ينطبق ذلك.
كما أن طلبات بيانات الفريمات الأعلى تستخدم lookahead_off.
لذلك يجب التفريق بين تأخر تأكيد الـ Pivot وبين مفهوم repainting التقليدي. فالـ Pivot لا يمكن معرفته لحظة تكوّنه لأنه يحتاج شموعًا لاحقة لتأكيده.
تنبيه مهم
المؤشر أداة تحليلية وليس نظام تداول آليًا.
لا يضمن المؤشر اتجاه السعر المستقبلي أو الأرباح أو نسبة نجاح محددة.
مفاهيم مثل:
BoS، ChoCh، Order Blocks، FVG، Liquidity Sweeps، Premium وDiscount
هي أطر تحليلية وليست ضمانًا لحدوث حركة سعرية معينة.
كما أن Volume Metrics داخل الـ Order Blocks هي أحجام شموع مجمعة ومصنفة حسب اتجاه الشمعة، وليست قراءة مباشرة لـ Bid/Ask أو دفتر أوامر البورصة.
ينبغي استخدام المؤشر كأداة مساعدة في التحليل مع إدارة المخاطر ومنهجية المتداول الخاصة.
المصدر المفتوح
تم نشر المؤشر كمصدر مفتوح بهدف الشفافية وإتاحة الكود للمستخدمين والمطورين لفهم طريقة الحساب ومراجعة التنفيذ وتطويره.
يمكن للمستخدم مراجعة الكود والإعدادات لفهم كيفية عمل كل مكوّن قبل استخدامه في التحليل الفعلي.
مؤشر

[SkuldX] Market Structure BOS & CHoCHSkuldX Market Structure — BOS & CHoCH
by SkuldX Trading Systems
What is it?
SkuldX Market Structure automatically maps the structural flow of price action by detecting Break of Structure and Change of Character events in real time. Instead of manually identifying swing highs and lows and drawing trend lines, the indicator does it for you — classifying every significant price move as either a trend continuation or a reversal signal, and labeling the market's structural state at every step.
Core concepts
Market structure is the sequence of swing highs and swing lows that defines whether price is trending up, trending down, or transitioning between the two. Reading structure correctly is the foundation of ICT, Smart Money, and most institutional trading methodologies.
HH / HL / LH / LL — the four structural labels that appear at every confirmed swing point:
HH Higher High — price makes a new high above the previous swing high. Bullish continuation.
HL Higher Low — price makes a higher low before pushing up again. Confirms bullish structure.
LH Lower High — price fails to reach the previous high. First sign of bearish pressure.
LL Lower Low — price breaks below the previous swing low. Bearish continuation.
BOS — Break of Structure
A BOS confirms that the existing trend is continuing. It fires when price breaks through the most recent swing extreme in the direction of the current trend.
BOS ▲ — price closes above the last swing high in an already bullish market. Institutions are adding to longs. The trend is intact and likely to continue.
BOS ▼ — price closes below the last swing low in an already bearish market. Sellers remain in control. The trend is intact.
BOS signals are ideal for trend-following entries — entering after a confirmed pullback when the BOS confirms trend resumption.
CHoCH — Change of Character
A CHoCH signals a potential trend reversal. It fires when price breaks through the swing extreme in the opposite direction of the current trend — the first structural evidence that the dominant side is losing control.
CHoCH ▲ — price breaks above a swing high while the market was in a bearish structure. Buyers have stepped in with enough force to break the bearish sequence. A new bullish trend may be beginning.
CHoCH ▼ — price breaks below a swing low while the market was in a bullish structure. Sellers have overwhelmed the existing uptrend. A new bearish trend may be starting.
CHoCH is not a guarantee of reversal — it is the first structural signal that conditions are changing. It becomes high probability when combined with additional confluence such as a key S&R level, an SFP, or an OI signal.
Two detection modes
Close mode — signals fire as soon as price closes beyond the structural level. Faster, more responsive, better for intraday trading on 15m and lower. May produce slightly more signals.
Pivot mode — signals fire only when a confirmed pivot point (N bars on each side) breaks the previous pivot extreme. Slower but structurally cleaner. Better for higher timeframes where false breaks are filtered naturally by requiring full confirmation.
Both modes can be used simultaneously on different chart instances for a multi-perspective view.
What you see on the chart
HH / HL / LH / LL labels — appear at every confirmed pivot point showing whether each swing is making higher or lower extremes. Reading the sequence of these labels from left to right tells the full structural story of price action.
BOS / CHoCH labels — appear at the bar where the structural break occurs. Color-coded by direction and type — green for bullish BOS, red for bearish BOS, aqua for bullish CHoCH, orange for bearish CHoCH.
Dashed line — extends from the broken structural level to the right, marking the exact price that was breached. This level often acts as support or resistance on subsequent retests.
Zone box — shaded area between the broken level and the current close. Shows the range of the structural break — wider boxes indicate more decisive moves, tighter boxes indicate marginal breaks that deserve extra scrutiny.
Structure background — a very subtle background tint showing the current structural state across the chart. Green tint for bullish structure, red tint for bearish. Immediately visible even when zoomed out.
Settings reference
Pivot Lookback — how many bars on each side a swing point must be the extreme to qualify as a pivot. Default 5. Lower values find more frequent swings, higher values require more significant structure. On 15m charts, 5 bars covers approximately 1.25 hours.
Detection Mode — Close for faster signals, Pivot for confirmed structure only
Show BOS — toggle Break of Structure signals
Bullish / Bearish BOS Color — independent color control
Show CHoCH — toggle Change of Character signals
Bullish / Bearish CHoCH Color — independent color control
Show Zone Box — toggle the shaded zone between level and close
Show Labels — toggle BOS/CHoCH text labels
Show HH/HL/LH/LL — toggle structural pivot labels
Show Structure Background — toggle the subtle trend tint
Box Transparency — opacity of the zone fill
Line Width — thickness of the broken level line
Label Size — tiny, small, or normal
Zone Extend — how many bars right the zone and line extend
How to use it in practice
Reading the sequence — scan the HH/HL/LH/LL labels from left to right before looking at any signals. A clear sequence of HH → HL → HH → HL tells you the market is in a clean bullish structure. Any interruption of that sequence is a warning.
BOS as entry confirmation — after a pullback in a trending market, wait for a BOS in the direction of the trend. This confirms the pullback is over and the original direction is resuming. Enter at the close of the BOS candle with a stop below the previous HL for longs.
CHoCH as reversal alert — when a CHoCH appears, switch your bias. Do not immediately enter against the trend — wait for the new structure to develop. Ideally wait for the first BOS in the new direction after the CHoCH to confirm the reversal is gaining momentum.
Combining BOS and CHoCH — the most powerful setups occur when a CHoCH is followed by a BOS in the same new direction. CHoCH establishes the reversal intent. The subsequent BOS confirms it. Enter on the BOS, stop below the CHoCH swing low for longs.
Timeframe selection — on 15m and 1h the indicator works well for intraday structure. On 4h and daily it maps the larger swing structure that defines the week's directional bias. Running both simultaneously — 4h for bias, 15m for entry — is a common and effective approach.
Part of the SkuldX Suite
SkuldX Market Structure integrates naturally with the full SkuldX indicator suite:
A bullish CHoCH that coincides with a bullish SFP at a key S&R level from SkuldX SFP + Auto S&R is one of the strongest reversal confluences available — structure is changing and institutional players have swept liquidity at the same time
A BOS that fires while price is between the VAL and POC zone confirms trend resumption from a high-value area
A bearish CHoCH during the London+NY Overlap session with Bearish Trend OI Delta from SkuldX OI Delta signals institutional repositioning with full structural and flow confirmation
The Structure Background tint aligns with the London Bias logic in SkuldX session strategies — bullish structure during London session = continuation long bias, bearish structure = short bias
مؤشر

Confirmed Structure Transition Map [Pineify]Confirmed Structure Transition Map
Overview
This Pine Script v6 indicator separates confirmed swings, break-of-structure events, and direction candidates. A finite state appears as a stepped price corridor.
Problem Definition
A common baseline finds fractal highs and lows, then labels any crossing BOS or CHoCH. It hides the pivot bar, the later confirmation bar, and the still later break. One level may emit repeated labels, while one counter-break may be called a reversal. Label density replaces a distinction between swing formation, continuation, and transition. This script separates those events and never triggers an earlier break with future information.
Design Rationale
Confirmed pivots provide stable levels; a moving extreme has no fixed identity. Each high and low becomes a one-use rail. A break with the bias is BOS; the first qualified counter-break is only a potential CHoCH. Bias changes after a fresh rail breaks again in that direction. Crossing the frozen opposite rail or age limit cancels the candidate. This rejects immediate reversal on one counter-break. The tradeoff is lag for explicit evidence. ATR scaling filters tiny overruns but does not estimate probability.
Key Features
Optional confirmed HH, LH, HL, and LL labels.
One-use rails that suppress duplicate breaks.
BOS, potential CHoCH, shift, invalidation, and expiry states.
ATR displacement, state corridor, alerts, and dashboard.
How It Works
The script reads chart OHLC and a symmetric pivot window. A pivot is accepted after its right-side bars close. Its price and index are stored, compared with the prior same-type pivot, and armed as a rail. If price already exceeded the required displacement when it became knowable, that rail is consumed without a hindsight event.
Each confirmed bar compares the Close or Wick probe with both rails. Distance beyond a rail is divided by ATR and must meet Minimum Break Displacement. On a two-sided outside bar, the larger normalized wick defines one event. The first event sets bias; a same-direction event is BOS. A counter-event freezes break rail, invalidation rail, displacement, and start bar. Confirmation needs a fresh rail and second break in the candidate direction. Invalidation or expiry ends the candidate. The corridor shows bullish, bearish, pending, or neutral state; early bars stay neutral.
How Multiple Indicators Work Together
This is one dependent state model, not a mashup. Pivot confirmation supplies stable rails; otherwise levels move while tested. ATR displacement separates a tiny overrun from a range-scaled break. The ordered state machine consumes those qualified breaks; otherwise crossings remain a label stream. The corridor encodes the resulting state instead of adding an unrelated signal.
Trading Ideas and Insights
Read BOS as evidence that price cleared a rail with the established bias, not as an entry command. Violet marks a candidate; amber shows why it ended. A wide corridor requires a larger absolute move. Apply separate risk, liquidity, and execution rules: the map does not select stops, size positions, or forecast events.
Unique Aspects
The contribution is an ordered lifecycle. Rails arm only when knowable, each fires once, a counter-break stays provisional, and a second newly armed break is required before bias changes. Invalidation level and age limit freeze at candidate start, so later pivots cannot rewrite the test. One corridor carries bias and transition while labels, wash, bar colors, and table remain optional. This is more than a renamed fractal plot.
How to Use
Begin with Close and default pivots, then check swing density for the market and timeframe. Read rails first: BOS continues state, P-CH opens a candidate, and SHIFT completes the two-break transition. HH/HL locations are revealed after the right-bar delay, not known on their historical bars. Use BOS and shift alerts only within an existing process.
Customization
Pivot Left/Right Bars control granularity and delay: smaller values add noise; larger values add lag. Close requires settlement beyond a rail. Wick uses extremes and resolves outside bars by larger excursion. Minimum Break Displacement sets ATR clearance; Candidate Expiry limits age. Corridor, labels, wash, bar colors, and dashboard are independently configurable.
Assumptions and Limitations
Pivots need future bars for confirmation, so markers appear on pivot bars only after the right-side delay; breaks and shifts remain on confirmation bars. Probes move live, but state and alerts require bar close. ATR and pivot settings are market-sensitive. Gaps can jump rails, Wick mode reduces an outside bar to one event, and chop can repeat candidates. The model reads chart prices, not order flow, news, higher timeframes, or execution quality. A shift is an ordered event, not a guaranteed reversal or profitable trade.
Conclusion
The map turns delayed pivots and breaks into an auditable sequence: location, one-use break, provisional counter-break, then confirmation or invalidation. It provides structural context; interpretation and risk remain with the user.
مؤشر

Structure Weaver [JOAT]Weaves raw price into readable market structure — swing labels, structure breaks, and a premium/discount dealing range.
◆ WHAT IT IS
Structure Weaver reads price the way a discretionary trader maps it: it classifies each confirmed swing, marks where structure genuinely breaks, and frames the active range into zones of relative value. It is a pure context tool for understanding trend and location — it does not print buy/sell signals.
This is 100% original code, written from scratch. It does not copy any other market-structure script.
◆ HOW IT WORKS
1. Swing classification. Confirmed swing points (using your chosen strength) are labelled live as:
• HH higher high, HL higher low — bullish rhythm
• LH lower high, LL lower low — bearish rhythm
Reading these in sequence is the foundation of trend structure.
2. Structure breaks — BOS and CHoCH. When price breaks the last confirmed swing, the tool stitches a labelled thread and distinguishes two cases:
• BOS (Break of Structure) — a break in the direction of the existing trend: continuation
• CHoCH (Change of Character) — the first break against the trend: a potential shift in control
You choose whether breaks confirm on a close or a wick .
3. The dealing range. The span between the last confirmed swing low and high is shaded into:
• Premium — the upper zone (expensive relative to the range)
• Equilibrium — a central band around the 50% level
• Discount — the lower zone (cheap relative to the range)
This gives every pullback objective context — are you buying in discount or chasing in premium.
◆ WHAT YOU SEE
• Live HH / HL / LH / LL swing labels
• BOS (solid) and CHoCH (dashed) structure threads, oldest recycled to keep the chart clean
• A shaded Premium / Equilibrium / Discount dealing range with an equilibrium line
• A resizable dashboard showing the current structure bias, the last event and its age, a BOS/CHoCH tally, the active swing high/low with holding-or-taken status, and where price sits in the range with a position gauge
◆ HOW TO USE IT
• Read the swing sequence and structure color for trend bias; a CHoCH is your earliest warning that control may be changing hands.
• Favor entries from discount in an uptrend and from premium in a downtrend , using equilibrium as the pivot.
• A BOS in trend direction is continuation confirmation.
• Works on all symbols and timeframes. Increase swing strength to weave only major structure; lower it for finer detail.
◆ NOTES & LIMITATIONS
Because swings are only confirmed once the required bars have printed on both sides, labels and breaks appear after that confirmation — this is by design and avoids repainting on already-closed structure. It is a context tool, not financial advice, and does not predict direction on its own. Combine it with your own method and risk management.
— made with passion by officialjackofalltrade
مؤشر

SMC Analytics Pro Hey traders! 👋
Finding a clean, non-lagging Smart Money Concepts (SMC) indicator on TradingView can be frustrating. Most public scripts end up squishing your chart scale , lagging your browser, or cluttering your screen with hundreds of overlapping boxes. 😩
So I decided to code a complete, ultra-precise Smart Money Concepts engine in Pine Script v5—rebuilt from the ground up to keep your charts smooth, clean, and 100% accurate! 🚀✨
The Core Idea: Institutional trading isn't about guessing where price is going—it's about tracking where bank liquidity lives. This indicator maps out market structure, institutional order blocks, and imbalance gaps without crowding your price action.
🔥 Key Features That Make This Unique
Dual Structure Architecture: Automatically plots both Internal Structure (micro scalp breaks) and Swing Structure (macro trend breaks) so you never trade against the major market trend.
Structure-Triggered Order Blocks (OB): No more clutter! OBs are drawn only when a real Break of Structure (BOS) or Change of Character (CHoCH) occurs at the origin of the impulse move.
Real-Time Mitigation Engine: When price retraces and touches an Order Block or fills a Fair Value Gap (FVG), the zone automatically vanishes in Present Mode to keep your chart tidy.
Fixed Chart Scale Guarantee: Unlike other SMC scripts that distort your vertical price scale and make candles look flat, this indicator keeps your chart scaling perfectly proportioned on every single timeframe! 📈
Fair Value Gaps (FVG): Identifies genuine 3-candle imbalance gaps where big money stepped in with aggressive market orders.
Liquidity Pools (EQH / EQL): Highlights Equal Highs and Equal Lows where retail stop losses are sitting waiting to be swept.
Dynamic Equilibrium (50%) Level: Displays the exact 50% midpoint of the active swing range so you always know if you're buying in Discount or selling in Premium .
🛠️ How to Use This in Your Trading Setup
Identify the Macro Trend: Look for solid green/red BOS lines and check if swing points are making Higher Highs (HH) or Lower Lows (LL).
Wait for Price to Enter a Zone: Look for price to retrace back down into an unmitigated Bullish Order Block or fill a Bullish FVG below the Equilibrium (50%) line.
Look for Internal Confirmation: Drop down to a lower timeframe and wait for a dashed iBOS / CHoCH break in your direction before taking the trade! 🎯
⚡ Multi-Timeframe Compatibility
Whether you are scalping the 1-minute chart on CAPITALCOM:NAS100 , day trading Forex on the 15-minute, or swing trading Crypto on the Daily, the logic adapts dynamically to any market and timeframe! 🌍
Inputs can be customized in the settings panel—feel free to tweak the pivot lookbacks to match your personal trading style.
If you find this indicator helpful for your daily analysis, please hit the Boost button 🚀 and leave a comment below! Happy trading! 🙌 مؤشر

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 مؤشر

Market Structure Shift [JOAT]═══ MARKET STRUCTURE SHIFT ═══
A complete Smart Money Concepts structure engine that reads the market the way institutional flow moves it — mapping every swing and internal shift, tagging each break as BOS (continuation) or CHoCH (reversal), then layering liquidity, premium/discount context, and a structure-anchored risk plan on top. It turns raw price action into a clean, labelled map of who is in control and where the shift happens.
▎ WHAT IT DOES
MSS tracks confirmed pivots and runs them through a two-layer structure state machine. When price closes (or wicks) beyond a protective swing, it draws the break line, labels it BOS or CHoCH, and updates the live trend state. Around that skeleton it adds equal-high/low liquidity marks, a premium/discount/equilibrium range map, an optional structure-anchored SL and Reward:Risk target zone, session VWAP with deviation bands, and a live dashboard summarising the whole picture.
▎ HOW IT WORKS
• Confirmed pivots — swing highs/lows are detected with a symmetric pivot length (bars each side), so a pivot only prints once fully confirmed. A separate, shorter internal pivot length tracks a faster inner structure layer.
• BOS vs CHoCH logic — each layer holds a trend state (bull / bear / range). A bullish break of the last swing high while the state is already bullish is a BOS (continuation); a bullish break while the state was bearish is a CHoCH (change of character / first reversal). The mirror logic applies to bearish breaks.
• Break confirmation — you choose whether a candle must close beyond the level (cleaner) or whether any wick penetration counts.
• Sequence read — every new pivot is classified HH / LH / HL / LL (or EQ) so you can see the higher-high / lower-low rhythm at a glance.
• Liquidity (EQH/EQL) — two consecutive pivots landing within an ATR-scaled tolerance are marked as Equal Highs or Equal Lows — resting liquidity pools where stops cluster.
• Premium / Discount — the active swing range is split into a Premium (upper) zone, a neutral Equilibrium band around the midpoint, and a Discount (lower) zone, so you always know which half of the range price is trading in.
• Structure-anchored risk — on a fresh signal the stop is placed just beyond the swing that would invalidate the shift (plus an ATR buffer), or by a fixed ATR distance. Risk is floored and capped by ATR, and the target is projected at your Reward:Risk multiple.
• VWAP magnet — session-anchored VWAP with inner and outer standard-deviation bands acts as the fair-value reference the structure tends to rotate around.
• ATR normalisation — label spacing, liquidity tolerance and stop distances all scale with ATR, so the tool behaves consistently across assets and timeframes.
▎ HOW TO USE IT
• Read the trend state first: a CHoCH warns the prevailing structure has broken; a following BOS confirms the new leg. Trade with the higher-conviction swing layer and use internal breaks for earlier, finer entries.
• BUY / SELL labels fire on the events you enable (CHoCH, BOS, or both) from your chosen layer — treat them as a structure trigger, not a blind entry.
• Favour longs from the Discount zone and shorts from the Premium zone; the Equilibrium band is neutral / no-man's-land.
• EQH/EQL marks show where liquidity rests — price often sweeps these before a genuine shift, so use them as targets and as traps to avoid.
• When a signal prints, the RISK ZONE (entry→stop, red) and TARGET ZONE (entry→TP, green) boxes project the plan; the SL and TP lines carry exact price and R labels. The zones extend live, then freeze once TP, SL, or the time-out is reached.
• Use VWAP and its bands as confluence — a shift back through VWAP into the opposite σ band is a common rotation target.
▎ KEY SETTINGS
• Structure Engine — swing pivot length, optional internal layer + its length, close/wick break confirmation, ATR length.
• Signals — signal source (Swing / Internal / both) and whether labels fire on CHoCH, BOS, or both.
• Liquidity & Zones — toggle EQH/EQL, equal-level tolerance, premium/discount zones, equilibrium band width, and the floating price-zone tag.
• Risk Model — stop basis (Structure+Buffer or ATR Multiple), buffer/ATR distance, Reward:Risk multiple, min/max risk floors and caps, projection length, max drawn setups.
• VWAP — show VWAP, inner/outer σ multiples, deviation lookback.
• Visuals — swing/internal break display, pivot markers, zone candle colouring, draw limits, and the blue/violet colour scheme.
▎ DASHBOARD
A compact blue/violet panel reports live: overall Trend , the Last Event (Bull/Bear BOS or CHoCH), the current Swing Sequence (e.g. HH · HL), the Internal structure state, the active Price Zone , running BOS and CHoCH counts, Liquidity (EQH/EQL) count, the current Signal , and the symbol/timeframe. Position and text size are adjustable.
▎ ALERTS
Six alertconditions are provided: Bullish BOS, Bearish BOS, Bullish CHoCH, Bearish CHoCH, BUY Signal, and SELL Signal — each with a ready message carrying ticker and interval.
▎ NOTES
• Works on all timeframes and all assets — everything scales with ATR.
• Pivots are confirmed (they need bars to close each side), so structure marks are non-repainting once printed; the price-zone label and dashboard update live on the last bar as expected.
• Every visual layer has a toggle — turn off what you don't need for a clean chart.
• Signals never fire both directions on the same bar; a conflicting wide-range bar is dropped.
For research and education only. This is not financial advice. No indicator can predict the future, and past behaviour does not guarantee future results. Any labels, zones, or counts describe historical price action only. Always do your own analysis and manage your own risk.
Made with passion by JackOfAllTrades ⚡ مؤشر

Smart Structure Mapper [StrixEDGE]Overview
AetherZone is a market structure analysis toolkit that maps the internal architecture of price action in real time. It identifies swing points, tracks structural shifts (BOS & CHoCH), detects order blocks (supply and demand zones), and highlights fair value gaps — consolidating the core framework of institutional price analysis into a single, self-managing overlay.
What This Indicator Does
AetherZone operates through five interconnected analytical layers:
Swing Detection Engine
Identifies confirmed pivot highs and pivot lows using a configurable lookback window. Each swing point is labeled directly on the chart as "Swing High" or "Swing Low" in clean, neutral text. Pivots are confirmed after the required bars have closed on both sides, ensuring the indicator does not repaint or revise historical swing points. Each swing is classified relative to its predecessor as a Higher High (HH), Lower High (LH), Higher Low (HL), or Lower Low (LL).
Market Structure Tracker
Continuously evaluates the relationship between consecutive swing highs and swing lows to determine the prevailing market structure:
- Bullish Structure — Higher Highs + Higher Lows (HH/HL)
- Bearish Structure — Lower Highs + Lower Lows (LH/LL)
- Ranging — Mixed signals or insufficient structural data
BOS & CHoCH Detection
AetherZone uses a flag-based detection system to identify structural breaks. When a new swing point is confirmed, its level becomes active. The first bar where price closes beyond that level triggers the event:
- BOS ↑ / BOS ↓ (Break of Structure) — Price breaks a swing level in the direction of the prevailing trend, confirming continuation. Labeled with directional arrows on the chart.
- CHoCH ↑ / CHoCH ↓ (Change of Character) — Price breaks a swing level against the prevailing trend, signaling a potential reversal. Displayed with a more prominent label and color to draw attention to the structural shift.
A dashed level line is drawn at the broken swing point for visual reference.
Order Block Detection
AetherZone identifies potential institutional interest zones through two configurable modes:
"All Swings" mode (default): An Order Block is created at every confirmed swing point, providing comprehensive zone coverage. On each confirmed pivot low, the last bearish candle near that swing becomes a Demand zone. On each confirmed pivot high, the last bullish candle near that swing becomes a Supply zone.
Bullish OB
"BOS/CHoCH Only" mode: Order Blocks are created only when a structural break occurs, providing fewer but potentially higher-conviction zones.
Fair Value Gap (FVG) Detection
- BULL FVG — Current candle's low is above the candle-two-bars-ago's high (gap up)
- BEAR FVG — Current candle's high is below the candle-two-bars-ago's low (gap down)
FVGs are filtered by a minimum size threshold (percentage of ATR) to eliminate insignificant gaps, and are automatically removed when filled by subsequent price action or when they exceed their maximum age.
Inputs & Customization
Structure
- Show BOS / Show CHoCH — Independent visibility toggles for each structural event type.
Order Blocks
- OB Source — "All Swings" (OB at every pivot, more zones) or "BOS/CHoCH Only" (fewer, higher-conviction zones). Default: All Swings.
- Max OB Age — Bars before an OB is removed due to aging. Default: 120.
- Mitigation Grace — Bars after creation during which an OB cannot be mitigated. Default: 10.
- Max Active OBs — Limits simultaneously displayed OBs per side. Default: 6.
Fair Value Gaps
- Max FVG Age — Bars before an unfilled FVG is removed. Default: 50.
- Min FVG Size (% of ATR) — Minimum gap size to qualify. Default: 10%.
- Max Active FVGs — Limits simultaneously displayed FVGs per side. Default: 5. مؤشر

TREND RIBBONtrend filter ribbon
trend filter ribbon is a market structure and trend filtering tool designed to help traders read the active direction of price with a clean ema ribbon, external structure logic, internal entry markers, htf bias filtering, and a compact live dashboard.
the tool is built to answer one simple question:
is the market bullish, bearish, or neutral?
it does not try to predict every candle. it filters the chart so the trader can avoid low-quality counter-trend decisions and focus on cleaner directional setups.
what the indicator does
the indicator combines several elements:
ema ribbon:
a multi-layer ema ribbon shows the current trend body. when the ribbon expands, the trend is stronger. when it compresses, the market is weaker or flatter.
external structure:
major swing highs and swing lows define the main market structure. when price breaks a major level, the script detects bos or choch depending on the current structure state.
internal structure:
smaller swing breaks are used as early entry markers, but only when they agree with the active master trend.
htf veto:
a higher timeframe ema filter can block counter-trend conditions. when the lower timeframe disagrees with the selected htf direction, the master trend can be held as neutral.
live structure levels:
the most important active high and low levels are drawn on the chart so the trader can see where the next structural decision may happen.
dashboard:
a compact institutional-style panel displays external trend, htf bias, master state, ribbon spread, active levels, and early long or short validity.
how to read the ribbon
bullish ribbon:
when the ribbon is bullish, the tool is showing that the active structure and trend conditions favor long setups.
bearish ribbon:
when the ribbon is bearish, the tool is showing that the active structure and trend conditions favor short setups.
neutral ribbon:
when the ribbon is neutral, the market is not clean enough or the htf filter is blocking the active direction. beginners should usually avoid trading during neutral conditions.
ribbon spread:
the ribbon spread measures the distance between the fastest and slowest ribbon ema, normalized by atr.
flat:
the ribbon is compressed. the market may be ranging or weak.
building:
the ribbon is expanding. trend strength is improving.
strong:
the ribbon is clearly expanded. the current direction has stronger momentum.
bos and choch
bos means break of structure.
a bullish bos appears when price continues higher by breaking a valid structural high during a bullish structure.
a bearish bos appears when price continues lower by breaking a valid structural low during a bearish structure.
choch means change of character.
a bullish choch appears when price breaks structure upward after a bearish phase.
a bearish choch appears when price breaks structure downward after a bullish phase.
for beginners:
bos usually means continuation.
choch usually means possible reversal.
how to use the indicator
step 1: check the master trend
start with the dashboard.
if master is bullish, focus only on long ideas.
if master is bearish, focus only on short ideas.
if master is neutral, wait.
step 2: check the htf bias
the htf line shows whether the selected higher timeframe is bullish or bearish.
when the htf agrees with the master trend, the condition is cleaner.
when the htf disagrees, the tool can hold the master trend in neutral mode.
step 3: check the ribbon spread
flat ribbon:
avoid aggressive entries.
building ribbon:
look for confirmation.
strong ribbon:
trend conditions are more active.
step 4: wait for structure
a bos can confirm continuation.
a choch can show that the previous direction may be changing.
beginners should not enter only because a label appears. the label should be combined with context, trend direction, support and resistance, and risk management.
step 5: use internal entry markers
internal entry markers are early signals that appear only in the direction of the active filtered trend.
a long marker is only valid when the master trend is bullish.
a short marker is only valid when the master trend is bearish.
beginner example
example long setup:
1. master trend is bullish
2. htf bias is bullish
3. ribbon spread is building or strong
4. price breaks structure upward
5. a long entry marker appears
6. trader looks for a logical stop below the recent swing low
7. trader targets the next resistance, previous high, or a fixed risk/reward level
example short setup:
1. master trend is bearish
2. htf bias is bearish
3. ribbon spread is building or strong
4. price breaks structure downward
5. a short entry marker appears
6. trader looks for a logical stop above the recent swing high
7. trader targets the next support, previous low, or a fixed risk/reward level
main inputs
external swing strength:
controls the strength of the major swing structure. higher values create fewer but stronger structure signals. lower values create more responsive signals.
internal swing strength:
controls the smaller internal structure used for early entry markers. lower values are faster. higher values are cleaner but slower.
break confirmation:
choose whether structure breaks are confirmed by close or wick.
close:
more conservative.
wick:
more reactive.
bos pivot strength:
controls the pivot sensitivity used for bos continuation levels.
choch pivot strength:
controls the pivot sensitivity used for choch reversal levels.
htf timeframe:
selects the higher timeframe used for directional filtering.
htf ema length:
controls the ema used for the higher timeframe bias.
base ema length:
sets the first ema in the ribbon.
ema step:
controls the spacing between each ema in the ribbon.
ribbon lines:
turns the ribbon lines on or off.
ribbon fill:
turns the fill between ribbon layers on or off.
core glow:
adds a stronger visual emphasis to the main ribbon line.
external structure labels:
shows or hides bos and choch labels.
internal entry markers:
shows or hides early long and short markers.
live structure levels:
shows or hides the active major structure levels.
background tint:
adds a light background color based on the current master trend.
dashboard:
shows or hides the live panel.
dashboard position:
lets the trader place the panel in any chart position.
alerts
the script includes alerts for:
bullish choch
bearish choch
bullish bos
bearish bos
long entry
short entry
for best results, create alerts after the indicator is added to the chart and select the alert condition that matches your trading plan.
beginner tips
do not trade every signal.
use the indicator as a filter, not as a complete trading system.
avoid trading when the dashboard shows neutral.
avoid trading when the ribbon spread is flat.
look for agreement between master trend and htf bias.
always define stop loss, target, and invalidation before entering.
combine the tool with support and resistance, liquidity levels, volume, session context, or higher timeframe analysis.
important notes
this indicator is designed for market analysis and trend filtering.
it does not guarantee profitable trades.
signals can fail during news, low liquidity, sideways markets, or high volatility conditions.
risk management remains the responsibility of the trader.
the best use of this tool is to filter direction, read structure, and avoid trading against the dominant trend.
مؤشر

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. مؤشر

Market Structure + CHoCH/MSS/BOS | Xcelerate TradeMarket Structure + CHoCH / MSS / BOS | Xcelerate Trade
A precise market-structure mapper from the Xcelerate Trade team. It auto-detects swing highs / lows, classifies every break of structure as CHoCH (Change of Character), MSS (Market Structure Shift) or BOS (Break of Structure), and labels each pivot as HH / HL / LH / LL. Designed for SMC and price-action traders who want a clean, repaint-aware structural read of the chart.
What you get on the chart
Swing labels: HH (Higher High), HL (Higher Low), LH (Lower High), LL (Lower Low) — auto-placed on every detected pivot.
Break lines: every confirmed break is drawn as a horizontal segment from the swing bar to the breaking bar.
Break tags: each break line gets a label — CHoCH, MSS or BOS — so you can read structure at a glance.
Info table (top-right): current settings (Auto / Manual, TF, L/R, detection method, MSS definition, break validation) and an optional debug panel with trend state, flags, pre-CHoCH levels, last-break details.
Pattern alerts: ready-to-use alertcondition for HH-HL-HH and LL-LH-LL sequences.
Pivot detection — two modes
Williams Fractals (default): classic ta.pivothigh / ta.pivotlow with separate left and right lengths. Configurable in Manual Settings (defaults L = 6, R = 4) or selected automatically per timeframe via Auto Timeframe Settings:
Timeframe L / R
1m
4 / 4
5m
4 / 3
15m
5 / 4
30m+, daily, weekly, monthly
6 / 4
Simple Fractals: SMC-style, symmetric — current bar is a pivot if it's the highest / lowest within simpleFractalPeriod bars on each side. Faster but more frequent than Williams.
You can also force Wait for bar close (default ON) to confirm pivots only on closed bars.
Break validation — 4 modes
Choose how a level is considered "broken":
Close — close beyond the swing level (cleanest, default).
High/Low (wick) — wick beyond the level (most aggressive).
Close beyond buffer (ticks) — close beyond level ± N × mintick.
Close beyond buffer (%) — close beyond level ± X%.
Buffer fields appear conditionally so you can tune the strictness of structure breaks per instrument (forex, indices, crypto, etc.).
Structure classification — CHoCH / MSS / BOS
Trend state is tracked internally (Bullish, Bearish, Neutral). Every confirmed break is then classified:
CHoCH — first break that reverses the trend (bullish CHoCH on a close above the last swing high while bearish; bearish CHoCH on a close below the last swing low while bullish), or the very first break when the trend is still neutral. CHoCH flips the trend and starts a fresh leg.
MSS — first qualifying break in the direction of the new trend after CHoCH, per the MSS definition setting:
First break after CHoCH — any first break in trend direction = MSS, then BOS.
First break >= pre-CHoCH level — MSS only when the broken swing is at or beyond the swing level that existed before the CHoCH. Stricter — protects against premature MSS calls.
HL + >= pre-CHoCH (legacy) — same as above, plus a confirming HL (bull) / LH (bear) is required after CHoCH before MSS can fire.
BOS — every subsequent break in the trend direction after MSS — until the opposite CHoCH occurs and the cycle restarts.
This rule set keeps only one MSS per trend leg, with everything before it being CHoCH and everything after being BOS — exactly how SMC traders read it.
Pre-CHoCH levels (transparent reasoning)
When CHoCH fires, the script captures the swing-high / swing-low that existed before the trend flip (pre_choch_swing_high / pre_choch_swing_low). These are used by the stricter MSS modes and shown in the debug rows of the info table, so you can verify exactly why a break was classified as MSS or BOS.
Last broken swing tracking
For every confirmed break the indicator stores:
lastBreakSwingBarIndex — the bar where the broken swing originally formed (its ID).
lastBreakSwingPrice — the level that was broken.
lastBreakClassification — CHoCH / MSS / BOS.
lastBreakDirection — above swing high / below swing low.
lastBreakDetectBarIndex — the bar where the break passed your validation filter.
These are visible in the debug rows when Show debug rows (table) is on — useful for forensic / journal-style review.
Drawing budget (FIFO)
The indicator caps the number of CHoCH / MSS / BOS line + label pairs at Max CHoCH/MSS/BOS lines + labels (default 400, max ~80% of TradingView's 500 limit). Older drawings are removed first (FIFO), so you never hit the line cap on long histories.
Alerts
Two ready-to-use alert conditions:
HH-HL-HH Alert — fires when an HH-HL-HH pattern completes.
LL-LH-LL Alert — fires when an LL-LH-LL pattern completes.
Use TradingView's alert dialog → choose the alert condition by name. Messages include {{ticker}} and {{interval}} placeholders.
Suggested settings (from the Xcelerate Trade team)
Default for most traders: Auto settings ON, Williams Fractals, Wait for bar close ON, Break validation = Close, MSS definition = First break after CHoCH.
Strict structural read (low noise): Break validation = Close beyond buffer (%) with 0.05–0.10%, MSS definition = First break >= pre-CHoCH level.
Aggressive / fast feedback: Simple Fractals with period 2, Break validation = High/Low (wick), Wait for bar close = OFF.
Forensic review: turn ON Show debug rows (table) to see trend state, CHoCH / MSS flags, pre-CHoCH levels and the last-break summary.
Notes & disclaimers
Williams Fractals confirm with a delay equal to the right-length (R bars). This is intentional — pivots are not repainted after confirmation.
Simple Fractals confirm with a delay equal to simpleFractalPeriod bars.
This is an analytical tool — no automated buy / sell labels. Pair with your own execution rules.
Pine Script v6.
Built and maintained by the Xcelerate Trade team. A complete CHoCH / MSS / BOS market-structure read with HH / HL / LH / LL labels, four break-validation modes, three MSS definition modes, an info / debug table and ready alert conditions. مؤشر

Adaptive Market Suite [Jayadev Rana]Overview
Adaptive Market Suite is a four-module analysis toolkit that draws on the price chart. Each module is independent: turn any of them on or off, and each has its own settings group. It shows context, not buy or sell arrows. The four modules are an adaptive trend, volatility bands, market structure with order blocks and fair-value gaps, and an order-flow oscillator. You read the confluence and make your own decisions.
Module 1 - Adaptive Trend and Regime
A moving average whose smoothing adapts to Kaufman's efficiency ratio: the net distance price travelled divided by the total path it took to get there. In clean trends the ratio is high and the average speeds up to hug price; in chop it is low and the average slows and flattens. The line is coloured by its slope, and the info panel reports whether the market is trending or ranging from the same ratio.
Module 2 - Expected-Move Bands
Volatility bands around the adaptive basis. Instead of a fixed multiple of range, the band width scales with where the current Average True Range sits in its own recent history (its percentile), so the bands contract in quiet conditions and expand when volatility rises. A nearer pair and a wider pair mark two envelopes.
Module 3 - Liquidity and Structure
Market structure from confirmed swing pivots, labelled as Break of Structure and Change of Character. Because the pivots are symmetric (confirmed on both sides), they are fixed before they are drawn and do not repaint afterward. On a structure break the tool marks the order block behind the move (the last opposite-direction candle before the push) and it tracks fair-value gaps, which are three-bar imbalances. Each zone follows a mitigation lifecycle: it is extended while it is live and greyed once price trades through it, and only the most recent zones per type are kept so the chart stays readable.
Module 4 - Order-Flow Oscillator
A normalised buy and sell pressure read in the indicator pane. For each bar it combines where price closed within the bar's range with how large that bar's volume was relative to its recent average. Sustained closes near the highs on strong volume push the oscillator positive; the mirror pushes it negative. An absorption marker highlights bars with heavy volume but a small range, where effort is not producing movement.
Info panel
An optional compact table summarises the current trend direction, the regime read, the volatility percentile, and the current order-flow side. It is context only.
Inputs
Inputs are grouped per module: General (ATR length); Module 1 (efficiency length, fast and slow smoothing, regime threshold, colours); Module 2 (volatility lookback, base and extra width, colour); Module 3 (swing length, order-block lookback, max zones per type, toggles for structure, order blocks and fair-value gaps, colours); Module 4 (pressure smoothing, absorption threshold, colours); plus an info-panel toggle. Every module has a single enable switch.
Alerts
Bullish and bearish structure break, and the order-flow oscillator crossing above or below zero.
How to use it
Treat it as a confluence map rather than a signal. For example, price reaching an order block near the lower band, with the order-flow oscillator turning up while the adaptive trend is still rising, is a stronger context than any one of those alone. Turn off the modules you do not need: if you only trade structure, disable the other three groups for a clean map. It is intended for liquid instruments and works across timeframes; the demonstration chart is Gold on the 1-hour timeframe.
Limitations
The structure module confirms swings with bars on both sides, so its labels and order blocks appear a fixed number of bars after the pivot forms. That delay is the trade-off that keeps them from repainting. The bands, the oscillator and the info panel read the current bar and update as it forms, like any live calculation. This is an analysis tool, not a strategy: it places no orders, makes no performance claim, and there is no win rate because it does not promise trades.
Disclaimer
For education and research only. This is not financial advice, and past chart behaviour does not predict future results. Test any approach yourself and manage your own risk. مؤشر

SMC Structures and FVG [Produced by Wanfeng]中文简介
SMC 结构综合指标 | FVG 公允价值缺口 + BOS/CHoCH 结构突破 + 趋势防守位 + 区间比例线
指标核心功能
FVG 公允价值缺口
自动识别传统 3 根 K 线标准供需缺口,区分看涨 / 看跌缺口;价格触碰缺口后自动变灰淡化,支持一键收缩被触碰区间,可自定义显示历史缺口数量;不适配跳空大缺口行情。
SMC 结构识别(BOS/CHoCH)
内置回溯周期算法自动判定市场结构:顺势突破 BOS、逆势转换 CHoCH;支持自定义线条颜色、线型、粗细,可限制图表留存历史突破标记数量。
假破待确认虚线
价格试探结构高低但未收盘突破时,自动绘制待确认虚线;区分普通顺势假破、防守位假破两种样式,直观分辨有效突破与诱多 / 诱空假破。
动态趋势防守位
跟随当前市场结构实时切换防守基准:上涨趋势以阶段低点为防守、下跌趋势以阶段高点为防守;出现防守位假破时自动切换至假破极值作为临时防守,加粗实线标注并附带文字标签。
区间比例分割线
基于当前完整结构区间自动计算自定义百分比分割线(默认 50% 中位线),同步适配假破后的区间重构;可显示百分比数值标签,辅助找订单流关键支撑阻力。
参数分组说明
公允价值缺口:控制 FVG 显示、配色、触碰收缩、历史数量
结构突破:结构回溯周期、BOS/CHoCH 线条、当前完整结构轮廓线、假破待确认线
防守位:防守实线配色粗细、防守位假破虚线开关与样式
结构比例线:自定义分割百分比、比例线样式、数值标签开关
使用提示
结构回溯 K 线参数为算法基准,不建议随意修改,修改会破坏防守位判定逻辑;
FVG 仅识别标准 3K 缺口,指数、外汇大幅跳空行情下缺口识别会失真;
突破触发自动警报,BOS 代表顺势延续、CHoCH 代表趋势反转信号;
所有线条、色块透明度、线型、线宽均可自由自定义适配个人图表风格。
English Introduction
SMC Market Structure All-in-One Toolkit | FVG + BOS & CHoCH Breakout + Dynamic Defense Level + Ratio Split Line
Core Features
Fair Value Gap (FVG)
Detect standard 3-bar institutional liquidity gaps (bullish & bearish). FVG boxes turn gray once mitigated, with optional shrink function for touched zones. Adjustable max historical FVG count. Not recommended for large gap/jump markets.
SMC Structure Detection (BOS / CHoCH)
Built-in lookback algorithm to identify institutional market structure: BOS (Break of Structure, trend continuation) & CHoCH (Change of Character, trend reversal). Fully customizable line color, style, width, and limited historical breakout markers to avoid chart clutter.
Pending Fake Breakout Dashed Line
Draw temporary pending lines when price tests swing high/low without close breakout. Separate styles for regular trend fakeouts and defense level fakeouts, easily distinguish valid breaks vs liquidity hunts.
Dynamic Trend Defense Level
Auto-switch defense baseline based on current market bias: swing low for uptrend, swing high for downtrend. Temporarily shift defense level to fakeout extreme when liquidity hunt occurs, with thick solid line and text label.
Range Ratio Split Line
Auto calculate user-defined percentage split level (default 50% midpoint) over active market range, compatible with post-fakeout restructured ranges. Optional percentage value label for key order flow support/resistance zones.
Input Groups
Fair Value Gap: Toggle FVG display, color palette, mitigate shrink, max historical boxes
Market Structure: Structure lookback period, BOS/CHoCH line settings, full swing structure outline, pending fake breakout lines
Defense Level: Solid defense line config, toggle & style for defense fakeout dashed lines
Range Ratio Line: Custom split percentage, ratio line appearance, value label switch
Important Notes
Structure lookback bar count is core algorithm parameter, DO NOT modify arbitrarily; wrong value breaks defense level calculation.
This FVG logic only works for standard 3-bar gaps; performance degrades on assets with massive overnight jumps/gaps.
Built-in alert triggers on confirmed breakouts: BOS = trend continuation signal, CHoCH = trend reversal signal.
Full customization of all line width, color transparency, dash/dot/solid styles to match your chart layout preference. مؤشر

مؤشر

Market Structure Mechanics - MSSThis script is an automated structural mapping tool designed to read price action through the strict lens of the ICT (Inner Circle Trader) algorithmic framework. It doesn't just mark every high and low; it intelligently categorizes how price interacts with structural levels to tell you whether the trend is continuing, reversing, or manipulating.
Here is a breakdown of how the script interprets market mechanics:
1. Trend Tracking & Pivot Identification
The script actively tracks the most recent swing high (sh) and swing low (sl) to determine the current trend (bullish or bearish). It uses a customizable pivot length (default 5 bars) to identify these structural turning points.
2. Break of Structure (BOS)
A BOS signals that the current trend is continuing.
If the trend is Bullish and a candle closes decisively above the active Swing High, the script draws a solid blue line and labels it BOS.
If the trend is Bearish and a candle closes decisively below the active Swing Low, it draws a solid red line labeled BOS.
3. Market Structure Shift (MSS) with Displacement
An MSS is a high-probability signal that the overall trend has reversed. However, the script is designed to filter out fake reversals by enforcing the Displacement Rule.
If the trend is Bullish, but price suddenly closes below the active Swing Low, the algorithm checks the recent down-move to see if a Bearish Fair Value Gap (FVG) was formed.
If an FVG is present, it means the move had massive institutional momentum (Displacement). It will draw a thick red line labeled MSS, and the trend will officially shift to bearish.
If it breaks the low but no FVG is found, the script flags it as a low-probability, invalid break (drawn as a dotted gray line).
4. Liquidity Sweeps (Stop Hunts)
This is where the script shines at reading manipulation.
If price pushes past a structural high or low to trigger retail stop losses, but the candle ultimately fails to close beyond the level (leaving a wick), the script immediately recognizes this as a stop hunt.
It will draw a dashed orange line and label it Sweep.
The script also features a built-in "Smart Label Merger", meaning if a level gets Swept and then Broken on the exact same candle, the labels will neatly combine (e.g., "Sweep, BOS") instead of creating a messy, overlapping clump of text on your chart. مؤشر

SMC Lite Pro [BOS + CHoCH + OB + FVGOverview
SMC Lite Pro [BOS + CHoCH + OB + FVG is a Smart Money Concepts (SMC) based trading indicator designed to help traders identify market structure shifts, liquidity movements, institutional order flow, and high-probability reaction zones directly on the chart.
This all-in-one tool combines Break of Structure (BOS), Change of Character (CHoCH), Order Blocks, Fair Value Gaps (FVG), and Liquidity Sweeps into a single clean and powerful trading system. It is built for traders who follow price action and institutional-style market behavior across Forex, Crypto, Indices, and Commodities.
Key Features
Market Structure Engine
* Swing Highs & Swing Lows detection
* Higher High / Lower Low structure mapping
* Real-time trend identification
🚀 BOS & CHoCH Detection
* Break of Structure (Bullish & Bearish)
* Change of Character (Trend reversal signals)
* Clean visual labels for structure shifts
🏦 Order Blocks (SMC Zones)
* Bullish Order Blocks (demand zones)
* Bearish Order Blocks (supply zones)
* Institutional entry zones based on displacement moves
⚡ Fair Value Gaps (FVG)
* Imbalance detection between candles
* Bullish and Bearish FVG zones
* Potential price retracement areas
💧 Liquidity Concepts
* Equal Highs / Equal Lows detection
* Liquidity sweep identification
* Smart money stop hunt zones
📈 Best Market Conditions
* Trending markets
* High volatility sessions (London & New York)
* Strong breakout environments
⏱ Recommended Timeframes
* 1M – 5M → Scalping (fast entries)
* 15M – 1H → Intraday trading (BEST performance)
* 4H – Daily → Swing trading (high accuracy setups)
🎯 How to Use
* Wait for BOS or CHoCH for directional bias
* Identify Order Blocks after structure shift
* Use FVG zones for pullback entries
* Confirm liquidity sweep before entry
* Trade in direction of market structure
⚠️ Disclaimer
This indicator is based on Smart Money Concepts and historical price action analysis. It does not guarantee profits. Trading involves risk, and users should apply proper risk management and confirmation before entering trades. مؤشر

Fractal Structure Indicator BOS CHoCH TGFXFractal Market Structure — BOS / CHoCH
OVERVIEW
This tool maps market structure automatically using fractal pivots. It detects swing and internal structure, labels each break as BOS (continuation) or CHoCH (change of character / reversal), tracks the current fractal high and low (FH / FL), highlights the premium and discount zones of the active range, and summarises higher-timeframe structure in a table.
THE CONCEPTS
- Fractal pivots: highs and lows are detected as Williams-style pivots (a high or low with N bars on each side). Two layers are available — swing structure (larger pivots) and internal structure (smaller pivots inside the swings).
- BOS (Break of Structure): price closes beyond the prior structural point in the direction of the trend — a continuation event.
- CHoCH (Change of Character): the first break against the prevailing structure — an early sign of a potential reversal.
- Current FH / FL: the most recent fractal high and low, where liquidity tends to rest.
- Premium / Discount: the active range is split at its 50% equilibrium. Above it is premium (relatively expensive); below it is discount (relatively cheap).
- Multi-timeframe table: shows the structural bias and the zone (premium / discount) of higher timeframes at a glance.
NON-REPAINTING
A fractal is only confirmed once N bars have closed on each side, so a pivot is fixed after confirmation and does not repaint. Structure breaks (BOS / CHoCH) are evaluated on bar close.
SETTINGS
- Swing fractal length and internal fractal length.
- Show / hide internal structure.
- Show current FH / FL lines and labels.
- Show BOS / CHoCH labels.
- Show premium / discount zones.
- Colors, line extension, and the multi-timeframe table (timeframes and position).
HOW TO READ IT
- Green = bullish structure, red = bearish structure.
- BOS suggests trend continuation; CHoCH warns of a possible reversal.
- Price reaching discount within a bullish bias, or premium within a bearish bias, is the classic context many traders use to look for entries in the direction of structure.
NOTES
This script is an original implementation of standard, public price-action concepts (fractal pivots, market structure, BOS / CHoCH, premium / discount, equilibrium). It is a visualization and context tool — it does not generate buy/sell signals and makes no claim about future performance. Best used together with your own analysis and risk management. مؤشر

RIFTS Tap & Break Sniper [NICK789]
RIFTS Tap & Break Sniper
The RIFTS Tap & Break Sniper indicator is built around one core price-action idea:
Price creates or leaves behind a reaction zone, later returns to tap or reject from that zone, and then confirms direction by printing a BOS or CHoCH.
RIFTS stands for:
**R** — Reaction Zones
**I** — Imbalance Gaps
**F** — Flip / Structure Confirmation
**T** — Tap & Break Logic
**S** — Sniper Scoring
Together, these describe the full process used by the script: price creates or leaves behind a zone, returns to tap or reject from it, then confirms direction through BOS or CHoCH before the setup is scored and plotted as a Sniper or Sniper+ signal.
The script is designed to help traders identify tap-and-break structures where a zone reaction and a market-structure break occur together. Instead of showing zones by themselves or structure breaks by themselves, RIFTS connects both steps into one workflow:
1. Price creates a Reaction Block or Imbalance Gap.
2. Price returns to tap the zone.
3. Price rejects from the zone.
4. Price confirms direction with BOS or CHoCH.
5. The script scores the setup and plots a Sniper or Sniper+ signal.
🔶 USAGE
RIFTS identifies two main zone types:
Reaction Blocks
Imbalance Gaps
A setup begins when price creates one of these zones. The script then watches for price to return to the zone and either tap or reject from it.
A bullish setup develops when price interacts with a bullish zone and then confirms upward movement through a bullish structure break.
A bearish setup develops when price interacts with a bearish zone and then confirms downward movement through a bearish structure break.
The signal is not based on the zone alone. The main purpose is to find moments where zone interaction and structure confirmation align.
🔹 Reaction Blocks
Reaction Blocks are candle-based zones created after price displaces away from the previous candle.
A bullish Reaction Block forms when a bullish candle closes above the previous candle’s high while the previous candle was bearish.
A bearish Reaction Block forms when a bearish candle closes below the previous candle’s low while the previous candle was bullish.
The script marks the previous candle range as the reaction area. This area becomes important if price later returns to it and reacts.
The Zone Candle Body % setting controls how strong the displacement candle must be before a Reaction Block is created. Higher values require stronger candle bodies and reduce weaker zones.
🔹 Imbalance Gaps
Imbalance Gaps are created when price moves quickly and leaves an untraded gap between the current candle and the candle two bars back.
A bullish Imbalance Gap forms when the current low is above the high from two candles ago.
A bearish Imbalance Gap forms when the current high is below the low from two candles ago.
These gaps represent fast price movement. If price later returns to the gap, the script monitors whether price reacts from that area and then breaks structure.
🔹 Tap and Reaction Logic
After a Reaction Block or Imbalance Gap is created, the script tracks whether price comes back into the zone.
A zone is considered tapped when price trades back inside the zone.
A bullish reaction occurs when price taps a bullish zone and then closes upward out of that zone.
A bearish reaction occurs when price taps a bearish zone and then closes downward out of that zone.
The reaction candle must pass the selected quality filters:
Reject Body %
Reject Range ATR
These filters help avoid weak touches where price enters a zone but does not show enough rejection strength.
🔹 BOS and CHoCH Confirmation
The script tracks swing highs and swing lows using the Structure Swing Length setting.
When price closes above the last confirmed swing high, the script detects a bullish structure break.
When price closes below the last confirmed swing low, the script detects a bearish structure break.
The structure break is classified as either BOS or CHoCH.
BOS means Break of Structure. It represents continuation in the current structure direction.
CHoCH means Change of Character. It represents a break against the previous market bias and may suggest a possible directional shift.
CHoCH and BOS lines are drawn on the chart so users can see exactly which structure level was broken.
🔶 SIGNAL MODES
The Sniper Confirmation setting controls how strict the setup must be before a signal appears.
Reaction Only
A signal can appear when price reacts from a valid zone. This is the fastest mode because it does not require a BOS or CHoCH confirmation.
Tap + Structure
A signal requires price to tap a valid zone and then break structure in the signal direction.
Reaction + Structure
A signal requires both a valid zone reaction and a BOS or CHoCH confirmation. This mode is designed for traders who want zone rejection and structure confirmation together.
🔹 Structure Trigger Type
The Structure Trigger Type setting controls which structure events can trigger signals.
Both
Allows both BOS and CHoCH.
CHoCH Only
Only allows change-of-character signals.
BOS Only
Only allows break-of-structure signals.
This lets traders focus on reversal-style setups, continuation-style setups, or both.
🔶 SNIPER SCORE
Each setup receives a score based on the conditions that are present.
The score can include:
Zone tap or zone reaction
BOS or CHoCH confirmation
Fresh reaction timing
Optional volume confirmation
Optional EMA trend confirmation
A Sniper signal appears when the setup reaches the minimum score threshold.
A Sniper+ signal appears when the setup reaches the higher Sniper+ threshold.
The score is a confluence model. It does not predict guaranteed profit. It simply shows how many of the script’s conditions are aligned.
🔹 Volume Filter
When enabled, the Volume Filter requires current volume to be above a selected moving average multiplier.
Volume MA Length controls the volume average.
Volume Multiplier controls how much stronger current volume must be compared with the average.
This filter can help reduce signals during weaker volume conditions.
🔹 EMA Trend Filter
When enabled, the EMA Trend Filter checks whether price is on the correct side of the selected EMA.
Bullish signals require price to be above the EMA.
Bearish signals require price to be below the EMA.
This filter is optional and can be used when traders want signals to align with broader trend direction.
🔶 TRADE PLAN GUIDE
When a Sniper or Sniper+ signal appears, the script can draw a simple trade plan guide.
Entry is based on the signal candle close.
Stop loss is placed beyond the reaction zone with an optional ATR buffer.
TP1, TP2, and TP3 are calculated using the selected R multiples.
The trade plan is only a visual guide. It does not place trades, manage trades, or act as a strategy tester.
🔶 VISUAL DISPLAY
The script can display:
Bullish and bearish Reaction Blocks
Bullish and bearish Imbalance Gaps
CHoCH and BOS structure lines
Sniper and Sniper+ markers
Latest Entry / SL / TP guide
Master alert and separate bull/bear alert conditions
Used zones and overlapping same-side zones are visually cleaned up to keep the chart easier to read.
🔶 SETTINGS
Core Zones
Show Zones
Toggles the display of Reaction Blocks and Imbalance Gaps.
Reaction Blocks
Enables or disables Reaction Block detection.
Imbalance Gaps
Enables or disables Imbalance Gap detection.
Hide Broken Zones
Removes invalidated zones from the chart.
Max Stored Zones
Controls how many zones are stored and tracked.
Zone Candle Body %
Sets the minimum candle body percentage required to create a zone.
Sniper Logic
Sniper Confirmation
Chooses Reaction Only, Tap + Structure, or Reaction + Structure.
Structure Swing Length
Controls the swing pivot length used for BOS and CHoCH detection.
Structure Trigger Type
Chooses whether BOS, CHoCH, or both can trigger signals.
Reaction Valid Bars
Controls how long a zone reaction remains valid for confirmation.
Confirm Signal On Candle Close
When enabled, signals only appear after the candle closes.
Quality Filters
ATR Length
Controls the ATR used for rejection and stop-buffer calculations.
Reject Body %
Sets the minimum body size required for a valid rejection candle.
Reject Range ATR
Sets the minimum candle range relative to ATR for rejection quality.
Require Break Displacement
Requires BOS/CHoCH candles to pass body and ATR strength filters.
Break Body %
Sets the minimum body size required for a valid structure break.
Break Range ATR
Sets the minimum candle range relative to ATR for a valid structure break.
Score Filters
Use Volume Filter
Requires volume confirmation before allowing signals.
Volume MA Length
Controls the moving average used for volume comparison.
Volume Multiplier
Controls how strong current volume must be compared with its average.
Use EMA Trend Filter
Requires signals to align with the EMA trend filter.
EMA Trend Length
Controls the EMA used for trend filtering.
Show Sniper+ Only
Hides normal Sniper signals and only shows Sniper+ signals.
Min Sniper Score
Minimum score required for a normal Sniper signal.
Sniper+ Score
Minimum score required for a Sniper+ signal.
Visuals
Show CHoCH/BOS Lines
Toggles structure lines on the chart.
Max Structure Lines
Controls how many structure lines remain visible.
Show Latest Entry / SL / TP
Toggles the trade plan guide.
RR Lines Bars Ahead
Controls how far the trade plan guide extends to the right.
TP1 R, TP2 R, TP3 R
Controls the risk-multiple targets.
SL ATR Buffer
Adds an ATR-based buffer beyond the reaction zone for the stop guide.
Alerts
The script includes alert conditions for:
Master Sniper signal
Bull Sniper
Bear Sniper
Bull Sniper+
Bear Sniper+
A dynamic master alert option is also available for traders who want alert messages that include symbol, timeframe, close price, and score.
🔶 HOW TO READ THE SIGNALS
A bullish Sniper signal means price has interacted with a bullish zone and passed the selected confirmation rules.
A bearish Sniper signal means price has interacted with a bearish zone and passed the selected confirmation rules.
A Sniper+ signal means the setup reached the higher score threshold.
BOS labels can help identify continuation-style structure breaks.
CHoCH labels can help identify possible shift or reversal-style structure breaks.
The Entry / SL / TP guide is only for planning and should be adjusted to each trader’s own risk management.
🔶 IMPORTANT NOTES
This script is a confluence and visualization tool. It does not guarantee future price movement.
Signals are based on reaction zones, zone taps, rejection candles, and BOS/CHoCH structure breaks.
Swing structure requires confirmed pivots, so BOS and CHoCH lines appear only after the selected swing length confirms the structure point.
Lower timeframes may produce more frequent signals and more noise.
Higher timeframes may produce fewer but cleaner structure events.
Best results usually come from combining the script with higher timeframe context, market session awareness, and proper risk control.
مؤشر

AlgoSentry Smart Money Engine [Non-Repaint]AlgoSentry Smart Money Engine
A complete Smart Money Concepts toolkit built on a single rule: nothing is drawn until the candle closes. No repainting, no future leaks, no lookahead. What you see on historical bars is exactly what you would have seen live.
This is one coherent engine, not a bundle of disconnected tools — each layer feeds the next:
Market Structure -> Liquidity Sweep -> Fair Value Gap -> Break of Structure / Change of Character -> Order Block -> Premium / Discount -> Smart Money Score.
────────── What it reads ──────────
Market Structure
Swing highs and lows are detected with confirmed pivots. A swing only prints after a set number of closed bars on each side, so the structure labels (HH, HL, LH, LL) never move once drawn. Labels are off by default for a clean chart — the live bias is always in the dashboard.
Break of Structure & Change of Character
A break registers only when price closes beyond a confirmed swing level. Continuing the trend, it is a Break of Structure (BOS); reversing it after breaking the opposite level, it is a Change of Character (CHoCH). A line is drawn from the broken swing to the break candle.
Displacement Quality
Each break is graded Weak, Valid, or Institutional from candle body strength, ATR expansion, and — where available — volume expansion. It separates a real institutional move from a marginal one.
Liquidity Sweeps
Marked when price wicks beyond a prior swing but closes back inside it: a sell-side sweep below a swing low, a buy-side sweep above a swing high. Each swing is swept once, so the chart stays clean.
Fair Value Gaps
Three-candle imbalances are drawn as zones and tracked through their life — Fresh, Partially mitigated, Filled. Show active gaps only, or keep historical ones faded.
Order Blocks
After a confirmed break, the last opposite candle before that break becomes an order-block zone, tracked as Fresh, Touched, or Invalidated.
Premium / Discount
The last confirmed swing range is split into premium (upper), equilibrium (50%), and discount (lower) — context for where price sits inside its range.
Smart Money Score
A 0-100 context score from the confluence of structure, breaks, sweeps, imbalance, order-block proximity, and trend agreement, reading from Strong Bearish to Strong Bullish. It is a market-context score, not a buy or sell signal.
────────── Why it does not repaint ──────────
Every layer runs on confirmed, closed bars. Pivots require bars on both sides before they confirm. Breaks, sweeps, gaps, and blocks are all evaluated on candle close. There is no security() call, no higher-timeframe lookahead, and no recalculation that moves a past signal. Backtest behaviour matches live behaviour.
────────── How to use it ──────────
Read the dashboard top-down — bias, then the Smart Money Score for context, then the live phase (Accumulation, Expansion, Pullback, Distribution). Use BOS and CHoCH to read structural shifts, sweeps to spot liquidity grabs, and the Fair Value Gap and order-block zones as areas of interest. The optional EMA filter aligns events to the higher-timeframe trend. Alerts are available for every event, all candle-close confirmed.
────────── What it does NOT do ──────────
It does not predict price. It does not give buy or sell signals. It does not place trades or guarantee any outcome. It is a structural and contextual reading tool — the decisions and the risk are yours.
────────── Disclaimer ──────────
For educational and informational purposes only. This is not financial advice. Trading carries substantial risk of loss, and past behaviour does not guarantee future results.
Every signal is confirmed on candle close. No future leaks. No lookahead. مؤشر
