Gravity Well Trend | Lyro RSOverview:
Gravity Well Trend is a volume-weighted mean-reversion and trend tool built around a simple idea: the volume-weighted price center is where the market's "mass" sits, and price orbiting near it is effectively captured. A real trend only exists when price achieves sufficient distance from that center in ATR terms while the center itself is accelerating the same direction — an escape from the well, not just a temporary orbit. Three selectable signal modes let it run as a strict trend filter, a simple midline flip, or a band-reclaim system.
Key Features
Volume-Weighted Gravity Center: Calculates a volume-weighted moving average as the "center of mass" for price, forming the core reference line the rest of the indicator is built around.
Escape-Distance Trend Logic: In Trend mode, a bullish or bearish trend only confirms when price is far enough from the center (in ATR units) AND the center itself is moving the same direction — distance alone with a flat center doesn't count.
Three Signal Modes: Trend — flips only on a confirmed escape from the gravity well. Midline — simple long/short based on whether price is above or below the center. Bands — flips long on a cross above the lowest band and stays long until a cross below the highest band flips it short.
Layered Band Envelope: Plots an outer and inner band pair around the center (inner bands at half the outer width), with graded zone fills between center and bands for a clear visual sense of price's position within the well.
Gradient Strength Visualization: The gravity center line and candle coloring use a gradient blend based on how far price has traveled from center relative to the band width, giving an at-a-glance read on trend conviction.
Candle Coloring: Optionally recolors chart candles using the same gradient logic as the center line.
Customizable Visuals: Choose from 4 preset palettes — Classic, Mystic, Accented, Royal — or define your own custom bullish/bearish colors.
Built-In Signals: Automatically plots long/short labels on confirmed trend flips.
How It Works
Center Calculation – Computes a volume-weighted moving average of the source over the chosen length to establish the gravity center.
Distance Measurement – Measures the distance between price and the center in ATR units to gauge how far price has strayed from its center of mass.
Band Construction – Builds an outer band pair at the full Band Width setting and an inner pair at half that width, forming a layered envelope around the center.
Mode-Dependent Trend Logic – Trend mode requires both sufficient escape distance and a rising/falling center; Midline mode simply follows price relative to center; Bands mode uses crosses of the outer bands to flip and hold direction.
Visualization – Plots the gravity center with layered glow, the band envelope with graded fills, flip signal labels, and gradient-based candle coloring.
Practical Use
Trend Confirmation – Use Trend mode when you want to avoid acting on price simply drifting away from center without real directional follow-through in the center itself.
Simple Directional Bias – Use Midline mode for a straightforward above/below-center read when you want more frequent signals.
Range/Reclaim Trading – Use Bands mode to trade reclaims of extreme levels, holding a position until the opposite extreme is reclaimed.
Zone Awareness – Watch the graded band zones to see how extended price is relative to its recent volume-weighted center before committing to a trade.
Customization
Switch between Trend, Midline, and Bands signal modes to match your trading style.
Adjust Length to tune how responsive the gravity center is to recent price/volume.
Adjust Escape Distance to control how far price must travel (with a moving center) to confirm a trend in Trend mode.
Adjust Band Width and ATR Length to reshape the band envelope and its sensitivity.
Toggle bands, signal labels, and candle coloring independently.
Pick a preset palette or define fully custom bullish/bearish colors.
⚠️Disclaimer
This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals. Indicatore

Fractal ZigZag with Retest & Filters By WiselyWealthIndicator ; Fractal ZigZag with Retest & Filters
Introduction
Welcome to the comprehensive guide for the 'Fractal ZigZag with Retest & Filters' indicator. This custom-built Pine Script indicator is an advanced technical analysis tool designed explicitly for the TradingView platform. At its core, the primary objective of this script is to provide traders with high-probability entry signals by systematically filtering out market noise, avoiding false breakouts, and ensuring alignment with the overarching macroeconomic trend.
Many retail traders fall into the trap of entering positions during sudden, volatile price spikes, only to suffer heavy drawdowns when the market naturally pulls back. This script mitigates that risk by enforcing a strict, rules-based approach: identifying structural shifts, confirming the initial breakout, and mathematically demanding a pullback (or "retest") before issuing a final trading signal. Additionally, it features built-in alert conditions, making it perfectly suited for algorithmic traders who wish to automate their strategies via Webhooks, Telegram bots, or MT5 API integrations.
Technical Mechanism
The mechanical operation of this script is multi-layered, relying on a confluence of structural mapping, trend filtering, and volatility-based retest calculations. Here is a detailed, step-by-step technical breakdown of how the script detects and generates its buy and sell signals:
Mapping Market Structure with Williams Fractals:The foundation of the script relies on identifying key swing highs and swing lows using Williams Fractals. By default, the indicator evaluates a 5-bar lookback and look-forward period to pinpoint these structural pivots. Once a valid upward or downward fractal is identified, the script connects them using a dynamic ZigZag line. This creates an unambiguous visual map of the market's underlying structure, cleanly displaying the sequence of higher highs or lower lows.
Initial Breakout Identification: The indicator actively monitors the current closing price in relation to the most recently confirmed fractal levels. A raw bullish breakout is registered the moment a candle closes definitively above the last established fractal high. Conversely, a raw bearish breakout is noted when the closing price drops below the most recent fractal low. To prevent redundant alerts, the script locks the current trend state upon a successful breakout.
The ATR-Based Retest Engine: This is the most sophisticated aspect of the indicator. When "Enable Retest Mode" is activated, the script refuses to issue an immediate entry signal at the exact moment of the breakout. Instead, it uses the Average True Range (ATR) over a 14-period lookback to measure current market volatility. For a bullish setup, it calculates a "Retest Target" by subtracting a user-defined ATR multiplier (default 1.0) from the breakout close price. It then starts a countdown timer, allowing a maximum number of candles (default 3) for the price to drop back down and touch this target. If the pullback is successful within the time limit, the raw buy signal is triggered. If the time expires without a retest, the setup is safely invalidated.
Macro Trend Filtering: Before finalizing any signal, the script consults a 200-period Exponential Moving Average (EMA). If the trend filter is enabled, a buy signal is entirely suppressed unless the closing price is strictly above the EMA200. Sell signals similarly require the price to remain below the EMA200. Users can also force the script into a "Buy Only" or "Sell Only" mode to align with their long-term directional bias.
How to Use and Best Practices
To extract maximum profitability and accuracy from this script, traders must apply the correct settings and deploy it in appropriate market environments.
Recommended Settings and Configuration:
Conservative Swing Trading: Ensure the EMA200 Trend Filter remains enabled to keep you on the side of institutional momentum. You may also want to increase the Fractal Periods from 5 to 7 or 9. This filters out minor price fluctuations and forces the script to base its breakouts on major structural swing points.
Retest Calibration for Volatility:** The default ATR multiplier is 1.0, and the wait limit is 3 candles. If you are trading on lower timeframes (e.g., 5-minute or 15-minute charts), breakouts can take slightly longer to retest. Consider increasing the "Max Candles to wait" to 5 or 6. For highly volatile assets, increasing the ATR Multiplier to 1.5 can help you secure a deeper, more favorable pullback entry.
Directional Lock: If higher timeframe analysis dictates a strong bull market, use the "Trade Direction" setting to restrict signals to "Buy Only," eliminating counter-trend noise during minor market corrections.
Suitable Markets and Timeframes:
Forex and Indices: This indicator performs exceptionally well on major Forex pairs (EUR/USD, GBP/JPY) and Global Indices (US30, NAS100) on the 1-Hour and 4-Hour timeframes. These assets heavily respect market structure, and liquidity grabs (retests) are highly common after structural breakouts.
Cryptocurrency: Bitcoin and Ethereum on the 15-minute to 1-Hour charts are excellent candidates, provided you adjust the ATR multiplier to account for crypto's volatile, whipsaw movements.
Markets to Avoid: Avoid using this script in heavily consolidated, range-bound, or sideways markets. Breakout and trend-continuation logic inherently struggles during prolonged periods of low volatility, where price chops indiscriminately around the 200 EMA without clear directional follow-through. Indicatore

EZ$ AMDBrief update description
EZ$ AMD Extreme Distribution v2.2 refines the indicator around higher-timeframe AMD narrative and precise lower-timeframe execution. Its primary purpose is to identify one high-quality AMD BUY near the lowest qualified manipulation area or one AMD SELL near the highest qualified manipulation area.
AMD signals require a completed accumulation period, manipulation beyond the accumulation range, a meaningful external-liquidity sweep, a confirmed reclaim, microstructure shift, displacement, and majority multi-timeframe bias agreement. The default model uses 4-hour AMD with 1-minute or 5-minute execution, making it suitable for Asia, London, and New York trading.
The live higher-timeframe candle synchronizes with the selected AMD model and changes color in real time:
Yellow: accumulation or waiting
Aqua: low-side manipulation
Purple: high-side manipulation
Green: bullish distribution
Red: bearish distribution
Standard BUY/SELL signals are optional and disabled by default. Support/resistance and higher-timeframe supply/demand origin zones remain available as visual context without independently creating AMD entries.
Settings guide
1. Recommended: AMD extreme signals only
This is the cleanest setup and the one I recommend.
Simple Signal Engine
Setting Value
Standard BUY / SELL Display Off
Confirm Signals on Candle Close On
Signal Gap 8
Microstructure Length 2
Displacement Range × ATR 0.80
Displacement Body ÷ Range 0.60
This removes ordinary reaction signals and leaves AMD as the main entry engine.
Optimal Higher-Timeframe Signals
Setting Value
Show Confirmed HTF BUY / SELL Off
This prevents additional HTF labels from appearing.
Bias Dashboard
Setting Value
Show Bias-Only Dashboard On
Use Confirmed HTF Candles On
Count 5m, 15m, 1H, 2H, 4H, Daily All On
Minimum Matching Biases 4
An AMD BUY requires at least four bullish timeframes, while an AMD SELL requires at least four bearish timeframes. The aligned side must also outnumber the opposing side.
AMD settings
Setting Value
Show 4-Hour AMD On
All other AMD timeframes Off
Show AMD Extreme-Level Signals On
Hide Standard Signals When AMD Signals Are On On
AMD Signals Only on 1m / 5m Charts On
AMD Signal Timeframe 4H
Require External Level Liquidity Sweep On
Require Close Back Through Swept Level On
Require Microstructure Shift + Displacement On
One AMD Signal Per Candle On
Use Accumulation High / Low On
Use Selected AMD Candle Open Off
AMD Zone Trigger Mode Deepest Zone Reaction
Use HTF Origin Zones for AMD Location On
Use HTF Zone Edges + Midpoint On
Require Level Cluster Inside HTF Zone On
Minimum Levels in Cluster 2
Show Manipulation Extreme Diamond Off
This is the strict A+ configuration.
2. Structural-zone visuals
For your 4-hour AMD and 1-minute execution workflow:
Setting Value
Zone Model Adaptive
Chart Timeframe Zone Off
5-Minute Zone Off
15-Minute Zone Off
1-Hour Zone Off
2-Hour Zone Off
4-Hour Zone On
Daily Zone Off
Show Interaction Volume Off
Show Timeframe + Zone Type On
Use Visible Zones for Standard Signals Off
Require FVG / Imbalance for S/D On
Maximum S/D Retests 1
The 4-hour supply/demand origin zone remains visible and can improve AMD location, but it does not create an entry by itself.
3. Key levels
Keep these on:
Camarilla H4/L4
Previous day high/low
Previous week high/low
Previous 4-hour high/low
Asia high/low
London high/low
New York high/low
Overnight high/low
Keep these off for less noise:
Central Pivot
H3/L3
Daily, weekly, and monthly opens
Previous mids
Monday levels
Quarter levels
Yearly levels
Timed opens
The highs become possible SELL-side liquidity, and the lows become possible BUY-side liquidity.
4. Live AMD candle
Setting Value
Show Live HTF Candle On
Sync Live Candle to AMD Signal Timeframe On
Color Live Candle by Real-Time AMD Phase On
Show Timeframe Label On
Show Candle Timer On
The candle color is developing visual context. An actual AMD signal still requires a confirmed execution candle.
To show regular BUY/SELL signals too
Use:
Setting Value
Standard BUY / SELL Display Bias-Aligned Only
Hide Standard Signals When AMD Signals Are On Off
Show AMD Extreme-Level Signals On
This displays both:
Ordinary bias-aligned BUY/SELL
Strict AMD BUY/AMD SELL
For even stricter ordinary signals, turn Use AMD to Filter Standard Signals on. Ordinary BUY/SELL signals will then require matching AMD distribution.
I would leave this off initially because your primary focus is the AMD extreme signal.
To show only regular signals
Setting Value
Standard BUY / SELL Display Bias-Aligned Only
Show AMD Extreme-Level Signals Off
Show Confirmed HTF BUY / SELL Off
This returns the indicator to ordinary level reactions filtered by majority bias.
To show no signals at all
Use this visual-only mode:
Setting Value
Standard BUY / SELL Display Off
Show AMD Extreme-Level Signals Off
Show Confirmed HTF BUY / SELL Off
Show Manipulation Extreme Diamond Off
You may still keep these visible:
4-hour AMD boxes
Live AMD candle
Bias dashboard
Key levels
4-hour supply/demand zone
This provides AMD market context without any entry symbols.
When no AMD signal appears
That does not necessarily mean the indicator is malfunctioning. Under the recommended settings, all of these must qualify:
You are using a 1-minute or 5-minute chart.
The 4-hour accumulation period completed.
Price manipulated beyond the correct accumulation boundary.
An external high or low was swept.
Price closed back through the swept level.
Price reclaimed into the accumulation range.
Microstructure shifted.
Displacement confirmed.
At least four of six biases agreed.
The required level cluster or HTF origin-zone condition qualified.
No earlier AMD signal was already issued for that 4-hour model.
Indicatore

