Engulfing Failed Zone [8 Types]Engulfing Failed Zone
Most engulfing tools show you where a pattern formed. This one shows you where it broke.
The script finds confirmed engulfing patterns and then keeps watching them. When price later
closes back through the far side of the pattern's Base candle, the pattern is invalidated and
the area it occupied is drawn as a failed zone, from the Base candle to the exact candle that
broke it.
A failed pattern is not noise. It marks a level where one side committed, was proven wrong,
and left an area behind that price often reacts to again.
WHAT MAKES THIS DIFFERENT
1. It tracks invalidation, not formation.
A normal engulfing indicator stops working the moment the pattern prints. This script treats
the pattern as an open structure and follows it forward until something breaks it. Only the
broken ones are drawn, so the chart shows failures rather than signals.
2. Failure is defined by the close, not by a wick.
A candle may spike through the Base candle and recover. That is not a failure here. The
breaking candle has to CLOSE beyond the level, and it has to be the correct color: a Red
candle closing below the Base Low breaks a Buy Engulfing, a Green candle closing above the
Base High breaks a Sell Engulfing.
3. Failed zones are sorted into eight types, not two.
The failure inherits the identity of the pattern that failed. A liquidity sweep engulfing that
fails is a different event from a plain two candle engulfing that fails, and the script keeps
them separate so you can study or filter them independently.
4. Only the first failure is drawn.
Once a pattern breaks, it is done. Later candles closing through the same level are not drawn
again, which keeps the chart readable instead of stacking boxes on one level.
THE PATTERNS BEING TRACKED
A candle is Green when close is greater than open, Red when close is less than open, and a
Doji when close equals open. A Doji is neither. Only fully closed candles are read, and the
running candle is never used.
Regular engulfing (2 candles)
R Buy EG
Red Base candle, and the very next candle is Green and closes above the Base candle's High.
R Sell EG
Green Base candle, and the very next candle is Red and closes below the Base candle's Low.
E-Regular engulfing (3 or more candles)
ER Buy EG
Red Base candle followed by a run of consecutive Green candles. The run must contain at least
2 Green candles, and confirmation happens when one of them closes above the Base candle's
High. A single Red candle appearing before confirmation cancels the run. Doji candles are
skipped: they neither count toward the run nor break it.
ER Sell EG
Green Base candle followed by a run of at least 2 consecutive Red candles, one of which closes
below the Base candle's Low. A single Green candle cancels the run. Doji candles are skipped.
If the very first candle after the Base already closes through it, that is by definition a
Regular pattern, so E-Regular requires the second candle or later to break the level. One Base
candle can therefore never produce both a Regular and an E-Regular pattern.
Type 1: the same four patterns plus a liquidity sweep
Type 1 adds one requirement. Before the close breaks through one side of the Base candle,
price must have traded through the opposite side.
T1 R Buy EG
An R Buy EG where the Confirm candle's Low is at or below the Base candle's Low.
T1 R Sell EG
An R Sell EG where the Confirm candle's High is at or above the Base candle's High.
T1 ER Buy EG
An ER Buy EG where at least one Green candle in the run has a Low at or below the Base
candle's Low. Any candle of the run qualifies, including the Confirm candle itself.
T1 ER Sell EG
An ER Sell EG where at least one Red candle in the run has a High at or above the Base
candle's High. Any candle of the run qualifies, including the Confirm candle itself.
The sweep is always measured against the Base candle, never against another candle in the run.
WHAT COUNTS AS A FAILURE
After a pattern confirms, the script scans forward one candle at a time.
A Buy Engulfing fails when a Red candle closes strictly below the Base candle's Low.
A Sell Engulfing fails when a Green candle closes strictly above the Base candle's High.
The scan begins on the candle after the Confirm candle, so a pattern is never judged by its
own confirmation. The first candle that meets the condition becomes the Failure candle, and
the zone is drawn from the Base candle across to it. Nothing is drawn for patterns that are
still intact.
That gives eight failed zone types in total: R Buy EG Failed, R Sell EG Failed, ER Buy EG
Failed, ER Sell EG Failed, and the four Type 1 versions of the same.
READING THE CHART
Each failed pattern draws a rectangle covering the Base candle's full High to Low range,
stretched horizontally from the Base candle to the candle that broke it.
Colors follow the OUTCOME, not the original direction. This is worth reading twice:
- A Buy Engulfing that failed is drawn in the bearish color. The buyers committed and lost, so
the area above is now resistance, and its label sits above the zone.
- A Sell Engulfing that failed is drawn in the bullish color. The sellers committed and lost,
so the area is now support, and its label sits below the zone.
In other words the zone is colored by who is in control after the failure, which is the
information you actually trade from.
The border tells you which pattern failed:
Solid border: a Regular pattern, confirmed by the very next candle
Dashed border: an E-Regular pattern, confirmation was delayed over several candles
Thin, softened border: a plain pattern, no sweep
Thick, crisp border: Type 1, a liquidity sweep occurred before confirmation
Type 1 zones are also filled more solidly, so the stronger patterns stand out when several
zones sit close together.
A separate line marks the broken edge of the Base candle: the Low for a failed Buy Engulfing,
the High for a failed Sell Engulfing. This shows at a glance which side of the pattern gave
way, and it is the level price most often returns to.
Each zone carries a label with its pattern tag, pointing at its own zone, so it is always
clear which label belongs to which rectangle.
A summary table in the corner counts how many of each type were found in the current scan
window, split into Buy EG and Sell EG columns. The counts include types that are currently
hidden, so the table always reflects what the market actually printed rather than what is
switched on.
SETTINGS
Scan
- Scan Length: how many closed candles are scanned backwards from the latest bar. The running
candle is always excluded.
Pattern Types
- An individual on and off switch for each of the eight failed zone types.
Zone Style
- Buy EG Failed Zone and Sell EG Failed Zone: the two zone colors. Defaults follow the outcome
logic described above.
- Zone Transparency: fill transparency of a plain Regular or E-Regular failed zone.
- Type 1 Extra Opacity: how much more solid Type 1 zones are filled compared to the value
above.
- Highlight Broken Edge, and its color: marks the side of the Base candle price closed
through.
Labels
- Show Labels, Label Size, and Label Distance from Zone as a percentage of the Base candle
height. Increase the distance on noisy charts so labels clear the candles.
Summary Table
- Show, position, and size of the corner table.
ALERTS
Eight alert conditions are available, one per failed zone type:
R Buy EG Failed, R Sell EG Failed, T1 R Buy EG Failed, T1 R Sell EG Failed, ER Buy EG Failed,
ER Sell EG Failed, T1 ER Buy EG Failed, T1 ER Sell EG Failed.
An alert fires on the candle that completes the failure. Each message carries the pattern tag,
the symbol, the timeframe and the closing price. The script also sends the same messages
through the alert function, so the "Any alert() function call" alert type can deliver every
failure through a single alert.
All alerts are evaluated only after a candle has fully closed.
Internally, every confirmed engulfing is held in a list and each closed candle is checked
against that list. This is what allows a failure to be reported the moment it happens, without
rescanning the whole history on every bar.
REPAINTING
This script does not repaint.
- Detection reads confirmed candles only. The scan starts one bar behind the latest bar, so
the candle that is still forming is never part of any calculation.
- Every alert signal is written so that it can only become true once a candle has finished.
Price moving inside an open candle cannot make a signal appear and then disappear.
- Zones are rebuilt on the last bar using confirmed history. A drawn zone does not move,
change color or change type afterwards. It only leaves the chart when it falls outside the
Scan Length window.
When you create an alert, TradingView may show a caution banner saying the indicator can
repaint. That banner appears automatically for any script that uses the built in bar state
variables, no matter how they are used, because the platform cannot check the intent behind
them. This script uses them for the opposite purpose: one of them is what restricts every
signal to bar close, and the other is what redraws the zones efficiently on the final bar.
Choosing "Once Per Bar Close" when creating the alert is still recommended.
NOTES AND LIMITATIONS
- Nothing is drawn for a pattern that has not failed. An empty chart means the engulfing
patterns in that window are all still intact, which is information in itself.
- Increasing Scan Length raises the number of drawing objects. TradingView caps these at 500
boxes, 500 labels and 500 lines, and the oldest objects are dropped once a cap is reached.
The default value is chosen to stay well inside those limits on normal charts.
- A very short Scan Length can hide zones whose Base candle sits outside the window even
though the failure is recent. If failures seem to be missing, raise the Scan Length.
- For alerts, the number of patterns tracked at once is capped, and the oldest are released
first. In practice patterns fail or age out long before this matters.
- Detection is purely structural. It reports where a pattern broke and nothing more. It does
not rank failures by quality, measure what happened afterwards, or produce entries, targets
or stops.
- Doji candles are treated as neutral by design. They never act as a Base candle and never
break an E-Regular run. On symbols and timeframes that print many Doji candles this makes
runs slightly more tolerant than a strict same color rule would be.
HOW TO USE IT
A failed engulfing zone marks a level where one side of the market committed and was proven
wrong. Traders commonly watch these areas for:
- Broken supply and demand zones that price returns to and respects from the other side
- Areas where a reversal attempt was flushed out before the move continued
- Momentum shifts, since a failed reversal often precedes a strong continuation
Type 1 failed zones are worth separating out. There the pattern first grabbed liquidity, then
confirmed, and then still failed, which is a different story from a clean pattern simply being
overrun.
These zones are reference areas, not entry signals on their own. Use them alongside higher
timeframe structure, your own support and resistance mapping, and proper risk management.
DISCLAIMER
This indicator is a pattern detection tool. It is not financial advice and it makes no claim
about profitability. Trading involves risk. Always apply your own analysis and risk management. インジケーター

Engulfing Zone [8 Types]Engulfing Zone
A price action tool that scans closed candles for engulfing behavior and draws the exact zone
each pattern creates, from the candle that sets the level to the candle that breaks it.
Instead of treating "engulfing" as one generic signal, this script separates it into eight
distinct types and reports every pattern under exactly one of them, so what you see on the
chart is never double counted.
WHAT MAKES THIS DIFFERENT FROM A STANDARD ENGULFING INDICATOR
1. Engulfing is measured by the CLOSE, not by body overlap.
Most engulfing scripts check whether one candle's body covers the previous candle's body.
This script requires the Confirm candle to CLOSE beyond the Base candle's High or Low, wick
included. A candle that merely covers the body but closes back inside the Base range is not
accepted. This is a stricter definition and it filters out a large number of weak signals that
body based detection would report.
2. Confirmation is allowed to be delayed.
A classic engulfing pattern is strictly two candles. In real markets the reaction is often
spread over several candles: a base forms, price pushes in the opposite direction for a few
bars, and only then does a close break the base level. This script detects those extended
setups as their own category rather than ignoring them.
3. Liquidity sweeps are identified as a separate class.
Sometimes the candles that produce the engulf first trade through the far side of the Base
candle, taking out the stop orders resting there, and only then close through the opposite
side. That behavior is meaningfully different from a clean engulf, so it is detected and
labelled separately as Type 1.
THE EIGHT PATTERNS
Throughout, a candle is Green when close is greater than open, Red when close is less than
open, and a Doji when close equals open. A Doji is neither Green nor Red, and is handled
explicitly. Only fully closed candles are read. The running candle is never used.
Regular (2 candles)
R Buy EG
Base candle is Red
The very next candle is Green
That Green candle closes above the Base candle's High
R Sell EG
Base candle is Green
The very next candle is Red
That Red candle closes below the Base candle's Low
E-Regular (3 or more candles)
ER Buy EG
Base candle is Red
It is followed by a run of consecutive Green candles
The run must contain at least 2 Green candles
Confirmation happens when one of those Green candles closes above the Base candle's High
A single Red candle appearing before confirmation cancels the run entirely
Doji candles are skipped: they neither count toward the run nor break it
ER Sell EG
Base candle is Green
It is followed by a run of consecutive Red candles
The run must contain at least 2 Red candles
Confirmation happens when one of those Red candles closes below the Base candle's Low
A single Green candle appearing before confirmation cancels the run entirely
Doji candles are skipped
If the very first candle after the Base already closes through it, that is by definition a
Regular pattern, so E-Regular requires the second candle or later to be the one that breaks
the level. Regular and E-Regular can therefore never both fire from the same Base candle.
Type 1: the same four patterns plus a liquidity sweep
Type 1 adds one requirement on top of the rules above. Before the close breaks through one
side of the Base candle, price must have traded through the opposite side.
T1 R Buy EG
An R Buy EG where the Confirm candle's Low is at or below the Base candle's Low.
T1 R Sell EG
An R Sell EG where the Confirm candle's High is at or above the Base candle's High.
T1 ER Buy EG
An ER Buy EG where at least one Green candle in the run has a Low at or below the Base
candle's Low. Any candle of the run qualifies, including the Confirm candle itself.
T1 ER Sell EG
An ER Sell EG where at least one Red candle in the run has a High at or above the Base
candle's High. Any candle of the run qualifies, including the Confirm candle itself.
The sweep is always measured against the Base candle, never against another candle in the run.
HOW A PATTERN IS CLASSIFIED
Every detected pattern is reported once, under its strongest matching type.
A Regular pattern that also swept is reported as T1 R and is not additionally reported as R.
An E-Regular pattern that also swept is reported as T1 ER and is not additionally reported as
ER. This means:
One pattern produces exactly one zone on the chart, never two stacked on top of each other
The summary table counts each pattern once
Turning off a type hides only that type and never silently hides another
Because Type 1 is a stricter version of its plain counterpart, hiding the plain types and
keeping the Type 1 types visible is a straightforward way to see only the sweep driven setups.
READING THE CHART
Each detected pattern draws a rectangle covering the Base candle's full High to Low range,
stretched horizontally from the Base candle to the Confirm candle. The rectangle is styled so
that its type can be read without looking at the label:
Solid border: Regular, confirmed by the very next candle
Dashed border: E-Regular, confirmation was delayed over several candles
Thin, softened border: a plain pattern, no sweep
Thick, crisp border: Type 1, a liquidity sweep occurred
Type 1 zones are also filled more solidly than plain zones, so stronger patterns stand out
when several zones sit close together.
On a Type 1 zone, a dotted line marks the exact Base level that was raided before the break:
the Base Low on the Buy side, the Base High on the Sell side. This makes the liquidity grab
visible instead of leaving it implied.
Each zone carries a label showing its pattern tag. Labels point at their own zone, below and
pointing up for Buy patterns, above and pointing down for Sell patterns, so it is always clear
which label belongs to which rectangle.
A summary table in the corner shows how many of each type were found inside the current scan
window, split into Buy and Sell columns. The table counts every detected pattern, including
types that are currently hidden, so it always reflects what the market actually printed rather
than what is currently switched on.
SETTINGS
Scan
Scan Length: how many closed candles are scanned backwards from the latest bar.
The running candle is always excluded.
Pattern Types
An individual on and off switch for each of the eight types.
Zone Style
- Bullish Zone and Bearish Zone: the two base colors used for all Buy and all Sell zones.
- Zone Transparency: fill transparency of a plain Regular or E-Regular zone.
- Type 1 Extra Opacity: how much more solid Type 1 zones are filled compared to the value
above.
- Mark Swept Level: draw the dotted line on the raided Base level of Type 1 zones.
- Swept Level Color: color of that line.
Labels
- Show Labels, Label Size, and Label Distance from Zone as a percentage of the Base candle
height. Increase the distance on noisy charts so labels clear the candles.
Summary Table
- Show, position, and size of the corner table.
ALERTS
Eight alert conditions are available, one per pattern type:
R Buy EG, R Sell EG, T1 R Buy EG, T1 R Sell EG, ER Buy EG, ER Sell EG, T1 ER Buy EG,
T1 ER Sell EG.
Each message carries the pattern tag, the symbol, the timeframe and the closing price. The
script also sends the same messages through the alert function, so the "Any alert() function
call" alert type can be used to receive every pattern through a single alert.
All alerts are evaluated only after a candle has fully closed.
REPAINTING
This script does not repaint.
- Detection reads confirmed candles only. The zone scan starts one bar behind the latest bar,
so the candle that is still forming is never part of any calculation.
- Every alert signal is written so that it can only become true once a candle has finished.
Price moving inside an open candle cannot make a signal appear and then disappear.
- Zones are rebuilt on the last bar using confirmed history. A zone that has been drawn does
not move or change type afterwards. It only leaves the chart when it falls outside the Scan
Length window.
When you create an alert, TradingView may show a caution banner saying the indicator can
repaint. That banner appears automatically for any script that uses the built in bar state
variables, no matter how they are used, because the platform cannot check the intent behind
them. This script uses them for the opposite purpose: one of them is what restricts every
signal to bar close, and the other is what redraws the zones efficiently on the final bar.
Choosing "Once Per Bar Close" when creating the alert is still recommended.
NOTES AND LIMITATIONS
- The script draws on the last bar only. Increasing Scan Length raises the number of drawing
objects. TradingView caps these at 500 boxes, 500 labels and 500 lines, and the oldest
objects are dropped once a cap is reached. The default value is chosen to stay well inside
those limits on normal charts.
- Detection is purely structural. It reports where a pattern occurred and nothing more. It
does not rank patterns by quality, measure follow through, or produce entries, targets or
stops.
- Doji candles are treated as neutral by design. They never act as a Base candle and never
break an E-Regular run. On symbols and timeframes that print many Doji candles this makes
runs slightly more tolerant than a strict same color rule would be.
HOW TO USE IT
The zones mark where one side of the market decisively lost control of a level. They are
reference areas, not entry signals on their own. Common approaches are to watch how price
behaves when it returns to a zone, or to use zone direction as context alongside higher
timeframe structure, support and resistance levels, or trend direction.
Type 1 zones deserve particular attention, because the sweep tells you the move happened after
liquidity was taken rather than before.
DISCLAIMER
This indicator is a pattern detection tool. It is not financial advice and it makes no claim
about profitability. Trading involves risk. Always apply your own analysis and risk management. インジケーター

Ultimate Deep Fibonacci & Institutional Chart Matrix ProUltimate Deep Fibonacci and Institutional Chart Matrix Pro
Overview
The Ultimate Deep Fibonacci and Institutional Chart Matrix Pro is a comprehensive visual framework designed for Pine Script v6. It combines Smart Money Concepts, dynamic support and resistance zones, session liquidity levels, and structural Fibonacci pricing into a unified chart layout.
This tool maps market structure transitions, identifies key institutional high and low swing levels, tracks Asian session ranges, and visualizes overall price flow through a custom smooth wave with integrated volume price background fill.
Core Features
Natural Price Wave and Shadow Fill
Maps underlying market momentum using a smoothed wave calculation.
Dynamically fills the space between the current close price and the wave line to visualize expanding or contracting momentum.
Color coded green for bullish conditions and red for bearish conditions.
Deep Institutional Fibonacci Matrix
Plots critical institutional Fibonacci levels based on recent market swings:
0.50 Equilibrium (EQ): The midpoint balance level.
0.618 Golden Zone: A primary level for premium or discount interest.
0.786 Deep Discount: A deep structural reversal or continuation level.
Dynamic Support and Resistance Zones
Automatically draws extended resistance and support boxes using dynamic pivot points and Average True Range buffering.
Labels automatically project forward on the chart without obscuring live price action.
Major ITH and ITL Badges
Identifies significant Intermediate Term Highs (ITH, colored Red) and Intermediate Term Lows (ITL, colored Green).
Configurable lookback parameters filter out minor noise, focusing solely on major swing structural points.
Smart Money Concepts Structure
Detects and plots structural breaks:
BOS (Break of Structure): Signals trend continuation.
CHoCH (Change of Character): Signals potential market trend shifts.
Asian Session Liquidity Tracking
Tracks the high and low levels established during the Asian trading session.
Plots dotted projection lines until price breaks or sweeps these liquidity levels.
Dynamic Projection Arrow and Low Resistance Liquidity
Projects short term expected direction using Average True Range volatility metrics.
Highlights major liquidity pools based on key high and low boundaries.
On Screen Live Dashboard
Displays real time market stats in the top right corner, including Market Flow, Golden Zone values, Asian Session status, Volatility, and Market Structure Alignment.
Settings Breakdown
Price Wave and Shadow Settings
Show Natural Price Wave and Fill Shadow: Enables or disables the wave line and its background fill.
Wave Sensitivity: Adjusts the lookback period for the wave calculation (Default: 20).
Shadow Transparency (0-100): Controls the background fill opacity.
Deep Fibonacci Matrix
Show Deep Institutional Fib: Enables or disables structural Fibonacci lines.
Fib Swing Lookback: Determines the number of bars evaluated for top and bottom Fibonacci anchors (Default: 40).
Dynamic Support and Resistance Box Zones
Show Dynamic Box S/R Zones: Toggles support and resistance box zones.
S/R Sensitivity: Controls the pivot detection length for drawing zones (Default: 20).
Major ITH and ITL Settings
Show Major ITH and ITL Badges: Toggles ITH and ITL visual markers.
Major ITH and ITL Lookback: Controls swing sensitivity to filter minor noise (Default: 20).
Projection and Liquidity Settings
Show Direction Projection Arrow: Toggles the forward projection arrow.
Arrow Forward Bars: Controls how far ahead the arrow projects (Default: 12).
Show Low Resistance Liquidity: Toggles liquidity baseline highlights.
Asian Liquidity and SMC Settings
Show Active Asian High / Low: Toggles Asian range tracking lines.
Show BOS and CHoCH Structure: Enables market structure labels.
Structure Sensitivity: Controls pivot lookback for structural breaks.
How to Use
Context Identification: Look at the Market Flow and Price Wave Fill Shadow to determine the directional bias (Bullish = Green, Bearish = Red).
Key Zone Mapping: Identify price interaction with the Support Zone or Resistance Zone. Monitor how price behaves near the 0.618 Golden Zone or 0.786 Deep Discount lines.
Structure Confirmation: Confirm structural updates via BOS or CHoCH markers. Look for ITH (Red) or ITL (Green) labels to mark key swing pivots.
Session Liquidity: Monitor the ASIA H and ASIA L dotted lines for potential liquidity sweeps during peak trading hours.
Things to Avoid
Avoid Over-Leveraging at Single Levels: Never rely on a single line or zone in isolation; always seek confluence across structural breaks and dynamic zones.
Avoid High Sensitivity on Low Timeframes: Setting swing sensitivities too low on lower timeframes can lead to excessive noise. Adjust lookback values according to your target timeframe.
Avoid Trading directly into major Resistance or Support: Exercise caution when opening new directional positions directly inside established Resistance or Support boxes.
Disclaimer
Trading financial markets involves significant risk and can result in the loss of your capital. This indicator is designed strictly for educational and analytical purposes to assist with visual market structure identification. It is not financial advice, investment recommendation, or a signal service. Always manage your risk responsibly, conduct your own independent research, and follow your own personalized trading plan. インジケーター

