Indicator

SMC EngineSMC Engine
Overview
SMC Engine is a market-context indicator designed to identify potential liquidity sweeps and directional pressure around a selected session range.
The indicator combines an open-based NY range, candle spread analysis, and lower-timeframe volume pressure to classify market conditions such as Stop Hunts, directional aggression, and breakouts.
The default session is 09:30โ10:30 New York time, but the session and timezone can be adjusted from the settings.
Key Features
Open-based NY session range
Automatic range box visualization
Projected range levels after the session
Candle spread anomaly detection
Lower-timeframe volume pressure
Stop Hunt High detection
Stop Hunt Low detection
Bullish Aggression detection
Bearish Aggression detection
Breakout Up/Down classification
Real-time sentiment dashboard
How It Works
1. Open-Based NY Range
During the selected session, the indicator tracks the highest and lowest candle opening prices.
These levels form the open-based range used by the sentiment engine.
Note: This is an open-based range, not a conventional opening range calculated from candle highs and lows.
2. Spread Analysis
The indicator compares the current candle's spread (High - Low) with its average spread over the selected baseline period.
Default settings:
Spread Baseline: 50 bars
Spread Anomaly Multiplier: 2.0
When the current spread exceeds the baseline multiplied by the anomaly multiplier, it is classified as a spread anomaly.
3. Volume Pressure
The indicator uses lower-timeframe candle data to estimate directional volume pressure.
Lower-timeframe close > open โ volume is counted as positive
Lower-timeframe close < open โ volume is counted as negative
Lower-timeframe close = open โ volume is ignored
The resulting value is used as a volume-pressure proxy.
This is not true bid/ask volume delta.
Sentiment Conditions
Stop Hunt High
A Stop Hunt High is identified when:
The candle has an unusually large spread
Price trades above the open-based range high
The candle closes back at or below that level
Lower-timeframe volume pressure is negative
The signal is displayed with an orange downward triangle.
This can be viewed as a potential bearish liquidity-sweep setup.
Stop Hunt Low
A Stop Hunt Low is identified when:
The candle has an unusually large spread
Price trades below the open-based range low
The candle closes back at or above that level
Lower-timeframe volume pressure is positive
The signal is displayed with an orange upward triangle.
This can be viewed as a potential bullish liquidity-sweep setup.
Bullish / Bearish Aggression
When a spread anomaly occurs without meeting the Stop Hunt conditions, the indicator evaluates candle direction and volume pressure to identify:
Bullish Aggression
Bearish Aggression
Air Pocket/Uncertain
Breakouts
When the spread is not classified as an anomaly, the indicator can identify:
Breakout Up
Breakout Down
These classifications are based on price closing beyond the open-based range together with corresponding volume pressure.
How to Use It
The indicator is primarily intended as a market-context and confirmation tool, rather than a standalone buy/sell system
A simple way to use the Stop Hunt signals is:
Bullish Setup
Stop Hunt Low โ wait for confirmation โ consider long
When an orange Stop Hunt Low appears, avoid entering immediately. Observe the following price action and look for bullish confirmation before considering a long trade.
Bearish Setup
Stop Hunt High โ wait for confirmation โ consider short
When an orange Stop Hunt High appears, avoid entering immediately. Observe the following price action and look for bearish confirmation before considering a short trade.
The Stop Hunt signal should therefore be treated as a setup/area of interest, not an automatic entry signal.
Traders can combine the signal with their own market structure, price action, risk management, and higher-timeframe analysis.
Dashboard
The dashboard displays:
VSA Price Spread โ current candle spread in ticks
Baseline Spread โ average spread used for anomaly detection
Volume Pressure โ calculated lower-timeframe directional volume pressure
Current Sentiment โ current classification produced by the engine
Recommended Usage
The default configuration is designed around using a lower timeframe for volume-pressure analysis, such as a 1-minute lower timeframe on a 5-minute chart.
The appropriate settings can vary by market, symbol, and timeframe, so traders should test the indicator under the conditions in which they intend to use it.
Important Limitations
The range is based on candle opens, not highs and lows.
Volume Pressure is a directional-volume proxy and should not be interpreted as true bid/ask delta.
A Stop Hunt signal does not guarantee a reversal or profitable trade.
Breakout classifications do not guarantee that a breakout will continue.
The indicator does not determine stop-loss placement, take-profit levels, or position sizing.
Market conditions, liquidity, and data-feed characteristics can affect the behavior of lower-timeframe calculations.
Traders should independently test and validate the indicator before using it in live trading.
SMC Engine is intended for market analysis and educational purposes and should be used together with appropriate risk management. Indicator

Fair Value Gap (FVG) Statistics with Placebo Controlโ OVERVIEW
On the same instrument, measured against a 50% baseline, fair value gaps looked significantly profitable in one period and significantly unprofitable in another. Both readings were artifacts of a baseline that was never 50%.
This indicator measures what actually happens after price returns to a gap, then compares the result against fake, or placebo, zones of the same size placed at bars where no gap occurred. Because a hit rate tells you nothing until you know what a meaningless zone scores on the same chart.
The following description consists of two parts. Part 1 is written in plain English and covers everything most readers need. Part 2 contains the full methodology and results for anyone who wants to examine the numbers in detail.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
PART 1 โ WHAT THIS IS AND WHY
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ THE PROBLEM
Zone-based tools are everywhere: fair value gaps, order blocks, breakers, imbalances. Yet almost none of them tell you how often a zone actually led anywhere. And when a number is quoted, it is often built on one of three flawed foundations.
1. The zone is counted before it could have been known.
This problem is easiest to see with order blocks. An order block is commonly defined as the last opposite candle before a move that breaks structure. That means the block cannot be identified until the structure break occurs, often several bars later. Yet it is drawn back on the earlier candle as though it had been known at the time.
Any hit rate measured from that earlier candle therefore counts a zone that nobody could actually have traded.
Fair value gaps suffer less from this problem because their three-bar pattern completes quickly, but the same principle applies: a zone becomes active only when it becomes knowable, and nothing before that bar should be counted.
2. Failed zones disappear.
Many tools remove a zone from the chart once price has passed through it. That makes sense for keeping a chart clean. It is disastrous for statistics, because the zones being removed are disproportionately the ones that failed.
Count only what remains on the chart and you are counting the survivors.
3. The hit rate is compared with 50%.
This is the most important problem, and it is extremely common.
The reasoning seems straightforward: if the target and stop are equally far from the entry, then no edge should mean a 50/50 outcome.
But a rule that enters when price reaches a level inherits a baseline from the way price moves. That baseline is not necessarily 50%. It changes with the instrument, direction, and market conditions. Across the three markets tested here, it ranged from roughly 45% to 55%.
A hit rate by itself therefore tells you very little.
What matters is how the same measurement performs on zones that have no informational meaning at all.
โ WHAT THIS INDICATOR DOES
For every real fair value gap the indicator identifies, it also generates placebo zones of the same height, direction, and distance from price, anchored at bars where no fair value gap occurred.
Real and placebo zones are then measured by exactly the same rules.
The difference between them โ real minus placebo โ is the result that matters.
If real gaps perform like the placebo zones, then the pattern is not adding anything, regardless of how attractive the raw hit rate may look.
The placebo comparison does not ask whether fair value gaps win more than 50% of the time.
It asks a harder question:
Do fair value gaps perform better than comparable zones that carry no fair value gap information at all?
โ HOW THE COMPARISON IS KEPT FAIR
Statistical libraries for Pine already exist, and many indicators will draw fair value gaps. What is not otherwise available is a matched control built into the measurement itself, so that every figure the indicator reports arrives together with the baseline it should be judged against.
Three design choices make that possible, and they only work together.
A matched placebo control. Each placebo zone has the same height, the same direction, and the same distance from price as the real zone it is meant to compare with. Both are scored by identical rules.
Confirmation-honest timing. A zone enters the sample only when it becomes knowable, never earlier. Every confirmed zone remains in the sample from that point onward, including zones that fail immediately.
Bias controls that are reported rather than hidden. Cases that are genuinely difficult to score โ such as bars that touch both exits and trades that never resolve โ are counted and displayed for real and placebo zones side by side. Ambiguous cases are treated conservatively rather than silently discarded.
The combination matters. A matched control is useful only if both sides are measured under the same timing and scoring rules.
โ WHAT THE TESTS FOUND
Across three asset classes, three timeframes, and two separate periods โ fourteen measurements in total โ fair value gaps showed no detectable advantage over size-matched zones placed at meaningless bars.
The difference remained below about one percentage point of hit rate, and none of the fourteen individual measurements reached conventional statistical significance.
That is a bound on what was observed, not a claim that the true effect is exactly zero.
A different market or a different period could produce a different result. That is precisely why the comparison is built into the tool rather than left as an assumption or a footnote.
The broader conclusion is more useful:
A hit rate quoted without its baseline does not tell you whether something works. On the same instrument, measured against 50%, this pattern looked significantly profitable in one period and significantly unprofitable in another. Both readings were created by the baseline, not by the gaps.
That lesson applies to zone-based tools generally, not only to fair value gaps.
If you take one thing from this script, take that.
โ HOW IT WAS TESTED
A single result on a single chart is easy to produce and easy to overinterpret. Before publication, the same measurement was therefore repeated while changing one assumption at a time.
Three asset classes โ crypto, currencies, and equity index futures
Three timeframes โ 5 minutes, 30 minutes, and 1 hour
Two separate, non-overlapping time periods
Three different target and stop distances
Two different limits on how long a trade could remain open
Each of these choices is partly arbitrary. If a finding appears only under one particular setting, it may belong to the setting rather than to the market.
Fourteen separate measurements were made in total.
Two standard statistical tools are used. A confidence interval shows the range in which the underlying value plausibly lies, which is more informative than a single headline estimate. Results from independent markets are also combined so that their evidence can be considered together rather than one chart at a time.
The measurement procedure was additionally checked against artificial data for which the correct answer was known in advance. This allowed the method itself to be tested independently of any market result.
โ HOW TO READ AND USE THE INDICATOR
Add the indicator to any chart. It works on any symbol and any timeframe and needs no configuration to produce a result.
The panel
By default, the panel shows a compact view: the number of zones found, the number revisited by price, the hit rate with its confidence interval, the placebo baseline, and the difference between real and placebo.
Turn off Compact panel for the full breakdown: wins, losses, unresolved cases, the direction split, and side-by-side rates for the cases that are hardest to score.
Everything used to produce the headline result is available for inspection.
Reading the result
Check the sample size first. Below roughly 1000 resolved zones, the confidence interval is usually too wide to conclude much. Recognizing that the sample is inconclusive is a valid result, not a failure of the indicator. Lower timeframes and longer histories both increase the sample.
Then read real โ placebo . That is the headline result.
A positive number means the gaps outperformed the placebo zones. A negative number means they underperformed them.
The z-score beside it indicates how far the observed difference sits from what chance alone can produce. As a rough guide, an absolute z-score below 2 is not conventionally distinguishable from noise.
The raw hit rate is shown for context, not as the answer. Judging the pattern from that number alone is the mistake this indicator is designed to expose.
Setting up a measurement
To measure a specific period, turn on Limit to date range and set the dates.
The panel reports the sample actually achieved. This can be shorter than the requested period if the chart has not loaded enough historical data, so scroll left when necessary to load more history.
To check whether a result depends on your choice of exits, change Barrier size and run the measurement again. A finding that appears only at one setting may belong to the setting rather than to the pattern.
As a chart indicator
Zones are drawn as they form and can also be used in the usual visual way.
A zone that price has not yet returned to is drawn solid and continues extending to the right while it remains open.
When price reaches the zone, the box stops extending and fades to a dotted outline. The width of a completed box therefore shows how long that gap survived before price returned to it, while the chart makes it easy to see which zones remain active.
Turning off Draw real zones leaves only the statistics panel.
โ SETTINGS
Measurement โ Risk unit selects whether exit distance scales with ATR or with the zone's own height. Barrier size sets that distance. Time limit controls how many bars a trade may remain open before being recorded as unresolved.
Entry price and Evaluate exits on the entry bar provide alternative scoring conventions so their effect can be measured rather than assumed. Both are labeled where they introduce a known bias.
Minimum zone height filters out small gaps. Exclude overlapping zones and Overlap lookback prevent several gaps created by the same move from being treated as independent observations.
Sample โ restricts the measurement to a date range, entered as year, month, and day so the sample remains reproducible.
Placebo control โ Placebos per zone sets how many comparison zones each real zone generates; more placebos produce a tighter estimate of the baseline. Placebo offset controls how far from the original bar the comparison zones are anchored.
Validation โ replaces market price with a random walk so the measurement can be checked against data whose correct answer is known in advance rather than only against real markets.
Display โ Compact panel shows the headline rows only; turning it off reveals the full breakdown. Draw real zones toggles the boxes on the chart.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
PART 2 โ DETAILED ANALYSIS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ HOW A ZONE IS SCORED
A gap becomes active on the bar after its three-bar pattern closes. From that point onward, every confirmed zone remains in the sample, including zones that fail immediately.
When price returns to a zone, the entry is recorded at that bar's close , not at the zone edge.
This matters more than it may appear.
A touch condition means that price reached or passed the edge, so the bar may have overshot it by an unknown amount. Assuming a fill at the edge while beginning the measurement only from the following bar would start the trade from an artificial price and can systematically distort the result.
Two exits are then placed at equal distances on either side of the entry. Because the exits are symmetric, real and placebo zones can be compared directly.
If one bar touches both exits, its open, high, low, and close do not reveal which level was reached first. Those cases are shown separately and counted as losses, making the published result the conservative one.
Zones that reach neither exit within the time limit are excluded from the hit-rate calculation. They did not resolve, so they provide no evidence for either outcome.
โ RESULTS
Results below use the following settings. The sample ends 1 August 2026.
SETTING VALUE
Risk unit (R) ATR(14) at confirmation
Barrier 2.0 R each side
Time limit 100 bars after entry
Entry close of the touch bar
Overlapping zones excluded
Placebos per zone 3
Three markets, 30-minute charts, 2025-01-01 to 2026-08-01:
INSTRUMENT RAW NAIVE z PLACEBO REAL-PLAC
BTCUSDT 49.5% -0.67 49.0% +0.5
EURUSD 51.4% +1.65 51.7% -0.2
ES1! 49.2% -0.92 49.9% -0.7
POOLED -0.04
The panel on the chart above is not restricted to that fixed window โ it runs to the most recent bar โ so its figures differ slightly from the table. That is expected: it is a different sample, not a different result.
Read the raw column alone and the markets appear different: 49.5% for crypto versus 51.4% for currencies, a spread of 1.9 percentage points.
Now look at the placebo column. Its spread is 2.7 points.
The apparent difference between markets is therefore better explained by the baseline than by the fair value gaps themselves.
One example makes the problem especially clear:
BTCUSDT, 1 hour, calendar year 2024
Raw hit rate 54.0% (n = 1390)
Naive z vs 50% +2.95 "significant"
Placebo baseline 51.5%
Real minus placebo +2.5% z 1.49, not sig.
Against an assumed 50% baseline, a 54% hit rate gives a p-value near 0.003 โ exactly the kind of number that can look compelling when published in isolation.
Against its observed control baseline, however, the evidence is not statistically significant.
The same indicator, on the same instrument, over a different period and with a tighter target, produced a raw hit rate of 48.4% with a z-score of -2.25 โ apparently significant in the opposite direction.
Both apparent conclusions arise from comparing with an assumed 50% baseline rather than the observed control baseline.
โ ROBUSTNESS
DIMENSION TESTED RESULT
Barrier size 1R / 2R / 3R no change
Time limit 50 / 100 bars no change
Asset class crypto / FX / index no change
Timeframe 5m / 30m / 1h no change
Period 2024 / 2025-26 no change
Across fourteen separate estimates of real minus placebo, the largest result was 1.49 standard errors from zero.
With fourteen estimates, even if the true effect were zero, the largest absolute result would be expected to reach roughly 1.9 standard errors by chance alone.
Pooled across three independent markets, the estimate was -0.04 percentage points, with a 95% interval of approximately -1.2 to +1.1 points.
โ LIMITATIONS
One symbol and one timeframe can be analyzed per chart. Pine cannot pool results across markets, so each chart represents one sample rather than proof by itself. The pooled figures reported above were combined separately.
Trading costs are not included. Entries assume execution at the bar close with no spread, commission, or slippage. Real-world trading costs would make absolute performance worse.
Ambiguous bars are counted as losses. This lowers both real and placebo hit rates by roughly the ambiguous-case rate and therefore tends to cancel when the difference between them is calculated.
The bull and bear rows should not be interpreted independently in a trending market.
The placebo control matches zone size, direction, and distance from price, but it cannot match the fact that a real gap forms immediately after a strong move in the same direction.
For example, in an uptrend, a fake bearish zone is more likely to be run over by the prevailing trend, whereas a real bearish gap can only form after an actual downward move. These effects work in opposite directions and largely cancel in the combined result.
For that reason, the total should be treated as the primary statistic rather than the directional split.
This limitation was identified during testing and is the main known weakness of the methodology.
Finally, all results come from a sample. Another market or another period may produce a different estimate. That uncertainty is the reason the placebo comparison is built into the indicator rather than assumed away.
โ METHOD AND PRIOR WORK
None of the statistics here are new, and it is worth being clear about that.
Assigning a treatment to units or moments where it did not actually occur, then checking that no effect appears, is a standard falsification test in causal inference, where it is usually called a placebo test. The placebo zones in this indicator are that idea applied to bars instead of subjects.
The trading application is not new either. David Aronson's Evidence-Based Technical Analysis (2006) argues that a rule should be judged against the returns of random entry signals rather than against zero, and uses Monte Carlo permutation and White's Reality Check to do it.
The scoring rule โ a target, a stop, and a time limit, whichever is reached first โ is the triple-barrier method described by Marcos Lรณpez de Prado.
What this script adds is not the method but its availability. The control is generated and scored automatically alongside the real zones, on any chart and any symbol, so the baseline arrives together with the number instead of requiring a separate study that most people will never run.
โ OPEN SOURCE
The source is open. Every figure above can be reproduced โ or shown to be wrong โ by anyone who wants to check it.
Order blocks are next, measured by the same rule: from the bar that breaks structure, not from the earlier candle on which the block is drawn.
Indicator

