[SkuldX] SFP Swing Failure PatternSkuldX Swing Failure Pattern — Institutional Liquidity Sweep Detector
by SkuldX Trading Systems
What is it?
SkuldX Swing Failure Pattern automatically detects one of the most powerful reversal setups in Smart Money and ICT trading. The Swing Failure Pattern occurs when price sweeps beyond a key swing level — triggering stop-loss orders clustered there — but then closes back within the previous range. This signals that institutional participants have absorbed the available liquidity and are now positioning in the opposite direction.
Unlike random false breakouts, the SFP has a precise structure: a meaningful wick beyond a swing high or low, a close that returns inside the range, and a visible rejection zone where the liquidity grab occurred. SkuldX SFP identifies all three automatically and displays them directly on the chart.
The mechanics
Every swing high and swing low acts as a magnet for stop-loss orders. Retail traders who are long place their stops just below swing lows. Retail traders who are short place their stops just above swing highs. Institutional participants know exactly where this liquidity sits.
An SFP forms when price is deliberately pushed beyond one of these levels to trigger those orders — collecting the liquidity — and then immediately reverses. The result is a candle with a long wick beyond the level and a close that returns inside the prior range. This is not a random failure. It is a deliberate liquidity grab followed by institutional repositioning in the opposite direction.
Two pattern types
🔴 Bearish SFP — price sweeps above a previous swing high with a wick but closes below it. The failed attempt to break higher signals that sellers have absorbed the bullish liquidity and are now in control. Expect a move downward.
🟢 Bullish SFP — price sweeps below a previous swing low with a wick but closes above it. The failed breakdown signals that buyers have absorbed the bearish liquidity and are now driving price higher.
What you see on the chart
Each detected SFP displays three visual elements simultaneously:
Label — appears above or below the candle with the signal direction and the exact price of the swept level. Instantly identifies the pattern without manual analysis.
Dashed line — marks the swing level that was breached. Extends from the beginning of the lookback window to the right, showing which structural level triggered the sweep. This level often acts as support or resistance in subsequent price action.
Rejection zone (box) — shaded area between the wick extreme and the swept level. This is the liquidity grab zone — the price range where stop orders were triggered and institutional positions were built. The size of this zone reflects how aggressively price was pushed beyond the level before reversing.
Quality filters
Two independent filters prevent low-quality signals from appearing on the chart.
Min Wick Size % of candle — requires the rejection wick to be at least a specified percentage of the total candle range. A small wick relative to the candle body suggests weak rejection. Default 0.5%. Increase to 2–3% on noisy instruments to require a more decisive rejection.
Min Breach Size % of level — requires the wick to extend at least a specified percentage beyond the swing level. A sweep that barely ticks beyond the level carries less significance than one that pushes meaningfully through it. Default 0.05%. Increase to 0.1–0.2% for stricter confirmation.
Both filters can be set to zero to show all detected patterns without filtering.
Settings reference
Swing Lookback (bars) — defines how many bars back to search for the swing high or low that gets swept. Default 10. Lower values find more local patterns, higher values require more significant swing levels. On 15m charts, 10 bars covers approximately 2.5 hours of price history.
Min Wick Size % of candle — minimum upper or lower wick as a percentage of the total candle range
Min Breach Size % of level — minimum distance the wick must extend beyond the swing level
Show Bullish / Bearish SFP — independent toggles for each direction
Show Labels — toggles the signal label above or below the candle
Show Level Line — toggles the dashed line at the swept swing level
Show Rejection Zone — toggles the shaded box between the wick and the level
Zone Extend — how many bars to the right the zone and line extend
Label Size — tiny, small, or normal
Bullish / Bearish Color — independent color control for each direction
Zone Transparency — opacity of the rejection zone fill
Line Width — thickness of the swept level line
Data Window
Hovering over any bar shows binary flags for Bullish SFP and Bearish SFP detection, the current swing high and swing low values used as reference levels, the upper and lower wick percentages, and the breach percentage of the swept level. These values are useful for calibrating the quality filters to your specific instrument and timeframe.
How to use it in practice
Entry timing — the SFP signal fires on the bar where the rejection occurs. The most aggressive entry is at the close of that candle. A more conservative approach is to wait for the next candle to confirm continuation in the reversal direction before entering.
Stop placement — place the stop-loss beyond the wick extreme, outside the rejection zone. The wick tip represents the furthest point of institutional manipulation — price returning beyond it invalidates the pattern.
Take-profit targets — common targets are the opposite swing extreme, a session High or Low from the current day, or the next significant structural level. The swept swing level itself often acts as resistance or support on the retest.
Timeframe selection — SFP signals are most reliable on 15m and above. On very low timeframes the pattern appears frequently but with lower conviction. On 1h and 4h the signals are rarer but carry significantly more institutional weight.
Confluence — the highest-probability SFP setups occur when the swept level coincides with a session boundary. A bearish SFP that sweeps the Asian High during London session is a classic institutional liquidity grab setup. A bullish SFP at Asian Low during the NY Overlap is one of the strongest intraday reversal signals available.
Volume context — a sweep accompanied by above-average volume confirms institutional participation. A low-volume sweep may indicate a thin market move rather than a deliberate liquidity grab.
Common mistakes to avoid
Entering immediately on the wick without waiting for the candle to close. The pattern is only valid after the close confirms the rejection — a candle that is still forming may yet close beyond the level as a genuine breakout.
Trading every SFP signal regardless of context. The pattern is significantly more reliable when it sweeps a level that has been respected multiple times previously, when it occurs during a high-liquidity session window, and when it aligns with the broader directional bias.
Using too small a lookback. A swing high from 3 bars ago carries far less liquidity than one from 10–15 bars ago. Increase the lookback if signals feel too frequent or structurally insignificant.
Built for SkuldX ecosystem
SkuldX Swing Failure Pattern is designed to work alongside the full SkuldX indicator suite. The most reliable SFP setups emerge when multiple layers of context align simultaneously:
A bullish SFP at the Asian Low after the Asian session closes — detected by SkuldX Trading Sessions — suggests institutional accumulation before London or NY drives price higher
A bearish SFP at the Asian High during London session with ADR Used % above 80% — from SkuldX ADR Levels — indicates both a liquidity sweep and statistical range exhaustion at the same level
An SFP confirmed by a Bullish Trend or Bearish Trend reading in SkuldX OI Delta adds institutional conviction — new positions opening in the reversal direction confirm the sweep was not random
An SFP that forms at a level already flagged by SkuldX Level Patterns as a multi-touch support or resistance zone carries significantly more weight than one at a fresh untested level
Each indicator in the suite adds an independent dimension of confirmation. Using them together reduces noise and improves the quality of setups without adding complexity to the decision process.
Indicator

EMA/SMA Classics V1.0 by SRTEMA/SMA Classics V1.0 by SRT
The EMA/SMA Classics indicator was designed to answer one simple question:
"Which side of the market currently has the structural advantage?"
Instead of flooding the chart with buy and sell arrows, this indicator focuses on market structure, trend alignment, and high-quality price action, allowing traders to make their own execution decisions with greater confidence.
Whether you trade Forex, Indices, Commodities or Crypto, this indicator combines multiple market concepts into a clean workflow while remaining highly configurable through both EMA and SMA combinations.
What This Indicator Includes
• Flexible EMA / SMA Engine
Unlike traditional moving average indicators that are locked to one MA type, every moving average in this indicator can independently be configured as either:
EMA
SMA
Default settings:
MA 1 : 7
MA 2 : 40
MA 3 : 150
MA 4 : 200
You may use the default configuration or customise the periods to fit your own trading methodology.
• Dynamic Moving Average Stack Detection
The indicator continuously evaluates whether the visible moving averages are properly stacked.
Bullish Stack
Fast MA > Medium MA > Slow MA
Bearish Stack
Fast MA < Medium MA < Slow MA
When the moving averages lose their proper order, the market is treated as neutral instead of forcing a directional bias.
This helps reduce many false trend signals that occur during consolidations.
• ATR-Based MA Spacing Filter
One common problem with MA strategies is entering when all moving averages have already compressed together.
This indicator measures the spacing between moving averages using ATR.
When the moving averages become too compressed, trend quality deteriorates.
The spacing filter helps identify these lower-quality environments before momentum fully develops.
• Ladder Structure
One of the core concepts inside this indicator is the Ladder System.
Instead of only observing moving averages, the indicator also evaluates the market using multiple dynamic support and resistance structures.
Resistance
R9
R40
R70
R100
R150
Support
S9
S40
S70
S100
S150
These levels automatically update with market structure and are used to generate an additional Ladder Bias.
When both the moving averages and Ladder Bias agree, market structure is generally stronger than relying on moving averages alone.
• Flush Dot System
The indicator displays visual Flush Dots beneath or above candles whenever trend alignment exists.
Small Green Dot
Bullish MA alignment.
Small Red Dot
Bearish MA alignment.
Large Green Dot
Moving Average alignment + Bullish Ladder confirmation.
Large Red Dot
Moving Average alignment + Bearish Ladder confirmation.
The larger dots represent stronger structural agreement across multiple components.
• KeyBar Detection
The indicator automatically identifies two important price action patterns.
Engulfing Bars
Bullish Engulfing (EBull)
Bearish Engulfing (EBear)
These are filtered using ATR and minimum body size to avoid insignificant candles.
Long Tail Bars (LTB)
Bullish Long Tail Bars
Bearish Long Tail Bars
These identify strong rejection candles with defined tail proportions and body positioning.
An optional body-size filter is also available for traders wanting stricter candle selection.
Daily Pivot (DP)
Automatically plots the previous day's pivot.
Useful as:
Dynamic support
Dynamic resistance
Intraday reaction level
Weekly Pivot (WP)
Automatically plots the previous week's pivot.
Many swing traders use weekly pivots as major reaction zones throughout the trading week.
RSI Momentum Alerts
The indicator includes two independent RSI event types.
RSI Breakout
Signals when RSI breaks into extreme momentum territory.
Bullish breakout
Bearish breakout
RSI Retracement
Designed to identify momentum continuation after RSI exits an extreme condition while confirming with the RSI Moving Average.
These alerts can be useful for traders looking to participate after momentum has begun to recover instead of chasing extremes.
Information Panel
A compact table summarises the current market condition.
Displays:
Moving Average Bias
Ladder Bias
Long Tail Bar presence
This provides a quick snapshot without needing to inspect every component individually.
How To Use This Indicator
This indicator is not designed to generate automatic Buy or Sell signals.
Instead, it acts as a Market Context Indicator.
A typical workflow may look like this:
Step 1
Observe whether the moving averages are properly stacked.
A clean stack generally indicates directional order.
Step 2
Check whether the Ladder Bias agrees with the moving averages.
When both align, the market structure is generally stronger.
Step 3
Watch for KeyBars.
Examples include:
Bullish Engulfing
Bearish Engulfing
Bullish Long Tail Bar
Bearish Long Tail Bar
These often represent meaningful reactions within the prevailing structure.
Step 4
Use Daily Pivot and Weekly Pivot as areas where price may react.
These levels should be considered areas of interest rather than guaranteed reversal zones.
Step 5
Monitor RSI alerts for momentum shifts.
Momentum signals are generally more useful when they occur in the same direction as the prevailing market structure.
Suitable Timeframes
Although the indicator can be applied to multiple chart intervals, it generally performs best on:
M15
M30
H1
H4
Daily
The moving averages, Ladder System, and KeyBar detection adapt naturally across different timeframes.
Difference Between EMA/SMA Classics & H1 EMA/SMA + Higher Timeframe Analysis (Classic)
Although both indicators belong to the same ecosystem, they serve different purposes.
EMA/SMA Classics
Designed as a general-purpose structural trend indicator.
Features include:
Flexible EMA/SMA stacking
Ladder System
Flush Dots
Engulfing Bars
Long Tail Bars
Daily Pivot
Weekly Pivot
RSI Alerts
It can be used on virtually any timeframe and is ideal for traders who prefer to analyse the chart directly.
H1 EMA/SMA + Higher Timeframe Analysis (Classic)
The H1 version is a significantly more advanced market context engine.
In addition to everything above, it introduces:
Dedicated H1 Bias Engine
H4 Trend Analysis
Daily Trend Analysis
Higher Timeframe Bias Aggregation
H1TF Composite Bias
Overall Market Verdict Engine
Multi-layer Bias Table
Higher Timeframe Confirmation Workflow
Rather than focusing solely on the current chart, the H1 version continuously evaluates whether multiple timeframes are aligned before presenting an overall market verdict.
If the EMA/SMA Classics indicator answers:
"What is my current chart doing?"
Then the H1 version answers:
"What is the broader market structure telling me across multiple timeframes?"
The two indicators are complementary and can be used together depending on your preferred trading workflow.
Disclaimer
This indicator is designed to assist with market structure analysis and decision-making. It does not provide financial advice or guarantee profitable trades. Always combine indicator signals with sound risk management, personal analysis, and appropriate position sizing. Indicator

