Pan Sniper Hybrid V12.7.6 CompleteTitle: Pan Sniper Hybrid V12.8 - Multi-Strategy SMC & Volumetric Signals
Description:
Pan Sniper Hybrid V12.8 is a comprehensive trading tool designed for professional scalpers and day traders. It combines Market Structure Analysis (SMC), Volumetric Delta Analysis, and FX Market Sessions into a single, high-performance indicator.
This script is optimized for lower timeframes (1m, 5m, 15m) to identify high-probability reversal and trend-following setups.
Key Features:
Automatic Market Structure: Real-time labeling of HH, HL, LL, LH to help you identify trend shifts and institutional order flow.
Volumetric Delta Signals: Includes Bull (🐂) and Bear (🐻) signals based on real-time Volume Delta calculations from lower timeframe data.
Shark SFP (Swing Failure Pattern): The Shark (🦈) signal identifies liquidity sweeps at key structural highs and lows—perfect for catching sharp reversals.
AMD Session Boxes: Automatically plots Asia, London, and New York sessions with visual boxes (Accumulation, Manipulation, Distribution) to help you trade session highs and lows.
Dynamic Fibo Zones: Features upper and lower Fibonacci-based bands to identify overextended price levels (Overbought/Oversold).
Gaussian Trend Filter: A smooth trend-following baseline that changes color based on market momentum.
How to use:
For Scalping (1m/5m): Increase the Shark % and Pivot Lookback in settings to filter out minor price noise.
Trend Confirmation: Look for Bull/Bear signals that align with the Gaussian Filter color.
Session Trading: Use the Opening Range (Yellow/Pink lines) as a breakout or mean-reversion boundary during major market opens.
Settings Highlights:
Signal Sensitivity: Fully customizable thresholds for Bull, Bear, and Shark signals to match your risk appetite.
MACD Customization: Adjustable Fast/Slow lengths to fine-tune signal entry timing.
Disclaimer: This indicator is for educational and analytical purposes only. It does not constitute financial advice. Past performance does not guarantee future results. Indicator

Indicator

Smart Liquidity Map - Institutional MTFSmart Liquidity Map (SLM) - Multi-Timeframe Institutional Orderblocks
Description:
This advanced trading tool generates a fully automated institutional liquidity map directly on your price chart. By scanning key algorithmic levels, it precisely targets institutional resting orders (Buy-Side & Sell-Side Liquidity). Thanks to a smart adaptive script engine, it works perfectly across any chart resolution, maintaining a rock-solid, constant multi-timeframe perspective.
Core Features:
Fixed Multi-Timeframe Matrix (1H, 4H, 1D):
Removes lower-timeframe noise. The indicator strictly tracks the three most critical institutional horizons: 1-Hour, 4-Hour, and Daily pivots.
Smart Confluence Engine (Combo Zones):
When opposing liquidity levels (BSL & SSL) collide within a narrow price threshold, they instantly merge into a highly significant, dark orange Combo Zone .
Overlay & Cluster Aggregation:
If same-direction levels overlap across different timeframes (e.g., 1H BSL + 4H BSL), the chart remains clean. The dynamic label automatically lists all involved timeframes (e.g., BSL ).
Volume Profile POC Box:
Dynamically computes the Point of Control (POC) based on historical volume distribution and renders it as a clean, custom gray box with high-contrast labeling.
Real-Time Sweep Mitigation:
As soon as price sweeps a liquidity level, the zone gets updated instantly (removed or faded) to keep your workspace clean and efficient.
Visual Color Guide:
Red: Pure Buy-Side Liquidity (BSL) – Resistance / Short Targets.
Green: Pure Sell-Side Liquidity (SSL) – Support / Long Targets.
Orange: Mixed Combo Zones (BSL + SSL Confluence).
Gray: Volume Profile Point of Control (POC). Indicator

Session Sweep Reversal Predictor - PhenLabs🚀 #67 Session Sweep Reversal Predictor - PhenLabs
📌 Overview
Session Sweep Reversal Predictor helps traders evaluate whether a confirmed session liquidity sweep is more likely to reverse or continue. It tracks Asian, London, and New York session ranges, detects qualified sweeps of prior session highs or lows, then uses a rolling Bayesian model to estimate reversal and continuation probability from previous sweep outcomes.
Instead of showing every wick through a level, SSRP filters for displacement using candle size versus ATR and body-to-range quality. The goal is to highlight cleaner sweep events where price actually shows intent after taking session liquidity.
📊 Core Idea
Markets often build liquidity around session highs and lows. When a later session sweeps a prior session range, the key question is not just “was liquidity taken?” but “did this sweep behave like prior sweeps that reversed, or like prior sweeps that continued?”
SSRP answers that question with a rolling event model. Each qualified sweep is classified by candle structure, displacement, and close location, then compared against historical outcomes inside the selected lookback window.
🚀 Key Features
✅ Tracks Asian, London, and New York session ranges
✅ Detects wick sweeps with rejection closes
✅ Optional failed-close sweep detection
✅ Session-aware sweep logic: London can sweep Asian, New York can sweep London or Asian
✅ Displacement filters using ATR expansion and body/range quality
✅ Rolling Naive Bayes probability model
✅ Reversal and continuation probability labels
✅ Session range boxes, session background tint, swept-level lines, and dashboard table
✅ Alerts for high reversal-probability and high continuation-probability sweeps
🔧 Settings
Session Timezone
Default: America/New_York
Options: America/New_York, Europe/London, Asia/Tokyo, UTC, exchange
Description: Timezone used for hour-based session classification.
Asian / London / New York Session
Default: Asian 18:00–03:00, London 03:00–07:59, New York 08:00–16:00
Description: Reference session windows for the model’s intended session structure. The script evaluates sessions by hour in the selected timezone.
Detect Wick Sweeps
Default: On
Description: Detects sweeps where price straddles a locked session level and closes back through it.
Detect Failed-Close Sweeps
Default: Off
Description: Detects sweeps where one bar closes beyond the level and the next bar reclaims it.
London may sweep Asian range
Default: On
Description: Allows London-session sweeps of the completed Asian range.
New York may sweep Asian range
Default: On
Description: Allows New York-session sweeps of the completed Asian range.
New York may sweep London range
Default: On
Description: Allows New York-session sweeps of the completed London range. New York gives London levels priority before falling back to Asian levels.
ATR Length
Default: 14
Description: ATR period used for displacement qualification and outcome measurement.
Min Candle Size × ATR
Default: 1.5
Description: Minimum candle range relative to ATR required for a sweep to qualify.
Min Body/Range Ratio
Default: 0.5
Description: Minimum body quality required to reduce weak wick-only signals.
Rolling Lookback
Default: 100 sweep events
Description: Number of prior sweep events retained in the probability model.
Laplace Smoothing α
Default: 4.3
Description: Smoothing factor used by the Bayesian model so early samples do not become overconfident.
Outcome Forward Bars
Default: 10
Description: Number of bars after a sweep used to classify whether the event reversed or continued.
Reversal Threshold %
Default: 60
Description: Probability level required to trigger high-reversal visual emphasis and alerts.
Continuation Threshold %
Default: 60
Description: Probability level required to trigger high-continuation visual emphasis and alerts.
🔥 How It Works
1. Build session ranges
• Asian, London, and New York highs/lows are tracked independently.
• When a session ends, its range is locked for later sweep detection.
• New Asian session starts reset prior London and New York levels for the new day.
2. Detect qualified sweeps
• London can sweep the completed Asian range.
• New York can sweep the completed London range first, then Asian range.
• A high sweep requires price to trade above the level and close back below it.
• A low sweep requires price to trade below the level and close back above it.
3. Filter for displacement
• Candle range must be large enough versus ATR.
• Candle body must represent enough of the full candle range.
• This helps reduce weak, noisy liquidity taps.
4. Score the sweep
• The model bins body quality, candle size, and close location.
• It estimates reversal versus continuation odds using a rolling Naive Bayes model.
• Laplace smoothing keeps the model from becoming too extreme on small samples.
5. Label the outcome
• After the selected forward-bar window, the script checks whether price moved at least one event ATR back through the swept level.
• If it did, the event is labeled as a reversal.
• If it did not, the event is labeled as continuation.
🎨 Visual Guide
• Blue box: Asian session range
• Orange box: London session range
• Background tint: active session
• Yellow dashed line: swept level
• Green label: reversal probability above threshold
• Red label: continuation probability above threshold
• Gray label: no high-confidence edge
• Dashboard: most recent sweep events, session, source range, direction, probabilities, and outcome status
📖 How to Interpret Signals
High Sweep
A prior session high was taken. A high reversal probability suggests the model favors downside reaction from the sweep. A high continuation probability suggests the model favors upside continuation after the liquidity take.
Low Sweep
A prior session low was taken. A high reversal probability suggests the model favors upside reaction from the sweep. A high continuation probability suggests the model favors downside continuation after the liquidity take.
REV %
Estimated probability that the sweep reverses by at least one event ATR within the forward-bar window.
CONT %
Estimated probability that the sweep does not meet the reversal condition within the forward-bar window.
✅ Best Used For
SSRP is designed for intraday traders who watch session liquidity, especially London and New York open behavior. It is most useful on liquid markets with clean session structure, such as major FX pairs, index futures, crypto majors, and high-volume equities.
⚠️ Important Notes
This is a statistical context tool, not a guaranteed prediction engine. The Bayesian probabilities are based only on the script’s rolling sample of prior qualified sweep events. Early chart history, low-liquidity symbols, unusual sessions, and small lookback samples can make the probabilities less stable. Indicator

Indicator