Strong V DOL FVG Signals | ProjectSyndicateStrong V DOL FVG Signals catches the moment a stop-hunt gets rejected so violently that price snaps back through the level it just raided — the V-shape — and it only takes that reversal when the snap-back leaves an institutional footprint behind and has somewhere real to go. Markets raid the obvious swing lows and highs to fill size against trapped traders. Most of those raids simply continue. The ones that matter reverse immediately: price stabs beyond the pool, refuses to accept the new low or high, and displaces back through the level in a handful of bars, carving a sharp V pivot instead of a slow rounded base.
That refusal is the event. The engine then demands a second thing most reversal tools never check — an imbalance created or flipped by that displacement, a Fair Value Gap or an Inversion FVG that gives the entry a structural edge — and a third thing almost none of them check: an explicit destination, the higher-timeframe Draw on Liquidity the move is actually running at. Sweep, refusal, imbalance, magnet. Every setup that clears all four gets a structural invalidation behind the V extreme, a DOL-anchored target ladder, a 0–10 V-Score with a star rank, and is tracked live on a two-card statistics dashboard — including honest stop-outs — so you can see exactly how the logic behaves on the symbol and timeframe you trade.
🧠 V-Shape Core
The core idea, expressed as a lifecycle: POOL ▸ RAID ▸ V-SHAPE ▸ INVERSION ▸ ENTRY ▸ DOL. A confirmed swing high or low defines where stops are resting — internal range liquidity. A raid happens when price trades beyond that pool by a minimum ATR depth, running the stops. The V-shape is the refusal: price must close back through the raided pool inside a reclaim window, and the recovery leg must survive three geometry gates before it counts. Swept lows flip to a LONG, swept highs to a SHORT. Pivots come from confirmed swings and every condition is evaluated on the bar's close, so the structure and the signal do not repaint once they confirm.
📐 The Three Geometry Gates — what separates a V from a bounce
This is the part that does the heavy lifting, because "price swept a low and came back" describes half of all price action. A qualifying V must satisfy all three simultaneously: Displacement — the distance from the V extreme to the reclaim close, measured in ATR, so the recovery has to be aggressive, not incidental. V Width — the bars between the extreme and the reclaim, capped, so a slow multi-bar grind is rejected no matter how far it travels. V Sharpness — displacement divided by width, the ATR-per-bar velocity of the snap-back, which is the single dial that most directly controls how violent a reversal has to be before the engine calls it a V. A wide, rounded recovery fails all three. A knife-edge rejection passes all three. Tighten sharpness for fewer, more explosive setups; loosen it for more activity.
🔀 FVG / IFVG Confirmation — the imbalance the displacement leaves behind
A qualified V is not yet a trade. The engine then looks for the institutional footprint of that displacement and uses it as the entry zone. An IFVG (Inversion FVG) is the premium case: an opposing three-candle Fair Value Gap that the displacement closed straight through, flipping its role from resistance to support (or support to resistance). That flip is proof the recovery had enough force to invalidate the prior imbalance, and a freshness window keeps only recently inverted gaps eligible. A fresh FVG is the fallback: a new three-candle gap left by the displacement leg itself. You choose the policy — IFVG → FVG (auto), IFVG only, or FVG only — and a minimum gap size in ATR filters out noise. If you want the pure geometry play, Require A Zone To Trade can be switched off so a qualified V fires on displacement alone, and the panel will tell you it was a RAW V entry.
🎯 Entry — retest limit or immediate
Two execution models. Retest Zone (limit) arms the imbalance and waits for price to trade back into it, filling at the zone edge — the patient version, which is why an arm window exists to discard setups that never come back, and why an armed setup is killed outright if price closes back beyond the V extreme before the retest. Immediate On Displacement fills at the confirmation close and accepts worse average location in exchange for never missing the ones that run without a pullback. Both are honest about what they are: the armed state, the zone range, and the expiry are all visible on the panel while you wait.
🧲 Draw on Liquidity — the target engine
Most reversal tools stop at a flat R multiple. This one asks where the move is actually going. The DOL engine maintains a live pool of higher-timeframe liquidity — swing highs and lows from a timeframe you choose, previous day high and low, optional previous week high and low, optional chart-timeframe swings — and tracks which of them have already been traded through. Only unswept levels can be targets, because liquidity that has already been taken is no longer a magnet. When a signal fires, the engine selects the nearest qualifying draw beyond the entry that sits inside a configurable R window, so it never targets something two ticks away or something unreachable this session, and that level becomes TP3. If nothing qualifies, it falls back cleanly to a flat R target and says so. Two live DOL rails are drawn at all times — the nearest unswept draw above and below current price — so you always know what the market is fishing for even when no setup is active.
🔋 V-Score Anatomy
A V-shape is not just true or false; it is scored for how clean the reversal is. The V-Score fuses six reversal-native ingredients into a single 0–10 read: sweep depth (how far past the pool the raid reached), displacement (how hard the recovery pushed), V sharpness (the velocity of the snap-back), rejection wick (how decisively the extreme bar was rejected), volume surge (participation on the reversal versus its baseline), and room to DOL (how much R the target actually offers — a setup with nowhere to go is scored down no matter how pretty the candle). Each ingredient carries its own adjustable weight. A higher-timeframe bias read then either adjusts the score or hard-filters the signal, your choice. You shape what qualifies through those weights and the geometry thresholds rather than chasing a single number.
🎯 Structural Invalidation + Universal Zones
The stop is anchored to the V, not guessed. Invalidation sits just beyond the V-shape extreme — the price that, if reclaimed, means the raid was real and the reversal failed — plus an ATR buffer for cushion. Universal Zone Height then clamps that distance between an ATR floor and an ATR ceiling, so one wide V can't draw a stop five times the height of the next and the R unit stays comparable across every signal on the chart. TP1 and TP2 are clean R multiples; TP3 is the DOL itself, reported with its true R multiple rather than a rounded one. Every signal plots its full Entry / SL / TP1 / TP2 / TP3 set, labeled level prices, a filled risk zone and reward zone, the raided liquidity level tagged IRL, a V-SHAPE tag on the extreme, the entry line doubling as the break-even rail, and an optional 0 / 0.5 equilibrium split — and every zone is drawn at the same fixed width, so a three-bar stop-out and a two-hundred-bar runner leave an identical, uniform footprint on the chart.
⭐ 0–10 Strength with Star Tiers
Every signal is labeled with its numeric V-Score, a star rank, and a tier ladder running WEAK → VALID → STRONG → ELITE, so the raw quality of a setup reads at a glance without checking the number. Treat the score as a cleanliness and confluence read for ranking and thinning setups — it describes how textbook a V-shape-into-imbalance is, not a guaranteed outcome. The Min V-Score gate restricts what fires, the Strong Tier threshold sets where the star ladder breaks, and the dashboard keeps tracking every closed trade in the background so you can see, on your own data, whether stricter settings actually convert better.
🎚️ Conviction Controls
A compact set of dials sets how serious a raid must be before it counts: the liquidity swing length that decides which pools qualify, the min sweep depth that defines a real stop run, the reclaim window that separates a sweep from genuine acceptance, the three geometry gates (displacement, V width, sharpness), the zone policy and min gap size, the IFVG freshness window, the arm window for retests, the min V-Score, the HTF bias mode, and the risk floor and cap. Tighten them for rare, violent, textbook reversals; loosen them for more activity. This is your main control over conviction versus frequency.
🧭 Single-Ticket Discipline & Honest Accounting
Only one ticket is active at a time, so one chaotic session can't stack overlapping trades — a signal that fires while a trade is running is still labeled and still shown in the scenario panel, marked plainly as SIGNAL ONLY, but it is not double-counted in the statistics. Resolution is SL-first pessimistic: when a bar touches both a target and the stop, the stop wins, because intrabar sequence is unknowable. Partial targets are booked honestly — a trade that reaches TP1 or TP2 and is later stopped books the highest target it actually reached rather than being rounded up to a full win or buried. Armed setups that never get their retest expire instead of lingering. The max-drawn-trades cap is visual only — it thins old drawings off the chart while the statistics stay cumulative over the entire history.
📊 Two-Card Live Dashboard
A non-intrusive panel, built as two visually separate cards divided by a transparent spacer so the chart shows through the gap.
Card 1 · MODEL tracks the engine in real time: current status (waiting → sweeping → armed → in trade), the higher-timeframe bias, the live V-Score as a gauge with its tier, the armed entry zone and its price range, the nearest unswept DOL above and below with ATR distance, the last signal and its stars, win rate with the raw closed-trade count, profit factor, average R per trade, long versus short win rate, current and max streaks, and a TP1 / TP2 / TP3 / SL outcome breakdown.
Card 2 · SCENARIO is the full anatomy of the newest signal, always on and always visible: the setup with its score and tier, the confirmation type (IFVG, FVG, or RAW V) with the exact zone range, the raided IRL level with its sweep depth in ATR, the V geometry expressed as displacement, bar count and velocity, the entry price, the invalidation with its ATR width, TP1 and TP2, the DOL target with its R multiple, whether the HTF bias agreed, and the outcome — running live open R while the trade is on, then locking to the terminal result.
Every filled trade that reaches an outcome is counted — winners and stop-outs alike — so the numbers are computed live from the real signals on your current symbol and timeframe, not a figure printed in a description.
🎨 Clean Themed Visuals
Six coherent palettes, all tuned for a black chart background — Aurora (the clean mint-and-rose default), Gold Noir, Ice Blue, Aqua Violet, Neon Magenta, and Institutional — shade the signal labels, the risk and reward zones, the imbalance zone, the raided-liquidity band, the DOL rails and the dashboard to one consistent look, so direction and quality read at a glance. Each reversal prints a labeled V-SHAPE LONG or V-SHAPE SHORT signal carrying its score, star tier, and confirmation type.
🔔 Detailed Alerts
Fires on V-Shape Armed LONG and SHORT (a qualified V has formed and its zone is waiting for the retest — the early warning), V-Shape Entry LONG and SHORT, any entry, and on Final Target Hit and Stop Hit, formatted for manual or automated use.
🔧 Fully Customizable
Every component is exposed: the liquidity swing length, ATR length, reclaim window and min sweep depth; the displacement, V width and sharpness gates plus the volume baseline; the zone policy, min gap size, inversion freshness, entry trigger and arm window; the DOL timeframe, swing length, day and week level sources, and the min and max target distance in R; the risk buffer, universal-height floor and cap, the R targets, the uniform zone width and the max drawn trades; the min V-Score, strong-tier threshold, long and short toggles, HTF bias mode and timeframe, and each of the six score weights; the dashboard position, size, card gap and every section toggle; all six themes; and every label, line, box, tag and zone.
🎯 Why this is different
Most sweep tools fire on the raid and hope. Most FVG tools draw every gap on the chart and leave you to guess which one matters. This one requires all three layers to line up in sequence: liquidity must actually be raided, the recovery must be violent enough to qualify as a V on three independent geometry measures, and the displacement must leave or flip an imbalance that becomes the entry — then it anchors invalidation behind the V extreme, targets a real unswept higher-timeframe draw instead of an arbitrary R multiple, ranks the whole thing on an objective 0–10 scale, and layers a live, honest statistics panel that counts stop-outs in full. You tune and judge it on real, current data from your own chart instead of a marketing number.
🚀 Where to use it
The mechanics are symbol-agnostic and rest on universal behavior: every liquid market raids its obvious highs and lows, and some of those raids fail immediately. It suits index futures, gold and metals, FX majors and crosses, and crypto on intraday timeframes, where session raids and stop-runs are a constant feature and the higher-timeframe draw is well defined. Because it fades exhaustion, it shines around session extremes and range edges and demands more care in violent one-way trends, where a raid can keep extending rather than reject. Lower timeframes produce more V-shapes but noisier ones — raise the sharpness and min-score gates as you go down. Let the dashboard tell you whether the logic suits the pair and timeframe before you commit.
🎯 How to trade it
Apply it to a liquid symbol on an intraday timeframe and let the dashboard populate. Read the live win rate, profit factor and average R for your symbol and timeframe first — if the logic doesn't suit that market, you'll see it there before you risk anything.
Watch the DOL rails to frame the session — they show the unswept liquidity above and below, which is where price is being pulled.
Wait for a labeled V-SHAPE LONG / SHORT signal. It marks a confirmed close where a pool was raided, the recovery cleared all three geometry gates, and an imbalance confirmed the entry — with score, tier, and the full Entry / SL / TP1 / TP2 / TP3 already plotted.
Read the Scenario card for the fast conviction check: an IFVG confirmation, a deep sweep, high velocity and plenty of R to the DOL is the textbook version. RAW V with thin room to target is the marginal one.
Manage with the plotted levels — the structural stop behind the V defines your risk, TP1 and TP2 are your R scale-outs, and TP3 is the draw the move is actually hunting. Bank or trail however suits your style.
Use the sharpness gate, min V-Score, zone policy and HTF bias filter to set your tempo — stricter for rare, textbook reversals; looser for more activity.
⚠️ Important
This is a decision-support tool, not a standalone buy/sell system, and it makes no performance guarantees. The default settings are sensible starting points, not the output of a historical optimization study — they have not been curve-fit to any one symbol, and you should expect to adjust the geometry gates and score threshold for your market before the signal quality is where you want it. Behavior will vary by symbol, timeframe, session and configuration; the dashboard's statistics are historical and descriptive, not a forecast.
The trade model resolves stop-first and books partial-target exits honestly, so some trades close for a fraction of a target rather than a full win — these are counted in full, which is honest but means win rate alone is misleading; always weigh it together with average R and profit factor. Because TP3 tracks a real liquidity draw rather than a fixed multiple, R per trade varies by design — a 2R target and an 8R target are both legitimate outcomes of the same logic, and the average R figure is the number that reconciles them.
Signals confirm on the closed bar, and the pivot-based liquidity pools confirm a few bars after a swing forms — so the armed state appears slightly after the raw extreme prints, which is inherent to pivot confirmation and is exactly why the retest entry mode exists. Always wait for the labeled signal on a closed candle. Because the system fades a move, a real breakout or a raid that keeps extending can run straight through a stop — combine it with your own analysis and risk management, and test it on your market before trading it live. インジケーター

Agent Doji Session Zones US100Overview
AVE Agent US100 Doji Session Zones is an intraday charting tool developed specifically for the US100 index.
The indicator detects small-body candles during a defined New York trading window and converts each qualifying candle into a temporary price zone. When a valid candle appears between 9:30 AM and 11:00 AM GMT-4, the script draws a box from the candle’s high to its low and extends the zone until 12:30 PM.
A dashed midpoint is also displayed at 50% of the candle’s total range.
Detection logic
A candle qualifies when both conditions are met:
The candle body is no greater than 0.5 US100 index points
The combined length of the upper and lower wicks is no greater than 30 US100 index points
The candle body is calculated using the absolute difference between the open and close.
The total wick size is calculated by adding the upper wick and lower wick together. The two wicks do not need to be equal. One wick may be larger than the other, provided their combined size stays within the allowed limit.
Session filter
New zones are created only during the following period:
Detection start: 9:30 AM GMT-4
Detection end: 11:00 AM GMT-4
Zone extension: 12:30 PM GMT-4
Candles outside the detection period do not create new zones.
Zone construction
For every qualifying candle, the indicator draws:
A box covering the complete candle range
An upper boundary at the candle high
A lower boundary at the candle low
A dashed midpoint at 50% of the range
A horizontal extension until 12:30 PM GMT-4
The zone is intended to represent a short-term area of balance or indecision that formed during the selected US100 session.
Session visualization
The script also provides visual session guidance:
The chart background is darkened outside the 9:30 AM to 12:30 PM session
A blue background marker highlights 11:00 AM
A red background marker highlights 12:30 PM
These markers separate the candle-detection period from the later observation period.
How to use it
The indicator is designed as a discretionary analysis tool rather than a complete trading system.
Traders may use the zones to observe:
Reactions at the zone high or low
Rejections from the zone boundaries
Breakouts above or below the zone
Retests after a breakout
Price interaction with the midpoint
Acceptance or rejection of the original candle range
The tool does not automatically determine market direction and does not provide direct buy or sell signals.
Entries, stop-losses, profit targets, confirmations and risk-management rules must be defined separately by the trader.
Originality and purpose
The script combines several related functions into one US100-specific workflow:
Fixed-point small-body candle detection
Combined upper- and lower-wick measurement
New York session filtering
Automatic projection of the full candle range
Midpoint visualization
Session timing markers
The purpose is not simply to identify standard Doji candles. The script converts qualifying US100 candles into time-limited intraday zones that can be monitored for later price interaction during the same session.
These components are designed to work together as one structured chart-analysis process.
Intended market and timeframe
This version is designed specifically for the US100 index.
Because it uses fixed index-point thresholds, it may not behave correctly on other instruments such as forex pairs, gold, cryptocurrencies or US500.
It is mainly intended for lower intraday timeframes such as:
1-minute
3-minute
5-minute
The exact number of detected zones may vary depending on the broker’s US100 price feed.
Customizable settings
Users can adjust:
Zone border color
Zone background color
Zone midpoint color
The body threshold, combined wick threshold and session times are fixed in the current version.
Limitations
The indicator does not predict future market direction.
It does not generate automatic entries or exits.
It does not include stop-loss or take-profit calculations.
Fixed point values may behave differently across brokers.
A candle that looks visually small may still fail the filter because its exact body or wick size is too large.
Session timing is based on GMT-4 and may not automatically adapt to daylight-saving changes.
Multiple qualifying candles may produce overlapping zones.
Historical reactions do not guarantee future results.
Disclaimer
This indicator is provided for educational and analytical purposes only. It is not financial advice and does not guarantee profitable results. Traders should test the indicator independently and use appropriate risk management before applying it to live trading. インジケーター

Liquidity Sweep Engine Auto Targets [JPT]🔷 OVERVIEW
Liquidity Sweep Engine Auto Targets is an original Pine Script v5 indicator that detects liquidity sweep events using confirmed swing highs and swing lows. Once a valid sweep is identified, the indicator automatically builds a complete trade framework by plotting the Entry, Stop Loss, and multiple Take Profit levels directly on the chart.
The goal is to simplify market structure analysis and provide a clear visual trade plan without requiring manual calculations.
🔷 HOW IT WORKS
The indicator continuously monitors confirmed swing highs and swing lows to identify potential liquidity grabs.
Buy Setup
A bullish setup is generated when price sweeps below a previous swing low and closes back above the swept level (optional close confirmation).
After confirmation, the indicator automatically calculates:
• Entry Price
• Stop Loss
• TP1
• TP2
• TP3
Sell Setup
A bearish setup is generated when price sweeps above a previous swing high and closes back below the swept level.
The indicator then projects:
• Entry Price
• Stop Loss
• TP1
• TP2
• TP3
using user-defined Risk:Reward ratios.
🔷 VISUAL FEATURES
• Buy-side Liquidity Sweep labels
• Sell-side Liquidity Sweep labels
• Automatic Entry line
• Automatic Stop Loss line
• Three configurable Take Profit levels
• Historical trade setup visualization
• Risk-to-Reward projection
• Optional background highlighting
• Configurable line length
• Customizable colors
🔷 AUTO TARGET ENGINE
The built-in Auto Target Engine calculates trade objectives using the selected Risk:Reward values.
Supported target structure:
• TP1 = 1R (default)
• TP2 = 2R
• TP3 = 3R
Users may customize each target independently from the settings panel.
🔷 SIGNAL FILTERS
To reduce false signals, the indicator includes:
• Confirmed swing pivot detection
• Optional close confirmation
• Market structure-based liquidity detection
These filters are designed to help identify higher-quality liquidity sweep events.
🔷 INPUTS
Available settings include:
• Swing Length
• Close Confirmation
• Target Line Length
• TP1 Risk:Reward
• TP2 Risk:Reward
• TP3 Risk:Reward
• Label Visibility
• Line Colors
• Background Highlight
🔷 ALERTS
Built-in alerts are available for:
• Buy-side Liquidity Sweep
• Sell-side Liquidity Sweep
These alerts can be connected to TradingView's notification system.
🔷 COMMON WORKFLOW
A typical workflow is:
1. Wait for a confirmed liquidity sweep.
2. Allow the signal candle to close (if Close Confirmation is enabled).
3. Review the automatically plotted Entry, Stop Loss, and Take Profit levels.
4. Combine the setup with your own market structure, trend analysis, or additional confirmation before making any trading decisions.
🔷 MARKETS
This indicator can be used on:
• XAUUSD & GOLD
• Forex
• Stocks
• Cryptocurrency
• Futures
• Indices
• Commodities
It is compatible with multiple timeframes and may be adapted to different trading styles.
🔷 BEST PRACTICES
Many traders choose to combine liquidity sweeps with:
• Market Structure
• Break of Structure (BOS)
• Change of Character (CHoCH)
• Fair Value Gaps (FVG)
• Order Blocks
• Higher Timeframe Trend
These concepts are optional and can provide additional context when evaluating a setup.
🔷 DISCLAIMER
This indicator is provided as a chart analysis tool for educational and informational purposes only. It identifies trade setups according to its programmed rules and does not predict future price movements or guarantee trading results. Users should always perform their own analysis, apply sound risk management, and consider additional market factors before making trading decisions. インジケーター