Jackfx Trendlines MachineJackfx Trendlines Machine
The Jackfx Trendlines Machine is an advanced, automated technical analysis tool designed to eliminate the subjectivity and noise associated with manual trendline drawing. Built for traders who rely on structural breakouts and retests, this indicator dynamically identifies high-probability zones by filtering out volatile market spikes.
Core Mechanics
Instead of relying on standard candlestick wicks, the indicator calculates major market pivots using background Heikin Ashi (HA) data. Because Heikin Ashi averages price action, the resulting swing highs and lows represent true structural turning points rather than momentary liquidity sweeps. The indicator then connects these definitive pivots on your standard candlestick chart to draw accurate, objective trendlines.
Key Features
Noise-Free Pivot Detection: By sourcing high/low pivots from Heikin Ashi data, the indicator ignores "fakeout" wicks, anchoring trendlines strictly to validated market structure.
Dynamic Auto-Drawing: The script automatically isolates the two most recent and significant swing highs (for downtrends) and swing lows (for uptrends), connecting them and projecting the line forward to anticipate future touches.
ATR-Filtered Breakouts: To protect against false breakouts, the indicator incorporates an Average True Range (ATR) buffer. A breakout signal (indicated by visual triangles) is only generated when the price closes across the trendline with sufficient momentum.
Retest Validation: The extended trendlines act as forward-looking support and resistance levels. When a breakout occurs, traders can use the extended lines to stalk high-probability retest entries.
Customizable Sensitivity: Users can adjust the "Pivot Length" inputs to tailor the indicator to their trading style. Lower values plot minor, short-term trendlines, while higher values isolate major, macro-structural trendlines.
Ideal Use Case
This tool is highly effective for price action traders looking to automate their structural analysis. It excels in identifying clean breakout setups and providing objective zones for pullback/retest entries across all timeframes. Indicatore

Asian Range Liquidity Sweep - Kill Zone ReversalASIAN RANGE LIQUIDITY SWEEP — the complete ICT Asian Range liquidity model in one indicator
The Asia session builds a small, quiet range. London opens, runs the stops sitting above or below that range, and then walks the price the other way. That single move is one of the most repeatable things in FX, and this indicator is the full rule set for it: the range, the liquidity raid, the higher-timeframe point of interest that makes the raid tradeable, the entry, the stop, the targets — and, just as important, the days on which the raid will NOT happen.
Everything is drawn in New York time, the way the model is defined.
━━━ WHAT IT DOES ━━━
① ASIAN RANGE (20:00 – 00:00 New York)
A time based range, not a structural one. The box, its high, its low and its 50 % are projected forward into the whole trading day. The high is buy side liquidity, the low is sell side liquidity. Direction is mechanical and never inverts: above the range this model only sells, below the range it only buys.
② HIGHER TIMEFRAME POI ENGINE — the filter that decides everything
A raid of the Asian high on its own is, most of the time, a trap. The raid only becomes high probability when it lands inside a higher-timeframe point of interest. The indicator scans three timeframes at once (15m / 1h / 4h by default) for
· Fair Value Gaps
· Order Blocks
· Breaker Blocks (a demand block that price closed through and that now acts as resistance)
· Inverse Fair Value Gaps (a bullish gap that got closed through and flipped bearish)
Every zone is anchored to the exact candles that built it, is extended while it is alive, and is dropped once it is used up or once it sits too far from the daily range to matter. On top of that, the higher-timeframe structure itself has to agree: bearish structure for shorts, bullish for longs.
③ LONDON KILL ZONE (02:00 – 05:00, optional 01:30 start) — Trade 1
Between those hours the indicator waits for price to raid the Asian high (or low) INTO one of those zones. A raid is not even accepted as valid until price has traded back into a fair value gap. Then it waits for a lower-timeframe confirmation and enters at a point of interest — never at market:
· MSS + FVG — market structure shift, entry on the retracement into the gap
· CISD — change in state of delivery, entry back at the CISD level itself
· FVG tap — proximal edge on small gaps, 50 % on big ones
· HIDDEN ORDER BLOCK — the opposite-colour candle trapped between two same-direction fair value gaps. The block almost nobody marks, and the sharpest entry in the whole model
That list is a risk ladder: 1m MSS+FVG is the most aggressive and pays the most, 15m FVG is the safest, wins most often and pays the least. Pick the timeframe you actually want to trade and run the indicator there.
Stop goes on the protective structure that belongs to the entry zone. Target 1 is always the opposite side of the Asian range. Target 2 extends to the next inducement swing — the draw for the day.
④ NEW YORK KILL ZONE (07:00 – 10:00) — Trade 2, the continuation
When the London raid then breaks the OPPOSITE side of the Asian range with displacement, the London extreme is very likely the high or the low of the day. The indicator draws the optimal trade entry fibonacci over that impulse — 0.5 / 0.618 / 0.705 / 0.79 — and takes the continuation from the retracement into it, with the stop beyond 0.79 or 1.0. The setup is strongest when the origin zone was a 4h zone, because the whole day is then a 4h market-maker model running internal to external. If the draw on liquidity was already reached before New York opens, the day is flagged as low probability and skipped.
⑤ THE NO-SWEEP FILTERS — the part almost nobody explains
Two situations mean the raid you are waiting for will never come:
· HTF POI ALREADY TAPPED IN ASIA — price worked into the zone during the Asian session and then broke structure against the range. The Asian high is now protected. The indicator says so on the chart and points you at the fallbacks instead: the 50 % of the range, an internal range high (trend line liquidity), or a fair value gap built inside the Asian session.
· STRONG HIGH / STRONG LOW INSIDE THE RANGE — a sweep immediately followed by a break of structure. That extreme is protected. What looks like equal highs later on is a rejection-block reversal, not a raid. Wait for the sweep and you miss the trade.
⑥ NEWS FILTER
High-impact US news in the New York session turns London into a range or a one-way run with no reversal. Pine cannot read a news feed, so paste the dates and those days are skipped.
━━━ WHY EVERY SIGNAL EXPLAINS ITSELF ━━━
Hover any signal pill and you get the full reasoning, not a label:
the range and its size, the exact price the liquidity was raided at, which point of interest it landed in, what the higher timeframe structure was doing, which confirmation fired, whether the raid was validated by a fair value gap, plus entry, stop, both targets, risk in pips, reward in pips and the R multiple.
Setups that were found but rejected are explained too. A "NO TRADE" tag tells you the raid, the zone and the confirmation were all there but the reward did not pay for the stop — so you learn the filter instead of wondering why nothing fired.
Every zone, every structure event, the range lines, the OTE levels and both education cards carry the same kind of tooltip. There is a HOW TO READ THIS card and an honest BEFORE YOU TRADE THIS card on the chart.
━━━ COCKPIT PANEL ━━━
Live session state, symbol, chart timeframe, higher-timeframe bias, the full Asian range with a PROTECTED / OPEN flag on each side, an eight-step checklist that fills in as the setup builds, the open position with stop and target, a large status line, a rough win / loss / break-even tracker and the timestamp of the last signal.
━━━ ALERTS AND AUTOMATION ━━━
Every event fires a clean JSON payload ready for a webhook — entry, stop, both targets, the range boundaries, the point of interest that produced the signal, symbol, exchange, timeframe, volume and an optional account field. Events: ENTRY, TP1, SL, BE, SWEEP, RANGE. Five plain-language alertconditions are included as well for anybody who just wants a notification.
━━━ SETTINGS WORTH KNOWING ━━━
· Sessions are fully configurable if your broker feed needs a different reference
· Turn individual POI types and POI timeframes on and off
· Choose one confirmation model or let it take the first valid trigger
· Four stop modes, two-target management, break-even at a chosen R
· Full chart theme with navy background, mint / red candles and session shading — or switch it off and keep your own
━━━ HONEST NOTES ━━━
This model is mechanical up to the trigger. Direction is fixed and never inverts, the windows are fixed, the filters are fixed — but the final judgement, is this really the high of the session, stays discretionary. Anybody telling you a setup is 100 % mechanical is selling you something.
Expect zero to four setups a day across two pairs, roughly 20 pips average per trade, and losing days. Judge it weekly and monthly, never daily. The safest entry model fires rarely by design; the aggressive ones fire more and stop out more.
The win / loss counter in the panel is a rough on-chart tracker that assumes a fill at the marked price and resolves target before stop within the same bar. It is not a backtest and it is not a performance claim.
This indicator is a study tool. It is not financial advice.
━━━ CREDIT ━━━
The rule set follows the well-known ICT Asian-sweep model as it is taught publicly in the ICT community. The implementation, the point-of-interest engine, the no-sweep filters, the panel and the design are original work.
Open source — read it, change it, learn from it.
WHY THESE PARTS BELONG TOGETHER
The session range, the higher-timeframe point of interest and the lower-timeframe confirmation form
a single filter chain, and the model does not work with any link missing. The range supplies the
liquidity pool that is going to be raided, the higher-timeframe zone decides whether that raid is a
reversal or a trap, and the lower-timeframe trigger decides when. A raid without a zone is noise,
a zone without a raid has nothing to react to, and both without a trigger have no entry.
Indicatore

Liquidity Heatmap 3D - Volume Density POC CVDLIQUIDITY HEATMAP 3D — the order-flow heatmap look, rebuilt for TradingView.
This indicator brings the volume-density heatmap visual to any TradingView chart, with a twist no other heatmap here has: a real 3D relief shader. Instead of flat colour tiles, every cell is lit by a virtual light source (emboss lighting computed in the colour math), and the strongest liquidity walls extrude as 3D blocks with shaded side faces and lit top caps.
━━━ HOW IT WORKS ━━━
TradingView provides no order book and no historical tick data, so this is an honest volume-density heatmap: each bar's volume is distributed across the price zones its range covered. Dense zones are the liquidity walls where the market actually spent volume. The engine normalises against the 85th percentile of the column maxima, so one hot spike never blanks out the rest of the map.
━━━ WHAT IS ON THE CHART ━━━
· Heatmap grid up to 22 x 28 zones, rebuilt live on every bar
· 3D RELIEF SHADER — emboss lighting, specular glints on the wall tops, adjustable strength
· 3D WALL EXTRUSION — the strongest cells pop out as shaded blocks (toggle)
· 7 PALETTES — GOLD 3D (default), TWILIGHT, FIRE & ICE (buy/sell split), OCEAN, INFERNO, EMERALD, MONO
· POC LINE — the highest-volume price of the window, with its volume readout
· WALL DETECTION — the two strongest active liquidity walls, labelled with their strength in percent
· VOLUME PROFILE — profile bars on the right, POC highlighted in gold
· TRADE BUBBLES — volume-spike bubbles sized by their ratio against the average, buy blue / sell magenta
· CVD STRIP — cumulative volume delta (bar proxy) along the bottom, mint and red
· COCKPIT PANEL — engine checklist, POC box and a BUY / SELL flow signal line
· Optional dark chart theme: navy background with mint / red bars
━━━ HOW TO USE IT ━━━
1. Watch the golden walls: price often reacts at dense volume zones — support and resistance built by traded volume rather than by drawn lines.
2. The POC is the fairest price of the window and acts as a mean-reversion magnet in ranges.
3. CVD rising while price holds a wall below it is an absorption long idea; CVD falling at a wall above is a distribution short idea.
4. Bubbles mark the bars where outsized volume hit. Combine them with wall touches for confluence.
━━━ SETTINGS ━━━
Grid size, bars per column, cutoff, gamma, tile transparency, relief strength, wall threshold and bubble threshold are all adjustable. Works on every symbol and timeframe; if a symbol carries no volume the engine falls back to time-at-price density and says so in the panel.
━━━ HONEST LIMITS ━━━
This is not level-2 order book data — TradingView does not provide it. The map shows where volume actually traded, not resting limit orders. The 3D effect is a rendering technique, not extra data.
━━━ NOTE ON LOADING ━━━
Right after adding the indicator, or after changing a setting, give it a few seconds: the engine creates its object pools and runs the first build. A brief flicker during that warm-up is normal and stops once the first refresh is done. After that the persistent engine updates in place with no flicker.
Open source — read it, change it, learn from it. This indicator is a study tool, not financial advice.
WHY THESE PARTS BELONG TOGETHER
The heatmap, the point of control and the cumulative delta strip are three views of one question:
where is volume sitting, which price is defending it, and who is doing the trading. The heatmap
shows the distribution, the point of control marks its centre of gravity, and the delta strip says
whether that distribution is being built by buyers or sellers. Read on their own each of the three
is ambiguous; read together they describe one order-flow picture.
Indicatore