Liquidity Intelligence Entry SystemLiquidity Intelligence System
Liquidity Intelligence System is a liquidity-based market analysis framework designed around one central idea:
market movement is often shaped by liquidity pools, stop sweeps, directional bias, displacement, volatility conditions, and the quality of confluence around a signal.
This script is not designed to mark every candle, every swing, or every possible reversal. It is not intended to behave like a simple buy/sell indicator that reacts to one isolated condition. Its purpose is to detect structured liquidity events, compare multiple confluence models in the background, classify the current market regime, display signal quality, and project a visual risk/reward framework directly on the chart.
The script combines liquidity sweep detection, trend confirmation, FVG presence, volume expansion, RSI extremes, displacement behavior, market regime logic, adaptive preset modes, TP1/TP2/TP3 projection, visual liquidity mapping, and a model-performance dashboard into one organized workflow.
The goal is to help users review liquidity-based signals in a more structured way, not to promise future performance or replace independent analysis.
🔓 PUBLICATION NOTE
This script is published to provide a structured liquidity-analysis workflow.
The description is intentionally detailed because many users do not inspect every part of the Pine Script logic line by line. The purpose of this page is to explain what the script does, how its components connect, why the system is organized this way, and what limitations should be understood before using it.
The script should be treated as a decision-support and research tool. It is not financial advice, it is not an automated trading system, and it does not guarantee profitable results.
📌 OVERVIEW
At a high level, Liquidity Intelligence System does several things:
1. It detects liquidity sweep conditions around recent swing highs and swing lows.
2. It identifies buy-side liquidity and sell-side liquidity areas.
3. It can mark Equal High and Equal Low liquidity pools.
4. It changes swept liquidity levels visually once price takes them.
5. It evaluates 16 different liquidity/confluence signal models in the background.
6. It allows the user to manually choose which model should be active on the chart.
7. It prevents repeated same-direction signals from stacking unnecessarily.
8. It calculates virtual trade outcomes for each model.
9. It displays model statistics such as Trades, Win Rate, Profit Factor, Average R, and Net R.
10. It identifies the current best-performing model according to a selected metric.
11. It detects the current market regime using trend, ADX-style directional movement, ATR behavior, and candle body conditions.
12. It gives the most recent signal a Signal Quality score.
13. It displays a Signal Quality panel with a visual score bar.
14. It projects Entry, TP1, TP2, TP3, and SL levels on the chart.
15. It draws soft reward and risk zones around the active signal.
16. It provides theme modes for different chart styles.
17. It includes dynamic alert messages with signal, model, quality, regime, entry, TP, SL, and performance details.
The script is therefore not a single-purpose liquidity sweep marker. It is a multi-model liquidity intelligence and signal-review framework.
🧠 CORE IDEA
The core idea of the script is that a liquidity sweep by itself is only one part of the story.
A market may sweep a previous high or low, but that does not automatically mean the move is actionable. A sweep can lead to reversal, continuation, expansion, or false movement depending on the broader context.
For that reason, Liquidity Intelligence System does not rely on one condition alone.
Instead, it builds a layered model around the following question:
When liquidity is taken, what other evidence exists around that event?
The system can evaluate liquidity events together with:
- trend direction,
- recent FVG behavior,
- volume expansion,
- RSI extreme positioning,
- displacement strength,
- current market regime,
- and model-specific confluence.
This allows the script to compare different interpretations of the same market environment.
For example, one user may prefer simple liquidity sweeps, while another may prefer liquidity sweeps only when FVG and trend alignment are also present. The script does not force one fixed interpretation. It allows multiple models to run in the background while the user selects the model they want to display.
🧩 WHY THIS SCRIPT IS NOT A SIMPLE MASHUP
This script combines several concepts that are familiar in technical analysis and liquidity-based trading:
- swing highs and swing lows,
- liquidity sweeps,
- equal highs and equal lows,
- FVG-style imbalance logic,
- trend filters,
- volume filters,
- RSI conditions,
- displacement candles,
- ATR-based risk projection,
- dashboard statistics,
- alert messages.
These individual concepts are not unique by themselves.
The main purpose of this script is the way these elements are organized into one structured liquidity workflow:
Liquidity map
→ sweep detection
→ confluence model selection
→ market regime classification
→ signal quality scoring
→ TP1/TP2/TP3 projection
→ model-performance dashboard
→ dynamic alert system
Each part has a specific role.
- The liquidity map shows where price may be interacting with stop pools.
- The sweep engine defines the base signal event.
- The confluence models decide which extra filters should be required.
- The regime engine gives context about the current environment.
- The quality panel summarizes the last signal.
- The dashboard compares the performance of different models.
- The TP/SL projection gives a visual review structure.
- The alert system allows monitoring without constantly watching the chart.
For that reason, the script is intended as one complete liquidity-intelligence framework, not as a random collection of unrelated tools.
💧 WHAT THE SCRIPT DOES
The script begins by detecting swing-based liquidity references.
It uses recent pivot highs and pivot lows to define potential buy-side and sell-side liquidity levels.
Then it can classify and draw:
- BSL: Buy-Side Liquidity
- SSL: Sell-Side Liquidity
- EQH: Equal High liquidity
- EQL: Equal Low liquidity
When price later trades through one of these mapped levels, the script can visually mark that level as swept. This makes the liquidity map more informative because old untouched levels and swept levels are no longer displayed the same way.
After the liquidity engine identifies sweep conditions, the script evaluates whether the sweep qualifies under one of the available model combinations.
Those models are tested in the background, while the user chooses which one should be active on the chart.
The active model controls the visible LONG / SHORT labels and the projected Entry / TP / SL structure.
⚙️ HOW THE SCRIPT WORKS
1) LIQUIDITY SWEEP ENGINE
The script uses swing pivots to identify important recent highs and lows.
A buy-side sweep occurs when price moves above a previous swing high and then closes back below that swing high.
A sell-side sweep occurs when price moves below a previous swing low and then closes back above that swing low.
The script also checks sweep depth and wick rejection. This helps avoid treating every small break of a level as an equally meaningful sweep.
The sweep engine uses:
- swing pivot length,
- maximum sweep depth measured with ATR,
- rejection wick ratio,
- current candle structure,
- and the most recent mapped swing levels.
This base liquidity engine creates the foundation for all model combinations.
2) BSL / SSL LIQUIDITY MAP
The script can draw liquidity levels directly on the price chart.
The map may include:
- BSL above swing highs,
- SSL below swing lows,
- EQH when similar highs form near each other,
- EQL when similar lows form near each other.
The liquidity map is designed to be selective rather than excessive.
A quality mode controls how many levels are displayed:
- Balanced: more levels,
- Conservative: cleaner default view,
- Strict: fewer but more selective levels.
The script also limits the maximum number of active liquidity lines so the chart does not become overloaded.
3) SWEPT LIQUIDITY VISUAL STATE
When price reaches a mapped liquidity level, the script can mark that line as swept.
A swept liquidity line changes visually:
- the line becomes grey,
- the style changes,
- the label changes to SWEPT.
This makes it easier to distinguish active liquidity pools from liquidity that has already been taken.
This visual behavior is important because liquidity levels are not static forever. Once price has interacted with a level, its meaning may change.
4) EQUAL HIGH / EQUAL LOW LOGIC
The script can detect similar high or low points using an ATR-based tolerance.
Equal highs can represent a potential buy-side liquidity pool.
Equal lows can represent a potential sell-side liquidity pool.
Because instruments have different volatility, the tolerance is not fixed in raw price terms. It is scaled with ATR.
This makes the EQH / EQL logic more adaptive across different markets and timeframes.
🧠 16 MODEL SYSTEM
The script includes 16 model combinations.
These models are evaluated in the background:
1. LQ
2. LQ + Trend
3. LQ + FVG
4. LQ + Volume
5. LQ + RSI
6. LQ + Displacement
7. LQ + Trend + FVG
8. LQ + Trend + Volume
9. LQ + Trend + RSI
10. LQ + Trend + Displacement
11. LQ + FVG + Volume
12. LQ + FVG + RSI
13. LQ + FVG + Displacement
14. LQ + Volume + RSI
15. LQ + Trend + FVG + Volume
16. LQ + Trend + FVG + Volume + RSI + Displacement
The user can choose one active model from the settings.
The active model is the one that controls the visible chart signals.
The other models still run in the background for dashboard comparison.
This is one of the main ideas of the script: the user does not have to guess which confluence combination is currently performing better. The dashboard can compare the models over the visible historical calculation period.
📈 TREND COMPONENT
The trend component compares a fast EMA and a slow EMA.
If the fast EMA is above the slow EMA, the script treats the trend condition as bullish.
If the fast EMA is below the slow EMA, the script treats the trend condition as bearish.
This does not mean the EMA lines have to be plotted on the chart. They can work silently as internal filters.
When a model uses Trend, the liquidity signal must align with the EMA-based directional condition.
🟩 FVG COMPONENT
The FVG component checks for recent imbalance-style behavior.
The script identifies bullish and bearish FVG-style conditions and then checks whether such a condition has occurred within a recent lookback window.
This allows models such as:
- LQ + FVG,
- LQ + Trend + FVG,
- LQ + FVG + Volume,
- LQ + FVG + Displacement,
to require liquidity behavior together with recent imbalance context.
The FVG logic in this version is used as a filter and confluence component. It is not presented as a full FVG box-management system.
🔊 VOLUME COMPONENT
The volume component compares current volume against a volume moving average.
When current volume exceeds the selected volume average by the chosen multiplier, the script treats it as a volume expansion condition.
This can help models focus on sweeps that occur with stronger activity.
Volume is not used as proof of future direction. It is used as one additional context layer.
📉 RSI COMPONENT
The RSI component allows the script to include oscillator conditions in selected models.
For long models, RSI can be required to be near or below a selected lower threshold.
For short models, RSI can be required to be near or above a selected upper threshold.
This allows RSI to function as a contextual filter around liquidity events rather than as a standalone signal generator.
⚡ DISPLACEMENT COMPONENT
The displacement component checks whether the signal candle has enough body strength relative to ATR and total candle range.
A bullish displacement condition requires:
- bullish candle body,
- minimum body size relative to ATR,
- minimum body ratio inside the candle range.
A bearish displacement condition uses the opposite candle direction.
This helps identify signals where the sweep is followed by stronger directional candle behavior.
🧠 MARKET REGIME DETECTION
The script includes a market regime engine.
It classifies the current environment into states such as:
- Trend Up
- Trend Down
- Range
- Choppy
- High Vol
- Low Vol
- Neutral
The regime engine uses:
- directional movement logic,
- ADX-style trend strength,
- EMA trend direction,
- ATR compared to its average,
- candle body ratio behavior.
The purpose of this engine is to provide context.
A liquidity sweep in a trending market is not the same as a liquidity sweep in a range.
A signal during choppy conditions may require more caution than a signal during clean directional expansion.
The regime output is also used in the Signal Quality framework.
⭐ SIGNAL QUALITY SCORE
The Signal Quality score is a 0–100 style scoring framework.
The score is designed to summarize the most recent signal’s contextual quality.
It can consider:
- whether the signal is a valid liquidity event,
- whether the selected model’s trend condition is satisfied,
- whether the selected model’s FVG condition is satisfied,
- whether the selected model’s volume condition is satisfied,
- whether the selected model’s RSI condition is satisfied,
- whether the selected model’s displacement condition is satisfied,
- whether the market regime supports or conflicts with the signal direction.
The important detail is that the score is connected to the active model.
For example:
If the active model is LQ + FVG, FVG matters more directly.
If the active model is LQ + Volume, volume matters more directly.
If the active model is LQ + Trend + FVG + Volume, all of those conditions become part of the model-specific score.
This helps avoid a generic score that ignores the selected model’s logic.
📊 SIGNAL QUALITY PANEL
The Signal Quality panel displays a compact summary of the last signal.
It can show:
- current regime,
- market bias,
- last signal side,
- active model,
- signal score,
- mini score bar,
- alignment state.
The score bar is included to make the quality reading easier to review visually.
Example format:
Score: 78/100
Bar: ████████░░
This panel is not intended to guarantee that a signal will work. It simply summarizes how much contextual evidence was present when the signal appeared.
📊 MODEL DASHBOARD
The main dashboard compares the 16 models.
It includes:
- Trades
- WR
- PF
- Avg R
- Net R
- Active model row
- Best system row
The dashboard is meant for internal review.
It does not represent broker-executed trades. It is a virtual model-testing layer based on the script’s signal and TP/SL rules.
The dashboard helps the user compare whether one model is currently producing cleaner historical behavior than another, but it should not be interpreted as a guarantee that the same behavior will continue.
🏆 BEST SYSTEM ROW
The script can identify a Best System based on the selected metric.
The user can choose the best-system metric from:
- Net R
- Profit Factor
- Average R
- Win Rate
The system also uses a minimum trade count before a model can qualify for the Best row.
This is important because a model with only one or two trades can look misleading. The minimum trade threshold helps reduce the chance of highlighting a model with too little sample size.
🎛️ PRESET MODES
The script includes preset modes.
Available presets:
- Manual
- Scalping
- Intraday
- Swing
- Conservative
- Aggressive
- Funded Account Safe
The default preset is Intraday.
Preset modes do not simply change the name of the setting. They adjust internal effective values such as:
- TP / SL behavior,
- maximum bars in trade,
- sweep depth sensitivity,
- rejection requirement,
- FVG recency,
- volume multiplier,
- displacement requirements.
Manual mode allows the user to control the underlying settings directly.
Presets are included to make the script easier to adapt to different trading styles without requiring every setting to be adjusted one by one.
🎨 THEME SYSTEM
The script includes three visual themes:
Emerald Dark
A dark premium style using green and teal accents.
Crimson Pro
A more aggressive dark theme using red and high-contrast signal colors.
Ice Minimal
A cleaner light-style theme with black text and softer blue/grey visual structure.
The theme affects visual elements such as:
- dashboard colors,
- selected model row,
- best-system row,
- TP/SL/Entry line colors,
- TP/SL/Entry labels,
- reward and risk boxes.
The purpose is to make the same system usable across different chart backgrounds and visual preferences.
🎯 ACTIVE TRADE PROJECTION
When the active model produces a new signal, the script can project a visual trade framework.
The chart may display:
- Entry line
- TP1 line
- TP2 line
- TP3 line
- SL line
- reward zone
- risk zone
- price labels next to each level
The projected levels are based on risk multiples.
Default structure:
- TP1 = 1R
- TP2 = 2R
- TP3 = 3R
- SL = 1R risk
The user can adjust TP1, TP2, and TP3 R multiples from settings.
The projected structure is designed for review and visualization. It should not be treated as an instruction to enter a live trade without additional analysis and risk management.
🟢 TP / SL BACKTEST LOGIC
The script’s virtual testing engine is aligned with the TP1 / TP2 / TP3 structure.
If TP3 is reached, the virtual result is recorded using the selected TP3 R multiple.
If SL is reached, the result is recorded as -1R.
If the trade expires before TP3 or SL, the script can use the highest reached TP level or the open R result depending on what happened.
This creates a more consistent link between what appears visually on the chart and what the dashboard is evaluating.
Same-bar TP/SL behavior is handled by a conservative option. If both TP and SL appear to be hit during the same candle, the user can choose to count that situation conservatively.
🔁 NO CONSECUTIVE SAME-DIRECTION SIGNALS
The script includes a same-direction signal filter.
If a model produces a long signal, it will not keep printing long signals repeatedly until an opposite short signal occurs.
Likewise, if a model produces a short signal, it will not keep printing short signals repeatedly until an opposite long signal occurs.
This helps reduce repeated label clutter and makes the signal stream easier to review.
🚨 PRO ALERT SYSTEM
The script includes dynamic alert messages.
The alert message can include:
- signal side,
- active model,
- preset mode,
- quality score,
- market regime,
- alignment,
- entry price,
- TP1,
- TP2,
- TP3,
- SL,
- active model WR,
- active model PF,
- active model Avg R,
- active model Net R.
The script supports Text and JSON-style alert formats.
Important usage note:
To use the full dynamic Pro Alert message, create the PulseWire alert with:
Condition: Liquidity Intelligence System
Option: Any alert() function call
The regular alertcondition messages are fallback static alerts.
🧭 WHAT APPEARS ON THE CHART
Depending on settings, the script may display:
- LONG / SHORT labels,
- BSL liquidity lines,
- SSL liquidity lines,
- EQH liquidity lines,
- EQL liquidity lines,
- SWEPT liquidity labels,
- Entry line,
- TP1 line,
- TP2 line,
- TP3 line,
- SL line,
- reward area box,
- risk area box,
- price labels beside Entry / TP / SL,
- main model dashboard,
- Signal Quality dashboard.
This design is intentional.
The chart shows liquidity structure, active model signals, projected risk/reward, and review statistics in one organized view.
🧪 HOW TO USE THE SCRIPT
A practical workflow:
1. Add the script to your chart.
2. Start with the default Intraday preset.
3. Choose a theme that fits your chart background.
4. Select the active model you want to display.
5. Review the liquidity map: BSL, SSL, EQH, and EQL.
6. Wait for a liquidity sweep signal from the active model.
7. Check the Signal Quality panel.
8. Check the market regime and alignment state.
9. Review the Entry / TP1 / TP2 / TP3 / SL projection.
10. Compare the active model to the other models in the dashboard.
11. Use alerts if you want to monitor signals automatically.
12. Validate settings across the specific instruments and timeframes you actually trade.
The script is best used as a structured review framework, not as a blind execution system.
⚙️ SETTINGS REFERENCE
Manual Model Selection
- Active Signal Model: selects which of the 16 models appears on the chart.
- Preset Mode: selects the effective behavior profile.
- Show Active Model Labels: enables/disables signal labels.
- Signal Label Style: controls how much information appears in signal labels.
- LONG / SHORT Label Size: controls signal label size.
Virtual Trade Test
- ATR Length: ATR basis for risk calculations.
- Virtual TP ATR Multiplier: used in manual/preset logic where applicable.
- Virtual SL ATR Multiplier: used to define risk distance.
- TP1 R Multiple: first target multiple.
- TP2 R Multiple: second target multiple.
- TP3 R Multiple: third target multiple.
- Max Bars In Virtual Trade: maximum duration of virtual trade.
- If TP and SL Hit Same Candle, Count As Loss: conservative same-bar handling.
Liquidity Sweep
- Swing Pivot Length: pivot sensitivity.
- Max Sweep Depth ATR: maximum allowed sweep depth.
- Minimum Rejection Wick Ratio: wick rejection requirement.
- Show BSL / SSL Liquidity Lines: enables liquidity map.
- Show Equal High / Equal Low Lines: enables EQH/EQL.
- Liquidity Line Limit: maximum active liquidity lines.
- Liquidity Map Quality: controls how selective the liquidity map is.
- Equal High / Low Tolerance ATR: ATR-scaled equality tolerance.
Confirmation Filters
- Fast EMA Length: trend filter fast EMA.
- Slow EMA Length: trend filter slow EMA.
- EMA Source: source used for EMA calculations.
- Minimum FVG Size ATR: minimum FVG size filter.
- FVG Recent Bars: how recently FVG must have appeared.
- Volume SMA Length: volume baseline.
- Volume Spike Multiplier: volume expansion threshold.
- RSI Length: RSI calculation length.
- RSI Long Threshold: RSI condition for long models.
- RSI Short Threshold: RSI condition for short models.
- Minimum Displacement Body ATR: minimum displacement body size.
- Minimum Displacement Body Ratio: minimum body-to-range ratio.
Market Regime & Quality
- Show Signal Quality Table: enables/disables quality panel.
- Regime ADX Length: directional movement calculation length.
- Trend ADX Threshold: trend-strength threshold.
- Range ADX Threshold: range-condition threshold.
- Regime ATR Average Length: ATR baseline for volatility regime.
- High Volatility ATR Multiplier: high-volatility threshold.
- Low Volatility ATR Multiplier: low-volatility threshold.
- Choppy Body Ratio Threshold: body-ratio condition for choppy regimes.
Dashboard & Visuals
- Show Model Dashboard: enables/disables model comparison dashboard.
- Theme: selects Emerald Dark, Crimson Pro, or Ice Minimal.
- Dashboard Size: controls dashboard text size.
- BEST System Metric: selects best-system ranking logic.
- Minimum Trades For BEST Row: minimum sample size for best-system qualification.
Pro Alerts
- Enable Pro Alert Message: enables dynamic alert messages.
- Alert Message Format: selects Text or JSON-style format.
🧠 WHAT MAKES THIS SCRIPT ORIGINAL
This script uses familiar components such as swing highs/lows, EMA trend filters, volume comparison, RSI thresholds, ATR, and dashboard statistics.
Those components are not original by themselves.
The originality of this script lies in how those components are organized into a single liquidity-intelligence workflow:
Liquidity map
→ sweep detection
→ 16 model comparison
→ market regime classification
→ model-specific quality scoring
→ TP1/TP2/TP3 projection
→ dashboard review
→ dynamic alert output
This structure allows the script to function as a complete liquidity review environment rather than a simple signal marker.
⚠️ IMPORTANT PRACTICAL NOTES
The script’s behavior depends heavily on settings.
Signal frequency and signal quality may change based on:
- selected active model,
- preset mode,
- pivot length,
- sweep depth,
- rejection requirement,
- FVG recency,
- volume threshold,
- RSI thresholds,
- displacement settings,
- volatility conditions,
- symbol,
- timeframe.
A model that looks cleaner on one instrument may not behave the same way on another.
The dashboard is a virtual review layer. It is useful for comparing model behavior, but it should not be treated as proof of future results.
⚠️ LIMITATIONS AND SHORTCOMINGS
This script has important limitations:
- It does not guarantee profitable signals.
- It does not know future price movement.
- It does not replace risk management.
- It does not execute trades.
- It does not include broker slippage, commissions, spreads, or order-fill uncertainty.
- It uses chart data and bar-based logic.
- Same-bar TP/SL ambiguity is handled by a rule, not by true intrabar reconstruction.
- Liquidity sweeps can fail.
- FVG, trend, volume, RSI, and displacement filters can still produce false signals.
- The dashboard is historical and virtual, not a live brokerage performance report.
- Market regime classification is an analytical approximation, not an absolute truth.
- No confluence model removes all risk or uncertainty.
For these reasons, the script should be used as a structured analysis and review tool, not as a standalone trading system.
👤 WHO THIS SCRIPT MAY BE USEFUL FOR
This script may be useful for traders who:
- study liquidity sweeps,
- use smart-money-style market structure concepts,
- want BSL / SSL / EQH / EQL mapping,
- want multiple confluence models in one tool,
- want a visual TP1 / TP2 / TP3 framework,
- want a signal quality panel,
- want market regime context,
- want model comparison statistics,
- prefer organized chart-based review.
It may be less suitable for users who:
- want a fully automated trading system,
- want guaranteed buy/sell signals,
- do not use liquidity concepts,
- do not want dashboard-based review,
- prefer very minimal charts with no overlays,
- expect one model to work the same way on every market and timeframe.
🛡️ DISCLAIMER
This script is provided for educational and informational purposes only.
It does not constitute financial, investment, or trading advice.
No indicator can guarantee future results. Market conditions change, historical behavior does not ensure future behavior, and every user is responsible for their own analysis, validation, position sizing, and risk management.
Use this script as a structured decision-support and review framework, not as a promise of profitability.
Indicator