4H Liquidity Sweeps═══════════════════════════════════════════════════════════════════════
4H Liquidity Sweeps — graded, with target and R:R
═══════════════════════════════════════════════════════════════════════
WHAT IT DOES
Marks higher-timeframe swing highs and lows that get wicked through and
rejected, then scores each one and projects where the resulting move is
aimed. Most sweep indicators stop at "a level was taken." This one asks
the two questions that decide whether the sweep is worth anything: how
long had that level been sitting there, and is there anything on the
other side to trade toward.
THE IDEA
A swing high or low is a shelf of resting orders — protective stops from
traders positioned into the swing, and breakout orders from traders
waiting for it to give way. When price trades through that shelf and
closes back inside, the move through it found no continuation, and every
order filled beyond the level is immediately offside.
That makes the sweep itself the setup's trigger, not the trade. The trade
is the return leg, and its natural destination is the nearest untouched
shelf on the opposite side. The indicator tracks both ends of that: the
level being taken, and the level being aimed at.
HOW IT WORKS
Levels
Swing highs and lows are confirmed on the sweep timeframe (default 4H,
independent of your chart timeframe) using a configurable pivot
strength. Equal highs and lows resolve to the first of the pair, so
double tops and bottoms still produce a level. Up to N unswept levels
per side are tracked and drawn as dotted lines.
Sweep detection
A level is swept when an HTF bar trades through it and closes back
inside. Three optional filters refine this:
• Minimum penetration — the wick must exceed the level by a set
fraction of ATR(14), so one-tick clips are ignored.
• Displacement rejection — the sweep bar must also close back inside
the PREVIOUS HTF bar's range (Loose) or beyond its midpoint
(Strict). This is what separates a genuine rejection from the first
bar of a breakout that happened to clip an old level on its way
past. Without it, a strongly trending bar can satisfy the level test
while price is plainly still expanding.
• Killzone — sweeps outside your chosen sessions are either dropped
entirely, or capped at B-grade.
A level that is CLOSED through rather than wicked through is deleted,
not marked. That is a break, not a sweep, and it is the main reason
the chart stays readable.
Grading
Every sweep is scored A, B or C from two measurements:
• Level age — how many HTF bars the level survived before it was
taken. This does most of the work. A level that sat for two days
accumulated orders; one from six hours ago did not.
• Reward — R:R from the projected entry to the nearest unswept level
on the opposite side.
A-grade needs both thresholds (default: 12 bars, 3.0R), B-grade the
looser pair (6 bars, 2.0R). Anything else is C and is hidden by
default, including any sweep with no unswept level to aim at.
Trade plan
On each qualifying sweep the indicator projects:
• Entry — an optimal-trade-entry retracement (default 0.705) of the
sweep bar, or the swept level itself if you prefer.
• Stop — beyond the sweep wick, buffered by a fraction of ATR(14).
• Target — the nearest unswept HTF level on the opposite side.
Each is drawn and labelled with its price, and the resulting R:R is
printed on the sweep label. Hover any label for the full breakdown:
grade, level age, killzone status, entry, stop, target, exact R:R.
WHAT YOU SEE
Dotted grey line : an unswept level, extending to the current bar
Solid line : a swept level, drawn from the swing to the bar that took it (thicker for A-grade)
Red zone / the sweep : level to wick extreme
Green zone / the reaction leg : level to the running extreme since the sweep, growing bar by bar until price loses back through the level or the window expires
Dashed line : the target
Dotted lines : entry and stop
SETTINGS WORTH KNOWING
Pivot strength :2 by default. Raise to 3–4 for fewer, more significant levels.
Level age :the filter to adjust first. Loosen this before you :touch the R:R thresholds.
Displacement : Loose is a sensible default; Strict will roughly halve your A-grade count.
Hide historical : keeps only the last N sweeps on the chart and erases everything older — useful for a live chart where only what is still in play matters.
ALERTS
Graded sweep (A or B) — fires only on setups that pass both filters
4H high swept / 4H low swept — directional
4H sweep (any)
NOTES AND LIMITATIONS
• Chart timeframe must be equal to or lower than the sweep timeframe.
The script raises an error otherwise.
• Nothing repaints. Higher-timeframe data is requested with lookahead
disabled, and every sweep is evaluated only against completed HTF
bars. A sweep therefore prints when its HTF bar closes, and a level
is confirmed a few bars after the swing that formed it — that is
confirmation lag, not repainting, and it is inherent to pivots.
• The green reaction zone updates as the move develops. It is live
state, not a signal.
• The R:R shown is calculated from an entry proxy taken on the sweep
bar itself. If you enter from a lower-timeframe structure shift
instead, your actual entry — and therefore your actual R:R — will
differ. Treat the printed figure as a screening number.
• Killzone membership is decided by the HTF bar's OPEN time. On a 4H
chart that means the session setting selects the bar CONTAINING the
killzone rather than the killzone itself, so the defaults are
deliberately widened. Narrow them if you lower the sweep timeframe.
• This is an analysis tool, not a strategy, and it is not backtested
within TradingView. It marks structure and projects levels; it makes
no claim about outcomes. Nothing here is financial advice — do your
own testing and manage your own risk. インジケーター

ATK/DEF Imbalance Power Liquidity Analysis EngineATK/DEF Imbalance Power Liq Analysis Engine is a market behavior analysis framework designed to evaluate swing high and swing low through the relationship between balance fl and imbalance powr.
Unlike traditional high and low point identification methods that mainly focus on pric location or histor turning areas, this indicator focuses on analyzing the internal strength characteristics behind pric movements by measuring the interaction between balanced conditions and directional imbalance.
The core concept of this framework is based on evaluating how pric behavior develops when bu and se pressure become balanced or imbalanced. By stu the intensity, deviation, and persistenc of these conditions, the indicator provides additional analytical information about the quality and behavioral characteristics of detec swing structures.
The engine combines several analytical components to evaluate high and low point behavior:
1. Balance and Imbalance Flo Analysis
The Balance Flo modu evaluates the relationship between positive and negative pric pressure using candle structure and pric movement characteristics.
This component measures the degree of directional imbalance and identifies whether market activity is showing stronger one-sided pressure or a more balanced condition.
The objecti is not to classify market direction, but to evaluate the internal strength distribution around pric struc.
2. Imbalance Power Measurement
The Imbalance Power modu measures the intensity of pressure differences between opposing forc.
By analyzing the magnitu of imbalance, the framework evaluates whether a swing high or swing low develod under strong pressure conditions or weaker participation conditions.
This provides a quantitative reference for comparing different structur points based on their internal behavioral characteristics.
3. Flo Strength Behavior Analysis
The Flo Behavior component studie changes in balance strength over time.
It evaluates whether flo conditions are increasing, decreasing, stabilizing, or shifting between different states.
This allows users to observe how pressure behavior changes around histor swing areas without relying only on pric leve.
4. Market Weight Capacity Evaluation
The Market Weight modu compares current imbalance strength against recent histor conditions.
This measurement provides context regarding the relative intensity of current flo behavior and helps distingu stronger and weaker activity environments.
5. Multi-Timeframe Imbalance Relationship
The framework evaluates short, medium, and longer fl conditions to display the relationship between different imbalance states.
This component provides additional context regarding whether different calculation periods show similar or conflicting pressure characteristics.
6. Swing High and Swing Low Behavioral Analysis
The indicator integrates imbalance and balance measurements directly with detected swing high and swing low structures.
Each structural point can display related flo information, including:
• Balance flo condition
• Imbalance strength level
• Flo behavior status
• Pressure change characteristics
• Structural activity reference
This approach focuses on stud the effectiveness and behavioral quality of high and low points rather than simply marking histor pric extremes.
Key Features:
• Balance and imbalance flo evaluation
• Swing high and swing low behavior analysis
• Candle-based pressure measurement
• Imbalance strength classification
• Flo behavior monitoring
• Market weight comparison
• Multi-period imbalance relationship analysis
• Structural point information display
• Analytical dashboard with calcu measurements
• Quantitative evaluation of pric behavior characteristics
ATK/DEF Imbalance Power Liq Analysis Engine is designed as a technical analysis rese tool for stu the relationship between pric structures, internal pressure distribution, and changing market behavior.
The displayed values represent calcu analytical measurements derived from histor price data. The framework is intended to provide additional context for stud market structure and liquidity behavior rather than providing tra instructions or directional decisions.
インジケーター