Market Profile VPOC Breakout - Imbalance SignalsA breakout setup does not fail because the setup is bad. It fails because it was taken in the wrong market phase. Roughly 70 % of the time price is INSIDE the higher-timeframe balance — inside fair value — and there a breakout has almost no edge. In the remaining ~30 %, when the market is OUT OF BALANCE, the identical trigger becomes one of the highest-probability trades there is. That combination shows up about ONCE PER DAY.
Market Profile VPOC Breakout automates that location-first workflow end to end: weekly and daily volume/TPO profiles, the value areas, the VPOC sequence, the transferred prior-day value-area edge, single prints, the P / b micro-profile proof, the entry trigger, the risk model and ready-to-use webhook JSON — all on one chart, with an explanation attached to every single object.
═══════════════════════════════
THE 7 CONFIRMATIONS
═══════════════════════════════
The panel walks you through them live, top to bottom, and nothing below step 1 matters while the market is in balance.
① WEEKLY LOCATION — the previous week's value area is the equilibrium. Price inside it = the 70 % phase → stand down. Price above VAH or below VAL = imbalance → hunt. The shaded zone on the chart is that balance; the background wash tells you at a glance which phase you are in (mint = imbalance up, red = imbalance down, gold = balance).
② EQUILIBRIUM TEST + REJECTION — the week opened outside the balance, price came back to TEST the weekly value area and was aggressively traded away from it again. That rejection is the proof that the market no longer wants to be in equilibrium.
③ TREND OF EQUILIBRIUM — the sequence of daily VPOCs. Rising VPOCs mean fair value itself is migrating up: the distribution of the participants' equilibrium is trending, which is exactly what a fast trade WITH the trend needs. Flat or overlapping VPOCs = balance = no trade. Drawn as a staircase over the session VPOCs.
④ PRIOR-DAY VALUE AREA BREAK — the previous session's value-area edge is transferred onto the execution timeframe as a thick green line. Price has to ACCELERATE through it, not drift.
⑤ SINGLE PRINTS — the indicator reads the running session's TPO grid and counts price rows that only ONE bar ever touched. Those rows are marked as a cyan SINGLE PRINT zone: the market moved so fast that no business was done there = aggressive buyers or sellers, not passive rotation.
⑥ P / b MICRO SHAPE — the micro profile of impulse + the small balance that forms on it is measured. POC in the upper part = P (aggressive buyers shifting equilibrium up) → long. POC in the lower part = b (sellers shifting it down) → short. A symmetric D is skipped. This is the P/b/D profile-shape logic used by two-time World Cup Championship of Futures Trading winner Patrick Nill.
⑦ TRIGGER — two variants, both switchable:
• BREAK-IN — price dips back into the P/b balance and is instantly bought / sold again (the aggressive, earlier entry, trend-continuing).
• BREAKOUT — a CLOSE beyond the balance edge with a higher (long) or lower (short) close. Never a wick.
═══════════════════════════════
RISK MODEL
═══════════════════════════════
Stop behind the structural invalidation (micro-balance edge, impulse origin or the reference level) plus an ATR buffer. TP1 in R multiples moves the stop to break-even, TP2 lets the runner work. And the rule that keeps this model alive: a TIME STOP. If the move does not run within N bars, get out — a failing breakout reverses just as fast as it was supposed to run. Risk and reward are drawn as blocks so the geometry is readable at a glance. One signal per session by default, because the model only exists about once a day.
═══════════════════════════════
WHAT IS ON THE CHART
═══════════════════════════════
• Session volume/TPO profiles with value area, VPOC and shape letter (P / b / D)
• Naked VPOC rays that keep running right as magnets
• Weekly profile + the prior-week balance zone projected into the current week
• The thick green transferred value-area edge with its own explanation
• Daily VPOC staircase and the imbalance gauge in the panel
• Single-print zones, micro-balance boxes with the big P / b letter
• BUY / SELL pills, the full numbered reason stack printed next to the signal, entry / SL / TP1 / TP2 rails, risk and reward blocks, TP / SL / BE / TIME exit tags
• A permanent BEGINNER CARD on the chart plus a HOW TO READ manual — every pill, zone, rail, letter and panel row also has its own hover explanation, so nothing on this chart is unexplained
• Two colour modes: Design (navy, mint / cyan / gold) or Original TPO (the classic grey market-profile look with red VPOC rays and a white profile curve)
═══════════════════════════════
AUTOMATION
═══════════════════════════════
Create ONE alert with the condition "Any alert() function call" and paste your webhook URL. Every BUY, SELL, TP1_HIT, TP2_HIT, SL_HIT, BE_EXIT, TIME_STOP and ARMED event posts ready-to-use JSON containing id, symbol, action, setup, shape, qty, price, entry, sl, tp1, tp2, pdvah, pdval, timeframe and time — connect it to any bridge or bot without touching the code. Separate alertconditions for BUY, SELL and "any signal" are also available.
═══════════════════════════════
HOW TO USE IT
═══════════════════════════════
Built for an intraday execution timeframe: 1m to 15m, exactly like the original workflow (locate on the weekly and daily profiles, execute on a 1-minute chart). Index futures and index CFDs are the natural home (NQ, ES, DAX, Nikkei), but the profile engine derives its bin size from the average daily range, so gold, FX and crypto work out of the box. For index futures switch on "cash session only" and set the exchange session so the overnight trade does not smear the profiles.
Every input is documented with a tooltip that explains what it does and why it exists. Start with the defaults, then loosen step 2 or step 3 if you want more signals — and be aware that every filter you switch off moves you back towards the 70 % phase where this trigger simply does not pay.
═══════════════════════════════
NOTES
═══════════════════════════════
The entry logic is mechanical and reproducible. Stop distances, targets and the time stop are parameters, not gospel: size them to the instrument you trade. Profiles are built from the bars of the chart you are on, so a finer timeframe gives a finer profile. Hit rates quoted in the educational material behind this model refer to the full workflow including discretionary session context — treat the signals as a structured, disciplined framework, not a guarantee, and always validate on your own data before risking capital.
Open source. Feedback and improvement ideas are welcome.
WHY THESE PARTS BELONG TOGETHER
The point of control and the breakout trigger are combined because a breakout setup does not fail
because the setup is bad, it fails because it was taken in the wrong market phase. The VPOC locates
that phase: a break away from a freshly built point of control is a different trade from a break
back into an old one. The imbalance measurement is the third piece - it tells you whether the move
away from the VPOC was one-sided enough to be worth following.
Indicatore

Volume Profile P b D Shapes - Day PlaybookVOLUME PROFILE P b D SHAPES reads the market's body language: every trading day the volume profile prints a LETTER — P, b or D — and that letter tells you who is in control and exactly how to trade the next session. This indicator automates the complete PbD method: it builds every day's volume profile, classifies the shape, draws the levels, prints the playbook on your chart and fires webhook-ready JSON signals.
■ THE THREE LETTERS
P-SHAPE (bullish continuation) — fast impulse UP, then balance ON TOP. The thin tail below is single prints: nobody did business there. Buyers feel like winners, dips are for buying.
b-SHAPE (bearish continuation) — fast impulse DOWN, then balance AT THE BOTTOM. The thin tail above marks the drop. Sellers are in control, rallies are for selling.
D-SHAPE (balance day) — a symmetric bell curve with a fat POC in the middle. Buyers AND sellers are happy, fair price has been found. The next day usually stays range-bound: fade the edges.
■ THE AUTOMATED PLAYBOOK (7 SETUPS)
P behind you:
- PLAN A — CONTINUATION: price dips into yesterday's value area, the dip HOLDS (no low break), a reclaim candle closes back at/above the POC -> BUY. Targets: previous high, then a measured balance move.
- PLAN B — FAILURE = FULL TRAVERSE: 2+ candle CLOSES below the VAL (a wick is NOT enough) plus a volume spike = acceptance below balance. The shape has failed and price tends to walk the WHOLE way back to the impulse origin -> SELL.
b behind you: the exact mirror — sell failed rallies into value (Plan A), or buy the failure traverse when 2+ closes above VAH with volume appear (Plan B).
D behind you + today opens INSIDE the D:
- Range rules. Short the Value Area High rejection, long the Value Area Low rejection, target the POC first and the opposite edge second. The FIRST touch gives the best response — the fade counter limits how often each edge may be traded.
■ WHAT YOU SEE ON THE CHART
- A volume histogram for every completed day, colored by its letter (mint P / red b / gold D), POC row highlighted
- A big P / b / D letter above each day — hover it for the full lesson behind the shape
- Yesterday's VAH / VAL / POC projected into today as live rails with explanatory tooltips
- A bias note at every day open: which letter is behind you, where today opened, and both plans
- Two-line BUY/SELL pills that explain WHY the signal fired (hover for the complete reasoning + Entry/SL/TP1/TP2)
- Entry / SL / TP1 / TP2 lines, TP1 -> break-even management, TP2 runner
■ AUTOMATION / WEBHOOK
Create one alert with condition "Any alert() function call" and paste your webhook URL. Every BUY/SELL/TP1/TP2/SL/BE event sends ready-to-use JSON: id, symbol, action, setup, shape, entry, sl, tp1, tp2, timeframe, time. There is also an optional end-of-day SHAPE alert so your bot can pick tomorrow's playbook automatically.
■ HOW TO USE
1) Apply to an intraday chart (5m - 1h; crypto, indices, FX, stocks). 2) Let at least one full day close so the first letter prints. 3) Read the panel: previous-day letter -> today's bias -> checklist. 4) Take the pills or automate them via webhook. The first day on the chart only collects data — letters start from day two.
Educational note: shapes give a BIAS, not a guarantee — that is exactly why every setup ships with both Plan A and Plan B. Not financial advice.
WHY THESE PARTS BELONG TOGETHER
The volume profile and the shape classification are inseparable here. The profile alone tells you
where volume accumulated; the classification into P, b and D shapes is what turns that distribution
into a statement about who is trapped and where the day is likely to go. A P shape and a b shape can
contain identical volume and mean the opposite thing - which is only visible once the profile is
read as a letter rather than as a histogram.
Indicatore

Impulse Box Breakout Engine - Origin Range Buy Sell SignalsIMPULSE BOX BREAKOUT ENGINE — a complete breakout trading system in one indicator: self-adjusting impulse boxes with entry arrow, stop, two fixed targets, a pink trailing-stop dot line and webhook automation. Rebuilt 1:1 from a professional German "Impulsbox" breakout engine (72-minute source webinar, analyzed frame by frame) and redesigned as a modern cockpit indicator.
█ WHAT IT DOES
The engine meters the market N bars back: the range the market traded in PLUS the length of every single bar inside it (compression check). When a STRONG impulse bar closes outside that range, the IMPULSE BOX appears over the consolidation:
• CYAN BOX = long breakout — big entry arrow inside the box
• GOLD BOX = short breakout — mirrored to the downside
• Initial stop = the far side of the box (bottom for longs, top for shorts)
• TARGET 1 + TARGET 2 (violet marks) are projected from the box height the moment the box appears — FIXED, never repainted, never moved afterwards
• PINK DOTS = the trailing stop. It starts at the box edge and follows price with ~30% of the move as breathing room. It only ratchets in your favor — never back
• At Target 1 the stop jumps to break-even or better. After Target 2 the system follows the source rule: "never leave the market voluntarily — let the stop take you out"
█ SELF-OPTIMIZING ENGINE
Markets are sideways ~80% of the time — rigid breakout parameters fail there. This engine adapts automatically:
• TREND regime (ADX based): short lookback, wider targets (+35% / +100% of box height)
• RANGE regime: longer lookback, stricter impulse filter, closer targets (+25% / +75%)
• AUTO-RECALIBRATION: after a false breakout the impulse threshold is raised temporarily — fewer but cleaner boxes. A winning box resets it
• The cockpit shows the current regime, calibration and effective parameters at all times
█ HONEST LIVE STATISTICS
The cockpit counts every box on your chart and shows the real Target-1 and Target-2 hit rates — no marketing numbers, live counted on your symbol and timeframe. On XAUUSD 15m the default engine printed 500+ boxes with a T1 hit rate above 90% at the time of publishing (past performance never guarantees future results).
█ DIRECTION BIAS FILTER
The #1 rule of the source system: trade boxes only in the direction of the higher-level move. The indicator automates this via EMA-200 + Supertrend bias. Choose: Off / Mark counter-bias boxes (dimmed + warning) / Filter them out completely. Supertrend companion arrows are included as extra confluence.
█ EVERY SIGNAL EXPLAINS ITSELF
Hover any BUY/SELL pill: how many bars of consolidation, how strong the impulse bar was (x average bar), which range edge broke, which regime the engine was in, whether the box agrees with the bias — plus entry, stop and both targets. No black box.
█ WEBHOOK AUTOMATION (BOTS / BRIDGES)
Create ONE alert with "Any alert() function call" and your webhook URL. The indicator fires ready-to-use JSON on BUY, SELL, T1_HIT, T2_HIT, TRAIL_EXIT and SL_HIT — including entry, stop, both targets, box levels, regime and live hit rates. Works with any webhook bridge, bot or auto-trader.
█ HOW TO USE
1) Add to chart — works on ALL symbols and ALL timeframes (crypto, gold, forex, indices, stocks)
2) Use standard candles or OHLC bars (Heikin-Ashi smoothing swallows breakouts — a key finding of the source webinar)
3) Wait for a box + arrow, entry at the breakout close, stop at the far box edge
4) Take partial profit at Target 1, let the rest run with the pink trailing dots
5) Automate via webhook JSON if you want
█ SETTINGS
Everything is configurable: manual mode with fixed lookback/impulse strength, target distances, trailing gap, exit-at-T2 mode, bias filter mode, Supertrend, chart theme, cockpit position and all alert toggles.
Educational tool only — not financial advice. Trading involves substantial risk. Always test on a demo account first and never risk money you cannot afford to lose.
WHY THESE PARTS BELONG TOGETHER
The impulse detection and the box are one mechanism, not two features. The impulse identifies the
candle sequence that moved the market; the box freezes the range that impulse came out of, because
that range is the level the market has to defend for the move to continue. Detecting impulses
without marking their origin gives you a signal with no invalidation, and drawing boxes without an
impulse gives you consolidation zones with no direction.
Indicatore