MSH - Demand & Supply Zones Pro### Overview
The Demand and Supply Zones Pro indicator automatically identifies, plots, and tracks institutional market structure imbalance zones on your chart. Based on core Extended Market Structure (EMS) price action principles, it highlights areas where institutional supply or demand imbalances cause rapid price movements.
### Features & Methodology
1. Zone Identification Logic:
The indicator evaluates individual candlestick body-to-range ratios to classify candle types into:
- Base Candles: Consolidation or low-volatility bars where body size is โค 50% of total candle range.
- Leg-In / Leg-Out Candles: High-momentum, strong-body expansion candles.
2. Pattern Classifications (RBR, DBR, RBD, DBD):
- Demand Zones: Rally-Base-Rally (RBR) and Drop-Base-Rally (DBR).
- Supply Zones: Rally-Base-Drop (RBD) and Drop-Base-Drop (DBD).
3. Dynamic Zone Tracking & Boundaries:
- Proximal Line: Plotted at the top/bottom boundary of the base body for entry reference.
- Distal Line: Plotted at the extreme high/low wick of the base for stop-loss and risk reference.
- Dynamic Extensions & Violation Cleanup: Active zones extend automatically to current price action and are automatically removed once invalidating price breaks occur.
4. Trend & Moving Average Overlays:
- Includes integrated Rapid (EMA 7) and Fast (EMA 21) Exponential Moving Averages to quickly assess short-term momentum and trend alignment alongside zone levels.
### How to Use
- Looking for Demand Trades (Long): Seek long setups when price revisits active Green/Demand zones, especially when aligned with short-term EMA momentum.
- Looking for Supply Trades (Short): Seek short setups when price approaches active Red/Supply zones.
- Risk Management: Use the Distal boundary of the zone as a structural stop-loss level.
### Settings & Customization
- Candle Rules: Adjust body percentage thresholds for Base, Leg-In, and Leg-Out candles to match different asset classes (Equities, Forex, Crypto, Futures).
- Display Limits: Set maximum active zones displayed concurrently to maintain chart clarity.
- Visuals: Fully customizable zone fill, border colors, and label options. Indicator

Smart Money Concepts Liquidity Sweep, Order Block & FVGOVERVIEW
Every Smart Money indicator draws order blocks and tells you they work. This one scores them 0โ100 and then forward-tests whether the score is actually true โ on your instrument, on your timeframe.
It maps liquidity, detects stop-hunts, builds entry zones from the displacement that follows, confirms them with real order flow, and grades every zone that price returns to. Instead of "here is an order block, trust me", the panel tells you something like:
Tier-A zones returned +0.23R vs +0.08R for a matched control, n=61, t=2.1 โ PROVEN
...or, just as usefully, NOT PROVEN. It is built to be able to tell you it doesn't work.
This is a research and framing tool. It is NOT a strategy, NOT a signal service, and NOT a validated edge.
WHY THESE PARTS ARE ONE TOOL (mashup rationale)
The Smart Money / ICT model is a SEQUENCE. Each step is meaningless on its own, and that is why they are combined here rather than sold as separate scripts:
1. LIQUIDITY POOLS โ Stops cluster above equal highs (buy-side) and below equal lows (sell-side). Swing points within an ATR tolerance are clustered into a single pool; the more swings, the more stops resting there. A pool is not a signal. It is a magnet and a target.
2. THE SWEEP โ Price wicks THROUGH the pool and closes back INSIDE it. That is a stop-hunt, and it is the only part of the sequence that reveals intent. A sweep alone is still not a trade.
3. DISPLACEMENT โ An impulsive, ATR-normalised move away from the swept level. This is what separates a SWEEP (reversal) from a RUN (continuation).
4. THE ZONE โ Displacement leaves footprints: a FAIR VALUE GAP (a three-bar imbalance) and an ORDER BLOCK (the last opposing candle before the impulse). Where an FVG sits INSIDE an order block, two independent structures agree โ flagged as a confluence zone.
5. LOCATION โ The zone is then judged on WHERE it sits. Against the VOLUME PROFILE (value area, point of control, and untested "naked" POCs), and against the DEALING-RANGE EQUILIBRIUM. A bullish zone in DISCOUNT is a zone you are being paid to buy; the same zone in premium is not.
6. ORDER FLOW โ The question structure cannot answer: did anyone actually show up? Intrabar delta signs each lower-timeframe bar's volume by its own direction. A bullish zone born on NEGATIVE delta is a vacuum, not a footprint โ and scores nothing for it.
7. THE ENTRY โ Price is never chased. The engine arms only when price RETRACES into a fresh zone, then frames entry / stop / target โ the target being THE NEXT OPPOSING POOL OF STOPS, because that is where the next batch of liquidity is resting.
8. THE CALIBRATION โ Without it, everything above is folklore.
Remove any one of these and the tool marks noise, chases price, targets nothing, ignores where value actually is, or reports a confidence it has not earned.
THE SCORE (0โ100, eight measurable components, no discretion)
Displacement strength ...... impulse body รท ATR โ the energy behind the zone
Participation (RVOL) ....... volume at formation vs its own recent average
Born from a sweep .......... did a stop-hunt precede it? (the core ICT claim)
Imbalance size ............. FVG height รท ATR
HTF alignment .............. does the higher timeframe agree?
Premium / discount ......... bullish zone in DISCOUNT? bearish zone in PREMIUM?
Volume-profile location .... at value, at the POC, or at an untested POC?
Order flow (delta) ......... was the displacement backed by real aggressive flow?
Tiers: A (70+) ยท B (40โ69) ยท C (below 40). Every weight is an input โ if you think the sweep matters more than I do, turn it up, and let the calibration tell you whether you were right.
THE CALIBRATION โ AND WHY IT IS HONEST
Every zone trade is paired with a MATCHED CONTROL: the same bar, the same direction, and the SAME R:R โ but entered at market with an ATR stop instead of at the zone. This isolates exactly one variable: does entering AT THE ZONE beat entering anywhere else on identical geometry? Under a random walk, this control has zero expectancy, so anything the zones earn is real.
Each tier is tested against its OWN control, because an A-zone may carry a very different R:R from a C-zone, and a trade's hit rate depends on its R:R.
Results are reported as EXPECTANCY IN R, not hit rate. When R:R varies from trade to trade, a hit rate on its own is meaningless: a 6R winner at 20% is +0.4R (excellent), while a 1R winner at 55% is +0.1R (barely worth the commission).
A Welch t-test decides whether the difference is real or luck. The panel does not say "proven" unless t > 1.96.
The panel also answers the one question that matters most: DOES TIER A BEAT TIER C? If the scoring model has any value, A-grade zones must outperform C-grade zones. If they don't, the score is noise โ and it will say so.
Conventions are deliberately chosen so the tool cannot flatter itself:
ยท Both barriers touched on the same bar โ the STOP is assumed first.
ยท Expired trades are marked to market, not counted as wins or losses.
ยท Everything is logged and resolved on confirmed bars only.
HOW TO USE IT
1. Read the bias, the liquidity map, and the premium/discount shading. Pools above are buy-side, pools below are sell-side, and price usually travels from one to the other.
2. Wait for a SWEEP, then for a zone to be created by the displacement that follows.
3. Do NOT chase. The engine arms an entry only when price RETRACES into a fresh zone.
4. Watch for ABSORPTION at the zone โ heavy volume, a small range, price holding. Someone is soaking up the aggression. That is a defended zone, and it is the best live confirmation available.
5. READ THE CALIBRATION BEFORE YOU WEIGHT ANY OF IT. If Tier A is not proven on your instrument and timeframe, a zone is a LOCATION, not a PROBABILITY โ treat it as context only.
6. Entry / stop / target and the resulting R:R are drawn on the chart. They are arithmetic, not advice.
Do not tune the weights until the numbers turn green. That is curve-fitting, and the calibration exists to catch it โ not to be defeated by it.
ORIGINALITY
The underlying SMC concepts are public and credited below. What is assembled here is the specific synthesis: an eight-component measurable score, the fusion of SMC structure with auction-theory location (volume profile and premium/discount), true intrabar order-flow confirmation, a per-tier matched control, expectancy-in-R reporting, and a significance test that can โ and frequently does โ return "not proven".
Clean-room implementation. No third-party Pine code is reused.
UNIVERSAL / DATA REQUIREMENTS
Works on any symbol and any timeframe โ the engine is ATR-normalised throughout, so it adapts to the instrument rather than assuming point values.
Volume improves the score but is NOT required. On a symbol without real volume, the RVOL, volume-profile and order-flow components neutralise and the panel says so, rather than blanking or pretending.
Intrabar delta requires a timeframe strictly below the chart's. The script AUTO-MAPS this (1mโ5s, 3mโ15s, 5mโ30s, 15mโ1m, and so on) because if the intrabar timeframe equals the chart timeframe there is only ONE intrabar โ the bar itself โ and delta degenerates to ยฑ100% on every bar. Where true intrabar data is unavailable, the script falls back to a close-location proxy AND LABELS IT AS A PROXY in the panel.
NON-REPAINTING
Pools, sweeps, displacement, zones, the volume profile, absorption and entries are ALL computed on confirmed bars only.
Swing points use ta.pivot* and are therefore known only AFTER their confirmation bars. This is why a liquidity pool appears a few bars after its swing. That delay is the honest cost of not repainting, and it is paid deliberately โ a level that moves after the fact is worse than no level at all.
The higher-timeframe read uses lookahead_off with a live-bar offset. The calibration harness logs AND resolves on confirmed bars, so its statistics cannot inflate intrabar. Nothing here is drawn and then moved.
HONEST LIMITATIONS โ PLEASE READ
Smart Money Concepts is a popular framework, not a proven one. That is precisely why this script measures it instead of asserting it.
The calibration figures are IN-SAMPLE, close-to-close, with NO costs or slippage, and they use overlapping windows. A proven in-sample edge is NOT a guarantee of out-of-sample results.
The rolling volume profile is an APPROXIMATION โ each bar's volume is spread uniformly across the bins its range covers. It is not tick data.
Small samples are unreliable. A tier with a low "n" is provisional even if it looks good.
If the edge is near zero, negative, or unstable across timeframes, the honest conclusion is that this model carries no edge on that instrument. The tool is designed to be able to tell you that, and you should believe it when it does.
Nothing here predicts price.
CONCEPT CREDITS
Smart Money / ICT concepts โ liquidity pools, stop-hunts, displacement, fair value gaps, order blocks, premium/discount and optimal trade entry โ are public trading concepts popularised by Michael J. Huddleston (Inner Circle Trader) and the wider SMC community.
Market Profile, the point of control and the value area โ J. Peter Steidlmayer and the CBOT.
Market structure theory โ Charles Dow.
Average True Range โ J. Welles Wilder.
Wilson score interval โ Edwin B. Wilson.
Triple-barrier forward labelling โ Marcos Lรณpez de Prado.
Welch's t-test โ B. L. Welch.
The zone-scoring model, the order-flow fusion, the per-tier matched control and the tier calibration are the author's own. Not affiliated with, nor endorsed by, any of the above.
DISCLAIMER
This is a research and educational tool only. It is NOT financial advice, NOT a recommendation, and offers NO guarantee of profitability or accuracy. Indicators describe past behaviour; they do not predict the future. Entry, stop and target output is arithmetic, not advice. Trading carries a risk of loss. Test out-of-sample and make your own decisions. The author accepts no liability for any use of this script. Indicator