8020 System Indicator=============================================================================
8020 SYSTEM INDICATOR FOR TRADINGVIEW — USER GUIDE
=============================================================================
Strategy by Okala. This indicator is a chart companion for the 80/20 trading strategy, Okala's
framework for trading NQ (Nasdaq) futures around price levels ending in 80
and 20. All trading concepts described below are Okala's; the indicator
simply automates spotting and tracking them on the chart.
Nothing in this guide or the indicator is financial advice. It marks
patterns; the trading decisions remain yours.
-----------------------------------------------------------------------------
1. WHAT THE INDICATOR DOES
-----------------------------------------------------------------------------
The indicator draws the core 8020 read on a single chart:
80/20 LEVELS
Horizontal lines at every price ending in 20 or 80 (for example 23,480
and 23,520). In the 8020 framework these act as liquidity magnets:
prices where both institutional and retail orders cluster, producing
reversals, breakouts and stop runs. The indicator draws the nearest
levels above and below the current price and moves them with the market.
40-POINT ZONE BANDS
A translucent band from each 80-ending level up to the next 20-ending
level, straddling every round hundred (for example 23,480 to 23,520).
This is the zone the levels frame, shown as one shaded region.
REPAIRS ("R")
A repair is a candle with no wick on one side of its body. In Okala's
teaching this signals imbalance: aggressive one-sided orders left
unfinished business, and the market tends to return later to "repair"
the move by filling that missing liquidity.
- A bullish candle with no lower wick creates a bullish repair at its
low (a magnet below).
- A bearish candle with no upper wick creates a bearish repair at its
high (a magnet above).
The indicator draws a line from each repair, extending right until
price returns and taps it. Repairs are used both as confluence for
entries and as profit targets. Okala's guidance: recent, aggressive
repairs have the strongest pull; stale ones fade in relevance — the AGE
column in the stats table (see section 4) helps you judge this.
FORK ("F")
A reversal pattern after a sharp capitulation move: three consecutive
candles print wicks at similar prices, with the centre wick extending
furthest and small bodies on the outer two candles.
- A bullish fork: 1st candle closes bearish, the 2nd (centre) candle's
low dives deepest, the 3rd closes bullish to confirm the reversal.
- A bearish fork is the mirror image using the highs.
The indicator draws a line at the centre candle's wick extreme — the
key level of the pattern — extending right until price returns and
taps it. Detection fires when the 3rd candle confirms, and the line is
anchored back at the centre candle where the level actually formed.
CROSS SECTIONS ("XS")
A continuation pattern built from two strong candles in the same
direction where the close of the first meets the open of the second at
the same price — no gap and no overlap between the bodies. That
junction forms a precise level. The playbook: mark the level, wait for
price to pull back to it, and enter in the original trend direction.
The indicator draws a line at the junction, extending right until the
retest happens.
GAPS
Two consecutive candles whose bodies do not overlap, leaving a void
between them (up or down). A translucent box marks the gap and extends
right until price trades back into it — another form of unfinished
liquidity that price is drawn to fill.
A+ WINDOWS
Shaded background over the two sessions the strategy is traded in:
09:30-11:00 ET (morning) and 15:00-16:00 ET (afternoon). The period in
between (11:00-15:00 ET) is the dead zone and is deliberately left
unshaded. Daylight-saving changes are handled automatically.
CONFLUENCE ("+")
Any repair, fork or cross section that forms within a set distance of
an 80/20 level is recoloured (magenta by default) and its label gains a
"+" (for example "R+" or "F+"). Level-plus-pattern confluence is the
heart of the strategy, so these markers deserve the most attention.
STATS TABLE
An on-chart panel with a legend and a live list of every level that
has not yet been tapped. Covered fully in section 4.
Note: of the three core setups, the h Pattern is not yet detected by
this version of the indicator; the sub-levels taught in the full course
(33, 46, 66, 93) are also not drawn.
-----------------------------------------------------------------------------
2. GETTING STARTED
-----------------------------------------------------------------------------
CHART TIMEFRAMES
The system uses a 200-second chart for entries and a 10-minute chart for
bias. TradingView only offers second-based intervals on Premium plans and
above; per Okala's own guidance, if your platform does not support
200-second candles, use 3-minute candles instead — the setups work the
same way. The 10-minute chart is read separately for direction; this
indicator draws the entry-timeframe picture.
The detection logic runs on any symbol and timeframe, but the level
spacing (80/20 within each hundred) and the default thresholds are tuned
for NQ and MNQ. Tick size is detected automatically (0.25 on NQ/MNQ) and
can be overridden in settings.
NO REPAINTING
All patterns are detected on confirmed (closed) candles only. A marker
will never appear mid-candle and then vanish; what you see in a replay is
what you would have seen live.
-----------------------------------------------------------------------------
3. SETTINGS, GROUP BY GROUP
-----------------------------------------------------------------------------
A note on transparency: TradingView uses transparency rather than opacity,
so 0 means solid and 100 means invisible.
80/20 LEVELS
Show levels ............... master toggle for the horizontal lines
Dashed lines .............. dashed (on) or solid (off) level lines
Price labels .............. print the price next to each level
40-pt zone bands .......... toggle the shaded bands around each hundred
Levels each side .......... how many levels to draw above and below the
current price (default 10 each side)
Line width / transparency . visual styling for the level lines
Zone band transparency .... how faint the bands are (default 90, subtle)
Line / zone band colour ... colours for lines and bands
REPAIRS
Show repairs .............. toggle repair detection
"R" labels ................ toggle the R text label (line still draws)
Max wick (ticks) .......... how large a wick may be and still count as
"no wick". Default 0 = strictly wickless;
set to 1-2 to allow a tick or two of wick.
CROSS SECTIONS
Show cross sections ....... toggle detection
"XS" labels ............... toggle the XS text label
Body / range ratio ........ how much of each candle must be body for it
to count as a strong directional candle
(default 0.6 = 60 percent)
Junction tolerance (ticks). how closely close-1 must meet open-2
(default 2 ticks)
Min body (ticks) .......... minimum size of each momentum candle
(default 40 ticks = 10 NQ points)
FORK
Show fork ................. toggle fork detection
"F" labels ................ toggle the F text label (line still draws)
Outer-wick similarity ..... how close the 1st and 3rd candles' wicks
must sit to count as "similar prices"
(default 3 ticks)
Min center-wick depth ..... how far the center candle's wick must
extend beyond BOTH outer wicks for the
pattern to count (default 4 ticks = 1 pt)
Max outer body / range .... how small-bodied the outer candles must be:
the body may take up at most this fraction
of the candle's range (default 0.5). Lower
values demand more indecision-like outers.
MARKER STYLE (REPAIRS + CROSS SECTIONS + FORK)
Line width ................ thickness of the marker lines
Lookback (bars) ........... markers older than this are removed
(default 1000 bars; 0 disables the limit)
Bullish / bearish colour .. cyan and pink by default. These also colour
the labels and the stats-table rows. If you
use a light chart background, darken these.
CONFLUENCE
Highlight confluence ...... toggle the recolour-and-"+" behaviour
Distance to level (ticks) . how near an 80/20 level a marker must be to
count as confluent (default 8 ticks = 2 pts)
Colour .................... confluence colour (magenta by default)
GAPS
Show gaps ................. toggle gap boxes
Min gap size (ticks) ...... smallest body gap that registers
(default 4 ticks = 1 point)
Box transparency / colour . styling for the gap boxes
A+ WINDOWS
Shade A+ windows .......... toggle the session shading
Transparency / colour ..... styling for the shading
STATS TABLE
Show table ................ toggle the panel
Position .................. which corner or edge of the chart it sits in
Text size ................. Tiny, Small, Normal or Large
Max untapped rows ......... how many untapped levels to list (1-30).
The header always shows the true total even
when the list is capped.
GENERAL
Tick size (0 = auto) ...... leave at 0 to use the symbol's own tick
size; override only if needed.
-----------------------------------------------------------------------------
4. THE STATS TABLE
-----------------------------------------------------------------------------
The table has a white body with black text; section headers are inverted
(black with white text). Everything is set in a monospaced font. It
updates live on the last bar.
LEGEND (top section)
R repair (no-wick candle)
F fork (three-candle reversal)
XS cross section (junction of two momentum candles)
# coloured square: body gap
+ confluence with an 80/20 level
UP / DOWN arrows: bullish (cyan) and bearish (pink) marker direction
UNTAPPED (bottom section)
This is a live watch-list of every level the market has not yet returned
to — the levels that still have pull. The count in the header is the
total number outstanding. Rows are listed newest first, in three columns:
TYPE ... what the level is (R, F, XS or GAP), with a "+" if it sits in
confluence with an 80/20 level, and an arrow for direction.
An up arrow means price would come DOWN to tap it (a magnet
below); a down arrow means price would come UP to tap it.
PRICE .. the exact level, or for gaps the full price range of the void.
AGE .... how many bars have passed since the level was created. Recency
matters in this system — fresh repairs pull hardest — so a
young age is generally more interesting than an old one. For
forks, age is counted from the centre candle, where the level
actually formed.
The moment price taps a level, its line stops extending on the chart and
its row leaves the table, so the table always reflects what is still open.
-----------------------------------------------------------------------------
5. READING THE CHART: THE INTENDED WORKFLOW
-----------------------------------------------------------------------------
The indicator is built to support a daily routine, rather than
replace it:
1. Pre-market, note where the 80/20 levels and fresh repairs sit; the
untapped table gives you this list at a glance.
2. Set bias from the 10-minute chart (a separate chart or layout).
3. Trade only inside the shaded A+ windows and avoid the dead zone.
4. Wait for a setup at a marked location — a fork reversal at
exhaustion, a cross section pullback or a reaction at a repair —
with the highest priority on "+" (confluent) markers near 80/20
levels.
5. Manage risk per the playbook: a 10-15 point stop at structure (size
down if wider), a 15-point standard target (1.0-1.5R), and a strict
cap of one to three trades per day. Repairs above or below often
serve as the natural targets.
The indicator marks locations and keeps score of what remains untapped;
the discipline — windows, bias, risk and trade count — is on you.
-----------------------------------------------------------------------------
6. ALERTS
-----------------------------------------------------------------------------
There is an "Alerts" group in the settings with seven toggles: new repair, new fork, new cross section, new gap (off by default — they can be noisy), level tapped / gap filled, "+"-only mode (restricts new-marker alerts to confluent ones, which pairs nicely with the strategy's A+-setups-only discipline), and A+ window opens (off by default). Messages are compact and self-describing
-----------------------------------------------------------------------------
7. TECHNICAL NOTES AND LIMITS
-----------------------------------------------------------------------------
- TradingView caps every indicator at 500 lines, 500 boxes and 500
labels. The script reserves headroom for the level lines and bands,
caps markers at 400 and gaps at 450, and when a cap is reached evicts
the oldest FILLED marker first, so open (untapped) levels are never
dropped in favour of dead ones.
- The Lookback setting removes markers older than the given number of
bars regardless of fill state, keeping the chart focused on recent
structure.
- Levels and zone bands are redrawn around the latest price on every
update, so they follow the market automatically.
- Fill checks use the candle's full range: a wick touching a level
counts as a tap.
- Detection is on-close only, which means a pattern is marked one candle
after it completes forming — the trade-off for signals that never
repaint. For the fork this means the marker appears when the 3rd
(confirming) candle closes, two candles after the centre candle that
set the level; the line is drawn back to that centre candle.
Credit once more to Okala for the strategy and all of the concepts this indicator visualises. インジケーター

FVG ChannelThis script is a modified and expanded derivative of “FVG Channel ” by LuxAlgo. The original FVG detection, active-level aggregation, close-based mitigation, smoothed channel concept, and internal channel-level framework were adapted from that work. This version adds confirmed-bar processing, capped FVG storage, normalized and double-smoothed boundaries, recovery-based signal logic, configurable overextension requirements, signal cooldowns, optional volume confirmation, separate standard and Super classifications, alerts, and simplified historical target/stop measurements. The original work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International licence, and this modified version is distributed under the same licence. It is intended for noncommercial use, and changes from the original implementation have been clearly identified.
### Overview
FVG Channel converts active Fair Value Gap reference levels into a smoothed adaptive price channel.
The script identifies confirmed bullish and bearish FVG structures, stores one reference level from each active gap, removes levels after close-based mitigation, and averages the remaining bullish and bearish references.
These averages are smoothed twice to create the channel boundaries. The channel also includes three configurable internal levels, confirmed recovery signals, optional volume confirmation, standard and Super signal classifications, alerts, target and stop reference lines, and simplified historical outcome tables.
The indicator is designed to help users examine:
* areas where multiple unmitigated FVG references are concentrated;
* price overextension beyond the adaptive channel;
* confirmed recovery back inside the channel;
* stronger wick-extension conditions;
* historical target and stop outcomes under user-selected settings.
The script is intended for standard candlestick or bar charts. It does not predict future prices and does not provide automatic trade instructions.
## Fair Value Gap detection
A bullish FVG is identified when:
* the current low is above the high from two bars earlier;
* the middle candle closes above that earlier high;
* the current chart bar is confirmed.
For each bullish FVG, the script stores the high from two bars earlier as its reference level.
A bearish FVG is identified when:
* the current high is below the low from two bars earlier;
* the middle candle closes below that earlier low;
* the current chart bar is confirmed.
For each bearish FVG, the script stores the low from two bars earlier as its reference level.
The script stores one reference level from each detected FVG. It does not draw or store the complete upper and lower boundaries of every gap zone.
## FVG mitigation
Bullish and bearish FVG references remain active until they are mitigated by a confirmed close.
A bullish FVG reference is removed when price closes below its stored level.
A bearish FVG reference is removed when price closes above its stored level.
Wick contact alone does not remove an FVG reference.
This close-based method is intended to reduce the effect of temporary wick penetration, but it can also keep a level active after price has partially traded through the original gap area.
## Maximum stored FVG levels
The Maximum Stored FVG Levels setting limits the number of bullish and bearish references stored by the script.
When the selected limit is exceeded, the oldest stored reference is removed.
This prevents the arrays from expanding indefinitely on long chart histories.
A larger limit allows more historical FVG references to contribute to the channel but may increase processing requirements.
## Adaptive channel calculation
The active bullish FVG references are averaged.
The active bearish FVG references are averaged separately.
Each average then passes through two consecutive simple moving-average smoothing calculations.
The final channel boundaries are normalized so that:
* the higher smoothed reference becomes the upper boundary;
* the lower smoothed reference becomes the lower boundary.
This prevents the channel boundaries from becoming visually reversed.
When no active bullish or bearish FVG reference is available, the script temporarily substitutes a simple moving average of price for that side of the calculation.
The resulting channel is therefore influenced by active FVG structure when available and by smoothed price when no active reference exists.
## Smoothing Length
The Smoothing Length controls both smoothing passes applied to the FVG reference averages.
A shorter length:
* reacts more quickly to changes in the active FVG structure;
* produces a more responsive channel;
* may create more frequent recovery conditions;
* can be more sensitive to short-term movement.
A longer length:
* creates smoother boundaries;
* reacts more slowly;
* emphasizes broader FVG concentration;
* may produce fewer signals.
The same length is used for both smoothing passes.
## Upper and lower boundaries
The red upper boundary represents the higher of the two smoothed FVG reference calculations.
The green lower boundary represents the lower of the two smoothed calculations.
The boundaries are not traditional support and resistance lines and should not be treated as guaranteed reversal levels.
They represent smoothed averages derived from active FVG references and the price-SMA fallback logic.
## Internal channel levels
The script calculates three configurable levels between the lower and upper boundaries.
The default values are:
* Internal Level 1: 0.236;
* Internal Level 2: 0.500;
* Internal Level 3: 0.786.
Each value represents a proportional position within the current channel range.
For example, Internal Level 2 at 0.500 represents the midpoint between the lower and upper boundaries.
The levels must satisfy:
* Level 1 is below Level 2;
* Level 2 is below Level 3.
All internal-level settings are limited to values between 0 and 1.
The script produces an error when the levels are entered in an invalid order.
## Confirmed recovery signals
The signal system looks for price to remain outside the channel and then recover back inside it.
Signals are confirmed only after the chart bar closes.
### Bullish recovery
A bullish recovery condition requires:
* price to close below the lower boundary for the selected minimum number of consecutive bars;
* price to subsequently cross and close back above the lower boundary;
* the bullish signal cooldown to have expired;
* the optional volume condition to pass.
A green BULL label marks a standard bullish recovery.
This condition indicates that price remained below the adaptive channel and then recovered above its lower boundary.
It does not guarantee that price will continue higher.
### Bearish recovery
A bearish recovery condition requires:
* price to close above the upper boundary for the selected minimum number of consecutive bars;
* price to subsequently cross and close back below the upper boundary;
* the bearish signal cooldown to have expired;
* the optional volume condition to pass.
A red BEAR label marks a standard bearish recovery.
This condition indicates that price remained above the adaptive channel and then recovered below its upper boundary.
It does not guarantee that price will continue lower.
## Minimum Closes Outside Channel
This setting controls how many consecutive confirmed closes must occur beyond a channel boundary before a recovery signal becomes eligible.
For a bullish condition, the required closes must occur below the lower boundary.
For a bearish condition, the required closes must occur above the upper boundary.
A smaller value:
* allows faster recovery signals;
* produces more frequent conditions;
* may include shallower overextensions.
A larger value:
* requires price to remain outside the channel longer;
* produces fewer conditions;
* focuses on more persistent overextensions.
## Standard and Super signals
Each recovery is classified as either a standard signal or a Super signal.
The classifications are mutually exclusive. A Super signal does not also produce a standard label or standard alert.
### Super Bull recovery
A bullish recovery becomes a Super Bull condition when the signal candle’s lower wick extends beyond the lower boundary by at least the configured Super Signal Wick Extension percentage.
A lime SBULL label identifies this condition.
### Super Bear recovery
A bearish recovery becomes a Super Bear condition when the signal candle’s upper wick extends beyond the upper boundary by at least the configured Super Signal Wick Extension percentage.
An orange SBEAR label identifies this condition.
The Super classification measures wick distance beyond the relevant boundary.
It does not independently measure trend strength, probability, expected return, or future reversal quality.
A higher Super threshold creates fewer Super classifications.
A lower threshold creates more frequent Super classifications.
## Signal cooldown
The Signal Cooldown setting controls the minimum number of chart bars required between signals of the same direction.
Bullish and bearish cooldowns are tracked independently.
For example, a bullish signal does not reset the bearish cooldown.
A value of zero allows another same-direction signal as soon as all other requirements are satisfied.
The cooldown reduces repeated signals but does not change the underlying FVG channel.
## Volume confirmation
Volume confirmation is optional.
When enabled, a recovery signal requires current reported volume to be greater than:
* average volume over the selected Volume Lookback;
* multiplied by the Volume Confirmation Multiplier.
A multiplier of 1.0 requires volume to exceed its average.
A multiplier above 1.0 requires comparatively higher volume.
A multiplier below 1.0 creates a less restrictive condition.
Volume information differs between markets and data providers. Some symbols provide centralized transaction volume, while others may provide exchange-specific or tick-volume data.
The volume condition should therefore be interpreted according to the selected market.
## Signal-bar background
Optional background highlighting can be enabled for confirmed signal bars.
Separate colours are available for:
* Bull signals;
* Super Bull signals;
* Bear signals;
* Super Bear signals.
The background highlight is visual only and does not change the signal calculations.
## Signal labels
The indicator displays four possible labels:
* BULL: standard bullish recovery;
* SBULL: Super bullish recovery;
* BEAR: standard bearish recovery;
* SBEAR: Super bearish recovery.
The Signal Offset setting controls the vertical distance between each label and the signal candle.
Labels are plotted for every confirmed signal, even when another historical outcome measurement is already active.
## Alerts
Separate alerts are available for:
* Bull Recovery;
* Super Bull Recovery;
* Bear Recovery;
* Super Bear Recovery.
Standard and Super alerts are exclusive.
Alerts are based on confirmed chart bars, so a signal is not finalized until the bar closes.
When creating a TradingView alert, using Once Per Bar Close is recommended for consistency with the script’s confirmed-bar logic.
## Historical target and stop measurements
The Historical Outcome Settings provide simplified target and stop measurements for confirmed signals.
This system is not a full TradingView strategy backtest.
Only one unresolved outcome can be tracked at a time across all four signal types.
Signals can still appear while another outcome is active, but those later signals will not begin additional outcome measurements.
## Target Mode
The available Target Modes are:
* Disabled;
* Percentage;
* Internal Level 1;
* Internal Level 2;
* Internal Level 3.
### Disabled
Historical outcome tracking is turned off.
Signal labels and alerts continue to operate.
### Percentage
The target is calculated as a percentage of the signal bar’s closing price.
Separate target settings are available for standard and Super signals.
### Internal Level targets
The selected internal channel level is used as the target only when it lies beyond the signal close in the expected direction.
For a bullish signal, the internal target must be above the signal close.
For a bearish signal, the internal target must be below the signal close.
When the selected internal level is not positioned in the required direction, no historical outcome is started for that signal.
This prevents the script from creating an invalid target behind the recorded entry price.
## Standard and Super target settings
When Percentage mode is selected:
* Standard Target is used for BULL and BEAR signals;
* Super Target is used for SBULL and SBEAR signals;
* Standard Stop is used for BULL and BEAR signals;
* Super Stop is used for SBULL and SBEAR signals.
Targets and stops are measured from the confirmed signal bar’s closing price.
They are research references only and are not automatically submitted as orders.
## Outcome evaluation
The signal bar’s closing price becomes the recorded reference price.
Target and stop evaluation begins on the following chart bar.
The signal candle’s earlier high and low are therefore not used to determine the outcome after the entry has been recorded at its close.
For bullish measurements:
* the target is reached when a later high touches or exceeds the target;
* the stop is reached when a later low touches or falls below the stop.
For bearish measurements:
* the target is reached when a later low touches or falls below the target;
* the stop is reached when a later high touches or exceeds the stop.
## Target and stop on the same bar
When both the target and stop are touched during the same evaluation bar, the script records a stop outcome.
This conservative rule is used because the script cannot determine the exact intrabar order from standard chart-bar data.
A lower-timeframe price path is not reconstructed.
## Target and stop reference lines
The most recently created target and stop levels can be displayed temporarily on the chart.
The Target/Stop Line Length controls how many bars these references remain visible after they are created.
The display duration does not control how long the historical outcome remains active.
An outcome continues to be evaluated until its target or stop is reached, even after the visual lines disappear.
## Standard outcome table
The standard table reports completed BULL and BEAR measurements.
The format is:
* T: target outcomes;
* S: stop outcomes;
* percentage: target outcomes divided by completed target and stop outcomes.
For example:
BULL T/S: 12/8 (60%)
This means that 12 completed bullish measurements reached their targets and 8 reached their stops.
## Super outcome table
The Super table reports the same measurements separately for SBULL and SBEAR signals.
Super results are not combined with standard signal results.
This allows users to compare the script’s wick-extension classification with the standard recovery classification.
## Meaning of the table percentages
The percentages are simplified historical target-outcome ratios.
They are not:
* guaranteed win rates;
* expected future returns;
* probability forecasts;
* full strategy results;
* proof of profitability.
The calculations do not account for:
* commissions;
* slippage;
* spread;
* liquidity;
* position sizing;
* portfolio equity;
* order rejection;
* realistic execution;
* overlapping positions;
* complete intrabar sequencing.
Only one unresolved measurement is tracked at a time, so not every displayed signal is represented in the tables.
Results depend on the selected:
* symbol;
* timeframe;
* available chart history;
* FVG structure;
* smoothing length;
* minimum outside-bar requirement;
* cooldown;
* volume settings;
* Super threshold;
* target mode;
* target settings;
* stop settings.
Historical results do not imply future performance.
# How to Use
## 1. Use a standard chart
Apply FVG Channel to a standard candlestick or bar chart.
Avoid evaluating signal performance on synthetic chart types such as:
* Heikin Ashi;
* Renko;
* Kagi;
* Point and Figure;
* Range charts.
Synthetic chart prices may not represent directly tradable market prices.
## 2. Begin with the default channel settings
The default Smoothing Length is 20.
This gives the active bullish and bearish FVG reference averages two smoothing passes of 20 bars each.
Observe how the channel behaves on the selected symbol before reducing or increasing the setting.
Use a shorter length when a faster channel is preferred.
Use a longer length when a slower and smoother structure is preferred.
## 3. Read the channel position
Use the upper and lower boundaries to understand where price is trading relative to the smoothed active FVG structure.
Price inside the channel indicates that it is between the two adaptive boundaries.
Price below the lower boundary indicates a lower-channel overextension.
Price above the upper boundary indicates an upper-channel overextension.
An overextension is not a signal by itself.
The script waits for a confirmed recovery back inside the channel.
## 4. Wait for the required outside closes
The default Minimum Closes Outside Channel setting is 5.
For a bullish setup, price must close below the lower boundary for at least five consecutive confirmed bars.
For a bearish setup, price must close above the upper boundary for at least five consecutive confirmed bars.
Changing this value adjusts how persistent the overextension must be.
## 5. Wait for the confirmed recovery
After the required outside closes:
* a bullish condition requires price to cross and close back above the lower boundary;
* a bearish condition requires price to cross and close back below the upper boundary.
The signal is confirmed only when the candle closes.
A temporary intrabar move through the boundary does not create a finalized signal unless the close satisfies the condition.
## 6. Distinguish standard and Super signals
Use the signal labels to identify the classification.
* BULL is a standard bullish recovery.
* SBULL is a bullish recovery with sufficient lower-wick extension.
* BEAR is a standard bearish recovery.
* SBEAR is a bearish recovery with sufficient upper-wick extension.
A Super signal is not automatically better than a standard signal.
It only means that the wick-extension threshold was reached.
## 7. Adjust the Super threshold carefully
The default Super Signal Wick Extension is 15%.
This percentage is measured relative to the relevant channel-boundary price.
A higher value makes Super signals rarer.
A lower value makes them more common.
Review the scale and volatility characteristics of the selected market before changing this setting significantly.
## 8. Use volume confirmation when appropriate
Enable Volume Confirmation when signals should require reported volume above a selected threshold.
A practical starting point is:
* Volume Lookback: 20;
* Volume Confirmation Multiplier: 1.0.
This requires current volume to be above its 20-bar average.
Increase the multiplier for a stricter requirement.
Volume confirmation may be more useful on instruments with reliable volume data.
## 9. Review the internal levels
The internal channel levels can be used as visual reference points within the adaptive range.
The default levels represent approximately:
* 23.6%;
* 50%;
* 78.6%.
They can help show where price is positioned inside the current channel.
They are not guaranteed support, resistance, or profit targets.
## 10. Review wider market context
Before interpreting a recovery label, examine:
* the broader trend;
* nearby support and resistance;
* volatility;
* channel direction;
* channel width;
* recent price structure;
* active session conditions;
* available volume quality;
* major news or event risk.
A recovery signal against a strong directional trend can fail.
The indicator should not be used as the only reason for a market decision.
## 11. Configure the signal cooldown
The default cooldown is 50 bars for signals of the same direction.
Reduce the setting when more frequent same-direction signals are desired.
Increase it when repeated signals should be restricted.
Bullish and bearish cooldowns operate independently.
## 12. Configure historical measurements
Select Percentage mode for simple percentage-based target and stop research.
A practical starting configuration is:
* Standard Target: 1%;
* Standard Stop: 1%;
* Super Target: 2%;
* Super Stop: 2%.
These are examples only and are not recommended settings for every market or timeframe.
Select an Internal Level target when the channel’s own internal structure should be used.
Remember that a measurement is skipped when the chosen level is not beyond the signal close in the correct direction.
## 13. Read the target and stop lines
When a valid outcome starts:
* the green line represents the target;
* the red line represents the stop.
The lines remain visible for the selected number of bars.
Their disappearance does not necessarily mean the outcome has been resolved.
## 14. Read the tables correctly
The standard table separates BULL and BEAR results.
The Super table separates SBULL and SBEAR results.
T means completed target outcomes.
S means completed stop outcomes.
The percentage represents targets divided by completed targets and stops.
Do not interpret the percentage as a guaranteed win rate.
## 15. Understand one-active-outcome tracking
The script tracks only one unresolved outcome at a time.
A new signal may be displayed while an older measurement remains active.
However, the newer signal will not be added to the historical table until the previous measurement has ended and another eligible signal occurs.
This prevents overlapping measurements but means the table does not measure every displayed signal.
## 16. Create alerts
Create separate TradingView alerts for the conditions you want to receive:
* Bull Recovery;
* Super Bull Recovery;
* Bear Recovery;
* Super Bear Recovery.
Use Once Per Bar Close to match the script’s confirmed-signal behaviour.
Test alerts on the intended symbol and timeframe before relying on them operationally.
## Suggested starting process
1. Apply the indicator to a liquid symbol on a standard candlestick chart.
2. Keep the default Smoothing Length of 20.
3. Keep Minimum Closes Outside Channel at 5.
4. Leave volume confirmation disabled initially.
5. Observe several BULL and BEAR recovery examples.
6. Compare standard and Super signals.
7. Review whether signals occur with or against the broader trend.
8. Enable volume confirmation and compare the difference.
9. Use the historical tables only as simplified research measurements.
10. Test multiple symbols and timeframes before drawing conclusions.
## Important limitations
* The script stores one reference level from each FVG, not the entire FVG zone.
* FVGs are confirmed only after the relevant chart bar closes.
* FVG mitigation requires a confirmed close through the stored reference.
* Wick contact alone does not remove an FVG reference.
* Active bullish and bearish references are equally weighted.
* The channel uses a price-SMA fallback when no active FVG reference is available.
* Double smoothing introduces delay.
* Recovery signals do not guarantee reversals.
* Super classifications measure wick extension only.
* Volume quality varies across markets and data providers.
* Only one historical outcome is tracked at a time.
* Not every displayed signal is included in the tables.
* Same-bar target and stop contact is recorded as a stop outcome.
* Historical measurements do not include realistic execution costs.
* Internal target modes may skip signals when the selected level is not positioned beyond the signal close.
* Historical table results do not guarantee future performance.
FVG Channel is an analytical and research tool. It does not provide financial advice, guaranteed signals, or guaranteed results. インジケーター

HTF Power of 3 (PO3) with Trailing Stop🔵 OVERVIEW
The HTF Power of 3 (PO3) with Trailing Stop is a technical indicator created by BigBeluga to capture institutional market cycles based on Smart Money Concepts (SMC). Detecting market manipulation phases and structural accumulation zones has always been a major challenge in technical analysis, as traditional breakouts often lead to false signals and whipsaw trades. In order to provide a solution to this problem, this indicator maps higher timeframe (HTF) Power of 3 cycles—breaking price action down into Accumulation, Manipulation, and Distribution phases—combined with an advanced volatility-based trailing stop engine.
The indicator aims to visualize institutional order-building and subsequent expansions. The core element of its calculation involves tracking HTF session levels alongside a dynamic ATR-based trailing threshold defined as:
trailingStop = close ± currentAtr * trailMultiplier
where currentAtr is the standard Average True Range of period atrPeriod , and trailMultiplier is the sensitivity footprint multiplier. Higher values of accumMultiplier and trailMultiplier allow the indicator to adjust to longer consolidation periods and filter out minor market noise.
🔵 FEATURES
The system utilizes a multi-layered matrix structure to provide actionable market intelligence:
1 — Auto HTF Matrix Mode & Session Engine
Dynamic Timeframe Scaling: When enabled, the indicator automatically scales the higher timeframe matrix dynamically based on your current chart timeframe context.
Session Tracking: Continuously calculates local open, high, low, and close parameters across higher timeframe layers to project real-time structural candles on the right side of your chart.
2 — Power of 3 (PO3) Phase Breakdown & Peak Labels
Accumulation Phase: Maps the initial consolidation boundary lines over a defined accumMultiplier bar count, outlining the high and low thresholds where institutional orders cluster.
Manipulation Phase & Peak Labels: Triggers automatically when price breaks out of the accumulation boundaries, identifying fakeouts and plotting a peak manipulation label marked with an M at the extreme high or low.
Distribution Phase & Peak Labels: Transitions into the expansion phase once the trailing stop is breached, tracking the final leg of the institutional delivery cycle and plotting a peak distribution label marked with a D .
3 — Dynamic Trailing Stop & Cloud Fill
Volatility Boundaries: Employs a robust ATR trailing line that shifts dynamically to lock in profits and signal shifts in market bias.
Visual Cloud Fills: Dynamically colors and fills the space between price action and the trailing stop line to offer clear visual confirmation of trend direction.
🔵 HOW TO USE
Apart from the basic visualization of institutional market cycles, this tool can also act in alternative ways to support decision-making:
Identify Accumulation Zones: Monitor the orange accumulation channel during the early stages of an HTF session to spot tight consolidation ranges before an expansion.
Trade the Manipulation Breakout: Wait for price to sweep outside the accumulation boundaries to trigger a "Manipulation" label and an M peak marker, signaling an institutional run on liquidity before the true directional move.
Manage Risk with Trailing Stops: Use the dynamic trailing stop line, cloud fill, and subsequent D distribution peak markers as a trailing stop loss mechanism to guide entries, manage open positions, and catch the final distribution leg.
🔵 NOTES
Why this implementation is unique:
It automates complex multi-timeframe ICT concepts directly onto lower timeframe charts without requiring manual chart reconfiguration.
The right-aligned visual projection engine gives traders a clear look at the developing higher timeframe candle and session metrics without cluttering active price history.
The script is fully optimized for Pine Script version 6, integrating seamless label sizing and automated line management for maximum rendering performance.
インジケーター

Echo Vector PVSRA Volume### Credits and licence
The starting point for the relative-volume and volume-spread classification framework was the open-source “Traders Reality PVSRA Volume Suite,” originally created by infernix with library integration by peshocore, under the Mozilla Public License 2.0.
This derivative is independently named and does not use the Traders Reality or Pattern Watchers names as its branding.
The imported library calculation has been replaced with script-level calculations. This implementation adds configurable volume tiers, price-extension filters, volume divergence, optional divergence lines, extreme-volume event detection, body-recovery measurements, expanded alerts, and simplified historical outcome tables.
### Overview
Echo Volume Structure is a volume-analysis indicator that classifies candles according to:
* reported volume;
* candle direction;
* candle range;
* volume multiplied by candle range;
* body size;
* price extension from a configurable EMA.
The classifications are displayed as colour-coded volume columns in a separate pane.
Users can optionally apply the same classification colours to the candles on the main price chart.
The script also includes:
* regular bullish and bearish volume divergence;
* divergence markers and configurable lines;
* extreme-volume event diamonds;
* body-recovery tracking;
* simplified divergence target/stop outcomes;
* recovery statistics;
* configurable alerts.
The indicator identifies when its mathematical conditions are present. It does not establish why the activity occurred and does not predict what price will do afterward.
### Data source
By default, the indicator uses OHLC and volume data from the active chart symbol and timeframe.
The requested values include:
* open;
* high;
* low;
* close;
* volume.
The data is requested with lookahead disabled.
### Symbol override
Users can optionally analyze data from a different symbol instead of the active chart symbol.
The override can also contain a combination of compatible feeds, such as multiple exchange symbols added together.
Adding several data feeds can increase processing requirements.
When symbol override is enabled, users should confirm that the selected source is meaningfully related to the active chart.
Differences in exchange activity, trading hours, price scale, market structure, and volume reporting can cause the classifications to differ from those produced by the chart symbol.
### Volume-spread calculation
The script calculates a volume-spread value by multiplying candle volume by the candle’s high-to-low range.
This allows the classification process to consider both:
* the amount of reported volume;
* the price range produced during that volume.
A candle may qualify for an elevated classification because its volume is unusually high, its volume-spread value is unusually large, or it meets a combination of volume, body-size, and price-extension conditions.
### Candle-classification hierarchy
The script applies a fixed priority hierarchy.
When a candle qualifies for more than one classification, the highest active tier determines its colour.
The hierarchy from highest to lowest is:
1. Echo Peak Up or Echo Valley Down;
2. Ultra Up or Ultra Down;
3. Echo Surge Up or Echo Surge Down;
4. Echo Pulse Up or Echo Pulse Down;
5. Normal Up or Normal Down.
The classifications are internal analytical categories. They are not measurements of trade quality and do not guarantee reversal or continuation.
### Default colour key
The default candle classifications and colours are:
* Echo Peak Up — bright green;
* Echo Valley Down — bright red;
* Ultra Up — dark green;
* Ultra Down — dark red;
* Echo Surge Up — lime green;
* Echo Surge Down — light red;
* Echo Pulse Up — blue;
* Echo Pulse Down — fuchsia;
* Normal Up — light grey;
* Normal Down — dark grey;
* Extreme Volume Event — yellow diamond;
* Bullish Volume Divergence — turquoise upward triangle;
* Bearish Volume Divergence — coral-red downward triangle.
All classification, divergence, and line colours can be adjusted in the indicator settings.
### Echo Peak Up — bright green
An Echo Peak Up candle is bright green by default.
It requires:
* an up candle;
* volume at or above the selected multiple of the longer-term average volume;
* a candle body above the selected multiple of its average body size;
* price above the selected EMA by more than the configured standard-deviation distance.
The longer-term volume, body, EMA, and deviation settings are independently configurable.
Echo Peak Up identifies an unusually large bullish candle occurring while price is extended above its recent mean.
It may be examined as possible climactic or blow-off activity, but it does not prove that a market top has formed.
Price may continue rising after an Echo Peak Up candle.
### Echo Valley Down — bright red
An Echo Valley Down candle is bright red by default.
It requires:
* a down candle;
* volume at or above the selected multiple of the longer-term average volume;
* a candle body above the selected multiple of its average body size;
* price below the selected EMA by more than the configured standard-deviation distance.
Echo Valley Down identifies an unusually large bearish candle occurring while price is extended below its recent mean.
It may be examined as possible climactic or exhaustion activity, but it does not prove that a market bottom has formed.
Price may continue falling after an Echo Valley Down candle.
### Ultra Up — dark green
An Ultra Up candle is dark green by default.
It occurs when:
* the candle closes above its open;
* volume reaches the selected Ultra multiple of the longer-term average;
* the candle does not meet all the additional body-size and price-extension requirements of Echo Peak Up.
Ultra Up identifies exceptionally high reported volume on an up candle relative to the selected baseline.
It does not determine whether the activity represents accumulation, distribution, continuation, short covering, or reversal.
### Ultra Down — dark red
An Ultra Down candle is dark red by default.
It occurs when:
* the candle closes at or below its open;
* volume reaches the selected Ultra multiple of the longer-term average;
* the candle does not meet all the additional body-size and price-extension requirements of Echo Valley Down.
Ultra Down identifies exceptionally high reported volume on a down candle relative to the selected baseline.
It does not determine whether the activity represents accumulation, distribution, liquidation, continuation, or reversal.
### Echo Surge Up — lime green
An Echo Surge Up candle is lime green by default.
It is an up candle that meets at least one of the following conditions:
* volume reaches the selected Surge multiple of the recent average volume;
* the candle’s volume-spread value reaches or exceeds the highest previous volume-spread value within the selected lookback.
The candle must not already qualify for Echo Peak Up or Ultra Up.
Echo Surge Up identifies elevated volume or volume-spread activity on an up candle.
It is not an automatic bullish entry signal and does not guarantee that price will continue rising.
### Echo Surge Down — light red
An Echo Surge Down candle is light red by default.
It is a down candle that meets at least one of the following conditions:
* volume reaches the selected Surge multiple of the recent average volume;
* the candle’s volume-spread value reaches or exceeds the highest previous volume-spread value within the selected lookback.
The candle must not already qualify for Echo Valley Down or Ultra Down.
Echo Surge Down identifies elevated volume or volume-spread activity on a down candle.
It is not an automatic bearish entry signal and does not guarantee that price will continue falling.
### Echo Pulse Up — blue
An Echo Pulse Up candle is blue by default.
It occurs when:
* the candle closes above its open;
* volume reaches the selected Pulse multiple of the recent average;
* the candle does not qualify for Echo Peak Up, Ultra Up, or Echo Surge Up.
Echo Pulse Up represents moderately elevated volume on an up candle relative to the selected lookback.
It does not guarantee that upward movement will continue.
### Echo Pulse Down — fuchsia
An Echo Pulse Down candle is fuchsia by default.
It occurs when:
* the candle closes at or below its open;
* volume reaches the selected Pulse multiple of the recent average;
* the candle does not qualify for Echo Valley Down, Ultra Down, or Echo Surge Down.
Echo Pulse Down represents moderately elevated volume on a down candle relative to the selected lookback.
It does not guarantee that downward movement will continue.
### Normal Up — light grey
A Normal Up candle is light grey by default.
It closes above its open but does not meet any enabled elevated-volume classification.
A normal classification does not mean that the candle is unimportant. It means only that the selected relative-volume and volume-spread thresholds were not reached.
### Normal Down — dark grey
A Normal Down candle is dark grey by default.
It closes at or below its open but does not meet any enabled elevated-volume classification.
A normal classification does not mean that the candle is unimportant. It means only that the selected relative-volume and volume-spread thresholds were not reached.
### How to interpret the colours
The colour describes the candle’s direction and the relative-volume tier detected by the script.
For example:
* bright green identifies Echo Peak Up;
* bright red identifies Echo Valley Down;
* dark green identifies Ultra Up;
* dark red identifies Ultra Down;
* lime green identifies Echo Surge Up;
* light red identifies Echo Surge Down;
* blue identifies Echo Pulse Up;
* fuchsia identifies Echo Pulse Down;
* light grey identifies Normal Up;
* dark grey identifies Normal Down.
The colour should be interpreted together with price location and market structure.
An elevated-volume up candle near resistance may have a different context from the same classification during a breakout.
An elevated-volume down candle near support may have a different context from the same classification during an established decline.
The colour identifies the configured mathematical condition. It does not identify the intent of market participants and is not an instruction to buy or sell.
### How to use the indicator
Apply the indicator to a liquid symbol with usable volume data.
A practical workflow is:
1. Review the broader price trend and market structure.
2. Observe the normal volume behaviour of the selected symbol and timeframe.
3. Identify where elevated-volume colours appear relative to support, resistance, breakouts, failed breakouts, and extended price movement.
4. Compare the direction of each classified candle with subsequent price behaviour.
5. Note whether the event is isolated or part of a sequence of elevated-volume candles.
6. Review any bullish or bearish divergence marker while accounting for its pivot-confirmation delay.
7. Inspect yellow extreme-volume diamonds and whether price later crosses their recovery level.
8. Use the historical tables only as simplified chart-based measurements.
9. Test alerts on the intended symbol and timeframe.
10. Combine the indicator with independent price, volatility, liquidity, and risk analysis.
Do not treat an individual colour, triangle, diamond, ratio, or alert as an automatic trade instruction.
### Example use of an Echo Peak Up candle
When a bright-green Echo Peak Up candle appears, consider:
* whether price is already extended above its recent mean;
* whether the candle appears near established resistance;
* whether the candle closes strongly or leaves a large wick;
* whether subsequent candles continue higher or fail to maintain progress;
* whether similar high-volume activity appeared earlier;
* whether a bearish divergence is also present.
The condition identifies unusual volume, body size, and price extension. It does not prove a reversal.
### Example use of an Echo Valley Down candle
When a bright-red Echo Valley Down candle appears, consider:
* whether price is already extended below its recent mean;
* whether the candle appears near established support;
* whether the candle closes strongly or leaves a large wick;
* whether subsequent candles continue lower or recover;
* whether similar high-volume activity appeared earlier;
* whether a bullish divergence is also present.
The condition identifies unusual volume, body size, and price extension. It does not prove a reversal.
### Example use of Surge and Pulse candles
Echo Surge and Echo Pulse candles identify lower relative-volume tiers than Echo Peak, Echo Valley, and Ultra candles.
A sequence of lime-green or blue up candles during a breakout can show repeated elevated activity.
A sequence of light-red or fuchsia down candles during a decline can show repeated elevated activity.
The same colours near failed breakouts or important support and resistance may have a different context.
The classifications describe relative volume and direction, not future price outcomes.
### Main-chart candle colouring
When main-chart candle colouring is enabled, the script applies the classification colour to the corresponding candles on the price chart.
When disabled, the original price-chart colours remain unchanged while the classified volume columns continue to appear in the indicator pane.
### Background preset
The Dark Background and Light Background options adjust the table text colour for visibility.
The preset does not change the candle-classification colour palette.
Individual candle and line colours can be changed separately.
### Volume moving average
An optional simple moving average can be displayed over the volume columns.
The moving-average period is configurable.
The visible moving average provides an additional reference for current volume, but it is separate from some of the internal classification averages.
Changing the visible moving-average period does not automatically change the internal Peak, Valley, Ultra, Surge, or Pulse thresholds.
### Regular volume divergence
The divergence module compares confirmed pivots in price with confirmed pivots in volume.
It identifies two regular divergence conditions:
* bullish volume divergence;
* bearish volume divergence.
The conditions show structural disagreement between price pivots and volume pivots.
They do not guarantee that price will reverse.
### Bullish volume divergence — turquoise upward triangle
A turquoise upward triangle marks a confirmed bullish volume divergence.
The condition requires:
* price to form a lower confirmed low;
* volume to form a higher confirmed low.
This means price reached a lower pivot while the volume pivot did not form a corresponding lower low.
Users may examine the condition together with:
* nearby support;
* reduced downward progress;
* candle structure;
* broader trend;
* subsequent volume classifications.
Price can continue lower after bullish volume divergence is confirmed.
### Bearish volume divergence — coral-red downward triangle
A coral-red downward triangle marks a confirmed bearish volume divergence.
The condition requires:
* price to form a higher confirmed high;
* volume to form a lower confirmed high.
This means price reached a higher pivot while the volume pivot did not form a corresponding higher high.
Users may examine the condition together with:
* nearby resistance;
* reduced upward progress;
* candle structure;
* broader trend;
* subsequent volume classifications.
Price can continue higher after bearish volume divergence is confirmed.
### Divergence pivot strength
The Divergence Pivot Strength setting is applied to both the left and right sides of each pivot.
Higher values generally produce:
* fewer pivots;
* broader pivot structures;
* later confirmation;
* fewer divergence markers.
Lower values generally produce:
* more pivots;
* narrower structures;
* earlier confirmation;
* greater sensitivity to short-term noise.
There is no universal pivot value that is suitable for every symbol and timeframe.
### Divergence confirmation delay
A divergence is not known on the exact historical pivot bar.
The script must wait for the selected number of right-side bars before the pivot can be confirmed.
Once confirmed, the triangle is displayed on the earlier pivot bar.
For example, a pivot strength of 5 requires five later bars before confirmation.
The marker therefore appears earlier on the historical chart than the time at which the condition became available.
### Divergence lines in the indicator pane
Optional panel lines connect the previous and current volume pivots associated with the divergence structure.
Users can configure:
* bullish line colour;
* bearish line colour;
* line width;
* solid, dashed, or dotted style.
These lines help users inspect the change in volume pivots.
They do not project future movement.
### Divergence lines on the price chart
Optional price-chart lines provide a visual reference between price points associated with the volume-pivot locations.
Users can configure their colour, width, and style independently from the panel lines.
These lines are visual aids and should not be interpreted as projected support, resistance, or a forecast of future price movement.
### Extreme Volume Event — yellow diamond
A yellow diamond identifies an Extreme Volume Event.
The condition requires a combination of:
* an already elevated-volume classification;
* volume at least four times the rolling average of recent qualifying elevated-volume candles;
* the highest volume within the recent 50-bar period;
* a candle range above the recent average range.
The rolling event-volume average becomes available only after the script has collected 30 qualifying elevated-volume observations.
The diamond identifies an unusually large volume-and-range event under the selected rules.
It does not prove:
* manipulation;
* institutional activity;
* accumulation;
* distribution;
* liquidation;
* an imminent reversal.
### Extreme-event recovery level
When an Extreme Volume Event occurs, the script calculates a configurable level inside the candle’s body.
At the default 50% setting, the recovery level is the midpoint between the candle’s open and close.
It is not the midpoint of the full high-to-low candle range.
A recovery is counted when closing price crosses the body-based level within the selected recovery lookback.
A wick touching the level without a qualifying close-to-close crossing does not count as a recovery.
A recorded recovery does not guarantee continued movement beyond the level.
### Recovery lookback
The Recovery Lookback setting controls how many bars are allowed for price to cross the active recovery level.
If the level is not crossed within the selected number of bars, that event is no longer tracked as unresolved.
The script tracks only one unresolved recovery event at a time.
If a new yellow-diamond event appears before the earlier event is resolved, the active recovery level is replaced by the newer event.
### Historical divergence outcome table
The left table displays:
* Wins;
* Losses;
* Ratio.
When no earlier hypothetical outcome is active, a confirmed bullish or bearish divergence creates a new measurement.
The script records the confirmation-bar closing price and calculates:
* a fixed percentage target;
* a fixed percentage stop.
For a bullish divergence:
* the target is above the recorded close;
* the stop is below the recorded close.
For a bearish divergence:
* the target is below the recorded close;
* the stop is above the recorded close.
The script records which threshold is detected first.
Only one hypothetical divergence outcome is tracked at a time.
A new divergence is ignored while an earlier outcome remains unresolved.
### Same-bar target and stop behaviour
The target is checked before the stop.
If both the target and stop are reached during the same chart bar, the script records the case as a win.
The script does not reconstruct the lower-timeframe path within that candle, so it cannot determine which level was actually reached first.
This is a material limitation of the table.
### Meaning of the win ratio
The displayed ratio is the number of recorded wins divided by the total number of recorded wins and losses.
It is a simplified historical chart measurement.
It is not equivalent to TradingView Strategy Tester results and does not model:
* commissions;
* slippage;
* spread;
* realistic order execution;
* position sizing;
* portfolio equity;
* liquidity;
* overlapping trades;
* all intrabar sequencing possibilities.
The ratio depends on:
* the symbol;
* timeframe;
* available chart history;
* divergence pivot strength;
* target percentage;
* stop percentage.
The displayed results do not imply future performance.
### Extreme-event recovery table
The right table displays:
* Recovered;
* Ratio.
Recovered is the number of yellow-diamond events for which closing price crossed the configured body-recovery level within the selected lookback.
The ratio is the number of recovered events divided by the total number of detected yellow-diamond events.
This is a simplified event measurement.
It is not:
* a reversal probability;
* an accuracy score;
* a trading win rate;
* evidence that future events will behave similarly.
### Alerts
Alerts are available for:
* any elevated-volume candle;
* Echo Peak Up;
* Echo Valley Down;
* Ultra Up or Ultra Down;
* Echo Surge Up or Echo Surge Down;
* Echo Pulse Up or Echo Pulse Down;
* bullish volume divergence;
* bearish volume divergence.
The general elevated-volume alert activates when any non-normal classification is detected.
### Current-bar behaviour
Volume, high, low, and close can continue changing while the current chart candle remains open.
As a result, candle classifications may appear, change tier, change colour, or disappear before the candle closes.
Extreme Volume Event conditions may also change while the current candle remains open.
Pivot divergence requires right-side confirmation, but the confirmation bar itself may still be open when the condition first becomes true.
Users seeking stable alerts should generally configure TradingView alerts for bar-close execution.
### Suggested starting settings
A practical starting process is:
1. Begin with the default settings on a liquid symbol.
2. Observe how frequently each colour appears.
3. Review the relationship between elevated-volume candles and nearby price structure.
4. Keep the default volume multiples until several historical examples have been inspected.
5. Enable chart-candle colouring only if it improves readability.
6. Enable the volume moving average for additional context.
7. Review divergence triangles while accounting for their confirmation delay.
8. Treat yellow diamonds as extreme-volume markers rather than proof of manipulation.
9. Treat both tables as simplified research measurements.
10. Test alerts before relying on them.
### Adjusting the volume tiers
Increase a tier’s volume multiple to make that classification less frequent.
Decrease the multiple to make it more frequent.
Changing the Echo Peak and Echo Valley body, EMA, or deviation settings affects how strictly the script defines price extension and candle size.
More restrictive values generally produce fewer classifications.
Less restrictive values generally produce more classifications.
Settings should be reviewed separately for each market and timeframe.
### What this implementation adds
Compared with the referenced open-source starting framework, this implementation adds or replaces:
* script-level volume calculations;
* script-level volume-spread calculations;
* configurable multi-tier candle classifications;
* longer-term extreme-volume thresholds;
* candle-body filters;
* EMA-extension filters;
* standard-deviation extension measurements;
* independently configurable classification colours;
* dark- and light-background table presets;
* optional main-chart candle colouring;
* regular price-versus-volume divergence;
* configurable divergence markers and lines;
* optional price-chart divergence references;
* Extreme Volume Event diamonds;
* body-based recovery measurements;
* recovery statistics;
* simplified divergence target/stop outcomes;
* expanded alert conditions.
These modules are combined to study relative volume, price response, divergence, and subsequent recovery within one indicator.
### Limitations
* Reported volume differs between exchanges, brokers, markets, and symbols.
* Some markets provide tick volume rather than centralized transaction volume.
* Combined or overridden data feeds can produce different results from the active chart.
* The classification tiers depend on configurable averages, lookbacks, and thresholds.
* An elevated-volume candle does not reveal the identity or intent of market participants.
* Echo Peak Up does not confirm a market top.
* Echo Valley Down does not confirm a market bottom.
* Ultra, Surge, and Pulse classifications are relative-volume categories, not trade-quality grades.
* Candle classifications may change before the current candle closes.
* Pivot divergence is delayed by the selected right-side confirmation length.
* Confirmed divergence markers are displayed on earlier pivot bars.
* Price-chart divergence lines are visual references and not projections.
* Extreme volume does not prove manipulation.
* Extreme-event detection requires sufficient qualifying historical samples.
* The recovery calculation uses body-based levels and closing-price crossings.
* Only one unresolved recovery event is tracked at a time.
* The historical tables are simplified measurements and not full strategy backtests.
* Only one unresolved divergence outcome is tracked at a time.
* Same-bar target and stop sequencing is not reconstructed.
* The outcome tracker checks the target before the stop.
* The indicator does not account for commissions, slippage, spread, liquidity, position sizing, or realistic execution.
* The indicator should not be used as the sole basis for a trading decision.
This indicator is an analytical tool and does not provide financial advice or guaranteed trading outcomes.
インジケーター

ATK / DEF Directional Movement State EngineDescription
ATK / DEF Directional Movement State Engine is a market condition analysis framework built around the Directional Movement Index (DMI) system.
Unlike traditional DMI tools that mainly display +DI, -DI, and ADX values, this indicator focuses on interpre the effectiveness and current condition of directional movement through multiple analytical layers.
The engine combines directional strength, trend structure, volatility behavior, and price action characteristics to provide a structured view of market conditions.
The purpose of this framework is to evalu the qual of directional movement and understand the current state of market behavior.
Directional Movement Core
The foundation of this indicator is based on the DMI and ADX framework.
It analyzes:
+DI directional pressure
-DI directional pressure
ADX directional strength
The relationship between these components is used to class the current movement environment, including:
Strong directional conditions
Weak directional conditions
Balanced movement
Swinging conditions
Rather than focusing on a single numeri rea, the engine evalua how directional components interact with the broader market structure.
ATK / DEF Market State Concept
The ATK / DEF framework represents two different market behaviors.
ATK (Attack State)
Describes environments where directional movement demonstrates stronger activity and clearer momentum characteristics.
DEF (Defense State)
Describes environments where directional movement becomes weaker, balanced, or less defined.
The engine observes these states through directional strength, price structure, and movement behavior to describe the current market condition.
Directional Radar System
The Radar module analyzes current price behavior by combining candle structure and market movement characteristics.
It evaluates:
Candle body efficiency
Price range behavior
Directional pressure
Trend positioning
Short-term movement characterist
The radar provides a visual representation of the current behavioral condition, helping use understand whether the market is displaying expansion, decline, compression, or swing characteristics.
Trend Structure Analysis
The trend module evaluates market structure through multiple moving average relationships and price positioning.
It observes:
Short- trend direction
Medium-alignment
Long- structural condition
This provides additional context for understanding the relationship between directional movement and the overall price structure.
Velocity Measurement
The Velocity component measures current movement intensit through volatility conditions.
It evalua price movement range relative to recent market activity to describe different leve of movement speed.
This helps identify whether the current environment is experiencing:
Lower activity conditions
Normal movement conditions
Higher volatility conditions
Market Regime Observation
The Regime module evaluates changes in market activity using volatility structure.
It observes:
Expansion conditions
Contraction conditions
Range environments
This provides additional context around how the market is currently behaving.
ADX State Classification
The ADX state engine combines ADX strength with DI relationships to categorize directional conditions.
The classification includes:
Strong U
Strong D
Weak U
Weak D
Swing Condition
These states are designed to describe the current directional environment rather than forecast future market movement.
Integrated Dashboard
The built-in dashboard organizes multiple analytical components into a single view:
Engine status
Velocity level
Radar condition
Trend direction
Market regime
ADX state
Current price information
The dashboard provides a compact overview of market structure and directional behavior.
Design Philosophy
ATK / DEF Directional Movement State Engine is designed around the concept that market movement should be analyzed through multiple layers rather than a single indicator value.
By combining:
Directional movement analysis
ADX strength evaluation
Trend structure
Volatility behavior
Price action characteristics
the indicator provides a structured framework for observing market conditions and understanding directional movement effectiveness.
This tool is designed for analytical purposes, helping users stu market behavior, movement structure, and directional dynamics. インジケーター

GProf - Break & RetestGProf - Break & Retest
═══════════════════════════════════════════
OVERVIEW
This indicator detects one complete sequence: consolidation against a key level, a breakout WITH momentum, and the retest of the broken level. It watches the levels for you, stays silent through weak drifts and fakeouts, and speaks at the two moments that matter — when a level breaks with force, and when price comes back to test it.
The core idea is polarity: a level that held for hours gets violated with conviction, and the trade is the market returning to confirm the flip — old support rejecting as new resistance, or old resistance holding as new support.
───────────────────────────────────────────
TWO CONSOLIDATION PATTERNS, ONE CONFIRMATION GATE
PATTERN 1 — TIGHT COIL: a short compressed window pressing directly against the level, with zero closes beyond it. Price knocking on a door.
PATTERN 2 — RANGE-SIT: price spends an extended window entirely on one side of the level, the whole range within a capped height of it, then breaks the boundary. This captures the classic premarket-range breakout or breakdown, where the premarket high or low is the boundary of the consolidation itself.
Either pattern must then be CONFIRMED. A break with no force is fully silent — no label, no alert:
• MOMENTUM CANDLE — the breakout (or a continuation candle within a few bars) has a body of at least a set percentage of the daily ATR; OR
• QUALIFIED FVG — a Fair Value Gap of a set minimum size prints within the confirmation window.
Whichever arrives first arms the setup, and the alert tells you which one it was.
───────────────────────────────────────────
LEVELS AND THE ONE-BREAK DOCTRINE
Tracked levels: PMH/PML, YH/YL, PDC, WH/WL — computed internally, non-repainting, with session boundaries read in exchange time so they hold up through daylight-saving changes and holiday-shortened weeks.
LIFETIME VIRGINITY: a level may signal ONE break per lifetime. The first close beyond it consumes the level; wicks never spend it — sweeps that close back are probes, not violations. A spent level renews when its value changes or at the session roll. This kills re-break noise: a level violated at midday cannot fire again in the evening.
LIVE-LEVEL MATURITY: running levels (WH/WL always; PMH/PML while the premarket window is open) must rest untouched for a set number of bars before they can arm — every new weekly high is technically a "break of WH," and this suppresses that churn while keeping the first quality break.
WHEN "YESTERDAY" ROLLS: Roll Mode is Auto by default — futures roll at the 18:00 ET session open, equities at the next regular-session open — so evening and overnight sessions trade against the levels of the session that just completed.
The full doctrine in one sentence: a level may signal one break per lifetime, provided it has aged while live and is broken with momentum.
───────────────────────────────────────────
THE RETEST — TWO SPECIES
IMMEDIATE KISS-BACK: while the breakout leg is still building, a return to within tolerance of the broken level fires the retest — the fast test-and-reject, often within a bar or two of the break.
SWING 50% RETEST: if price runs instead, the swing confirms, the leg's 50% level is drawn, and the deeper retracement to the 50% or the level — whichever price reaches first — fires the retest.
A+ FLAG: when the leg's 50% coincides with the broken level itself, the retest is tagged A+ — two independent trade logics agreeing on one price.
───────────────────────────────────────────
SIGNALS AND ALERTS
On the chart: the consolidation box, a "B&R " label on the confirmed break, a dotted 50% line once the swing confirms, and a "RETEST " label (with A+ when earned). Breaks that armed but failed are marked with a small x; unconfirmed breaks leave no trace.
Two independent alert stages, each toggleable:
• CONFIRMED BREAKOUT — the level, the direction, and which confirmation fired.
• RETEST ENTERED — the level and price, with the A+ tag when the 50% sits on the level. Off by default; many traders use the breakout alert to get to the chart and watch the retest form.
Alert setup: ONE alert per chart, condition "Any alert() function call", expiration Open-ended. The toggles in settings control what fires. Note: TradingView alerts snapshot settings at creation — after changing settings, recreate the alert.
───────────────────────────────────────────
HOW TO USE IT
Traders who study break-and-retest setups typically treat the breakout alert as the heads-up and the retest as the decision point — watching for a confirmation candle at the retest before acting. The consolidation box shows you what broke; the tags tell you how it was confirmed.
This indicator identifies structure and sequence. It does not generate buy/sell recommendations, does not place trades, and does not replace your own analysis and risk management.
───────────────────────────────────────────
TECHNICAL NOTES
• Non-repainting: every state transition confirms on bar close; ATR uses completed daily bars; no lookahead anywhere.
• Intraday timeframes only. Built for index and commodity futures but works on any liquid symbol; thresholds are a percentage of daily ATR with tick floors, so they travel across instruments and volatility regimes.
• Coil and range windows, momentum and FVG thresholds, maturity, timeouts, retest tolerance, and session times are fully configurable.
───────────────────────────────────────────
DISCLAIMER
This script is for informational and educational purposes only. It does not constitute financial, investment, or trading advice. A broken level retesting is a pattern, not a guarantee of future price behavior. All trading decisions made using this tool are solely the responsibility of the user. インジケーター

GProf - Kangaroo TailGProf - Kangaroo Tail
═══════════════════════════════════════════
OVERVIEW
This indicator detects a single, specific reversal event: a liquidity-sweep candle at a meaningful level — the Kangaroo Tail. Price runs an extreme, sweeps through a level where liquidity rests, and is rejected hard within one candle, closing back on the other side.
It is deliberately quiet. Most sessions it prints nothing. It speaks only when a candle sweeps a genuine multi-hour extreme, shows textbook rejection anatomy, and does so at a nameable level. The Kangaroo Tail is not a candle pattern that happens to be near a level — it is a level rejection whose evidence is a candle.
───────────────────────────────────────────
THE CANDLE (KT Short shown — KT Long is the mirror)
1. THE SWEEP — the candle's high prints a new high versus a long lookback (default 78 bars, about 6.5 hours on the 5m). Room to the left, measured in time: the extreme must be genuinely fresh, which excludes signals from inside congestion — you cannot sweep a multi-hour high from within chop.
2. REJECTION ANATOMY — the entire body sits in the bottom third of the range (body position is the filter; color is reported, not required). The opposite wick is capped tightly, and the sweep wick itself must be significant: at least a set percentage of the daily ATR, with a tick floor, so the threshold scales across instruments.
3. CONTEXT — the body sits inside the previous candle's range (toggleable), and a large prior same-direction candle raises a caution tag on the signal rather than suppressing it: the thrust into a level is often strong, and that thrust-sweep-reject sequence is the pattern at its best.
───────────────────────────────────────────
THE LEVEL — REQUIRED, AND MEASURED CORRECTLY
No level, no signal. The confluence set:
• Session levels: PMH/PML, YH/YL, PDC, WH/WL — computed internally, non-repainting.
• Camarilla pivots: R3/R4 for shorts, S3/S4 for longs, from yesterday's RTH high/low/close, DRAWN on the chart (S3/S4 green, R3/R4 red, central pivot marked).
• Up to three custom levels — enter your own higher-timeframe lines and they become part of the confluence set.
Two details most level tools get wrong:
LEVEL-IN-WICK GEOMETRY: the level must lie within the sweep wick's span. A deep sweep THROUGH the level is the pattern at its strongest, not a disqualification. When the wick spans more than one level, the nearest to the wick tip is named.
LIVE-LEVEL MATURITY: a running level (WH/WL always; PMH/PML while the premarket window is open) must rest untouched for a set number of bars before it counts — a sweep candle's own extreme IS the newborn premarket high, and a level seconds old is not structure.
WHEN "YESTERDAY" ROLLS: Roll Mode is Auto by default — futures roll at the 18:00 ET session open, equities at the next regular-session open — so evening and overnight signals test the session that just completed and the Camarilla levels derived from it. Session boundaries are read in exchange time, correct year-round through daylight-saving changes.
───────────────────────────────────────────
SIGNALS AND ALERTS
A qualifying candle prints one label — "KT ▼" or "KT ▲" — carrying its context: the level swept, whether the wick landed inside an unfilled qualified Fair Value Gap, and a caution tag when the prior candle was large.
The alert message includes everything needed to assess without opening the chart: sweep depth in points, the level, FVG confluence, body color, and reference trade geometry — trigger one tick beyond the KT extreme, stop one tick beyond the wick, and the 1:1 target.
Alert setup: add the indicator, create ONE alert with condition "Any alert() function call", expiration Open-ended. Direction is controlled in settings. Note: TradingView alerts snapshot settings at creation — after changing settings, recreate the alert.
A near-miss diagnostics mode (off by default) is available for investigation: candles at a level that fail exactly one anatomy check print a small marker naming it.
───────────────────────────────────────────
HOW TO USE IT
The Kangaroo Tail marks a completed liquidity event at structure. Traders who study these typically look for entry on a break of the candle's extreme in the rejection direction, with the stop beyond the sweep wick — the geometry the alert pre-computes. Keep your own higher-timeframe levels current in the custom slots: the level set is the heart of the tool.
This indicator identifies a candle pattern at a level. It does not generate buy/sell recommendations, does not place trades, and does not replace your own analysis and risk management.
───────────────────────────────────────────
TECHNICAL NOTES
• Non-repainting: all detection confirms on bar close; ATR uses completed daily bars; levels are built from session windows with no lookahead.
• Intraday timeframes only. Built for index and commodity futures but works on any liquid symbol; size thresholds are a percentage of daily ATR with tick floors, so they travel across instruments.
• Sweep lookback, anatomy thresholds, proximity band, maturity, and session times are fully configurable.
───────────────────────────────────────────
DISCLAIMER
This script is for informational and educational purposes only. It does not constitute financial, investment, or trading advice. A rejection candle at a level is a pattern, not a guarantee of future price behavior. All trading decisions made using this tool are solely the responsibility of the user. インジケーター

GProf - Levels, RVOL, ATRGProf - Levels, RVOL, ATR
═══════════════════════════════════════════
OVERVIEW
This indicator answers the three questions an intraday trader asks before and during every session, in one tool:
1. LOCATION — Where is price relative to the structure that matters?
2. PARTICIPATION — Who showed up today, compared to a normal day?
3. RANGE — How much movement is statistically normal, and how much has already been spent?
It combines key session levels, time-of-day Relative Volume (RVOL), and a 14-day ATR with a live Range/ATR reading, shown as clean level lines plus a compact on-chart dashboard. Built with index and commodity futures in mind (NQ, ES, YM, RTY, GC, CL and their micros), it works on any intraday symbol with volume data, and adapts its session logic automatically between futures and equities.
───────────────────────────────────────────
LAYER 1: LOCATION — SESSION LEVELS
• YH / YL — Yesterday's High and Low, RTH-only or full session day.
• PDC — Previous Day Close.
• PMH / PML — Premarket High and Low (4:00am–9:30am ET, or the full overnight session to capture the entire Globex range on futures). Live during the premarket, then frozen at the open.
• WH / WL — The current week's running High and Low, updating in real time.
Each level is a labeled horizontal line with a matching price-scale marker. Colors, width, and labels are configurable, and each group toggles independently.
WHEN "YESTERDAY" ROLLS: by default, Roll Mode is Auto — futures roll yesterday's levels at the 18:00 ET session open (the exchange's own trading-day boundary, so evening and overnight sessions reference the day that just completed), while equities and other symbols roll at the next regular-session open. A manual override is available. Session-day and week boundaries are read in exchange time, so they are correct year-round through daylight-saving changes and hold up across holiday-shortened weeks.
───────────────────────────────────────────
LAYER 2: PARTICIPATION — RVOL
Raw volume comparisons mislead: the first 30 minutes of a session always dwarf lunch hour. This RVOL is time-of-day aware. It records the cumulative session-volume profile for each of the last N sessions, then compares today's cumulative volume to the average at the same elapsed minute of the session.
A reading of 100% means participation is exactly normal for this time of day; 150% means today is running half again above normal. The dashboard colors the reading against a configurable threshold. RVOL is a regular-session metric and reads N/A outside those hours.
───────────────────────────────────────────
LAYER 3: RANGE — ATR(14) AND RANGE/ATR
The dashboard shows the daily ATR (default 14 days), calculated from completed daily bars only — stable all day, never repainting intraday.
More useful than the raw number is Range/ATR: today's range so far as a percentage of the ATR. Under 70% (green), a statistically normal amount of range remains. Between 70–100% (orange), the day is approaching its average. Over 100% (red), the day has already exceeded a normal range, so late continuation attempts are fighting a mostly-spent tape.
Optional ATR Projection Bands (off by default) draw Today's Low + ATR and Today's High − ATR as live exhaustion estimates; when they invert, the day has exceeded its average range — visible at a glance.
───────────────────────────────────────────
HOW TO USE IT
Before the open: note where price sits relative to PMH/PML, YH/YL, and PDC. Confluence between these marks the zones most likely to produce reactions.
At the open: watch RVOL. An opening drive on 130%+ participation behaves very differently from one on 60%.
During the session: use Range/ATR as context for continuation versus exhaustion. A breakout attempt at 95% of ATR deserves more skepticism than the same pattern at 40%.
This indicator draws context only. It does not generate signals, place trades, or replace your own analysis and risk management.
───────────────────────────────────────────
TECHNICAL NOTES
• Non-repainting by design: no lookahead requests, no lower-timeframe data. Levels are built from chart-bar session windows; ATR uses completed daily bars; RVOL uses only accumulated history.
• Best on standard intraday timeframes (1m, 3m, 5m, 15m, 30m). Not intended for daily or higher charts.
• RVOL needs its lookback period of visible chart history to build a full profile; readings in the first sessions after loading are based on fewer samples.
• Session times, timezone, and roll behavior are fully configurable; defaults follow US equities/futures conventions.
───────────────────────────────────────────
DISCLAIMER
This script is for informational and educational purposes only. It does not constitute financial, investment, or trading advice. Past behavior of price, volume, or volatility does not guarantee future results. All trading decisions made using this tool are solely the responsibility of the user. インジケーター