Previous Day / Week / Month Range LevelsDraws the high, low and internal subdivisions of the last completed period on up to three higher timeframes at once.
Why the prior range matters
A finished period leaves behind a structure the market keeps referring back to. Yesterday's high and low are where yesterday's argument was settled, and price spends a surprising amount of the next session negotiating with those two numbers — breaking them, failing at them, or holding between them.
The subdivisions add resolution to that. The midpoint separates the upper and lower half of the range, and which side price accepts on tells you who won the period. The quarters mark the shallow zones inside each half — the levels a pullback reaches before it has retraced anything meaningful.
What it draws
Prior period high and low, as solid boundary lines
Midpoint at 50%
Quarters at 25% and 75%
Optional eighths at 12.5% and 87.5% for wider ranges
Price labels on every level, with the timeframe named
Three timeframe slots, each with its own colour and on/off switch. Defaults are Daily and Weekly enabled, Monthly available. Any timeframe works — 4H, quarterly, yearly — so intraday traders and swing traders can both configure it sensibly.
The levels do not repaint
Each level is read from the previous completed bar of its timeframe using a lookahead-safe request. Once a period closes, its levels are fixed and will not move. Nothing is recalculated on the developing bar, and nothing you see on historical bars was drawn with information from the future.
That means the numbers are frozen for the whole current period. The daily levels you see at the open are the same ones at the close.
Notes on use
Session settings matter. On a chart set to regular hours, the daily range is built from regular-hours prices only — switch to extended hours and every level moves. Neither is wrong, but be deliberate about which one you're reading.
Multi-period timeframes such as 2W or 6M are grouped by TradingView from a fixed reference point, which may not align with where you'd assume a fortnight begins. Worth eyeballing directly before relying on them.
Drawings are anchored by timestamp rather than bar index, so they stay put when you scroll back and TradingView loads more history. Bar indices renumber every time more history loads; timestamps do not.
There is also a fully transparent plot of close in there, doing a job that is easy to miss. Lines and labels do not feed TradingView's autoscale, so a script that only draws has no price range of its own and can be handed a separate price scale — at which point every level sits at an offset from the candles. The transparent plot gives the script a real range and locks it to the symbol's.
Settings
Three timeframe slots, each with an enable toggle, a timeframe and a colour
Midpoint, quarters and eighths switched independently
Price labels on or off, with a size option
Boundary line width, and a separate transparency for the inner levels so the range edges stay dominant
Extend left and extend right, in bars
Open source. Read it, fork it, adapt it. The non-repainting request pattern, the time-anchored drawing and the scale anchor are all worth stealing for your own scripts.
For educational purposes only. Nothing here is financial advice, a recommendation, or a solicitation to trade. Levels are reference points, not signals. Indicatore

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 TradingView'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 TradingView'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 TradingView'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. Indicatore

Anchor rails - session levels and event countdown [AuraSznfx]Most intraday trading is organized around a handful of scheduled clock times — the London open, the 8:30 and 10:00 data releases, the cash open, the end of the first hour, the 2:00 policy release. This script makes that schedule visible on the chart instead of tracked in your head, and pairs it with the price levels that formed before each one.
There are many scripts that draw session highs and lows. What this one adds is the clock layer on top of them: a countdown to the next scheduled anchor, a phase read-out describing where the current bar sits relative to that anchor, a configurable window marked either side of it, and a running count of how many of the day's tracked levels have already been taken.
WHAT IT DRAWS
Five session ranges: overnight, London, premarket, opening range, and first hour. Each window's start and end time is a session input you can change, so the defaults are a starting point rather than a rule. While a window is open the script tracks its running high and low and shows them as a box. When the window closes, the box is deleted and replaced by two horizontal lines fixed at the final high and low, extended forward a configurable number of bars.
Yesterday's high, low and close, pulled from the daily timeframe with lookahead disabled. An optional midpoint is available.
HOW THE LEVEL-TAKEN LOGIC WORKS
Once a range is locked, each of its two lines is watched independently. The high is marked taken the first time a bar's high exceeds it. The low is marked taken the first time a bar's low falls below it. Detection is one-way and permanent for the session — a level does not un-take itself if price returns.
When a level is taken you can have it dim to a configurable transparency, dim and switch its label to a marked state, or delete outright. That choice is a style preference; the underlying state is tracked the same way regardless.
Note the deliberate limitation: detection uses the bar's high and low, so on a live bar a level can register as taken and then the bar can close back inside the range. If you want confirmed-close behavior instead, use a higher timeframe or wait for the bar to close before acting on the alert.
HOW THE ANCHOR CLOCK WORKS
You enable whichever of the nine preset times you care about, plus one custom hour and minute of your own. Every one is read in the timezone you select at the top of the settings.
On each bar the script builds a timestamp for every enabled anchor on the current date, then finds the nearest one ahead of the current bar close and the nearest one behind it. From those two distances it produces four outputs in the panel:
Time to the next anchor, formatted as a countdown.
A progress bar filling over the final 30 minutes before it.
A phase label, resolved in this priority order: inside the post-anchor window, within 15 minutes after, inside the pre-anchor window, inside 10 minutes, inside 30 minutes, otherwise standby.
A taken count out of the ten tracked level lines.
If every enabled anchor for the day has passed, the countdown rolls to the earliest one on the following day.
The event window is the pre and post minute values you set. When the current bar falls inside it, the chart is optionally tinted, and an alert can fire once as it begins. Nothing about this window predicts direction. It marks that a scheduled release is close, which is information you would otherwise be checking a calendar for.
HOW TO USE IT
Set your timezone first; everything else reads from it. Adjust the five session windows to the instrument you trade — the defaults are built around US index futures on New York time and will not suit an FX or crypto session structure without changes. Then switch off the anchor times that aren't relevant to your market.
The levels show where price has already been tested. The clock shows when the next scheduled event arrives. What you do with either is your decision — this script issues no buy or sell signals and takes no view on direction.
ALERTS
Two alert condition entries are provided, for any level taken and for the event window opening, usable from the standard alert dialog. Individual per-level alerts fire through the alert() function on bar close. Payloads can be sent as plain text or as structured JSON for webhook use, toggled in the settings.
NOTES AND LIMITATIONS
Written in Pine v6.
Locked levels do not repaint. A range only becomes lines after its window has closed, and those values never change afterward.
The daily request uses lookahead_off. No future data is accessed anywhere in the script.
The phase labels describe clock position only. They are not signals and carry no expectation of what price will do.
The script has no view on direction and produces no entry or exit signals. It is a context tool.
On very low timeframes the drawing limits of 500 lines, boxes and labels can be reached over a long history. Reduce the extend-right value or switch off sessions you do not need. Indicatore

Bull Bear Power Breaks with Trend Reversal [JPT]🔷 OVERVIEW
Bull Bear Power Breaks with Trend Reversal – Module 1 is an original Pine Script® v6 indicator designed to identify the prevailing market trend using a combination of EMA 50, EMA 200, and Bull/Bear Power analysis. It provides traders with a clear visual representation of trend direction, buying pressure, and selling pressure, making it easier to understand market conditions before looking for breakout or reversal opportunities.
Rather than generating trading signals, Module 1 establishes the core trend framework that future modules will build upon.
🔷 HOW IT WORKS
The indicator continuously evaluates price relative to two exponential moving averages while calculating Bull Power and Bear Power values.
Bullish Trend
A bullish trend is identified when:
EMA 50 is above EMA 200
Bull Power remains positive
Buyers maintain control of market momentum
During bullish conditions, the chart background changes to a light green color, providing an immediate visual indication of the dominant trend.
Bearish Trend
A bearish trend is identified when:
EMA 50 is below EMA 200
Bear Power remains dominant
Sellers control market momentum
During bearish conditions, the chart background changes to a light red color.
Trend changes are automatically labeled on the chart with BULL and BEAR markers whenever the EMA relationship changes.
🔷 VISUAL FEATURES
EMA 50 Trend Line
EMA 200 Trend Line
Automatic Bullish Trend Detection
Automatic Bearish Trend Detection
Bull Power Calculation
Bear Power Calculation
Smoothed Bull/Bear Power Histogram
Trend Change Labels
Dynamic Trend Background
Professional Dashboard
Customizable Inputs
🔷 EMA TREND ENGINE
The built-in EMA Trend Engine uses two exponential moving averages to determine the dominant market direction.
Supported trend states include:
Bullish Trend
Bearish Trend
Neutral Transition
This allows traders to quickly align their analysis with the prevailing market direction.
🔷 BULL & BEAR POWER ENGINE
Bull Power is calculated from the distance between price highs and the fast EMA, while Bear Power measures the distance between price lows and the same average.
To reduce market noise, both values are smoothed before being displayed as histograms, helping traders visualize changes in buying and selling pressure more clearly.
🔷 DASHBOARD
The integrated dashboard displays real-time market information, including:
Current Trend
Bull Power Value
Bear Power Value
EMA 50
EMA 200
This provides a quick overview of the current market environment without requiring additional indicators.
🔷 INPUTS
Available settings include:
EMA Fast Length
EMA Slow Length
Bull/Bear Power Smoothing Length
Show EMA Lines
Show Trend Background
Show Bull/Bear Histogram
Show Dashboard
🔷 COMMON WORKFLOW
A typical workflow is:
Identify whether the market is bullish or bearish using the EMA Trend Engine.
Observe Bull Power and Bear Power to evaluate buying and selling pressure.
Monitor trend changes using the automatic BULL and BEAR labels.
Use this information as a directional filter before considering breakout or reversal setups in future modules.
🔷 MARKETS
This indicator can be used on:
Forex
Gold (XAUUSD)
Cryptocurrency
Stocks
Indices
Futures
Commodities
It is compatible with multiple timeframes and different trading styles.
🔷 BEST PRACTICES
Many traders combine this trend engine with additional forms of technical analysis, such as:
Market Structure
Support & Resistance
Break of Structure (BOS)
Change of Character (CHoCH)
Fair Value Gaps (FVG)
Order Blocks
Volume Analysis
Higher Timeframe Confirmation
These techniques are optional but may provide additional context when evaluating market conditions.
🔷 UPCOMING FEATURES
Future modules are planned to include:
Dynamic Swing High & Swing Low Detection
Automatic Support & Resistance
Bull Power Break Detection
Bear Power Break Detection
Trend Reversal Confirmation
Buy & Sell Signals
Entry Price Calculation
Stop Loss
TP1, TP2 & TP3 Auto Targets
Risk/Reward Visualization
Advanced Dashboard
Smart Alert System
🔷 DISCLAIMER
This indicator is provided as a technical analysis tool for educational and informational purposes only. It evaluates historical price data using moving averages and Bull/Bear Power calculations to help visualize market trends. It does not predict future price movements or guarantee trading performance. Always perform your own analysis, use appropriate risk management, and seek additional confirmation before making trading decisions. Indicatore