Indicator

Order Block Detector [SMC ChartSense]# SMC ChartSense — Order Block Detector
**Order block detection with mandatory FVG (Fair Value Gap) confirmation.** Each zone marked must have a 3-bar FVG at the anchor candle — institutional displacement that left a literal gap in price. Most basic OB scripts flag every breakout candle as an order block; this script filters to only the zones that came with displacement footprint, producing a cleaner chart with fewer but more meaningful zones.
## How it works
The script tracks swing pivots at a configurable length and waits for a confirmed break — a candle that closes beyond the prior swing high or low. When a break occurs, it searches back through the recent bars to identify the deepest counter-direction candle (lowest low for a bullish OB, highest high for a bearish OB). This becomes the OB anchor.
The anchor is then validated against the FVG requirement: there must be a 3-bar gap at the anchor index (bar A high below bar C low for bullish, bar A low above bar C high for bearish). No FVG, no OB. This is the central quality filter.
Validated zones extend forward from the anchor and remain active until invalidated — either when price closes through the zone or when the wick touches the far side, depending on user preference.
## Features
- FVG validation gate at the anchor candle (3-bar gap requirement)
- Configurable swing pivot length for structural sensitivity
- User-tunable OB anchor lookback (5–100 bars)
- Wick-based or body-based zone definition
- Configurable mitigation trigger: Close-through or Wick-touch
- Auto-pruning of oldest OBs when active count exceeds limit
- Optional faded display of mitigated zones for historical study
- Built on Pine v6 with clean, maintainable architecture
## Inputs
**Structure Detection**
- *Swing Pivot Length* — Higher values produce fewer, more significant pivots. Lower values produce more frequent pivots of smaller structural significance. Default: 5.
**Quality Filters**
- *OB Anchor Lookback Bars* — How far back from a confirmed pivot break to search for the OB anchor candle. Default 30 covers most timeframes; reduce for scalping, increase for higher TFs.
- *Anchor OB to Wick (vs Body)* — Wick mode uses the full candle range. Body mode uses open/close only (tighter zones).
- *Mitigation Trigger* — Close mode invalidates when a candle closes through the zone. Wick mode invalidates on first wick touch.
**Visualization**
- Bull/Bear OB colors (customizable)
- Max OBs Per Side (caps active display, oldest auto-pruned)
- Show OB Labels (off by default — boxes alone are usually sufficient)
- Show Midline (50% level inside each OB, dotted)
- Keep Mitigated OBs Visible (faded gray boxes remain for historical reference)
## Built-in alerts
- New Bull OB formed
- New Bear OB formed
- Bull OB touched (price entered zone)
- Bear OB touched (price entered zone)
## Suggested use
Best on liquid intraday markets — major forex pairs, crypto perps, index futures, large-cap equities — at timeframes from 5m to 4h. Default settings are tuned for 15m–1h ranges; adjust Swing Pivot Length down to 3 for scalping or up to 8–10 for higher-TF trend trading.
Use this as a context tool. The zones identify where institutional displacement occurred — actual entries should incorporate your own analysis: HTF bias, structural alignment with current market regime, risk-reward planning, and confirmation from other tools.
## Part of the SMC ChartSense suite
One of several focused SMC tools. Designed to work alongside other SMC ChartSense scripts for a coherent analytical workflow across the SMC vocabulary.
## Disclaimer
This is a technical analysis tool. It does not provide investment advice or trade recommendations. The author is not a SEBI-registered Research Analyst. Use at your own risk; do your own due diligence. Indicator

Indicator

ICT SMC Liquidity Grabs and OTE ZonesICT SMC Liquidity Grabs and OTE Zones
This indicator combines three core ICT Smart Money Concepts into one clean confluence tool: liquidity sweeps (grabs), Order Blocks formed on strong reversal candles, and Optimal Trade Entry (OTE) Fibonacci zones at 61.8% and 78.6%.
How it works:
- Detects liquidity grabs by checking if price sweeps the highest high or lowest low over a user-defined lookback and closes back inside.
- After a grab, it marks the Order Block only on strong candles (body > 30% of range).
- Dynamic Fibonacci levels are drawn from the most recent confirmed pivot swing high/low.
- Buy/sell entries trigger only when a liquidity grab + strong candle + price inside the OTE zone align.
- Optional stop-loss lines and exact SL levels are shown on signals for immediate risk visibility.
- Take-profit targets: TP1 at previous swing extreme, TP2 at 1.5x risk (adjustable).
Key customizations (all exposed in inputs):
- Liquidity lookback period
- Pivot strength (left/right bars) — tune for different timeframes
- Order Block box length
- TP2 multiplier and SL distance multiplier
- Full color control for every element
- Toggle visibility of grabs, blocks, Fib lines, entries, and SL
Best used on NQ and ES futures, 5-minute and 15-minute charts during NY session. Works best in ranging or mildly trending markets where liquidity sweeps are respected.
How to use:
1. Wait for LG-L + bullish candle inside buy OTE zone → long
2. SL below the OTE zone (shown automatically)
3. TP1 = previous swing high, TP2 = 1.5R
4. Reverse for shorts on LG-H
Important warnings:
- Pivot-based Fib levels only confirm after the right-side bars complete (standard repainting until confirmation — normal for all pivot indicators).
- In strong trending markets, grabs can fail more often. Reduce position size or add your own higher-timeframe filter.
- This is a confluence tool, not a standalone strategy. Always apply proper risk management (risk 0.5-1% per trade max).
- No backtest claims are made. Past performance on any chart does not guarantee future results.
All inputs are grouped logically. Default settings are optimized for NQ 5m. Test on your preferred symbol and timeframe before live use.
Open source. No invite-only or paid versions.
This is a confluence tool, not a magic arrow. You only take trades when all three things line up:
Liquidity Grab (orange LG label)
Order Block (colored box)
Price inside OTE Fib zone + strong candle
Visual Legend (what you see on the chart)
ElementColorMeaningWhat to DoLG-HOrangeLiquidity Grab High (sweep of highs)Look for short setupLG-LOrangeLiquidity Grab Low (sweep of lows)Look for long setupRed BoxRedBearish Order Block (after LG-H)Potential short zoneGreen BoxGreenBullish Order Block (after LG-L)Potential long zoneGreen LinesGreenBuy OTE zone (61.8% – 78.6% from swing low)Long entry areaRed LinesRedSell OTE zone (61.8% – 78.6% from swing high)Short entry areaRed SL LineRedStop Loss (appears only on valid entry)Your risk level
Step-by-Step How to Trade (Using Your Screenshot)
Step 1: Find a Liquidity Grab
Look for the orange LG-H or LG-L labels.
In your chart you can see many — especially on the left and middle sections.
Step 2: Wait for the Order Block
After the LG, check if a colored box appears:
LG-H + red box = bearish OB (institutional selling zone)
LG-L + green box = bullish OB (institutional buying zone)
Step 3: Check if price is in the OTE Zone
For longs: Price must be between the two green Fib lines
For shorts: Price must be between the two red Fib lines
Step 4: Confirm with candle + take the trade
Only enter when you also get a strong candle (big body) in the direction of the grab.
Indicator

Indicator