GProf - FVG AlertsGProf - FVG Alerts
═══════════════════════════════════════════
OVERVIEW
This indicator detects standard 3-candle Fair Value Gaps (FVGs), draws every gap as a live zone, and fires an alert only when a gap is both large enough to matter and sits in an area with room to the left. It is built to surface displacement worth trading and stay silent on the rest.
Everything confirms on the close of the third candle — nothing is drawn or alerted intrabar, so a gap that appears mid-candle and vanishes before the close never produces a false alert.
───────────────────────────────────────────
DETECTION
• Bullish FVG — the current candle's low is above the high from two bars ago. The zone spans from that prior high (bottom) to the current low (top).
• Bearish FVG — the current candle's high is below the low from two bars ago. The zone spans from the current high (bottom) to that prior low (top).
───────────────────────────────────────────
THE ALERT FILTER — SIZE AND ROOM
Every FVG is drawn. An alert fires only when BOTH conditions are met:
1. SIZE — the gap is at least a set percentage of the daily ATR (default 2%), with a tick floor. Measuring against ATR rather than a fixed point value makes the threshold portable: it means the same thing on a fast index future and a slow one, and it adapts as volatility changes. A fixed-points mode is also available.
2. ROOM TO THE LEFT — the origin of the impulse that created the gap must be in clean territory: the anchor level (the extreme of the move) has few prior candle bodies overlapping it across a lookback window (defaults: 3 bodies over 20 bars). A gap that forms in the middle of prior congestion is drawn but does not alert.
Gaps are shown in three tiers so the chart teaches you over time:
• Full color — qualified on size AND room: these alert.
• Muted gray — big enough, but the anchor lacked room to the left: drawn, silent.
• Faint — below the size threshold: drawn, silent.
Watching which large gaps had room and which did not, and how price treats each, tells you where your own thresholds belong.
───────────────────────────────────────────
ZONE MANAGEMENT
• Zones extend right until fully filled: a bullish gap is removed when price trades down through the bottom of the zone, a bearish gap when price trades up through the top.
• Partial fills leave the zone at its original size — the original boundaries remain the reference, not the shrinking remainder.
• A configurable cap limits how many zones stay on the chart; oldest are removed first.
───────────────────────────────────────────
ALERTS — HOW TO SET UP
1. Add the indicator to your chart.
2. Open the Alert dialog and set the Condition to this indicator.
3. Select "Any alert() function call".
4. Set Expiration to Open-ended and choose your notification methods.
One alert covers everything. The Alert Direction input controls what fires: Both, Bullish Only, Bearish Only, or Off. Alert messages include the symbol, timeframe, direction, gap size in points and as a percentage of ATR, whether room-to-the-left is clean, and the exact zone boundaries.
Note: TradingView alerts snapshot the indicator's settings when created. If you change the size threshold or other settings later, edit and re-save (or recreate) the alert for the new values to take effect.
───────────────────────────────────────────
HOW TO USE IT
FVGs mark displacement — areas price moved through so fast that an imbalance was left behind. Many traders study them as zones of interest for retracement entries, targets, or invalidation. This indicator identifies and sizes the gaps, flags the significant ones that also have room to the left, and otherwise stays out of the way. Combine it with your own market structure analysis, session context, and risk management.
This indicator identifies a chart pattern. It does not generate buy/sell recommendations, does not place trades, and does not replace your own analysis and risk management.
───────────────────────────────────────────
TECHNICAL NOTES
• Non-repainting: detection, drawing, and alerts occur on confirmed bar closes only.
• Works on any symbol and timeframe. Size thresholds are a percentage of daily ATR with tick floors, so they travel across instruments and volatility regimes; a fixed-points mode is available.
• Colors, transparency, borders, size threshold, and the room-to-the-left lookback are fully configurable.
───────────────────────────────────────────
DISCLAIMER
This script is for informational and educational purposes only. It does not constitute financial, investment, or trading advice. Fair Value Gaps are a chart pattern, not a guarantee of future price behavior. All trading decisions made using this tool are solely the responsibility of the user. インジケーター