H1 EMA/SMA + Higher Timeframe Analysis (Classic) V1.0 by SRT# H1 EMA/SMA + Higher Timeframe Analysis (Classic) V1.0 by SRT
## Overview
H1 EMA/SMA + Higher Timeframe Analysis (Classic) V1.0 by SRT is a complete market context indicator designed to help traders read trend, structure and execution quality from a single chart.
Instead of relying on one indicator alone, this script combines multiple layers of market information into one unified framework:
• H1 Moving Average Bias Engine
• Higher Timeframe (H4 & Daily) Trend Confirmation
• Ladder Market Structure Analysis
• Dynamic Daily & Weekly Pivot Levels
• VWAP Bias Filter
• Engulfing & Long Tail Bar (LTB) Detection
• RSI Breakout & Retracement Alerts
• Composite Bias Dashboard
• Smart Alert System
The objective is simple:
Reduce subjectivity by helping traders identify when multiple independent factors agree before looking for trade opportunities.
This indicator is designed for traders who prefer trading with trend and market structure rather than relying on a single crossover or oscillator.
---
## Main Features
### ① H1 Bias Engine
The H1 Bias Engine evaluates the alignment of up to four configurable EMA/SMA lines.
Unlike traditional MA crossover indicators, this engine considers:
• Moving average order
• Price position relative to the moving averages
• MA spacing quality
• Trend strength
Bias is classified into:
• Strong Bullish
• Bullish
• Neutral
• Bearish
• Strong Bearish
An ATR-based spacing filter automatically ignores signals when moving averages become compressed, helping reduce false trend readings during consolidation.
---
### ② Higher Timeframe Bias
The script automatically evaluates both:
• H4 Trend
• Daily Trend
using a dedicated EMA40 / EMA150 / SMA200 structure.
These two higher timeframes are combined into a Higher Timeframe (HTF) Bias.
This allows traders to quickly determine whether H1 signals are aligned with the broader market direction.
---
### ③ Ladder Market Structure
The Ladder System measures how support and resistance levels evolve over multiple lookback windows.
Support Levels
S9
S40
S70
S100
S150
Resistance Levels
R9
R40
R70
R100
R150
The relative positioning of these levels produces a Ladder Bias ranging from:
Strong Bullish
Bullish
Neutral
Bearish
Strong Bearish
This provides an additional market structure confirmation independent of moving averages.
---
### ④ Composite H1TF Bias
One of the core components of the indicator.
H1TF combines:
• H1 Moving Average Bias
• Ladder Bias
to generate a stronger consensus trend.
Rather than reacting to a single condition, H1TF requires agreement between trend and structure before producing stronger directional confidence.
---
### ⑤ Final Verdict Engine
The Final Verdict combines:
Higher Timeframe Bias
*
H1TF Composite Bias
Only when both higher timeframe trend and H1 composite trend strongly agree will the dashboard produce:
Strong Bullish
or
Strong Bearish
This helps traders focus on higher probability market conditions instead of reacting to every market fluctuation.
---
### ⑥ Key Bar Detection
The indicator automatically detects two important price action patterns.
Bullish / Bearish Engulfing Bars
Long Tail Bars (LTB)
Each signal includes:
ATR size validation
Minimum body filters
Tail quality checks
Momentum confirmation
These are designed to highlight significant candles instead of every basic engulfing or pin bar.
---
### ⑦ Daily & Weekly Pivot Levels
Built-in pivot calculations include:
Daily Pivot (DP)
Weekly Pivot (WP)
These levels provide additional context for potential support, resistance and reaction zones.
---
### ⑧ VWAP Bias
The indicator includes a built-in VWAP filter.
Price above VWAP
Bullish
Price below VWAP
Bearish
This offers another layer of institutional-style market context that complements the moving average analysis.
---
### ⑨ RSI Momentum Alerts
Four RSI-based alerts are included.
Bullish RSI Breakout
Bearish RSI Breakout
Bullish RSI Retracement
Bearish RSI Retracement
These alerts are designed to identify momentum expansion as well as potential continuation opportunities after retracements.
---
### ⑩ Smart Alert System
The alert engine supports multiple event types.
H1 Bias changes
Higher Timeframe Bias changes
H1TF Composite changes
Ladder Bias changes
Bullish Engulfing
Bearish Engulfing
Bullish Long Tail Bar
Bearish Long Tail Bar
Optional filters allow alerts to trigger only when aligned with:
H1TF
Higher Timeframe
Strong Bias only
This helps reduce unnecessary alert noise.
---
## Reading the Bias Dashboard
The dashboard summarizes the complete market picture.
Daily
Daily Trend
H4
H4 Trend
HTF
Combined Higher Timeframe Trend
H1
Current H1 Moving Average Bias
Ladder
Market Structure Bias
H1TF
Combined H1 Trend
VWAP
Current VWAP Position
Verdict
Final Consensus
The strongest trading environments generally occur when multiple components point in the same direction.
---
## Typical Workflow
A simple workflow may look like this:
1. Check the Final Verdict.
2. Confirm H1TF agrees with the Higher Timeframe.
3. Observe whether VWAP supports the direction.
4. Wait for a qualifying Engulfing Bar or Long Tail Bar.
5. Use Daily Pivot, Weekly Pivot and Ladder levels for trade management.
This approach encourages waiting for confluence rather than entering solely because one indicator changes direction.
---
## Notes
This indicator is intended as a market context and decision-support tool.
It does not predict future prices and should not be considered a standalone trading system.
Like any technical tool, it performs best when combined with sound risk management, proper trade planning and disciplined execution.
---
Thank you for using H1 EMA/SMA + Higher Timeframe Analysis (Classic) V1.0 by SRT
I hope this indicator helps simplify chart analysis and encourages traders to focus on market structure, trend alignment and disciplined decision making.
— SRT
Indicator

Fibonacci Retracement [AFD]Fibonacci levels that find their own two points, and keep finding them.
THE PROBLEM WITH DRAWING THEM BY HAND
A retracement is two clicks and a judgement call. The judgement is the hard part - which high, which low, and whether the leg you just measured is one move or two glued together. Then the session rolls over and the answer changes, so you do it again.
This draws the grid from the chart's own data instead. You tell it which range matters and it finds the two points itself, every bar, forever. Come back after the open and it has already re-anchored to the new day.
PICKING THE RANGE
Four choices, and they are all self-maintaining.
Current Day is the default and it is the one most intraday traders want - today's high and low, re-anchoring at each session open. Previous Day is yesterday's, and it draws from yesterday's start rather than today's, so the geometry sits over the data it came from. Current Week is the same idea one period up.
Latest Swing is the interesting one. It takes the last confirmed swing high and low, and it insists they alternate.
That insistence matters more than it sounds. ta.pivothigh() and ta.pivotlow() are independent detectors, and a real chart prints two, three, four highs in a row with no qualifying low between them. Take the most recent of each and you get a "leg" whose high end is simply the latest high, not the highest one in the span - so the grid measures a move that never happened as a single push, and 0.618 lands somewhere with no relationship to anything. Here, a pivot on the same side as the last one replaces it only if it is more extreme, and a pivot on the opposite side starts the next leg. On clean impulses this changes nothing at all. On ragged ones it pulls the anchor back to the extreme the leg actually reached.
Swing Strength sets how many bars have to print either side of a pivot before it counts. Higher means fewer and more significant swings, and a longer wait.
WHICH WAY THE LEG RUNS
Fib Direction is Auto, Long or Short, and it is the one control that stays live no matter what else you switch off - because it governs both grids, not just the near one.
Auto works out the direction from the range you actually chose. It looks at the two extremes that range uses and puts 0.00 at whichever one printed later, on the reasoning that the more recent extreme is the one the move ended on. So on Current Day, a day that made its low at 10:15 and its high at 15:50 gets 0.00 at the high and a grid you read downwards. Force it with Long or Short when you disagree.
THE MINUS SIGN, AND WHY THE EXTENSIONS HAVE ONE
Everything on this chart is numbered from the leg end. 0.00 sits at the recent extreme that finished the move, 1.00 at the point it started from. That way the number you read is retracement depth, and it means the same thing whichever direction the leg ran.
The extensions continue that same line past 0.00, which is why they are negative. -0.618 sits 0.618 of the leg's range beyond the 0.00 line, in the direction the leg was travelling - exactly the way 0.618 sits 0.618 of the range on the other side of it. One ruler, and the sign tells you which side of the origin you are on.
If that looks unfamiliar, put PulseWire's own Fib Retracement tool on the same two points. Its tags read the same: -0.618, not 1.618. The 1.618 reading belongs to the Trend-Based Fib Extension tool, which measures from the leg origin instead - a perfectly good convention, but putting both on one chart gives you two rulers running opposite directions from the same 1.00 line, and sooner or later you read the wrong one.
Six ratios are on offer - -0.272, -0.414, -0.618, -1.00, -1.618, -3.236 - and they ship switched off. They are levels, not targets. They are arithmetic on the leg. This script says nothing about whether price gets to one, marks no entry or exit, and has no alerts of any kind.
THE SECOND GRID
Switch on Show HTF Context and a second grid draws behind the first, anchored to the latest confirmed swing on a higher timeframe and dimmed so it stays context rather than competing for your attention. It ships off, so a fresh add gives you one clean grid.
HTF Mode is where this differs from most higher-timeframe overlays. Adaptive , the default, does not hold a fixed interval - it takes the next one up from whatever chart you are on. A 5-minute chart anchors to the 15-minute swing, a 1-hour chart to the 4-hour. Change timeframe and it follows you, and because it always resolves to something strictly higher, it cannot silently resolve to nothing.
Custom lets you name the timeframe instead, which is what you want when a specific one matters - the 4-hour swing while you scalp the 5, say. The catch is that it has to be strictly higher than the chart. Set Custom to 240 and drop to a 4-hour chart and the grid disappears with no warning label, because 240 is not higher than 240.
Both grids keep their own level checkboxes, line width, label size and text colour, so you can make the context layer as quiet as you like. The extension ratios are the exception: which ratios get drawn is shared by both grids, while which grids draw them is not. Each layer has its own extension toggle. The tooltips say which is which, because a control that looks global and is not is worse than one that plainly is.
THE SETTINGS ACTUALLY WORTH YOUR TIME
Most of the 63 inputs are the ordinary colour-and-width kind. These are the ones that change how the thing reads.
Color Mode defaults to Gradient, and it is doing real work. Each level takes its colour from its own ratio, so hue states depth - the shallow end and the deep end are different colours, and the 0.618-0.786 span reads as a region instead of two more identical lines. There are five presets plus Custom. Single Color reverts to one colour per grid if you prefer the classic look, and either way whatever transparency you pick in the colour picker is the transparency you get.
Enable Glow draws every level twice - a wide, near-transparent halo under a thin bright core. It costs nothing but line objects and it is the difference between a grid you can see on a busy chart and a set of hairlines you lose against the candles. Turn it off when the chart is crowded.
Fill Between Levels shades the intervals. OTE Band, the default, shades only 0.618-0.786. All Bands shades everything, Custom Bands lets you pick, and Off is off. The fills are independent of the line checkboxes, so you can shade a band whose boundary lines are hidden.
Highlight Golden Zone at Price is the one piece of reactive styling here. While the last close is between the 0.618 and 0.786 prices, that band draws more opaque and lifts off the chart. It creates nothing new - no box, no zone object, no centre line, no label - it just restyles the band the fill control already drew, and Highlight Strength sets by how much. It is arithmetic on two numbers already on your screen.
HTF Layer Dimming adds transparency to the whole context grid on top of whatever its colours already carry, which is how the second grid stays behind the first instead of doubling the clutter.
Extension Fade fades each extension a little further as it travels away from the leg, so the near ones read as more prominent than the far ones. It counts only the extensions you actually enabled, not their slot in the ladder - so if you turn on just the far ones, the nearest of them is still drawn at full strength rather than arriving pre-dimmed.
Ratio Label Format switches the tags between decimal and percent - 0.618 or 61.8%, minus signs intact either way. Show Price Labels adds the actual price beside each ratio; it is off by default because eight prices is a lot of text.
Line Extension Left/Right and Label Right Offset control how far the grid reaches and how far past it the tags sit. The defaults keep the tags in the empty margin, clear of both the candles and the price scale.
One last thing: any control that cannot do anything greys itself out. Switch the context grid off and its settings dim. Switch to Gradient and the single-colour pickers dim. There is no control in this script that looks live, takes a value, and quietly does nothing.
GETTING STARTED
Add it. You get one grid on today's range, gradient-coloured, golden zone shaded.
Want a different range? Anchor Range. Leave Fib Direction on Auto until it tells you something you disagree with.
Want context from above? Show HTF Context, and leave HTF Mode on Adaptive unless a specific timeframe matters to you.
Want the extensions? Turn them on for whichever grid you want them on, then pick your ratios.
Too busy? Glow off, Fill Between Levels off. You are back to plain lines.
THINGS THAT WILL LOOK LIKE BUGS AND ARE NOT
Swing anchors arrive late. A pivot is not a pivot until Swing Strength bars have printed after it, so on Latest Swing and on the context grid you are always looking at the last confirmed pivot, not the bar in front of you. When a newer one confirms, the anchor moves. That is the price of anchoring to something you can only recognise in hindsight, and it is the same trade every swing-based tool makes.
The day and week ranges are live. Current Day and Current Week use the period's running high and low, so the grid re-scales when the session makes a new extreme. It is showing you the range as it stands, not a finished one.
It draws one grid, not a history of them. You get the current grid, redrawn as things move. There is no trail of old ones behind you.
Higher-timeframe data uses the documented confirmed-value form - the expression is offset by one bar and the request passes barmerge.lookahead_on. Together, that is the pattern the Pine Script documentation gives for reading a higher timeframe without pulling unclosed data into historical bars. The source is open, so you can read the call rather than take my word for it.
Custom HTF at or below the chart timeframe draws nothing at all , and says nothing about it. Worth remembering before you conclude the context layer is broken.
A 12-month chart draws no context grid. 12M is the top of PulseWire's interval list, so Adaptive has nothing left to step up to. 3-month and 6-month charts both work.
Prices come from standard OHLC via ticker.standard(), so your levels are the same on Heikin Ashi, Renko, Kagi, Line Break and Point and Figure as they are on candles. The synthetic geometry of those chart types can still put the lines somewhere you would not expect.
WHAT IT DELIBERATELY DOES NOT DO
No alerts. No signals. No scores, ratings or probabilities. No zones, no nested zones, no centre line. It draws Fibonacci levels, labels them honestly, and stops. If you want something that tells you when to act, this is not it.
WHY IT IS DIFFERENT
Four self-maintaining ranges instead of a two-point drag you place today and replace tomorrow. Two independently configured grids on one continuous number line, with the higher one dimmed to sit behind rather than on top. Extensions numbered on the same ruler as the retracements, matching the tags PulseWire's own tool gives those prices, rather than a second scale running the other way. A swing range that is genuinely one leg, because the pivot pair is kept alternating. And colour that carries information - a level's hue states its depth - instead of a palette applied to identical lines.
Open source under the Mozilla Public License 2.0. Indicator