MFx Trend Vitality Engine V3MFx Trend Vitality Engine V3
Overview
Diagnose the Health of a Trend—Not Just Its Direction
Most technical indicators focus primarily on one question: Where is price likely to go next? The MFx Trend Vitality Engine was designed to answer a different question: How healthy is the force currently driving the market?
Rather than attempting to predict future price direction, Trend Vitality evaluates the internal condition of buyer and seller campaigns. It measures the quality of the trend itself by examining buyer and seller vitality, structural fatigue, trend efficiency, reserve capacity, cumulative wear, trajectory, and overall market state.
The framework separates trend direction from trend health. Those are not always the same thing. A market may continue making new highs while the underlying buyer campaign gradually weakens. Likewise, a downtrend may continue falling even as seller strength begins to deteriorate. Price alone cannot always reveal these hidden changes.
Think of Trend Vitality less like a crystal ball and more like a physician evaluating a patient. A doctor cannot predict exactly what will happen tomorrow, but can assess a patient's current condition using multiple measurements. Trend Vitality follows the same philosophy.
Price tells you where the market is moving. Trend Vitality helps explain how healthy the force behind that movement really is.
Why the Framework Was Created
Most technical indicators are designed to help traders identify entries, exits, momentum, or trend direction. Trend Vitality was created to answer a different question: "How healthy is the trend I already own?"
As trends mature, price may continue moving in the same direction while subtle signs of deterioration begin developing beneath the surface. Buyer participation may become less efficient, structural fatigue may increase, reserve capacity may decline, and cumulative wear may continue building long before price itself reflects those changes.
Trend Vitality was designed to identify those internal conditions.
It does not attempt to predict exact tops or bottoms, nor does it generate automatic buy or sell signals. Instead, it provides a structured framework for evaluating the condition of the active buyer or seller campaign.
Originality & Design
Trend Vitality is not a collection of unrelated indicators combined into a single script. It is a unified diagnostic framework in which every subsystem evaluates a different characteristic of the same underlying process: the health and durability of buyer and seller campaigns.
Each component contributes one piece of evidence:
Buyer & Seller Vitality identify which side currently possesses the healthier campaign.
Structural Fatigue measures the amount of strain required to maintain the current trend.
Trend Efficiency evaluates how effectively market participation is being converted into directional price movement. Reserve Capacity estimates how much internal strength remains available to sustain the campaign. Cumulative Wear measures deterioration accumulated throughout the life of the campaign. Trajectory identifies whether overall trend health is improving, stable, or deteriorating. Market State combines these diagnostics into a higher-level assessment of the campaign's current condition.
Rather than relying on a single measurement, Trend Vitality combines complementary diagnostics into one integrated assessment of trend health.
Understanding the Chart
The Trend Vitality chart contains three primary visual components:
The White Trend Line
The Trend Vitality Line
The Trend Vitality Scale
Each answers a different question about the market.
White Trend Line
The White Trend Line represents the market's directional campaign. It answers one simple question: "What direction is the market currently moving?" A rising White Trend Line indicates buyers currently possess directional control. A falling White Trend Line indicates sellers currently possess directional control. Importantly, the White Trend Line measures direction, not health. A trend can continue moving higher while gradually becoming less healthy, or continue falling while seller strength quietly deteriorates. That distinction is why the Trend Vitality Line exists.
Trend Vitality Line
While the White Trend Line measures direction, the Trend Vitality Line measures the health of the side currently controlling the market. Its color changes depending on which campaign possesses the vitality advantage.
Green Trend Vitality
A green Trend Vitality Line indicates that buyers currently possess the healthier campaign.
Think of two championship boxers entering the later rounds of a fight. The scorecards tell you who is ahead, but looking into each fighter's corner tells you who still appears strongest. A green Trend Vitality Line suggests buyers currently have the stronger internal condition—not that they are guaranteed to win the match.
Red Trend Vitality
A red Trend Vitality Line indicates that sellers currently possess the healthier campaign.
This should not automatically be interpreted as a sell signal. Instead, it reflects that sellers currently possess the stronger internal condition relative to buyers. Like the boxer analogy, momentum within the fight can shift before the final outcome is decided.
Understanding the Trend Vitality Scale
The Trend Vitality Scale is standardized from +100 to -100.
Unlike traditional oscillators, it does not measure price. It measures the relative health of the buyer and seller campaigns.
Above Zero: Buyers possess the vitality advantage.
Below Zero: Sellers possess the vitality advantage.
Near Zero: Neither side has established a meaningful health advantage.
The farther the Trend Vitality Line moves away from zero, the stronger the measured vitality of the controlling side.
General Interpretation
+80 to +100: Exceptional Buyer Health
+50 to +80: Healthy Buyer Campaign
+20 to +50: Moderately Healthy Buyers
-20 to +20: Neutral Battlefield
-20 to -50: Moderately Healthy Sellers
-50 to -80: Healthy Seller Campaign
-80 to -100: Exceptional Seller Health
These ranges are intended as interpretation guidelines rather than trading signals.
Understanding the Zero Line
The Zero Line represents the center of the battlefield, where neither buyers nor sellers possess a meaningful vitality advantage. Imagine the market as a game of tug-of-war. Buyers pull from one side of the rope, sellers from the other, and the Zero Line marks the exact center.
When the Trend Vitality Line is above zero, buyers have pulled the rope onto their side and currently possess the healthier campaign. When it falls below zero, sellers have gained the vitality advantage and are pulling the rope in their favor.
A move through the Zero Line simply tells you that the balance of internal strength has shifted from one side of the battlefield to the other. It does not necessarily mean price will immediately reverse or that a new trend has begun. Just like a real tug-of-war, the rope may briefly cross the center before one team regains its footing and pulls it back.
For that reason, a Zero Line crossover should never be interpreted automatically as a buy or sell signal. Instead, it signals that the balance of campaign health is changing. The surrounding diagnostics help determine whether that change represents a meaningful shift in control or only a temporary swing in momentum.
Understanding the Dashboard
The dashboard summarizes the current condition of the active campaign.
Buyer Vitality: Measures the health of the buyer campaign.
Seller Vitality: Measures the health of the seller campaign.
Market Health: Overall condition of the active trend.
Engine Health: Combined strength of the Trend Vitality framework.
Structural Fatigue: Current strain required to maintain the trend.
Trend Efficiency: How effectively market participation produces directional progress.
Reserve Capacity: Remaining internal strength available to sustain the campaign.
Cumulative Wear: Structural deterioration accumulated throughout the campaign.
Trajectory: Whether trend health is improving, stable, or deteriorating.
Market State: The current diagnostic phase of the campaign.
Warnings: Highlights meaningful signs of internal deterioration that deserve additional attention.
No single measurement should be interpreted in isolation. The dashboard is designed to provide a complete diagnostic assessment of trend health.
Suggested Use
Trend Vitality is designed as a diagnostic companion to price analysis.
It may be useful for:
Monitoring the health of long-term positions.
Evaluating the quality of established trends.
Comparing buyer and seller campaign strength.
Identifying hidden deterioration beneath continued price movement.
Supporting position management decisions.
Adding context alongside price structure and risk management.
Important Limitations
Trend Vitality is based on historical and current market data.
It does not:
Predict future price.
Generate guaranteed buy or sell signals.
Anticipate news, earnings, geopolitical events, or unexpected market catalysts.
Like any analytical tool, it should be used alongside sound risk management and independent market analysis.
Release Notes – V3
This version introduces an updated Trend Efficiency model designed to preserve greater historical context while improving the evaluation of campaign performance.
The publication has also been reorganized with expanded documentation explaining the framework's methodology, design philosophy, chart interpretation, dashboard components, and intended use.
The underlying objective remains unchanged:
Trend Vitality is a diagnostic framework designed to evaluate the health of buyer and seller campaigns—not to predict the future or replace price analysis.
Indicatore

McGinley Dynamic Fusion [MarkitTick]💡 The McGinley Dynamic is a lesser-known adaptive moving average developed in the 1990s by market technician John R. McGinley, specifically engineered to solve a problem that plagues conventional moving averages: their tendency to lag badly during fast market moves while whipsawing excessively during slow, choppy conditions. Unlike a standard EMA or SMA, the McGinley Dynamic adjusts its own speed automatically based on the relationship between price and its prior value, effectively "hugging" price more tightly when the market accelerates and smoothing out more when it decelerates. This script builds a complete trading framework around a Fast/Slow McGinley Dynamic crossover, layering in higher-timeframe confirmation, signal cooldown filtering, ATR-adaptive trade levels, a live dashboard, and a manual signal-lock mechanism.
✨ Originality and Utility
While McGinley Dynamic implementations exist on TradingView, this script does not simply plot the raw indicator. It combines four distinct engineering layers into a single decision framework:
A recursively self-adjusting dual McGinley Dynamic engine (Fast and Slow) used as a crossover trigger rather than a static trend line.
An optional higher-timeframe directional filter that requires the HTF trend to agree with the signal direction before a crossover is allowed to fire.
A cooldown/gap filter measured in bars, which suppresses new signals for a configurable number of bars after the last one, reducing signal clustering during choppy crossover conditions.
An ATR-based trade management layer that auto-plots Entry, Stop Loss, and three Take Profit levels the moment a signal fires, extended live on the chart with a color-coded risk/reward fill.
The value to traders lies in how these layers interact: the McGinley crossover alone would generate frequent false signals in ranging markets, but the HTF filter and cooldown mechanism specifically target the crossover's greatest weakness (over-triggering during consolidation), while the ATR trade-level engine converts a raw directional signal into a fully defined, risk-quantified trade plan without any additional charting work from the user.
🔬 Methodology and Concepts
• The McGinley Dynamic Engine
The core building block is a recursive moving average that adjusts its step size relative to how far price has moved away from its previous value. Rather than applying a fixed weighting like an EMA, the McGinley Dynamic divides the price-to-prior-value distance by a dynamic denominator that grows sharply when price moves far from the average and shrinks when price sits close to it. This produces a curve that speeds up during trending, high-momentum moves and slows down during sideways congestion, giving it a self-correcting quality that fixed-period moving averages lack. The script instantiates two independent copies of this engine: a Fast McGinley Dynamic (default length 14) and a Slow McGinley Dynamic (default length 50), each with its own configurable "K Constant" that governs how aggressively the adaptive denominator reacts to price displacement.
• Crossover Signal Logic
A long signal is generated when the Fast McGinley Dynamic closes above the Slow McGinley Dynamic after having been at or below it on the prior two bars — a confirmed upward crossover, not an intrabar or provisional one. A short signal mirrors this logic on the downside. This two-bar confirmation approach (checking both the and offsets) ensures the crossover has actually completed on a closed bar before a signal is registered, rather than reacting to a crossover that could still repaint on the current forming bar.
• Higher-Timeframe Directional Filter
When enabled, the script pulls the source price and Fast McGinley Dynamic value from a user-selected higher timeframe (default 4-hour) and requires that the HTF price sit on the correct side of the HTF Fast McGinley Dynamic before allowing a same-direction signal on the working timeframe. This acts as a macro-trend veto: a bullish crossover on the chart timeframe will be ignored if the higher-timeframe trend context is bearish, and vice versa. The higher-timeframe request is built using a confirmed, prior-bar value combined with TradingView's lookahead-on merge policy — the standard non-repainting pattern for pulling higher-timeframe data — so the filter reacts only to fully closed higher-timeframe bars.
• Cooldown / Signal Spacing Filter
To prevent rapid-fire signals during periods where the Fast and Slow McGinley Dynamic lines oscillate around each other, the script tracks the bar index of the last long and last short signal separately. A new signal in the same direction is only permitted once a user-defined minimum number of bars ("Cooldown Bars") has elapsed since the prior one, reducing signal noise without altering the underlying crossover logic itself.
• ATR-Based Trade Level Construction
The moment a qualifying signal fires, the script calculates an Average True Range value over a configurable lookback and uses it to derive five reference prices: an entry (the prior bar's close), a stop loss, and three take-profit targets. Each level is expressed as an ATR multiple away from entry, with independently configurable multipliers for the stop and each take-profit tier. This means the distance between entry and each level automatically expands or contracts with recent volatility rather than using a fixed point or percentage distance, keeping the risk/reward structure proportionate to current market conditions.
• Signal Lock
The optional Lock Signal feature freezes the currently displayed trade levels once toggled on, preventing them from being overwritten by a subsequent crossover. This is useful for traders who want to manually track a single active setup on the chart without the lines and labels shifting each time a new signal condition is technically met.
🎨 Visual Guide
Fast MD line (default blue) — the fast-length McGinley Dynamic.
Slow MD line (default orange) — the slow-length McGinley Dynamic.
Heatmap Candles — when enabled, candle bodies and wicks are recolored based on trend bias: teal/green when the Fast MD sits above the Slow MD (bullish bias), red when below (bearish bias), independent of the raw candle color.
Entry line (dashed, blue by default) — plotted at the close of the bar prior to signal confirmation, marking the reference entry price.
Stop Loss line (solid, red by default) — the ATR-derived stop level, labeled with an "✕ SL" tag showing the exact price.
Take Profit lines (dashed, teal by default, three tiers with increasing opacity) — TP1, TP2, and TP3, each labeled with its price.
Risk fill — a shaded region between the entry line and stop-loss line, tinted in the stop-loss color, visually representing the risk portion of the trade.
Reward fill — a shaded region between the entry line and the TP3 line, tinted in the take-profit color, visually representing the potential reward span.
All trade-level lines and labels extend live to the right edge of the chart until superseded by a new signal or, if Signal Lock is active, held in place.
📌 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
A bullish signal occurs when the Fast MD confirms a crossover above the Slow MD, subject to the HTF filter and cooldown filter both being satisfied. The dashboard's Bias row will read "▲ Bull".
A bearish signal occurs on the mirrored downward crossover, with the Bias row reading "▼ Bear".
When a signal fires, use the auto-plotted Entry, SL, and TP1/TP2/TP3 lines as a starting framework for trade structure — the R:R progress bar on the dashboard shows the reward-to-risk ratio for TP1 relative to the stop distance.
The MD Gap row on the dashboard visualizes, as a percentage bar, how far apart the Fast and Slow MD lines currently are, which can help gauge trend strength or an approaching crossover.
Enabling the HTF Filter is recommended for traders who want signals to align with a broader trend context rather than trading every local crossover.
Enabling Signal Lock freezes the current trade plan on screen, useful when manually managing an active position and wanting to prevent the levels from updating on the next crossover.
⚙️ Inputs and Settings
Src / Fast N / Slow N — source price and the lookback lengths for the Fast and Slow McGinley Dynamic calculations. Shorter lengths react faster but generate more signals; longer lengths are smoother but slower to confirm.
K Const — governs how aggressively the McGinley Dynamic's adaptive denominator responds to price displacement from the prior value. Higher values slow the line's responsiveness.
HTF Filter / HTF TF — enables the higher-timeframe directional veto and sets which higher timeframe is used for that check.
Cooldown Bars — minimum number of bars required between two signals of the same direction.
Lock Signal — freezes the current trade levels in place, blocking updates from subsequent signals.
ATR Len — lookback length for the Average True Range used to size the SL and TP levels.
SL Mult / TP1 Mult / TP2 Mult / TP3 Mult — ATR multipliers that set the distance of the stop loss and each take-profit tier from the entry price.
Heatmap Candles / Trade Levels — visual toggles for the bias-colored candles and the auto-plotted trade-level lines/labels/fills.
Show Dash / Dash Pos — toggles the on-chart dashboard and sets its screen position.
Alert action fields (Long/Short/Close Long/Close Short) — customizable string values embedded into the script's JSON alert payloads, allowing the fired alerts to be mapped to specific automation or webhook actions.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The McGinley Dynamic belongs to a broader family of adaptive-smoothing techniques in technical analysis that attempt to address a structural weakness of fixed-weight moving averages: a constant smoothing factor cannot simultaneously be fast enough to track trending markets and slow enough to filter noise in ranging markets. McGinley's original design achieves adaptivity by making the effective smoothing constant a function of the ratio between current price and the prior average value raised to the fourth power — a formulation that causes the adjustment factor to grow disproportionately large when price diverges sharply from the average, automatically accelerating the line's response, and to shrink toward a baseline when price and average are close, automatically slowing the response. This self-referential feedback mechanism places the McGinley Dynamic conceptually closer to adaptive filters used in signal processing (where a filter's gain is modulated by the magnitude of recent error) than to the fixed-coefficient exponential smoothing used in a standard EMA.
The dual-length crossover structure applied here draws on the well-established moving-average-crossover framework from technical trend-following literature, where the relationship between a fast and slow-adaptive series is used as a proxy for shifting momentum regimes, conceptually related to dual-moving-average systems and change-point detection approaches that flag a regime shift once a fast-reacting series diverges from a slow-reacting baseline. The higher-timeframe confirmation layer reflects the top-down, multi-timeframe analysis principle common in technical trading methodology, where signals on a lower timeframe are treated as more reliable when they align with the prevailing direction on a higher timeframe, reducing the frequency of signals that run counter to the dominant trend. Finally, the ATR-scaled trade-level construction is grounded in volatility-normalized position and risk sizing, a standard practice in quantitative trade management where stop and target distances are expressed as a multiple of recent realized volatility (via Average True Range) rather than fixed price or percentage distances, ensuring risk parameters adapt to the current volatility regime rather than remaining static across changing market conditions.
⚠️ 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. Indicatore