ATK/DEF HIGH LOW Fibonacci Battlefield ATK/DEF HIGH LOW Fibonacci Battlefield is a multi-factor market structure analysis framework designed to evalua the quality and behavior characte of swing highs and swing lows through the combination of Fibonacci positio, pric behavior, liquidity activity, and market pressure analysis.
Unlike traditional swing high and swing low identification tools that only mark histori tur poin based on pric locatn, this indicator focuses on stu the internal characts behind each detec high and low area.
The purpose of this framework is to provide additional structural context by evalua ho price interact with important swing locatio and how market activity changes around those areas.
The indicator combines three major analytical components into a unified battlefield evalua model:
1. Fibonacci Battlefield Structure
The Fibonacci Battlefield module evalua the position of pric within the current histori rang and analyzes the relationship between swing points and Fibonacci-based pric areas.
This component studies:
• Current pric location within the measured range
• Fibonacci retracement positionin Distance between pric and important Fibonacci lev
• Structural reaction areas around previous highs and lows
Instead of treati Fibonacci leve as isolated horizontal lines, this module uses Fibonacci positioning as a framework to analyze the relative location and condition of pric within a market structure.
The module provides a structural perspecti of whether historical swing areas are located near important Fibonacci zo and how these areas relae to current pric behavior.
2. Whirlpool Pressure Index
The Whirlpool Pressure Index evalua candle behavior and internal pric pressure by analyzing the relationship between bu pressure and se pressure.
This component examines:
• Candle rang distribution
• Closing position within the candle range
• Bu and se pressure balance
• Current pressure intensity around pric areas
The purpose of this calcula is to measure the behavioral characteristics of pric movement and understand the strength of interacti occurring near detec swing highs and swing lows.
It does not attempt to predfuture movement. Instead, it provides a quantimeasurement of current pric behavior based on historical candle information.
3. Liquidity Accelerator / Decelerator
The Liquidity Accelerator / Decelerator module evaluat changes in activity by analyzing volume behavior relative to its historic average.
This component focuses on:
• Relative volume activity
• Changes in market participation
• Liquidity expansion and contrac conditions
• Volume activity intensity around pric movement
The volume calcula is used as a market activity measurement and control reference, helping evalua whether a swing area is formed during stronger or weaker participation conditions.
This module represents volume activity analysis and is not a volume distribution profile or volume profile visualization.
High / Low Behavior Evaluation
The indicator identif swing highs and swing lows and attach multiple analytical measurements to each structural point.
Each detected high and low area can be evaluated through:
• Fibonacci structural position
• Price reaction characteristics
• Pressure condition
• Liquidity activity
• Market behavior context
This allows historical swing locatio to be stubeyond simple pric levels.
The framework focuses on the quality and characteristics of swing points rather than only identifyi where previous highs and lows occurred.
Integrated Battlefield Dashboard
The dashboard combines multiple analytical measurements into a compact information panel.
Displayed information includes:
• Fibonacci structural condition
• Pressure balance measurement
• Liquidity activity condition
• Flow balance characteristics
• Current market environment status
The dashboard is designed to provide a structured overview of market behavior and pric conditions from multiple perspectives.
Market Condition Analysis
The market condition module evaluat the current relationship between pric exten, momentum characteristics, and recent pric range behavior.
It analyzes:
• RSI positioning
• Recent pric extremes
• Momentum condition
• Pric and oscillator relationship
This component is designed to describe the current market environment and highlight changes in pric behavior characteristics.
It is a condition measurement tool based on historical market data rather than a prediction system.
Core Features
• Swing High and Swing Low structural analysis
• Fibonacci-based battlefield framework
• Pric behavior evaluati
• Candle pressure measurement
• Volume activity analysis
• Liquidity condition tracking
• Multi-factor market structure dashboard
• Historical swing point contextual analysis
• Quantitative evaluat of pric areas
• Integrat structural and behavioral analysis framework
Concept
ATK/DEF HIGH LOW Fibonacci Battlefield is designed to stu the relationship between pric structure, market participation, and behavioral characteristics.
Traditional swing tools mainy focus on identifying previous highs and lows. This framework expas the analysis by combining structural position, candle behavior, and volume activity to evalua the characteris behind each swing location.
All calculat are derived from historical market data and are intended for market research, technical analysis, and structural observation purposes.
The displayed values represent analytical measurements of pric behavior, liquidity conditions, and market structure characteristics. インジケーター

ATK/DEF High Low Flow Engine ATK/DEF High Low Flow Engine is a market structure analysis tool designed to evaluate the effectives of swing highs and swing lows through the combination of price structure, volume activity, and flow behavior.
Unlike traditional swing high and swing low tools that only display historical turning points, this indicator focuses on analyzing the internal behavior behind each structural high and low area.
The objective is not simply to locate previous price extremes, but to evaluate the quality and characteristics of those points by examining how volume participation and flow conditions developed during the formation of each swing structure.
The engine combines swing point analysis with (CMF) based volume flow evaluation to provide a deeper view of historical price behavior.
Core Analysis Components
1. Swing High / Swing Low Structure Analysis
The indicator processes historical swing points based on pivot structure calculati.
Each detec high and low represents a previous area where price created a local structural extreme.
Instead of treating all swing points equally, the indicator attaches additional behavioral information to each structural point by evaluati the market activity that occurred during its formation.
This allows users to stu the difference between simple pri extremes and pri extremes supported by stronger market participation.
2. CMF Flow Behavior Analysis
The Chaikin Flow (CMF) component evaluates the relationship between clo position, pric range, and volume activity.
By combining price location within the candle range with traded volume, CMF provides a measurement of flow characteristics around the selected period.
This module analyzes whether volume activity around structural highs and lows was associa with stronger inflow conditions, weaker flow conditions, neutral behavior, or declinin participation.
The purpose is to evaluate the internal volume behavior surrounding price structures rather than relying only on the visible price level.
3. Volume Activity Evaluation
The volume analysis component measures current volume participation relative to its historical average.
It provides context regarding whether market activity around price structures is relatively elevated, normal, or reduced.
This evaluation helps distinguish between swing points formed under different lev of market participation.
The volume component is used as a structural measurement factor and does not represent a volume distribution model or market profile visualization.
Structural Effectiveness Evaluation
Traditional swing high and swing low concepts mainly answer:
"Where did price previously create an extreme?"
This indicator expands that concept by analyzing:
"How did volume and money flow behave when that extreme was formed?"
By combining swing structure with CMF-based flow analysis, the indicator provides additional information about the characteristics behind historical highs and lows.
The displayed measurements represent analytical observations of price structure, volume conditions, and money flow behavior.
Dashboard Information
The integrated dashboard provides multiple analytical measurements including:
• CMF flow condition
• CMF moving average relationship
• Volume activity lev
• flow strength classification
• Price location relative to calculated flow reference
• Structural zone activity measurement
These vals are designed to provide a compact overvi of market behavior surrounding the current chart environment.
Key Features
• Swing high and swing low structural analysis
• Volume-based behavior evaluation
• CMF money flow measurement
• Historical high and low quality assessment
• Price structure combined with volume characteristics
• Liquidity activity observation
• Structural behavior dashboard
• Multi-factor market activity analysis
• Historical price extreme evaluation
• Quantitative observation of volume participation
ATK/DEF High Low Flow Engine is designed as a technical analysis and market structure research tool.
The calculat focus on stu the relationship between pric extremes, volume participation, and flow characteristics.
Rather than displaying simple historical highs and lows, this framework provides additional context regarding the behavioral conditions surrounding those structural points.
All displayed values are analytical measurements derived from historical market data and are intended for research and technical analysis purposes. インジケーター