Adaptive Volume Confluence OscillatorWhat it is
One pane that fuses seven different reads of the bar into a single 0โ100 confluence score, gates that score by a trend-vs-chop regime filter, confirms it against an auto-mapped higher timeframe, and โ most importantly โ forward-calibrates its own Buy/Sell signals against an unconditional base rate, so you can see whether the construction actually carries an edge on your instrument.
The seven votes: momentum sign ยท momentum vs its signal ยท money flow ยท trend structure (MA fan) ยท price location vs VWAP ยท trend slope ยท higher-timeframe bias.
The displayed wave is a volume-flow ribbon; the votes drive the score, the signals and the verdict. A plain-language verdict and a subtle pane tint make it readable at a glance (Simple view); a full analytic layer is available for advanced users (Pro view).
Why these are combined (mashup rationale)
A single oscillator whipsaws and a single signal over-fires. Combining helps only when the inputs key on different quantities and their agreement is checked. Each vote reads a different thing โ momentum, momentum-vs-signal, volume flow, multi-MA structure, location vs a session mean, slope, and a higher-timeframe read โ so the count that agrees carries more information than any one of them alone. A Kaufman Efficiency-Ratio regime gate suppresses conviction in chop, and a forward-calibration harness ties the whole construction back to realised forward outcomes.
An honest caveat, stated up front: the votes are not statistically independent. The oscillator itself embeds money flow, and vote 2 is derived from vote 1's series. Treat the score as a weight-of-evidence read, not as seven independent confirmations. The harness exists precisely so you can check whether the construction earns its keep on your instrument rather than taking the claim on faith.
How it works
Score โ how many of the seven votes are bullish, scaled 0โ100.
Regime โ Kaufman Efficiency Ratio. Below the chop threshold, conviction dims, signals are withheld, and the verdict reads "WAIT โ choppy".
HTF โ the chart timeframe auto-maps to a confirming higher timeframe (~4โ6ร), requested with lookahead_off and offset by one bar while the live bar forms.
Signals โ Buy/Sell fire only when the oscillator crosses its signal at a statistical OB/OS extreme and the score agrees and the regime isn't choppy and the visible wave isn't already at the opposite extreme.
Climax โ a volume spike at an OB/OS extreme prints a Possible Bottom/Top exhaustion mark.
Divergence (Pro) โ regular + hidden, from confirmed pivots on the momentum oscillator.
Calibration โ each Buy/Sell is queued and resolved a fixed horizon later, then compared with the unconditional same-horizon base rate. The dashboard shows, per side: Hit %, Edge = Hit โ Base, sample size, and a Wilson-gated star.
How to use it
Read the verdict and the score. Above the gate = bullish weight of evidence; below = bearish; in between, or in chop, the tool says WAIT โ and it means it.
Treat Buy/Sell marks as context, not triggers. They already require the score, the regime and the wave to agree, but they remain a description of conditions โ not a recommendation.
Read the Edge row before you weight any signal. If Buy/Sell Edge isn't clearly positive with an adequate sample and a star, this construction is not carrying an edge on this instrument โ weight it down or ignore it. Do not tune the parameters until the Edge turns green: that is curve-fitting, and the harness is there to catch it, not to be defeated.
Combine with your own levels, structure and risk rules.
Universal across markets
Price / high / low are inputs, so the engine runs on any symbol or timeframe. The volume votes (money flow, climax, VWAP location) need real volume โ prefer a futures contract or a stock. On a symbol with no volume the tool degrades gracefully: money flow is neutralised, the score falls back to the price-only votes, and the dashboard says "NO VOLUME", so you're never misled by a blank or a phantom reading.
Non-repainting
Votes read confirmed closes. The HTF series uses lookahead_off and is offset by one bar while the live bar forms. Divergences come from ta.pivot* and confirm a few bars after the pivot; once printed they don't move. The calibration harness logs and resolves only on confirmed bars, so its statistics never inflate intrabar. The live oscillator updates each bar, like any oscillator.
Concept credits
Super Smoother and Ultimate Smoother low-lag filters โ John Ehlers. Chebyshev Type-I filter โ classical DSP. Recursive (Kalman) smoothing โ R. E. Kalman. Volume Zone Oscillator โ Walid Khalil & David Steckler. Accumulation/Distribution money-flow multiplier โ Marc Chaikin. Efficiency Ratio โ Perry J. Kaufman. ATR โ J. Welles Wilder. Wilson score interval โ Edwin B. Wilson. VWAP, Hull MA and percentile rank โ standard public methods.
Original implementation; not affiliated with, nor endorsed by, any third party. No third-party code is reused.
Honest limits
The score is context, not a guarantee, and the votes are correlated (see the caveat above). The Edge figures are in-sample, close-to-close, with overlapping forward windows and no costs โ descriptive context, not a verified backtest. An Edge near zero, negative, or unstable across timeframes is the harness honestly telling you the signal has no reliable edge on that instrument. Nothing here predicts price.
Disclaimer
Research and educational tool only. Not financial advice and no guarantee of profitability or accuracy. Indicators describe past behaviour; they do not predict the future. Trading carries risk of loss. Test out-of-sample and make your own decisions. The author accepts no liability for any use of this script. Indicator

Indicator

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

Fib OTE + FVG Confluence [Viprasol]Fib OTE + FVG Confluence โ high-probability ICT entries where two edges agree
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
THE IDEA
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
A Fair Value Gap is a good entry zone. An OTE (Optimal Trade Entry) retracement is a
good entry zone. But an FVG that sits INSIDE the OTE โ that's the setup ICT traders
actually wait for. This tool maps the higher-timeframe OTE / premium-discount zone,
detects Fair Value Gaps, and does the one thing that matters: it highlights and ALERTS
you when price taps an FVG that lands inside the OTE.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
HOW IT WORKS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
1. HTF OTE MAP โ From the previous candle range of your chosen higher timeframe
(non-repainting), it builds the Fibonacci map: the OTE band (default 0.618-0.786),
the equilibrium line (0.5) that splits premium from discount, and a directional bias
(Auto from the last HTF candle, or force Long/Short). In a long bias the OTE sits in
discount (below equilibrium) โ where you want to buy; in a short bias it sits in
premium.
2. FAIR VALUE GAPS โ Standard 3-candle imbalances (bullish `low > high `, bearish
`high < low `), with an optional displacement filter and a minimum-size filter to
cut noise. Each gap is drawn as a box and tracked until filled (Wick / Close /
Average mitigation).
3. CONFLUENCE โ the point of the tool. A gap is "confluent" when it overlaps the OTE
band (strict) or, in the looser mode, when a bullish gap sits in discount / a bearish
gap sits in premium. Confluent gaps are highlighted with a โ
. Turn on "Show ONLY
Confluent FVGs" and the chart reduces to just the high-probability zones.
4. ALERTS โ Get notified when price TAPS a confluent FVG (and optionally when one
forms). One alert, delivered via app / email / SMS / webhook (Text or JSON message).
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ALERTS SETUP
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Create one alert โ Condition: "Fib OTE + FVG Confluence" โ "Any alert() function call",
then pick your delivery (app/email/SMS/webhook) in the dialog. Switch Message Format to
"JSON (webhook)" for bot/automation-friendly output. Messages carry direction, event
(FORMED/TAPPED), and the gap's price range.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
SETTINGS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โข HTF Fibonacci / OTE: timeframe, bias (Auto/Long/Short), OTE start/end, show map, colors.
โข Fair Value Gaps: min gap %, displacement filter, fill mode, show-only-confluent, colors, box extend.
โข Confluence & Alerts: confluence rule (Inside OTE / Favored half), highlight color, form/tap
alert toggles, frequency (once-per-bar-close = no repaint), Text/JSON.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
HOW TO USE
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
1. Set the OTE higher timeframe (e.g. Daily on an intraday chart).
2. Let Auto bias pick direction, or force Long/Short to your plan.
3. Enable "Show ONLY Confluent FVGs" to see just gaps inside the OTE.
4. Create the alert and wait for a tap of a โ
confluent gap โ that's your cue to do
your own analysis and manage risk.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
LIMITATIONS โ PLEASE READ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โข This is an awareness / confluence tool, not a strategy or signal service โ no buy/sell
calls. A confluent tap is a location of interest, not a guarantee.
โข The OTE map uses the previous HTF candle range and updates as new HTF candles form;
it reflects current context, not a fixed historical grid.
โข FVGs are detected on the chart timeframe; confluence is judged against the OTE active
when each gap forms.
โข Not financial advice. Trade at your own risk.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CREDITS & ORIGINALITY
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Fair Value Gaps, OTE, and premium/discount are public ICT concepts. All code here โ the
non-repainting HTF OTE map, the FVG detection and mitigation, the confluence logic, and
the alert engine โ is original Viprasol work written from the standard definitions. No
third-party Pine code is reused.
Indicator

FVG + Order Block Toolkit [ForexCracked]๐ท OVERVIEW
Two of the most-watched smart money footprints on one clean chart. This toolkit auto-draws Fair Value Gaps and Order Blocks as zones, keeps only the ones that still matter, and shows a live count in a compact dashboard. Fair value gaps are drawn as soft fills and order blocks as bordered blocks, so you can tell the two apart at a glance. It is free and open-source.
๐ท HOW IT DETECTS THE ZONES
Fair Value Gaps: a three-candle imbalance. A bullish FVG is marked when the low of the current candle sits above the high of the candle two bars back, leaving an untraded gap. A bearish FVG is the mirror. Gaps smaller than your Min FVG size (measured in ATR) are filtered out so the chart stays clean.
Order Blocks: displacement based. When a candle closes with a body larger than your Displacement setting (in ATR), the toolkit marks the last opposing candle before that move as the order block. A strong bullish move leaves a bullish order block on the last down candle, and the reverse for bearish.
๐ท ZONE MANAGEMENT
Every zone extends to the right until price closes through it (mitigated) or it passes the Max zone age. That means the boxes on your chart are the ones that are still unmitigated, not old clutter.
๐ท THE DASHBOARD
A compact, positionable panel shows the live count of unmitigated bullish and bearish Fair Value Gaps and Order Blocks, plus a total. Drop it in any corner.
๐ท HOW TO USE
Treat the zones as areas of interest, not automatic trades. Watch for price to return to an unmitigated order block or fair value gap in the direction of your higher-timeframe bias, then confirm with your own analysis and use a stop. Higher timeframes produce fewer and stronger zones.
๐ท SETTINGS
Fair Value Gaps: show on/off, Min FVG size (x ATR), colours. Order Blocks: show on/off, Displacement (x ATR), OB lookback, colours. General: Max zone age, Extend right, Info panel + position.
๐ท ALERTS
New Fair Value Gap, and New Order Block.
Free and open-source. Educational tool, not financial advice. Indicator

Liquidity Sweeps EQH EQL TGFXLiquidity Sweeps โ EQH / EQL
OVERVIEW
Liquidity Sweeps โ EQH / EQL is a price-action tool that highlights resting liquidity on the chart and shows when that liquidity is taken. It automatically detects clusters of equal swing highs (EQH) and equal swing lows (EQL), draws them as liquidity levels, and flags the moment price runs through a level and closes back on the other side โ a liquidity sweep (also called a stop run or liquidity grab).
THE IDEA BEHIND IT
Stop orders tend to build up just beyond obvious swing highs and lows. When several swings form at roughly the same price, they create a visible pool of resting orders:
- Equal highs (EQH) sit above price and represent buy-side liquidity (buy stops / breakout buy orders).
- Equal lows (EQL) sit below price and represent sell-side liquidity (sell stops / breakout sell orders).
Price is often drawn toward these pools. A sweep occurs when price spikes through the level to trigger those orders and then closes back inside the range โ frequently a sign that the move beyond the level lacked follow-through.
HOW IT WORKS
1. Swings are detected with confirmed Williams pivots (configurable left/right length).
2. When two consecutive pivot highs (or lows) form within an adaptive, ATR-based tolerance, they are treated as "equal" and a liquidity level is drawn at the extreme. The tolerance can also be set as a fixed tick distance.
3. Each level extends to the right until price reaches it.
4. A sweep is confirmed on bar close:
- Bearish sweep: a bar's high trades above an EQH but the bar closes back below it (buy-side liquidity taken).
- Bullish sweep: a bar's low trades below an EQL but the bar closes back above it (sell-side liquidity taken).
The swept level is then dimmed and stops extending, and a "SWEEP" label is placed.
HOW TO READ IT
- Red levels / "EQH" labels = buy-side liquidity resting above price.
- Green levels / "EQL" labels = sell-side liquidity resting below price.
- Solid line = level still intact (liquidity untouched).
- Dotted/dimmed line = level already swept.
- Red "SWEEP" above a candle = buy-side liquidity taken and rejected.
- Green "SWEEP" below a candle = sell-side liquidity taken and reclaimed.
- Multi-timeframe table: shows the most recent sweep direction on three higher timeframes (Bull / Bear / โ) for higher-timeframe context at a glance. On each higher timeframe a sweep is measured as breaking the N-bar high/low and closing back inside.
SETTINGS
- Swing detection: pivot left/right bars control how large a swing must be before it counts. Lower = more, smaller swings (more sensitive); higher = fewer, more significant ones.
- Equal levels: tolerance mode (ATR or ticks), ATR length and multiplier, and a tick tolerance. A larger tolerance treats more pivots as "equal".
- Sweeps: show/hide sweep labels, and whether swept levels stay on the chart (dimmed) or are removed.
- Visual: colors for buy-side/sell-side, line width, label size, show/hide level labels.
- Multi-timeframe table: enable/disable, the three timeframes, the higher-timeframe sweep lookback, and the table position.
REPAINTING
Levels are built only from pivots that are already confirmed, so a level never appears and then disappears once drawn (by definition, a pivot is confirmed a number of bars after it forms, equal to the "right bars" setting). Sweeps are evaluated on bar close, so sweep labels and alerts do not change intrabar.
ALERTS
Two alerts are available: "Bullish liquidity sweep" and "Bearish liquidity sweep". Add them from the alert dialog and set them to trigger once per bar close.
NOTES
This script is an original implementation of standard, public price-action concepts (Williams pivots, equal highs/lows, liquidity sweeps). It is a visualization and context tool โ it does not generate buy/sell signals and makes no claim about future performance. Sweeps are best combined with your own analysis (market structure, higher-timeframe context, risk management) rather than used in isolation. Indicator