Impulse Origin [Smart Money]A strong move only tells you it mattered once it is over. Impulse Origin waits for that moment: a run that closes in one direction for a set number of bars without a single counter-close, ending on a bar whose volume has expanded against its own average. When that run is complete, the tool walks back and marks the candle it started from — and not just any opposing candle, but one whose liquidity was taken by the candle that came after it. The result is a zone at the origin of the move, which is then tracked: the first close through it flips its role between support and resistance, and the second close through it retires it.
HOW IT WORKS
The idea behind it is that the beginning of a move is only interesting if the move turned out to be decisive, and you cannot know that while it is still running. So the measurement is deliberately backward-looking: the run is the gate, the origin is the output.
The run — over the last N bars there must be no close against the direction at all. A single lower close breaks an up-run; a single higher close breaks a down-run. This is measured on closes, not on candle bodies, so the run describes where price actually settled bar after bar.
The volume gate — the bar that completes the run must carry at least a chosen multiple of the average volume over its own baseline period. The baseline is independent of the run length, so a long run cannot inflate its own reference level.
The origin — from that bar the tool searches backwards for the first candle that closed against its own open: a down candle for an up-run, an up candle for a down-run. This is the candle price left from.
The sweep requirement — an opposing candle only qualifies as an origin if its liquidity was taken by the candle immediately after it. For a support origin, the next candle's low must trade below the origin low; for a resistance origin, the next candle's high must trade above the origin high. Search Back keeps walking further back until such a candle is found. First Only tests just the first opposing candle and draws nothing if it does not qualify. Off removes the requirement entirely and uses the opposing candle alone.
The zone — with the sweep requirement active, the zone spans the combined range of the origin candle and the candle that swept it, so the swept level sits inside the zone rather than at its edge. The zone is anchored to the origin candle and extends forward from there.
Role tracking — a zone holds a role until a bar closes beyond it. Wicks through it change nothing. On the first close beyond, the zone switches colour and swaps role: a support that is closed through becomes resistance, a resistance that is closed through becomes support. On the second close beyond, it is removed from the chart.
An uninterrupted run of higher closes therefore produces a support zone below, at the candle the run started from — and a run of lower closes produces a resistance zone above, the same way.
A run of N bars completes with no counter-close and with expanded volume on the final bar
The tool searches backwards for the opposing candle that started it, keeping only one whose low or high was taken by the candle after it
The zone is drawn from that candle, then tracked: first close through it flips the role, second close through it removes it
Original zones and flipped zones are kept in separate pools with their own capacity, so a new signal never pushes out a zone that has already flipped. Because a long run can produce several trigger bars in a row that all resolve to the same origin candle, the tool remembers the origin it last used and will not redraw the same candle.
HOW TO READ
A zone marks where a decisive move began, with the stops below or above it already taken before it left. Price returning to that area is returning to the point it departed from.
A grey zone is still in its original role. A blue zone has been closed through once and is now working the other way round — the level that was holding price up is now the level it is trading under, or the reverse.
A blue zone is on its last life by design. The next close through it, now in its flipped role, removes it rather than leaving an old level on the chart forever.
Only closes matter. A wick through a zone leaves it untouched, so a zone survives being tested and only changes when price actually settles on the other side.
It fires rarely by design. A run with no counter-close at all, ending on expanded volume, is not a common event — on most charts you will see a handful of zones rather than a wall of them. Shorten the run length or lower the volume ratio for more, raise them for fewer and more selective ones.
The shading carries no information: every zone is drawn at the same intensity, because the zone sits on the origin candle while the volume condition was measured on the bar that completed the run.
INPUTS
Streak Length — how many consecutive bars must close in one direction with no counter-close.
Volume Average Length — the baseline period the trigger bar's volume is measured against.
Min Volume Ratio — how many times the average that volume must be. Higher gives fewer, more selective zones.
Max Origin Lookback — how far back the search for the origin candle may run.
Liquidity Sweep — Off, Search Back, or First Only, as described above.
Original Support / Original Resistance — draw each side, with its own capacity for how many grey zones are kept.
Flipped Support Max / Flipped Resistance Max — capacity for zones that have already flipped, held separately from the originals.
ATR Length / Min Zone Height (%ATR) — if a zone is thinner than this share of ATR, it is expanded symmetrically around its midpoint. At 0 the zone keeps the exact range of the candles it came from.
Colours / Transparency Offset — the original and flipped colours, and a single offset that shifts the tone of all zones together.
NOTES & LIMITS
A zone records where a decisive move began and whether that level has since been closed through. What you make of it at the next touch is yours, and that is exactly as it should be. The volume gate is part of the mechanism, so the tool needs a volume feed to produce anything at all — on a symbol that publishes no volume, no zones are drawn, and on forex and CFDs the volume is tick volume (the number of price updates, not contracts traded), which makes the gate read more loosely there. The zone is anchored to the origin candle in the past but is published on the close of the bar that completes the run, so on a chart you are scrolling back through, the zone was not on the screen for the bars between the two. Its price boundaries are set when it is created and never move afterwards: creation, the role flip and the removal all happen on closed bars, and the colour change is a change of state, not of level. The zone is as tall as the candles it came from — with the sweep requirement active that is the origin candle and the candle that swept it combined — so on volatile instruments it can be a wide band; Min Zone Height only ever expands a zone, never shrinks one. Breaks are judged on closes alone, so a wick beyond a zone leaves its role unchanged. No profit, win-rate, or guarantee claim. Open-source under CC BY-NC-SA 4.0 — non-commercial use, attribution to ElisTools required for reuse or derivatives. TradingView (Pine v6) only. Indicatore

Pressure Transfer ZoneMany reversal indicators tell you when a market looks stretched. Pressure Transfer Zone asks a harder question: when price returns to the extreme, can the side that drove it there still make meaningful progress?
This indicator was built to identify a specific form of failed continuation. It waits for a strong directional drive, a real retreat, and then a second attempt at the extreme. If that second attempt makes little progress and closes with clear rejection, the script freezes the structure into a decision zone. From there, price must prove that control has actually transferred before a signal is confirmed.
The goal is not to call every top or bottom. The goal is to isolate the moments when a mature move may be losing control, show that process directly on the chart, and give the trader clear confirmation and invalidation levels.
WHO IT IS FOR
Pressure Transfer Zone is designed for intraday, swing, and position traders who use price action and want a more disciplined way to evaluate exhaustion, failed breakouts, failed continuation, and early reversals.
It is designed for liquid stocks, futures, forex, and cryptocurrency on standard candlestick charts. The engine does not run on Heikin Ashi, Renko, or other synthetic chart types because their prices can distort the structure being measured.
THE IDEA BEHIND IT
A strong trend does not end simply because price is overbought, oversold, or extended. Strong moves can remain extended for a long time. What matters is whether the original side can still produce results when it gets another opportunity.
The pattern develops in five stages:
1. A mature directional drive establishes real displacement.
2. Price makes a meaningful retreat away from the extreme.
3. The original side returns for a second attempt.
4. That second attempt produces limited progress and a weaker close.
5. Price confirms the transfer with a qualified break of the selected boundary or, in Sniper mode, with that break followed by a successful first retest.
This is an effort-versus-result test expressed entirely through price. The script does not claim to measure order flow, bid/ask delta, institutional activity, hidden liquidity, or volume pressure.
HOW THE MATHEMATICS WORKS
The first filter is directional efficiency:
Directional efficiency = net directional change / total absolute bar-to-bar movement
A clean drive that travels mostly in one direction receives a higher score. A noisy move that covers a lot of distance but makes little net progress receives a lower score.
The selected Source is used for net displacement and path efficiency. The zone itself is always built from confirmed OHLC prices.
The drive must also meet volatility, range, closing-location, and local-extreme requirements. Under the default pace profiles, it must:
* Produce at least 1.25 ATR of net directional displacement.
* Span at least 2.00 to 2.50 ATR, depending on the selected pace.
* Meet a directional-efficiency threshold of 0.40 to 0.48.
* Close in the outer 28% of the drive range.
* Create a fresh local extreme.
ATR is measured with a 14-bar lookback and frozen when the sequence begins. This prevents later volatility changes from moving the event’s established thresholds.
The retreat must travel at least the greater of 0.55 ATR or 18% of the original drive range, and the closing price must confirm that full retreat distance.
When price returns to the extreme, the second attempt must show deterioration. By default:
* Price must return to within the greater of 0.30 ATR or 8% of the original drive range from the first extreme.
* New progress beyond the first extreme cannot exceed 0.20 ATR.
* The second push cannot exceed 72% of the original drive range.
* The close must migrate away from the first attempt by at least 0.10 ATR.
* Rejection must equal at least the greater of 0.25 ATR or 25% of the developing zone.
* The rejection bar must close within the directional outer 45% of its range.
* The completed zone cannot exceed 60% of the original drive range.
Together, these filters are intended to remove many one-candle reactions, shallow pauses, and weak two-test formations. The model wants to see a legitimate first drive, real separation between attempts, and measurable deterioration on the return.
THE ZONE
Once the second attempt qualifies, the structure is armed and its levels are frozen:
* Outer edge: the most extreme price reached by the two attempts.
* Inner edge: the counter-extreme formed between the two attempts.
* Midpoint: the halfway point of the zone.
* Invalidation: 0.15 ATR beyond the outer edge in the direction of the original move.
For a bullish setup, price must transfer upward after a mature downward drive. For a bearish setup, price must transfer downward after a mature upward drive.
Invalidation requires a confirmed close beyond the buffered outer edge. The invalidation level is structural information, not an automatic stop-loss recommendation.
ENTRY TIMING
Early
Confirms on a qualified close through the zone midpoint. This is the fastest mode and can trigger on the same confirmed bar that arms the zone. It offers earlier recognition with a greater risk of false starts.
Balanced
Confirms on a later qualified close beyond the structural inner edge. Balanced is the default middle ground between earlier recognition and additional structural confirmation.
Sniper
Requires a qualified break of the inner edge followed by the first later retest of that level. The retest must remain shallow and close back in the transfer direction. The first retest decides the setup; a failed first retest cannot become a signal later.
The breakout candle must move in the transfer direction, span at least 0.35 ATR, have a real body covering at least 45% of its range, close within the directional outer 32% of the candle, and finish no more than 0.45 ATR beyond the selected boundary. The final limit is an anti-chase filter.
A valid Sniper retest must stay within 15% of the frozen zone depth, close at least 0.05 ATR back beyond the inner edge, have a directional body covering at least 35% of the candle, and close within the directional outer 40% of its range.
HOW TO READ THE CHART
With the default color palette:
* Amber: the pattern is still developing. It is information, not an entry signal.
* Violet: the structure is complete, armed, and waiting for confirmation.
* Cyan: the action area between the midpoint and inner edge.
* Green: a bullish pressure transfer has been confirmed.
* Red: a bearish pressure transfer has been confirmed.
* Faint gray: an armed setup failed, expired, or was invalidated.
The right-edge label shows the current phase and the next required action. Once the structure is armed, it also displays the confirmation boundary and invalidation price. A diamond appears only when the selected timing mode produces a confirmed trigger.
When Keep Recent Resolved Zones is enabled, the script retains a limited number of recent successful and failed zones. The default is eight, adjustable from one to twelve, so failures remain visible without overwhelming the chart.
PRACTICAL USE
1. Treat an amber zone as a developing idea, not permission to trade.
2. When the zone turns violet, note its direction, confirmation boundary, and invalidation price.
3. Wait for the exact requirement of Early, Balanced, or Sniper mode.
4. Use the broader trend, nearby support and resistance, liquidity, session conditions, and scheduled news as separate context.
5. Apply your own position sizing, stop placement, targets, and trade-management rules.
ADAPTIVE PACE
Auto mode adjusts the engine according to the chart timeframe:
* Fast: 15-minute charts and below.
* Swing: above 15 minutes through 4 hours.
* Position: above 4 hours.
Fast, Swing, and Position can also be selected manually. The selected pace changes the drive and local-extreme lookbacks, minimum drive size, efficiency threshold, formation lifetime, armed lifetime, and Sniper retest window. It does not change the meaning of the pattern.
ALERTS
The indicator includes five alerts:
* Long Zone Armed
* Short Zone Armed
* Long Pressure Transfer
* Short Pressure Transfer
* Pressure Transfer Invalidated
Create alerts using Once Per Bar Close.
Trigger alerts and chart diamonds use the same confirmed-bar event. If an Early setup resolves on the same bar it arms, the temporary armed alert is suppressed so users do not receive a stale or redundant notification.
CONFIRMED-BAR DESIGN
Actionable signals are confirmed only after the chart bar closes. They are not backdated and do not use future data, pivot backpainting, negative offsets, higher-timeframe requests, or lookahead logic.
Amber developing zones are intentionally provisional and can change or disappear because the pattern is not complete. Once a zone turns violet, its structural prices and invalidation level are frozen for that event.
LIMITATIONS
Pressure Transfer Zone identifies structural-exhaustion candidates, not guaranteed reversals. It tracks one active sequence at a time and can miss fast V-shaped turns that never form two separate attempts.
Strong trends can repeatedly invalidate countertrend setups. Thin markets, price gaps, news shocks, and irregular sessions can also reduce the usefulness of ATR-based thresholds.
This is an indicator, not a strategy. It does not place orders, calculate position size, set profit targets, or claim a win rate. Its job is narrower: determine whether the original directional side returned to the extreme, failed to produce enough additional progress, and then met the model’s confirmation rule at a clearly defined price.
Indicatore