Market Compass - Dynamic Range FrameworkHello English readers, the English version is provided below. Please scroll down to view it.
Market Compass - Dynamic Range Framework
市场指南针 · 动态区间框架
版本:1.0 | 类型:非预测性价格结构定位工具 | 作者:
绝大多数交易亏损,根源并非方向判断错误,而是 “位置感”的缺失 。本指标旨在为您解决这一核心痛点——它不告诉您涨跌,但它告诉您 “此时此刻,价格在地图上的精确坐标” 。
---
本指标并非传统的均线或动量振荡器,而是一个 基于固定回溯周期的价格百分位区间定位系统 。它以最近 N 根 K 线(默认 252 根,对应约 1 个交易年度)的最高价与最低价为天然边界,构建出一个覆盖 0% 至 100% 的 动态箱体网格 。
该网格并非平均分割,而是采用 非对称的黄金分割与极值锚定法 ,精确定制了 9 条关键水平轨道。这些轨道以彩色矩形色带和右侧实时浮动标签的形式,干净利落地叠加于主图 K 线之上:
100% 顶部极值轨 (红色):回溯周期内的绝对天花板。
89% 超买警戒轨 (橙色):情绪极度亢奋区,多头衰竭高发带。
75% 强势分界轨 (黄色):牛熊分水岭,站上此线意味中期趋势转强。
62.5% 强界枢轴轨 (紫色):多头趋势中的次级回踩支撑位。
50% 多空中轴轨 (白色):价值均衡线,长线资金的成本密集区。
37.5% 弱界枢轴轨 (青色):空头趋势中的次级反弹阻力位。
25% 弱势分界轨 (亮蓝):跌破此线意味中期趋势正式转入空头。
11% 超卖警戒轨 (浅绿):情绪极度恐慌区,空头衰竭高发带。
0% 底部极值轨 (深蓝):回溯周期内的绝对地板。
随着新 K 线的生成,整个框架会 滚动迭代 ,始终锚定最新的价格活动范围,确保参考坐标永不失效。
---
传统价格图表存在严重的 视角局限性 ,导致交易者频繁陷入误判:
“绝对值幻觉”与锚定效应 :股价 100 元是高是低?脱离近期波动区间谈绝对价格毫无意义。本指标将价格转化为 0~100 的相对百分位数 ,消除了价格基数的干扰,让您客观评判当前价格是“相对高位”还是“相对低位”。
“区间失忆症”与近因偏好 :人类大脑天然对最近 5~10 根 K 线赋予过高权重,极易遗忘前期关键的支撑与阻力结构。本指标通过固定窗口的滚动计算,强制将 过去 N 根 K 线的价格极值 醒目地绘制在当前图表上,纠正了这种认知偏差。
均值回归与极端磁吸理论 :金融市场价格长期遵循 “极端值向中轴(50% 均衡线)回归” 的统计规律。当价格进入 89% 以上或 11% 以下的极端尾部区域时,统计概率上必然面临向 50% 中轴的牵引力。本框架为这种“牵引力”提供了精确的量化刻度。
---
本指标是 趋势过滤、盈亏比评估与动态止盈止损 的绝佳辅助工具。请勿将其视为独立入场信号,而应作为 “价格行为决策的量化底座” 。
3.1 基于市场环境的三种经典战法
【趋势跟踪战法】—— 适用于强势单边行情
当价格经过充分调整后,以放量大阳线有效突破 75% 强势分界轨 时,视为中期趋势由震荡转强的关键确认点。若后续价格回踩 75% 轨并获得支撑(收出长下影线),则为绝佳的 顺大势、逆小势 加仓机会。此时可将止损设于 62.5% 强界枢轴轨下方。
【均值回归战法】—— 适用于宽幅震荡行情
当价格快速冲高至 89% 超买轨 上方,且 K 线出现明显滞涨形态(如射击之星、看跌吞没)时,可视为短线高空机会,第一目标位看向 75% 轨,第二目标位看向 50% 中轴。反之,价格急跌至 11% 超卖轨 下方并出现止跌反转形态时,可视为短线低吸机会。
【突破回踩确认战法】—— 适用于关键阻力支撑转换
任何一条百分比轨道都具备动态支撑/阻力的属性。当价格自下而上突破某一轨道(如 62.5% 轨)后,若随后缩量回踩该轨道且未跌破,则说明该轨道已由阻力转换为支撑,此处是风险收益比极高的 “0 级入场点” (止损极小,空间极大)。
3.2 动态止盈与止损设置指南
波段多头持仓 :可将 37.5% 弱界枢轴轨 设为最终的硬性离场线。只要价格在此轨之上,多头头寸便可安心持有,避免被早期震荡洗出。
短线空头持仓 :可将 62.5% 强界枢轴轨 设为硬性止损线。一旦价格强势反抽并站上此轨,则空头逻辑被证伪,需果断离场。
3.3 参数动态调整建议(针对不同交易周期)
日线级别(中长线 / 波段) :建议保持默认 252 (约 1 年交易日),用于捕捉年度大箱体的牛熊转换。
周线级别(大趋势 / 仓位布局) :建议调整为 52 (约 1 年周线),用于识别超大周期的价格百分位极值。
小时 / 分钟级别(日内短线 / 剥头皮) :建议调整为 50 ~ 100 ,过长的周期在分钟图上会导致框架钝化,失去短线参考意义。
---
4.1 最佳适用场景
流动性充裕的权益市场 :沪深 300、中证 500、标普 500 等主流指数及成分股。
高流动性大宗商品与外汇 :黄金、原油、欧元/美元等主要交易对。
高市值加密货币 :比特币(BTC)、以太坊(ETH)等。
4.2 禁用与慎用场景(风控红线)
严禁用于上市不足 N 根 K 线的新股/次新股 :尽管代码内置了自适应缩窄逻辑,但新股价格极不稳定,高低点极易被操纵,百分位框架参考价值极低。
慎用于连续无量涨跌停的极端行情 :在极强的单边轧空或流动性枯竭的踩踏中,价格可能长期粘合在 100% 轨之上或 0% 轨之下,此时指标出现 “钝化” 现象,需立即切换至趋势跟踪指标(如 SAR 抛物线或均线系统)进行二次印证。
慎用于高度控盘的“庄股”或低成交量仙股 :稀疏的成交导致价格跳跃性极大,计算出的区间极易失真。
---
本指标严格遵循 TradingView 最佳实践, 完全不包含未来函数 ,所有信号均基于确定性的历史数据实时滚动计算。
5.1 自适应周期核心算法
系统优先读取用户设定的 `lookbackLength`(默认 252)。然而,当图表加载的品种上市天数不足时,引擎会自动触发保护机制:
effectiveLookback = math.min(i_lookbackLength, bar_index + 1)
该行代码确保指标在上市首日即能工作,且随着新 K 线增加,窗口期自然增长,直至达到用户设定的标准周期。
5.2 九宫格线性映射(百分位分割数学)
首先确定箱体极值与范围:
periodLow = ta.lowest(low, effectiveLookback) // 底部 0%
periodHigh = ta.highest(high, effectiveLookback) // 顶部 100%
priceRange = periodHigh - periodLow
随后基于 斐波那契数列与统计学标准差启发式阈值 进行非均匀切割:
priceL89 = periodLow + priceRange * 0.89 // 极值警戒
priceL75 = periodLow + priceRange * 0.75 // 强市分界
priceL625 = periodLow + priceRange * 0.625 // 黄金分割枢轴
priceL50 = periodLow + priceRange * 0.50 // 均衡中轴
// ... 下方对称切割同理
注:62.5% 与 37.5% 的选取来源于对 0.618 黄金分割率的整数微调,旨在提供比传统 61.8% 更为清晰且易于记忆的刻度。
5.3 图形渲染引擎优化(内存与性能管理)
为了避免在大量历史 K 线上重复绘制矩形和线条导致图表卡顿,引擎采用 “惰性删除与单次实例化” 策略:
if barstate.islast
// 仅当加载完成且运行至图表最右侧时触发绘制
box.delete(boxMain) // 先销毁旧句柄
line.delete(lineL100) // 清理旧线
// ... 重新创建新对象
所有标签采用 label.style_label_left 右对齐样式,确保在图表最右侧整齐排列,绝不遮挡最新的 K 线实体,同时提供精确至交易所最小报价单位(`format.mintick`)的实时读数。
---
它不是占卜未来的水晶球,而是衡量当下的卡尺。
在充满不确定性的金融市场中, “位置感” 是纪律执行的基石。`Market Compass` 为您提供的不是圣杯,而是一张永远保持更新的 战场态势感知地图 。请将它融入您现有的交易系统中,作为过滤低质量交易机会的第一道关卡。
---
本指标及此说明文件仅供教育及技术分析参考之用,绝不构成任何形式的买入、卖出或持仓建议。金融衍生品及证券交易蕴含巨大风险,过往价格结构及百分位分布不构成对未来走势的绝对保证。您必须结合自身财务状况、风险承受能力及独立研判做出交易决策,盈亏自负。作者不承担任何因使用本指标而产生的直接或间接损失。
---
如果您认可这套价格定位逻辑,欢迎点赞、收藏并关注!
期待您在评论区分享将该框架融入实战交易后的心得体会。
Market Compass - Dynamic Range Framework
Version: 1.0 | Type: Non-Predictive Price Structure Positioning Tool | Author:
The vast majority of trading losses stem not from incorrect directional judgment, but from a lack of "positional awareness" . This indicator addresses this core pain point — it does not tell you whether price will go up or down, but it does tell you "the precise coordinates of price on the map, at this very moment" .
---
This indicator is not a traditional moving average or momentum oscillator. Instead, it is a price percentile range positioning system based on a fixed lookback period . It uses the highest high and lowest low over the most recent N bars (default 252, corresponding to approximately one trading year) as natural boundaries, constructing a dynamic box grid spanning from 0% to 100%.
The grid is not evenly divided. It employs an asymmetric golden ratio and extreme-value anchoring methodology to precisely define 9 key horizontal threshold levels. These levels are cleanly overlaid on the main price chart using colored rectangular bands and real-time right-aligned floating labels:
100% Peak Threshold (Red): The absolute ceiling within the lookback period.
89% Overbought Warning Zone (Orange): Extreme euphoria zone; high probability of bullish exhaustion.
75% Bullish Boundary (Yellow): The bull-bear dividing line; breaking above signals medium-term strength.
62.5% Bull Pivot Threshold (Purple): Secondary retracement support level within an uptrend.
50% Equilibrium Axis (White): The value equilibrium line; a dense area of long-term capital cost.
37.5% Bear Pivot Threshold (Cyan): Secondary retracement resistance level within a downtrend.
25% Bearish Boundary (Light Blue): Breaking below signals a confirmed medium-term bearish trend.
11% Oversold Warning Zone (Light Green): Extreme panic zone; high probability of bearish exhaustion.
0% Floor Threshold (Dark Blue): The absolute floor within the lookback period.
As new bars are generated, the entire framework rolls forward iteratively , always anchored to the most recent price activity range, ensuring the reference coordinates never become obsolete.
---
Traditional price charts suffer from severe perspective limitations , leading traders into frequent misjudgments:
"Absolute Value Illusion" and Anchoring Bias : Is a price of $100 high or low? Discussing absolute price without reference to the recent trading range is meaningless. This indicator converts price into a relative percentile from 0 to 100 , eliminating the distortion of price magnitude and allowing you to objectively assess whether the current price is "relatively high" or "relatively low."
"Range Amnesia" and Recency Bias : The human brain naturally assigns excessive weight to the most recent 5–10 bars, easily forgetting key prior support and resistance structures. Through rolling window calculations, this indicator forcibly and prominently plots the price extremes of the past N bars on the current chart, correcting this cognitive bias.
Mean Reversion and Extreme Magnetic Attraction Theory : Financial market prices have long exhibited a statistical tendency to "revert from extreme values toward the center (50% equilibrium line)" . When price enters the extreme tail regions above 89% or below 11%, statistical probability dictates an inevitable gravitational pull toward the 50% axis. This framework provides precise quantitative刻度 for this "magnetic force."
---
This indicator serves as an excellent auxiliary tool for trend filtering, risk-reward assessment, and dynamic stop-loss/take-profit placement . Do not treat it as an independent entry signal; instead, regard it as a "quantitative foundation for price-action decision-making."
3.1 Three Classic Strategies Based on Market Context
【Trend Following Strategy】— For Strong Directional Markets
When price, after sufficient consolidation, breaks decisively above the 75% Bullish Boundary with a high-volume bullish candle, this serves as a key confirmation that the medium-term trend is shifting from consolidation to strength. If price subsequently retests the 75% level and finds support (forming a long lower wick), it represents an excellent "go with the macro trend, counter the micro pullback" add-on opportunity. In such cases, place your stop-loss below the 62.5% Bull Pivot Threshold.
【Mean Reversion Strategy】— For Range-Bound Markets
When price spikes rapidly above the 89% Overbought Warning Zone and simultaneously exhibits clear exhaustion patterns (such as shooting stars or bearish engulfing), this can be viewed as a short-term selling opportunity. The first target is the 75% level, and the second target is the 50% Equilibrium Axis. Conversely, when price plummets below the 11% Oversold Warning Zone and shows reversal signals, a short-term buying opportunity emerges.
【Breakout-Pullback Confirmation Strategy】— For Key Support/Resistance Transitions
Every percentage threshold possesses dynamic support/resistance properties. When price breaks upward through a given level (e.g., the 62.5% level) and subsequently retests that level on diminishing volume without breaking back below, this confirms that the level has successfully transitioned from resistance to support. This represents a highly favorable "Grade-A Entry Point" (minimal stop-loss, substantial upside potential).
3.2 Dynamic Stop-Loss and Take-Profit Placement Guide
Swing Long Positions : Use the 37.5% Bear Pivot Threshold as your ultimate hard exit line. As long as price remains above this level, you can confidently hold your long position, avoiding premature exits caused by early-stage volatility.
Short-Term Short Positions : Use the 62.5% Bull Pivot Threshold as your hard stop-loss line. Should price stage a strong rally and close above this level, the bearish thesis is invalidated, and you must exit decisively.
3.3 Parameter Adjustment Recommendations (By Trading Timeframe)
Daily Chart (Swing / Medium-to-Long Term) : Keep the default 252 (approximately one trading year), ideal for capturing annual bull-bear transitions.
Weekly Chart (Macro Trend / Position Sizing) : Consider adjusting to 52 (approximately one year of weekly bars) for identifying extreme percentiles within broader cycles.
Hourly / Minute Charts (Intraday / Scalping) : Consider adjusting to 50–100 . Longer lookbacks on lower timeframes cause the framework to become overly rigid, diminishing its short-term relevance.
---
4.1 Optimal Use Cases
Highly Liquid Equity Markets : CSI 300, S&P 500, major index constituents, and liquid individual stocks.
High-Liquidity Commodities and FX : Gold, Crude Oil, EUR/USD, and other major pairs.
Large-Cap Cryptocurrencies : Bitcoin (BTC), Ethereum (ETH), and similar assets.
4.2 Scenarios to Avoid or Use with Caution (Risk Red Lines)
Strictly avoid newly listed stocks with fewer than N bars of history : Although the code includes a built-in adaptive shortening mechanism, new issues are extremely unstable, and their highs/lows are vulnerable to manipulation, rendering the percentile framework nearly worthless.
Use with caution during continuous limit-up/limit-down extreme conditions : In powerful short squeezes or liquidity-driven crashes, price may remain persistently glued above the 100% level or below the 0% level. In such cases, the indicator becomes "blunted" , and you must immediately switch to trend-following tools (such as SAR or moving average systems) for secondary confirmation.
Avoid low-float "pump-and-dump" penny stocks : Sparse trading volume leads to erratic price jumps, causing the computed range to become highly distorted.
---
This indicator strictly adheres to TradingView best practices and contains absolutely no future functions . All signals are computed in real time based on deterministic historical data.
5.1 Adaptive Lookback Core Algorithm
The system first reads the user-defined `lookbackLength` (default 252). However, when the loaded instrument has fewer total bars on the chart than the configured period, the engine automatically triggers a protective mechanism:
effectiveLookback = math.min(i_lookbackLength, bar_index + 1)
This single line ensures the indicator functions from the very first trading day, and the window gradually expands as new bars are added until it reaches the user's desired standard period.
5.2 Nine-Level Linear Mapping (Percentile Segmentation Mathematics)
The process begins by determining the box extremes and range:
periodLow = ta.lowest(low, effectiveLookback) // Floor at 0%
periodHigh = ta.highest(high, effectiveLookback) // Peak at 100%
priceRange = periodHigh - periodLow
The range is then divided using a heuristic blend of Fibonacci ratios and statistically inspired thresholds :
priceL89 = periodLow + priceRange * 0.89 // Extreme warning
priceL75 = periodLow + priceRange * 0.75 // Bullish boundary
priceL625 = periodLow + priceRange * 0.625 // Golden ratio pivot
priceL50 = periodLow + priceRange * 0.50 // Equilibrium axis
// ... Symmetrical lower-level calculations follow the same logic
Note: The selection of 62.5% and 37.5% is derived from a slight integer adjustment to the 0.618 golden ratio, intended to provide cleaner and more memorable reference刻度 than the traditional 61.8%.
5.3 Rendering Engine Optimization (Memory & Performance Management)
To prevent chart lag caused by repeatedly drawing rectangles and lines across numerous historical bars, the engine employs a "lazy deletion with single-instantiation" strategy:
if barstate.islast
// Only triggered when loaded and running at the rightmost edge of the chart
box.delete(boxMain) // Destroy old handles first
line.delete(lineL100) // Clean up old lines
// ... Then create new objects
All labels use the label.style_label_left right-aligned format, ensuring they line up neatly on the far right of the chart without ever obscuring the most recent price bars. Prices are displayed with precision down to the exchange's minimum tick size (`format.mintick`).
---
It is not a crystal ball for predicting the future; it is a caliper for measuring the present.
In the inherently uncertain financial markets, "positional awareness" is the cornerstone of disciplined execution. `Market Compass` does not offer you a holy grail; it offers you an ever-updating situational awareness map of the battlefield . Integrate it into your existing trading system and use it as the first filter to eliminate low-probability trade setups.
---
This indicator and its accompanying description are provided for educational and technical analysis purposes only. They do not constitute, and should not be construed as, any form of investment advice or recommendation to buy, sell, or hold any financial instrument. Trading securities and derivatives involves substantial risk of loss. Past price structures and percentile distributions do not guarantee future results. You are solely responsible for your own trading decisions, taking into account your financial situation, risk tolerance, and independent judgment. Neither the author nor the hosting platform accepts any liability for losses arising from the use of this indicator.
---
If you find this price-positioning logic valuable, please like, bookmark, and follow!
I look forward to hearing how you integrate this framework into your live trading. Feel free to share your experiences and feedback in the comments section below.
インジケーター