Order Blocks with Volume [Quantum Algo]Order Blocks with Volume
OVERVIEW
This indicator finds order blocks โ the candles where a directional move originated before price broke market structure โ and measures the buy and sell volume that traded inside each one. Every zone is drawn as a box that extends forward until price returns to it, and each active zone is labelled with its total volume and its buy/sell split, so you can tell at a glance which blocks were built on heavy participation and which were not.
It is built entirely from price and volume on the chart you apply it to. There is no repainting of confirmed zones: detection runs only on closed bars.
HOW DETECTION WORKS
1. Market structure. Confirmed swing highs and swing lows are located using a pivot of configurable length (Swing Length). A larger value isolates more significant structure and produces fewer, larger zones.
2. Break of structure. When a candle closes above the most recent confirmed swing high (bullish) or below the most recent confirmed swing low (bearish), the indicator treats it as a break of structure and looks for the order block that produced the move.
3. The order block candle. Starting from the breakout, the script steps back over the impulse candles and marks the last opposite-close candle before the move began โ the last down-close candle for a bullish block, the last up-close candle for a bearish block. This is the origin of the displacement and the level price often revisits.
4. Zone range. The block is drawn from that candle using either its full high-to-low range (Wick) or its open-to-close body (Body).
VOLUME ENGINE
For each order block candle the indicator estimates how much of the traded volume was buying versus selling, using where the candle closed within its own range:
- Buy volume is weighted by how close the candle closed to its high.
- Sell volume is weighted by how close it closed to its low.
This split is shown two ways:
- Buy / Sell volume bars: two horizontal bars anchored at the left of the zone โ buy on the top half, sell on the bottom half โ with lengths proportional to each side. The Volume Bar Length setting controls how long they can extend (they are automatically kept inside the zone).
- Volume label: written inside the zone on the right edge, showing the total volume of the block and the buy% / sell% balance.
Volume strength is the block's volume divided by the average volume over a configurable baseline (Volume Baseline Length). It is used by the optional filter below to keep only the heaviest blocks.
ZONE LIFECYCLE
- Active. A live zone extends to the current bar and shows its volume bars and label.
- Mitigation. When price first trades back into a zone, the 50% line marks the equilibrium and an alert can fire.
- Invalidation. A zone is invalidated when price moves through its far edge. The source can be a wick touch or a candle close (Invalidation Source).
- Breaker. If "Flip Broken Zones to Breaker Blocks" is on, an invalidated zone is kept and re-coloured as a breaker, since broken support can act as resistance and vice versa.
- Historic. If "Keep Invalidated Zones (Historic)" is on, finished zones are frozen at the bar they died, re-coloured neutral, and their volume bars and text are removed to keep the chart clean.
- If neither option is on, invalidated zones are removed.
To avoid clutter the indicator will not stack a new zone on top of an existing active zone in the same area, limits the number of active zones per side, and automatically drops any zone older than the drawing range.
ON-CHART ELEMENTS
- Coloured boxes: bullish and bearish order blocks (and a neutral colour for breaker/historic).
- Two inner bars per active zone: buy (top) and sell (bottom) volume.
- A dotted line through the middle of active zones: the 50% mitigation / equilibrium level.
- Text inside active zones: total volume and buy% / sell%.
SETTINGS
Structure & Detection
- Swing Length โ pivot length used to define structure. Higher = larger, more significant zones.
- Impulse Lookback (bars) โ how far back to search for the origin candle after a break of structure.
- Zone Range โ Wick (full range) or Body (open-to-close).
- Max Active Zones / Side โ cap on simultaneously active zones per direction.
Invalidation
- Invalidation Source โ Wick (a high/low piercing the zone) or Close (a candle closing beyond it).
- Flip Broken Zones to Breaker Blocks โ keep and re-colour broken zones as breakers.
- Keep Invalidated Zones (Historic) โ freeze finished zones instead of deleting them.
Volume Engine
- Show Volume Label โ write volume and buy/sell% inside active zones.
- Show Buy / Sell Volume Bars โ draw the proportional buy/sell bars.
- Volume Baseline Length โ averaging length used to rate volume strength.
- Volume Bar Length (bars) โ maximum length of the buy/sell bars.
Filters
- Only Show High-Volume Zones โ hide blocks below the strength threshold.
- Min Volume Strength (x avg) โ threshold as a multiple of average volume.
- Filter Oversized Zones โ skip blocks taller than the ATR limit.
- Max Zone Height (ATR x) โ the height limit, in multiples of ATR.
Style
- Bullish Zone, Bearish Zone, Buy Volume, Sell Volume, Breaker / Historic, Text โ colours.
- Zone Extension (bars) โ how far active zones project past the current bar.
- Show 50% Mitigation Line โ toggle the equilibrium line.
ALERTS
Alerts are raised through the alert() function for two events: an order block being tapped (mitigation) and an order block being broken (breaker formed). To use them, create an alert on the indicator and choose the "Any alert() function call" condition.
HOW TO USE
Order blocks mark areas where significant orders were likely placed. Traders commonly watch for price to return to an un-mitigated block and react there, and use the buy/sell volume split and strength to judge how meaningful a block is โ a block built on high, one-sided volume is generally treated as more significant than a thin one. Combine the zones with your own confirmation and risk management; this tool highlights levels, it does not generate buy or sell signals.
DISCLAIMER
Nothing here is financial advice or a guarantee of any outcome. Past behaviour of price around order blocks does not predict future results. Always do your own research and manage risk. Indicator