Engulfing Overlap Zone [8 Types]Engulfing Overlap Zone
This script looks for the moment control changes hands.
An engulfing pattern forms and commits one side of the market. Later that pattern breaks. On or
around the same candle, an engulfing pattern in the OPPOSITE direction confirms. When the two
structures occupy the same price area, that shared area is where one side was trapped and the
other took over. This script finds those moments and draws only that area.
Nothing else is plotted. Ordinary engulfing patterns, and engulfing patterns that simply failed,
are used internally but never drawn, because on their own they are not what this tool is about.
WHAT MAKES THIS DIFFERENT
1. It reports a transfer of control, not a pattern.
Most pattern tools mark every occurrence they find. This one requires a three step sequence to
complete before anything appears: a pattern forms, that pattern breaks, and an opposing pattern
confirms in the same price area. Any of the three missing means nothing is drawn.
2. The zone is measured, not just marked.
Two zones can touch by a hair or sit almost perfectly on top of each other. Those are very
different situations, so the script measures how much of the zone is actually shared and states
it as a percentage. You can then hide everything below a threshold you choose.
3. Everything is sorted into eight types.
The zone carries the identity of the engulfing pattern that took over, including whether that
pattern grabbed liquidity before it confirmed. Each of the eight can be shown or hidden
independently and has its own alert.
4. The hard part is the pairing.
When a pattern breaks there is often more than one opposing pattern nearby that could be its
counterpart. Picking the right one, and rejecting the ones that only look related, is what this
script is really about. The rule used is simple to state and is described below, but it is the
piece that decides whether the output is meaningful or noise.
THE PATTERNS INVOLVED
A candle is Green when close is greater than open, Red when close is less than open, and a Doji
when close equals open. A Doji is neither. Only fully closed candles are read, and the running
candle is never used.
Regular engulfing, two candles
R Buy EG: Red Base candle, and the very next candle is Green and closes above the Base High.
R Sell EG: Green Base candle, and the very next candle is Red and closes below the Base Low.
E-Regular engulfing, three or more candles
ER Buy EG: Red Base candle followed by a run of consecutive Green candles. The run must contain
at least 2 Green candles, and confirmation happens when one of them closes above the Base High.
A single Red candle before confirmation cancels the run. Doji candles are skipped: they neither
count toward the run nor break it.
ER Sell EG: the mirror image, with a Green Base and a run of at least 2 Red candles, one of
which closes below the Base Low.
If the very first candle after the Base already closes through it, that is by definition a
Regular pattern, so E-Regular requires the second candle or later to break the level. One Base
candle can never produce both.
Type 1, the same four patterns plus a liquidity sweep
Type 1 adds one requirement: before the close breaks through one side of the Base candle, price
must have traded through the opposite side.
T1 R Buy EG: the Confirm candle's Low reaches at or below the Base Low.
T1 R Sell EG: the Confirm candle's High reaches at or above the Base High.
T1 ER Buy EG: at least one Green candle of the run reaches at or below the Base Low.
T1 ER Sell EG: at least one Red candle of the run reaches at or above the Base High.
Any candle of the run can satisfy the sweep, including the Confirm candle itself. The sweep is
always measured against the Base candle, never against another candle in the run.
HOW AN OVERLAP ZONE IS BUILT
Step 1. A pattern confirms and is tracked from then on.
Step 2. The pattern breaks. A Buy Engulfing breaks when a Red candle CLOSES below its Base Low.
A Sell Engulfing breaks when a Green candle CLOSES above its Base High. A wick through the level
is not enough; the close has to settle beyond it.
Step 3. The script looks for an engulfing pattern in the opposite direction whose confirmation
lands on the breaking candle, or as close before it as possible, and whose zone shares both time
and price with the broken one. Where several candidates exist, the one closest to the break is
taken, because that is the one that actually represents the handover.
When all three steps line up, one zone is drawn: the price range of the Base candle of the
pattern that took over, running from that Base candle to its Confirm candle.
The eight resulting types are R Buy EG Overlap, R Sell EG Overlap, ER Buy EG Overlap, ER Sell EG
Overlap and the four Type 1 versions of the same. The type always describes the pattern that
took over, because that is the zone on your chart.
OVERLAP STRENGTH
Strength is the share of the drawn zone that sits inside the price range of the broken zone.
100 percent means the whole zone is shared, which is the tightest possible confluence. A small
number means the two structures barely reach each other. The figure is appended to each label,
and Minimum Overlap Strength lets you discard anything below a level you set. That threshold
applies to the chart, the summary table and the alerts together, so what you see and what you
are notified about never disagree.
READING THE CHART
Each zone is filled in two tones, and the split is the whole point:
- The part that shares price with the broken zone is drawn in the direction colour, green for a
Buy Overlap and red for a Sell Overlap, with a solid border. This is the confluence.
- Whatever is left over is drawn in neutral yellow with no border.
So the colour split you see is the strength figure, shown rather than stated. A zone that is
almost entirely green is strong. A zone with a thin green sliver and a large yellow body is
weak, and the percentage will say so.
Each zone carries a label with its type and strength, placed below a Buy Overlap and above a
Sell Overlap so it points at its own zone.
A summary table in the corner counts what was found in the current scan window, split by Buy and
Sell. Types you have switched off are still counted, so the table always reflects what the market
printed rather than what is currently on screen. Zones rejected by the strength threshold are not
counted, because that threshold decides what qualifies as a zone at all.
SETTINGS
Scan
- Scan Length: how many closed candles are scanned backwards. The running candle is always
excluded.
- Minimum Overlap Strength: the percentage a zone must reach to qualify.
Pattern Types
- An individual switch for each of the eight types.
Zone Style
- Separate colours for the shared area and the remaining area, on both the Buy and Sell side.
Labels
- Show Labels, Show Strength in Label, Label Size, and Label Distance from Zone as a percentage
of the zone height. Increase the distance on noisy charts so labels clear the candles.
Summary Table
- Show, position and size of the corner table.
ALERTS
Eight alert conditions are available, one per type:
R Buy EG Overlap, R Sell EG Overlap, T1 R Buy EG Overlap, T1 R Sell EG Overlap, ER Buy EG
Overlap, ER Sell EG Overlap, T1 ER Buy EG Overlap, T1 ER Sell EG Overlap.
An alert fires on the candle that completes the handover. Each message carries the type, the
symbol, the timeframe and the closing price. The same messages are also sent through the alert
function, so the "Any alert() function call" alert type can deliver every zone through a single
alert.
All alerts are evaluated only after a candle has fully closed.
If you read the source, note that the chart and the alerts are two separate paths. The chart is
rebuilt by scanning history backwards on the last bar, while the alerts keep a running list of
confirmed patterns and test each closed candle against it. Two paths are used because rescanning
the whole history on every bar would be far too slow, and a running list cannot redraw the past.
Both apply exactly the same rules and the same strength threshold, so they always agree.
REPAINTING
This script does not repaint.
- Detection reads confirmed candles only. The scan starts one bar behind the latest bar, so the
candle that is still forming is never part of any calculation.
- Every alert signal is written so that it can only become true once a candle has finished. Price
moving inside an open candle cannot make a signal appear and then disappear.
- Zones are rebuilt on the last bar from confirmed history. A drawn zone does not move, change
colour, change type or change its strength figure afterwards. It only leaves the chart when it
falls outside the Scan Length window.
When you create an alert, TradingView may show a caution banner saying the indicator can repaint.
That banner appears automatically for any script that uses the built in bar state variables, no
matter how they are used, because the platform cannot check the intent behind them. This script
uses them for the opposite purpose: one of them is what restricts every signal to bar close, and
the other is what redraws the zones efficiently on the final bar. Choosing "Once Per Bar Close"
when creating the alert is still recommended.
NOTES AND LIMITATIONS
- These zones are rare by design. Three separate conditions have to line up, so long stretches
with nothing on the chart are normal and expected. If you want to see more, lower the strength
threshold before raising the scan length.
- Scan Length is capped lower than in a plain pattern scanner. Every candidate pattern has to be
followed forward for a break and then matched against opposing patterns, which is far heavier
than simply detecting a pattern. The cap keeps the script responsive on slower machines.
- A zone whose Base candle falls outside the scan window will not appear even if the handover
itself was recent. If zones seem to be missing, raise the Scan Length before changing anything
else.
- For alerts the number of patterns tracked at once is capped and the oldest are released first.
In practice patterns break or age out long before this matters.
- Detection is purely structural. It reports where control changed hands and how much the two
structures shared. It does not rank zones beyond that, measure what happened afterwards, or
produce entries, targets or stops.
- Doji candles are treated as neutral by design. They never act as a Base candle and never break
an E-Regular run. On symbols and timeframes that print many Doji candles this makes runs
slightly more tolerant than a strict same colour rule would be.
HOW TO USE IT
A zone marks an area where one side committed, was proven wrong, and was immediately replaced by
the other side. Traders commonly watch these areas for reactions when price returns to them,
particularly the shared portion, since that is the part both structures agreed on.
The strength figure is there to let you be selective. Starting at zero shows everything so you
can see how the tool behaves on your symbol and timeframe, and raising it narrows the output to
the tighter confluences.
Type 1 zones are worth separating out. There the pattern that took over first grabbed liquidity
and only then confirmed, which is a different sequence from a clean takeover.
These are reference areas, not entry signals. Use them alongside higher timeframe structure, your
own support and resistance mapping, and proper risk management.
DISCLAIMER
This indicator is a pattern detection tool. It is not financial advice and it makes no claim
about profitability. Trading involves risk. Always apply your own analysis and risk management. Indicatore

AlgoStorm Institutional Session Structure (ISS)AlgoStorm Institutional Session Structure (ISS)
A complete intraday auction-structure engine that maps global session boxes (Asia, London, New York), the Globex overnight range, the Initial Balance with day-type extension targets, the Opening Range, and an automated overnight-inventory classification of the RTH open — directly onto your intraday charts.
The AlgoStorm Institutional Session Structure (ISS) indicator is designed for index futures and intraday traders who read the market through the auction lens: where overnight inventory built, whether the open printed inside or outside that inventory, whether the Initial Balance is containing rotation or the day is extending toward trend, and which session built the reference high or low everyone now trades against. It answers those questions structurally instead of drawing decorative boxes.
TIMEFRAME REQUIREMENT — READ BEFORE LOADING
This is an intraday tool. It refuses to run on 1D charts and above, and the chart timeframe should stay at or below the Opening Range length (the Opening Range and Initial Balance locks resolve at bar granularity). All session windows are DST-aware through a configurable IANA timezone, defaulting to New York time.
Technical Architecture: Fixed-Pool Session Engine
Session-structure indicators commonly rebuild their drawings on every bar, bloating chart performance and churning objects. ISS uses a different execution model:
Per-Session Box Engines: Each session runs its own tracking engine with a private box history. The active box updates its high/low boundary in place as the session develops; boxes older than the history cap (default five days, configurable to twenty) are evicted automatically.
Time-Window Lock Pipeline: The overnight range, Initial Balance, and Opening Range each accumulate in staging registers, then lock permanently the moment their window closes — the overnight at the RTH open, the IB and OR when their configurable minute-windows complete. Locked levels cannot move for the rest of the day.
Extension Mathematics: Extension targets use the classic day-type formula, extension(m) = IB low + m × IB range above the market and IB high − m × IB range below it, with 1.5× and 2.0× defaults. A 1.5× tag means price has traveled 150% of the IB range from the opposite IB boundary.
Zero-Churn Drawing Pool: Every level line and label is created exactly once at initialization and repositioned in place afterward. No per-bar create/delete cycles, no garbage-collection artifacts.
Label Anti-Overlap Engine: Right-edge labels (ON, IB, extensions, OR) are sorted by price each bar and automatically spaced apart whenever two or more sit within a configurable minimum gap (default 0.05% of price). Level lines always stay locked to the true price — only the label text position shifts to stay readable. On by default; fully optional.
Confirmed-Bar Alert Gate: Every alert condition is gated on confirmed bar closes inside RTH. Nothing repaints, and no alert can fire intra-bar and then vanish.
Features & Functionality
Session Boxes: Asia, London, and New York boxes with running high/low, dotted session-open line, and session label. Defaults cover the full sessions (18:00–03:00, 03:00–09:30, 09:30–16:00 New York time); killzone-style alternatives are documented in the input tooltips.
Overnight Range Lock: Globex high/low accumulated through the overnight window and held through the trading day — the reference frame for gap and inventory reads.
Initial Balance + Extension Targets: First 60 minutes of RTH (configurable 15–120) with configurable extension multiples for day-type classification: containment inside the IB, 1.5× tests, or 2× trend extension.
Opening Range: First 15 minutes of RTH (configurable 1–60) — the breakout reference for the open drive.
Overnight Inventory Read: At the RTH open, the engine classifies the print: above the ON high, upper half of the ON range, lower half, or below the ON low — the gap-risk context before the first rotation completes.
Session State Table: Active session, ON high/low, open-vs-ON classification, IB range (shows "forming…" while building, then the locked H/L) with a separate breakout status (inside IB vs. breakout ▲/▼), OR range and status, and which IB extensions have been tested — the whole auction state in one glance.
Alert Suite: Eight conditions — Opening Range breakout up/down, Initial Balance breakout up/down, overnight high/low break, and upper/lower reach of the second IB extension multiple (default 2.0×, trend-day behavior). The first multiple (default 1.5×) is tracked live in the state table but does not carry its own alert.
Honest limitations: ISS is structural context, not a signal system — no entries, no exits, no arrows . Intraday levels draw for the current day only by design; historical context comes from the session boxes. If you also run our Institutional Key Levels (IKL) script, keep IKL's Initial Balance, Opening Range, and Overnight toggles off so nothing double-plots — ISS is the time-anchored view, IKL is the right-edge level strip.
Open-source under CC BY-NC-SA 4.0. Educational tool — not financial advice. Indicatore