Swing Persistence Profile - Pivot Width SurvivalSwing Persistence Profile ranks every swing high and swing low on the chart by the widest pivot
window it survives. It is also explicit about the exact bar on which that rank becomes knowable,
and it shades the region where it is not knowable yet.
THE IDEA
A pivot is not a property of a bar on its own. It is a property of a bar together with the width
of the window it was compared against. The same high is a swing high when you look two bars either
side, and is not a swing high when you look thirteen. Tools that ask you to pick one width and
then draw the result bury that choice inside a single number.
This script evaluates up to five widths at once - 2, 3, 5, 8 and 13 bars each side by default -
and records, for every bar, the widest width at which that bar is still the extreme of its window.
That number is the bar's persistence depth.
Because widening a window can only add constraints, the widths are strictly nested: a bar that is
the highest of its 13-bar neighbourhood is necessarily also the highest of its 8, 5, 3 and 2-bar
neighbourhoods. Depth is therefore a single ordered rank rather than five separate opinions that
have to be reconciled. A depth-13 swing is a depth-3 swing that kept going.
TIMING
A pivot of width w cannot be identified until w bars have closed after it. That is arithmetic, not
an implementation detail, and it means a bar's persistence depth is not final until the deepest
active width has passed.
There is one further subtlety that most pivot scripts leave in place. The w-th bar after the
candidate is itself still forming while it is the live bar, and its own high or low can still
invalidate the pivot. A script that reads the verdict during that bar will show a marker that
changes, or vanishes, before the bar closes.
This one waits one bar longer. Every verdict it reads comes from a bar that has already closed, so
the confirmation lag is the deepest active width plus one bar. A marker is created once, on the
bar it describes, and is then left alone: it is not moved, recoloured or deleted on later bars,
and it does not flicker intrabar either.
The bars still inside that delay are shaded, so the region where the answer can still change is
visible on the chart instead of being left to inference. Nothing inside the shaded region has been
ranked yet, so an empty shaded region means "not decided," not "no swings here."
WHAT IS DRAWN
A marker on each qualifying swing, placed on the bar that made the extreme, coloured and sized by
depth, optionally printing the depth as a number.
An optional structure line joining swings at or above one chosen depth, alternating between highs
and lows. The most recent segment extends if a later bar sets a more extreme value in the same
direction; once a swing in the opposite direction closes a segment, that segment is fixed.
An optional higher-timeframe reference: the price of the most recent confirmed swing high and
swing low measured on a higher timeframe, drawn as a stepped level. The requested expression is
offset by one bar and the request uses lookahead, which is the pair the Pine Script documentation
specifies for confirmed higher-timeframe values, so historical and realtime bars receive the same
series. The level therefore lags by the reference width plus one bar of the reference timeframe,
and that lag is the point rather than a defect.
Optional alerts on a swing reaching a chosen depth. The alert fires as many bars after the swing
as the deepest active width plus one; the swing itself is on the earlier bar. Because every
verdict is read from a closed bar, "Once Per Bar" and "Once Per Bar Close" fire on the same bar.
THE TABLE
"Swings" counts how many swings reached at least that depth across loaded history, highs and lows
together. "Kept" is the share of the previous row's swings that survived into this row. "Bars ea"
is the average number of bars per swing at that depth. The footer reports the confirmation lag in
bars and how many bars have been rated.
The survival ratios describe the instrument and timeframe you are looking at, not any particular
trade. If most depth-2 swings die at depth 3, the chart is producing many local extremes that do
not extend. If they survive, the same series is producing fewer and longer swings. Comparing that
profile across timeframes or across symbols is a way of choosing a swing width that matches how a
market actually moves, rather than choosing 5 because 5 is a common default.
Counts cover every bar of history the chart has loaded, so they are comparable between symbols
only when the loaded history is comparable.
SETTINGS
Depths in use activates between two and five of the width slots. Reducing it also shortens the
undecided region at the right edge, because that region is as long as the deepest active width
plus one settling bar.
Every depth threshold in the script - minimum depth to mark, minimum depth for the structure line,
and the alert depth - is stated in BARS EACH SIDE, not as a slot number. With the default widths,
"minimum depth 3" means the second of the five slots. A threshold set above the deepest active
width produces nothing, by design.
Enter the widths in ascending order. The ranking itself does not require it, but the table only
reads as a survival sequence when they ascend, and "Kept" can exceed 100% if they do not.
The higher-timeframe reference width is counted in bars of that timeframe: a width of 5 on a daily
reference means five daily bars each side.
WHO IT IS FOR
Anyone who uses swing points as an input to something else - reading structure, choosing the
lookback for a range or a channel, deciding how far back a level should be considered relevant -
and would rather see how sensitive those points are to window width than settle it by habit. It is
also usable as a calibration step before fixing a pivot length in another tool.
WHAT IT DOES NOT DO
It produces no entries, exits, targets, direction or bias, and nothing in it should be read as
one. It measures the geometry of the price series and stops there. Persistence depth describes
what has already happened; a deep swing is not evidence about what happens next.
NOTES
Highs and lows come from the chart series. On non-standard chart types - Heikin Ashi, Renko, Kagi,
Point and Figure, Range - those values are synthetic, and the depths will describe the synthetic
series rather than the market. The script declares alert conditions, so it should be used and
presented on a standard chart type.
PulseWire permits 500 labels and 500 lines per script. On long histories the platform drops the
oldest drawings as newer ones are created, so the left edge of a deep history may be bare. This
does not affect the table, which counts every rated bar.
Persistence depth for highs and lows, and the bar index each verdict refers to, are available in
the Data Window. Those values describe the bar named by "Swing bar index," not the bar the cursor
is on.
One data request is made for the higher-timeframe reference whether or not it is displayed, so
enabling it costs nothing extra.
ORIGINALITY
The built-in ta.pivothigh() and ta.pivotlow() functions are used as the primitive, as they are in
a great many scripts. Everything above them is written for this script: running several widths in
parallel, aligning their verdicts onto a common bar so that they can be compared, reducing them to
one nested rank, deferring every drawing until that rank is final on closed data, marking the
region where it is not yet final, and reporting the survival ratios between widths.
Open source under the Mozilla Public License 2.0. The logic is described above in enough detail to
be checked line by line against the source. Indicator

Hype Check - Swing: Big Move. Or just HYPE?Is this move actually unusual?
Big candle. Big volume. Everyone suddenly has a thesis.
Cool.
A 4% move in PLTR and a 4% move in KO are not the same event. Over the
last two years PLTR did that once every 4 sessions. KO, once every 125.
Your screener paints both the same shade of green.
something special? NAH.
████░░░░░░ HOLDING THE LOWS
-7.3% from the peak
normal? yes · a normal stretch for QQQ
who's winning nobody · both sides matched
the crowd growing into the fall
next floor 658.20 · 3.4% below, tested twice
above you nothing until 712.40 · 4.6% up
but it closed well off the lows
YEAH . Something unusual is happening.
KINDA . Worth watching. Not enough for a decision.
NAH . Looks dramatic. Statistically, it isn't.
Then it names what the chart is actually doing: BREAKING DOWN, SNAPPING
BACK, HOLDING THE LOWS, COILING, GRINDING UP, RANGE BOUND, and a few more.
THREE THINGS IT DOES DIFFERENTLY
It measures the move, not the calendar. A three day collapse doesn't get
averaged away inside a 20 day window, and a bounce off the low doesn't
erase the fall that came before it.
It sizes levels in the stock's own daily range. Early versions put a
"level" 0.6% away on a stock that routinely moves 8% in a day. Useless.
Now a level only counts if price would have to work to reach it, and the
ones price has turned at more than once are drawn solid.
It will tell you nothing is happening . Most days that is the honest
answer, and most tools won't say it.
YEAH does not mean buy. It means pay attention. A rare move can continue,
reverse or stall, and a great looking setup can still be a bad trade.
No predictions. No magic arrows. No fake certainty.
Rare is not the same as actionable.
Daily swing charts. Free and open source.
Not financial advice.
Indicator

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