Liquidity Vault [Dojo La Nuit]Liquidity Vault maps resting liquidity on your chart as clean horizontal levels and tracks what happens to them โ without any buy/sell signals or predictions. It is a pure visualization tool for traders who read price around liquidity.
HOW IT WORKS
The script detects swing pivots and clusters nearby highs (and nearby lows) into single liquidity zones using an ATR-based tolerance, so the levels travel across instruments without re-tuning. Each zone gets a strength score from 0 to 100 built from three factors:
โข Touches โ how many times price reacted at the level
โข Freshness โ recent levels score higher and decay over time (configurable half-life)
โข Volume โ relative volume that accumulated at the level
HOW TO READ IT
โข Red lines = sell-side liquidity (resting above price)
โข Green lines = buy-side liquidity (resting below price)
โข Opacity = strength: the stronger the zone, the more solid the line
โข Dimmed, dotted lines = zones that have already been swept (price wicked through the level). They are kept as context, not removed.
SETTINGS
โข Zone Detection โ adaptive or fixed pivot length, clustering tolerance, lookback, max live zones
โข Zone Strength โ minimum score to display, freshness half-life, volume weighting on/off
โข Visuals โ theme (auto/dark/light), strength-based intensity, keep swept zones, line width
โข Colors โ fully customizable buy-side / sell-side colors
NOTES
Strength is shown through line opacity by design, to keep the chart minimal. Zones are recalculated on confirmed bars. This tool highlights where liquidity rests and when it gets taken โ it does not generate entries, targets or signals.
This indicator is for educational and analytical purposes only. It is not financial advice. Always do your own research and manage your own risk.
โโโโโโโโโโโโโโโโโโโโโโโโโ
๐ LIQUIDITY VAULT โ Dojo La Nuit
Liquidity Vault mostra la liquiditร presente sul grafico come livelli orizzontali puliti e ne traccia l'evoluzione, senza segnali di acquisto/vendita e senza previsioni. ร uno strumento puramente visivo per chi opera attorno alla liquiditร .
COME FUNZIONA
Lo script individua i pivot di mercato e raggruppa i massimi (e i minimi) vicini in un'unica zona di liquiditร tramite una tolleranza basata sull'ATR, cosรฌ i livelli funzionano su strumenti diversi senza dover ritoccare i parametri. A ogni zona viene assegnato un punteggio di forza da 0 a 100, calcolato su tre fattori:
โข Tocchi โ quante volte il prezzo ha reagito al livello
โข Freschezza โ i livelli recenti pesano di piรน e si attenuano nel tempo (half-life configurabile)
โข Volume โ il volume relativo accumulato sul livello
COME SI LEGGE
โข Linee rosse = liquiditร sell-side (sopra il prezzo)
โข Linee verdi = liquiditร buy-side (sotto il prezzo)
โข Opacitร = forza: piรน la zona รจ forte, piรน la linea รจ piena
โข Linee attenuate e puntinate = zone giร spazzate (il prezzo ha bucato il livello con un'ombra). Restano come contesto, non vengono rimosse.
IMPOSTAZIONI
โข Rilevamento zone โ pivot adattivo o fisso, tolleranza di clustering, lookback, numero massimo di zone attive
โข Forza zone โ punteggio minimo da mostrare, half-life della freschezza, peso del volume on/off
โข Visual โ tema (auto/scuro/chiaro), intensitร in base alla forza, mantieni zone spazzate, spessore linea
โข Colori โ colori buy-side / sell-side completamente personalizzabili
NOTE
La forza รจ rappresentata tramite l'opacitร della linea, per scelta, per mantenere il grafico minimale. Le zone vengono ricalcolate sulle barre confermate. Lo strumento evidenzia dove si trova la liquiditร e quando viene presa: non genera entrate, target o segnali.
Questo indicatore รจ a scopo puramente didattico e di analisi. Non รจ consulenza finanziaria. Fai sempre le tue valutazioni e gestisci il tuo rischio. Indicator

Smart Money Concepts - Regime-Adaptive SMC [Dots3Red]โ SMART MONEY CONCEPTS โ REGIME-ADAPTIVE SMC
This indicator attempts to bridge a gap that most SMC traders encounter in practice: the same pattern โ an Order Block, a Fair Value Gap, a structure break โ behaves differently depending on whether the market is trending or ranging. A bullish Order Block in a trending market is a continuation entry zone. The same pattern near the top of a range is a reversal signal. This script uses a built-in regime classifier to determine the current market character on every bar, then filters and interprets each SMC concept accordingly.
โ HOW THE REGIME CLASSIFIER WORKS
Three measurements are combined into a single trend score on every bar:
ADX (Average Directional Index) measures how strongly price is committed to a direction. It is normalized from its natural 0โ60 range to a 0โ1 scale by dividing by 60.
Choppiness Index measures directional efficiency โ how much of price movement was "wasted" going sideways versus producing net progress. It is inverted so that high choppiness produces a low score. Near 38 (the Fibonacci trend boundary) the normalized value approaches 1.0. Near 100 (pure chop) it approaches 0.0.
The two values are averaged:
trend_score = (adx_normalized + choppiness_inverted_normalized) / 2
A score above 0.6 identifies a trending market. A score below 0.6 identifies a ranging market.
Volatility override: a separate check compares current ATR against its 50-bar SMA. If the ratio exceeds 1.5ร the baseline, the regime switches to VOLATILE regardless of the trend score โ because during genuine volatility expansion, both trend and reversal signals become unreliable.
Finally, a mode filter examines the last 6 raw regime values and returns the most frequent one. This prevents the regime from flickering on borderline readings.
โ WHAT EACH REGIME SHOWS
TRENDING (cyan bars): Market is moving directionally. Shows BOS labels confirming continuation, Order Blocks created at displacement-qualified BOS bars as continuation entry zones, and Fair Value Gaps as pullback targets in the trend direction. CHoCH signals are hidden โ in a trend, CHoCH is usually a deep pullback, not a reversal.
RANGING (magenta bars): Market is oscillating between levels. Shows CHoCH labels flagging potential reversals at range extremes, Order Blocks at CHoCH bars as reversal entry zones, and Fair Value Gaps near range boundaries. BOS signals are hidden โ a structure break in a ranging market is usually a liquidity sweep, not a genuine breakout.
VOLATILE (amber bars): ATR has expanded significantly above its baseline โ earnings, macro events, sudden liquidations. Order Blocks and FVGs are suppressed because zones created during volatility spikes are historically unreliable. Structure labels (BOS) remain visible for position tracking only.
UNCERTAIN (slate bars): The classifier cannot confidently assign a regime. All signals are displayed so the trader has maximum information. This state occurs during the warmup period and at genuine transition boundaries.
โ ORDER BLOCK DETECTION
Order Blocks require an additional displacement filter before they are created. The body of the candle immediately before the BOS or CHoCH must exceed 0.8ร ATR in absolute size. This ensures only candles with institutional-grade momentum qualify โ eliminating the low-quality OBs that make most SMC scripts visually cluttered.
Mitigation uses standard ICT methodology: a bullish OB is consumed when price's low touches the top of the zone. A bearish OB is consumed when price's high touches the bottom of the zone. Consumed zones fade visually and stop extending.
โ FAIR VALUE GAP DETECTION
A bullish FVG exists when the high of candle is below the low of candle โ a genuine three-candle imbalance where price moved too fast to fill. A minimum size filter of 0.15ร ATR removes noise gaps. FVGs extend forward until price enters the gap, at which point they fade and stop tracking.
โ PREMIUM / DISCOUNT ZONES
Two horizontal lines divide the current 25-bar swing range:
โข 75% level (red): price is in the upper quartile of the recent range โ statistically expensive. In ranging markets this is a sell consideration zone.
โข 25% level (green): price is in the lower quartile โ statistically cheap. In ranging markets this is a buy consideration zone.
The HUD displays the current percentage position within the range in real time.
โ SMC BIAS MATRIX
The HUD includes a composite directional score built from three components:
โข Structural trend (35 points): which direction is the structural_trend state machine currently pointing
โข Premium / Discount position (30 points): which side of the range is price on
โข Regime alignment (35 points): does the regime confirm the directional bias
In VOLATILE and UNCERTAIN regimes the bias is forced to 50% and displays "STAND ASIDE" or "WAIT FOR REGIME" โ because the script suppresses OB and FVG signals in those states, showing a directional bias would contradict its own logic.
โ WHAT YOU SEE ON THE CHART
โข Bar colors: every bar is tinted by the current regime โ cyan (trending), magenta (ranging), amber (volatile), slate (uncertain). No labels or background fills โ just the candles themselves change color, keeping the chart clean.
โข BOS / CHoCH labels: small labels appear above swing highs (bullish breaks) or below swing lows (bearish breaks), offset by 1.5ร ATR so they never overlap candle bodies.
โข Order Block boxes: semi-transparent boxes that extend bar by bar until mitigated, then fade. Maximum 4 per direction.
โข FVG boxes: thin semi-transparent boxes extending until filled, then fading. Minimum size filtered.
โข Premium/Discount lines: two step-lines showing the 75% and 25% boundaries of the current swing range.
โข HUD: regime state, confidence bar, bias matrix, P/D zone, ADX, Choppiness Index, ATR ratio, and live counts of active OBs and FVGs.
โ ALERTS
Seven alert conditions are available: Bull BOS, Bear BOS, Bull CHoCH, Bear CHoCH, Regime โ Trending, Regime โ Ranging, Regime โ Volatile.
โ NOTES ON SETTINGS
โข Regime Smoothing Filter: 5โ7 for intraday charts, 8โ12 for daily/weekly. Lower values react faster but produce more regime transitions.
โข Volatile ATR Mult: 1.8โ2.0 for stock indices (earnings create genuine 2ร spikes), 1.4โ1.6 for crypto and forex.
โข OB Displacement Mult: 0.5โ0.8 for daily charts where candles are naturally larger, 1.0โ1.5 for intraday.
โข Swing Pivot Length: 5โ7 for intraday, 7โ10 for daily/weekly.
โ DISCLAIMER
This indicator is a technical analysis tool. It does not constitute financial advice and does not guarantee future results. Past patterns do not predict future price behavior. Use appropriate risk management on all trades. Indicator

Elaris Absorption Zones ProElaris Absorption Zones Pro
Elaris Absorption Zones Pro is an advanced price-action and volume analysis indicator designed to identify potential absorption events where aggressive market orders are absorbed by opposing passive liquidity.
The indicator focuses on situations where price attempts to break an important level but fails to continue, suggesting that significant limit orders may be absorbing the incoming buying or selling pressure.
Unlike traditional breakout indicators that look for continuation, this tool is designed to highlight failed auctions, rejection events, and potential liquidity absorption zones that may lead to reversals, pullbacks, or reduced directional momentum.
---
What Is Absorption?
Absorption occurs when aggressive participants repeatedly attempt to push price through a level using market orders, but opposing limit orders absorb that pressure and prevent further movement.
Examples include:
โข Buyers aggressively pushing above resistance but failing to achieve continuation.
โข Sellers aggressively pushing below support but failing to achieve continuation.
โข Large rejection wicks appearing after a breakout attempt.
โข High volume with limited price progress (Effort vs Result imbalance).
These conditions can indicate the presence of significant liquidity providers defending a price area.
---
How The Indicator Works
The indicator combines multiple confirmation layers:
Market Structure Analysis
The script monitors:
โข Confirmed swing highs and swing lows
โข Recent trading ranges
โข Failed breakout attempts
Price must first attempt to break an important structural level before absorption conditions can be evaluated.
Rejection Analysis
The indicator evaluates:
โข Upper wick size
โข Lower wick size
โข Body-to-range relationship
Large rejection wicks combined with small candle bodies may indicate strong opposing liquidity.
Volume Confirmation
Volume is evaluated using:
โข Relative volume
โข Volume moving averages
โข Optional volume Z-score analysis
This helps identify situations where participation is elevated compared to normal market activity.
Effort vs Result Model
One of the core components of the indicator is Effort vs Result analysis.
High volume combined with poor directional progress can indicate that incoming orders are being absorbed rather than successfully moving the market.
Absorption Scoring
Every detected signal receives a strength score based on:
โข Rejection quality
โข Relative volume
โข Candle efficiency
Higher scores generally indicate stronger absorption characteristics.
---
Features
โ Bullish absorption detection
โ Bearish absorption detection
โ Failed breakout recognition
โ Confirmed swing structure analysis
โ Range breakout absorption detection
โ Relative volume filters
โ Volume Z-score filtering
โ Effort vs Result analysis
โ Absorption strength scoring
โ Optional absorption zones
โ Zone retest detection
โ Dashboard with live metrics
โ Alert conditions
โ Non-repainting confirmation mode
---
Bullish Absorption
Bullish absorption may occur when:
1. Price breaks below support.
2. Sellers attempt continuation.
3. Price quickly returns above the level.
4. A strong lower rejection wick forms.
5. Volume confirms elevated participation.
This may suggest that passive buyers absorbed the selling pressure.
---
Bearish Absorption
Bearish absorption may occur when:
1. Price breaks above resistance.
2. Buyers attempt continuation.
3. Price closes back below the level.
4. A strong upper rejection wick forms.
5. Volume confirms elevated participation.
This may suggest that passive sellers absorbed the buying pressure.
---
How To Use
Many traders use absorption signals as:
โข Early reversal warnings
โข Liquidity sweep confirmations
โข Support and resistance confirmation
โข Market structure confirmation
โข Trade management tools
For best results, consider combining absorption signals with:
โข Trend analysis
โข Market structure
โข Higher timeframe context
โข Risk management rules
โข Additional confirmation tools
---
Non-Repainting
When "Confirm Only After Candle Close" is enabled, signals are generated only after a candle has fully closed.
Confirmed swing levels are based on completed pivot structures.
This helps reduce signal instability and prevents intrabar repainting behavior.
---
Important Notes
This indicator does not use Level II, order book, footprint, or exchange matching engine data.
Because TradingView Pine Script does not have direct access to actual market order flow, absorption is estimated using a combination of price action, rejection behavior, volume analysis, and structural breakout failure characteristics.
As with all trading tools, signals should be used as part of a complete trading plan and not as standalone buy or sell recommendations.
Indicator

Liquidity Side Bias Engine [AGPro Series]Liquidity Side Bias Engine
๐ง Core Idea
Which side of resting liquidity is the more likely near-term draw right now: the buy-side above, or the sell-side below?
This script is built to answer that one question with structure instead of guesswork.
๐ Overview / What It Does
Liquidity Side Bias Engine is a forward-looking, two-sided liquidity planner for smart-money and ICT-style analysis. Most price action leaves resting liquidity on both sides of the market: buy-side liquidity above old highs and equal highs, and sell-side liquidity below old lows and equal lows. At any moment, one of those two sides usually has the stronger pull. This tool maps the nearest untapped liquidity on each side and weighs it into a single, readable side lean.
Concretely, it identifies the closest buy-side pool above price and the closest sell-side pool below price from equal-highs and equal-lows clusters, the prior higher-timeframe high and low, and unmitigated swing points. It then scores each side from 0 to 100 using proximity, pool strength, trend context, and premium-discount range position, and reports which side is leaning, by how much, where the primary draw sits, and which opposite level would flip the read.
It does NOT predict price, generate buy or sell signals, or automate trades. It organizes a two-sided liquidity picture into a structured bias so the chart is easier to read and plan around. Every output is analytical context, not a recommendation.
๐ฏ Purpose & Design Philosophy
Liquidity tools usually fall into two buckets: reactive sweep detectors that mark a liquidity grab after it already happened, and static maps that draw every pool on the chart and leave interpretation entirely to the trader. Both are useful, but neither answers the practical question a planner actually asks before the move: of the two sides, which one is the market more likely leaning toward next?
This engine was built to fill that gap. It is for the trader who already understands liquidity but wants a clean, consistent way to frame the two-sided picture without manually weighing five different factors on every chart. It supports a patient, context-first mindset: read the lean, understand why it leans, watch the primary draw and the flip level, and let broader market context confirm or deny the idea. The goal is intentional, structured thinking, not a shortcut around it.
โก Why This Script Is Different
Most liquidity tools focus on what already happened, marking sweeps and grabs after the candle closes, or they paint a dense map of every pool and stop there.
This script does NOT try to call tops and bottoms, does NOT fire trade signals, and does NOT bury the chart in unlabeled levels.
Instead, it looks forward. It treats buy-side and sell-side liquidity as a two-sided tug-of-war and resolves it into one lean score from 0 to 100, with a clear dominant side, a primary draw target, an opposite flip level, the pool type in play, and a premium-discount range read. The leaning side is drawn solid and emphasized; the opposite side is drawn faint as the flip reference. The result is a single, calm decision-support read instead of a wall of levels or a backward-looking alert.
โ๏ธ Methodology
1. Context Detection
An ATR baseline, an EMA trend backbone with a slope check, and a premium-discount dealing range are computed to describe the current environment.
2. Reference Mapping
The nearest untapped buy-side pool above price and sell-side pool below price are located from equal-highs and equal-lows clusters, the prior higher-timeframe high and low, and unmitigated swing points. The prior period adapts to the chart: prior day on intraday, prior week on daily, prior month on higher timeframes.
3. Reaction Evaluation
Each side is scored from 0 to 100 across four factors: proximity (closer pools pull more), pool strength (cluster size, prior-period magnetism, freshness), trend context (the direction-aligned side is weighted), and range position (discount weights the buy-side draw, premium weights the sell-side draw). The two scores are compared into a single lean; a small balance gap is treated as two-sided.
4. Visual Output
The leaning side, its primary draw, the opposite flip level, pool type, distance, and a next-action read are rendered into a clean panel, two side lines, a centered bias badge, and moderate alternating event labels.
๐บ๏ธ How to Read the Chart
- Side lines: the buy-side line sits above price, the sell-side line below. The leaning side is solid and bold; the opposite side is faint and dashed, marking the flip reference.
- Bias badge: a compact badge near current price shows the leaning state and its 0-100 score.
- Target tag: a single right-edge tag marks the primary draw price on the leaning side.
- Faint pool lines: lighter dotted lines show other untapped pools as a soft liquidity map.
- Labels: green relates to buy-side context, pink to sell-side context, amber to balanced.
- Panel: a fixed readout of state, bias score, primary draw, pool type, range, flip level, and action.
๐ฆ Signals & States
- Buy-Side Lean โ buy-side liquidity above is currently the leaning near-term draw.
- Sell-Side Lean โ sell-side liquidity below is currently the leaning near-term draw.
- Balanced โ both sides are close in score; no clear leaning side.
- Buy-Side Taken / Sell-Side Taken โ a liquidity side was traded through (mitigated).
These are interpretive states, not instructions. A Buy-Side Lean does not mean buy; it means the upside pool is the weighted draw in the current context.
๐ Alerts Logic
Three optional alerts are available:
- Buy-Side Lean: triggers when the dominant side flips to buy-side above the active threshold.
- Sell-Side Lean: triggers when the dominant side flips to sell-side above the active threshold.
- Liquidity Side Taken: triggers when a buy-side or sell-side pool is traded through.
Alerts are attention markers that point you back to the chart for context. They are not trade instructions and carry no guarantee of any outcome.
๐งฉ Confluence Logic
The lean is itself a confluence read. When proximity, pool strength, trend alignment, and range position agree on one side, that side scores higher and the lean is more pronounced. When they disagree, the score stays moderate and the state may resolve to Balanced, which is information in itself: the two-sided picture is unresolved.
๐ When to Use
- Trending markets, to frame whether the trend-aligned liquidity remains the dominant draw.
- Ranging markets, to read which range extreme is the more likely draw from the current premium-discount position.
- Around prior-period highs and lows, to gauge which side carries the stronger pull.
- As a planning overlay alongside your own structure, entries, and risk framework.
โ ๏ธ When NOT to Use
- In very low-liquidity symbols or sessions, where swing points and pools are unreliable.
- In extremely noisy or news-driven conditions, where levels are violated erratically.
- As a standalone entry trigger, or in isolation from market structure and risk context.
- On data with large gaps or thin history, where pool detection has too little to work with.
๐๏ธ Key Inputs
- Swing Strength: how strong a swing must be to qualify as a pool. Higher keeps only major swings.
- Pool Memory: how many recent swings are retained per side.
- Equal Level Tolerance: ATR width for grouping nearby levels into an equal-highs or equal-lows cluster.
- Use Prior-Period Pools: includes the adaptive prior-period high and low as pools.
- Trend Backbone EMA and Slope Bars: define the directional context weighting.
- Premium-Discount Range: lookback for the dealing range that drives the range-position factor.
- Max Draw Distance, Pool Freshness Window: shape how distance and age affect the score.
- Active Bias Score and Balanced Gap: thresholds for an active lean versus a balanced read.
- Visual, label, and panel controls: side lines, badge, target tag, pool map, label density, panel location, theme, and font size.
๐ฅ๏ธ Interface & Visual Design
The panel is the primary readout, leading with the leaning state and 0-100 score, then primary draw, pool type, premium-discount range, flip level, and a concise action line. On the chart, visual hierarchy favors the leaning side: it is solid and emphasized, while the opposite side stays faint. Labels are kept moderate and strictly alternating so the chart reads cleanly at a glance. Panel location, theme, and font size are adjustable; the panel is shown by default for readability.
๐งช Practical Usage Workflow
1. Read the panel: note the leaning state and the bias score.
2. Check the primary draw and the flip level: where is the weighted draw, and what would invalidate the read.
3. Read the premium-discount range line: is price in discount or premium, and how far is the draw in ATR.
4. Confirm with your own market structure, higher-timeframe context, and risk framework before any decision.
๐ Interpretation Guidelines
Think of the lean as a weighted opinion about the two-sided liquidity picture, not a forecast. A higher score means the factors agree more strongly; a moderate score or a Balanced state means the picture is mixed and patience is warranted. The flip level is a structural reference, not a hard line. Always interpret the lean inside the broader market context rather than in isolation.
๐ซ What This Script Is NOT
- It is NOT a prediction engine and does not forecast price direction.
- It is NOT financial advice or a recommendation to buy or sell.
- It is NOT an automated trading system.
- It does NOT produce guaranteed signals or outcomes.
โ ๏ธ Limitations & Transparency
Outputs depend on detected swing structure and may differ across timeframes and symbols. Volatility, liquidity, and changing market conditions affect how pools form and how they are taken. Prior-period pools rely on higher-timeframe data and shift as new periods print. The tool describes current structure; it cannot know the future, and any level can be exceeded or fail to be reached.
๐ง Market Context Notes
Liquidity tends to rest where many participants place stops and pending orders: above equal highs, below equal lows, and around prior-period extremes. In an uptrend, price in discount often leans toward the buy-side draw above; in a downtrend, price in premium often leans toward the sell-side draw below. This engine encodes that two-sided logic into a single read, but market context always has the final word.
๐งพ Use Case Examples
- Price is in discount within its range, trend is up, and the nearest buy-side pool is a prior-week high: the engine shows a Buy-Side Lean with the prior-week high as the primary draw.
- Price is in premium, momentum is fading, and equal lows rest below: the engine may show a Sell-Side Lean with those equal lows as the primary draw and a high above as the flip level.
- Both sides score closely: the engine reports Balanced, signaling an unresolved two-sided picture.
๐งฑ System Philosophy
This tool reflects the AGPro Series approach: convert a familiar but messy concept into a calm, structured, decision-support read. Liquidity is everywhere on a chart; the value is in organizing it into a single, honest lean that respects the trader's own judgment rather than replacing it.
๐ Non-Promise Statement
This script makes no promise of profit, accuracy, or any specific result. It is an analytical and organizational tool. No certainty is offered or implied.
๐ Risk Disclosure
Trading involves substantial risk, and most participants can lose money. This script is provided for educational and analytical purposes only and does not constitute financial advice. All decisions, positions, and outcomes remain entirely your own responsibility. Always manage risk and trade within your own plan.
๐ Educational Note
Used as intended, the engine can sharpen how you think about two-sided liquidity: where it rests, which side is weighted, and what would change the picture. Treat it as a lens for structured analysis, and keep building your own market understanding alongside it.
Indicator

Draw On Liquidity Planner [AGPro Series]Draw On Liquidity Planner
๐ง Core Idea
Of all the liquidity resting around price, which single pool is the dominant draw right now, how strong is that draw, and what level would put it in question?
๐ Overview / What It Does
Draw On Liquidity Planner is a chart-first liquidity decision tool. Instead of drawing every high and low on the screen, it studies the untapped liquidity pools sitting on both sides of price and decides which one is acting as the dominant "draw on liquidity," then frames a complete read around it.
It maps buy-side liquidity above price and sell-side liquidity below price from three sources: clusters of equal highs and equal lows, the prior higher-timeframe high and low, and unmitigated swing points. It tracks which pools are still untapped and which have already been swept. It then scores each side from 0 to 100 and selects the single dominant draw, presenting a clear state, the target pool price, the draw distance in ATR, the pool type, a structural invalidation reference, and a plain next-action read in a clean panel.
The script does not predict price, generate buy or sell signals, or automate trades. It organizes scattered liquidity into one structured draw decision so the chart can be read with intent instead of guesswork.
๐ฏ Purpose & Design Philosophy
This planner was built to close a specific gap. Many liquidity tools fall into one of two traps: they map every level at once until the chart is unreadable, or they only flag a sweep after it has already happened. Neither answers the first question a liquidity-focused trader actually asks: of everything resting around price, which side is the real magnet, and how convinced should I be?
Draw On Liquidity Planner is designed for patient, context-driven traders who think in terms of where liquidity rests and where price is being pulled. It supports a planning mindset rather than a reflex: identify the dominant draw, note the target and the invalidation, gauge conviction from the score, and then wait for the market to confirm or reject that context. It is a decision-support layer, not a trigger.
โก Why This Script Is Different
Most liquidity tools either print a dense map of every swing high and low, or they detect a sweep only once it is complete and leave the interpretation to you.
This script does NOT flood the chart with every level, and it does NOT claim to know the next move.
Instead, it ranks both sides of liquidity into a single dominant draw with a transparent 0-100 score, shows one clean target, one structural invalidation, and a light reference map of the remaining pools, and keeps the detailed read in a premium panel so the price area stays clear. The decision layer โ which side, how strong, what would invalidate it โ is the product. The raw levels are just the inputs.
โ๏ธ Methodology
The internal logic runs in clear, rule-based steps:
1. Pool Detection
Swing highs and swing lows are detected with an adjustable swing strength and stored as candidate liquidity pools. The prior higher-timeframe high and low can be included as significant pools, and the period adapts to the chart: prior day on intraday charts, prior week on daily charts, and prior month on higher timeframes.
2. Mitigation Tracking
A buy-side pool is marked as taken once price trades through it, and a sell-side pool once price trades under it. Only untapped liquidity is treated as an active draw, so the read reflects what is still resting rather than what has already been consumed.
3. Cluster Evaluation
Nearby untapped levels are grouped using an ATR-based tolerance to recognize equal highs and equal lows. More touches at a level mean stronger resting liquidity, which contributes a higher draw quality.
4. Draw Scoring
Each side receives a 0-100 score built from four components: pool quality (cluster strength and prior-period status), proximity in ATR, directional context from a trend backbone, and pool freshness. The weighting favors quality and proximity while still respecting trend alignment and how recently the pool formed.
5. Dominant Draw Selection
The higher-scoring side becomes the active draw. When the two sides are close, the context is treated as balanced two-sided liquidity rather than forcing a single direction.
6. Visual Output
The active draw is drawn as a thin highlighted zone with a centered badge, a target line, a structural invalidation line, a light reference map of the remaining pools, a single right-edge target tag, and a complete summary panel.
๐บ๏ธ How to Read the Chart
- Draw Zone: the thin highlighted band around the dominant liquidity target, with a centered badge showing the state and the 0-100 score.
- Target Line: the solid line at the active draw pool price.
- Invalidation Line: the dashed line at the opposite-side structural reference (the nearest swing on the other side); losing that level weakens the current draw lean.
- Faint Pool Lines: dotted reference lines marking the other untapped pools on each side, as a light liquidity map.
- Target Tag: a single right-edge tag with the active draw target price.
- Event Labels: compact markers that print when the dominant draw flips side or when a liquidity pool is swept. They alternate by side and stay clear of the candles.
- Panel: state, draw score, target, distance, pool type, invalidation, and action.
Colors follow the AG Pro palette: teal for buy-side draws, pink for sell-side draws, and amber for balanced or lower-conviction context.
๐ฆ Signals & States
โข Buy-Side Draw โ untapped liquidity above is the dominant magnet
โข Sell-Side Draw โ untapped liquidity below is the dominant magnet
โข Two-Sided โ both sides are roughly balanced, with no single dominant draw
โข No Draw โ no qualifying untapped pool is currently in range
States describe liquidity context only. They are not trade instructions and carry no guarantee of direction.
๐ Alerts Logic
Alerts are available for:
- Buy-Side Draw: the dominant draw establishes on the buy side with a qualifying score
- Sell-Side Draw: the dominant draw establishes on the sell side with a qualifying score
- Liquidity Pool Swept: a tracked pool is traded through
Alerts are attention markers that flag a change in liquidity context. They are not signals to enter or exit a position, and each alert should be interpreted within the broader market picture.
๐งฉ Confluence Logic
The draw score is itself a confluence measure. A high score means pool quality, proximity, directional context, and freshness are aligning on the same side. When the active draw also agrees with your higher-timeframe bias and the prevailing structure, the context is stronger. When they disagree, the read deserves more caution, and the score will usually reflect that with a lower value.
๐ When to Use
โข Trending markets, where price tends to reach for liquidity in the direction of the trend
โข Range edges, where equal highs or equal lows build obvious resting liquidity
โข Charts with a clear prior-period high or low acting as a reference draw
โข Planning phases, when defining a target and an invalidation before committing to a view
โ ๏ธ When NOT to Use
โข Very low-liquidity symbols or thin sessions, where swing structure is unreliable
โข Extreme volatility events, where levels are torn through without reaction
โข Very low timeframes dominated by noise, where pools form and break too quickly
โข As a standalone entry trigger, with no regard for broader context
๐๏ธ Key Inputs
โข Swing Strength โ how strong a swing must be to become a pool
โข Pool Memory โ how many recent pools are retained
โข Equal Level Tolerance โ how loosely nearby levels merge into a cluster
โข Use Prior-Period Pools โ include the prior higher-timeframe high and low (day, week, or month by chart)
โข Trend Backbone EMA and Slope โ the directional context used in scoring
โข Max Draw Distance โ distance beyond which a pool is treated as too far to be an active draw
โข Active Draw Score โ minimum score for an emphasized, alert-eligible draw
โข Two-Sided Balance Gap โ score gap below which liquidity is treated as balanced
โข Visual and panel settings โ control zones, lines, labels, density, location, theme, and font size
๐ฅ๏ธ Interface & Visual Design
The interface is intentionally restrained. One dominant draw zone, one target line, one structural invalidation reference, a light pool map, and a single target tag keep the chart readable. Event labels alternate by side and point at the candle that produced them, so the chart reads as a clean sequence rather than a cluster. The panel carries the detailed read, and its first row is a single merged brand header. Panel location, theme, and font size are all adjustable, and the panel is shown by default for clarity.
๐งช Practical Usage Workflow
1. Read the panel: note the state and the draw score.
2. Locate the target: confirm the highlighted draw zone and the target line.
3. Check the invalidation: note the opposite-side structural reference.
4. Confirm context: compare with your higher-timeframe bias and structure before acting on any view.
๐ Interpretation Guidelines
Treat the draw score as a measure of how clearly liquidity leans to one side, not as a probability of profit. A strong, aligned draw is context to plan around. A balanced or weak read is a reason to wait rather than to force a trade. Every output is meant to be interpreted inside the broader market picture, never in isolation.
๐ซ What This Script Is NOT
- It is NOT a prediction engine.
- It is NOT financial advice.
- It is NOT an automated trading system.
- It does NOT generate guaranteed signals or outcomes.
โ ๏ธ Limitations & Transparency
Liquidity context behaves differently across timeframes, symbols, and volatility regimes. Pools can be ignored, swept and reversed, or run through without reaction. Swing detection depends on the chosen settings, and prior-period references behave differently across symbols and session types. This tool organizes context and frames a decision; it does not guarantee how price will respond to any level.
๐ง Market Context Notes
Liquidity tends to rest where many participants place stops: above equal highs, below equal lows, and around prior-period extremes. Price often gravitates toward these areas, but the timing and the reaction are never certain. The structure and volatility around a pool shape how meaningful any reaction near it is likely to be, which is why the score blends proximity and trend context rather than distance alone.
๐งพ Use Case Examples
โข In an uptrend, the planner highlights a buy-side draw at a cluster of equal highs above price, with a recent swing low as the structural invalidation below and a score that reflects how aligned and how close that draw is.
โข In a range, the planner shows two-sided liquidity, signaling that no single side is dominant and that patience is warranted until one side resolves.
โข After a deep move, the prior-period high or low can become the dominant draw, giving a clear reference target while the invalidation marks where that lean would weaken.
๐งฑ System Philosophy
The AG Pro approach favors decision-support tools over raw indicators. Each script is built to answer a specific question, present a clean read, and respect the chart. Draw On Liquidity Planner reflects that philosophy by turning scattered liquidity into one structured draw decision with a transparent score and a defined invalidation.
๐ Non-Promise Statement
This tool offers no guarantees and no certainty about future price movement. It is a structured way to read liquidity context and frame a plan, nothing more.
๐ Risk Disclosure
Trading involves substantial risk. This script is provided for educational and analytical purposes only and does not constitute financial advice. All trading decisions and their outcomes are solely the responsibility of the user.
๐ Educational Note
Use this planner to study how price interacts with resting liquidity over time. Watching which draws are respected, swept, or ignored on your own market and timeframe is a practical way to build liquidity-reading skill and a more structured trading process. Indicator

Peak Decoder v1.0Kurzbeschreibung:
Ein hochentwickelter, strukturbasierter Oszillator, der die relative Position des Preises innerhalb seiner aktuellen Handelsspanne entschlรผsselt.
Das Tool identifiziert vollautomatisch die mathematischen und visuellen Scheitelpunkte (Peaks & Troughs) in den Extremzonen und filtert kurzfristiges Marktrauschen sowie Fehlausbrรผche effektiv heraus.
Hauptfunktionen & Funktionsweise:Drei integrierte Sensitivitรคts-Modi:
รber das Einstellungsmenรผ kann die Reaktivitรคt des Algorithmus fliegend gewechselt werden:
Aggressiv: Extrem schnell, optimiert fรผr das Scalping in kleinsten Zeiteinheiten.
Normal: Die ausgewogene Standard-Einstellung fรผr das klassische Daytrading.
Passiv: Filtert starkes Rauschen heraus, ideal fรผr die รผbergeordnete Trendbestimmung (HTF).
Intelligenter Bounce- & Wellenfilter: Der Indikator speichert Ausbrรผche in den Extremzonen im Zwischenspeicher. Er wartet geduldig, bis eine Bewegung endgรผltig abgeschlossen ist. Entstehen tiefere Tรคler oder hรถhere Hochs innerhalb derselben Phase, wandert das Signal automatisch mit.
Striktes Wechselsystem: Die Logik erzwingt ein sauberes, alternierendes Signalmuster (Top โ Bottom โ Top). Dadurch werden mehrfache Fehlsignale auf derselben Seite in volatilen Seitwรคrtsphasen komplett eliminiert.
Prรคzise visuelle Signale: Bestรคtigte Wendepunkte werden mit dezenten Kreisen direkt auf der Wellenspitze markiert. Zur besseren รbersicht wird ein fetter Richtungspfeil horizontal (auf 3 Uhr) daneben platziert.
Anwendung im Trading:Der Oszillator dient als hervorragender Filter zur Bestimmung von Premium- (รberkauft) und Discount-Zonen (รberverkauft) im Rahmen von Smart Money Concepts (SMC) oder klassischen Marktstruktur-Strategien.
Rot (Oben): Potenzielle Erschรถpfung der Kรคufer, Vorbereitung fรผr Short-Setups.
Grรผn (Unten): Potenzielle Erschรถpfung der Verkรคufer, Vorbereitung fรผr Long-Setups.
Enthรคlt eine voll integrierte Alarm-Schnittstelle (alert()), die pro Bar-Close einmalig auslรถst, sobald ein Peak final bestรคtigt wurde. Indicator

Indicator

Crypto Ultimate Indicator v2โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CRYPTO ULTIMATE INDICATOR (CUI)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
A multi-layer confluence system for crypto traders. Stacks 12+ independent technical layers โ trend, momentum, volume, regime, multi-timeframe bias, and Smart Money Concepts โ and fires Buy/Sell signals only when enough of them agree. Every signal comes with a confidence score, three take-profit levels, position size recommendation, and live outcome tracking.
Built for 4H and Daily crypto charts. No proprietary "secret sauce" โ every component is documented and every input is exposed.
โโโโโโโ WHY THIS EXISTS โโโโโโโ
Most multi-indicator scripts stack correlated trend filters (more EMAs, more oscillators) and call it "confluence." That just adds the illusion of agreement without adding independent information.
CUI's filter stack is built from genuinely different signal sources, so when they align, that alignment carries real weight:
โข Trend regime โ HMA + Supertrend + EMA Ribbon
โข Momentum โ RSI with proper pivot-to-pivot divergence
โข Volume flow โ body-weighted Volume Delta + CVD divergence
โข Volatility state โ Bollinger squeeze + squeeze-release timing
โข Market structure โ composite of ADX, Choppiness Index, BB-width percentile
โข Multi-timeframe โ weighted Daily / Weekly / Custom HTF (all offset, no repaint)
โข Liquidity & gaps โ Fair Value Gaps + Liquidity Sweep detection
โข External context โ optional BTC trend filter for alt trading
A Buy or Sell only fires when the relevant subset of these align. A built-in "Why-Not" diagnostic table shows you exactly which filter is blocking a near-signal at any moment โ turning the indicator into a tunable system rather than a black box.
โโโโโโโ CORE FEATURES โโโโโโโ
TREND & MOMENTUM
โธ Hull Moving Average (configurable length)
โธ Supertrend with ATR factor
โธ 5-EMA Ribbon (8/13/21/34/55) with stacking score
โธ RSI with consecutive-pivot divergence detection
โธ MACD and Stochastic RSI (data window)
VOLUME
โธ Body-weighted Volume Delta (not naive close-position)
โธ Cumulative Volume Delta (CVD)
โธ CVD divergence at confirmed pivots
VOLATILITY & REGIME
โธ Bollinger Bands with squeeze detection and release timing
โธ Composite regime classifier (ADX ร CHOP ร BB-width)
โธ Background tint for trending vs ranging states
โธ Regime transition labels
SMART MONEY CONCEPTS
โธ Fair Value Gap zones (bullish and bearish)
โธ Liquidity Sweep detection
MULTI-TIMEFRAME
โธ Daily / Weekly / User-defined custom HTF
โธ Weighted confluence score (D 1.0x + W 1.5x + Custom 0.75x)
โธ Optional HTF pivot-based S/R lines
BTC CONTEXT (for alt traders)
โธ Optional BTC trend filter
โธ Relative strength vs BTC
SIGNAL ENGINE
โธ 0-100 confidence score
โธ Configurable minimum confidence threshold
โธ Auto-tune presets (Aggressive / Balanced / Conservative / Custom)
โธ Confirmation bar requirement
โธ Minimum spacing between signals
TRADE MANAGEMENT
โธ Three take-profit levels (TP1/TP2/TP3) with configurable ATR multipliers
โธ Custom % allocation per target
โธ Adaptive SL/TP โ different distances in trending vs ranging conditions
โธ Break-even stop activation after TP1
โธ Chandelier ATR trailing stop on runner portion
โธ Position size calculator (account size ร risk % ร confidence multiplier)
LIVE TRACKING & DIAGNOSTICS
โธ Main dashboard with all current state
โธ Signal log table โ last N trades with live TP/SL outcomes
โธ Why-Not diagnostic โ which filter is currently blocking each direction
โธ Regime stats โ win rate broken down by trending vs ranging
ALERTS
โธ 15+ classic alertcondition triggers
โธ Optional JSON webhook payload for bot integration
โโโโโโโ HOW A BUY SIGNAL FIRES โโโโโโโ
All of the following must be true on the signal bar:
1. HMA trending up
2. RSI above 50
3. Volume delta positive
4. EMA Ribbon score โฅ +3 (at least 4 of 5 aligned bullish)
5. Supertrend bullish
6. HTF confluence score โฅ +1.5
7. Confidence score โฅ user minimum
8. BTC trend bullish (if BTC filter enabled)
9. Price not inside opposing FVG zone (if FVG filter enabled)
10. Market not in strong ranging mode
11. Price more than 0.5 ATR from upper resistance zone
12. Candle body > 50% of range
13. Minimum bars elapsed since last signal
14. Confirmation bar (if enabled)
A Sell signal requires the inverse. On 4H BTC expect roughly 1-3 signals per week in normal conditions. If you see fewer, drop the confidence floor or switch to the Aggressive preset.
โโโโโโโ RECOMMENDED USE โโโโโโโ
โธ Primary: 4H on BTC/USDT, ETH/USDT, and majors
โธ Also works: Daily, 12H, 8H
โธ Use caution below 1H โ noise increases, news spikes can trigger wicks
โธ Low-liquidity alts: bump ATR period to 21
WORKFLOW
1. Start on the Balanced preset
2. Watch the dashboard and Why-Not panel for a few sessions
3. Adjust the confidence floor based on signal frequency
4. Enable Regime Stats after chart history accumulates
5. For bots: enable JSON webhook alerts, route via "Any alert() function call"
โโโโโโโ REPAINT DISCLOSURE โโโโโโโ
Full transparency on what does and doesn't repaint:
โธ HMA, Supertrend, EMA Ribbon: repaint on the developing current bar (use bar-close confirmation for live trading)
โธ HTF confluence (D/W/Custom): all use offset โ fetch last closed HTF bar only โ NO intra-period repaint, NO lookahead
โธ RSI and CVD divergence labels: plotted at confirmed pivot bar (5 bars after the actual pivot). Do NOT appear and disappear.
โธ FVG zones: drawn on confirmation bar of the 3-bar gap pattern. Do not repaint once drawn.
โธ Liquidity sweeps: detected on bar close
โธ Trade outcomes (signal log): evaluated on each closing bar
โธ Regime transition labels: confirmed on bar close
โโโโโโโ HONEST LIMITATIONS โโโโโโโ
โธ This is a decision-support tool, not a complete trading system. Risk management, position discipline, and execution matter more than any indicator.
โธ Signal outcomes in the Regime Stats table are based on bar-close evaluation. Real-fill slippage is not modeled.
โธ Volume Delta is approximated from candle structure, not true tick-level bid/ask (TradingView doesn't expose that without premium feeds).
โธ FVG and liquidity sweep are simplified interpretations of those concepts โ pure SMC purists may prefer dedicated tools.
โธ The regime classifier is a heuristic composite. It works well on liquid crypto pairs but can lag at sharp inflection points.
โธ Past performance does not predict future results.
โโโโโโโ SETTINGS OVERVIEW โโโโโโโ
The script has many inputs, grouped by function. For first-time users, the most important groups are:
โธ Preset & Theme โ pick Balanced to start
โธ UI Sizing โ table text and label sizes
โธ Signal Engine โ set Minimum Confidence Score
โธ Tiered Exits โ TP/SL multipliers and % allocation
โธ Position Sizing โ account size and risk per trade
โธ Alerts & Webhooks โ enable JSON for bot trading
Default state shows a clean chart: HMA, Supertrend, BB, regime tint, signal labels, plus three tables (dashboard, signal log, HTF panel). Everything else is one toggle away โ EMA Ribbon, FVG boxes, ATR zones, HTF S/R lines, CVD divergence labels, sweep markers, Why-Not diagnostic, Regime Stats.
โโโโโโโ WHAT'S NOT INCLUDED โโโโโโโ
โธ Full strategy() backtest โ this is an indicator(). A companion strategy script may be released separately.
โธ Funding rate / open interest overlays โ require specific tickers not universally available
โธ Chart pattern recognition (H&S, wedges, etc.)
โโโโโโโ CREDITS โโโโโโโ
Built on Pine Script v6. Uses TradingView built-ins: ta.supertrend, ta.dmi, ta.bb, ta.macd, ta.rsi, ta.pivothigh, ta.pivotlow, ta.valuewhen. Choppiness Index, CVD, FVG detection, liquidity sweep logic, regime classifier, confidence scoring, trade tracking, and confluence weighting are custom implementations.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Indicator

Daily Bias Liquidity Profiler [MarkitTick]๐ก This advanced analytical framework is engineered to decode market structure, track liquidity sweeps, and map volatility profiles on an intraday basis. Built natively for the sophisticated Pine Script version 6 environment, this indicator transcends basic charting by aggregating Previous Day metrics, session-specific liquidity pools, Fair Value Gap (FVG) confluences, and probabilistic bias models into a single, cohesive visual interface. It is designed for quantitative and algorithmic traders who require a deep understanding of market mechanics, offering unparalleled insight into where resting liquidity is likely positioned and how daily volatility is structured based on pure statistical variance.
โจ Originality and Utility
โ Comprehensive Architectural Design
Most standard technical indicators focus on a single mathematical transformation, such as moving averages or simple momentum oscillators. The originality of this profiler lies in its multi-faceted approach, unifying advanced price action concepts that typically require multiple separate scripts. By leveraging Pine Script version 6 User-Defined Types (UDTs), the script maintains an incredibly lightweight footprint while calculating complex, interconnected market states without degrading chart performance.
โ Algorithmic Session Tracking
The utility of the indicator is profoundly evident in its automated handling of time-based liquidity. Rather than manually drawing boxes around the Asian and London sessions, the script dynamically profiles these periods. It treats their boundaries not as mere historical artifacts, but as active, magnetic liquidity pools that drive future price action.
โ Real-Time Bias Computation
This tool introduces a dynamic probability engine that continuously evaluates the likelihood of price sweeping the Previous Day High or Previous Day Low based on current opening momentum and accumulated volatility. This gives traders a statistical edge in determining their daily directional bias without relying on subjective chart patterns.
๐ฌ Methodology and Concepts
โ Daily Range Profiling
At the core of the script's methodology is the Daily Profile engine. It systematically captures the Previous Day High, Previous Day Low, and Previous Day Close. These levels represent the absolute boundaries of yesterday's value area. The script calculates the total range of the previous day to establish a baseline for current-day expectations and statistical deviation limits.
โ Session Liquidity Engineering
The script defines distinct macro-economic windows, specifically targeting the Asian and London trading sessions.
Asian Session Consolidation: Often characterized by tight ranges, the Asian session builds resting liquidity above its highs and below its lows. The algorithm tracks these exact price levels dynamically.
London Session Expansion: The script monitors the London open for initial expansion moves that frequently sweep the liquidity accumulated during the Asian session, triggering internal alerts when these specific thresholds are pierced.
โ Fair Value Gap (FVG) Confluence
Market imbalances are identified through a precise Fair Value Gap detection algorithm. The script does not just highlight every random gap on the chart; it specifically looks for FVG formations that align with the directional bias and occur in proximity to session sweeps. This creates a high-probability confluence signal, indicating that the market is rapidly moving to rebalance price delivery.
โ Advanced Volatility Metrics
Volatility is not measured through standard lagging indicators. Instead, the script utilizes an Average Daily Range (ADR) calculation. It dynamically tracks the percentage of the ADR that has been fulfilled during the current day. By calculating how many bars it typically takes to reach standard deviation milestones of the ADR, the script provides a predictive model for intraday exhaustion.
โ Dynamic Bias Scoring Engine
The indicator calculates a running score to determine the daily bias. It awards positive and negative weights based on several factors: the location of the current price relative to the daily open, whether a session liquidity sweep has occurred, the presence of FVG confluences, and the proximity to the Previous Day's extremes. This score is translated into a probability percentage for sweeping either the high or the low.
๐จ Visual Guide
โ Liquidity Zones and Range Boxes
Session Boxes: Distinct, shaded rectangular regions drawn over the chart to encapsulate the high and low bounds of the Asian and London sessions. These boxes visually isolate the accumulation phases.
Range Zone Boxes: Projected areas above and below the current price action representing high-probability reversal or expansion targets based on the ADR calculations.
โ Structural Lines
Previous Day Boundaries: Solid, distinct horizontal lines marking the exact price levels of the Previous Day High and Previous Day Low.
Midlines: Subtler horizontal lines traversing the center of the calculated range zones to indicate equilibrium levels where price action may stall or pivot.
โ Dynamic Labels and Alerts
Sweep Labels: Textual annotations that appear exactly when price pierces a session boundary or previous day extreme, explicitly confirming a liquidity sweep.
Bias State Text: A dedicated label displaying the current statistical bias, updating dynamically as volatility metrics shift throughout the trading day.
๐ How to Use
โ Establishing Directional Bias
Begin your analysis by referencing the Bias State metric displayed on the chart. If the script calculates a high probability of sweeping the Previous Day High, prioritize bullish setups. Conversely, a high probability for the Previous Day Low dictates a bearish posture. Do not fight the algorithmic bias without significant contradicting evidence from higher timeframes.
โ Executing the Sweep and Reverse
Monitor the Asian and London session boxes. A prime setup occurs when price aggressively breaks outside a session box and immediately faces strong rejection. This false breakout is the trigger for a mean-reversion trade targeting the opposite side of the session range. Look for the script's sweep labels to confirm the level has been compromised.
โ Filtering with Volatility
Consult the Volatility Metrics before entering a trade. If the current daily range has already fulfilled a high percentage of the Average Daily Range (ADR), the probability of further directional expansion diminishes. In such cases, avoid breakout trades and look for exhaustion reversals at the projected Range Zone extremes.
โ Utilizing FVG Confluence
When a sweep occurs, wait for the algorithm to highlight a valid Fair Value Gap in the opposite direction of the sweep. Enter the market on the retracement into this FVG, placing stop losses just beyond the sweep extreme for optimal risk-to-reward ratios.
โ๏ธ Inputs and Settings
โ Time and Session Configuration
Asia Session Hours: Allows the user to precisely define the start and end times of the Asian session based on their specific exchange and timezone.
London Session Hours: Configurable inputs to match the precise opening and closing dynamics of the European market.
โ Volatility Parameters
ADR Lookback Length: The historical window (number of days) used to calculate the Average Daily Range. A shorter lookback makes the indicator more responsive to recent volatility spikes, while a longer lookback provides a smoother, more stable expected range.
โ Visual Toggles
Show Session Boxes: A boolean toggle to enable or disable the shaded background for trading sessions, allowing for a cleaner chart if only the boundary lines are desired.
Show Sweep Labels: Allows users to turn off the text annotations for liquidity sweeps to reduce visual clutter during highly volatile, choppy market conditions.
๐ Deconstruction of the Underlying Scientific and Academic Framework
โ Auction Market Theory and Liquidity
The foundational logic of this script is deeply rooted in Auction Market Theory. Financial markets operate as a continuous dual-auction process, seeking areas of high liquidity to facilitate trade execution for large-scale participants. The script mathematically models this by isolating session highs and lows, recognizing them as high-density zones for stop-loss orders and breakout triggers.
โ Statistical Variance and Range Forecasting
The Volatility Metrics engine relies on historical variance. By computing the Average Daily Range over a predefined dataset, the script applies a simplified standard deviation model to predict the expected boundaries of the current day. This creates a probabilistic bell curve of expected price distribution, where the extremes of the ADR represent the tails of the distribution curve, indicating areas of high mean-reversion probability.
โ Microstructural Order Flow Imbalances
The Fair Value Gap (FVG) detection logic is an algorithmic representation of order flow imbalance. In academic market microstructure, when price moves with extreme velocity, it creates a void in the bid-ask spread where only one side of the market was effectively matched. The script mathematically identifies these structural inefficiencies, utilizing them as high-probability zones for future price retracements, as the market naturally seeks to re-auction these inefficiently traded areas.
โ Probabilistic Modeling
The bias engine utilizes a rudimentary form of multi-factor linear weighting. By assigning specific values to isolated market events (e.g., crossing the open price, sweeping a specific session), the model computes a composite score. This deterministic approach strips away emotional trading by replacing it with a quantifiable metric that guides directional expectations.
โ ๏ธ 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

AlphaTrend Momentum Matrix [MarkitTick]๐ก The AlphaTrend Momentum Matrix is an advanced, comprehensive trend-following architecture designed to dynamically track market momentum, manage dynamic trade states, and seamlessly bridge the gap between technical charting and automated execution. Far from a simple overlay, this script acts as a multi-layered analytical suite. It evaluates primary trend direction using volatility and volume-weighted money flow, filters out market noise with a custom state-matrix, and projects actionable higher-timeframe data onto the active chart. Furthermore, it incorporates an internal mathematical framework capable of dynamically calculating strict risk-to-reward targets and dispatching meticulously formatted JSON payloads for external webhook execution.
โจ Originality and Utility
โ The Momentum Matrix Advantage
While traditional trend indicators rigidly lock onto moving averages or standard price bands, the AlphaTrend Momentum Matrix thrives on market dynamism. Its true utility lies in its multifaceted approach to trend validation. It introduces an exclusive "ATR Breakout Override" systemโa custom logic module that forces a trend recalibration if an explosive price movement severely disrupts the standard deviation envelope, regardless of standard trailing conditions. This ensures the indicator remains highly responsive to sudden, high-impact market events without waiting for lagging conditions to catch up.
โ Automated Payload and State Management
A standout feature of this tool is its embedded Trade State system. It does not merely paint a signal on the chart; it internalizes the exact entry price, computes a precise stop-loss based on the active AlphaTrend baseline, and mathematically projects a 1:2 risk-to-reward Take Profit target. This localized tracking seamlessly interfaces with the built-in Alert Engine, dynamically injecting these critical metrics into formatted JSON templates ready for third-party automated execution systems.
๐ฌ Methodology and Concepts
โ AlphaTrend Core Engine
The primary directional engine relies on the interplay between the Average True Range (ATR) and the Money Flow Index (MFI). A trailing upper band (Support) and lower band (Resistance) are calculated using a user-defined ATR coefficient. The script interrogates the 14-period MFI; if the MFI reads above 50, indicating positive money flow momentum, the algorithm biases toward the Support band, updating it only when the price makes higher lows. Conversely, an MFI below 50 shifts the bias to the Resistance band.
โ Breakout Override Protocol
To counteract the inherent lag of volume-weighted smoothing, the indicator employs a momentum breakout scanner. By measuring the absolute distance between the previous two closing prices and comparing it against the prior ATR multiplied by a sensitivity factor, the script can definitively detect volatility shocks. If a shock occurs concurrently with a directional price cross over the active AlphaTrend line, the system immediately forces a directional shift, bypassing the standard MFI requirements.
โ Signal Filtering and Matrix Constraints
Raw signal crossovers are notoriously noisy during consolidation. To mitigate whipsaw trades, this script implements a continuous loop counter (the K and O matrices). It tracks the consecutive bars since the last primary buy or sell condition. A signal is only declared "valid" if it successfully breaks the historical sequence of the opposing trend counter, ensuring that localized micro-fluctuations do not trigger premature trade entries.
๐ Deconstruction of the Underlying Scientific and Academic Framework
โ Volatility and the Average True Range
Developed by J. Welles Wilder Jr. in 1978, the Average True Range is a foundational pillar of this indicator. The ATR scientifically quantifies absolute market volatility by decomposing the entire range of an asset's periodic price action, factoring in gaps and limit moves. By applying a multiplier to the ATR, this script establishes a statistically significant standard deviation envelope, distinguishing between normal market "breathing" and definitive structural shifts.
โ Volume-Weighted Momentum via Money Flow Index
The MFI, created by Gene Quigley and Colin Dysart, represents an evolution of the Relative Strength Index (RSI). From an academic standpoint, the MFI incorporates volume into its momentum calculation, producing a more robust metric of buying and selling pressure. It uses the Typical Price (High + Low + Close / 3) multiplied by volume to calculate raw money flow. The 50-level threshold serves as the equilibrium point; sustaining above this level empirically signifies net accumulation, providing the mathematical justification for the indicator's bullish bias.
โ Algorithmic State Machines
The signal filtering mechanism and the internal Trade State tracker are practical applications of Finite State Machines (FSM) commonly used in quantitative algorithmic design. The script holds memory of its current operational state (Long, Short, Neutral) and refuses state transitions unless specifically validated mathematical conditions (boolean logic gates) are met, significantly reducing error rates inherent in purely reactive, memory-less indicators.
โ Repainting and Lookahead Warning
This script utilizes the request component to pull Higher Timeframe (HTF) context into the primary chart. Crucially, it employs the barmerge.lookahead_on parameter. While this creates a visually perfect, non-lagging representation of higher timeframe trends when analyzing historical data, it introduces lookahead bias. Traders must understand that historical HTF visuals and signals may appear with perfect precision on past bars, but real-time execution will lack this future data context, potentially resulting in different localized behavior in live markets.
๐จ Visual Guide
โ The AlphaTrend Trailing Line
Up Trend (Bullish): A bold, solid step-line tracking below the price, rendered in a distinctive golden-yellow (#F0D080).
Down Trend (Bearish): A bold, solid step-line tracking above the price, colored in a deep crimson (#7A2010).
โ The Cloud Fill
Dynamic Channel: A semi-transparent shaded area connecting the active AlphaTrend line to a central Cloud Reference Line (a smoothing of the typical price). This cloud visually represents the buffer zone of the current trend.
Color Coding: The cloud dynamically changes color to match the dominant trend (Gold for bullish, Crimson for bearish), allowing for rapid peripheral analysis of market conditions.
โ Price Action Overrides
Colored Candles: The bodies and wicks of the actual price candles are uniformly colored to reflect the AlphaTrend matrix state, instantly identifying periods of alignment or divergence.
โ Execution Elements
Signal Labels: Distinct "BUY" and "SELL" textual shapes appear precisely on the chart at the moment the state matrix validates a trend shift.
HTF Stepline: When enabled, a secondary, smoothed step-line appears to show the overarching macro trend, colored accordingly to dictate the broader market regime.
๐ How to Use
โ Trend Riding and Context
The most effective way to utilize this tool is to align the primary chart timeframe with the HTF AlphaTrend line. If the HTF line is Gold, you should strictly look for "BUY" signals generated by the primary indicator to trade in the direction of the macro trend, ignoring temporary bearish signals as minor pullbacks.
โ Momentum Breakout Confirmation
When you observe a sudden color change accompanied by an unusually large price bar, this is often the Breakout Override triggering. These scenarios represent high-momentum events. Instead of waiting for a retest, aggressive traders may use these specific signals to capture immediate volatility expansions, placing their stop-loss strictly on the opposite side of the newly formed AlphaTrend line.
โ Automating Your Strategy
For quantitative traders, the indicator handles the heavy lifting of trade logic. Ensure you configure the exact JSON payload strings required by your third-party execution platform (like 3Commas, PineConnector, etc.) in the settings. The indicator will autonomously calculate your risk/reward parameters upon every valid signal and fire a perfectly formatted JSON alert.
โ๏ธ Inputs and Settings
โข โ๏ธ Core Calculations
ATR Multiplier: Defines the sensitivity of the trailing line. Lower values (e.g., 0.5) track price closely for scalping; higher values (e.g., 2.0) provide wide breathing room for swing trades.
ATR & MFI Lookback Period: The standard window (default 14) for calculating both volatility and volume momentum.
Display Signals: Toggles the visibility of the "BUY" and "SELL" chart labels.
โข ๐ก๏ธ Breakout Override
Enable ATR Breakout Override: Turns the momentum-shock detection system on or off.
Breakout Sensitivity: Determines how large a price jump must be (relative to the ATR) to force a trend change. Lower values trigger more aggressively.
โข ๐ Higher Timeframe
Show HTF AlphaTrend: Projects the higher timeframe data onto the current chart.
HTF Timeframe: The specific macro timeframe to monitor (e.g., Daily "D" when trading on the 1-Hour chart).
โข โ๏ธ Cloud Fill
Show Cloud Fill: Toggles the visual buffer zone on the chart.
Cloud Reference Length: Adjusts the smoothing period of the central reference line.
Color Candles: Enables or disables the overriding of standard chart candle colors based on trend direction.
โข ๐ Webhook Execution Config
Payload Actions: Four distinct text fields where you can define the exact syntax your external bot requires for entering longs, entering shorts, closing longs, and closing shorts. These values are automatically injected into the dynamic JSON alert string.
โ ๏ธ 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

Elaris Volume Intelligence ProElaris Volume Intelligence Pro is a professional-grade volume analysis and smart money intelligence indicator designed to help traders understand market participation, hidden pressure, and potential reversal activity in real time.
Instead of displaying raw volume alone, Elaris Volume Intelligence Pro transforms market volume into actionable intelligence by combining relative volume analysis, volume delta estimation, CVD (Cumulative Volume Delta), absorption detection, climax activity, and smart flow momentum into a single clean and trader-friendly system.
The indicator is built for discretionary traders, scalpers, intraday traders, swing traders, and crypto traders who want deeper insight into market behavior beyond standard candles.
โโโโโโโโโโโโโโโโโโ
FEATURES
โโโโโโโโโโโโโโโโโโ
โข Smart Volume Columns
Dynamically colored volume bars help identify bullish pressure, bearish pressure, climax activity, and absorption zones instantly.
โข Relative Volume & Z-Score Engine
Detects abnormal market participation using relative volume and statistical volume expansion analysis.
โข Volume Flow Momentum
A smoothed institutional-style flow model that helps traders identify whether aggressive buying or selling pressure is dominating the market.
โข Bullish & Bearish Climax Detection
Highlights potential exhaustion candles during extreme participation and volatility conditions.
โข Demand & Supply Absorption Detection
Detects high-volume compression behavior that may indicate hidden accumulation or distribution by larger participants.
โข Volume & CVD Divergence Signals
Identifies possible reversal conditions when price action and cumulative volume behavior diverge.
โข Smart Market State Dashboard
A clean built-in intelligence panel provides:
* Market bias
* Smart score
* Relative volume strength
* Volume Z-score
* Delta pressure
* Active signal state
โข Dark Mode Optimized UI
Professionally designed visuals optimized for both dark and light TradingView themes.
โข Fully Configurable
All thresholds, smoothing values, divergence sensitivity, and visual layers can be customized for different trading styles and markets.
โโโโโโโโโโโโโโโโโโ
HOW TO USE
โโโโโโโโโโโโโโโโโโ
โข Strong Bullish Conditions
Look for:
* Bullish volume climax
* Positive flow momentum
* Increasing relative volume
* Bullish divergences
* Demand absorption
โข Strong Bearish Conditions
Look for:
* Bearish climax candles
* Negative flow momentum
* High sell-side pressure
* Bearish divergences
* Supply absorption
โข Best Use Cases
* Crypto futures trading
* Intraday momentum trading
* Breakout confirmation
* Reversal detection
* Smart money analysis
* Volume-based confluence systems
โโโโโโโโโโโโโโโโโโ
ALERTS INCLUDED
โโโโโโโโโโโโโโโโโโ
The indicator includes built-in alerts for:
* Bullish/Bearish Volume Climax
* Demand/Supply Absorption
* Bullish/Bearish Divergence
* Bullish/Bearish Pressure States
โโโโโโโโโโโโโโโโโโ
IMPORTANT NOTES
โโโโโโโโโโโโโโโโโโ
โข This indicator does not use repainting logic.
โข Signals are generated using confirmed candle data.
โข Works best on liquid markets with reliable volume data.
โข Designed for confirmation and confluence, not standalone financial advice.
Built by Elaris Group.
Financial intelligence for modern markets.
Indicator