Smart Support & Resistance + Session POCSmart Support & Resistance + Session POC
Overview
Smart Support & Resistance + Session POC is a confirmation-based support and resistance indicator designed to identify meaningful price areas instead of plotting a level after every pivot or wick.
The indicator searches for repeated, separate price rejections on a user-selected detection timeframe. A level remains hidden after its first rejection and only becomes a visible zone after it receives the required number of valid rejections.
Each rejection can be filtered by:
Pivot structure
Approach direction
Minimum wick rejection
Minimum displacement away from the level
Time between separate visits
Distance from existing zones
The indicator can also compare confirmed zones with the Point of Control from previous completed volume-profile sessions. Zones with POC confluence are displayed more prominently, allowing traders to quickly identify areas where repeated price rejection and concentrated traded volume overlap.
This indicator is intended for intraday support and resistance analysis on futures, stocks, forex, and other symbols that provide the required volume and footprint data.
Main Features
Multi-Timeframe Zone Detection
Zones can be calculated from a timeframe independent of the chart timeframe.
For example, you can:
Calculate zones from the 1-hour timeframe.
View those same zones on a 15-minute chart.
Drop to the 5-minute or 1-minute chart for execution.
This keeps the important higher-timeframe structure visible while using a lower timeframe for trade entries.
The selected detection timeframe must be equal to or higher than the chart timeframe.
Confirmation-Based Zone Detection
The indicator does not display every pivot high or pivot low.
A level begins as a hidden candidate after its first valid rejection. It only becomes a visible support or resistance zone after receiving the selected minimum number of separate rejections.
The default requirement is:
Regular zone: 2 valid rejections
Strong zone: 3 or more valid rejections
The thresholds are fully adjustable.
Because pivot confirmation requires bars to form on the right side of the pivot, zones appear after confirmation rather than attempting to predict a turning point in advance.
What Counts as a Valid Rejection?
A rejection must pass the enabled quality filters before it can be counted.
Resistance Rejection
A potential resistance rejection is created when:
A confirmed pivot high forms.
Price approached the area from underneath, when the approach filter is enabled.
The pivot candle closes sufficiently below its high.
Price produces the required downward displacement after the rejection.
The rejection is sufficiently separated from the previous visit.
Support Rejection
A potential support rejection is created when:
A confirmed pivot low forms.
Price approached the area from above, when the approach filter is enabled.
The pivot candle closes sufficiently above its low.
Price produces the required upward displacement after the rejection.
The rejection is sufficiently separated from the previous visit.
These filters help prevent ordinary consolidation, repeated candles inside the same range, and weak pivots from being counted as meaningful support or resistance.
Separate-Visit Logic
Several candles reacting around the same level do not automatically count as several independent rejections.
A new rejection must be separated from the previous rejection by the selected number of detection-timeframe bars.
For example, with:
Detection timeframe: 60 minutes
Minimum bars between rejections: 3
The next rejection must occur at least three 1-hour bars after the previous rejection before it can increase the zone’s rejection count.
This prevents a cluster of candles from incorrectly creating an immediate strong zone.
Adjustable Tick-Based Zones
Zone thickness is defined in ticks using the symbol’s minimum tick size.
This allows the same indicator to adjust correctly across different instruments.
For MNQ:
1 tick = 0.25 points
4 ticks = 1 point
20 ticks = 5 points
40 ticks = 10 points
Support zones are constructed upward from the confirmed rejection low.
Resistance zones are constructed downward from the confirmed rejection high.
When a new valid rejection is merged into an existing zone, the zone may adjust to include the newer rejection extreme while maintaining the selected zone thickness.
Zone Merging
Nearby rejections of the same type can be grouped into one zone instead of creating several overlapping boxes.
The Zone merge tolerance setting controls how close two areas can be before they are treated as the same support or resistance zone.
A larger merge tolerance produces fewer, broader structural areas.
A smaller merge tolerance keeps nearby levels separate and creates more zones.
Zone Strength and Appearance
The indicator uses opacity to display zone quality without adding labels, centerlines, or unnecessary chart clutter.
Default appearance:
Regular zone: 50% opacity
Strong zone: 75% opacity
POC-confluence zone: 100% opacity
Support zones are green by default.
Resistance zones are red by default.
All colors, opacity levels, and border widths are customizable.
Visual Priority
POC confluence has the highest appearance priority.
Therefore:
A two-rejection zone without POC confluence appears as a regular zone.
A zone reaching the strong-rejection threshold appears as a strong zone.
Any confirmed zone overlapping a selected POC appears at the POC opacity level.
The chart remains clean because no labels or centerlines are required to identify zone quality.
Completed Session POC Confluence
The indicator can analyze Point of Control levels from previously completed volume profiles.
The Point of Control represents the highest-volume price row within the selected completed profile.
A confirmed zone receives POC confluence when its price range overlaps a POC row within the selected profile lookback.
POC confluence can be calculated from:
Exchange-defined regular sessions
Extended or full sessions
The profile timeframe is also adjustable.
For intraday trading, a common configuration is:
Profile timeframe: 1D
Profile session: Exchange regular
POC lookback: 5 completed profiles
This compares active support and resistance zones with POCs from the previous five completed daily profiles.
Completed Profiles Only
The indicator uses completed profiles rather than a developing current-session POC.
A developing POC can move throughout the session as additional volume trades. Using completed profiles provides a stable reference that does not continue shifting during the current session.
POC Lookback
The POC lookback controls how many completed profiles remain available for confluence.
For example:
A lookback of 1 checks only the most recently completed profile.
A lookback of 5 checks the previous five completed profiles.
A lookback of 10 checks the previous ten completed profiles.
When an old profile leaves the selected lookback, the indicator recalculates confluence. A zone may therefore lose its POC appearance when the POC supporting it is no longer inside the active lookback.
POC functionality requires footprint data to be available for the TradingView account and selected symbol.
Zone Invalidation
A zone is considered invalid when price closes completely beyond its outside boundary plus the selected break buffer.
Support Invalidation
A support zone is deleted when the selected confirmation candle closes below:
Support zone bottom − break buffer
Resistance Invalidation
A resistance zone is deleted when the selected confirmation candle closes above:
Resistance zone top + break buffer
A wick through the zone does not automatically invalidate it. Price must close beyond the zone and its buffer.
Once broken:
The zone is permanently removed from the chart.
It is not faded.
It is not retained as a historical zone.
It does not automatically convert into a support/resistance flip.
A new zone can form near the same price only after new valid rejections occur.
Break Confirmation Timeframe
There are two break-confirmation choices.
Detection Timeframe
This is the recommended setting.
A zone calculated from the 1-hour timeframe is invalidated only by a confirmed 1-hour close beyond the zone and buffer.
This prevents a small lower-timeframe close from deleting a higher-timeframe zone prematurely.
Chart Timeframe
The zone is invalidated by a confirmed close on the current chart timeframe.
This is more responsive but also more sensitive.
For example, a 1-minute close could invalidate a zone calculated from the 1-hour timeframe.
Zone Freshness
The Zone freshness lookback determines how long a level can remain active without receiving another valid rejection.
Freshness is measured from the zone’s most recent valid rejection.
For example, with a 10-day freshness setting:
A zone whose most recent valid rejection occurred within the last 10 days remains active.
A zone that has not received a valid rejection for more than 10 days is deleted.
A new valid rejection refreshes the zone’s age.
The freshness setting is measured in calendar-day periods.
Zone Length
Two zone-extension modes are available.
Until Broken
The zone continuously extends to the right until:
Price invalidates it.
It becomes stale.
It is removed because of the maximum tracked-level limit.
This is the recommended setting for active support and resistance trading.
Fixed Detection Bars
The zone extends for a selected number of detection-timeframe bars after confirmation.
For example:
Detection timeframe: 60 minutes
Fixed length: 100 bars
The zone remains active for approximately 100 confirmed 1-hour bars unless it is invalidated or becomes stale first.
How to Use the Indicator
Step 1: Choose the Detection Timeframe
Select the timeframe from which support and resistance should be calculated.
Common examples:
Scalping on a 1-minute chart: use 15-minute, 30-minute, or 1-hour zones.
Trading on a 5-minute chart: use 30-minute or 1-hour zones.
Trading on a 15-minute chart: use 1-hour or 4-hour zones.
The detection timeframe cannot be lower than the chart timeframe.
A good starting point for MNQ intraday trading is:
Chart timeframe: 1–5 minutes
Detection timeframe: 60 minutes
Step 2: Set the Minimum Rejections
Start with:
Minimum rejections: 2
Strong-zone rejections: 3
With these settings:
The first rejection creates a hidden candidate.
The second valid rejection confirms and displays the zone.
The third valid rejection upgrades it to a strong zone.
Increasing the required rejections creates fewer but more selective zones.
Step 3: Set the Zone Thickness
Choose a zone thickness that matches the instrument’s normal movement.
Suggested MNQ starting value:
Zone thickness: 20 ticks, or 5 points
A smaller zone is more precise but may be invalidated or missed more easily.
A larger zone captures a broader area but may create less precise entries.
Zone thickness should generally be adjusted according to the instrument’s volatility and the selected detection timeframe.
Step 4: Configure the Rejection Filters
Recommended starting settings:
Require correct approach direction: On
Minimum rejection wick: 4 ticks
Require displacement: On
Displacement mode: Ticks
Minimum displacement: 20 ticks
Displacement window: 3 bars
These settings require price to produce a meaningful reaction after contacting the area.
For instruments or timeframes with changing volatility, ATR displacement can be used instead of a fixed tick amount.
Step 5: Configure the Volume Profile
Recommended intraday starting configuration:
Use completed-profile POC confluence: On
Profile timeframe: 1D
Profile session: Exchange regular
POC lookback: 5
Footprint row size: 4 ticks
POC overlap tolerance: 0–4 ticks
The profile timeframe must be higher than the chart timeframe.
Use Exchange regular when regular-session institutional volume is the main focus.
Use Extended/full when overnight and extended-session volume should be included.
Step 6: Read the Zones
Regular Zone
A regular zone has reached the minimum rejection requirement but has not reached the strong threshold and does not overlap a selected POC.
It is a valid area, but it has the lowest visual priority.
Strong Zone
A strong zone has received at least the selected number of valid rejections.
Repeated rejection suggests that the area has continued to influence price.
POC Zone
A POC zone is a confirmed support or resistance zone that overlaps a POC from the selected completed-profile lookback.
This combines:
Repeated price rejection
Structural support or resistance
High historical traded volume
POC confluence increases visual importance, but it does not guarantee that the zone will hold.
Suggested Trading Workflow
The indicator identifies reaction areas. It does not automatically provide buy or sell entries.
Long Setup
Establish a bullish directional bias.
Wait for price to return to a support zone.
Give greater attention to strong or POC-confluence support.
Look for lower-timeframe confirmation, such as:
A liquidity sweep and close back above the zone
A bullish rejection candle
A higher low
A bullish market-structure shift
Positive volume or delta confirmation
Consider invalidation below the zone and an appropriate buffer.
Use the next resistance zone or another planned level as a potential target.
Short Setup
Establish a bearish directional bias.
Wait for price to return to a resistance zone.
Give greater attention to strong or POC-confluence resistance.
Look for lower-timeframe confirmation, such as:
A liquidity sweep and close back below the zone
A bearish rejection candle
A lower high
A bearish market-structure shift
Negative volume or delta confirmation
Consider invalidation above the zone and an appropriate buffer.
Use the next support zone or another planned level as a potential target.
Zones should be treated as areas where a reaction may occur, not as automatic entry signals.
Settings Guide
1. Zone Detection
Zone Detection Timeframe
Controls the timeframe used to detect pivots and rejections.
It must be equal to or higher than the current chart timeframe.
Pivot Bars Left
Controls how many bars must appear to the left of a pivot.
Higher values produce fewer and more significant pivots.
Pivot Bars Right
Controls how many bars must form after a pivot before it is confirmed.
Higher values provide more selective confirmation but cause zones to appear later.
Minimum Rejections
The number of separate valid rejections required before a zone becomes visible.
Strong-Zone Rejections
The number of valid rejections required to upgrade a confirmed zone to strong status.
The script will never allow the effective strong threshold to be lower than the minimum confirmation threshold.
Minimum Bars Between Rejections
Controls how many detection-timeframe bars must separate two counted rejections.
Minimum Rejection Wick
Defines how far the pivot candle must close away from its high or low.
For resistance, the pivot candle must close below its high by this amount.
For support, the pivot candle must close above its low by this amount.
Set it to zero to disable this filter.
Require Correct Approach Direction
When enabled:
Resistance should be approached from below.
Support should be approached from above.
This helps prevent sideways price action from repeatedly creating levels inside congestion.
Require Displacement After Rejection
Requires price to move a minimum distance away from the rejection before it is accepted.
Displacement Mode
Choose between:
Fixed ticks
ATR-based displacement
Minimum Displacement
The fixed tick distance required when using Ticks mode.
Displacement Window
The number of bars immediately following the pivot that are examined for displacement.
The effective window cannot exceed the number of pivot-right bars because the rejection must remain fully confirmed.
ATR Length and Multiplier
Control the volatility-adjusted displacement requirement when ATR mode is selected.
2. Zone Construction and Life
Zone Thickness
Controls the vertical size of every support and resistance zone in ticks.
Zone Merge Tolerance
Controls how close two same-direction rejection areas can be before they are grouped together.
Zone Freshness Lookback
Deletes levels whose most recent valid rejection is older than the selected number of days.
Zone Length
Choose between continuous extension until invalidation or a fixed number of detection bars.
Fixed Length
Controls how many detection-timeframe bars a fixed-length zone remains active.
Break Confirmation Candle
Selects whether invalidation is confirmed by the detection timeframe or current chart timeframe.
Break Buffer
Adds extra space beyond the outside boundary before a zone is deleted.
For MNQ:
4 ticks = 1 point
8 ticks = 2 points
Maximum Tracked Levels
Limits the total number of zone records stored by the indicator.
This includes both:
Hidden one-rejection candidates
Visible confirmed zones
When the limit is exceeded, the oldest level based on its most recent rejection is removed.
3. Session Volume Profile Confluence
Use Completed-Profile POC Confluence
Turns POC analysis on or off.
Profile Timeframe
Controls the duration of each completed volume profile.
Use 1D for completed daily profiles.
Profile Session
Choose between exchange regular hours or extended/full-session data.
POC Lookback
Controls how many completed POC rows are retained for confluence testing.
Footprint Row Size
Controls the price height of each footprint row in ticks.
Smaller values provide greater price resolution but may create noisier profile results.
Larger values group more prices into each row.
Value Area Percent
Controls the value-area percentage used when constructing the footprint profile.
The current indicator uses the profile’s POC for zone confluence and does not separately draw VAH or VAL.
POC Overlap Tolerance
Adds a tick allowance around each POC row when checking whether it overlaps a zone.
4. Appearance
The following can be customized independently:
Support color
Resistance color
Regular-zone opacity
Strong-zone opacity
POC-zone opacity
Border width
Zones are drawn behind the candles to keep price action readable.
Recommended MNQ Starting Settings
Setting Starting Value
Detection timeframe 60 minutes
Pivot bars left 3
Pivot bars right 3
Minimum rejections 2
Strong-zone rejections 3
Minimum bars between rejections 3
Minimum rejection wick 4 ticks
Correct approach direction On
Displacement filter On
Displacement mode Ticks
Minimum displacement 20 ticks
Displacement window 3 bars
Zone thickness 20 ticks
Merge tolerance 8 ticks
Freshness 10 days
Zone length Until broken
Break confirmation Detection timeframe
Break buffer 4 ticks
Profile timeframe 1D
Profile session Exchange regular
POC lookback 5 profiles
Footprint row size 4 ticks
POC tolerance 0–4 ticks
Regular opacity 50%
Strong opacity 75%
POC opacity 100%
These are starting values, not universal settings. Different instruments and timeframes may require different zone sizes, displacement requirements, and profile-row sizes.
Available Alerts
The indicator includes alert conditions for:
New support zone
New resistance zone
Zone upgraded to strong
Zone gained POC confluence
Support zone broken
Resistance zone broken
To create an alert:
Add the indicator to the chart.
Select Create Alert.
Choose this indicator under the alert condition.
Select the desired event.
Use Once Per Bar Close when close confirmation is required.
Important Notes
This is an indicator, not an automated strategy.
It does not place trades or calculate position size.
A zone is not displayed until the required rejections are fully confirmed.
Higher pivot-right values create slower but more selective confirmation.
Existing zone boundaries can adjust when a new valid rejection is merged into the same area.
POC appearance can change as completed profiles enter or leave the selected lookback.
Footprint and POC results depend on the data available for the symbol.
Support and resistance zones represent areas of interest, not guaranteed reversal points.
Always combine zones with risk management, market context, and entry confirmation.
Smart Support & Resistance + Session POC is designed to reduce chart clutter while highlighting repeatedly defended price areas and the zones that also contain meaningful historical volume concentration. インジケーター

ICT MulitTimeFrame FVG Tracker Retest Liquidity LevelsOVERVIEW
This indicator provides a structured multi-timeframe view of Fair Value Gaps, wick-based retracements, liquidity levels, and market sessions.
It is designed for traders who identify Fair Value Gaps on a higher timeframe while executing or monitoring price action on a lower timeframe. For example, a 15-minute FVG can be displayed and tracked directly on a 5-minute or 1-minute chart.
CORE FEATURES
Multi-Timeframe Fair Value Gaps
Select the source timeframe used to detect Fair Value Gaps. Each zone displays its source timeframe, such as M15, H1, or H4, so its origin remains clear on lower-timeframe charts.
Only confirmed source-timeframe FVGs are activated. A developing higher-timeframe gap cannot trigger a historical retest signal before its source candle has closed.
Wick-Based Retracement Tracking
The indicator tracks wick penetration into each active FVG and displays the deepest retracement as a percentage.
0% means the confirmed FVG has not been retraced.
The percentage increases as price moves deeper into the gap.
Both candle bodies and wicks are included.
The remaining unfilled portion is updated visually.
Safety Zone
An adjustable safety zone extends beyond the original FVG boundary. This provides additional tolerance for marginal overshoots, which can be especially useful when monitoring higher-timeframe gaps.
If price crosses the outer safety boundary, the zone is marked as invalidated.
Retest Markers
The first valid retest occurring after FVG confirmation produces a BUY or SELL marker:
Bullish FVG retest: BUY
Bearish FVG retest: SELL
The marker also identifies the source timeframe, for example:
SELL · M15 FVG
These markers identify the first confirmed touch of a zone. They are not independent trade recommendations and do not apply additional market-structure or momentum confirmation.
Liquidity Map
The indicator displays several types of potential liquidity levels:
BSL: confirmed buy-side liquidity
SSL: confirmed sell-side liquidity
PDH: previous day high
PDL: previous day low
Asia session high and low
London session high and low
New York session high and low
BSL and SSL levels are derived from confirmed pivots on the selected FVG timeframe.
Liquidity levels extend until their first sweep. Once swept, they stop extending and change to the selected swept-level color.
Market Sessions
Asia, London, and New York sessions can be highlighted with independent chart overlays.
Default colors are:
Asia: blue
London: brown
New York: red
Every overlay includes independent visibility, color, and transparency controls.
TIMEZONE MANAGEMENT
Select your location through the “Your timezone” setting.
Session calculations use their native geographic timezones:
Asia/Tokyo
Europe/London
America/New_York
The local session clock converts these schedules into the selected user timezone. IANA timezone identifiers are used so daylight-saving changes in London and New York are handled automatically.
HOW TO USE
Select the timeframe used to detect FVGs.
Use the indicator on the same timeframe or a lower chart timeframe.
Select your local timezone.
Adjust the safety-zone percentage.
Configure the FVG, signal, liquidity, session, and overlay colors.
Use the displayed liquidity levels and session extremes as discretionary areas of interest.
IMPORTANT NOTES
This is an indicator, not an automated strategy.
It does not calculate automatic take-profit or stop-loss orders. It provides FVG context, retracement information, retest markers, and visible liquidity references so traders can perform their own target selection and risk management.
A displayed BUY or SELL marker confirms a first post-confirmation FVG touch only. It should not be interpreted as financial advice or as a guarantee of future price movement. インジケーター

Previous Day Levels & Stats - High and Low, Wicks, Gaps👀OVERVIEW
Previous Day Levels & Stats (PDH/PDL) draws yesterday's open, high, low and close on today's chart and pairs them with a statistics table showing how this symbol has historically behaved at those levels and split both by whether yesterday closed red or green, and by where today opened.
Most previous-day indicators tell you where yesterday's high and low sit. This one also tells you what price has historically done at those levels including:
⚪ How often the previous day level broke
⚪ How often a break held
⚪ How often price traded into yesterday's wick zone and got rejected
⚪ How far a real break typically ran which is then calculated in today's dollars and added to the chart as an option.
Stats tables like this exist already, but this one splits every statistic two ways at once. First by whether yesterday closed red or green, and then by where today opened. A three-way open classification decides which numbers apply to today.
⚡ CONCEPT
Previous Day. The previous day is the most recently completed regular trading session. At the 4:00 pm close, the levels, candle, projection, and table all flip to the day that just finished and these new levels hold through post-market and the next morning's pre-market. This allows you to prepare for the next day ahead of time.
Conditioning on yesterday's color. The data for red days and green days are kept in two separate sets. The table header tells you which condition applies right now ("AFTER A RED DAY" / "AFTER A GREEN DAY"), and you only ever see the set that matters today.
Conditioning on today's open. Each day is classified three ways against yesterday's range: ⚪Opened inside the range
⚪Gapped above the previous day's high
⚪Gapped below the previous day's low
These are all different situations, a PDH break on an inside day and a gap that opened above PDH are not the same event, so they get separate data and are shown in separate rows.
When trading opens on each new day, the table reduces to only show the section that applies for today. The full table returns at the close so you can study both possibilities while preparing for the next day. If you prefer to always see both sections, a setting turns this off and the non-applicable section dims instead.
Inside-day rows. For days that opened inside yesterday's range.
🔴A: Wick rejected: The day opened inside yesterday's range and traded up into yesterday's upper wick, reaching at least the top of yesterday's body. It never touched yesterday's high, and it ultimately closed back below the top of the body (below the wick). If the day so much as touched yesterday's high, it counts in the break rows instead of in wick rejected row. The percentage is out of all days that opened inside yesterday's range after the same color day. This is showing when we open inside the previous day how often price traded both up into the wick and then got rejected. The PDL column is the mirror image using the lower wick and yesterday's low.
🔵B: Broke but failed: The day opened inside yesterday's range and traded up to or above yesterday's high then ultimately closed at or under yesterday's high. This includes closes just under the high, inside the wick, inside the body and through to the other side of the previous day. This is showing when we open inside the previous day how often price traded both up above the previous day and then got rejected. The PDL column is the mirror image using yesterday's low.
🟡C: Broke & held: The day opened inside yesterday's range and traded up to and above yesterday's high then ended up closing the day above it. This does not track anything that happens in between the break and the close, simply the final outcome. The PDL column is the mirror image using the low of yesterday.
🟢D: Typical run past level: On inside opening days where a break beyond PDH or PDL held, the indicator measures how far price historically ran beyond the level. A run measured in dollars from years ago is not comparable to one from last week. So each historical run is first measured against what a normal daily range was at that time, the median value of all those runs is taken, and that value is converted back to dollars using what a normal daily range is now. The result reads like this: when a break like this held, price typically ran about this far past the level. The median average is used instead of mean average so a single giant day cannot distort the number. In addition to the median distance of the run, a second, farther distance is also available: about 1 in 4 of those runs went beyond this level. This does not include days that closed back inside, these are all from days that broke and held. This also is the furthest distance of the day, not how far the final close of the day was.
Each row is a separate outcome from the same set of days. A day lands in at most one of the three rows per column. The rows do not add up to 100 because some inside days never reach some of the levels at all. The only row that is connected is the Typical run past level row which is based on days that broke and closed past the high or low.
Gap-day rows. For days that opened either above PDH or below PDL.
🔴A: Gap Fill: Opened beyond either PDH or PDL and price came back to at least touch the respective PDH or PDL during the day. This is specifically for the high or low of the previous day, not the previous days close. A day can fill the gap to the level and still close back beyond it, so this row overlaps the rows below it.
🔵B: Wick rejected: Opened beyond either PDH or PDL, traded back into only the wick of the previous day (did not trade back into the body of the candle) and then closed back beyond respective high or low. This is showing when we opened above or below previous day, how often we both traded into the respective high or low wick and back out beyond it. If price at any time during the day traded into the body of the previous candle, it no longer counts in this row.
🟡C: Body rejected: Opened beyond either PDH or PDL, traded back into the body of the previous day candle and then closed the day all the way back beyond respective high or low.
🟢D: Closed back inside: Opened beyond either PDH or PDL and by the end of the day closed back inside the previous day range (wick or body).
🟠E: Closed through: Opened beyond PDH or PDL and ultimately closed the day on the opposite side of the previous day candle than where it opened.
🟣F: Gap held: Opened above PDH and closed the day still above PDH, or opened below PDL and closed the day still below PDL, regardless of what happened in between. This row includes days that never pulled back and days that pulled back and recovered. So price could have never even touched the previous days candle, traded clear through to the other side and back again or anything in between, but closed the day on the same side as the open gap.
Wick rejected and Body rejected are subsets of Gap held. Gap held, Closed back inside, Closed through partition all gap days and sum to 100%.
⭐Doji days. If yesterday closed exactly where it opened, it has no color, so no condition applies. The indicator carries the most recent non-doji color forward for the table, and the header reads "AFTER A DOJI DAY*" on a neutral background so you know a substitution happened. Days that follow a doji are not counted into either condition's statistics, they're displayed under the carried color, never counted under it. So the previous day open, high, low and close are based on the actual previous day (the doji), but the stats are filtered through the most recent colored day before it. There are not enough doji days to have a realistic amount of data to work from. So the levels are used but the data is from the color of the bar before the doji day.
💥FEATURES
• The statistics table: conditioned as described above, with preset color themes (including one designed for light charts). Cell color intensity shows decisiveness, not direction. The further a percentage sits from a coin flip (50/50) in either direction, the stronger the cell glows. Sample sizes appear in hover tooltips on every row.
• Previous-day OHLC lines: with span, style, width, and label options.
• Previous-day candle: a large rendering of yesterday's candle beside today's action, with different placement options.
• Projection overlay: yesterday's candle projected across today's session, so you watch today on top of yesterday's shape.
• Typical-run levels: optional lines shown on the chart from inside days only.
❓HOW TO USE
1. Open an intraday chart of a stock before the market opens. The levels and/or projection already show the most recently completed day and the table shows the data based on what color the previous day was for both if today opens inside previous day and if today opens with a gap in either direction.
2. At 9:30 AM ET, the table will classify the day and the section matching today's open highlights. That shows context, what this symbol has historically done from this starting situation in the past.
3. Use the OHLC lines and wick zones as the map, and the table as the stats at each level. Hover any row for its exact definition and sample size.
4. On inside-open days, turn on the typical-run levels if you want the median-run distances drawn on the chart.
The table describes what this symbol has done, not what it will do. Treat every number as context, not a prediction.
❗ LIMITATIONS
• Session logic is built around US stocks (9:30–4:00 ET regular session). The indicator loads on other symbols, but the open classification, the flip at the close, and the projection presets assume US stock sessions; on 24-hour markets without distinct pre/post sessions the close-flip does not engage.
• Statistics are historical frequencies on your symbol's data. They are not predictions, carry no performance implication, and small samples (newer tickers, rare conditions) mean wider uncertainty so check the sample sizes in the tooltips.
• Days following a doji are excluded from both condition samples (see Concepts), so condition totals will be slightly smaller than the symbol's full day count.
• Absence of typical-run lines on a gap open is intentional, the typical run lines are based on a break out of the prior day. In an attempt to keep the indicator simple and user friendly, the lines are only applied for break outs of the range.
• During post-market, the projection covers the just-completed session behind price; the pre-market view is the designed preparation window.
• Different data feeds disagree by cents on some historical days, so counts can differ slightly between feeds.
• This indicator is for educational purposes and is not intended to be used alone for decision making. Make sure that you properly backtest with any data before using it.
📋NOTES
All statistics are computed from the symbol's complete daily history, so the numbers are the same on every chart timeframe and don't depend on how many bars your chart happens to have loaded. Everything is computed on confirmed bars only and states move forward-only so nothing is retroactively relabeled, and what you see live is what remains on the chart in history and in replay.
インジケーター