Market Structure + Swing Levels [AFD]Market Structure + Swing Levels organizes confirmed swing highs and
swing lows into configurable price Zones. Its default ATR mode sizes each
individual Zone from volatility at the Swing origin Bar; Tick, Point, and
Currency modes provide fixed-distance alternatives. It then describes
confirmed continuation Breaks, direction-changing Shifts, and the initial
direction assignment without trade instructions or predictive claims.
## Publication and license
- Publication type: Open-source.
- Pine version: 6.
- License: Mozilla Public License 2.0 (MPL 2.0).
- The open-source publication setting, this description, and the MPL 2.0
notice in the Pine source header must remain aligned.
The source is available for inspection and modification under MPL 2.0. This
summary identifies the applicable license; the notice in the Pine source
header remains the authoritative license reference.
## Capabilities
- Confirms Swing Highs and Swing Lows using the same selected strength on both
sides of the candidate Bar.
- Shows classifications by default: `H`, `HH`, `EH`, and `LH` for highs, and
`L`, `HL`, `EL`, and `LL` for lows.
- Builds ATR-, Tick-, Point-, or Currency-width Zones around confirmed Swings.
- Merges transitively overlapping same-side Zones into exact-union clusters.
- Evaluates Structure on confirmed Bars using selectable Close or Body
clearance.
- Lets Zone breaks use that Structure rule or an inclusive High/Low Touch of
the far edge.
- Retains broken Zones by default with configurable memory and color.
- Reports current direction, latest Structure event, active Zones, and
nearest-Zone distance in the Dashboard.
- Provides four fixed Structure alert conditions plus an optional combined
dynamic alert that can include Zone breaks.
## How to use it
1. Select a Preset Profile or choose Custom and set Swing Strength. The default
Swing profile uses a strength of 7 Bars on each side.
2. Choose the Zone Width Mode and width appropriate for the chart.
3. Choose how Structure confirms a clearance. Close is the default; Body
requires both the Open and Close to clear the reference.
4. Zone Break Basis follows the Structure rule by default. Touch (High/Low)
instead breaks a Zone when the wick reaches or passes its far edge.
5. Swing High and Swing Low Zone labels start at the oldest Swing Origin
represented by each Zone. Select Right Edge when current-Bar alignment is
preferred.
6. Swing High and Swing Low text have separate color controls. Both default to
white and also color the matching Swing classification labels. Zone Age,
Break, Shift, and Dashboard text also start white.
7. The Dashboard starts with all five rows visible. Disable nearest-Zone
distance when only Direction, Last Event, and Zone counts are needed.
8. Show Broken Zones starts on with a 20-Bar memory. Turn it off for an
active-Zones-only chart.
9. Zone Age starts off. When enabled, its unit starts in Days.
## How to interpret Zone cluster counts
The `×N` suffix is a cluster membership count. `Swing High ×3` means three
confirmed Swing High Zones are represented by that merged cluster.
It does not mean price tested one exact price three times. Zones merge when
their price bands overlap or meet at an edge. Merging is transitive, so one
connected Zone can bridge two other Zones even when those outer Zones do not
directly overlap each other. The displayed cluster preserves the full union of
those connected bands, and `×N` reports how many confirmed Swing Zones
contributed to it.
## Broken Zones
Show Broken Zones is the explicit on/off control:
- On by default — the Zone freezes at its break-confirmation Bar, changes to
Broken Zone Color, and remains visible for the selected Broken Zone Memory.
- Off — a Zone is deleted as soon as it breaks.
- Up to 20 broken Zones are retained. If more accumulate before their memory
expires, the oldest retained Zone is removed first.
This display choice does not change how Zone breaks are detected and does not
change alert behavior.
## Limitations and evidence
- Swings require the selected number of Bars on both sides, so confirmation
occurs after the origin Bar.
- ATR Zone width uses volatility from the Swing origin Bar.
- Currency-width mode creates no Zone when the symbol does not provide a valid
Point Value.
- Active Zones are capped at 40 per side. When the cap is reached, the oldest
active Zone on that side is removed first.
- Hours and Days shown for Zone Age are timeframe-based approximations and do
not correct for session gaps.
- Cluster membership describes connected Zone bands, not repeated reactions at
one exact price.
- Repository checks pass for the working source. PulseWire compilation and
runtime verification of the latest working source have not yet been
recorded.
- This indicator is educational chart context and does not provide trade
instructions. Indicator