Black Tie SMCA complete Smart Money Concepts toolset on a single chart. Plots the
building blocks structure-based traders work with: market structure breaks
on two levels, order blocks, equal highs and lows, fair value gaps,
strong and weak extremes, and premium/discount zones.
WHAT IT INCLUDES
Swing Structure
Tracks the larger market shifts. Plots BOS (Break of Structure) when
price continues in the prevailing direction and CHoCH (Change of
Character) when the structural bias flips.
Internal Structure
Tracks short-term shifts within the larger swing structure. Same BOS and
CHoCH logic on a smaller pivot length. Optional confluence filter
requires the breaking candle to have more body than wick on the
breakout side, filtering weak breaks.
Order Blocks
The last opposing candle before a structural break. Plotted as a zone
that price often retests. Available on both swing and internal levels,
with separate counts and color settings for each. Volatility filtered
(ATR or Cumulative Mean Range) to avoid blocks formed on engulfing
candles. Mitigation tracked by close or wick.
Equal Highs and Equal Lows
Pivots that form at similar prices, marking liquidity pools. The
tolerance is expressed in ATR multiples, so the detection scales with
each instrument.
Fair Value Gaps
Three-bar imbalances where price moved without being balanced. Often
acts as future support or resistance. Auto-threshold filters small
gaps based on average bar size. Multi-timeframe support.
Strong and Weak Highs and Lows
The most recent significant high and low, labeled as Strong (the
opposite extreme was swept) or Weak (it held while the opposite was
swept). Useful for identifying which side of the range carries
liquidity.
Premium and Discount Zones
Divides the most recent swing range into Premium (top), Equilibrium
(middle), and Discount (bottom). For timing entries within a
structural range.
HOW TO USE
Use Swing Structure for directional context, Internal Structure for
timing. Order Blocks and Fair Value Gaps mark zones where price often
reacts. Equal Highs and Equal Lows mark where liquidity sits. Premium
and Discount zones tell you whether you are buying or selling at a
favorable location within the range.
This is a visualization toolset, not a signal generator. The chart still
requires interpretation.
SETTINGS
Display Mode controls whether all historical structures stay on chart
(Historical) or only the most recent ones are kept (Present, default).
Every component can be enabled or disabled individually so you only see
what you need on the chart. Indicator

Smart Money Concept: Liquidity Sweep [MarkitTick]💡 The Smart Money Concept: Liquidity Sweep is an advanced technical suite engineered for precision algorithmic trading and comprehensive market analysis.
this unified market intelligence hub tracks major market participant footprints by analyzing liquidity raids, structural shifts, and fair value gaps.
It operates strictly on confirmed data to ensure zero lookahead bias, making it an authoritative tool for quantitative analysts and disciplined traders who demand rigorous data integrity.
This system provides a complete and deterministic view of price action, abstracting complex market mechanics into clear, actionable signals.
Every module within this script has been optimized for minimal execution overhead while maximizing analytical depth.
● ✨ Originality and Utility
Unlike generic structure indicators that simply plot highs and lows, this tool integrates a proprietary Confluence Score Dashboard and a robust Liquidity Sweep Filter.
It does not merely react to price crossing a level; it evaluates the nature of the interaction, distinguishing between genuine market structure shifts and manipulative liquidity sweeps orchestrated by large-cap market participants.
By unifying ten distinct analytical modules into a single, performance-optimized architecture, it provides a complete and cohesive trading ecosystem without cluttering the chart.
These modules range from Order Block mitigation tracking to Session Kill Zones and Premium/Discount mapping, ensuring all aspects of price action are covered.
Furthermore, it is explicitly built for automation, seamlessly generating strictly formatted JSON payloads for direct routing to external execution platforms like PineConnector or 3Commas.
These JSON webhooks dynamically calculate and transmit precise Entry, Take Profit, and Stop Loss parameters strictly utilizing format.mintick string conversions.
● 🔬 Methodology and Concepts
The core engine operates on a multi-dimensional analysis framework, utilizing advanced market mechanics to decode price delivery algorithms:
• Fractal Market Structure
The script mathematically identifies key swing points to establish dynamic structural ranges.
It accurately tracks the active trend and flags both Break of Structure (BOS) and Change of Character (CHoCH) events based on confirmed price closes.
This ensures that the underlying trend logic is grounded in true market conviction rather than momentary volatility.
• Liquidity Engineering
The engine actively monitors previous pivot extremes for sweep conditions.
This ensures that entries are backed by strategic liquidity harvesting from large-volume entities, rather than falling for premature breakouts or retail traps.
• Multi-Timeframe Alignment
The indicator employs a higher-timeframe variance filter to gauge the overarching trend direction.
It utilizes offset data arrays with strict lookahead protection to ensure a strictly non-repainting bias confirmation across multiple chart periods.
• Inefficiency Mapping
The algorithm detects and maintains active Fair Value Gaps (FVG) and structural Inducements (IDM).
It dynamically mitigates and clears these zones from the chart as price action naturally rebalances the market inefficiency, keeping the visual workspace clean.
● 🎨 Visual Guide
The script provides a clean, highly actionable visual hierarchy directly on the chart to minimize cognitive load:
Structure Candles:
Candlesticks are dynamically colored to reflect the current internal state.
They are painted Cyan during confirmed bullish structural trends and Magenta during confirmed bearish trends.
Structural Lines and Labels:
Dashed lines project horizontally from broken swing points.
These lines are explicitly annotated with BOS or CHoCH labels indicating the exact direction and type of structural shift that occurred.
Zone Fills (Boxes):
Support and Resistance Zones: Cyan and Magenta boxes highlight active bullish and bearish Order Blocks (OB). Mitigated blocks dynamically change to a muted gray color to reduce visual noise.
Premium and Discount Zones: When enabled, the active structural range is divided into a Magenta Premium zone, a white Equilibrium line, and a Cyan Discount zone.
FVG Zones: Transparent graphical fills indicate unmitigated Fair Value Gaps waiting for price rebalancing.
Session Kill Zones: Highlighted backgrounds map the Asian (Orange), London (Gold), and New York (Green) active trading windows for temporal confluence.
Inducement Labels:
Yellow IDM tags mark minor pullbacks that have been successfully swept, confirming liquidity capture.
Confluence Dashboard:
A dynamic text label appears precisely at the point of signal generation.
It displays an aggregate score from 0 to 5, color-coded Green for High Confluence, Orange for Medium, or Red for Low.
A detailed hover-tooltip breaks down the active filters contributing to the score.
● 📖 How to Use
To maximize the utility of this robust tool, traders should seek alignment across multiple internal analytical modules:
Establish Context:
Begin by utilizing the Session Kill Zones and Premium/Discount areas to frame the current market environment.
Ideal long setups originate deep within the Cyan Discount zone during active London or New York trading hours.
Identify Liquidity Capture:
Wait patiently for a confirmed liquidity sweep or the breaking of an Inducement (IDM) level.
This validates that major market operators have accumulated positions and trapped counter-trend traders.
Confirm the Shift:
Monitor the chart for a valid BOS or CHoCH signal backed by the Confluence Score Dashboard.
A score of 4 or 5 indicates exceptionally high alignment between HTF bias, liquidity sweeps, market gaps, and session timing.
Execution and Risk:
Upon signal generation, the script automatically plots the optimal entry point.
It also calculates a dynamic ATR-based Stop Loss and a predefined Risk/Reward-based Take Profit.
These exact price coordinates are simultaneously broadcast via the automated JSON alert webhook for seamless execution.
● ⚙️ Inputs and Settings
The suite is highly customizable, divided into logical control groups for rapid configuration:
• Market Structure
Adjust the Swing Length sensitivity to filter out market noise and define the exact target Risk/Reward Ratio for automated signal generation.
• Visuals
Granular control is provided over all interface colors, including specific toggles for dynamic candle coloring and user-configurable zone opacities.
• Toggleable Filter Modules
Ten individual toggles allow users to enable or disable specific algorithmic engines, including:
① Liquidity Sweep Filter
② HTF Bias Filter (with customizable resolution)
③ Premium / Discount Zone
④ Session Kill Zones
⑤ Fair Value Gap Engine
⑥ Inducement Detection
⑦ MSS Body Confirmation (requires full body closes for valid structure breaks)
⑧ ATR-Adaptive SL (with custom length and standard deviation multiplier)
⑨ OB Mitigation Tracker
⑩ Confluence Score Dashboard
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The algorithmic foundation of this analytical suite is firmly anchored in Auction Market Theory and variance-adjusted statistical modeling.
At its core, the indicator rejects the standard premise of random walk price action, instead modeling the financial market as a highly efficient, liquidity-seeking mechanism.
By mathematically isolating structural extremes and standardizing pivot lengths, the engine calculates the probability of order flow absorption versus trend continuation.
The script analyzes the temporal decay of market inefficiencies, specifically mapping how quickly Fair Value Gaps are rebalanced by subsequent price delivery.
The inclusion of an ATR-adaptive risk model ensures that stop-loss parameters expand and contract proportionally to current market variance.
This utilizes average true range standard deviations to normalize volatility, preventing premature stop-outs during periods of high structural stress.
Furthermore, the proprietary Confluence Score relies on a multi-variate Boolean matrix.
This matrix synthesizes time-domain variables (Session Zones), spatial distribution metrics (Premium/Discount mapping), and momentum vectors (HTF Bias) into a singular, quantized metric of setup validity.
This deterministic mathematical approach removes subjective bias, relying purely on the physics of price delivery, volume distribution, and order flow imbalance.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Indicator