Liquidity Hunter | SMC System - Full SuiteA full-sequence Smart Money Concepts strategy that trades the way institutional order flow moves — liquidity sweep, displacement, structure break, and a confirmed retest.
This strategy chains them into the complete institutional sequence: a real liquidity pool gets taken, an impulsive displacement candle breaks structure, a correctly-identified order block gets frozen at that exact moment, and only a genuine retest with confirmation triggers the entry.
Features
The Full SMC Sequence
HTF Bias → Liquidity Pool Taken → Sweep → Displacement Candle → BOS/CHoCH → FVG → Return to OB → Confirmation → Entry — every stage gated on the one before it, so entries reflect genuine confluence rather than a single coincidental signal.
Real Liquidity Pool Tracking
Tracks multiple historical swing highs/lows simultaneously (not just the most recent one), so a sweep can trigger off any untaken pool — mirroring how liquidity actually accumulates at equal highs/lows and older structure.
Displacement Filter
Structure breaks only count as valid if the breaking candle's body exceeds a configurable ATR multiple — filters out slow grinds through a level that aren't genuine institutional impulses.
Frozen-Zone Retest Logic
Once an OB forms, its boundaries are locked/frozen at that moment. Entries reference this frozen snapshot, not a live, potentially-mutated box — with an overlap-based touch test (not a strict "price must sit inside the zone" test) for realistic retest detection.
Configurable Confirmation Filters
After a retest touch, choose from: no confirmation, rejection candle, engulfing candle, close back through the OB, or a break of the retest candle's high/low — tune entry strictness to your risk tolerance.
Higher Timeframe Bias
Optional HTF trend filter ensures you're only taking setups aligned with the dominant trend on a higher timeframe.
FVG Confluence Option
Optionally require that the structure break actually creates a fair value gap — an added imbalance-based confluence layer before a setup is even considered.
Liquidity-Target Take Profit
Choose a fixed R-multiple target, or let the strategy aim at the nearest untaken liquidity pool in the trade's direction — closer to how institutional targets are actually theorized to work.
Risk-Based Position Sizing
Size trades by % risk per trade (scaled to actual stop distance) or flat % of equity, with a hard position-size cap.
Realistic Cost Modeling
Commission and slippage built into the backtest engine from the start.
Notes
Start with requireOBRetest = true and confirmationMode = "None" to validate the base sequence produces trades before layering on stricter confirmation modes.
HTF Bias and FVG Confluence are off by default — each meaningfully reduces trade frequency in exchange for higher-conviction setups; enable incrementally and check trade count after each change.
Works on any intraday or swing timeframe — the sequence logic (sweep → displacement → BOS → retest) is timeframe-agnostic, though displacement thresholds and pool aging windows may need retuning per timeframe.
"Nearest Liquidity Pool" take-profit mode requires active, untaken pools in the trade's direction to function — falls back to the R-multiple target if none exist.
Strategia

StonkGame MTF MA Trend TableOverview
StonkGame MTF MAs & Trend Table is designed to provide objective market context across multiple trading horizons, regardless of the timeframe you're trading.
Rather than trying to predict future price, it measures where price sits relative to trend, whether that trend is strengthening or weakening, how well different horizons agree with one another, and whether today's move is typical or historically unusual.
The goal is to keep the bigger picture in view, whether you're trading a 1-minute chart or managing a long-term position.
How It Works
Each horizon (Hourly, Daily, Weekly, Monthly, Quarterly, Half-Year, Yearly and Multi-Year) can use its own timeframe and moving average length. Every horizon evaluates:
Price relative to its moving average
Trend direction and momentum
Historical Z-score
Historical percentile
Adaptive normalization
Those measurements are combined into an objective view of trend quality, momentum and cross-horizon alignment.
Adaptive Normalization
Markets don't all behave the same. A 2% move in SPY doesn't carry the same meaning as a 2% move in Bitcoin, crude oil or gold.
Instead of comparing raw price movement, each horizon compares today's reading against that market's own history using up to 1,000 valid observations. If less history exists, the script automatically uses the largest reliable sample available. If there isn't enough data to produce meaningful statistics, it displays N/A rather than potentially misleading values.
Reading the Dashboard
The dashboard is designed to answer four questions:
Trend: Is the market structurally bullish, bearish or mixed?
Momentum: Is that trend strengthening or weakening?
Context: How unusual is the current move relative to its own history?
Alignment: Are different trading horizons telling the same story?
The Setup Score summarizes overall trend quality, consistency and market structure. Higher scores generally reflect cleaner, more aligned conditions, while lower scores suggest greater conflict or uncertainty.
Notes
This indicator is descriptive, not predictive. Strong trends can stay extended, and statistically extreme readings are not automatic buy or sell signals. They are intended to provide context alongside price action, risk management and your own trading process.
Changing the moving average type, timeframe, horizon lengths or normalization settings changes how the market is evaluated. There is no universally correct configuration—choose settings that match your trading horizon and objectives. Indicatore

High Volume Breakout Targets [AlgoAlpha]🟠 OVERVIEW
High Volume Breakout Targets identifies price zones formed by related pivot highs or pivot lows. These zones represent areas where price previously reacted around overlapping wick and candle-body levels.
The indicator then checks whether price closes through a zone with enough of the breakout candle extending beyond its boundary. Qualified breakouts can display directional labels, an entry level, and three targets based on the height of the broken zone.
Normalized volume candles are also shown inside recent active zones. This helps traders compare current volume with its recent average while watching price interact with a potential support or resistance area.
🟠 CONCEPTS
Pivot High Zone — A resistance area formed when a confirmed pivot-high wick falls within the body of a previous pivot-high candle. The zone spans the associated wick highs and body-top levels.
Pivot Low Zone — A support area formed when a confirmed pivot-low wick falls within the body of a previous pivot-low candle. The zone spans the associated wick lows and body-bottom levels.
Pivot Confirmation — A pivot requires the selected number of bars on both sides of the turning point. A higher Pivot Length identifies broader structures but confirms them later and less often.
Zone Maximum Age — The maximum number of bars during which two pivots can be associated and an active zone can continue extending. An expired zone remains visible but no longer produces a breakout.
Qualified Breakout — A breakout requires a confirmed close above a bearish zone or below a bullish zone. It must also place the selected percentage of the candle’s full range beyond the broken boundary.
Normalized Volume — Current volume is divided by its 20-bar average. The resulting ratio controls the size and transparency of the volume candle displayed inside an active zone.
Breakout Targets — The breakout close becomes the entry level. The broken zone’s height is divided into three equal steps to calculate TP1, TP2, and TP3 in the breakout direction.
Target Expiry — Each target setup remains active for a selected number of bars. When TP1 or TP2 is reached, the remaining unhit targets receive a new expiry period from the hit candle.
🟠 FEATURES
Pivot Zones — Displays bullish support zones and bearish resistance zones created from associated pivot structures.
Breakout Labels — Marks bullish and bearish closes that satisfy the selected outside-range requirement.
Three-Level Targets — Displays the breakout entry, a target area, and TP1, TP2, and TP3 levels derived from the broken zone’s height.
Zone Volume Display — Shows normalized volume candles inside the four most recently active zones.
Target Completion Marker — Prints a checkmark on the first candle whose wick reaches TP3.
🟠 HOW TO USE
Adjust Pivot Length to match the structure you trade. Use lower values for smaller and more frequent zones, or higher values for broader and less frequent zones.
Treat bullish zones as potential support and bearish zones as potential resistance while they continue extending.
Watch how price behaves inside a zone. Use the normalized volume candles to compare participation with the recent volume average.
Wait for a breakout label rather than treating every wick through a zone as a breakout. A label appears only after the candle closes beyond the boundary and meets the Minimum Breakout Range setting.
Use a higher Minimum Breakout Range to require more of the breakout candle to trade beyond the zone. Use a lower value to accept less decisive moves.
After a qualified breakout, use the entry line as the breakout reference and TP1, TP2, and TP3 as zone-based projection levels.
Check whether targets are reached before their expiry. TP1 and TP2 extend the active period for the remaining targets when reached.
Combine the zones and breakout signals with market structure, trend direction, liquidity, and risk controls. The indicator does not define a stop-loss or position size.
🟠 CONCLUSION
High Volume Breakout Targets combines pivot-based support and resistance zones, normalized volume context, qualified breakout signals, and zone-height target projections. It gives traders a structured way to assess price interaction with established zones and track the progression of confirmed breakouts. Indicatore

Sigmoid Alpha Bands | NAL1. Overview
Sigmoid Alpha Bands | NAL is an adaptive trend and volatility framework built around a sigmoid-weighted EMA baseline and dynamically adjusted volatility bands.
Instead of smoothing price with a fixed alpha, the indicator modifies its responsiveness using a selected market feed. Momentum, volatility, volume, or price disparity can control how quickly the baseline adapts to changing conditions.
The surrounding bands can also respond asymmetrically to bullish and bearish return shocks. This allows the upper and lower boundaries to develop independently rather than remaining equally spaced around the baseline.
2. Calculation
The indicator begins by selecting the market variable used to control the baseline’s adaptive smoothing weight.
Momentum measures changes in RSI, volatility measures changes in ATR, volume measures changes in smoothed volume, and disparity measures changes in price relative to its EMA.
sigmoidFeed = switch sigFeed
"Momentum" => ta.change(ta.rsi(src, modLen), changeL)
"Volatility" => ta.change(ta.atr(modLen), changeL)
"Volume" => ta.change(ta.ema(volume, modLen), changeL)
"Disparity" => ta.change(src / ta.ema(src, modLen), changeL)
The selected feed is passed through a sigmoid function, converting it into a bounded adaptive weight.
That weight modifies the standard EMA alpha. When the sigmoid weight increases, the baseline can respond more quickly. When it decreases, the baseline becomes more stable.
sigmoidWeight = sigmoid_function(sigmoidFeed)
baseAlpha = 2.0 / (emaLen + 1.0)
adaptiveAlpha = f_clamp(baseAlpha * (0.5 + sigmoidWeight), 0.01, 1.0)
The final adaptive baseline is calculated recursively using the changing alpha.
sigmoid_ema = f_sigmoid_ema(src, sigmoidFeed, sigLen)
The indicator then calculates its base volatility using one of four methods: standard deviation, ATR, mean absolute deviation, or median absolute deviation.
volatilityRaw = switch volFeed
"SD" => ta.stdev(src, volLen)
"ATR" => ta.atr(volLen)
"MeanAD" => ta.dev(src, volLen)
"MedianAD" => f_median_ad(src, volLen)
This raw volatility value is also processed through a sigmoid-adaptive smoothing layer. The result becomes the symmetric volatility foundation used by the bands.
volatilityFeed = ta.change(volatilityRaw / nz(ta.ema(volatilityRaw, volLen), volatilityRaw), changeL)
volatility = f_sigmoid_ema(volatilityRaw, volatilityFeed, volLen)
When asymmetric bands are enabled, positive and negative log-return shocks are separated into bullish and bearish variance components.
bullShock = math.pow(math.max(ret, 0.0), 2.0)
bearShock = math.pow(math.max(-ret, 0.0), 2.0)
totalShock = bullShock + bearShock
Each shock component is adaptively smoothed and compared with total variance. This produces separate upper and lower volatility multipliers.
The multipliers are constrained around their longer-term average so the bands can adapt without becoming unstable.
upperVol = math.max(nz(symmetricVol, syminfo.mintick) * upperMultAdj, syminfo.mintick)
lowerVol = math.max(nz(symmetricVol, syminfo.mintick) * lowerMultAdj, syminfo.mintick)
The final bands are positioned around the sigmoid-adaptive baseline.
upperBand = sigmoid_ema + finalUpper * volMul
lowerBand = sigmoid_ema - finalLower * volMul
A bullish state is established when price closes above the upper band. A bearish state is established when price closes below the lower band. While price remains between the boundaries, the existing state is preserved.
if close > upperBand
NAL := 1
if close < lowerBand
NAL := -1
3. Key Features
Sigmoid-weighted adaptive EMA baseline.
Selectable momentum, volatility, volume, or disparity adaptation feed.
Multiple volatility calculation methods.
Optional asymmetric bullish and bearish volatility bands.
Independent modeling of positive and negative return shocks.
Controlled asymmetry through long-term multiplier normalization.
State-based candle coloring, layered volatility hulls, glow effects, and directional fills.
4. Use
Sigmoid Alpha Bands is designed to identify when price expands beyond an adaptively smoothed volatility structure.
A close above the upper boundary reflects bullish expansion beyond the current baseline and volatility regime. A close below the lower boundary reflects bearish expansion beneath that structure.
The asymmetric mode allows the indicator to recognize that bullish and bearish volatility do not always develop with equal intensity. As market pressure changes, each side of the channel can adjust independently while remaining anchored to the same adaptive baseline.
This indicator is designed as a specialized component within a complete strategy architecture. Its role is to isolate the interaction between adaptive trend, changing volatility, and directional return pressure. Its full value emerges through the way this information is integrated into a broader decision framework.
Indicatore