Judas Swing Detector [algo_aakash]Judas Swing Detector is a session-based reversal indicator that models the institutional Judas Swing as a complete, sequential price event rather than a single false-breakout candle. Instead of flagging every session-open wick that reverses, the script requires a full chain of confirmed conditions — a locked Initial Range, a liquidity sweep beyond it, a rejection close back inside, an optional market structure shift, institutional-grade displacement, and higher-timeframe trend agreement — before a signal is ever scored, drawn, or alerted.
Problem Statement
A Judas Swing is commonly described as "price sweeps one side of the session open and reverses," but that description alone matches an enormous number of ordinary, low-quality wicks. Scripts that flag every such wick generate far more noise than usable signal, because a sweep and a close-back-inside is only the first half of the institutional sequence — it says nothing about whether the reversal has real structural or momentum support, or whether it agrees with the underlying daily trend.
This indicator addresses that gap by treating the Judas Swing as a seven-stage sequence and only surfacing a signal once every enabled stage has been satisfied on confirmed price data, with the overall setup then ranked by a disclosed, weighted confidence score.
Methodology
A session window (London Open, New York Open, or a fully custom session and timezone) drives an Initial Range engine that locks the session's high and low once a configurable opening window (5, 10, 15 or 30 minutes) elapses. The Initial Range is drawn as a transparent box and extends for the remainder of the session.
Once the Initial Range is locked, the script watches for a liquidity sweep: a wick that pierces beyond the Initial Range high or low by at least a minimum ATR-based distance, with the same candle closing back inside the range. This closing-back-inside requirement is what separates a genuine sweep-and-reject from an ordinary breakout continuation.
A confirmed sweep becomes a pending candidate. If Market Structure Confirmation is enabled, the candidate must be followed by a genuine structure shift measured against minor swing pivots that form strictly after the sweep bar: a higher high following a low-side sweep, or a lower low following a high-side sweep. Candidates that do not produce this structure shift within a configurable bar timeout are discarded with no signal created.
A qualifying candidate is then subjected to a Displacement Filter, requiring the confirming candle's body to reach a minimum ATR multiple, and an optional Higher Timeframe Bias check, requiring a fast/slow EMA relationship on a user-selected higher timeframe (e.g. 1H, 4H, Daily) to agree with the reversal direction. Only after every enabled stage passes does the script compute the Judas Confidence Filter score.
The Judas Confidence Filter combines five independently disclosed, user-weighted factors into a single 0-100 score: sweep depth (how far price pierced beyond the Initial Range in ATR units), displacement (the confirming candle's body size in ATR units), HTF agreement (the normalized separation between the fast and slow higher-timeframe EMA, reflecting how decisively the higher-timeframe trend supports the direction), rejection quality (where the sweep candle closed within its own range), and reversal aggression (how few bars elapsed between the sweep and structure confirmation). Weights are user-adjustable and auto-normalized. A signal is only plotted and only triggers alerts if its score meets the Minimum Confidence Score threshold — this is a genuine filtering mechanism that changes what is drawn, not a cosmetic label applied afterward.
Confirmed signals optionally draw an Entry Zone between the 50% and 62% retracement of the confirming displacement candle, reflecting where institutional-style retracement entries are commonly sought after a confirmed reversal, along with a stop-reference line at the sweep extreme. Both extend forward and are visually dimmed once price closes back through the sweep extreme, marking the setup invalidated.
Signal Workflow
Step 1 — the selected session opens and the Initial Range begins building from the session's first 5-30 minutes of price action.
Step 2 — the Initial Range locks; the script now watches for a liquidity sweep beyond either side of that locked range.
Step 3 — a wick pierces beyond the range by a minimum ATR distance and the same candle closes back inside, registering a pending sweep candidate.
Step 4 — if enabled, the candidate must be followed by a market structure shift measured against post-sweep swing pivots, within a bounded bar timeout.
Step 5 — the confirming candle must clear the ATR-based displacement threshold, and if enabled, the higher-timeframe EMA bias must agree with the reversal direction.
Step 6 — the completed sequence is scored by the Judas Confidence Filter across five weighted factors; only scores at or above the minimum threshold are plotted and alerted.
Step 7 — an optional 50%-62% entry zone and stop-reference line are drawn from the confirming candle and remain active until price closes back through the original sweep extreme.
Why This Indicator Is Different
Most public "Judas Swing" or session-sweep scripts fire on the sweep-and-close-back-inside event alone, with no structural or momentum confirmation and no higher-timeframe context.
This script models the full institutional sequence explicitly — session, Initial Range, sweep, rejection, structure shift, displacement, HTF agreement — and only creates a signal after every enabled stage resolves in order on confirmed bar closes.
The Judas Confidence Filter converts five independently disclosed factors, including reversal aggression measured in bars-to-confirmation and rejection quality measured from close position within the sweep candle's own range, into a single adjustable score rather than a binary flag.
Confidence weighting is fully exposed, letting the ranking be tuned toward sweep depth, displacement strength, higher-timeframe agreement, rejection quality, or reversal speed depending on the trader's approach.
The optional 50%-62% Entry Zone models a specific, disclosed institutional retracement convention rather than simply marking the signal bar.
Inputs
Session Engine
Session (London Open / New York Open / Custom)
Custom Session Window
Session Timezone
Initial Range
Initial Range Duration (5/10/15/30 minutes)
Show Initial Range Box
Liquidity Sweep Detection
Minimum Sweep Pierce (x ATR)
Market Structure Confirmation
Require MSS Confirmation
MSS Pivot Length
MSS Timeout (bars)
Displacement Filter
Displacement Threshold (x ATR)
ATR Length
Higher Timeframe Bias
Require HTF Bias Agreement
HTF Timeframe
HTF Fast/Slow EMA Length
Judas Confidence Filter
Minimum Confidence Score
High-Confidence Threshold
Advanced weight sliders for sweep depth, displacement, HTF agreement, rejection quality, and reversal aggression
Entry Zone
Show Entry Zone (50%-62% Retracement)
Entry Zone Extension (bars)
Visual Settings
Show Sweep Markers / Confirmation Arrows / Stop Marker
Label Size
Bullish/Bearish/Initial Range/Elite Score Colors
Status Panel
Show Status Panel
Panel Position
Alerts
Alerts are available for:
Session Started
Liquidity Sweep detected
Bullish Judas Swing confirmed
Bearish Judas Swing confirmed
High-Confidence Judas Swing (Elite grade)
Higher-Timeframe Bias Change
Entry Zone Reached
Practical Usage
Use the status panel's HTF Bias reading as directional context before evaluating an individual Judas signal.
Treat a High-Confidence (Elite) signal as a materially stronger setup than one that merely clears the minimum threshold, since it reflects agreement across all five scored factors rather than a narrow pass.
Raise the Minimum Confidence Score on lower timeframes or noisy instruments to reduce the number of marginal signals generated.
Disable Require MSS Confirmation only if you specifically want to evaluate the sweep-and-rejection event on its own, understanding this removes one of the seven confirming stages.
Combine the alert feed with a broader trade plan, since each alert marks a structural event, not an execution signal.
Limitations
The Initial Range and session logic depend on the chart's intrabar data matching the selected session window; behavior on markets with irregular or 24-hour sessions may differ from traditional FX/futures sessions.
Market structure confirmation depends on minor swing pivots, which require bars to form on both sides before they confirm, introducing an inherent, bounded delay.
Confidence scoring is a relative, disclosed ranking and does not predict the outcome of any individual signal.
The higher-timeframe bias is read via a standard non-repainting security call and reflects EMA relationship only; it is not an independent trend-strength model.
As with any structure-based tool, results will vary across instruments, timeframes, and market regimes.
Notes
This indicator is a session and structure analysis tool intended to organize and score the Judas Swing sequence through a disclosed, multi-stage validation process.
All session state, sweep detection, structure confirmation, displacement, and scoring are evaluated on confirmed bar closes only, so no element of the script repaints once drawn.
The output is intended to support structural analysis and is not a standalone buy or sell recommendation.
Indicator

ATR Chandelier StopTrade Control Adaptive ATR Chandelier Stop
The Trade Control Adaptive ATR Chandelier Stop is a volatility based trailing stop designed for swing and position traders who want a more objective way to manage exits and protect gains.
Instead of applying the same fixed percentage stop to every stock, the indicator uses Average True Range, or ATR, to account for how much each symbol typically moves. More volatile stocks receive wider stop levels, while lower volatility stocks receive tighter stop levels.
How it works
For long positions, the trailing stop is calculated as:
Highest high over the selected lookback period minus ATR multiplied by the selected multiplier
With the default settings, the calculation is:
22 bar highest high minus 3 times the 14 bar ATR
This creates a stop that hangs below the stock’s recent high, which is why it is called a Chandelier stop.
As the stock makes new highs, the stop can move higher. During normal pullbacks, the stop generally does not move lower while the bullish trend remains intact.
When price closes below the trailing stop, the indicator changes to a bearish state and begins plotting the corresponding stop above price.
Default settings
ATR Length: 14
Price Lookback: 22
ATR Multiplier: 3.0
Automatic Volatility Adjustment: Off by default
These settings are intended as a balanced starting point for swing and position traders using the daily chart and holding trades for several weeks to several months.
Adaptive volatility option
The optional adaptive setting adjusts the ATR multiplier based on ATR as a percentage of the stock price.
When enabled, the indicator gives highly volatile stocks additional room and may tighten the stop for lower volatility stocks. The standard 3 ATR setting remains the default for traders who prefer a simpler and more consistent approach.
Best uses
The indicator is designed for:
• Swing trading
• Position trading
• Trend following
• Managing profitable trades
• Reducing emotional exit decisions
• Monitoring individual stocks or watchlists
It is generally most useful on the daily timeframe.
Alert condition
The script includes an alert condition for a confirmed daily close below the trailing stop.
Recommended PulseWire alert settings:
Condition: Daily Close Below ATR Stop
Interval: 1D
Trigger: Once per bar close
The alert is designed to trigger when the trend first changes from bullish to bearish. It does not repeatedly alert every day while price remains below the stop.
Important considerations
The Trade Control Adaptive ATR Chandelier Stop is a trade management tool, not a complete trading strategy.
Traders should also consider technical support and resistance, entry price, position size, maximum acceptable loss, earnings risk, gap risk, and overall market conditions.
A stock can gap below the plotted stop, particularly around earnings or major news. The indicator does not guarantee execution at the displayed price. Indicator

Change of Character (CHoCH) Alert System [algo_aakash]Change of Character (CHoCH) Alert System is a market structure signal tool focused on a single event: a confirmed shift in directional bias. Rather than labeling every Break of Structure and CHoCH the way many public structure scripts do, this indicator deliberately ignores continuation breaks and limits both the chart and the alert feed to the moments where the prevailing character of the market actually flips.
Problem Statement
Most public CHoCH implementations classify a character change purely on the direction of a swing break, with no measure of how convincing that break actually was. This creates two practical issues for anyone building alerts around structure. Every minor swing wobble can trigger a notification, producing alert fatigue, and there is no way to separate a decisive character change from one that barely closed beyond the swing level. This script addresses both issues with a close-confirmed CHoCH-only detection engine and a built-in confidence grading step applied to every signal.
Methodology
The script maintains a single structure register holding the most recent confirmed swing high and swing low, located with standard pivot detection over a user-defined pivot length. When the adaptive swing filter is enabled, a newly confirmed pivot only replaces the stored swing if its distance from the last opposite-type pivot exceeds a configurable ATR-relative threshold, which keeps insignificant micro-swings out of the structure register before they can influence a signal.
A Change of Character is only evaluated on a confirmed candle close, so nothing in the detection logic repaints once a signal has printed. A bullish CHoCH requires a close above the last swing high while the tracked bias is bearish or undefined. A bearish CHoCH requires a close below the last swing low while the tracked bias is bullish or undefined. A break that occurs while the bias already agrees with the break direction is treated as ordinary continuation and is not flagged.
Two optional filters gate confirmation further. A displacement filter requires the breaking close to clear the swing level by a minimum ATR multiple, removing marginal breaks. A momentum filter requires the breakout candle's body to represent a minimum percentage of its total range, removing breaks driven mostly by wick with little real conviction behind the close.
Once a CHoCH is confirmed, the broken swing level is projected forward on the chart as an active structure line. If a later confirmed close moves back through that level, the structure is marked invalidated and the projection line is dimmed, separately from the detection of any new CHoCH.
Signal Workflow
Track the most recent confirmed swing high and swing low using pivot detection.
Apply the adaptive swing filter to reject pivots too close to the last opposite-type pivot.
On each confirmed candle close, test for a close beyond the stored swing level against the current bias.
Apply the displacement filter to confirm the close cleared the level by a minimum ATR multiple.
Apply the momentum filter to confirm the breakout candle's body-to-range ratio meets the minimum threshold.
Score the confirmed breakout candle on displacement in ATR units and body-to-range ratio to produce a Weak, Moderate, or Strong confidence grade.
Flip the tracked bias, plot the CHoCH label with its grade, and project the broken level forward as an active structure line.
Continue monitoring the active structure line and mark it invalidated if a later confirmed close moves back through it.
Why This Indicator Is Different
Many structure tools plot every Break of Structure alongside every CHoCH, leaving the trader to filter out which events represent an actual change in character.
This script omits BOS events entirely and reports only confirmed CHoCH signals, which are the events that correspond to a bias flip.
Each confirmed CHoCH is scored using two independent factors measured on the breakout candle itself, its ATR-normalized displacement past the level and its body-to-range ratio, rather than being treated as a single undifferentiated event.
The confidence grade is written into the alert message text at the moment the event fires, which requires composing the message dynamically rather than relying on a fixed template.
The swing level broken by a CHoCH remains tracked after the signal fires, so a later close back through that level produces a distinct invalidation alert rather than silently vanishing into the next structure calculation.
Detection is restricted to confirmed candle closes throughout, so the bias, the grade, and the invalidation state cannot change intrabar once printed.
Inputs
Structure Engine
Swing Pivot Length
Adaptive Swing Filter
Filter Threshold (ATR multiple)
Break Confirmation
Displacement Filter
Displacement Multiplier
Momentum Filter
Minimum Body % of Range
ATR Length
Visual Settings
Show Swing Points
Show Structure Projection
Projection Extension
Show Trend Background Wash
Color Candles After CHoCH
Show Confidence Grade
Label Size
Bullish, Bearish, and Projection colors
Status Panel
Show Status Panel
Panel Position
Alerts
Alert: Bullish CHoCH
Alert: Bearish CHoCH
Alert: Bullish Structure Invalidated
Alert: Bearish Structure Invalidated
Alerts
Alerts are available for:
Bullish CHoCH confirmed on a closed candle, with the confidence grade included in the alert message
Bearish CHoCH confirmed on a closed candle, with the confidence grade included in the alert message
Bullish structure invalidated after a confirmed close back below an active bullish level
Bearish structure invalidated after a confirmed close back above an active bearish level
Practical Usage
Use a shorter pivot length on intraday charts to react to structure earlier, combined with the displacement and momentum filters to avoid marginal breaks.
Use a longer pivot length on higher timeframes to isolate structurally significant character changes only.
Treat a Strong-grade CHoCH as a higher-conviction event than a Weak-grade CHoCH when weighing entry timing or position sizing.
Watch for a structure invalidated alert shortly after a CHoCH, since it indicates price has returned through the level that produced the signal.
Use the status panel as a quick reference for the current bias and the most recent CHoCH grade without needing to scan the chart for labels.
Limitations
Swing highs and lows depend on confirmed pivots, which require the full pivot length of bars to close on both sides before becoming available, introducing a disclosed confirmation lag.
The displacement and momentum filters reduce signal frequency by design, which means fewer but more selective CHoCH events compared to unfiltered structure break detection.
Structure invalidation reflects a return through a previously broken level and does not attempt to forecast subsequent price direction.
This indicator identifies structural events only and does not constitute financial advice or a complete trading system on its own.
Notes
All structural state, including the tracked bias, the active levels, and the confidence grade, is evaluated only on a confirmed candle close, so nothing in this script repaints once printed.
The only lag in the system is the standard pivot confirmation lag inherent to pivot-based swing detection, which is disclosed above rather than hidden.
Designed for dark theme charts. On light themes, consider darkening the projection line color for improved contrast.
Indicator

Fibonacci Levels Engine [StrixEDGE]What It Does
Fibonacci Levels Engine automatically detects the most recent swing high and swing low within a configurable lookback window, draws the standard Fibonacci retracement grid (0 %, 23.6 %, 38.2 %, 50 %, 61.8 %, 78.6 %, 88.6 %, 100 %) plus the 127.2 % and 161.8 % extensions, and projects every level into the future so you can see where price is heading relative to the structure.
What separates this indicator from a plain Fibonacci overlay is the Edge Analysis layer — three original components that work together to tell you how meaningful a given Fibonacci zone is right now, not just where it sits on the chart:
1. Edge Score (0–100) — A composite confluence gauge displayed in the dashboard.
2. Proximity Heatmap — Dynamic line opacity that makes levels glow as price approaches them.
3. ATR Volatility Band — A band around the Golden Zone midpoint that adapts to current volatility.
How It Works
Core: Swing Detection & Fibonacci Grid
The indicator scans the last N bars (default 20, configurable 5–300) to find the highest high and lowest low. It determines trend direction by comparing which extreme occurred first: if the swing low is further back in time than the swing high, the structure is bullish (price moved from low to high); otherwise it is bearish. Fibonacci ratios are then calculated from that range and drawn as horizontal levels from the swing origin to a user-defined projection length (default 30 bars into the future).
Two shaded zones highlight areas of interest:
- Golden Zone (0.618–0.786) — the highest-probability retracement area in classical Fibonacci theory.
- Deep Zone (0.786–0.886) — often the last line of defense before a full retracement.
Both zones, the 50 % midline, and the extension levels can be toggled on or off independently.
Edge Score — Confluence Gauge
The Edge Score combines three independent measurements into a single 0–100 reading:
RSI Momentum Alignment | 0–35 | In a bullish structure, a low RSI (below 35) scores highest because it signals oversold conditions near support. In a bearish structure, a high RSI (above 65) scores highest. Intermediate RSI values receive proportionally lower scores. |
| Proximity to Golden Zone | 0–35 | Measures the absolute distance between the current close and the Golden Zone midpoint as a ratio of the total Fibonacci range. The closer price is to the midpoint, the higher the score. |
| EMA Trend Alignment | 0–30 | Checks the stacking order of the 8, 21, and 55-period EMAs. A fully aligned stack (e.g., EMA 8 > EMA 21 > EMA 55 in a bullish structure) scores 30; partial alignment scores 20; misalignment scores 10. |
The resulting score is classified as STRONG (≥ 75), MODERATE (≥ 50), WEAK (≥ 25), or LOW (< 25) and displayed with a color-coded label in the dashboard. A high Edge Score means RSI, price proximity, and trend direction are all converging at the Fibonacci zone — not just that price touched a line.
Proximity Heatmap
Every Fibonacci level's line opacity is recalculated on each bar based on how far the current close is from that level. When price is near a level, the line becomes more opaque (visually brighter); when price is far away, the line fades. This is computed as a transparency value derived from the ratio of (distance to level) / (total Fibonacci range), scaled between 10 and 75. The effect lets you instantly see which levels are "active" without scanning numbers — the relevant lines stand out on their own.
ATR Volatility Band
A translucent band is drawn around the Golden Zone midpoint, extending ± 0.5 × ATR (default 14-period). This addresses a practical problem: a Fibonacci level is a single price, but real entries need a buffer that accounts for market noise. The band widens in volatile conditions and contracts in quiet ones, giving you a dynamic "fair value area" inside the Golden Zone rather than a fixed line.
Dashboard Panel
A compact table in the top-right corner of the chart displays:
- Trend — Current structural direction (Bull / Bear) with color coding.
- Edge — The composite Edge Score and its label.
- RSI — Current RSI value, color-coded for overbought/oversold extremes.
- G-Zone — Live status showing ✅ with the midpoint price when the close is inside the Golden Zone
or ⏳ Waiting when it is outside.
- ATR — Current Average True Range value.
- Range — The total Fibonacci range (swing high minus swing low).
Dashboard text size is adjustable (Tiny / Small / Normal / Large).
How to Use It
Identify the structure — Add the indicator to your chart. The dashboard immediately tells you whether the current swing structure is bullish or bearish and shows the Edge Score.
Watch the Golden Zone — When price pulls back toward the 0.618–0.786 area, check the dashboard: a high Edge Score (50+) means RSI and trend EMAs are aligned with the retracement, which increases the odds of a bounce. The G-Zone row will switch from ⏳ to ✅ when price enters the zone.
Use the Volatility Band for entries — Rather than placing a limit order on the exact 0.618 or 0.786 line, use the ATR band as your entry zone. It automatically adjusts to current volatility, giving you a wider buffer in choppy markets and a tighter one in clean trends.
Read the heatmap — Glowing lines tell you which levels price is currently interacting with. If a line is bright and the Edge Score is high, that level carries more weight. If the line is faded, price is far away and the level is not in play.
Settings Overview
- Pivot Lookback (5–300, default 20) — Number of bars scanned for swing high/low detection.
- Right Projection (5–200, default 30) — How far levels extend into the future.
- Golden Zone / Deep Zone / 50 % / Extensions — Toggle individual level groups.
- Edge Score Panel — Show or hide the dashboard.
- ATR Volatility Band — Show or hide the dynamic band.
- Proximity Heatmap — Enable or disable the distance-based line opacity effect.
- ATR / RSI Length — Periods for the ATR and RSI calculations used in the Edge Score and Volatility Band.
- Style — Full color customization for bullish/bearish, zones, bands, levels, labels, and line width.
Set alerts — Four built-in alert conditions are included:
- Price enters the Golden Zone (0.618–0.786)
- Price enters the Deep Zone (0.786–0.886)
- Edge Score reaches 75 or above (strong confluence)
- Price crosses the 0 % or 100 % level (breakout / full retracement) Indicator

Bedaiwi's Smart PivotsBedaiwi's Smart Pivots is a three-level market-structure indicator that classifies price turning points as Minor, Intermediate, and Major highs and lows.
HOW IT WORKS
Minor Pivots
A Minor High is confirmed when the middle bar of a three-bar formation has a high that is strictly higher than the highs immediately before and after it.
A Minor Low is confirmed when the middle bar has a low that is strictly lower than the lows immediately before and after it.
Equal highs and equal lows are not treated as Minor pivots.
Intermediate Pivots
Intermediate pivots are derived from confirmed sequences of Minor pivots.
An Intermediate High is identified when a higher Minor High is followed by a lower Minor High.
An Intermediate Low is identified when a lower Minor Low is followed by a higher Minor Low.
Major Pivots
Major pivots apply the same hierarchical logic to confirmed Intermediate pivots.
A Major High is identified when a higher Intermediate High is followed by a lower Intermediate High.
A Major Low is identified when a lower Intermediate Low is followed by a higher Intermediate Low.
SYMBOLS AND COLORS
- Red diamond: Intermediate High
- Green diamond: Intermediate Low
- Red exclamation mark: Major High
- Green exclamation mark: Major Low
Optional Minor pivots use the same High and Low color settings.
When the replacement option is enabled, an Intermediate symbol is removed and replaced with an exclamation mark if the same point is later promoted to Major status.
HISTORICAL PLOTTING AND CONFIRMATION DELAY
Pivot identification requires subsequent price information.
A Minor pivot is confirmed only after the following bar closes. Intermediate and Major pivots require additional confirmed pivot sequences, so their confirmation occurs later.
After confirmation, the indicator places the symbol on the historical bar where the relevant high or low occurred. Therefore, a symbol displayed on an earlier bar was not necessarily available in real time on that bar.
Historical placement is used only to show the actual location of the confirmed turning point. It should not be interpreted as a signal that was known on the historical pivot bar.
SETTINGS
Users can:
- Show or hide Minor pivots
- Show or hide Intermediate pivots
- Show or hide Major pivots
- Replace an Intermediate symbol when it becomes a Major pivot
- Customize High and Low pivot colors
PRACTICAL USE
Smart Pivots can help users:
- Study market structure
- Identify significant historical swing highs and lows
- Separate short-term fluctuations from higher-level price structure
- Review possible support and resistance areas
- Add context to discretionary price-action analysis
LIMITATIONS
Smart Pivots is an analytical indicator. It does not place trading orders and does not define entries, exits, stop-loss levels, profit targets, position sizing, or expected returns.
Pivot confirmation is delayed by design because later price action is required. Results may vary between symbols, timeframes, sessions, and data feeds.
The indicator does not identify final market tops or bottoms with certainty. Historical observations do not guarantee future market behavior.
This script is provided for research and educational purposes only. It is not financial or investment advice. Indicator

NSE/BSE Key Support & Resistance | MTF Pro-3.1Advanced pivot-based Support & Resistance with multi-timeframe confluence, strength scoring, volume-confirmed breaks, and adaptive zone visuals — built specifically for Indian stock market (NSE/BSE).
Overview
Most S&R indicators draw every pivot as an equal horizontal line and extend it infinitely to the right — creating cluttered, unreadable charts. This indicator solves that by scoring every level based on how strongly price rejected it , merging overlapping levels from different timeframes into a single confluence zone, and only showing the levels that actually matter.
Built and tuned specifically for NSE and BSE stocks, indices (Nifty 50, Bank Nifty, Sensex), and F&O instruments.
Key Features
🔷 Multi-Timeframe Support (4 TFs)
Enable up to 4 independent timeframes simultaneously. Each timeframe's pivots are detected separately and tagged in the label — , , , . You choose which timeframes to activate.
🔷 Cross-TF Confluence Merge
When two different timeframes produce a pivot at nearly the same price (within ATR proximity), they automatically merge into a single stronger zone instead of drawing two overlapping boxes. The label shows both sources — — and the level receives a confluence strength bonus. These merged zones are your highest-priority trade levels.
🔷 Advanced Strength Scoring
Every level carries a live strength score (★) that accumulates over time. Each touch is scored individually based on:
Wick size relative to candle range (how strongly price rejected)
Distance of close from the level (how convincingly price pulled back)
Whether volume was above average on that candle
Whether a strong body / engulfing candle formed
A barely touching wick scores ~0.5. A high-volume hammer rejection scores ~5–6. The score drives both zone opacity and zone width — strong levels appear bold and wide, weak levels fade visually.
🔷 Volume-Based Break Filter
A level is only invalidated when price closes beyond it and volume meets a configurable threshold (default: 1× average volume). Low-volume spikes through a level are ignored as false breakouts — the zone remains valid. Break alerts include the volume ratio so you know the conviction behind the move.
🔷 Adaptive Zone Visuals
No right extension — zones terminate at the current bar (valid) or the break bar (broken). No infinite lines cluttering the right side of your chart.
Opacity scales with strength — strongest levels are most visible, weakest levels are nearly transparent.
Zone width scales with strength — high-confidence zones are wider, giving a visual sense of the price area's importance.
🔷 Clean Labels
Each label shows the full picture at a glance:
21450.00 ★6.5 ×3
Timeframe source | Price | Strength score | Touch count
Settings Guide
SettingWhat it doesPivot LengthBars each side to confirm a pivot. Higher = fewer, stronger levelsMin StrengthHide levels below this score. Raise to show only confirmed levelsATR Merge DistanceHow close two levels must be to merge into oneInvalidationClose-based (reliable) or Wick-based (faster) break detectionVolume Break FilterRequire above-average volume to confirm a breakoutMin Volume MultiplierHow many times average volume needed to confirm a breakMax Active LevelsCap total zones shown on chartStrength → Zone OpacityToggle adaptive opacity based on strength score
How to Use
Bounce trades — price enters a green (support) zone → wait for a rejection candle with volume → enter above the rejection candle high, SL below zone bottom.
Rejection trades — price enters a red (resistance) zone → wait for a bearish candle with volume → enter below candle low, SL above zone top.
Breakout trades — price closes beyond a zone with high volume (break alert fires) → wait for pullback to the broken level → trade in the direction of the break.
Highest priority setups — zones tagged or with ★ score above 5 and multiple touches. These are the levels institutional money respects.
Alerts
The indicator fires alert() calls for:
Break confirmed — includes ticker, price, and volume ratio
Retest — includes ticker, price, and touch quality score
Set alert condition to "Any alert() function call" in PulseWire's alert dialog.
Notes
Designed and tested on NSE/BSE equities and F&O stocks
Works on any timeframe from 1 minute to Weekly
All calculations are original — pivot detection, strength engine, confluence merge, and volume filter are built from scratch in Pine Script v6 Indicator

Indicator

EMA Ride Scanner V2.a (Toggle) - AshishShort Description
A dual-mode EMA9/21/50 trend-ride scanner with volume classification and a relative-strength "Grinder Mode" for stocks that trend without ever coiling tight enough to trigger a squeeze. Use alongside its companion, SQZ_SCAN, for momentum timing.
What it does
EMA Ride Scanner V2.a finds stocks in a clean, established uptrend and flags healthy pullback zones to buy — instead of chasing breakouts after the move has happened. Built on ideas from Qullamaggie's Episodic Pivot framework, Stockbee's price-neglect filter, and VCPSwing's 10/20-MA ride philosophy.
It checks: EMA9>21>50 stack alignment, minimum ride duration, distance from 52-week low, and volatility contraction. Volume bars are color-coded as EP surges, distribution, or healthy dips.
Two modes (single toggle)
Standard Mode (toggle OFF) — for stocks that coil and release. Flags a 0-5% pullback to EMA9, ideally on light volume. Pair with SQZ_SCAN for the breakout-timing signal.
Grinder Mode (toggle ON) — for stocks that never coil. Some strong trends have such low, steady volatility that they never compress enough to trigger a squeeze — by the time SQZ_SCAN fires, they've already run too far from EMA9 to count as a dip. Grinder Mode drops the squeeze requirement and instead checks: low ATR, long ride above EMA21, and meaningful outperformance vs a benchmark index (momentum begets momentum). If price is also near EMA9/21, it flags a Grinder Setup.
Note: cloud-bounce count is shown for visual reference only, not used as a filter — low-ATR stocks often show very few bounces simply because they ride EMA9 continuously rather than dipping and recovering.
Companion: SQZ_SCAN
SQZ_SCAN shows when volatility compression releases into a confirmed move — WATCH (squeeze building), EARLY FIRE (just released), or BUY (released + volume confirmed). NOTE: As with most indicators, this is a lagging indicator on a daily timeframe, and accuracy reduces significantly on lower timeframes.
Workflow:
Screen with EMA Ride Scanner (Standard Mode) for clean pullback candidates.
Check SQZ_SCAN on each — prioritize WATCH/EARLY FIRE/BUY.
Separately, screen Grinder Mode for low-volatility names — don't require SQZ confirmation here, it structurally won't fire for this archetype.
Sanity-check on hourly before entry — only to rule out an active breakdown, not as a hard gate. Both indicators are daily-timeframe tools; hourly readings are noisy and shouldn't override a valid daily setup.
What this isn't
A screening tool, not a full trading system — no buy/sell signals, no risk management built in. Combine with your own entry timing, sizing, and stops. Indicator

Liquidity Sweep Retracements [MarkitTick]💡An advanced analytical framework designed to decode market micro-structure by evaluating the depth, speed, and statistical probability of price pullbacks. Rather than relying solely on static Fibonacci levels, this tool dynamically tracks the historical characteristics of an asset's swing behavior, alerting the user to structural anomalies and shifts in momentum. By intersecting retracement analysis with liquidity sweep detection and a built-in heatmap, this framework offers a comprehensive lens into market behavior, isolating environments where trend continuation is highly probable versus areas prone to exhaustion.
✨ Originality and Utility
Standard market analysis often relies on rigid tools that do not adapt to changing volatility conditions. This script introduces a highly original dynamic evaluation method by actively saving the characteristics of recent price swings into an internal array and establishing a moving statistical baseline.
The primary utility of this script lies in its multidimensional analysis. It does not just measure how far price has pulled back; it calculates how fast the pullback occurred and compares this velocity to the asset's recent historical baseline. This enables the framework to categorize price action not merely as a "pullback," but as a statistically significant "Anomaly" or an "Aggressive" move. Furthermore, by weaving Higher Timeframe (HTF) trend alignments and localized liquidity sweep detections into a single, cohesive dashboard and visual charting environment, it reduces chart clutter while exponentially increasing the depth of available data.
🔬 Methodology and Concepts
● Swing Structuring and Pivot Detection
The foundational logic relies on identifying structural pivot highs and lows through a localized lookback and look-forward window. The algorithm requires a definitive peak or trough isolated by user-defined left and right bars, establishing the anchor points for all subsequent mathematical measurements.
● Dynamic Retracement Scoring
Once a swing structure is confirmed, the script calculates the exact percentage of the retracement relative to the preceding impulse. These percentages are continuously categorized into defined behavioral zones:
Impulse (Less than 23%)
Shallow (Less than 38%)
Healthy (Up to 61.8%)
Deep (Up to 78.6%)
Reversal (Beyond 78.6%)
● Retracement Momentum Velocity (RMV)
Time and price are merged to extract velocity. By dividing the total percentage of the retracement by the number of bars it took to form, the script generates a velocity reading. This reading is dynamically compared against an array of historical velocities to determine if the current counter-trend move is unusually aggressive.
● Statistical Anomaly Detection
The script manages historical arrays of past retracement data, calculating a rolling mean (average) and standard deviation. An anomaly is triggered when a live retracement deviates significantly from this moving baseline, determined by a user-defined standard deviation multiplier. This mathematically highlights structural shifts before they mature into full trend reversals.
● Liquidity Sweep Verification
The indicator actively monitors price interactions with localized structural extremes. A bullish sweep occurs when price pierces a recent significant low but closes decisively above it, creating a structural trap. Bearish sweeps apply the inverse logic to structural highs.
🎨 Visual Guide
● Heatmap Candles
The script overrides standard candle colors with a dynamic heatmap that visually translates the health and speed of the current retracement:
Green indicates a healthy, standard retracement zone.
Orange highlights a weak zone, suggesting the trend is losing foundational strength.
Red warns of a deep structural violation bordering on a reversal.
Purple explicitly signifies an aggressive Retracement Momentum Velocity (RMV), warning of high counter-trend momentum.
● Price Action Overlays and Labels
Pivot Highs and Lows are marked precisely with small red and green crosses. (Note: These appear retroactively once the defined right-side bars confirm the pivot).
Data Labels are plotted at swing extremes. These carry a dark blue-gray background with dynamic text colors. They display the exact retracement percentage alongside quality badges, anomaly alerts (orange for opportunity, red for danger), and RMV warnings.
● Liquidity Markers
When a sweep is detected, small distinct shapes appear. "LS" text markers are plotted in bright green below bullish sweeps and bright red above bearish sweeps, visually anchoring liquidity traps directly onto the price action.
● The Analytical Dashboard
Located in the top right corner, this panel serves as the central intelligence hub. It utilizes shaded backgrounds to organize critical data natively on the chart.
Retracement and Health bars utilize block characters (█/░) to visualize strength out of 100%.
HTF Alignment displays the macro bias via clear text and color codes (Green for Bullish, Red for Bearish).
The dashboard aggregates averages, velocities, and quality metrics into a readable, high-contrast matrix.
📌 Note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
📖 How to Use
Traders should monitor the dynamic relationship between the visual candle heatmap and the dashboard metrics.
Trend Continuation: Look for retracements that remain within the "Healthy" or "Shallow" zones (highlighted by green candles and positive dashboard health scores) that align with a bullish HTF signal.
Anomaly Exploitation: If an anomaly label appears marking a shallow retracement (orange text warning), this historically suggests an unusually strong impulse where standard deep pullbacks may not materialize.
Exhaustion Warnings: If the candles shift to purple, indicating an RMV Aggressive state, the counter-trend velocity is statistically high. Traders may use this to delay entries until momentum normalizes, or to identify structural traps if this aggression ends in a marked Liquidity Sweep (LS marker).
⚙️ Inputs and Settings
• Swing Settings
Controls the sensitivity of pivot detection. Higher values filter out market noise for major swing structures, while lower values react quickly to micro-trends.
• Retracement and Anomaly Parameters
Dictates the maximum number of historical retracements held in the memory array. The Standard Deviation Threshold allows users to expand or contract the mathematical boundary for what qualifies as an anomaly.
• RMV (Velocity) Limits
Controls the aggression threshold. Adjusting the multiplier determines how much faster a retracement must be compared to the historical average to trigger the purple heatmap and aggressive warnings.
• Liquidity Sweeps
Defines the lookback length for identifying local highs and lows that act as liquidity pools.
• Alerts and Dashboard Configuration
Enables fully customizable JSON-formatted alerts based on statistical deviations, and allows users to toggle or completely restyle the visual dashboard and heatmap components.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator is heavily anchored in statistical mechanics and kinematics principles applied to financial time-series data.
• Gaussian Distribution and Variance
Instead of utilizing fixed geometric sequences (such as the Golden Ratio), the framework treats market swings as a dataset exhibiting normal distribution characteristics. By calculating the variance and extracting the standard deviation of historical swing depths, the script establishes mathematically sound confidence intervals. When price action breaches these standard deviation bands, it represents a statistically significant outlier, formally alerting the user to a fat-tail market event.
• Financial Kinematics
The integration of Retracement Momentum Velocity (RMV) introduces physics-based kinematic principles to price action. In traditional mechanics, velocity is the rate of change of position with respect to a frame of reference. The algorithm defines the frame of reference as the structural swing, calculating velocity as the percentage of displacement per unit of time (bars). By tracking the rolling average of this velocity, the script can algorithmically determine when kinetic energy in a counter-trend direction is statistically abnormal, independent of the actual price level reached.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Indicator

Elaris Auto Trend Fibonacci ProElaris Auto Trend Fibonacci Pro
Overview
Elaris Auto Trend Fibonacci Pro is an advanced market structure and Fibonacci analysis tool designed to automatically identify directional trends, detect significant swing points, and project professional-grade Fibonacci retracement and extension levels directly on the chart.
Unlike manual Fibonacci drawing tools that require traders to constantly adjust anchor points, this indicator continuously analyzes confirmed swing structure and automatically maps the most relevant Fibonacci framework based on the current market trend.
The goal is to help traders quickly identify potential pullback zones, trend continuation areas, profit targets, and key reaction levels without manually redrawing Fibonacci levels throughout the trading session.
---
How The Indicator Works
1. Swing Structure Detection
The indicator first identifies confirmed swing highs and swing lows using a configurable pivot confirmation algorithm.
A swing is only considered valid after confirmation, which helps eliminate many false or premature swing points that often appear during volatile market conditions.
The minimum swing size can also be filtered using ATR-based validation, ensuring that insignificant market fluctuations are ignored.
---
2. Trend Identification
After detecting valid market structure, the indicator determines the dominant directional trend.
Bullish trends are identified when recent confirmed swing lows lead into higher confirmed swing highs.
Bearish trends are identified when recent confirmed swing highs lead into lower confirmed swing lows.
An optional EMA trend filter can be enabled to require alignment between price structure and moving average direction.
This additional layer helps reduce counter-trend Fibonacci projections.
---
3. Automatic Fibonacci Mapping
Once a valid trend is detected, Fibonacci levels are automatically projected between the most relevant confirmed swing points.
The indicator plots:
• 0.236 Retracement
• 0.382 Retracement
• 0.500 Midpoint
• 0.618 Golden Ratio
• 0.786 Deep Retracement
• 1.000 Retracement
These levels represent areas where pullbacks, reactions, trend continuations, or reversals may occur.
---
4. Golden Zone Highlighting
The area between the 50% and 61.8% retracement levels is automatically highlighted as the Golden Zone.
Many traders monitor this region because it often represents an area where institutional participants may re-enter an existing trend after a pullback.
The highlighted zone provides a quick visual reference for potential trend continuation opportunities.
---
5. Extension Targets
The indicator can optionally project Fibonacci extension levels beyond the current trend.
Available extension targets include:
• 1.272 Extension
• 1.618 Extension
• 2.000 Extension
These levels can be used as potential profit-taking areas, trend continuation objectives, or future reaction zones.
---
6. Trend Dashboard
A built-in dashboard provides real-time information including:
• Current trend direction
• Swing strength relative to ATR
• Fibonacci anchor direction
• Golden zone status
• Indicator operating mode
The dashboard helps traders evaluate current market conditions without needing additional analysis tools.
---
How To Use
Trend Continuation
1. Wait for a confirmed bullish or bearish trend.
2. Allow price to retrace toward the highlighted Fibonacci levels.
3. Monitor the Golden Zone for potential continuation setups.
4. Use extension levels as potential target areas.
Pullback Analysis
The 38.2%, 50%, and 61.8% retracement levels can help identify areas where temporary corrections may end and the primary trend may resume.
Target Projection
The Fibonacci extensions can be used to estimate possible future trend objectives after a successful continuation move.
---
Important Notes
• The indicator uses confirmed swing points and does not rely on future-looking calculations after confirmation.
• Fibonacci levels automatically update when a new confirmed market structure is established.
• The indicator is designed for trending markets and may generate fewer meaningful projections during prolonged ranging conditions.
• This tool is intended for technical analysis and should not be used as a standalone trading system.
---
Best Markets
The indicator can be applied to:
• Cryptocurrency Markets
• Forex Markets
• Stock Markets
• Index Markets
• Commodity Markets
It is particularly effective on higher liquidity instruments where market structure tends to be more consistent.
---
Best Timeframes
Recommended timeframes:
• 15 Minutes
• 1 Hour
• 4 Hours
• Daily
Higher timeframes generally produce more reliable market structure and Fibonacci projections.
---
Alerts
The indicator includes alerts for:
• Trend direction changes
• Golden Zone interactions
• Key Fibonacci level breaks
These alerts can be integrated into trading workflows for additional monitoring and confirmation.
---
Thank you for using Elaris Auto Trend Fibonacci Pro.
Indicator

Liquidity Sweeps [Quantum Algo]Liquidity Sweeps is an open-source liquidity sweep indicator that maps resting
liquidity at swing highs and swing lows, then flags the exact moment that liquidity is swept and
rejected — the classic stop-hunt behaviour traders watch for in Smart Money Concepts (SMC).
WHAT IS A LIQUIDITY SWEEP?
A liquidity sweep (also called a liquidity grab or stop hunt) happens when price briefly spikes
beyond an obvious swing high or swing low — where stop-loss and breakout orders rest — and then
closes back inside the prior range. The wick takes the liquidity; the close shows the breakout
failed. Liquidity sitting above swing highs is buy-side liquidity (BSL); liquidity sitting below
swing lows is sell-side liquidity (SSL).
A bearish liquidity sweep occurs when buy-side liquidity above a swing high is swept and price
closes back below it. A bullish liquidity sweep occurs when sell-side liquidity below a swing low
is swept and price closes back above it.
HOW THE INDICATOR WORKS
- It detects confirmed swing highs and swing lows using a configurable pivot strength, and draws a
liquidity level at each one. Buy-side levels sit above price; sell-side levels sit below.
- Each level extends to the right until it is interacted with.
- When a candle wicks through a level but closes back inside, the indicator marks a liquidity
sweep with a label and an optional highlight on the sweeping wick.
- An optional volume filter confirms only sweeps where the sweeping candle trades above its
average volume, filtering out low-conviction wicks.
- If price instead closes fully through a level, that is treated as a clean break (a plain
liquidity grab / breakout), not a sweep, and the level is retired without a signal.
WHAT IT SHOWS
- Mapped buy-side (BSL) and sell-side (SSL) liquidity levels.
- Bullish and bearish liquidity sweep markers, the moment a level is swept and rejected.
- Optional wick highlighting on the sweep candle.
- A dashboard showing bullish/bearish sweep counts, the last sweep direction, and the nearest
un-swept buy-side and sell-side levels with their percentage distance from price.
HOW TO USE IT
Liquidity sweeps are most useful as a timing and context tool, not a standalone buy/sell system.
A common workflow:
- Mark the obvious highs and lows where liquidity is likely resting.
- Wait for a sweep into one of those pools (a wick through, close back inside), ideally with the
volume filter confirming participation.
- Look for confirmation in your own process — a market-structure shift, an order block, a
fair-value-gap fill, or higher-timeframe trend alignment — before acting.
- A bearish sweep above resistance can precede a move down; a bullish sweep below support can
precede a move up. Always define risk beyond the swept extreme.
SETTINGS
- Pivot Strength: how many bars define a swing; higher values keep only major liquidity pools.
- Max Levels per Side: how many recent levels to keep mapped.
- Volume Confirmation: toggle, average length, and multiplier to qualify a sweep.
- Treat Clean Breaks as Grabs: retire levels that are broken through rather than swept.
- Line width, style, and transparency for clear level visibility.
- Full colour controls and a movable dashboard.
ALERTS
Three named alert conditions are included: Bullish Liquidity Sweep, Bearish Liquidity Sweep, and
Any Liquidity Sweep.
DISCLAIMER
For educational purposes only. This is a technical analysis tool, not financial advice, and it does
not predict price. Trading involves risk and you can lose your capital. No indicator is profitable
on its own — always do your own research and use proper risk management. Indicator

Smart Gap & Support and Resistance Breakout [MarkitTick]💡 This technical analysis script provides a highly sophisticated framework for market structure mapping, gap categorization, and breakout validation. By tracking structural pivot points and combining them with algorithmic gap analysis, the indicator systematically identifies areas of significant price imbalance and evaluates their impact on subsequent price action. The tool dynamically maps historical and developing support and resistance levels across multiple timeframes, integrating volume analysis and time-decay functions to ensure only the most relevant structural levels remain active. Designed for robust technical evaluation, it utilizes a strict non-repainting architecture for its multi-timeframe data retrieval, ensuring historical integrity during retrospective analysis.
✨ Originality and Utility
While many indicators plot basic support and resistance levels or highlight price gaps, this tool introduces a high degree of originality through its algorithmic synthesis and mashup methodology. The combination of structural pivot tracking and gap categorization is a deliberate and logical confluence. Gaps inherently represent sudden shifts in supply and demand, frequently acting as hidden support or resistance zones. By merging gap analysis with traditional pivot-based market structure, the script provides a unified view of market geometry.
Furthermore, the script distinguishes itself by categorizing gaps dynamically into three distinct types: Breakaway, Runaway, and Exhaustion. Rather than treating all price voids equally, it applies contextual logic—such as trend maturity and volume confirmation—to evaluate the probabilistic nature of the gap. The utility is further enhanced by an advanced multi-timeframe engine that overlays macro structural levels onto the active chart without introducing lookahead bias, providing traders with a pristine, top-down analytical perspective within a single pane.
🔬 Methodology and Concepts
● Structural Pivot Detection
The foundation of the script relies on identifying Swing Highs and Swing Lows.
A Pivot High is established when a specific high price is preceded and followed by a defined number of lower highs.
A Pivot Low is established when a specific low price is preceded and followed by a defined number of higher lows.
These points act as the empirical anchors for drawing support and resistance lines.
● Gap Categorization Engine
The script continuously scans for bullish and bearish price gaps (defined as a strict price void between the current low/high and the high/low of two bars prior, combined with directional candle confirmation). Once a gap exceeds the minimum size threshold, it is classified using the following methodology:
Breakaway Gaps (BW): Identified if the gap's occurrence coincides with the breaking of the most recently established structural pivot level. This signifies a forceful escape from a prior consolidation or trend phase.
Exhaustion Gaps (EX): Identified if the gap occurs after a prolonged trend duration (trend maturity) and is accompanied by a significant volume spike. This logic assumes that late-stage acceleration coupled with extreme volume often represents climatic buying or selling.
Runaway Gaps (RW): Any valid gap that does not meet the strict criteria for Breakaway or Exhaustion is classified as Runaway, representing standard trend continuation.
● Non-Repainting Multi-Timeframe Integration
To map higher timeframe (HTF) levels onto the lower timeframe (LTF) chart safely, the script employs a strict index-offset methodology. When fetching HTF pivot data, the script references the previous bar's calculated state while utilizing a lookahead parameter. This architectural design explicitly prevents future data leakage (lookahead bias), ensuring that historical backtesting and real-time execution behave identically.
● Breakout and Time-Decay Logic
Support and resistance lines are evaluated for breakouts based on closing prices. A breakout is only considered valid if the closing price decisively crosses the level and, if volume confirmation is enabled, the breakout bar's volume exceeds the defined moving average threshold. To maintain a clean visual workspace, levels can be subjected to a time-decay function, removing them from the chart after a user-defined number of bars.
🎨 Visual Guide
● Support and Resistance Lines
Green Lines: Represent active support levels derived from current timeframe pivot lows.
Red Lines: Represent active resistance levels derived from current timeframe pivot highs.
Thick Light Blue Lines: Highlight major support levels from the higher timeframe.
Thick Orange Lines: Highlight major resistance levels from the higher timeframe.
● Market Structure Labels
Red "HH" / "LH" Labels: Denote Higher Highs or Lower Highs at resistance pivots.
Blue/Green "LL" / "HL" Labels: Denote Lower Lows or Higher Lows at support pivots.
Purple "EH" / "EL" Labels: Indicate Equal Highs or Equal Lows.
● Gap Visualization Boxes
Blue Boxes: Highlight Breakaway Gaps (BW).
Orange Boxes: Highlight Runaway Gaps (RW).
Red Boxes: Highlight Exhaustion Gaps (EX).
Dotted Mid-Lines: Each gap box contains a dotted line calculating the exact mathematical midpoint of the gap, often acting as a highly reactive micro-level.
● Breakout Markers
Green Upward Triangles (▲): Plotted below the price to indicate a confirmed breakout of a resistance level. The number indicates how many distinct resistance levels were broken on that bar.
Red Downward Triangles (▼): Plotted above the price to indicate a confirmed breakdown of a support level.
Cyan/Orange Triangles: Represent breakouts of higher timeframe (HTF) levels.
📖 How to Use
● Interpreting Gap Signals
Breakaway Gaps: When a blue Breakaway gap forms, it suggests the initiation of a new directional phase. Traders typically monitor the borders of this gap to act as strong support or resistance upon any subsequent retests.
Runaway Gaps: The appearance of an orange Runaway gap confirms underlying trend strength. The midpoint of these gaps (the dotted line) is often used to gauge short-term trend health.
Exhaustion Gaps: A red Exhaustion gap serves as a cautionary signal. Because it indicates mature trend fatigue coupled with high volume, it suggests that the current directional momentum may be nearing a terminal phase or sharp retracement.
● Trading Support and Resistance Breakouts
Structural Mapping: Use the dynamically drawn S/R lines to identify the boundaries of the current market range.
Volume Confirmation: When the indicator plots a breakout triangle, ensure that it aligns with your broader directional bias. If the volume confirmation setting is active, the triangle inherently signifies that the breakout possessed above-average participation, increasing the mathematical probability of continuation.
Multi-Timeframe Confluence: Pay special attention when current timeframe price action interacts with the thicker HTF lines. A breakout that fractures both a LTF and HTF resistance level simultaneously carries significantly more structural weight.
⚙️ Inputs and Settings
● Swing Logic
Left Bars / Right Bars: Determines the number of bars required on either side of a candle to confirm a structural pivot. Higher values yield longer-term, more significant levels.
Max Stored Levels: Controls how many historical S/R lines remain active on the chart to prevent visual clutter.
Max Break Labels: Limits the number of historical breakout triangle markers displayed.
● Usability and Time Decay
Multi-Timeframe: Allows overriding the base timeframe for calculations.
Enable Time Decay: When activated, S/R levels that remain untested or unbroken will automatically expire and be removed from the chart.
Decay Period (Bars): The specific threshold of bars after which an untested level is deleted.
● Higher Timeframe (HTF) Levels
Enable HTF Levels: Toggles the calculation and plotting of macro S/R lines.
HTF Timeframe: The target timeframe for macro structural analysis (e.g., Daily, Weekly).
Hide Current TF When HTF Active: A visual filter to isolate only macro levels when desired.
● Algorithmic Filters and Analysis
Volume Confirmation: When true, breakouts are only validated if the bar's volume exceeds a moving average.
Min Gap Size (Points): Establishes a raw point threshold that a price void must exceed to be classified as a gap, filtering out negligible price skips.
Volume Spike Multiplier: The factor by which current volume must exceed the average to trigger Exhaustion gap logic.
Trend Maturity (Bars): The minimum number of bars a trend must have persisted from the last major pivot to allow for an Exhaustion gap classification.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Auction Market Theory and Liquidity Voids
The gap categorization matrix within this script is deeply rooted in Auction Market Theory (AMT). In AMT, price discovery is a continuous auction searching for liquidity. A gap represents a structural liquidity void—a pricing zone where no double-sided auction occurred due to extreme urgency from either buyers or sellers. The script's identification of Breakaway gaps mathematically isolates moments where this urgency successfully overcomes historical supply or demand nodes (the pivots). The dotted midpoint lines inside the gap boxes serve as theoretical "Fair Value" approximations for the void, representing the mean reversion target if the market attempts to repair the inefficient auction.
● Volume Spread Analysis (VSA) Integration
The Exhaustion gap classification heavily relies on principles derived from Volume Spread Analysis. In VSA, volume represents the effort of market participants, while price spread represents the result. The script mathematically quantifies an anomaly: when an extended trend (measured by the Trend Maturity parameter) produces a sudden gap on extreme volume (measured by the Volume Spike Multiplier), it implies climactic transfer of inventory from strong hands to weak hands. The algorithmic detection of these specific variables provides a quantifiable method for identifying trend exhaustion without relying on lagging, bounded oscillators.
● Fractal Market Geometry
By rendering both LTF and HTF structural pivots within the same visual plane, the script operationalizes the concept of fractal market geometry. Financial time series exhibit self-similarity across different scales. A pivot high on a 15-minute chart is formed by the same behavioral mechanics as a pivot high on a Daily chart, but they carry vastly different liquidity weights. The script's strict index-offset MTF architecture ensures that the geometric relationship between these distinct fractal layers is evaluated with absolute temporal accuracy, providing a mathematically sound representation of macro supply and demand overlaying micro price action.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Indicator

EMA Trend Dash Board by [Itto Ryu]# EMA Trend Dash Board — Trend stage classifier on a 5-EMA stack
A pure-EMA trend dashboard. Five exponential moving averages (10/20/50/100/200)
plus three derived signals — stack alignment, EMA50 slope, and the fast-vs-trend
gap — classify the market into one of four trend stages: ACCEL → MATURE → DECEL
→ REVERSAL. A 0-to-100 Bull/Bear score and a state-machine VERDICT row summarise
all of it in a single glance.
## What's different from a generic EMA ribbon
Most EMA-ribbon scripts only colour the EMAs. This one adds:
1. **Stage classification** — instead of "trending vs ranging", the script tells
you *where in the trend you are*. Stage 1 (ACCEL) is for adds; Stage 3 (DECEL)
warns to trim; Stage 4 (REVERSAL) tells you the stack has lost alignment.
2. **Bull/Bear score (0–100)** — composed of:
- Price-above-EMA: 8 pts each (max 40)
- Stack-pair ordering: 10 pts each (max 40)
- Trend-EMA slope direction: 10 pts
- Gap expansion (only when stack aligned): 10 pts
3. **Verdict state machine** — combines stage + score into one action label
(STRONG SETUP, SIGNAL CLEAR, TREND ACCEL, EASE, WATCH, EXIT, ...).
## Defaults (and why)
| Input | Default | Reasoning |
|---|---|---|
| EMA lengths | 10 / 20 / 50 / 100 / 200 | Classic Stan Weinstein / Mark Minervini ladder |
| Slope/Gap lookback | 5 bars | Catches turns without over-smoothing on intraday |
| Slope flat threshold | 0.1% | Below this magnitude the trend EMA is treated as flat — avoids false up/down on chop |
| Gap expansion threshold | 0.05% | Min change in |gap| to count as expanding/compressing |
| Dashboard | top_right, normal | Standard placement; tiny/small for low-res screens |
## Visual elements
| Element | Meaning |
|---|---|
| 5 EMA lines | EMA 1 (fast, yellow) → EMA 5 (long, slate). EMA 3 (Trend, pink) drawn thicker as the slope reference |
| Fast-Trend fill | Green when EMA1 > EMA3, red otherwise. Quick visual on momentum direction |
| Right-edge labels | EMA name tags at the latest bar |
| Dashboard | Trend / EMA Stack / Trend Dynamics / Scoring / Signal / Verdict sections |
## Who this is for
- Trend-following swing traders who already use EMA stacks but want a state read-out
- Discretionary traders who want a "what stage am I in?" check without staring at the chart
- Anyone replacing 3-4 separate EMA indicators with one consolidated dashboard
## Who this is NOT for
- Pure mean-reversion / range traders — EMAs are the wrong tool
- Tick scalpers — the stage/gap thresholds are tuned for swing+intraday, not sub-minute
- Anyone needing entry/exit signals automated — this is a *read-out*, not a strategy
## How to use
1. Apply on standard candle chart, any timeframe (works best 15m → Daily)
2. Read the **Stage** row first — that's your context
3. Cross-check with **Verdict** row — that's your action
4. The Bull/Bear bars give a confidence reading; the SIGNAL row gives the discrete label
5. Configure alerts on STRONG Long/Short or Stack Broken for hands-off monitoring
## Common mistakes
- **Entering on Stage 4 just because Verdict says STRONG SETUP** — Stage 4 = stack lost alignment, by design it forces a re-check. Wait for re-alignment.
- **Reading dashboard on Heikin Ashi** — EMAs are calculated on HA close (a smoothed value), not real close. Numbers will not match a standard-chart EMA. Use standard candles for the dashboard.
- **Tuning EMA lengths for one symbol and assuming portability** — re-test on each instrument; trend EMAs are regime-dependent.
## Disclosure
- **Pine version**: v6
- **Repaint**: NO — all calculations use confirmed-bar data. Dashboard and right-edge labels refresh on the last bar (cosmetic only) and do not modify historical bars.
- **Lookahead**: NONE — no `request.security` calls.
- **Chart type**: Designed for standard candle charts. On Heikin Ashi / Renko / Range / PnF / Kagi the EMA values are calculated against the chart's synthetic close and will not match a standard-chart EMA.
- **Originality**: Generic 5-EMA inputs; novel additions are the Stage classifier, Bull/Bear scoring weights, and Verdict state machine.
- **Predecessor**: Extracted from the author's earlier "Ichimoku Trend Dash Board" (Ichimoku + EMA combined). This EMA-only variant strips Ichimoku, ADX, RSI, MACD, and SL/TP logic for a focused trend-stage read.
## Disclaimer
For educational purposes only. Not financial advice. Trading involves
substantial risk of loss — past performance does not guarantee future results.
You are solely responsible for your own trading decisions. Script provided
"as is" with no warranty; author is not liable for any losses. Indicator