Liquidity Pools Pro [WillyAlgoTrader]💧 Liquidity Pools Pro is a fully free overlay indicator that automatically detects liquidity zones (equal highs and equal lows), scores them on a 4-factor strength model, catches sweeps (liquidity grabs) with reversal confirmation, and instantly delivers a complete trade plan: entry, stop-loss, three take-profits, and automatic break-even on TP1.
It unifies into a single coherent engine what traders usually have to assemble from 5–7 separate scripts: an adaptive pivot detector, a 4-factor pool scoring system (touches + recency + volume + HTF), sweep detection with close-back confirmation, an ATR-based risk calculator, risk presets, and an informative dashboard.
Works on any instrument (BTC, EURUSD, stocks, indices, futures) and any timeframe without retuning — every threshold is scaled through ATR.
🧩 WHY THESE COMPONENTS WORK TOGETHER
A simple pivot detector just plots dots. A simple sweep signal fires on every wick. A plain ATR stop-loss ignores context. Individually these are noise. Combined, they form a complete mechanism for identifying zones where smart money harvests liquidity, and trading the reversal from them.
Integration chain:
Adaptive Pivot Detection → ATR-based Equality Tolerance → Pool Matching & Clustering → 4-Factor Strength Scoring → HTF Confluence Boost → Sweep Detection (wick + close-back) → Risk Engine (SL/TP/BE) → Position Lock + State Machine → Dashboard + Alerts
— The pivot detector adapts to volatility: length grows when ATR is high (less noise on crypto) and shrinks when ATR is low (faster reaction on forex).
— Tolerance in ATR units lets the engine treat highs/lows as "equal" on any instrument — no manual tick configuration.
— Matching clusters pivots into pools (multiple touches at one zone = thicker liquidity).
— Scoring filters out weak pools and highlights exactly the ones price returns to for stop-runs.
— HTF Confluence adds +20 to strength when a pivot on the higher timeframe aligns — a filter against lower-timeframe traps.
— Sweep is identified as a wick beyond the level + close back inside (classic failed breakout / liquidity grab).
— The risk engine builds a complete trade plan for each signal and trails the stop to break-even after TP1.
— Position Lock prevents opposite signals from silently overwriting the SL/TP of an open position.
Remove any one link and the chain breaks. Sweeps without scoring = noise. Scoring without sweeps = pretty boxes that never trigger. Risk engine without position lock = silent overwrite of an open trade. This pipeline solves all three problems.
🔍 WHAT MAKES IT ORIGINAL
1️⃣ Adaptive Pivot Length — pivot length that adjusts itself to the market.
Most indicators use a fixed pivot length (5, 10, 20). That works on one timeframe of one instrument — and breaks on anything else.
Here the length is computed dynamically:
— volRatio = ATR(14) / ATR(50)
— adaptiveLen = round( clamp( 10 / max(0.5, volRatio), 4, 16 ) )
In high-volatility regimes (volRatio > 1) length shrinks to 4–6 bars — the indicator reacts faster. In low-volatility regimes (volRatio < 1) length grows to 14–16 bars — small noise is filtered out. Can be disabled and set manually (default 8 when Adaptive is OFF).
2️⃣ ATR Equality Tolerance — scale-invariant definition of "equal" levels.
Two pivots are treated as touches of the same liquidity zone if the distance between them ≤ ATR × tolerance (default 0.25).
— 0.15 = strict (tight pools, fewer matches)
— 0.25 = balanced (recommended)
— 0.50 = loose (wider pools, more matches)
This solves a fundamental problem: on BTCUSD, "equal within $50" is normal; on EURUSD the same value is huge. ATR-based tolerance gives one setting that works across all instruments.
3️⃣ 4-factor Strength Score — pool weight on a 0–100 scale.
Every pool is scored as the sum of four components, clamped to 0–100:
— 🎯 Touches (up to 35 points) : (touchCount − 1) × 9, capped at 35. One pivot = 0, two = 9, three = 18, four = 27, five+ = 35.
— ⏳ Recency (up to 35 points) : 35 × 0.5^(ageBars / halfLife). Fresh pool = 35, after one half-life = 17.5, after two = 8.75. Default halfLife = 150 bars.
— 📊 Volume (up to 20 points) : log(max(1, cumVol / median)) × 8, capped at 20. Accumulated on every bar that touches the zone — not just the pivot bar.
— 🔭 HTF Confluence (+20 bonus) : if a higher-timeframe pivot exists within tolerance × 1.5 — +20 added to the total.
Examples:
— Fresh 1-touch pool, no volume, no HTF: 0 + 35 + 0 + 0 = 35
— Fresh 2-touch pool: 9 + 35 + 0 + 0 = 44
— Fresh 3-touch pool with 2× median volume: 18 + 35 + 5.5 + 0 = 58.5
— Old (1 half-life) 2-touch pool: 9 + 17.5 + 0 + 0 = 26.5
4️⃣ Sweep Detection with close-back confirmation — real liquidity grabs, not false wicks.
Pool state transitions follow strict logic:
— STATE_ACTIVE → STATE_SWEPT: wick pierced the level but bar closed beyond it (this is a breakout, not a reversal)
— STATE_ACTIVE → STATE_MITIGATED: wick pierced AND bar closed back inside (real liquidity sweep)
The default signal (Require Body Reversal = ON) only fires on MITIGATED. This is classic SMC "fakeout → reversal" logic. Disable it and any wick sweep will fire (more aggressive, more noise).
5️⃣ Volume-at-Level Accumulation — real volume at the level, not just at the pivot.
Most indicators count volume only on the pivot bar. That's misleading — true liquidity accumulates across all the touches.
Here, on every confirmed bar the engine checks for a zone touch (high or low inside levelBot–levelTop), and if found, adds the bar's volume to the pool's cumVol. Across 40 active pools this is O(P) per bar — fast.
6️⃣ HTF Confluence Engine — higher-timeframe pivots as a filter.
When enabled, pivots from the configured HTF (default 4H) are requested via request.security with lookahead_on on a closed bar (no repaint). If a pool aligns with an HTF pivot within tolerance × 1.5 — +20 is added to its score.
Used to filter signals: HTF-confluent pools cross the strength threshold faster.
7️⃣ 5 Risk Presets + Custom — ready-made SL/TP per trading style.
— Conservative: SL 2.5×ATR, TP 1R/2R/4R
— Balanced: SL 1.5×ATR, TP 1R/2R/3R (default)
— Aggressive: SL 1.0×ATR, TP 1.5R/2.5R/4R
— Scalping: SL 0.8×ATR, TP 0.8R/1.5R/2R
— Custom: manual multipliers
Calculation:
— slDistance = ATR(14) × slMult
— entry = close on the signal bar
— SL = entry ∓ slDistance
— TP1/2/3 = entry ± slDistance × tpMult
8️⃣ Automatic Break-Even after TP1 — stop trails to entry on its own.
After TP1 is touched (and SL didn't fire on the same bar), the active SL is moved to entry. From that point on, any pullback to entry = break-even exit. TP2/TP3 logic continues to track.
Edge case is handled: if both TP1 and SL fire on the same bar, the stop is evaluated against the ORIGINAL value (effectiveSL captured before the BE update). No "magic" loss-saving.
9️⃣ Position Lock — protection against silent trade overwrites.
While a trade is active (activeDir ≠ 0), new signals are blocked. Exception: if the current bar is closing the position (SL or TP3 hit), it's treated as "closing now" and an opposite signal is allowed through.
Without this protection, a fresh signal would silently overwrite the SL/TP of an open position — critical for both manual trading and webhook-based autotrading.
🔟 Pro-style visuals with adaptive contrast.
— Liquidity zones: colored boxes with transparency tied to strength (transparency = 88 − strength × 0.33)
— Mid-line: dotted line through the center of each zone
— Pool labels: SSL/BSL × touch count volume
— SL: solid red line (dims when BE activates)
— Entry: dotted blue
— TP1/2/3: dashed green (turn cyan + ✓ when hit)
— Themes: Auto/Dark/Light with WCAG AA contrast on every background
1️⃣1️⃣ Full alert suite for autotrading — JSON or plain text.
Every signal and trade event triggers alert() in one of two formats:
— Plain text: "🟢 SWEEP BUY | TICKER | TF | Price: X | Pool: 58/100 | SL: ... | TP1: ... | TP2: ... | TP3: ... | R:R: 1.0"
— JSON for webhooks: {"action":"buy","ticker":...,"tf":...,"price":...,"sl":...,"tp1":...,"tp2":...,"tp3":...,"rr":...,"pool_strength":...}
All alerts use alert.freq_once_per_bar_close (no intra-bar duplicates).
⚙️ HOW IT WORKS — CALCULATION FLOW
Step 1 — Pivot detection: on each bar, ta.pivothigh and ta.pivotlow are evaluated with the dynamic left length (adaptiveLen) and the configured right confirmation.
Step 2 — Matching: each new pivot is compared against all active pools of the same type (high/low). If distance ≤ tolerance AND age ≤ maxLookback, it's added as a new touch (level is recalculated as a weighted average).
Step 3 — Pool creation: if no match is found, a new pool is created with touchCount = 1 and the current volume. The HTF bonus is applied if confluent.
Step 4 — Volume accumulation: on each confirmed bar, if high or low touches an active zone, the bar's volume is added to that pool's cumVol.
Step 5 — Strength compute: on demand (lazy), the final strength is calculated using the 4-factor formula.
Step 6 — Sweep check: for every active pool, wickSweep (wick beyond the level) and closeBack (close back inside) are evaluated. State becomes MITIGATED if both true; SWEPT if only wickSweep.
Step 7 — Signal generation: if pool strength ≥ minStrengthSignal AND mitigation is confirmed (or Body Reversal is OFF) AND signals are enabled — a BUY/SELL fires.
Step 8 — Risk setup: on a confirmed signal, entry/SL/TP1/TP2/TP3 are constructed, position lock is engaged, and lines + labels are drawn.
Step 9 — Trade tracking: every bar, SL/TP1/TP2/TP3 hits are evaluated with same-bar-misfire protection (justOpened flag).
Step 10 — Break-even: on TP1 first touch (without simultaneous SL hit), SL is moved to entry, the original SL line dims, and the ENTRY label gets a "→ SL (BE)" suffix.
Step 11 — Auto-reset: on SL hit or TP3 hit, all trade-state variables reset, lines are deleted, position = FLAT.
Step 12 — Pruning: when active pools > maxActivePools (default 40), the oldest swept pool is removed first, then the weakest active pool.
📖 HOW TO USE — STEP-BY-STEP FOR NEWCOMERS
🎯 Quick start (5 minutes):
1. Add the indicator to any instrument and any timeframe.
2. Wait 50–100 bars for the warmup period — the indicator needs to accumulate ATR and pivot history.
3. Keep the dashboard ON (default position: Top Right) — it shows how many pools are tracked.
4. Pick a Risk Preset for your style: Scalping for M1–M5, Balanced for M15–H1, Conservative for H4–D1.
5. Create an alert: right-click on the chart → Add alert → Condition: Liquidity Pools Pro → Any alert() function call → Frequency: Once per bar close.
👁️ Reading the chart:
— 🔴 Red box = Sell-Side Liquidity (SSL) = equal highs where long stops sit. Price tends to wick into them to harvest stops.
— 🟢 Green box = Buy-Side Liquidity (BSL) = equal lows where short stops sit.
— 🔢 Number in brackets = pool strength, 0–100. Higher = thicker liquidity.
— ✖ ×3, ×4 = number of touches at this zone. More touches = more reliable.
— 📊 2.5M, 850K = cumulative volume traded at the level.
— ⚪ Dimmed gray box = swept or mitigated pool (already triggered).
— 🟢 "Long" below the bar = buy signal (BSL sweep + reversal).
— 🔴 "Short" above the bar = sell signal (SSL sweep + reversal).
— 🔵 Blue dotted line = ENTRY.
— 🔴 Red solid line = SL (stop-loss).
— 🟢 Green dashed lines = TP1/TP2/TP3. Cyan with ✓ = already hit.
— 🟠 Amber ENTRY label with "→ SL (BE)" = stop has been moved to break-even.
📊 Dashboard fields:
— Symbol / TF: current instrument and timeframe.
— Pivot Len: pivot length (with "(adapt)" tag when Adaptive is ON).
— Active Pools: total active pools and side breakdown (↑ highs, ↓ lows).
— Strong SSL ↑ / Strong BSL ↓: price and strength of the strongest pool on each side.
— Nearest Above / Below: pools closest to current price.
— Stats: Mit:N Sig:M/T — number of mitigations, signals, total pools. If Sig = 0 — lower the sensitivity (see Tuning).
— Position: current trade state (LONG/SHORT/FLAT).
— SL / TP1 / TP2 / TP3: levels of the active trade. ✓ = hit. "BE @" = stop at break-even.
— Plan R:R: TP1 multiplier (1.0R, 1.5R, 2.0R, etc.).
— Risk %: percent risk from entry to SL.
🔧 Tuning guide — when something feels off:
— Too few signals (Stats Sig: 0/N): lower Min Pool Strength for Signal from 25 to 15. Or disable Require Body Reversal — pure wick sweeps will fire.
— Too many signals, lots of noise: raise Min Pool Strength to 40 (only 2-touch pools) or 60 (only strong multi-touch with volume). Enable HTF Confluence.
— Too many zones, chart is crowded: raise Min Strength to Display to 30–40 — weak pools will be hidden but still tracked internally.
— Zones too narrow, false equality: increase Equality Tolerance from 0.25 to 0.40.
— Zones too wide, catching everything: decrease Equality Tolerance to 0.15.
— Stops getting hit too often: switch from Balanced to Conservative (SL 2.5×ATR instead of 1.5×ATR).
— Signals appear but no position opens: a trade is already active (Position Lock). Check the Position row in the dashboard.
— Strange scoring on forex: disable Volume-Weighted Strength (forex often lacks reliable volume data).
💡 TRADING IDEAS
— Manual trading on signals: only take trades where pool strength ≥ 50 and HTF Confluence is enabled.
— Zones only, no signals: disable Enable Sweep Signals and use the indicator as a pure liquidity map for manual setups.
— Scalping setup: preset Scalping + M1–M5 + Min Strength 15 + Adaptive Pivot ON.
— Swing setup: preset Conservative + H4–D1 + Min Strength 50 + HTF Confluence ON (Daily HTF).
— Webhook autotrading: enable Webhook JSON Format + alert.freq_once_per_bar_close + connect a bot to the JSON payload.
— Confluence with other indicators: combine signals with a trend filter (EMA50, SuperTrend) — only longs above EMA50, only shorts below.
⚙️ KEY SETTINGS
🎯 Liquidity Detection:
— Adaptive Pivot Length (default ON): auto-adjust pivot length to volatility.
— Manual Pivot Length (8): used when Adaptive is OFF.
— Right Confirmation Bars (2): bars to the right needed to confirm a pivot.
— Equality Tolerance ×ATR (0.25): level equality threshold.
— Max Pivot Lookback (200): how far back to search for matches.
— Max Active Pools (40): hard cap on simultaneously tracked pools.
💪 Strength Scoring:
— Min Strength to Display (0): pools below this score are hidden (visual only).
— Strength Half-Life (150): bars after which the recency factor halves.
— Volume-Weighted Strength (ON): include the volume factor in scoring.
📡 Sweep Signals:
— Enable Sweep Signals (ON): generate BUY/SELL signals.
— Min Pool Strength for Signal (25): minimum pool strength to fire.
— Require Body Reversal (ON): require close-back inside the level (recommended).
🔭 HTF Confluence:
— Enable HTF Confluence (default OFF): use higher-timeframe pivots as a filter.
— Higher Timeframe (240 = 4H): which HTF to query.
🛡️ Risk Management:
— Risk Preset (Balanced): Conservative / Balanced / Aggressive / Scalping / Custom.
— ATR Length (Risk) (14): ATR period for SL distance.
— Custom SL/TP1/TP2/TP3 ×ATR / ×Risk : manual multipliers.
— Show SL/TP Lines & Labels (ON): draw trade levels on the chart.
— Break-Even After TP1 (ON): auto-trail stop to entry.
— Show % Distance on Labels (ON): append % from entry to SL/TP labels.
🎨 Visual:
— Theme (Auto): Auto / Dark / Light with adaptive contrast.
— Show Liquidity Zones / Strength Bar / Labels / Volume / Swept Zones / Buy-Sell Markers / Watermark : visual toggles.
— Label Font Size / Signal Marker Size : Tiny → Huge.
📊 Dashboard:
— Show Dashboard (ON), Position (Top Right): corner placement.
🔔 Alerts:
— Webhook JSON Format (OFF): JSON or plain text.
— Alert on SL Hit (ON), Alert on TP Hits & BE (OFF): alert toggles.
🎨 Colors:
— Bullish (Demand) Color / Bearish (Supply) Color : zone colors.
🔔 ALERTS
— 🟢 SWEEP BUY — BSL sweep + reversal, payload: ticker, tf, price, sl, tp1, tp2, tp3, rr, pool_strength
— 🔴 SWEEP SELL — SSL sweep + reversal, same payload structure
— 🛑 SL HIT — stop-loss triggered (or 🛡️ BE STOP-OUT when Break-Even is active)
— 🎯 TP1 HIT / 🎯 TP2 HIT / 🏆 TP3 HIT — take-profit hits (only fired when SL didn't trigger on the same bar)
— 🛡️ BREAK-EVEN — stop moved to entry
All alerts support both plain text and JSON webhook formats. All fire on alert.freq_once_per_bar_close — no intra-bar duplicates and no repaint.
⚠️ IMPORTANT NOTES
— 🚫 No repainting. Signals are generated only on barstate.isconfirmed (closed bar). Pivots are confirmed with a right window of rightConfirmInput bars (default 2) — meaning the actual swing point is in the past by N bars, but the indicator does not redraw already-drawn pools. HTF data via request.security uses lookahead_on on the offset bar — a standard non-repainting technique.
— 📐 Warmup period: the first 50+ bars (max(50, atrLenRisk + 10)) the indicator does not generate signals — it accumulates ATR and pivot history.
— ⚖️ Position Lock is not absolute against opposite signals: if the active trade closes on the current bar (SL or TP3 hit), an opposite signal will pass. This is by design — instant two-way blocking is impossible.
— 📊 Volume factor is optional: on forex instruments without reliable volume, disable Volume-Weighted Strength.
— 🛠️ This is an analysis tool, not a trading bot. The indicator detects liquidity zones, scores them, identifies sweeps, and proposes a trade plan — but the decision to open a position is yours. Past performance does not guarantee future results. Test on demo before trading live.
— 🌐 Universal compatibility: works on any instrument (crypto, forex, stocks, indices, futures) and any timeframe (M1 → M).
Version v1.1.5. Fully free. Open-source. Indicator

Indicator

[ A L P H A X ] Structure EdgeAlphaX Structure Edge — Swing Structure Detection, BOS, CHoCH, Structure Levels, Premium/Discount Zones, Swing Forecast & Fibonacci Extensions
AlphaX Structure Edge is a professional-grade Smart Money Concepts indicator that maps the complete picture of market structure directly on your chart. It detects confirmed swing pivots, identifies Break of Structure and Change of Character events in real time, draws adaptive structure levels with touch-count strength scoring, visualizes the Premium and Discount range between the last major swing high and low, and projects the next probable swing target using a statistical forecast engine built from your instrument's own historical swing behavior. Every element works together as a single unified system — from the first confirmed pivot to the forecast target and its Fibonacci extensions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📸 Visual Overview
AlphaX Structure Edge on XAUUSD — swing pivot markers, BOS and CHoCH labels, structure level lines with pill labels, Premium/Discount/EQ band, forecast corridor with step markers, target zone, and Fibonacci extensions
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 Swing Pivot Detection
The foundation of Structure Edge is a robust pivot detection engine built on ta.pivothigh and ta.pivotlow — Pine's native confirmed pivot functions. A pivot is only confirmed once the required number of bars on both sides have closed without making a new extreme, meaning every pivot you see on the chart is structurally confirmed and non-repainting.
The Swing Length setting controls how many bars on each side are required to confirm a pivot. Larger values produce fewer but stronger, more institutionally significant pivots. Smaller values are more sensitive and catch minor structure swings.
Every confirmed swing high is marked with a small red triangle above the bar. Every confirmed swing low is marked with a small green triangle below the bar. These markers appear at the actual pivot bar, offset by the confirmation delay, and give you a clean visual map of the market's structural sequence at a glance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Break of Structure (BOS) and Change of Character (CHoCH)
Market structure is defined by the sequence of highs and lows price is printing. AlphaX Structure Edge tracks this sequence in real time and identifies two critical structural events:
Break of Structure (BOS)
A BOS occurs when price closes beyond the last confirmed swing level in the direction of the current trend — confirming that the trend is continuing. A bullish BOS means price closed above the last confirmed swing high, extending the bullish structure. A bearish BOS means price closed below the last confirmed swing low, extending the bearish structure.
BOS events are marked with a dashed horizontal line drawn from the broken swing level to the close bar, and a compact BOS label. Bull BOS uses green tones. Bear BOS uses red tones. BOS signals that the prevailing trend remains intact and confirms continuation.
Change of Character (CHoCH)
A CHoCH occurs when price closes beyond the last confirmed swing level in the opposite direction of the current trend — the first sign that market character is changing. If the trend has been bullish and price closes below the last confirmed swing low, the structure is printing a CHoCH. If the trend has been bearish and price closes above the last confirmed swing high, the same event occurs in the bullish direction.
CHoCH events are marked with a solid line and a prominent CHoCH ▲ or CHoCH ▼ label. CHoCH is not a confirmed reversal — it is the earliest available warning that the current trend may be ending and new structure is forming. The distinction between BOS and CHoCH is critical:
A BOS in the direction of the trend → trend continuation. Stay aligned with the bias.
A CHoCH against the trend → character is changing. Be alert for reversal setups forming.
A CHoCH followed by a BOS in the new direction → structural reversal confirmed.
Both events are confirmed on bar close only — no repainting.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Structure Levels with Touch-Count Strength Scoring
Every confirmed swing pivot creates a Structure Level — a horizontal line drawn from the pivot bar forward in time with a right-side pill label showing the exact price and touch count.
Structure levels are not static zones. AlphaX Structure Edge manages every level dynamically bar by bar:
Touch counting: When price enters the level's sensitivity band without closing through it, the touch counter increments. Levels that have been tested two or more times display a ×N badge on their pill label — showing exactly how many times the market has respected that level. When the Highlight Tested Levels option is enabled, multi-touch levels are rendered with a stronger, more opaque line — making the most significant levels immediately visible without reading the labels.
Age fading: Unbroken levels gradually fade in opacity as they age relative to the Max Level Age setting. Fresh levels are more prominent; old untested levels fade toward transparency. This keeps the chart focused on recently relevant structure without manually cleaning up old levels.
Break detection: When price closes beyond a level by more than the sensitivity threshold, the level is considered broken. Its line switches to a dotted style and fades to a low-opacity color — remaining visible as a reference point for prior structure without competing for attention with active levels.
Auto-removal: Broken levels are removed 30 bars after breaking. Unbroken levels older than the Max Level Age setting are removed automatically.
Structure levels with pill labels — multi-touch levels show ×N badge and are rendered with stronger color
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Premium / Discount / Equilibrium Band
Between the last confirmed swing high and swing low lies the institutional trading range . AlphaX Structure Edge visualizes this range as a unified band divided into three zones:
PREM (Premium) — the upper half of the range. Price is trading above the midpoint, meaning it is relatively expensive compared to the recent range. Smart money institutions are more likely to be distributing (selling) in this zone.
DISC (Discount) — the lower half of the range. Price is below the midpoint and relatively cheap. Smart money institutions are more likely to be accumulating (buying) in this zone.
EQ (Equilibrium) — the exact midpoint of the range, marked with a dotted line. This is the fair value level of the current swing range. Price often finds temporary resistance or support at this level before continuing to one extreme or the other.
The band updates dynamically on every bar using the most recent confirmed swing high and low — it always reflects the current structural context, not a fixed historical range.
How to use the Premium/Discount band:
In a bullish structure (after a BOS up), look for long entries from the Discount zone. Price pulling back into Discount during an uptrend is a Smart Money accumulation opportunity.
In a bearish structure (after a BOS down), look for short entries from the Premium zone. Price rallying into Premium during a downtrend is a distribution opportunity.
EQ acts as a decision point — price reacting from EQ suggests conviction in the current direction. Price grinding through EQ without reaction suggests the move has momentum behind it.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔮 Swing Forecast Engine
AlphaX Structure Edge contains a statistical forecast engine that projects the next probable swing target based on your instrument's own historical swing behavior — not a fixed percentage or ATR multiple.
How the forecast is calculated:
Every time a swing direction change occurs, the engine records the size of the completed swing as a percentage move and its duration in bars. These values accumulate over the last N swings (controlled by the History Samples setting). When the last bar is reached, the engine aggregates these historical swings using your chosen method and projects the next swing from the current pivot:
Weighted — the most recent swings carry more weight than older ones. Best for instruments where recent behavior is more predictive than distant history.
Average — all samples are weighted equally. More stable and resistant to individual outliers.
Median — uses the middle value of all recorded swings, ignoring extremes entirely. Best when your instrument occasionally prints unusually large or small swings that skew the average.
The standard deviation across all recorded swings determines the uncertainty band — how wide the forecast corridor is. A narrow corridor means your instrument moves consistently. A wide corridor means swing sizes vary significantly and the target should be treated with lower confidence.
Forecast visuals:
Forecast Corridor — a semi-transparent box from the current pivot to the projected target area, sized by the uncertainty band. Bull forecasts use green tones. Bear forecasts use red tones.
Center Trajectory — a dashed line from the current pivot price to the projected target, showing the expected path of the move.
Step Markers — three small horizontal tick marks along the trajectory at evenly spaced intervals, creating a visual stepping path feel along the projected route.
Target Zone — a tighter box at the end of the corridor showing the exact projected target level and the projected percentage move. When the target overlaps with an existing structure level, the target box changes color to match the level and displays a ⬡ confluence badge — highlighting a higher-probability target.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Fibonacci Extensions with Structure Confluence Highlighting
Beyond the forecast target, AlphaX Structure Edge draws up to five Fibonacci extension levels projected from the current swing origin. Five levels are available with independently toggleable and configurable ratios:
Level 1 — 1.000 (100% of the projected move, the base target)
Level 2 — 1.272 (127.2%)
Level 3 — 1.618 (161.8%)
Level 4 — 2.000 (200%, disabled by default)
Level 5 — 2.618 (261.8%, disabled by default)
All five levels are fully customizable — you can change the ratio values to any number you prefer, not just the classic Fibonacci sequence.
Structure confluence highlighting: When a Fibonacci level falls within the sensitivity band of an existing active structure level, that fib line is rendered with a thicker width and stronger color, and a ⬡ badge appears on its label. Fib levels that coincide with prior structure are meaningfully stronger targets than those in open price space — the highlighting makes these confluences immediately visible without manual comparison.
Fibonacci extensions beyond the forecast target — ⬡ badges highlighting levels that overlap with active structure levels
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 Live Dashboard
The dashboard gives a real-time text summary of every structural condition in a compact panel:
STRUCTURE — current structure trend: ▲ BULLISH, ▼ BEARISH, or — UNDEFINED. Highlighted in the corresponding color when a clear bias is active.
LAST PIVOT — whether the most recently confirmed pivot was a high or low.
BOS — whether a BOS occurred on the current bar and in which direction. Highlighted when active.
CHoCH — whether a CHoCH occurred on the current bar and in which direction. Highlighted when active.
LEVELS — count of active unbroken structure levels currently on the chart.
FORECAST — the projected direction and average percentage move based on current swing history.
CONFLUENCE — shows ⬡ YES — HIGH PROB when the forecast target overlaps with an active structure level. This is one of the most important rows — a forecast target with structure confluence is a significantly higher-probability setup.
SAMPLES — how many swing samples have been loaded versus the configured maximum.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 Robust swing pivot detection using ta.pivothigh / ta.pivotlow — non-repainting, confirmed on bar close
📈 BOS detection — dashed line and label at the broken swing level, directional color coded
⚠ CHoCH detection — solid line and label at the first counter-trend structural break, the earliest reversal warning
📊 Structure levels with touch counting — lines + pill labels, multi-touch levels highlighted with ×N badge and stronger color
🎯 Premium / Discount / EQ band — institutional range visualization updating dynamically from the current swing high and low
🔮 Statistical swing forecast — projects next target from historical swing % data using Weighted, Average, or Median aggregation
📐 Forecast uncertainty corridor — width driven by standard deviation of historical swings, narrower when price moves consistently
⬡ Target confluence detection — forecast target and fib levels highlighted when they overlap with active structure levels
📏 Five configurable Fibonacci extension levels — all ratios adjustable, individually toggleable
📋 Live 8-row dashboard — structure trend, last pivot, BOS, CHoCH, level count, forecast, confluence, sample count
🔔 8 alert conditions — swing high/low confirmed, bull/bear BOS, bull/bear CHoCH, any BOS, any CHoCH
✅ Zero repainting — all signals confirmed on bar close
🎨 Full AlphaX visual theme — yellow-green for bullish, red for bearish, dark background dashboard, consistent throughout
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Detection
Swing Length — bars required on each side to confirm a pivot (default: 16)
Market Structure
Show BOS — toggle BOS lines and labels
Show CHoCH — toggle CHoCH lines and labels
Show Premium / Discount / EQ Band — toggle the institutional range visualization
Structure Levels
Show Structure Levels — toggle all level lines and pill labels
Level Sensitivity (ATR×) — controls the touch detection band and break threshold, scaled to ATR(200)
Max Level Age (bars) — how long an unbroken level remains before automatic removal
Highlight Tested Levels — render multi-touch levels with stronger color and show ×N badge
Swing Forecast
History Samples — number of recent swing legs used for the projection calculation (default: 20)
Calculation — aggregation method: Weighted (recent swings count more), Average (equal weight), Median (ignores outliers)
Projection Width — how many bars to the right the corridor and target are drawn
Show Forecast Corridor — toggle the corridor box and center trajectory
Show Target Zone — toggle the target box and percentage label
Show Fib Extensions — toggle Fibonacci extension lines and labels
Level 1–5 — independently enable/disable each Fib level and set its ratio
Dashboard
Show Dashboard — toggle the dashboard panel
Position — Top Right, Top Left, Bottom Right, Bottom Left
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Structure Edge — Step by Step
Step 1 — Establish the structural bias
Check the STRUCTURE row on the dashboard — is it ▲ BULLISH or ▼ BEARISH?
A confirmed BOS in the bullish direction with a sequence of higher highs and higher lows = bullish structure. Only look for long setups.
A confirmed BOS in the bearish direction with lower highs and lower lows = bearish structure. Only look for short setups.
If a CHoCH just printed, the structure is transitioning. Wait for a BOS in the new direction before committing to the new bias.
Step 2 — Identify your entry zone
In bullish structure, price should be pulling back. Look for the pullback to enter the Discount zone below EQ. This is where smart money accumulates.
In bearish structure, price should be rallying back. Look for the rally to enter the Premium zone above EQ. This is where smart money distributes.
Check whether an active structure level sits inside the Discount or Premium zone — a level that has been tested multiple times (×N badge) inside the Discount during an uptrend is a high-confluence long entry zone.
Step 3 — Confirm the entry with structure signals
Wait for price to reach your identified zone — Discount during uptrends, Premium during downtrends.
Look for a BOS in the trend direction after the pullback. A new BOS confirming the trend is resuming from Discount (bull) or Premium (bear) is your entry trigger.
If you see a CHoCH appear at the zone — price briefly broke the swing level against the trend but then reversed — this is a classic liquidity sweep. If price then resumes in the trend direction with a new BOS, this is a high-probability entry.
Step 4 — Use the forecast target for your take profit
Check the forecast corridor — where is the projected target? This is your primary TP reference.
If the CONFLUENCE row shows ⬡ YES — HIGH PROB, the forecast target coincides with an active structure level. This level is likely to act as resistance (in a bull move) or support (in a bear move). Consider taking full or partial profit at the target zone.
Use the Fibonacci extension levels for secondary targets. The 1.272 and 1.618 levels are particularly significant. Any Fib level with a ⬡ badge overlapping a structure level is a priority target.
Step 5 — Manage with structural signals
If a CHoCH prints against your open trade, the structure is warning you. Tighten your stop or reduce position size.
If a BOS prints in your trade direction during the move, the structure is extending — the forecast target may be exceeded. Consider trailing your stop to the most recent BOS level.
If price reaches the forecast target zone but fails to break through, and a CHoCH appears, the move may be complete. Close the trade.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
Swing High Confirmed — new swing high confirmed after full bar-close validation
Swing Low Confirmed — new swing low confirmed after full bar-close validation
Bull BOS — price closed above the last confirmed swing high in a bullish continuation
Bear BOS — price closed below the last confirmed swing low in a bearish continuation
Bull CHoCH — price closed above the last swing high against a bearish structure — potential reversal up
Bear CHoCH — price closed below the last swing low against a bullish structure — potential reversal down
Any BOS — fires on any BOS event regardless of direction
Any CHoCH — fires on any CHoCH event regardless of direction
All alert messages include {{ticker}} and {{interval}} for webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Smart Money Concepts traders — built specifically around the SMC framework of BOS, CHoCH, structure levels, Premium/Discount, and institutional swing targets
📉 Forex and Gold traders — works across all liquid instruments where swing structure drives price behavior
📊 Swing traders and intraday traders — the forecast engine adapts to both short and longer timeframe swing behavior automatically
🧠 Systematic traders — BOS and CHoCH provide objective, non-discretionary structural signals with zero repainting
📈 Traders who want one complete structure tool — pivots, BOS, CHoCH, levels, Premium/Discount, forecast, and Fibs in a single indicator
🔔 Alert-driven traders — 8 alert conditions with clean webhook-ready messages for every structural event
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All pivot detections and BOS/CHoCH signals are confirmed on bar close — this indicator does not repaint. Signals visible on historical bars will not change or disappear.
The forecast engine requires a minimum of 2 completed swing samples before it begins projecting. The SAMPLES row on the dashboard shows how many have loaded. The more samples loaded, the more statistically stable the forecast becomes.
Increasing the Swing Length reduces the frequency of pivots and structural signals but increases their significance — each event represents a larger, more meaningful market structure event. Decreasing it produces more frequent signals on smaller structural moves.
The Level Sensitivity (ATR×) setting controls both the touch detection radius and the break threshold simultaneously. Increasing it creates a wider zone around each level — more touches are registered and a larger close is needed to break it. Decreasing it is more precise but may register fewer touches on fast-moving instruments.
The forecast target is a statistical projection based on historical average swing behavior — not a guarantee. It represents the most probable outcome given recent history. Always use proper risk management and do not treat the forecast target as a certain price destination.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who read price through the lens of structure — where every swing tells a story and every break means something. Indicator

Breaker Confluence Engine [Nick789]Breaker Confluence Engine
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Breaker Confluence Engine is built to map out breaker-style zones, Fair Value Gaps, and key confluence areas without making the chart look like a Christmas tree.
The idea is simple:
Use a higher source timeframe to find the important breaker and FVG structure, then project those zones onto the chart you are actually trading from.
So instead of constantly switching timeframes, you can sit on your lower timeframe and still see where the bigger structure is sitting.
This tool is not about throwing random buy and sell labels everywhere. It is designed to help you see where price has shifted, where imbalance is sitting, and where price may react if it comes back for a retest.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT IT DOES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Breaker Zone Detection
The script detects bullish and bearish breaker-style zones using pivot-based swing structure.
These zones help show areas where price has broken through previous structure and may later come back to test that area.
- Bullish breaker zones can act as support
- Bearish breaker zones can act as resistance
- Zones extend forward until tested, filled, or invalidated
- Overlap prevention helps avoid stacking too many similar zones
- Zone limits help keep the chart clean
2. Fair Value Gap Mapping
The script can detect 3-candle Fair Value Gaps from the selected source timeframe and project them onto the current chart.
There is also an optional current-timeframe FVG layer for traders who want more lower-timeframe detail.
Use the source FVGs for the cleaner main view.
Turn on current-timeframe FVGs when you want to dig deeper or review price action.
3. Breaker + FVG Confluence
This is where the tool starts to get interesting.
When a breaker zone lines up with a source-timeframe FVG, the zone is highlighted as a stronger confluence area.
Not every breaker matters.
Not every FVG matters.
But when structure shift and imbalance show up together, that area is worth paying attention to.
4. Zone Rating System
Each zone can be rated using a mix of confluence factors:
- Displacement
- Relative volume
- Directional delta proxy
- Sweep context
- FVG alignment
The rating scale is:
Weak → Interest → Momentum → Absorption → Institutional
This gives you a quick way to separate basic zones from the ones that actually have a bit more story behind them.
Weak zones can stay simple by default, or you can turn on full weak rating details if you want to study everything.
5. Tested and Mitigated Tracking
The script tracks whether a zone is fresh, tested, or already used up.
- Fresh zones show areas price has not returned to yet
- Tested zones show areas price has touched
- Filled or invalidated zones can be hidden automatically
- Or you can fade them for review and back testing
This helps you avoid treating an old used-up zone like it is still fresh.
6. Potential Breaker Zones
The optional Potential Breaker layer gives an early heads-up when price is approaching a prior swing level before a confirmed breaker forms.
It uses an ATR-based proximity threshold.
Think of it as:
“Price is getting close. Something may be building here.”
Potential zones are removed once the breaker confirms or the level gets invalidated.
7. Source Timeframe & Session Control
Choose the source timeframe you want the main logic to come from.
Examples:
- 5m / 15m / 30m for scalping
- 1H / 4H for intraday structure
- 4H / Daily for bigger context
There is also an optional New York session filter for traders who want to focus only on a specific liquidity window.
8. Alerts
The script includes alerts for:
- Bullish breaker events
- Bearish breaker events
- Source-timeframe FVGs
- Current-timeframe FVGs
- Potential breaker events
- Mitigation and fill events
- Master alert for combining events into one cleaner message
The master alert is useful if you do not want a massive alert list or you are setting up webhook-style workflows.
9. Status Table
A small table on the chart shows the main tool status at a glance:
- Source timeframe
- Current chart timeframe
- Session filter
- Source FVG status
- Current-timeframe FVG status
- Potential Breaker status
- Rating status
Simple, clean, and easy to check.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE IT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Pick Your Source Timeframe
Choose the timeframe you want the important structure to come from.
For example, you might trade on the 1m or 5m chart, but use 15m or 1H as the source timeframe.
That lets you trade lower-timeframe entries while still respecting the bigger zones.
2. Watch the Breaker Zones
Breaker zones show where price has shifted through prior structure.
If price comes back to that area, it may react, reject, continue, or fail. The zone gives you a place to focus, not a guaranteed trade.
3. Look for Confluence
The best zones usually have more than one thing going for them.
A breaker by itself is okay.
A breaker with FVG alignment, displacement, sweep context, volume, and delta support is much more interesting.
That is the whole point of the tool.
4. Pay Attention to Tested Status
Fresh zones are usually cleaner.
Once price has already tapped, filled, or invalidated a zone, it may not carry the same weight anymore.
The tested and mitigated tracking helps keep that clear.
5. Keep the Chart Clean
For live trading, less is usually better.
A clean setup could be:
- Source FVGs: On
- Current-timeframe FVGs: Optional
- Hide Mitigated: On
- Prevent Overlap: On
- Potential Breakers: Off
- Weak Ratings: Off
For review and back testing, turn more layers on and study how price reacts.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BEST USE CASE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This tool is best used as a structure and confluence map.
It helps answer questions like:
- Where is the higher-timeframe breaker?
- Is there an FVG sitting with it?
- Has the zone already been tested?
- Did price sweep before forming the zone?
- Is the move away strong or weak?
- Is this area actually worth watching?
It is not meant to replace your own trading plan.
It is meant to make the important areas easier to see.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
IMPORTANT NOTES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Source-timeframe logic confirms after the source candle closes
- The tool uses lookahead-off source timeframe logic
- Current-timeframe FVGs are optional and can add more visual load
- Zone ratings are guides, not guarantees
- Best used on liquid markets with clean price action
- Keep your chart clean if you are using it live
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is for educational and informational use only.
It does not provide financial advice, guaranteed signals, or automatic trade decisions.
Trading involves risk. Always use your own analysis, confirmation, risk management, and testing before making any trading decision. Indicator

Hour Stats [NQ Stats x CantoLab]A statistical tool for NQ intraday traders built around research from NQ Stats (NQStats on twitter / nqstats.com). Credit to NQ Stats for the original concept and data — published here as an open source indicator with permission.
What it does?
For each New York session hour (08:00 – 16:00 NY time), the indicator tracks a specific setup:
1)Price opens strictly inside the prior hour's range
2)Price breaches the prior hour high or low by at least 1 tick (0.25 pts)
3)Whether price reverts back to the current hour open before the hour closes
Only the first breach per hour is counted. Reversion is confirmed when any bar's wick touches or crosses the hour open after the breach occurs.
What gets plotted
When the setup triggers, the indicator draws the following levels for that hour:
Hour Open — the high probability reversion target. In Simple mode labelled as "High Prob. Retrace", in Advanced mode shows the statistical probability based on which 20-minute segment the breach occurred in
PHH / PHL Swept — marks the breached prior hour high or low
PHH / PHL Target — the opposite side of the prior hour range, the secondary target if reversion extends further
PHM (Prior Hour Mid) — the equilibrium of the prior hour range, visible in Advanced mode only
Sweep Mark — a small shape plotted on the candle where the breach is first detected (x, +, or diamond, configurable)
Vertical dividers — split each hour into its three 20-minute segments
Simple vs Advanced mode
Simple — shows Hour Open, swept level, and opposite target. Clean and uncluttered for execution focus.
Advanced — adds the Prior Hour Mid level and overlays per-segment reversion probabilities directly on the prior hour high and low, showing the statistical likelihood of reversion depending on when in the hour the breach occurs.
Advanced Mode - The 20-minute breakdown
Each hour is divided into three 20-minute windows (00–20, 20–40, 40–60). The timing of the breach within these windows significantly affects reversion probability.
As a general rule, first segment breaches carry the highest probability of reversion — the 09:00 hour first segment sits at 87.4% historically. Probabilities are pulled from 10 years of NQ data.
Settings
Mode — Simple or Advanced
Show History — keep or clear previous setups as new ones form
Time Filter — toggle NY session filter on/off, adjustable session window
Show Optimal Timeframe Message — on-chart warning if you are above 5min timeframe
Per-level toggles — color, style (Solid/Dotted/Dashed) and width for each plotted level
Sweep Mark — toggle, color, and shape
Notes
Built for NQ Futures. Behaviour on other instruments is untested
Best used on 1m – 5min timeframes. Warning displays above 5min, error displays at 60min and above
All times are New York time
Probability data is derived from 10 years of NQ historical data by @NQStats
This indicator does not provide financial advice or a complete strategy. You are responsible for how you build around and execute on this data
Indicator

Liquidity Transfer Engine [Phenlabs]📊 Liquidity Transfer Engine
Version: PineScript™ v6
📌 Description
Liquidity Transfer Engine is a post-sweep auction acceptance model designed for traders who already use liquidity, market structure, SMC, order block, or FVG-based workflows.
Instead of only marking where liquidity was taken, this indicator focuses on what happens after the sweep. It detects a liquidity sweep, identifies a reclaim boundary, then observes the next confirmation window to determine whether price truly accepts the reclaimed side of value.
The goal is to help traders avoid entering purely on the dramatic sweep candle. By scoring the market’s ability to hold the reclaimed auction, the indicator provides a structured Transfer Score from 0–100 and classifies the event as a Failed Sweep, Temporary Reclaim, Accepted Transfer, or High-Confidence Transfer.
🚀 Points of Innovation
• Post-sweep acceptance scoring: Measures what happens after a liquidity sweep rather than only detecting the sweep itself.
• Structural transfer model: Converts sweep behavior into a 0–100 Transfer Score based on auction acceptance, rejection, and defense.
• Replay-safe score locking: Finalizes the score only after the observation window closes, preventing unfinished events from being treated as confirmed.
• Multi-factor auction logic: Uses time spent beyond the reclaim boundary, close quality, wick behavior, volume participation, and extreme defense.
• Decision-filter framework: Designed to help traders decide whether to size up, wait, or skip a sweep instead of generating simplistic buy/sell signals.
• Clean dashboard output: Displays the latest sweep type, direction, boundary, window progress, defense status, score, and state in one structured panel.
🔧 Core Components
• Sweep Detector: Identifies potential liquidity sweeps from swing highs/lows, equal highs/lows, and session highs/lows.
• Reclaim Boundary Engine: Selects the structural level that price must reclaim, such as the sweep origin body midpoint, prior range midpoint, or last internal swing.
• Acceptance Engine: Observes the next user-defined number of bars after a sweep and measures whether price can hold the reclaimed side.
• Transfer Score: Combines multiple auction factors into one 0–100 score that represents the quality of the post-sweep transfer.
• State Classifier: Converts the final score into readable market states including Failed Sweep, Temporary Reclaim, Accepted Transfer, and High-Confidence Transfer.
• Dashboard System: Provides a compact real-time readout of the most recent liquidity transfer event.
🔥 Key Features
• Swing high/low sweep detection: Captures classic liquidity runs above prior highs and below prior lows.
• Equal high/low sweep detection: Identifies engineered liquidity pools where price raids clustered highs or lows.
• Session high/low sweep detection: Tracks session liquidity sweeps for intraday traders.
• Configurable observation window: Lets users score the next 3–8 bars after a reclaim.
• Weighted scoring system: Allows traders to adjust the importance of time acceptance, close quality, wick asymmetry, volume persistence, and extreme defense.
• Boundary selection modes: Includes Auto, Sweep Origin Body Mid, Prior Range Mid, and Last Internal Swing.
• Finalized event labels: Marks completed sweep events with their final state and Transfer Score.
• Alert-ready logic: Sends alerts only after the score is finalized and meets the user-defined threshold.
• Object management: Retains recent events while limiting historical clutter.
🎨 Visualization
• Reclaim Boundary Line: A dashed line marks the level that price must accept beyond after the sweep.
• Finalized Event Labels: Completed events are labeled with the sweep type, final state, and Transfer Score.
• Color-Coded States: Higher-quality transfers use stronger colors, while failed or temporary reclaims are displayed more cautiously.
• Dashboard Panel: Shows the latest sweep, direction, selected boundary, observation progress, acceptance reading, defense status, locked score, and final state.
📖 Usage Guidelines
Sweep Detection Settings
• Pivot Lookback
Default: 5
Range: 2–50
Description: Controls how many bars are used to confirm swing highs and lows. Lower values detect more sweeps but may be noisier. Higher values detect more meaningful structure but produce fewer events.
• Detect Equal H/L Sweeps
Default: Enabled
Range: On/Off
Description: Enables detection of equal high and equal low liquidity pools. Useful for SMC traders who monitor engineered liquidity clusters.
• Equal H/L ATR Tolerance
Default: 0.10
Range: 0.00+
Description: Defines how close two pivot levels must be to qualify as equal highs or equal lows. Increase this on volatile markets and lower it for cleaner structure.
• Detect Session H/L Sweeps
Default: Enabled
Range: On/Off
Description: Enables detection of session high and session low sweeps. Useful for intraday trading around major session liquidity.
• Session
Default: 0930–1600
Range: User-defined
Description: Defines the session used for session high/low tracking.
• Min Sweep Penetration
Default: 0.05 ATR
Range: 0.00+
Description: Defines how far price must move beyond a liquidity level to count as a sweep. Higher values require stronger stop-run behavior.
Reclaim Boundary Settings
• Boundary Mode
Default: Auto
Options: Auto, Sweep Origin Body Mid, Prior Range Mid, Last Internal Swing
Description: Selects the boundary used to judge whether price has reclaimed value. Auto mode attempts to choose a structurally relevant boundary based on the available market context.
Acceptance Engine Settings
• Observation Window
Default: 5 bars
Range: 3–8 bars
Description: Controls how many bars after the reclaim are scored. Shorter windows are faster and more reactive. Longer windows require more proof of acceptance.
• Extreme Defense Tolerance
Default: 0.25 ATR
Range: 0.00+
Description: Defines how much price can violate the original sweep extreme before the event is penalized. Lower values are stricter.
• Weight: Time Acceptance
Default: 0.30
Range: 0–1
Description: Controls how much the score rewards repeated closes on the reclaimed side of the boundary.
• Weight: Close Quality
Default: 0.25
Range: 0–1
Description: Controls how much the score rewards deeper closes beyond the reclaim boundary.
• Weight: Extreme Defense
Default: 0.20
Range: 0–1
Description: Controls how much the score depends on defending the original sweep extreme.
• Weight: Wick Asymmetry
Default: 0.15
Range: 0–1
Description: Measures whether wick behavior supports acceptance or shows aggressive re-offering back into the swept side.
• Weight: Volume Persistence
Default: 0.10
Range: 0–1
Description: Rewards relative participation on accepted-side closes. This can be useful on markets with reliable volume data.
Visual Settings
• Draw Reclaim Boundary
Default: Enabled
Range: On/Off
Description: Draws a dashed reclaim boundary line for each active event.
• Show Finalized Labels
Default: Enabled
Range: On/Off
Description: Displays labels after each event completes its observation window.
• Show Dashboard
Default: Enabled
Range: On/Off
Description: Displays the latest sweep event, score, and classification in a compact dashboard.
• Dashboard Position
Default: Top Right
Range: Multiple chart positions
Description: Controls where the dashboard appears on the chart.
Alert Settings
• Alert Min Score
Default: 60
Range: 0–100
Description: Sets the minimum finalized Transfer Score required to trigger an alert.
✅ Best Use Cases
• Filtering SMC liquidity sweeps before entry.
• Confirming whether a sweep produced real post-event acceptance.
• Avoiding emotional entries on large displacement candles.
• Identifying when price reclaims and holds a key internal value boundary.
• Ranking the quality of sweep events across intraday markets.
• Adding a decision layer to existing order block, FVG, market structure, or session liquidity workflows.
• Monitoring futures, crypto, forex, and index markets where liquidity sweeps are frequent.
⚠️ Limitations
• This indicator does not predict future price movement with certainty.
• The Transfer Score is a structural acceptance score, not a guaranteed probability of profit.
• Volume-based scoring may be less useful on symbols with unreliable or synthetic volume data.
• Very low timeframes may produce more noise and require stricter sweep and boundary settings.
• Session high/low logic depends on the user-defined session and may need adjustment for non-US markets.
• The indicator should be used as a confirmation and filtering tool, not as a standalone trading system.
💡 What Makes This Unique
• It focuses on post-sweep acceptance rather than simple sweep detection.
• It helps answer the execution question traders actually face: did the market accept the new side of value after taking liquidity?
• It turns a subjective SMC concept into a structured scoring framework.
• It works after the trader’s existing strategy, making it useful as a sizing, waiting, or skip filter.
• It avoids chart clutter by prioritizing a single actionable score and clear state classification.
🔬 How It Works
1. Liquidity Sweep Detection
• The indicator first looks for sweeps of swing highs, swing lows, equal highs, equal lows, or session highs/lows.
• A valid sweep occurs when price pushes beyond a liquidity level and then closes back through the reclaim condition.
2. Reclaim Boundary Selection
• After a sweep is detected, the script marks a structural boundary that price must accept beyond.
• Depending on the selected mode, this boundary can be based on the sweep candle body, the prior dealing range midpoint, or an internal swing reference.
3. Observation Window
• The indicator then observes the next 3–8 bars.
• During this window, it evaluates how consistently price closes beyond the reclaim boundary and whether the original sweep extreme remains defended.
4. Transfer Score Calculation
• The final score combines time acceptance, close location quality, wick asymmetry, volume persistence, and extreme defense.
• The result is normalized into a 0–100 Transfer Score.
5. Final State Classification
• After the observation window closes, the score is locked.
• Low scores are classified as Failed Sweep or Temporary Reclaim.
• Higher scores are classified as Accepted Transfer or High-Confidence Transfer.
💡 Note
Liquidity Transfer Engine is designed as a post-sweep decision filter. It is not intended to replace market structure analysis, risk management, or a complete trading plan. For best results, use it alongside your existing SMC, FVG, order block, session liquidity, or higher-timeframe bias framework. Indicator

AMD Session TrackerAMD Session Tracker plots the three major forex sessions (Asia, London, New York) as live-growing colored boxes with high/low extension lines, then layers AMD framework analysis on top. Detects in real time when London sweeps the Asian range and when NY sweeps the London range — the core mechanics of the Accumulation / Manipulation / Distribution model.
WHAT IS AMD
AMD stands for Accumulation, Manipulation, Distribution — a market structure framework popularized by ICT and SMC traders. The Asian session typically accumulates in a tight range, London manipulates by sweeping that range to grab liquidity above or below it, and New York distributes in the resulting direction. This indicator tracks all three sessions and detects the sweep relationships between them as price action develops.
FEATURES
Live-growing session boxes for Asia (7PM–3AM), London (3AM–8AM), and New York (8AM–12PM) — all times America/New York with automatic DST adjustment
Asian range high/low extension lines projected into London and NY for liquidity targeting
Sweep tracking: detects when London sweeps Asian high or low (manipulation phase) and when NY sweeps London high or low (distribution phase)
Dashboard shows current AMD phase, session high/low/range, and sweep status — sweep cells highlight amber the moment a sweep occurs
Auto-detects pip size for JPY pairs, other forex, metals, indices, and crypto — no manual configuration
Optional 50% midline marker for each session
Six dashboard position options for indicator layout flexibility
Built-in alerts for session opens AND first-time sweeps of prior session highs and lows
HOW TO USE
Watch for London to sweep the Asian range during the manipulation phase — this is the highest-probability AMD setup signal. After the sweep, look for displacement back into the Asian range and a fair value gap to enter on the retracement. NY then often continues in the post-sweep direction (distribution).
Set alerts on "Asia High Swept" and "Asia Low Swept" to get notified the moment manipulation occurs, even if you're away from the chart.
Pairs cleanly with Fair Value Gaps (FVG) and Key Swing Levels (KSL) from the same author — three indicators designed to coexist on the same chart with non-overlapping dashboards by default (AMD top-right, KSL also top-right but movable, FVG bottom-left).
Open-source. Feedback and forks welcome. Indicator

Fair Value GapsFair Value Gaps (FVG) auto-detects bullish (+FVG) and bearish (-FVG) three-candle imbalances on any chart, any timeframe. Tracks each gap's state through its lifecycle and shows a real-time dashboard with active gap counts, nearest gap distance, and exact zone prices.
WHAT IS A FAIR VALUE GAP
An FVG is a three-candle pattern where the middle candle moves so aggressively that it leaves a gap between the wick of the prior candle and the wick of the following candle. Price often returns to fill these gaps before continuing — making them useful as targets, entry zones, or invalidation levels.
A bullish (+FVG) forms when the low of the current candle is above the high of two candles ago, with a bullish middle candle. A bearish (-FVG) is the inverse.
FEATURES
Auto-detects pip size for JPY pairs, other forex, metals, indices, and crypto — no manual configuration needed
Tracks up to 10 active FVGs per side with configurable minimum size filter to ignore noise
Auto-removes filled FVGs OR keeps them on chart greyed out (your choice)
Optional midline marker (50% mitigation level)
Configurable label limit so only your most recent active gaps are annotated — prevents chart clutter
Dashboard shows active count, distance to nearest gap, and exact zone prices
Cells highlight amber when price is currently inside a gap (mid-mitigation)
Movable dashboard position (six options) so it coexists with other indicators
Built-in alerts for new bullish and bearish FVG formations
HOW TO USE
Use FVGs as targets when price has left an unfilled gap behind — markets often return to fill them. Use them as entry zones when price retraces into a gap in the direction of the higher-timeframe trend. Use them as invalidation when price closes through a gap that should have held as support or resistance.
Particularly useful for SMC and ICT traders watching for liquidity sweeps followed by displacement into a fair value gap, then a retracement entry.
Pairs cleanly with the Key Swing Levels (KSL) indicator from the same author — KSL's dashboard defaults to top-right, FVG's to bottom-left, no overlap.
Open-source. Feedback and forks welcome.
Indicator

Smart Money Matrix ICT + Volume Profile [Point algo]This indicator is a comprehensive institutional-grade toolkit designed to bridge the gap between Market Structure (SMC/ICT) and Volume Analysis (Volume Profile). By combining these two distinct analytical disciplines, the indicator provides a high-confluence "Matrix" view of the market, helping traders identify where high-conviction orders are resting and how price structure is reacting to them.
Core Functionality
The script is divided into three primary modules that work in synergy:
1. ICT & Smart Money Structure
This module tracks the "DNA" of market movement using high-precision pivot detection:
Market Structure Shift (MSS) & Break of Structure (BOS): Automatically identifies trend transitions and continuations.
Liquidity Sweeps: Highlights "stop hunts" where price wicks beyond previous swing points before reversing, signaling institutional absorption.
Dynamic Fair Value Gaps (FVG): Plots active FVGs and automatically removes them (mitigation) once price returns to fill the imbalance.
2. Advanced Volume Profile (VP)
While most volume profiles are static, this engine calculates volume distribution over a user-defined lookback period to find the "fairest" price levels:
Point of Control (POC): The price level with the highest traded volume, acting as a massive magnet or pivot.
Value Area (VAH/VAL): Highlights the zone where 70% (customizable) of the volume took place, distinguishing between value-driven moves and "excess" price action.
Bull/Bear Volume Split: The profile histogram is color-coded to show whether buyers or sellers were more aggressive at specific price nodes.
3. Master Intelligence Dashboard (HUD)
A real-time terminal in the corner of your chart that synthesizes all data points:
Market Bias: Real-time bullish/bearish/neutral status based on structural breaks.
Zone Positioning: Instantly tells you if price is above, below, or at value (POC).
Distance Metrics: Calculates the percentage distance to the POC for mean-reversion planning.
How to Use
High Confluence Entry: Look for a Liquidity Sweep or MSS that occurs exactly at the Value Area Low (VAL) or POC. This suggests institutions are defending a high-volume zone.
Targeting: Use the POC as a primary take-profit level during mean-reversion trades.
Imbalance Trading: Use the FVG boxes to identify "magnets" in the market. If price breaks structure (BOS) and leaves an FVG near the Value Area High, expect a retracement to that zone before the next leg.
Technical Breakdown
Pivots: Uses a customizable lookback length to detect swing points.
Volume Binning: Divides the price range into numBins to calculate volume density accurately across the lookback period.
Non-Repainting: All structural labels (MSS/BOS/Sweeps) and FVG boxes are calculated on closed bars to ensure signal integrity.
Transparency: All features, from FVG transparency to the number of Volume bins, are fully adjustable via the user settings menu.
Disclaimer: Trading involves significant risk. This tool is designed for technical analysis and educational purposes. It does not provide financial advice. Past performance of structural patterns is not indicative of future results. Indicator
