Trade Wzrd - Tide [Rampage Series]✨ TRADE WZRD - TIDE ✨
Every price level has an owner. Not a metaphor - a measurement.
Tide splits the range's volume row by row into buy mass and sell mass , finds the levels one side owns outright, and draws them as living lines on the chart - with a graveyard of the levels that came before.
⚡ THE RAMPAGE SERIES ⚡
Tide is a release in the Rampage Series - a growing family of volume-and-levels tools built by Trade Wzrd. Every Rampage script ships with the same built-in automation layer: signals don't just paint, they speak. One alert, one webhook, and every entry, exit and fill fires a plain-text order string.
⚡ THE OWNERSHIP ZONES (THE HERO) ✨
Every bar's volume is divided by who won the close - bars that closed high are buyers' mass, bars that closed low are sellers' mass - then spread across the price rows it touched. When one side owns 65%+ of everything traded at a row (your threshold), that row is a SHELF. Tide paints the two that matter right now as ownership ZONES : the highest buyer shelf below price as a soft cyan field, the lowest seller shelf above it in red - the exact band one side owns, a glow bed under a bright edge, and the ownership printed right inside the zone: "78% OWNED BY BUYERS" . A tag at the right edge carries the price and the percentage; hover it for who owns it, since when, and exactly where it dies. A zone stays alive until price closes clean through it - then it dies where it fell, no ghost, because a failed level is just a line.
⚡ THE FOSSILS (THE HISTORY) ✨
When a shelf is replaced - not broken, just handed off to the next level - it fades into a fossil: a dotted ghost in its owner's color, frozen at the bar it was born. Fossils stay on the chart until the market mitigates them: price trades through a ghost and it's erased. What's left is the archaeology of the setup - every level that used to matter, still standing where it stood, until the market itself takes it down. Cap the graveyard or turn it off in the Fossils group.
⚡ THE POOLS (THE LIQUIDITY) ✨
Equal highs and equal lows are not coincidences - they're where the stops rest. Tide clusters swings within a tolerance you set into liquidity POOLS, and draws them as gold levels: the exact price, the touch count that built them (×3 = three equal highs worth of stops), dashed while the liquidity rests. Then the raid comes: a wick through the pool that closes back = the sweep. The chart stamps it in gold, the pool marks itself TAKEN in dots, and it dies honestly when price consumes it or time forgets it. And here's the fusion: a fresh sweep near a shelf fuels the defense - conviction rises, and the chip's hover tells you exactly why: "the sell stops are already taken." The dashboard's POOLS row names the nearest pool each side with its touches and distance in ATR.
⚡ THE CROWN & THE CENTER ✨
The dashed white line is the Point of Control - the row where the most mass traded in the range, price tagged at its end. The optional volume-center line is the 50/50 magnet every defense aims for. The full ownership numbers - undertow, POC, shelf count, balance - live on the dashboard, one glance away.
⚡ THE DEFENSE (THE SIGNAL) ✨
Price returns to a shelf and the owners defend it: a dip into a buyer shelf that closes back above = BUY · DEF. A poke into a seller shelf that closes back below = SELL · DEF. One defense per shelf per touch - a fired shelf releases only when price escapes it cleanly, so fresh touches can defend again but wick-spam cannot. Stops frame the shelf's far edge: if price trades through the shelf, the defense failed, honestly. Targets default to the VOLUME CENTER - the 50/50 magnet of the range's mass - capped at 3R with an R-multiple fallback.
⚡ THE UNDERTOW ✨
Beneath the rows, one number: the range's net delta. BULL +18% means the mass leans long; BEAR -12% means it leans short; BALANCED means the tide is slack. It's the dashboard's top row because it's the context every defense swims in.
⚡ CONVICTION & THE DATABASE ✨
Every defense carries one compact number - CONVICTION. Underneath: this chart's own live database, defenses bucketed by the shelf's dominance (owned / dominated / ruled) . That tier win rate is the base - then the score bends with the scenario: how owned the shelf is, balance alignment (defending from the side of value), kinetic fuel, absorption. Fused into one grade from 5 to 95. Hover any chip: the shelf's exact price band, who owns it and by how much, the tier's win rate and sample depth, balance, undertow, fuel. Nothing hidden.
⚡ THE SCHEDULE ✨
Every closed trade is filed by session - Asia, London, New York, off hours - and the dashboard learns which hours the defenses hold on this chart, with this logic. When the schedule has enough receipts, BEST SESSION names the shift.
⚡ BUILT-IN AUTOMATION ⚡
One alert ("Any alert() function call") + your webhook URL, and Tide speaks Trade Wzrd order strings:
⚡ Entries with SL/TP prices attached
⚡ Optional opposite-signal close prepended to new entries
⚡ TP/SL-hit close alerts that mirror the on-chart trade box
The same readable comma syntax drives automation across 7+ platforms - percent-risk or fixed-volume sizing, magic numbers, order comments. No lock-in: plain text, any endpoint.
✨ HOW TO READ IT ✨
⚡ Cyan zone below price = the band buyers own, defending longs - ownership % printed inside, price + % on the edge tag
⚡ Red zone above price = the band sellers own, defending shorts - same receipts
⚡ A zone that vanishes without a ghost = it broke: price closed clean through it. Failed levels leave no fossils
⚡ Dotted colored ghosts = fossils: shelves that handed the job off, standing until the market mitigates them
⚡ Gold dashed levels = liquidity pools: equal highs/lows where stops rest - tag shows price × touches
⚡ Gold POOL ×3 stamps = the raid: stops swept and rejected; the pool goes dotted TAKEN until it dies
⚡ A defense firing right after a sweep = the strongest setup Tide knows - conviction gets the fuel, hover says why
⚡ Dashed white line = the Point of Control, price tagged - where the most mass traded in the range
⚡ BUY · DEF 68 / SELL · DEF 71 chips = a shelf defended itself - the number is conviction
⚡ Gold diamonds = absorption: climax volume, no progress - someone ate the book right there
⚡ Dashboard: undertow, POC, shelf count, who's defending, database, best session, record, fuel
⚡ HOW TO USE ⚡
⚡ Drop it on any liquid symbol with volume, 15m to 4H - ownership maps everywhere
⚡ Let it run. The database and the session schedule start empty - they grow teeth from this chart's own history
⚡ Watch the tiers: if ruled shelves (90%+ ownership) earn more than owned ones, raise Shelf Dominance and let the weak ones go
⚡ Set Min Win Probability once the tiers have samples - cold tiers filter themselves out
⚡ Turn on Balance Alignment to defend only from the side of value
⚡ Wire one alert when you're ready to automate
✨ LIMITATIONS ✨
⚡ Buy/sell mass is estimated from where each bar closed inside its range - a proven approximation, not exchange order-flow. On symbols without volume, the profile, undertow and conviction stand down
⚡ Conviction starts from this chart's own history , tiered - a sample, not a promise. Small samples lie confidently; the hover tells you when a tier is young
⚡ The database resets when you change symbols, timeframes, or core settings - every context earns its own track record
⚡ Shelves defend best in rotation; in runaway breakouts price doesn't come back to defend anything - that's what the trade box's stop is for
Rift maps WHERE the volume traded. Tide knows WHO OWNS EVERY PRICE - and watches them defend it. Null Range knows WHERE THE VOLUME NETS TO NOTHING.
Educational shell. Not financial advice. Not a signal service.
Indicator

Trade Wzrd - Null Range [Rampage Series]✨ TRADE WZRD - NULL RANGE
Every range has two middles. The one price draws - the midpoint - and the one VOLUME draws: the exact price where everything traded inside the range nets to nothing. Half the participation above, half below. The balance point where the tug-of-war reads null .
Null Range plots that line, builds a channel out of volume's own deviation, and fades the pokes that venture beyond it - out where participation thins to nothing. Not a promise - a receipt.
⚡ THE RAMPAGE SERIES ⚡
Null Range is a release in the Rampage Series - a growing family of volume-and-levels tools built by Trade Wzrd. Every Rampage script ships with the same built-in automation layer: signals don't just paint, they speak. One alert, one webhook, and every entry, exit and fill fires a plain-text order string.
✨ THE NULL RANGE ✨
The dealing range's volume is distributed across a hundred invisible bins, and the 50/50 split becomes a single glowing line. Not a midpoint. Not an average. The price where the crowd's money actually nets to zero. And the line itself is the regime read: it runs CYAN when volume's center of mass sits in the cheap half, RED when it sits in the expensive half. Its right-edge tag carries VOL CENTER - the exact percentage. Hover it for the full story.
⚡ THE VOLUME CHANNEL ⚡
The same bins yield volume's standard deviation - so Null Range draws the channel where participation actually lives: two glowing sigma walls around the line with graded fills, and nothing else. ~95% of traded volume lives inside. Price beyond the wall is price out where volume goes null - extended, exhausted, and ripe for the trap.
✨ KINETIC FUEL ✨
Under the structure, a fuel strip burns: volume times speed, candle by candle, normalized against recent history. Bull fuel hangs off the discount wall in cyan, bear fuel off the premium wall in red - spike squares mark the bars that moved real mass, and WALL SLAM diamonds stamp the bars where that mass physically hit a wall. When a trap springs off a slam, the whole crowd pushed - and still failed.
⚡ THE MARGIN PROFILE ⚡
In the right margin, the range's own bins draw themselves quietly - spanning exactly wall to wall, because that's where the volume that matters lives. Every row is tinted by who owned that price: cyan where buyers dominated, red where sellers did. The Point of Control is ringed in gold. Width, offset, delta coloring - all yours. It's the same engine as the line, laid on its side.
✨ FLOW HEAT ✨
No labels. No lines. Just heat. When price sinks while buy pressure quietly rises, the tape washes faint cyan - someone is loading into weakness. When price rises while sell pressure builds, it washes faint red - someone is unloading into strength. The disagreement between pressure and price, painted as weather. The dashboard's FLOW HEAT row names the shift when it's live.
✨ THE FILTERS ✨
Trade only what the database believes in. Min Win Probability skips signals from cold buckets (once they have enough samples to judge - TRACKING signals always pass). Max Extension skips blow-off pokes. Balance Alignment demands volume's center be on your side. Every active filter shows on the dashboard's FILTERS row, so you always know what the engine is allowed to take.
✨ THE TRAP ✨
The signal: price pokes beyond the two-sigma wall - out into the null - and closes back inside within the trap window. The fakeout. Fade it back toward the line - the default target IS the null range itself, because mean-reversion trades deserve mean-reversion targets. Premium traps short from above, discount traps long from below. EQ Reclaim mode (decisive crosses back through the line, 0.2 ATR minimum, no whipsaw) is there for continuation players.
⚡ THE CONVICTION SCORE ⚡
Here is where Null Range stops asking for trust. Every signal carries one compact number - CONVICTION - that no single ingredient could give you. Underneath it sits this chart's own live database: traps bucketed by how deep the extension ran (0–0.25, 0.25–0.5, 0.5–1.0, 1.0+ ATR beyond the wall), reclaims bucketed by whether volume's center was on their side. That historical win rate is the base - then the score bends with the scenario: volume's center on your side or against you, a tidy poke or a blow-off, a spike bar or thin air. History + balance + depth + fuel, fused into one grade from 5 to 95. Early on, before the buckets earn their samples, the score runs on structure alone - and says so.
And the hover is REACTIVE . Point at any signal and the verdict breaks the score into its parts: the conviction line, thin-sample warnings when a bucket is young, hot/cold bucket verdicts, depth-risk notes on blow-off extensions, balance alignment with the crowd's cost basis, and a fuel read on the participation behind the poke. Same model, different situation, different answer.
✨ THE RECEIPTS ✨
Signals stay on the chart as compact conviction chips - ▲ T 72, ▼ R 64 - one glance, one grade. Every closed trade stamps ✓ TP HIT or ✗ SL HIT exactly where it died. The dashboard tracks the VOL CENTER and PRICE POS gauges, the regime word, EQ/POC/channel width, the last signal with its conviction, the FLOW HEAT state, the database total, and a 10-dot streak row. The trade box carries entry, dashed stop, solid target with live R:R - and the conviction rides inside the entry tag.
⚡ YOURS TO SHAPE ⚡
Every visible piece answers to you: walls on or off, the line gradient or solid, EQ and POC tags toggleable, POC width, profile width and offset, delta colors or one solid tone, fuel strip, slam markers, flow heat, channel fills. The defaults are the house look - the knobs are all yours.
⚡ BUILT-IN AUTOMATION ⚡
One alert ("Any alert() function call") + your webhook URL, and Null Range speaks TradeWzrd order strings:
⚡ Entries with SL/TP prices attached
⚡ Optional opposite-signal close prepended to new entries
⚡ TP/SL-hit close alerts that mirror the on-chart trade box
The same readable comma syntax drives automation across 7+ platforms - percent-risk or fixed-volume sizing, magic numbers, order comments. No lock-in: plain text, any endpoint.
✨ HOW TO READ IT ✨
⚡ One glowing line = where the range's volume nets to null. Cyan = volume built low, red = volume built high
⚡ The graded channel = where ~95% of the volume lives. Price outside the wall = out in the null, extended
⚡ Fuel candles below/above the walls = kinetic energy per bar; squares = spike bars; diamonds = wall slams, mass meeting structure
⚡ Faint cyan/red wash behind the tape = flow heat: pressure and price disagreeing
⚡ The quiet profile in the margin, wall to wall = who owns each price: cyan rows buyers, red rows sellers, gold ring POC
⚡ ▲ T / ▼ T chips = the trap just failed - the number is conviction: this chart's track record bent by balance, depth and fuel. Hover for the breakdown
⚡ ▲ R / ▼ R chips = decisive reclaims of the line, same conviction engine
⚡ Dashboard: gauges, regime, FILTERS row, FLOW HEAT row, DATABASE row (trap and reclaim rates separately), streak dots
⚡ HOW TO USE ⚡
⚡ Drop it on any liquid symbol, 5m to 4H - tuned defaults for XAUUSD 15m
⚡ Let it run. The database is empty at first - conviction runs on structure alone until the buckets earn their samples
⚡ Compare buckets: if shallow traps earn 70% and deep ones earn 40%, you know exactly which pokes to take
⚡ Wire one alert when you're ready to automate
✨ LIMITATIONS ✨
⚡ Conviction starts from this chart's own history, bucketed - a sample, not a promise. Small samples lie confidently; the hover tells you when a bucket is young
⚡ The database resets when you change symbols, timeframes, or core settings - every context earns its own track record
⚡ Traps fade extensions - in a runaway trend, the outer wall keeps getting hit and the trap window is the honest filter
⚡ On symbols without volume data, the line falls back to midpoint and sigma to range/4
✨ CREDITS ✨
Kinetic fuel concept inspired by "Kinetic Momentum Vectors" by BigBeluga (CC BY-NC-SA 4.0). Concept only and Null Range's fuel is re-engineered from zero: volume times speed, burning off our own volume-channel walls. No code or geometry shared with the original.
Rift maps WHERE the volume traded. Null Range knows WHERE THE VOLUME NETS TO NOTHING - and what fading the void has been worth.
Educational shell. Not financial advice. Not a signal service. Indicator

Trade Wzrd - Rift [Rampage Series]✨ THE RAMPAGE SERIES Is a growing series of roughly thirty volume-and-structure indicators, each built around the same conviction: price is the story, volume is the evidence, and levels are where the two negotiate. Every script in the series reads the market through traded volume - profiles, deltas, liquidity, nodes - and every single one ships with built-in automation . Not a bolted-on alert hack: a real order-string layer, the kind these tools almost never come with. Each Rampage script is an educational shell for learning and testing. None of them is a signal service.
Rift is the profile engine of the family - the one that finds the voids.
⚡ WHAT RIFT IS
Rift rebuilds a live volume profile every bar from lower-timeframe data - anchored to the clock (session, day, week) or to market structure (confirmed swing pivots) - and renders it as one clean instrument in the chart margin: delta-graded rows, Point of Control, Value Area, Point of Void, and the gaps where nobody traded at all.
Most profile tools show volume at price. Very few show the DELTA at each price - who was actually buying and who was selling inside every row - without paid order-flow data. Rift rebuilds that from the intrabar feed : each lower-timeframe bar's volume is signed by its direction and distributed across the price rows it traded through. The result is a profile that doesn't just say where volume traded, but who showed up to trade it.
The design rule is one region, one story. The profile lives in the right margin as a single silhouette - never scattered across your candles - while price itself carries only what you can act on.
✨ THE POINT OF VOID - WHY "RIFT"
Inside every Value Area there is one row where volume is thinnest - the weakest node, the place price met the least resistance on its way through. Rift measures it, names it, and marks it in orange: the Point of Void.
That thin crust is the rift. When price drives through it with delta support, it isn't hitting a wall - it's falling through open air, and it tends to travel. Sweeps fade. Bounces react. A void break continues. Three different events, three different trades, one engine that knows which is which.
⚡ THE THREE HUNTS
▶ Sweep & Reclaim - price pierces the Value Area edge and closes back inside. The raid that failed. Optionally gated by CVD divergence: price prints a new extreme while cumulative delta refuses to agree - the fingerprint of absorption.
▶ POC Bounce - rejection of the developing Point of Control, the single most-traded price of the profile.
▶ POV Void - price drives through the Point of Void with bar-delta support. Continuation, not a fade.
Every signal carries a typed chip (BUY · SWEEP, SELL · VOID...) with a hover deep-dive: node, ATR distance, wick %, bar delta, CVD, trend. Node-episode dedup keeps the engine honest - the same direction cannot re-fire at the same node inside the cooldown unless price has genuinely moved to a new one. An optional filter stack (ATR momentum guard, rejection wick, EMA trend, session window) sits underneath for those who want it.
✨ RISK THAT SITS ON STRUCTURE
Stops and targets can be framed two ways:
▶ ATR mode - the classic: stop a multiple beyond the sweep extreme, target by reward:risk.
▶ Structure mode - the Rift way: the stop sits a small buffer beyond the exact node the signal was born from, and the target is the nearest opposing profile node - POC, POV, or a Value Area edge. The trade is invalidated by structure breaking, not by an arbitrary distance, and it aims at the level the market itself built.
⚡ THE TRADE BOX - IT FREEZES WHERE IT DIES
Every signal draws its position as one object : entry line with a price tag, dashed stop, solid target, shaded risk and reward zones. The box follows price bar by bar - and the moment the stop or the target is hit, it freezes exactly there and leaves a TP HIT or SL HIT tag on the chart. Your past trades stay visible as they actually happened, not as you remember them. If one bar tags both sides, Rift calls the stop first - honest over flattering, always.
✨ LEVELS WITH MEMORY
▶ Retest lines - every signal draws the node it came from as a thin level that lives until breached or expired. Then, instead of vanishing, it stays on chart as darker dotted history: you can see which levels got filled and which held.
▶ Liquidity pools - swing highs and lows hold resting stops. Rails extend right until raided, die on the raid bar, and leave a faint swept zone when price pokes through and closes back inside. Where the stops were, where they got run.
▶ Level rails - neon POC, dotted POV, Value Area zone, and past profiles' POC/VAH/VAL kept on chart until crossed.
✨ HOW TO READ IT
• The margin profile is one silhouette: row width is volume, row color is delta, gold is the POC, orange is the POV, volume numbers print inside heavy rows (auto-inverted so they never camouflage), and the outline tint tells you who owns the profile - cyan buyers, pink sellers. The delta-% label on top opens the full stats on hover.
• A chip is a trade idea with receipts - hover it before you judge it.
• The trade box is the position. When it freezes, the idea is over; the tag says how.
• Dotted dark levels are filled history. Bright levels are still alive.
• The dashboard is the instrument panel: profile levels, session CVD, bar delta, regime, whale state, last signal, POC touches, automation state.
⚡ HOW TO USE
1) Add the script to a clean chart. Defaults are tuned for XAUUSD intraday; any symbol with volume works.
2) Choose the anchor: Period (D for day traders, W for swing) or Swing (structure-anchored).
3) Set the Intrabar Feed lower than your chart timeframe - 1-minute is the safe default.
4) Pick a signal model and a risk mode. ATR framing is the default; Structure framing ties stops and targets to the nodes.
5) Automation is built in.
✨ DEFAULTS
• Anchor: Period (Daily) | Intrabar Feed: 1m | Row height: ATR(14)/8 | Value Area: 70%
• Margin profile: 30 rows, offset 8 bars, max width 40 bars, outline + stats on | Signal cooldown: 8 bars
• Signals: All three models, CVD divergence 30 bars, bar delta confirm on, filters off
• Risk: ATR mode - stop ATR(14) × 1.5 beyond sweep, target 2R | Structure mode optional - node buffer 0.25 ATR, next-node target
• Trade box on | Filled retest lines kept as dotted history (20 max) | Liquidity rails on (pivot 5, 6 per side, swept zones on)
• Automation on: entries with SL/TP, close on opposite signal, close on TP/SL hit
⚡ LIMITATIONS AND HONEST NOTES
• This is an educational shell, not a validated strategy. It makes no performance claim and no edge claim. Nothing here is financial advice.
• Buy/sell split is estimated from intrabar direction (close vs previous close), not true tick-level bid/ask - on 1-minute data this is a close approximation; coarser feeds are coarser reads.
• Swing anchors and liquidity pivots confirm with a delay equal to the pivot length.
• The margin profile shows the current developing profile only; finished periods remain as POC/VAH/VAL level lines.
• TP/SL-hit detection is bar-based: on a bar that tags both, the stop is called first.
• Structure-mode targets depend on the developing profile; a fresh profile can move the nodes.
• Requires a symbol with volume data. Seconds feeds ("1S") depend on your plan's data availability.
• Past results do not predict future results. Not intended for non-standard chart types (Heikin Ashi, Renko, etc.). You own symbol mapping, risk, and execution choices.
No external links are required to understand or use this script.
Open source - Mozilla Public License 2.0.
Indicator

Entry-to-Exit ToolA realtime non-repainting entry-to-exit analysis tool that retains a Provisional or Finalized BUY/SELL entry reference and resolves it through an opposite signal, confirmed terminal invalidation, minimum-profit target, or entry-terminal risk/reward target. The displayed exits are analytical reference events and are not a guarantee of profitability or future performance.
Name:
Entry-to-Exit Tool
Searchable Name:
Realtime Non-Repainting Entry Exit Target and Risk Reward Tool
Technical Name:
Realtime Non-Repainting Provisional Finalized Entry Reference Opposite Signal Terminal Break Profit Target and Risk Reward Exit Resolution Tool
Short title:
Trade Exit Tool
Summary
Entry-to-Exit Tool is an exit-resolution indicator that converts internally generated Provisional or Finalized BUY/SELL signals into retained entry references and then identifies where those references would resolve under a selected exit method.
The script does not require signals from another indicator. It contains its own causal transform-path signals, structural resolver, Provisional signal ledger, and Finalized signal ledger. The user selects which internally generated signal stage establishes the entry reference and which stage can later provide an opposite-signal exit.
Each retained entry reference stores:
direction
confirmation bar
confirmation price
retained terminal price
The reference remains active until one enabled exit condition resolves it.
Available exit conditions include:
selected opposite BUY/SELL signal
confirmed close through the retained entry terminal
fixed minimum-profit target
entry-terminal risk/reward target
Opposite-signal exits, terminal exits, fixed-profit targets, and risk/reward targets remain separate exit identities. The script records the exit bar, exit price, resolved direction, and exit reason without rewriting the completed record after later chart history arrives.
This is not a complete strategy or automated trade-management engine. It does not submit orders, calculate position quantities, reverse broker positions, calculate complete strategy profitability, manage a portfolio, or route executable instructions. Its purpose is to show structured entry-to-exit reference behavior from the script’s own causal signal records.
How it works
The script first produces two internally retained signal stages:
Provisional
Finalized
The selected Entry Reference Stage determines which signal stage opens a retained entry reference.
The selected Opposite Exit Signal Stage determines which signal stage can later resolve that reference through an opposite BUY or SELL confirmation.
These two stages can be selected independently.
For example, a user can choose:
Provisional entry with Provisional opposite exit
Provisional entry with Finalized opposite exit
Finalized entry with Provisional opposite exit
Finalized entry with Finalized opposite exit
The script then processes entry-reference events and opposite-exit events in chronological order.
When both event streams contain an event on the same bar, the exit-stage event is processed before the entry-stage event. This prevents the new same-bar entry event from being incorrectly treated as active before the earlier reference has had a chance to resolve.
Provisional entry references
A Provisional entry reference is established from an accepted causal transform-path-agreed BUY or SELL confirmation.
Provisional confirmation requires the candidate direction to agree with the stored causal transform-reference direction.
A retained transform candidate can confirm:
on its candidate bar
or on the following closed bar
The maximum signal confirmation delay is limited to zero or one bar.
When Active Path-Filtered Candidate Memory is enabled, a valid candidate that initially fails transform-path direction agreement can remain stored. It can later confirm on the first closed bar where the retained candidate terminal agrees with the active causal transform direction.
That later passing bar becomes the actual Provisional confirmation bar and entry-reference price.
A Provisional signal is earlier than a Finalized signal, but it has not yet completed structural finalization. It can still be replaced, superseded, or fail to become the retained Finalized identity of its structural swing.
Finalized entry references
A Finalized entry reference is established from a Provisional signal that survives the selected structural resolver.
Finalized identity requires structural completion of the containing swing.
The Finalized reference uses:
the retained structural BUY or SELL identity
the Finalized confirmation bar
the Finalized confirmation price
the retained structural terminal price
Finalized references generally occur later than Provisional references, but they represent the signal identity retained after structural resolution.
Structural events classify and finalize signal identity. They do not independently create the Provisional BUY/SELL signal universe.
Entry-reference behavior
Only one entry reference can remain active at a time.
When no reference is active, the next qualifying event from the selected Entry Reference Stage establishes a new reference.
The reference retains:
long or short direction
entry confirmation bar
entry confirmation price
terminal price associated with that entry identity
The script does not continuously replace an unresolved reference with later same-side entry signals.
A new entry reference is committed only after the prior reference has resolved and the script is flat at the reference-state level.
The reference is an analytical state retained by the indicator. It is not a broker position and does not contain position size or account information.
Exit Resolution Method
The user selects one of three primary exit-resolution methods:
Opposite Signal
Entry Terminal Break
Opposite Or Terminal Break
Target exits are controlled separately and can operate alongside the selected primary exit method.
Opposite Signal
Opposite Signal resolves the active entry reference when the selected opposite signal stage confirms.
For a long reference, the selected SELL signal is the opposite event.
For a short reference, the selected BUY signal is the opposite event.
The opposite event uses the stage selected under Opposite Exit Signal Stage:
Provisional
or Finalized
The exit occurs at that opposite event’s confirmation price.
An opposite signal that does not oppose the currently active direction does not resolve the reference.
Require Profit For Opposite Exit
Require Profit For Opposite Exit applies only to opposite-signal exits.
When disabled, every qualifying opposite signal can resolve the active reference.
When enabled, the opposite signal resolves the reference only when the raw-price return from the retained entry price to the opposite confirmation price is at least the selected Minimum Profit For Opposite Exit percentage.
For a long reference, profit requires the opposite exit price to be sufficiently above the entry price.
For a short reference, profit requires the opposite exit price to be sufficiently below the entry price.
This setting does not delay or block:
Entry Terminal Break
Minimum Profit Target
Risk/Reward Target
An unprofitable opposite signal can therefore be ignored while another enabled exit condition remains active.
Minimum Profit For Opposite Exit is a gate on an opposite signal. It is not the same as the independent Minimum Profit Target exit.
Entry Terminal Break
Entry Terminal Break resolves the active reference when a confirmed close invalidates the retained entry terminal.
For a long reference:
a confirmed close below the retained terminal resolves the reference
For a short reference:
a confirmed close above the retained terminal resolves the reference
The terminal is taken from the same signal identity that established the entry reference.
The terminal is not replaced by every later support, resistance, pivot, or same-side signal.
Terminal exits use confirmed closes only.
An intrabar move through the terminal that does not remain broken at the confirmed close does not create a terminal exit under this script.
Opposite Or Terminal Break
Opposite Or Terminal Break enables both primary exit conditions.
The reference resolves on whichever valid event occurs first:
a qualifying opposite signal
or a confirmed terminal invalidation
When Require Profit For Opposite Exit is enabled, an opposite signal that does not meet the profit requirement is not treated as a valid exit. The terminal condition remains active and can still resolve the reference.
Target Exit
Target Exit is independent from the selected primary Exit Resolution Method.
Available target modes are:
Off
Minimum Profit %
Risk/Reward
When Target Exit is Off, no target price is calculated and no target exit can resolve the reference.
The status table displays:
OFF when the target mode is disabled
n/a when no entry reference is active
unavailable when a Risk/Reward target cannot be formed
the calculated target price when a valid active target exists
Minimum Profit Target
Minimum Profit % creates a fixed target from the retained entry-reference price.
For a long reference:
Target Price = Entry Price × (1 + Minimum Profit Target %)
For a short reference:
Target Price = Entry Price × (1 − Minimum Profit Target %)
The reference resolves when a confirmed close reaches or passes the calculated target.
For a long reference:
the confirmed close must be at or above the target
For a short reference:
the confirmed close must be at or below the target
The exit label is recorded as:
PROFIT TARGET
This target operates independently from Require Profit For Opposite Exit.
The two settings serve different purposes:
Minimum Profit For Opposite Exit controls whether an opposite signal is allowed to exit
Minimum Profit Target creates an independent price level that can exit without an opposite signal
Risk/Reward Target
Risk/Reward creates a target from the distance between the retained entry price and the retained entry terminal.
For a long reference:
Risk Distance = Entry Price − Retained Terminal
Target Price = Entry Price + Risk Distance × Risk/Reward Multiple
For a short reference:
Risk Distance = Retained Terminal − Entry Price
Target Price = Entry Price − Risk Distance × Risk/Reward Multiple
The target is valid only when the retained terminal is on the correct defensive side of the entry price and the resulting risk distance is positive.
For a long reference, the terminal must be below the entry price.
For a short reference, the terminal must be above the entry price.
When the terminal does not produce a positive risk distance, the Risk/Reward target is unavailable. The script does not invent a target by using an absolute distance or moving the terminal to the other side of the entry.
The reference resolves when a confirmed close reaches or passes the valid calculated target.
The exit label is recorded as:
RISK/REWARD TARGET
Confirmed-close target behavior
Both target modes use confirmed closes.
The script does not assume execution at the exact target price when price crosses the target intrabar.
The recorded exit price is the confirmed close of the bar that first satisfies the target condition.
This makes target resolution consistent with the script’s confirmed-close terminal-break behavior.
When a terminal break and target hit are both visible during the same scanned bar, terminal invalidation is given resolution priority in the code and the event is recorded as:
TERMINAL EXIT
Exit identities
The script preserves four separate exit identities:
OPPOSITE EXIT
TERMINAL EXIT
PROFIT TARGET
RISK/REWARD TARGET
These identities are not merged into one generic EXIT label.
This allows the user to distinguish whether the reference resolved because:
an opposite signal confirmed
the retained terminal failed
a fixed percentage target was reached
or the selected risk/reward target was reached
Completed exit records retain:
resolved direction
exit bar
exit price
exit reason
Later chart history does not move the completed exit to a different bar or change its recorded reason.
Signal construction
The internal signal engine uses a causal transform-reference path built from loaded raw-price records.
The transform path is used as a mandatory direction-agreement source for Provisional BUY and SELL confirmation.
The script separately maintains:
raw price arrays
transform path arrays
close, high, and low replay arrays
Provisional signal ledgers
Finalized signal ledgers
structural event ledgers
The transform path and structural resolver remain separate systems.
The transform path confirms Provisional signal direction.
The structural resolver determines which Provisional identity survives into the Finalized ledger.
A structural event does not directly create an entry reference unless Finalized is selected as the Entry Reference Stage and the corresponding Finalized signal record exists.
Transform Path Capturable Segment
Transform Path Capturable Segment percentage controls the captured movement required by the internal transform-reference path.
It is used to retain broader directional legs and reject smaller path pivots.
The setting affects transform-path construction and therefore can affect which candidates pass mandatory path agreement.
It is not an exit target and does not define minimum trade profit.
Structural resolution
The script includes three structural resolver options:
Earliest Terminal
Original Grouping
Conditional Accelerated
Original Grouping is the default.
Earliest Terminal
Earliest Terminal follows the known-prefix earliest terminal chain.
It is intended to retain the earliest causally provable structural terminal under the solver’s rules.
Original Grouping
Original Grouping retains same-side structural candidates as a group.
A later same-side candidate can replace the retained group extreme before an opposite structural candidate resolves the group.
The retained extreme becomes the finalized structural identity when the opposite side completes the structural transition.
Conditional Accelerated
Conditional Accelerated uses captured-path potential after structural proof.
The Structural Capturable Segment percentage applies only to this resolver.
It does not directly filter transform BUY/SELL events or calculate exit targets.
Structural records are prefix-stable and are committed permanently after confirmation.
Structural path and signal context
The script can display:
structural change labels
structural resolution path
Finalized transform BUY/SELL labels
Provisional Candidate signals
failed or superseded Provisional signals
path-disagreed Candidate labels
current live Candidate
live transform-reference path
confirmed support and resistance
These context displays do not change the selected entry-reference stage or exit-resolution method.
Turning a display off hides the object but does not remove its underlying retained ledger.
Entry and exit displays
Entry Reference Markers
Optional Entry Reference Markers show where the selected Provisional or Finalized entry reference was established.
These markers are display-only and do not represent submitted orders.
Resolved Exit Labels
Resolved Exit Labels show completed exit events.
Each label includes the exit identity determined by the resolution condition.
The script limits retained exit labels through the Maximum Exit Labels input.
Older labels are deleted from the chart when the display limit is exceeded. Their removal from the chart does not alter the chronological exit reconstruction used to determine the current active reference.
Active entry level
When Show Active Entry / Terminal Levels is enabled, the active entry confirmation price is displayed as a blue dotted line.
The line starts from the retained entry-reference bar and extends to the right while the reference remains active.
Active terminal level
When terminal-based resolution is enabled, the retained terminal is displayed as an orange dashed line.
For a long reference, this is the price below which a confirmed close produces a terminal exit.
For a short reference, this is the price above which a confirmed close produces a terminal exit.
Active target level
When a valid target mode is enabled, the target is displayed as a green dashed line.
The line appears only when:
an entry reference is active
the selected target mode is not Off
and the target calculation produces a valid price
Minimum Profit % generally produces a target whenever a valid entry price exists.
Risk/Reward requires a valid positive entry-to-terminal risk distance.
Support and resistance
Optional support and resistance levels are derived from confirmed signal terminals.
The user can:
show or hide the levels
extend the levels right
keep or remove broken levels
change line width
control the maximum number of managed chart objects
These levels provide contextual market structure.
They do not replace the retained entry terminal used by the exit-resolution module.
Replay and chronological reconstruction
The script reconstructs the entry-to-exit state from historical Provisional and Finalized signal ledgers.
The selected entry-stage ledger and selected opposite-stage ledger are merged chronologically.
The merge is linear rather than repeatedly sorting the complete combined event list.
This allows the script to preserve event order while avoiding the unnecessary quadratic event sorting that would become increasingly expensive as the number of signal records grows.
For each historical interval, the script checks:
whether the active retained terminal was invalidated
whether an enabled target was reached
whether a qualifying opposite event occurred
whether a new entry reference should be committed after the previous reference resolved
The reconstructed active state at chart end determines:
current active direction
entry price
retained terminal
target price
last exit reason
last exit bar
last exit price
Same-bar event priority
When an entry-stage event and exit-stage event occur on the same bar, the exit-stage event is processed first.
This preserves the prior active reference’s opportunity to resolve before a new reference from the same bar is committed.
It also prevents a newly created same-bar reference from being immediately interpreted as though it existed before the opposite event that appears at the same timestamp.
Performance controls
The script includes:
Statistics-Only Replay
Maximum Replay Objects
Auto Limit Live Replay
Live Replay Bars
Statistics-Only Replay reduces historical chart-object construction while retaining internal calculations.
Maximum Replay Objects limits the number of displayed historical objects.
Auto Limit Live Replay and Live Replay Bars can reduce the amount of live historical drawing on large charts.
These settings primarily control display and replay workload. They do not change the configured exit formulas.
Status pages
The status table includes separate pages for:
Exit State
Signals
Structural
Support/Resistance
Alerts
Guide
Exit State
The Exit State page displays:
selected Entry Stage
selected Opposite Stage
selected Resolution Method
active direction
entry price
retained terminal
last resolution reason
last exit bar
last exit price
selected Target Exit mode
current target price
Target-price display behavior is:
OFF when target exits are disabled
n/a when no reference is active
unavailable when a Risk/Reward target cannot be formed
the formatted target price when the target is valid
Signals
The Signals page summarizes the internal Provisional and Finalized signal state and selected signal context.
Structural
The Structural page displays selected structural resolver information and structural event context.
Support/Resistance
The Support/Resistance page displays level configuration and retained level state.
Alerts
The Alerts page shows whether resolved exit alerts are enabled and whether the current reconstruction produced a long-reference or short-reference exit event.
Guide
The Guide page explains the main output identities and chart-line colors:
retained entry reference
selected-stage opposite exit
confirmed terminal invalidation
target resolution
blue entry line
orange terminal line
green target line
Alerts
The script contains informational alerts for:
Provisional Transform BUY
Provisional Transform SELL
Finalized Transform BUY
Finalized Transform SELL
Long Reference Exit
Short Reference Exit
Provisional alerts are generated from accepted transform-path-agreed Provisional events.
Finalized alerts are generated when structural resolution commits a Finalized BUY or SELL identity.
Exit alerts identify whether a long or short entry reference resolved.
The exit alert title does not distinguish the exact reason in separate alertconditions. The exact chart label and status-table Last Resolution field identify whether the reconstructed exit was:
OPPOSITE EXIT
TERMINAL EXIT
PROFIT TARGET
RISK/REWARD TARGET
Alerts are informational.
They do not contain:
position size
broker account information
order type
stop order
limit order
routing destination
portfolio instruction
or guaranteed execution price
Important behavior note
The script should be understood as:
causal in its signal confirmation
historically stable after closed-bar confirmation
reconstructed chronologically from retained signal ledgers
live-updating only for current open-bar signal and path context
Closed-bar Provisional signals, Finalized signals, entry references, and completed exits are not moved or reclassified by later chart history.
The current open bar can update only the existing live Candidate and transform-reference context inherited from the internal signal engine.
Terminal and target exits use confirmed closes only.
The tool identifies analytical entry-to-exit reference events. It does not confirm that a real order was filled at the displayed price.
Features
Internally generated Provisional BUY/SELL signals
Internally generated Finalized BUY/SELL signals
Selectable Provisional or Finalized Entry Reference Stage
Selectable Provisional or Finalized Opposite Exit Signal Stage
Opposite Signal exit method
Entry Terminal Break exit method
Combined Opposite Or Terminal Break method
Optional profit requirement for opposite exits
Independent Minimum Profit Target
Independent Risk/Reward Target
Entry-to-terminal risk calculation
Confirmed-close target resolution
Confirmed-close terminal invalidation
Separate opposite, terminal, profit-target, and risk/reward exit identities
One retained active entry reference
Chronological entry and exit event reconstruction
Exit-first same-bar event ordering
Linear two-ledger event merge
Permanent closed-bar entry and exit records
Active entry price line
Active retained terminal line
Active target price line
Entry-reference markers
Resolved exit labels
Maximum retained exit-label control
Three selectable structural resolvers
Mandatory causal transform-path agreement
Candidate-bar or next-bar Provisional confirmation
Stored path-filtered Candidate memory
Provisional and Finalized signal ledgers
Failed and superseded Provisional context
Optional structural path
Optional live transform-reference path
Optional support and resistance
Replay and chart-object performance controls
Multiple status-table pages
Informational signal alerts
Informational long-reference and short-reference exit alerts
Strengths
Self-Contained Signal Source — generates its own Provisional and Finalized entry references without requiring another script’s external signal input.
Entry-to-Exit Structure — converts internal BUY/SELL identities into a retained reference with a clearly defined entry price, terminal, target, and exit reason.
Stage Flexibility — allows the entry stage and opposite exit stage to be selected independently.
Exit Method Flexibility — supports opposite confirmation, terminal invalidation, or whichever valid event occurs first.
Independent Target Logic — fixed-profit and risk/reward targets can resolve the reference without waiting for an opposite signal.
Opposite Profit Gate — can prevent an unprofitable opposite signal from resolving the reference while leaving terminal and target exits active.
Identity Separation — opposite, terminal, fixed-profit, and risk/reward exits remain distinguishable.
Terminal Consistency — uses the terminal retained by the same signal identity that established the entry reference.
Confirmed-Close Stability — terminal and target exits do not depend on unfinished intrabar movement.
Chronological Reconstruction — historical state is rebuilt in event order rather than inferred only from the latest signal.
Same-Bar Ordering — exit-stage processing precedes entry-stage processing when both events occur on the same bar.
Performance-Aware Merge — merges already chronological signal ledgers directly instead of repeatedly sorting a combined event array.
Long and Short Symmetry — applies entry, opposite, terminal, and target calculations to both long and short references.
Visual Clarity — separates entry price, terminal price, and target price with distinct chart lines.
Context Availability — retains optional Provisional, Finalized, structural, path, and support/resistance displays.
Weaknesses
Signal Dependence — exit quality depends on the quality and timing of the internally generated Provisional or Finalized entry reference.
No Universal Best Stage — Provisional entries are earlier but less structurally resolved; Finalized entries are more confirmed but later.
Confirmed-Close Delay — terminal and target exits can occur later than an intrabar crossing.
Close-Price Exit Recording — the recorded exit price is the confirmation-bar close, not necessarily the exact target or terminal price touched intrabar.
No Partial Exits — each retained reference resolves as one complete analytical state rather than splitting into multiple exit quantities.
No Trailing Target — the fixed-profit and risk/reward targets do not trail favorable movement.
Static Entry Terminal — the retained terminal belongs to the entry identity and is not dynamically replaced with every later structural level.
Risk/Reward Availability — a risk/reward target cannot be formed when the retained terminal is not on the correct defensive side of the entry price.
Opposite Profit-Gate Persistence — an opposite signal that fails the profit gate is ignored rather than stored as a pending opposite exit.
No Complete Strategy Return — the tool does not calculate commissions, slippage, quantity, capital allocation, or portfolio equity.
No Broker Execution — displayed exits and alerts do not prove that a real order would fill at the same price.
One Active Reference — the script does not maintain simultaneous independent long and short references or multiple scaled entries.
Historical Reconstruction Cost — although the event merge is linear, the script still performs substantial transform, structural, replay, and chart-object work on large charts.
Parameter Sensitivity — transform capture, structural solver, entry stage, opposite stage, target percentage, and reward multiple can materially change results.
No Universal Profitability — structured exits do not guarantee that the underlying entries have sufficient predictive edge.
Who it’s for
This tool is best suited for:
PulseWire users who want an exit-focused companion to transform-based entry signals
traders comparing Provisional and Finalized entry timing
users studying opposite-signal exit timing
users testing retained-terminal invalidation
users testing fixed minimum-profit targets
users testing entry-terminal risk/reward targets
reversal and market-structure traders
users who want long and short exit references
users who want historically stable closed-bar exit labels
users who want one retained entry reference at a time
users interested in causal transform-path agreement
users developing an exit framework before integrating position sizing or routing
research-oriented users comparing multiple exit identities
users who want chart-based exit analysis without a complete strategy engine
Who it’s not for
This tool is not best suited for:
users looking for guaranteed profitable exits
users expecting the script to know the best future exit in advance
users looking for automatic broker execution
users requiring position sizing or account-risk calculations
users requiring partial profit taking
users requiring multiple simultaneous entries
users requiring dynamic trailing stops
users requiring intrabar target or stop execution
users expecting target price to guarantee actual fill price
users wanting complete strategy-equity reconstruction
users wanting commissions, slippage, leverage, or margin modeling
users expecting Provisional or Finalized signals to universally identify profitable trades
users seeking a complete operational transform engine with split quantities, portfolio state, or order routing
Known limitations
The tool is better at:
retaining a consistent entry reference
showing multiple structured exit conditions
distinguishing why an exit occurred
comparing Provisional and Finalized signal stages
visualizing entry, terminal, and target prices
and reconstructing closed-bar entry-to-exit state
than it is at:
predicting which entry will succeed
guaranteeing that a selected target will be reached
guaranteeing that a terminal exit will contain loss
finding the best possible future exit
or reproducing real broker fills
A fixed-profit target can improve consistency but can also exit before a larger move develops.
A risk/reward target can align the target with entry-terminal distance, but the retained terminal may not represent the user’s actual financial risk or intended stop placement.
An opposite signal can respond to changing structure, but it can arrive late or be ignored when Require Profit For Opposite Exit is enabled and the profit requirement is not met.
A terminal exit can preserve the entry identity’s invalidation point, but confirmed-close evaluation can exit beyond the terminal after a fast move.
These are structural exit references, not guarantees of favorable trade outcomes.
Final note
Entry-to-Exit Tool is a focused indicator for converting internally generated Provisional or Finalized BUY/SELL signals into retained entry references and resolving those references through explicitly defined exit conditions.
Its main value is not that it predicts the perfect exit. Its value is that it makes the exit framework visible and consistent:
which stage opened the reference
which stage can provide the opposite exit
which terminal belongs to the entry
whether an opposite exit requires profit
whether a fixed or risk/reward target is active
which condition actually resolved the reference
and where that resolution occurred on a confirmed close
The tool should be viewed as an entry-to-exit analysis layer, not as a complete strategy, broker-execution system, or guarantee of profitability.
It provides more structured exit information than an entry-only signal script while stopping before quantities, partial positions, portfolio state, order routing, and full operational trade management. Indicator

Andean Oscillator ProFull credit to alexgrover for the Andean Oscillator, which this is built on.
Original script:
Original writeup: alpaca.markets/learn/andean-oscillator-a-new-technical-indicator-based-on-an-online-algorithm-for-trend-analysis/
WHAT THE ORIGINAL MEASURES
The oscillator tracks two exponential envelopes, one on price and one on price
squared. Differencing them recovers a standard deviation for each direction of
travel. The bull component grows as price pulls away above its lower envelope. The
bear component grows as price pulls away below its upper envelope. Whichever is
larger tells you which side is doing the work, and how hard.
The important thing to understand about this family of readings is that it is a
measure of distance already travelled. It cannot be large until a move has already
happened. That shapes everything about how you use it.
WHAT THIS VERSION ADDS
Adaptive envelope decay. The original decays its envelopes at a fixed rate set by one
length input. This version computes an efficiency ratio over a lookback and slides the
decay rate between a fast bound and a slow bound. In a clean directional move the
envelope forgets old extremes quickly, so the reading responds sooner. In chop it
slows back down to roughly the original behaviour. ER Power controls how much trend
quality it demands before speeding up.
Normalization. The raw components come out in price units, which means a threshold you
find on one symbol is meaningless on another. Percent mode expresses them as a share of
price. ATR mode expresses them in volatility units. Either way your settings travel.
Energy gate. The original compares the components to their own moving average, which
costs you several bars of lag. This version ranks the larger component as a percentile
of its own recent history instead. There is no smoothing involved, so it reacts the
moment expansion starts, and the number means the same thing on every instrument. A
gate of 90 means you only act on readings in the top tenth of what this market
normally produces.
Deadband with hysteresis. Entry requires the spread between the two components to
clear a percentile band. Exit only requires the spread to change sign. That asymmetry
is what lets the faster envelope run without producing constant flips around the zero
line.
Trade management on the chart. When bias flips, the script marks the entry and places
a stop at a multiple of ATR, both drawn on the price chart. Once price has moved a set
distance in your favour the stop jumps to just past your cost, then a chandelier trail
arms and ratchets in one direction only. It never loosens. The trade ends at that stop
or on an opposite signal, which closes and reverses. Stop colour tells you the state
at a glance. Red is the initial stop, orange means breakeven is locked, blue means the
trail is running.
Everything else. Optional squeeze filter requiring a quiet stretch before the gate
opens, the envelopes drawn on the price chart, bias shown three ways so you can read
direction without looking at numbers, and a single alert carrying entry, stop and
energy.
HOW TO READ IT
Green bars, green background, LONG label means the bull component leads and the gate
was open when it flipped. Red is the reverse. Grey bars mean no position. The two
faint black lines in the pane are the deadband, so you can see how far the spread has
to travel before a flip qualifies. Fill intensity between the components tracks
energy, so a washed out fill means the market is quiet by its own standards even if
the components have crossed.
Orange dots along the bottom mark bars where the gate is open but no bias has been
established yet. Think of those as armed and waiting.
SETTINGS
Energy Gate is the one that matters. It sets how selective the entries are, and
nothing else in the script changes behaviour as much. Raise it for fewer and larger
setups, lower it for more frequent ones. Expect a high gate to feel quiet. That is the
setting working.
Stop, breakeven and trail distances are all measured in ATR rather than in R, and that
is deliberate. Denominating protection distance in R ties how far you wait before
protecting profit to how far you are willing to be wrong, and those two should move
independently.
Defaults are set for 15 minute crypto. Presets are included for 5 minute and 1 hour.
Published open source under CC BY-NC-SA 4.0, same license as the original. Indicator

APB Pair Trade Direct - Cointegration🔰 APB PRO - Cointegration Pair Trading (Fool-Proof)
📌 What is this?
APB stands for "A Prueba de Bolu2" (Spanish for "Fool-Proof" - with all due respect 😉).
This is a professional Pair Trading indicator that does all the heavy lifting for you. It automatically calculates cointegration, correlation, and provides crystal clear BUY and SELL signals directly on your chart.
You don't need to be a mathematician, a statistician, or a coding expert. Just look at the arrows and the background color. The indicator does the rest.
🎯 How Does It Work?
The indicator analyzes the spread of the pair you have open on your chart (e.g., BTC/ETH, SOL/ETH, LINK/BTC, etc.) and calculates:
Historical Mean → Where the pair should normally trade.
Standard Deviations → When the pair is extremely cheap or expensive.
Real-time Cointegration → Whether the pair is behaving stably or erratically.
When the spread moves too far from its mean, the indicator alerts you with a clear arrow signal.
🟢🔴 SIGNALS (Fool-Proof)
Signal Interpretation Recommended Action
🟢 GREEN arrow pointing UP with "BUY" The pair is at the FLOOR (cheap). Spread hit the lower limit. BUY the pair (expecting mean reversion up)
🔴 RED arrow pointing DOWN with "SELL" The pair is at the CEILING (expensive). Spread hit the upper limit. SELL the pair (expecting mean reversion down)
🟩 GREEN background ✅ Cointegration ACTIVE. The pair is stable. SAFE TO TRADE (signals are valid)
🟥 RED background ❌ Cointegration INACTIVE. The pair is erratic or trending. BETTER TO WAIT (indicator will NOT give signals)
⚙️ PARAMETERS (Only 2 to Adjust)
Parameter Recommended Value What It Does
Analysis Period 100 Number of candles for mean and deviation calculation. Higher = more stable but slower.
APB Sensitivity 2.0 Controls signal frequency.
• 1.5 = More signals (aggressive)
• 2.0 = Balanced (recommended)
• 2.5-3.0 = Fewer signals (conservative)
Advanced Filters (Optional)
Parameter Recommended Value What It Does
🔒 Activate Cointegration Filter true Filters signals when the pair is unstable. Keep this ON.
📐 Slope Period 20 How many candles to measure stability. (Default is fine)
📏 Slope Threshold 0.05 Lower = more strict. 0.03 is very strict. (Default is fine)
📊 CONTROL PANEL (Real-Time Info)
The panel in the top-right corner shows you everything you need at a glance:
Data What It Means
Deviation % How far the pair has moved from its mean (in percentage).
🔴 Ceiling (SELL) Upper limit. If spread reaches this → SELL signal.
🟢 Floor (BUY) Lower limit. If spread reaches this → BUY signal.
🔒 Cointegration ✅ ACTIVE = good to trade.
❌ INACTIVE = better to wait.
📐 Slope Close to 0 = stable pair. Far from 0 = trending (cointegration broken).
🚀 Which Pairs Work Best?
This indicator is designed for cryptocurrency pairs with high liquidity and historical correlation:
Pair Recommendation
BTC/ETH ⭐⭐⭐⭐⭐ (Most stable and reliable)
ETH/BTC ⭐⭐⭐⭐⭐ (The inverse, equally good)
SOL/ETH ⭐⭐⭐⭐ (Good, but more volatile)
LINK/BTC ⭐⭐⭐⭐ (Works well in cycles)
MATIC/ETH ⭐⭐⭐ (Adjust sensitivity lower)
BNB/ETH ⭐⭐⭐ (Similar to SOL/ETH)
AVAX/ETH ⭐⭐⭐ (Adjust sensitivity)
⚠️ Does NOT work well on:
Low-liquidity pairs
Highly volatile memecoins (DOGE, SHIB, PEPE)
Pairs with extreme trend movements
🔔 Automatic Alerts
The indicator includes native alerts so you never miss an opportunity:
Alert Message
🟢 APB BUY SIGNAL "🟢 APB BUY: Pair is cheap with active cointegration. Go LONG!"
🔴 APB SELL SIGNAL "🔴 APB SELL: Pair is expensive with active cointegration. Go SHORT!"
To activate: In PulseWire, go to "Alerts" → "Create Alert" → Select the condition → Done.
💡 Pro Tips for Best Results
1. Only Trade When Background is GREEN
If the background is red, the indicator won't give signals. This is a protection mechanism. Don't force trades when cointegration is broken.
2. Don't Trade Every Signal
Wait for the arrow to appear on a green background with decent volume. The best setups are when the spread touches the limit and the market is calm.
3. Use the Right Timeframe
Timeframe Best For
1h - 4h Swing trading (days to weeks)
15m - 30m Day trading (hours)
1m - 5m ❌ Too much noise. Avoid.
4. Adjust Sensitivity Per Pair
Pair Recommended Sensitivity
BTC/ETH 2.0 (perfect)
SOL/ETH 2.2 - 2.5 (avoid false signals)
LINK/BTC 2.0 - 2.2
Volatile pairs 2.5+ (more selective)
5. Watch the Slope
If you see the slope spiking (far from 0), it means the pair is in a strong trend and cointegration is breaking. Wait for it to stabilize before trading.
🧠 How Is It Calculated? (For the Curious)
Normalization → Price is divided by its moving average to put it on a percentage scale.
Spread → The percentage deviation of the price from its mean.
Limits → Mean ± (Sensitivity × Standard Deviation).
Cointegration → Measured by the spread's slope over a short period. If the slope is close to 0, the pair is stable.
Signals → Triggered when the spread crosses the limits AND cointegration is active.
📜 Technical Details
Aspect Details
Version 2.0 (Direct Pair)
Pine Script v6 (Compatible with PulseWire)
Author APB Community
Recommended Timeframes 1h, 4h, 1D
Recommended Cryptos BTC, ETH, SOL, LINK, MATIC, BNB, AVAX
Overlay Yes (shows directly on price chart)
❓ Frequently Asked Questions
Q: Can I use this on stocks or forex?
A: Technically yes, but it's optimized for cryptocurrencies due to their higher volatility and correlation patterns.
Q: Why are there no signals even when the spread hits the limits?
A: Because the cointegration filter is active and the pair isn't stable. This is a safety feature to protect you from false signals.
Q: What does "Slope" mean in the panel?
A: It measures the speed of the spread movement. Close to 0 = stable (cointegrated). Far from 0 = trending (cointegration broken).
Q: Can I disable the cointegration filter?
A: Yes, set "Activate Cointegration Filter" to false in the advanced parameters. But I don't recommend it unless you're an experienced trader.
Q: Why is the background red/ green?
A:
🟩 GREEN = Cointegration ACTIVE → Valid signals.
🟥 RED = Cointegration INACTIVE → No signals (wait).
⭐ Rating
Aspect Score
Ease of Use ⭐⭐⭐⭐⭐ (Fool-Proof)
Accuracy on BTC/ETH ⭐⭐⭐⭐⭐
Accuracy on Altcoins ⭐⭐⭐⭐ (Adjust sensitivity)
Signal Clarity ⭐⭐⭐⭐⭐
Beginner Friendly ⭐⭐⭐⭐⭐
Professional Quality ⭐⭐⭐⭐
⚠️ DISCLAIMER (Important!)
This indicator is a TOOL for analysis, NOT a guarantee of profits.
Pair Trading reduces risk but does not eliminate it.
Cryptocurrencies are extremely volatile and can break cointegration during extreme events (news, hacks, regulations, black swan events).
Always use proper risk management:
Set stop-losses
Use appropriate position sizing
Never risk more than you can afford to lose
Test the indicator in PAPER TRADING before using real money.
Past performance does not guarantee future results. Trade responsibly.
🙏 Acknowledgments
Thank you for using APB PRO - Cointegration Pair Trading!
Remember the golden rule: The best trades are the ones you DON'T take when the market isn't clear. The red background is your friend - it tells you to wait.
May the spread always return to its mean! 🚀📊
💬 Feedback & Community
If you find this indicator useful:
⭐ Leave a like on the publication
💬 Share your experience in the comments
🔄 Repost to help other traders
Questions or suggestions? Drop a comment and I'll get back to you!
🏷️ Tags
Pair Trading Cointegration Spread Mean Reversion BTC/ETH Cryptocurrencies Trading Signals APB Fool-Proof Statistical Arbitrage Crypto Trading Swing Trading Day Trading Pine Script v6 Algorithmic Trading Indicator

Optimal Trade Entry (OTE) Zone Plotter [algo_aakash]Optimal Trade Entry (OTE) Zone Plotter locates the 62%-79% institutional retracement zone of a confirmed impulsive swing and keeps only the single most relevant zone per direction on the chart, fading it through disclosed mitigation states as price interacts with it.
Problem Statement
The Optimal Trade Entry concept, retracing into the 62%-79% region of an impulsive leg before continuation, is a well-known Fibonacci convention, but most public implementations simply plot every Fibonacci level on every swing they detect. This produces charts covered in overlapping retracement boxes, most of which come from insignificant swings that carry no real weight, and gives no visual indication of which zones are still fresh, already tested, or fully invalidated.
This indicator addresses that gap by filtering which swings are allowed to generate a zone in the first place, by showing only the current zone per direction at full strength, and by changing each zone's appearance as price actually interacts with it.
Methodology
Swing highs and lows are identified with ta.pivothigh/ta.pivotlow using a user-defined Pivot Length, so every swing referenced by the script is a confirmed pivot, evaluated only after barstate.isconfirmed is true.
Consecutive pivots of the same type extend a running swing extreme; a leg is only registered when the pivot type alternates (a low following a high, or a high following a low). Each candidate leg must then clear three disclosed checks before it is allowed to create a zone: the leg's price range must reach a minimum multiple of ATR, the swing candle's own body-to-range ratio must reach a minimum threshold, and, if the Break of Structure filter is enabled, the new swing must exceed the prior swing of the same type. Legs that fail any check produce no zone, no label, and no alert.
A qualifying leg generates one OTE zone: the shaded region between the 62% and 79% retracement of that leg, with the 70.5% level drawn as a two-layer glowing midline inside it. Only one bullish and one bearish zone are ever active at a time. When a new qualifying leg forms, the previous zone of that direction is frozen in place and, if enabled, kept as a single low-opacity historical reference rather than removed outright or left overlapping the new zone.
Each active zone tracks its own mitigation state on every confirmed bar: Fresh (untouched), Touched (price has wicked into the 62%-79% region), Mitigated (a confirmed close through the 79% boundary), or Invalidated (a confirmed close back through the leg's own origin point). State can only advance forward, and the zone's fill opacity and border color update automatically at each transition, so the chart communicates a zone's condition without any additional label or panel.
Signal Workflow
Step 1 — a confirmed swing pivot alternates direction, registering a candidate leg from the prior opposite pivot to the new one.
Step 2 — the leg is checked against the Minimum Swing Size, Body Ratio, and optional Break of Structure filters; legs that fail are discarded with no chart output.
Step 3 — a qualifying leg creates a new active OTE zone (62%-79%) with its 70.5% midline, and the previous zone of the same direction is frozen and faded.
Step 4 — the active zone's state advances from Fresh to Touched as price wicks into the zone on a confirmed bar.
Step 5 — the zone advances to Mitigated on a confirmed close through the 79% boundary, or to Invalidated on a confirmed close back through the leg's origin, at which point it is greyed out.
Step 6 — each transition and each zone entry/exit can trigger its own alert, gated by the corresponding toggle in the Alerts group.
Why This Indicator Is Different
Most public OTE/Fibonacci scripts draw a zone for every detected swing regardless of its significance, leaving multiple overlapping retracement boxes on the chart at once.
This script applies a disclosed three-part quality filter (ATR-relative swing size, swing candle body ratio, optional break-of-structure confirmation) before a swing is even allowed to generate a zone.
Only one zone per direction is ever shown at full strength; the prior zone automatically fades to a quiet historical reference the moment a new qualifying swing appears, keeping the chart focused on the current opportunity.
Zone fill opacity and border color are driven entirely by a four-state mitigation engine (Fresh/Touched/Mitigated/Invalidated) computed from confirmed price action against the zone's own boundaries, so the visual state of a zone is informative rather than purely decorative.
The 70.5% equilibrium level is rendered as a two-layer glow line rather than a plain dashed line, giving the zone's mid-point a distinct, non-generic appearance.
Inputs
Swing Detection
Pivot Length
ATR Length
OTE Quality Filter
Minimum Swing Size (x ATR)
Minimum Swing Candle Body Ratio
Require Break of Structure
OTE Zone
Show Bullish OTE Zones
Show Bearish OTE Zones
Zone Extension (bars)
Show Institutional Midline (70.5%)
Fade Previous Zone on New Swing
Visual Settings
Bullish/Bearish Zone Colour
Bullish/Bearish Midline Colour
Label Size
Alerts
Alert: New OTE Zone Created
Alert: Price Entered OTE Zone
Alert: Price Left OTE Zone
Alert: OTE Zone Mitigated
Alert: OTE Zone Invalidated
Alerts
Alerts are available for:
New Bullish/Bearish OTE Zone Created
Price Entered Bullish/Bearish OTE Zone
Price Left Bullish/Bearish OTE Zone
Bullish/Bearish OTE Zone Mitigated
Bullish/Bearish OTE Zone Invalidated
Practical Usage
Treat an active, Fresh OTE zone in the direction of the prevailing structure as a region to watch for a retracement entry, not a standalone entry signal by itself.
Use the Break of Structure filter on trending instruments to restrict zones to swings that genuinely extended structure, and disable it on ranging instruments where internal swings may still be meaningful.
Raise the Minimum Swing Size and Body Ratio filters on lower timeframes or noisy instruments to reduce the number of zones generated.
Watch the zone's fill opacity as a quick visual read of its condition: a bold zone has not been tested, a lighter fill has already been touched or mitigated, and a greyed zone has been invalidated and should generally be disregarded.
Combine the Entered/Exited alerts with your own confirmation criteria (candlestick behavior, lower-timeframe structure, etc.) rather than treating zone entry alone as a trigger.
Limitations
Swing pivots require bars to form on both sides before they confirm, so every zone is inherently placed a Pivot Length number of bars after the actual swing extreme occurred.
The quality filter reduces the number of zones shown but does not evaluate or predict the outcome of any individual retracement.
Only one active zone per direction is displayed at a time; if you want to review multiple historical zones simultaneously, enable "Fade Previous Zone on New Swing" and note that only the single most recent prior zone is retained, not a full history.
As with any retracement-based tool, results will vary across instruments, timeframes, and market regimes.
Notes
This indicator is a zone-location tool intended to highlight the current, quality-filtered Optimal Trade Entry region and its mitigation state through a disclosed, rule-based process.
All swing confirmations, zone creation, mitigation-state transitions, and invalidations are evaluated on confirmed bar closes only, so no element of the script repaints once drawn.
The output is intended to support retracement-based analysis and is not a standalone buy or sell recommendation.
Indicator

Vesper Candle Index [JOAT]Vesper Candle Index
Introduction
Vesper Candle Index is an open-source candlestick classification engine. Instead of marking every common candle pattern equally, it scores candle patterns using body quality, wick structure, trend location, volatility, and nearby structure context.
The indicator is designed to reduce pattern noise by ranking candle events and displaying only those that meet a configurable quality threshold.
Core Concepts
1. Candle Pattern Library
The script evaluates multiple candlestick states, including engulfing candles, hammers, stars, harami, inside breaks, marubozu, tweezers, rail patterns, and reclaim/reject conditions.
2. Quality Scoring
Each candidate pattern receives a score based on candle body, wick placement, trend context, volatility, and structure alignment.
3. Structure Context
Confirmed pivot levels are used to detect CHoCH-style breaks and candle reactions near recent structure.
4. Trade Projection Labels
When a candle state qualifies, the script can display compact educational entry, stop, TP1, and TP2 information.
5. Dashboard
The dashboard shows the current candle state, quality bucket, trend, structure, and recent signal context.
Features
Ranked candle states: Patterns are scored rather than treated equally
Structure-aware candles: Uses pivots and CHoCH context
Volatility-adjusted logic: ATR helps normalize wick and body requirements
Cooldown control: Reduces repeated pattern labels
Compact dashboard: Summarizes the highest-ranked current candle state
Confirmed patterns: Pattern events use confirmed bars
Input Parameters
Pattern sensitivity controls the quality threshold
Pivot length controls structure confirmation
ATR settings control wick/body normalization
Rail projection settings control optional visual projection length
How to Use This Indicator
Step 1: Focus on high-quality states
Use the quality score to separate strong candle states from weaker pattern appearances.
Step 2: Check structure alignment
Candle events near relevant structure are often more meaningful than isolated patterns.
Step 3: Avoid treating patterns as certainty
Candlestick patterns describe current bar behavior. They do not predict continuation or reversal.
Indicator Limitations
Candle patterns can fail in strong trend or news conditions
Pivot-based structure is delayed by the selected pivot length
The script classifies candles; it does not forecast future direction
Originality Statement
Vesper Candle Index adds scoring, structure context, volatility normalization, cooldown behavior, and a dashboard to candlestick analysis. Its value is in ranking candle quality rather than simply labeling every pattern.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Candlestick patterns can be misleading when used alone.
-Made with passion by jackofalltrades
Indicator

Funding Carry Stress Map [AGPro Series]Funding Carry Stress Map
🧠 Core Idea
Is the market carrying a hidden derivatives premium or discount that is becoming crowded enough to matter?
📌 Overview / What it does
Funding Carry Stress Map is a crypto derivatives context tool designed to estimate when perpetual-style premium, carry pressure, basis drift, and volatility-adjusted crowding are becoming structurally relevant on the chart.
The script compares the active chart symbol against a user-selected spot reference, builds a smoothed carry baseline, measures premium/discount deviation, evaluates persistence, and converts the result into a visual carry stress framework. It produces a projected carry stress corridor, state labels, right-side tags, alerts, and a compact AG Pro dashboard.
It does not read official exchange funding payments, automate trades, predict future price direction, or promise that elevated carry stress must reverse. It is a structured analytical layer for reading derivatives pressure, premium imbalance, discount imbalance, carry squeeze risk, and cooling behavior.
🎯 Purpose & Design Philosophy
This script was built to fill a gap in the public AGProLabs lineup: most chart tools focus on trend, volume, support/resistance, momentum, or volatility. Crypto traders also need a clean way to think about derivatives-side pressure without turning the chart into a noisy data terminal.
The design goal is to make carry stress visible as a chart story. Instead of showing only a raw spread number, the script asks whether premium/discount is large, unusual, persistent, and supported by enough volatility context to deserve attention.
It is built for traders who want to monitor crowded long carry, crowded short carry, squeeze risk, and stress cooling while still making their own decisions from broader market context.
⚡ Why This Script Is Different
Most tools either show generic premium/basis values or treat funding-related pressure as a simple bullish/bearish signal.
This script does NOT claim to know the next candle, does NOT treat carry pressure as an automatic reversal signal, and does NOT depend on official funding-rate feeds that may not be available on every chart.
Instead, it converts spot-vs-active-symbol premium behavior into a structured carry stress map: premium size, normalized basis deviation, persistence, volatility rank, price reaction, and cooling behavior are combined into one visual decision-support framework.
⚙️ Methodology
1. Context Detection
The script reads the active chart price and a spot reference. By default, it automatically builds that reference from the chart base currency, selected exchange, and selected quote.
2. Reference Mapping
The premium series is smoothed into a carry baseline. The script then measures how far current premium/discount has moved away from that baseline.
3. Reaction Evaluation
The model evaluates basis z-score, absolute premium percentage, persistence across a recent window, volatility rank, and whether price is starting to reject the crowded side.
4. Visual Output
The result is displayed as a carry stress corridor, event labels, right-side tags, and a dashboard panel showing state, stress score, premium, basis z-score, persistence, volatility rank, and current interpretation.
🗺️ How to Read the Chart
The carry stress corridor represents the active price area where derivatives-side pressure is being monitored.
Labels mark important state transitions such as premium stress, discount stress, carry squeeze risk, and carry cooling.
Colors communicate state:
• Pink = positive carry / long-crowding stress
• Teal = negative carry / short-crowding stress
• Yellow = squeeze-risk reaction
• Indigo = cooling or neutralization
The panel summarizes the current condition so the user can quickly read whether carry pressure is low, watch-level, elevated, or extreme.
🚦 Signals & States
• Premium Stress → positive premium/carry pressure is active and persistent enough to monitor
• Discount Stress → negative premium/discount pressure is active and persistent enough to monitor
• Carry Squeeze Risk → elevated carry pressure is present while price begins reacting against the crowded side
• Carry Cooling → previously meaningful carry stress has faded below the model’s cooling zone
• Reset → no active carry imbalance is strong enough to dominate the current read
🔔 Alerts Logic
Alerts trigger when the internal state changes into one of the selected alert conditions.
Premium Stress alerts mark a transition into meaningful positive carry pressure.
Discount Stress alerts mark a transition into meaningful negative carry pressure.
Carry Squeeze Risk alerts mark a transition where crowded carry pressure and adverse price reaction align.
Carry Cooling alerts mark a transition where carry stress has materially faded.
Alerts are attention markers, not trade instructions.
🧩 Confluence Logic
The strongest context appears when multiple components align:
When premium size + basis z-score + persistence + volatility rank align, the carry stress score becomes more meaningful.
When that elevated score also appears with price rejection against the crowded side, the context shifts from simple premium/discount monitoring into potential squeeze-risk awareness.
📊 When to Use
• Crypto perpetual and futures markets where a spot reference can be selected
• Perpetual charts compared against their closest spot market
• High-interest crypto pairs where basis and carry pressure can influence behavior
• Volatile sessions where crowded positioning may matter more than usual
• Market regimes where traders want to monitor long-crowd or short-crowd pressure
⚠️ When NOT to Use
• Illiquid symbols with unreliable spot or futures pricing
• Charts where the selected spot reference is not comparable to the active symbol
• Markets with very noisy or fragmented data
• Extreme news events where spread behavior can become unstable
• Non-crypto symbols unless the user deliberately selects a meaningful reference
🎛️ Key Inputs
• Auto Spot Reference → automatically builds the spot reference from the chart base currency, selected exchange, and selected quote
• Carry Baseline Length → controls how quickly the premium baseline adapts
• Stress Normalization Lookback → controls how far back the script looks to judge unusual basis behavior
• Persistence Window → measures whether carry pressure persists across several bars
• Premium Stress Threshold % → defines the minimum premium/discount level required for active stress
• Reference Mismatch Guard % → prevents mismatched symbols from being interpreted as real carry stress
• Basis Z-Score Threshold → defines how unusual the spread must be before stress can activate
• Visual Settings → control corridor projection, labels, right-side tags, bar colors, and font sizes
🖥️ Interface & Visual Design
The interface is designed around a premium first-glance chart story.
The corridor gives the chart an active visual anchor. The centered label explains the current stress read without forcing the user to inspect every panel row. Right-side tags keep the current state visible near the active price area.
The panel uses the AG Pro layout standard with a blue merged header row, adjustable location, adjustable theme, and adjustable font size.
🧪 Practical Usage Workflow
1. Apply the script to a perpetual or futures chart.
2. Keep Auto Spot Reference enabled, or manually select the closest matching spot market.
3. Read the panel state and stress score.
4. Check whether the corridor is neutral, premium-stressed, discount-stressed, or showing squeeze risk.
5. Evaluate price reaction around the corridor together with broader market structure, volatility, and risk rules.
🔍 Interpretation Guidelines
Treat carry stress as a context layer.
Premium stress can mean long-side carry is becoming crowded, but it does not automatically mean price must fall.
Discount stress can mean short-side carry is becoming crowded, but it does not automatically mean price must rise.
Carry squeeze risk is stronger when elevated stress and adverse price reaction appear together, but it still requires confirmation from broader market context.
🚫 What This Script Is NOT
This script is not a prediction engine.
This script is not financial advice.
This script is not an auto trading system.
This script is not a guaranteed signal engine.
This script does not read official funding payment data directly.
This script does not claim that premium or discount must immediately mean-revert.
⚠️ Limitations & Transparency
The script estimates carry stress from active-symbol versus spot-reference behavior. It is a proxy framework, not an official exchange funding-rate feed.
Results can vary by exchange, symbol mapping, liquidity, timeframe, and data quality.
The selected reference must match the active market. Auto Spot Reference is enabled by default to help keep ETH charts on an ETH reference, BTC charts on a BTC reference, and similar mappings aligned.
Fast market moves, low liquidity, stale references, or mismatched symbol selections can affect the accuracy of the stress interpretation.
Market conditions change, and the same stress score may behave differently across different volatility regimes.
🧠 Market Context Notes
In crypto markets, derivatives pressure can matter because perpetual traders may become crowded on one side when premium, basis, and volatility remain elevated.
This does not create certainty. It creates context.
The value of the script is strongest when the user combines carry stress with structure, liquidity, trend quality, volatility, and disciplined risk management.
🧾 Use Case Examples
When price trades above the spot reference with persistent premium and the panel shifts into Premium Stress, the user may monitor whether long-side carry is becoming crowded.
When price trades below the spot reference with persistent discount and the panel shifts into Discount Stress, the user may monitor whether short-side pressure is becoming crowded.
When elevated carry stress appears and price starts rejecting the crowded side, the Carry Squeeze Risk state can help highlight a context worth closer attention.
🧱 System Philosophy
Funding Carry Stress Map follows the AGProLabs principle of building decision-support maps rather than prediction tools.
The script is designed to make hidden context easier to see, not to replace judgment.
Its purpose is to organize information into a cleaner visual workflow: read the state, inspect the corridor, evaluate reaction, and confirm with broader context.
🔐 Non-Promise Statement
No script can guarantee market direction.
No carry stress model can remove uncertainty.
This tool helps organize context; it does not create certainty.
📉 Risk Disclosure
Trading involves risk.
Crypto derivatives can be highly volatile and may involve leverage, liquidation risk, exchange risk, funding-cost changes, and rapid market movement.
This script is for educational and analytical purposes only.
It does not provide financial advice or guaranteed trading outcomes.
Users remain responsible for their own decisions.
📚 Educational Note
Use the script as a learning layer for understanding how premium, discount, persistence, volatility, and price reaction can combine into a more complete derivatives-pressure read.
Indicator

Range Equilibrium Rotation Planner [AGPro Series]Range Equilibrium Rotation Planner
🧠 Core Idea
Is price rotating cleanly away from range equilibrium toward an edge, or is the midpoint still controlling the auction?
📌 Overview / What it does
Range Equilibrium Rotation Planner maps mature range structure and focuses on the midpoint equilibrium area instead of treating every range as a breakout setup.
The script displays the active range box, equilibrium band, edge rails, rotation room rail, failure rail, event labels, right-side tags, optional bar coloring, and a compact AG Pro dashboard with a 0-100 Rotation Score.
It does not predict range breaks. It helps organize range balance, midpoint control, directional rotation, edge room, failure risk, and next-action state.
🎯 Purpose & Design Philosophy
Many range tools focus on support, resistance, or breakout alerts.
This script was built for a different question: what happens inside the range before price reaches the edge?
It helps traders review whether price is still trapped around equilibrium or beginning a clean rotation from the midpoint toward the upper or lower edge.
⚡ Why This Script Is Different
Most range indicators draw a box and wait for a breakout.
This script does NOT center the workflow on range escape.
Instead, it evaluates range maturity, midpoint control, rotation quality, edge room, and failure back through equilibrium. The goal is rotation planning, not breakout prediction.
⚙️ Methodology
1. Range Maturity Detection
The script builds a rolling range using recent high and low structure, then checks whether the height and edge interactions are meaningful.
2. Equilibrium Mapping
The midpoint band is calculated around the center of the range and becomes the key control zone.
3. Rotation Evaluation
Price must move away from equilibrium with enough buffer before directional rotation is considered active.
4. Risk / Room Structure
The active edge becomes the room reference, while the opposite side of equilibrium becomes the failure area.
5. Visual Output
The chart receives a range box, equilibrium band, edge rails, room rail, failure rail, labels, right-side tags, optional bar coloring, and dashboard panel.
🗺️ How to Read the Chart
The range box marks the current high-to-low structure.
The equilibrium band shows the midpoint area where rotation control is evaluated.
The upper and lower rails mark the active range edges.
The room rail marks the edge being targeted by the active rotation.
The failure rail marks where rotation has moved back through the wrong side of equilibrium.
Labels highlight mature ranges, rotations from midpoint, equilibrium holds, edge reviews, and failed rotations.
Colors represent context:
• Teal → bullish rotation
• Pink → bearish rotation or failure
• Gold → equilibrium, room, or edge review
• Indigo → range structure or waiting context
The panel summarizes:
• Range
• Rotation Score
• Balance
• Room
• Action
🚦 Signals & States
• Range Ready → a mature range structure is available
• Bull Rotation → price rotated upward from equilibrium
• Bear Rotation → price rotated downward from equilibrium
• Midpoint Hold → price remains controlled by the equilibrium band
• Edge Review → price reached the active range edge
• Failed → rotation moved back through the failure rail
• READY → rotation quality and room are strong enough to monitor
• MONITOR → rotation is active but not fully ready
• WAIT RANGE → no mature range exists
• WAIT ROTATION → range exists but no clean rotation has started
🔔 Alerts Logic
Alerts can trigger when a mature range appears, when bullish or bearish rotation begins, when READY state appears, when midpoint hold appears, when an edge is reached, or when the rotation fails.
Alerts are attention markers only. They are not trade instructions.
🧩 Confluence Logic
The context becomes stronger when range maturity, balanced edge interaction, midpoint departure, edge room, and failure distance align.
The script avoids treating midpoint noise as a clean rotation without confirmation.
📊 When to Use
• Sideways markets with visible range structure
• Crypto, forex, indices, and liquid stocks
• 1H, 4H, and 1D market structure review
• Mean-reversion planning inside a range
• Range edge preparation without waiting for breakout-only logic
⚠️ When NOT to Use
• Strong one-directional trends with no range structure
• Thin symbols with unreliable highs and lows
• News-driven candles that distort range boundaries
• Very small ranges where spread or tick noise dominates
• Markets with unstable data or irregular sessions
🎛️ Key Inputs
• Range Lookback → controls the structure used to build the range
• Minimum / Maximum Range Height ATR → filters ranges that are too small or too wide
• Edge Touch Tolerance → controls how edge interactions are counted
• Equilibrium Band ATR → controls midpoint band width
• Rotation Break Buffer → controls how far price must move beyond equilibrium
• Minimum Ready Score → controls READY strictness
• Projection Bars → controls how far boxes, rails, and tags extend
• Visual settings → control labels, tags, panel location, theme, and font size
🖥️ Interface & Visual Design
The panel is designed to show the range state, rotation quality, balance, room, and action without overloading the chart.
The first row uses a merged AG Pro header. The chart layer keeps the range and equilibrium structure visible while leaving room for price action.
Labels are controlled with cooldown and maximum count settings to preserve a premium screenshot style.
🧪 Practical Usage Workflow
1. Read the panel.
2. Confirm a mature range exists.
3. Check whether price is still at equilibrium or rotating away.
4. Review room to the active edge.
5. Watch the failure rail if rotation loses control.
🔍 Interpretation Guidelines
A high score means range maturity, midpoint departure, and edge room are aligned.
A midpoint hold means equilibrium is still controlling the auction.
An edge review means the rotation has reached the active range edge and should be interpreted as context, not as an automatic exit.
A failed state means the active rotation moved back through its failure boundary.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an automated trading system.
It does not place orders.
It does not guarantee edge reach, reversal, breakout, or profitability.
⚠️ Limitations & Transparency
Range boundaries can shift as new highs or lows appear.
Different timeframes may show different range structures.
Large volatility events can temporarily distort range height and edge touch quality.
Low liquidity may create unreliable equilibrium or edge behavior.
The script is rule-based and should be interpreted within broader market context.
🧠 Market Context Notes
Equilibrium is often where the market decides whether price will rotate toward an edge or remain balanced.
The strongest rotation contexts usually appear when price leaves midpoint with room, while failure remains clearly defined.
This script is designed to make that inside-range decision point easier to read.
🧾 Use Case Examples
When price holds near midpoint and then closes above the equilibrium band, the script can begin tracking bullish rotation toward the upper range edge.
When price rotates downward from equilibrium and reaches the lower edge, the context shifts into edge review rather than fresh entry signaling.
When price moves back through the failure rail, the active rotation context fails.
🧱 System Philosophy
AGPro Series tools are built as decision-support systems.
They aim to convert market structure into readable context: what is active, what improves the plan, what invalidates it, and what should be reviewed next.
🔐 Non-Promise Statement
No script can provide certainty.
No signal guarantees outcome.
This tool provides structured context only.
📉 Risk Disclosure
Trading involves risk.
Markets can move quickly and unexpectedly.
Users are responsible for their own analysis, risk management, and decisions.
This script does not provide financial advice.
📚 Educational Note
Use this tool to study how range equilibrium, midpoint control, rotation quality, and edge room interact across different symbols and timeframes.
Indicator

Breakout Base Defense Planner [AGPro Series]Breakout Base Defense Planner
🧠 Core Idea
After a breakout, is the original base being defended or is price losing control back into the base?
📌 Overview / What it does
Breakout Base Defense Planner maps the structure price broke from and tracks whether the broken base edge is being defended.
The script displays the breakout base, a projected base defense zone, defense rail, failure shelf, room reference, defense labels, pressure labels, invalidation labels, right-side tags, and a compact AG Pro dashboard.
It does not predict that a breakout will continue. It helps organize the post-breakout base context: defense score, pressure, room, failure risk, and action state.
🎯 Purpose & Design Philosophy
Many breakout tools focus on the breakout candle or the first follow-through move.
This script was built for a different question: does the original base still matter after the breakout?
It helps traders separate clean base defense from weak breaks that fall back into the structure they came from.
⚡ Why This Script Is Different
Most breakout indicators highlight breakouts or target projections.
This script does NOT build a full R ladder, position planner, or generic breakout continuation system.
Instead, it focuses on the broken base itself: the base box, defense zone, pressure behavior, failure shelf, target room reference, and clear action state.
⚙️ Methodology
1. Base Detection
The script defines a recent base using completed bars and filters it by ATR-based width.
2. Breakout Lock
When price closes beyond the base edge with enough displacement and participation, the base is locked as the active reference.
3. Defense Evaluation
The broken base edge becomes a defense zone. The script checks whether price holds, pressures, or loses that zone.
4. Visual Output
The chart receives a breakout base box, defense zone, defense rail, failure shelf, room rail, labels, right-side tags, optional bar coloring, and a dashboard panel.
🗺️ How to Read the Chart
The breakout base shows the structure price broke from.
The defense zone marks the broken edge that should act as support in bullish breaks or resistance in bearish breaks.
The failure shelf marks where the base defense context fails.
The room rail marks the nearest swing-room reference beyond the breakout direction.
Labels highlight base lock, base defended, defense pressure, room tests, and base lost events.
Colors represent context:
• Teal → bullish base defense
• Pink → bearish base defense or invalidation
• Gold → room reference or waiting context
• Indigo → pressure or monitoring context
The panel summarizes:
• Base
• Defense Score
• Pressure
• Room
• Action
🚦 Signals & States
• Bull Base Breakout → price closed above the base with acceptable quality
• Bear Base Breakout → price closed below the base with acceptable quality
• Base Defended → price tested the broken edge and closed back in the breakout direction
• Defense Pressure → price is testing the defense zone without a clean hold
• Room Test → price reached the active room reference
• Base Lost → price closed beyond the failure shelf
• READY → base defense quality is strong enough to monitor
• MONITOR → price is actively testing the base defense zone
• WAIT → no strong active context exists
• INVALIDATED → the base defense context failed
• EXPIRED → the locked base is too old to remain active
🔔 Alerts Logic
Alerts can trigger when a breakout base is locked, when the base is defended, when READY state appears, when defense pressure appears, when the room rail is reached, or when the base is lost.
Alerts are attention markers only. They are not trade instructions.
🧩 Confluence Logic
The base defense context becomes stronger when the breakout base is well-sized, the breakout close has quality, the defense zone holds, participation is acceptable, and target room remains available.
When base defense and room align, the structure is cleaner. When price presses through the defense zone toward the failure shelf, the context weakens.
📊 When to Use
• After clear breakout moves
• During breakout retests
• When price returns to a broken range edge
• In trending markets where base defense matters
• On liquid symbols with readable structure and volume
• On 4h and 1D charts where base boxes remain visually clear
⚠️ When NOT to Use
• Very low-liquidity markets
• Extremely noisy sideways ranges
• Breakouts without a meaningful base
• News candles with unstable spreads
• Late moves where the base is already too far away to matter
🎛️ Key Inputs
• Base Lookback Bars → controls how the breakout base is detected
• Minimum / Maximum Base Range ATR → filters bases that are too small or too large
• Break Buffer ATR → controls how far beyond the base price must close
• Minimum Break Body Ratio → filters weak wick-only breaks
• Minimum Relative Volume → filters low-participation breaks
• Defense Zone ATR → controls the defended zone around the broken edge
• Failure Buffer ATR → controls where base defense fails
• Target Room Lookback → controls the nearest swing-room reference
• Visual settings → control boxes, rails, labels, tags, panel, and bar colors
🖥️ Interface & Visual Design
The visual design is built around the original base.
The base box provides context, the defense zone shows the key retest area, the failure shelf defines where the idea weakens, and the panel compresses the state into a quick decision-support read.
The goal is a premium, structured chart that feels like a breakout defense map, not a crowded signal board.
🧪 Practical Usage Workflow
1. Check whether a breakout base is active
2. Read the defense score and action state
3. Inspect the defense zone
4. Compare pressure with room
5. Watch the failure shelf for invalidation
6. Confirm the context with broader market structure
🔍 Interpretation Guidelines
A READY state means the base defense context has enough structure to monitor.
Defense pressure means price is testing the broken base edge and the context needs attention.
Base defended means price reacted at the edge, but it does not guarantee continuation.
Room measures available structure beyond the current price, not a promised target.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not a guaranteed breakout system.
It is not an R-ladder tool.
It is not a position sizing tool.
It is not an automated trading tool.
It does not provide financial advice.
It does not guarantee continuation, reversal, profit, or a specific target.
⚠️ Limitations & Transparency
Breakout base behavior depends on market structure, volatility, liquidity, timeframe, and participation.
Some defended bases may later fail.
Some failed bases may reclaim again later.
The score is a rule-based context score, not a certainty model.
🧠 Market Context Notes
Breakout bases often become important memory zones.
When price breaks out and later defends the original edge, the structure can remain organized.
When price falls back through the edge and failure shelf, the breakout context becomes weaker.
🧾 Use Case Examples
When price breaks above a recent base, the script locks the base and projects a defense zone around the broken edge.
If price returns to the defense zone and closes back above the edge, the script can mark base defense.
If price closes through the failure shelf, the script marks the base as lost.
🧱 System Philosophy
This script follows the AGPro Series approach: turn one important market structure question into a focused decision-support map.
The focus is not prediction. The focus is base context, defense quality, pressure awareness, failure logic, and visual clarity.
🔐 Non-Promise Statement
No script can remove uncertainty from markets.
This tool does not promise accuracy, profitability, or future price movement.
Its purpose is to organize breakout base defense context so the user can interpret the chart more clearly.
📉 Risk Disclosure
Trading involves risk.
Market conditions can change quickly, and any analytical output can fail.
Users are responsible for their own decisions, risk management, and trade execution.
This script is for educational and analytical purposes only and does not provide financial advice.
📚 Educational Note
A breakout is not complete just because price leaves a base.
The quality of the first base defense can often provide more useful context than the breakout candle alone.
Indicator

Prior Close Reclaim Planner [AGPro Series]Prior Close Reclaim Planner
🧠 Core Idea
Is the prior close being reclaimed, rejected, or treated as a live magnet by the current market?
📌 Overview / What it does
Prior Close Reclaim Planner maps the completed prior close as a live support/resistance reference and evaluates how price reacts around that level.
The script displays a prior-close rail, an ATR-based reclaim pocket, reclaim labels, rejection labels, magnet-zone labels, right-side reference tags, and a compact AG Pro dashboard with a 0-100 reclaim score.
It does not predict where price will go next. It helps organize the reaction around the previous close: reclaim quality, rejection pressure, magnet risk, rail state, and action context.
🎯 Purpose & Design Philosophy
The previous close is one of the simplest reference levels on a chart, but it is often read too casually.
This script was built to turn that reference into a structured planning map. It helps traders see whether the prior close is acting as support, resistance, a magnet, or a failed reclaim zone.
The design supports a patient decision-support mindset: read the rail, evaluate the reaction, check the score, and place the output inside broader market context.
⚡ Why This Script Is Different
Most tools draw a prior close line and stop there.
This script does NOT treat the prior close as a passive horizontal level.
Instead, it builds an active reclaim planner with a pocket, reaction labels, magnet context, relative-volume support, volatility fit, a readiness score, and a clear action state.
⚙️ Methodology
1. Prior Close Detection
The script sources the completed prior close from the selected reference timeframe. Daily is the default setting for previous-session analysis.
2. Reclaim Pocket Mapping
An ATR-based pocket is created above and below the prior close. This pocket is used to avoid overreacting to tiny ticks around the rail.
3. Reaction Evaluation
The script evaluates close location, wick response, relative volume, distance from the rail, and volatility fit.
4. Visual Output
The chart receives the rail, pocket, labels, right-side tags, bar coloring if enabled, and a dashboard panel summarizing the current state.
🗺️ How to Read the Chart
The central rail shows the completed prior close.
The pocket around the rail shows where reclaim and rejection behavior is evaluated.
Labels highlight bullish reclaim, bearish reclaim, rail defense, rail rejection, magnet-zone entries, and failed reclaim behavior.
Colors represent context:
• Teal → bullish reclaim or defense
• Pink → bearish reclaim or rejection
• Gold → neutral or waiting context
• Indigo → magnet or monitoring context
The panel summarizes:
• Prior Close
• Reclaim Score
• Magnet Risk
• Rail State
• Action
🚦 Signals & States
• Bull Prior Close Reclaim → price closed above the reclaim pocket
• Bear Prior Close Reclaim → price closed below the reclaim pocket
• Rail Defense → price tested the pocket and closed back above it
• Rail Rejection → price tested the pocket and closed back below it
• Magnet Zone → price is close enough to the prior close to treat the rail as active
• Invalidated → a reclaim attempt failed back through the prior-close rail
• READY → reclaim/rejection quality is strong enough to monitor
• MONITOR → price is near the rail, but conditions are not fully ready
• WAIT → no strong prior-close reaction is active
🔔 Alerts Logic
Alerts can trigger when price reclaims the prior close pocket, rejects the pocket, enters the magnet zone, reaches READY conditions, or invalidates a reclaim attempt.
Alerts are attention markers only. They are not trade instructions.
🧩 Confluence Logic
The prior-close context becomes stronger when close location, wick response, relative volume, volatility fit, and distance from the rail align.
For example, a reclaim with strong close quality, acceptable volume, and controlled distance from the rail is more structured than a weak close far from the reference.
📊 When to Use
• Intraday trading around the previous session close
• Session reclaim or rejection analysis
• Support/resistance reaction planning
• Trending markets that retest the prior close
• Range conditions where the prior close acts as a magnet
• Liquid symbols with readable candles and stable spreads
⚠️ When NOT to Use
• Very low-liquidity markets
• Symbols with unreliable session structure
• Extremely noisy chop around the rail
• News candles with unstable spreads
• Markets where the selected reference timeframe is not meaningful
🎛️ Key Inputs
• Reference Timeframe → controls where the completed prior close comes from
• Reclaim Pocket ATR → controls the width of the reaction pocket around the rail
• Magnet Distance ATR → controls when price is treated as close enough to the rail
• Minimum Ready Score → controls the score required for READY state
• Relative Volume Length → controls participation comparison
• Confirmation Mode → controls how strict reclaim/rejection evaluation should be
• Visual settings → control rails, pockets, labels, tags, bar colors, and dashboard behavior
🖥️ Interface & Visual Design
The interface is built for fast chart reading.
The prior close rail creates the main reference, the pocket defines the active reaction area, labels mark important events, and the panel compresses the state into a clean decision-support dashboard.
The goal is a premium, readable chart without turning the prior close into a cluttered signal board.
🧪 Practical Usage Workflow
1. Read the panel action state
2. Check whether price is above, below, or inside the prior-close pocket
3. Evaluate reclaim or rejection labels
4. Compare score quality with magnet risk
5. Confirm the context with broader structure, volume, and timeframe alignment
🔍 Interpretation Guidelines
A READY state means the prior-close reaction has enough structure to monitor.
Magnet risk means price is still close enough to the rail for the prior close to matter.
A reclaim label means the market crossed beyond the pocket, not that continuation is guaranteed.
A rejection or defense label means price reacted at the rail, but the broader trend and volatility context still matter.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not a guaranteed prior-close trading system.
It is not an automated trading tool.
It does not provide financial advice.
It does not guarantee continuation, reversal, profit, or a specific target.
⚠️ Limitations & Transparency
Prior-close behavior depends on market structure, volatility, liquidity, session design, and timeframe.
Different symbols may treat the previous close differently.
Very noisy markets can trigger frequent pocket interactions.
The score is a rule-based context score, not a certainty model.
🧠 Market Context Notes
The prior close often acts as a memory level.
When price reclaims it with participation, the rail may become a useful support/resistance reference.
When price repeatedly returns to it without follow-through, the rail may behave more like a magnet than a directional level.
🧾 Use Case Examples
When price opens below the prior close and later reclaims the pocket, the script marks the reclaim and scores the quality of the reaction.
When price tests the prior close from above and closes back above the pocket, the script can mark rail defense.
When price stays close to the rail without clean displacement, the panel can shift toward MONITOR instead of forcing a directional read.
🧱 System Philosophy
This script follows the AGPro Series approach: turn a familiar chart reference into a structured decision-support map.
The focus is not prediction. The focus is context, quality, invalidation awareness, and visual clarity.
🔐 Non-Promise Statement
No script can remove uncertainty from markets.
This tool does not promise accuracy, profitability, or future price movement.
Its purpose is to organize prior-close context so the user can interpret the chart more clearly.
📉 Risk Disclosure
Trading involves risk.
Market conditions can change quickly, and any analytical output can fail.
Users are responsible for their own decisions, risk management, and trade execution.
This script is for educational and analytical purposes only and does not provide financial advice.
📚 Educational Note
Use the prior close as a reference, not as an automatic decision.
The best reads usually come when the rail reaction aligns with structure, liquidity, volume, and the broader market environment.
Indicator

Live Position Tracker Leverage CalculatorLive Position Tracker Leverage Calculator
A leverage and position calculator that lives on your chart. Set your entry candle, entry price, take profit, and stop loss with a few clicks and get an instant visual breakdown of the trade — risk, reward, liquidation distance, breakeven, and live PnL — all anchored to the actual candle you entered on.
Unlike static calculator widgets, this tool tracks your trade from entry to exit. It records the best and worst points your position reached, counts how many bars you've held, and freezes everything when the trade closes so you have a clean snapshot of how it played out.
WHAT GETS PLOTTED ON THE CHART
· Entry, Take Profit, and Stop Loss lines anchored from your entry candle forward
· Liquidation price line (calculated from your leverage and maintenance margin)
· Breakeven line (entry adjusted for fees)
· Filled zones between entry/TP (green) and entry/SL (red)
· Best Point and Worst Point markers showing the maximum favorable and adverse excursion the trade reached
· Live PnL label that updates with current price
WHAT'S IN THE INFO PANEL
· Position: capital, notional, quantity, maintenance margin, fee rate
· Outcomes: live PnL, projected PnL at TP, projected loss at SL, risk-to-reward ratio
· Liquidation: liquidation price, distance to liquidation, round-trip fees
· Trade history: bars in trade, best point reached, worst point reached
· Status: pending entry, active, target hit, stop hit, or liquidated
KEY FEATURES
· Click-to-set workflow: PulseWire prompts you to click the entry candle, entry price, TP, and SL when you add the indicator
· Auto direction detection from your TP and SL placement (or manually force Long/Short)
· Liquidation calculator with adjustable maintenance margin (works for any exchange — set the value from your exchange's tier table)
· Sanity warnings: flags when stop loss is past the liquidation price, or when TP/SL are on the wrong side of entry
· Trade tracking freezes the moment any exit (TP/SL/liquidation) is hit, giving you a clean post-trade snapshot
· Three independent color systems: on-chart tag colors, Live PnL label colors, and panel theme — each customizable without affecting the others
· Customizable line widths, label colors, font color, and panel theme (dark, light, or fully custom)
· Adjustable label offsets and stagger so the chart never gets cluttered regardless of timeframe or symbol
· Alerts for TP, SL, liquidation, and breakeven crossings
MAINTENANCE MARGIN REFERENCE
Maintenance margin (MMR) is the minimum equity percentage required to keep your leveraged position open. The default 0.5% is roughly accurate for BTC/ETH on major exchanges, but real values vary:
· BTC/ETH majors: 0.4 – 0.5%
· Top 20 alts: 0.5 – 1.0%
· Mid-cap alts: 1.0 – 2.5%
· Low-cap and meme coins: 2.5%+
For accurate liquidation calculations, find your exchange's exact MMR for your symbol and position size.
NOTES
The liquidation price is a simplified isolated-margin approximation and does not account for tiered margin requirements at different position sizes. Always verify against your exchange's actual liquidation calculator before sizing real positions.
This tool calculates risk-to-reward as the gross price-distance ratio (matching PulseWire's built-in long/short position tool). The fee-adjusted dollar amounts are shown separately in the "If TP Hit" and "If SL Hit" rows.
Indicator

Trendline Retest Planner [AGPro Series]Trendline Retest Planner
🧠 Core Idea
Is the active trendline retest constructive enough to keep the setup under review, or is it starting to fail?
📌 Overview / What it does
Trendline Retest Planner is a chart-first decision tool for traders who review price behavior around active support and resistance trendline retests.
Instead of drawing many trendlines or flagging every break, the script focuses on one active trendline retest context at a time. It measures line age, touch count, retest depth, close response, and volume support, then converts that evidence into a 0-100 Retest Score and a clear next-action state.
The script produces an active trendline, retest pocket, hold/fail labels, invalidation edge, target path, alerts, and a compact AGPro planning panel. It does not predict price movement, automate execution, or provide guaranteed outcomes.
🎯 Purpose & Design Philosophy
This script was built to fill the gap between auto-trendline drawing and practical retest planning.
Many tools can draw diagonals or detect a break. The harder question is what to do after price returns to the line: is the retest holding, weakening, failing, or still waiting for confirmation?
Trendline Retest Planner supports a decision workflow: identify the active retest, read the score, locate the invalidation edge, compare the target path, and decide what deserves review next.
⚡ Why This Script Is Different
Most trendline tools focus on drawing many lines, ranking confluence, or detecting trendline breaks.
This script does NOT clone Auto Trendline Break Quality, Auto Trendlines MTF - Break/Retest, Trendline Confluence Map, Break-Retest Quality, Structure Retest Planner, Swing Retest Quality, or a generic support/resistance zone map.
Instead, it narrows the workflow to one active support or resistance trendline retest and evaluates whether that retest is constructive or failing. The main output is not a buy or sell signal. It is a decision state: READY, MONITOR, FAILING, INVALIDATED, WATCH, WAIT, or SCAN.
⚙️ Methodology
1. Context Detection
The script builds the latest support and resistance trendline candidates from confirmed swing pivots, then selects the nearest valid retest context.
2. Reference Mapping
It maps the active trendline, a retest pocket around the line, an invalidation edge, and a forward target path.
3. Reaction Evaluation
The 0-100 model scores line age, touch count, retest depth, close response, and volume support.
4. Visual Output
The chart shows the active planning objects, compact state labels, and a clean AGPro decision panel.
🗺️ How to Read the Chart
Trendline = the active support or resistance line being evaluated.
Retest Pocket = the ATR-based area around the trendline where a retest is considered active.
Invalidation Edge = the planning reference where the active retest context is considered broken.
Target Path = a forward guide based on the trendline-to-risk distance.
Labels = compact TEST, READY, MONITOR, WEAK, INVALID, PATH, and sparse context labels.
Colors = teal marks support-side retest context, pink marks resistance-side retest context, amber marks caution, indigo marks monitoring/follow-through, and red marks invalidation.
Panel = the AGPro panel summarizes Trendline Side, Retest Score, Hold State, Risk Edge, and Action.
🚦 Signals & States
• READY → the retest is active, holding on the correct side, and the score is strong enough for structured review.
• MONITOR → the retest is developing, but confirmation or score quality is still incomplete.
• FAILING → price touched the pocket, but the response is weak or on the wrong side.
• INVALIDATED → price crossed the invalidation edge and the active context should be rebuilt.
• WATCH → price is approaching the trendline pocket.
• WAIT → a valid trendline exists, but price is not close enough for useful retest review.
• SCAN → no valid trendline context is active yet.
🔔 Alerts Logic
Alerts trigger when price touches the active retest pocket, when READY state appears, when MONITOR state appears, when a failing retest is detected, when the invalidation edge is crossed, and when follow-through appears after an active retest.
Alerts are attention markers only. They are not trade instructions, automated strategy commands, or outcome promises.
🧩 Confluence Logic
The strongest context appears when the active line is fresh enough, has enough touches, retests with controlled depth, closes back on the correct side, and receives supportive relative volume.
When these components conflict, the panel moves toward MONITOR, FAILING, WATCH, WAIT, or INVALIDATED.
📊 When to Use
• Trendline support retests during constructive pullbacks
• Trendline resistance retests during bearish continuation attempts
• Price-action review after a diagonal support or resistance line is already visible
• Retest planning where invalidation and target path matter
• Liquid markets where pivots, candles, and volume behavior are readable
⚠️ When NOT to Use
• Very low-liquidity symbols with irregular candles
• Extremely noisy micro-timeframes
• News-driven spikes where trendline geometry becomes distorted
• Markets where swing pivots are too compressed to form useful lines
• Situations where the user expects a signal-only or auto-trading tool
🎛️ Key Inputs
• Trendline Side → selects Auto, Support Retest, or Resistance Retest.
• Trendline Pivot Length → controls how confirmed swing anchors are detected.
• Max Trendline Age → controls how old a trendline can be before it is ignored.
• Touch Count Lookback → controls how extra line touches are counted.
• Sensitivity → adjusts retest pocket width and activation distance.
• READY Score → sets the score threshold for stronger review states.
• Label and Panel Font Size → controls chart-label and panel readability.
• Panel Location and Theme → adjusts the AGPro panel layout.
🖥️ Interface & Visual Design
The interface is designed to stay chart-first and decision-led.
The active trendline is the main reference. The retest pocket is drawn around that line with centered text so the chart stays readable. The invalidation edge and target path explain where the planning context weakens and what forward room is being mapped.
The AGPro panel uses a merged blue title row and five compact rows so the user can read side, score, hold state, risk edge, and action quickly.
🧪 Practical Usage Workflow
1. Read the panel state and Retest Score.
2. Check whether price is approaching or touching the retest pocket.
3. Compare current price with the invalidation edge.
4. Review whether the label says TEST, READY, MONITOR, WEAK, INVALID, or PATH.
5. Confirm the broader market context before making any decision.
🔍 Interpretation Guidelines
Think in terms of retest quality, not prediction.
A higher score means multiple retest components align inside the script's rule set. A weaker score means the line may be too old, the retest may be too shallow, too deep, missing a constructive close, or lacking participation.
The script helps organize the review process. It does not replace judgment.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not an auto-trading system
• Not a guaranteed signal tool
• Not a broad auto-trendline map
• Not a trendline confluence scanner
• Not a break-and-retest scanner
• Not a generic support/resistance zone map
• Not an order block, FVG, or supply/demand tool
⚠️ Limitations & Transparency
• Pivot-based trendlines appear only after pivots are confirmed.
• Scores can vary across symbols, sessions, and timeframes.
• Volume scoring depends on exchange-provided volume data.
• Fast volatility can cross a trendline before a clean retest can be measured.
• In Live Updating mode, active-bar values can change before the bar closes.
🧠 Market Context Notes
Trendline retests are easiest to interpret when liquidity, volatility, and swing structure are readable.
A trendline touch is not enough by itself. Line quality, response, invalidation distance, and target path all matter.
🧾 Use Case Examples
When price returns to an upward support trendline and closes back above the pocket with a high score, the panel may move toward READY.
When price touches a downward resistance trendline but cannot close back below it, the planner may move toward FAILING or INVALIDATED.
When price is near the line but has not touched the pocket yet, the panel can stay in WATCH or WAIT.
🧱 System Philosophy
Trendline Retest Planner follows the AGPro decision-engine approach: identify context, score quality, map risk, show the next action, and keep the chart readable.
It is designed to help traders evaluate a specific planning question instead of adding another generic signal layer.
🔐 Non-Promise Statement
No score, label, alert, or chart object guarantees any market outcome.
The script organizes retest context and highlights conditions for review. It does not provide certainty.
📉 Risk Disclosure
Trading involves risk.
Users remain responsible for their own decisions, position sizing, execution, and risk management.
This script is for educational and analytical purposes only and does not provide financial advice.
📚 Educational Note
Use the planner as a structured reading layer: trendline context first, retest quality second, invalidation and target path third, broader market context always.
Indicator

Breakout Follow-Through Planner [AGPro Series]Breakout Follow-Through Planner
🧠 Core Idea
Did the breakout receive enough follow-through to stay valid?
📌 Overview / What it does
Breakout Follow-Through Planner is a chart-first breakout planning tool designed to evaluate what happens after price clears a recent structure edge.
Instead of treating the breakout candle as the full story, the script maps the broken level, creates a follow-through corridor, tracks post-break travel, measures close progress, monitors retest-depth risk, and converts the full sequence into a 0-100 Follow-Through Score.
The script produces a breakout line, follow-through corridor, weak-continuation labels, failure rail, target-room guide, alerts, and a clean AGPro decision panel. It does not predict price, automate trades, or issue entry/exit commands.
🎯 Purpose & Design Philosophy
This script was built for traders who already understand that a breakout is only the first event.
The practical question comes after the break: does price travel away from the level, hold enough distance, and preserve clean room, or does it stall and begin to retest too deeply? This planner turns that post-break phase into a readable decision process.
The design supports a planning mindset: identify the breakout, review follow-through quality, respect the failure rail, measure target room, and decide whether the active context still deserves attention.
⚡ Why This Script Is Different
Most breakout tools focus on the moment price crosses a level.
This script does NOT clone Breakout Volume Quality, Breakout Retest Readiness, Acceptance Breakout Planner, Volume Expansion Breakout Planner, or a generic support/resistance breakout scanner.
Instead, it focuses on post-break travel quality. The key question is not simply "did price break?" or "was volume high?" or "did the retest hold?" The key question is whether the breakout received enough follow-through after the break to remain structurally valid.
⚙️ Methodology
1. Context Detection
The script builds recent upper and lower breakout references from a configurable prior structure window.
2. Reference Mapping
When price closes beyond a reference edge by an ATR-normalized buffer, the planner starts an active breakout follow-through plan.
3. Reaction Evaluation
The model evaluates break candle quality, volume support, follow-through travel, number of closes beyond the breakout close, retest-depth risk, target room, and failure rail behavior.
4. Visual Output
The chart shows the breakout line, active follow-through corridor, failure rail, target-room guide, compact labels, and an AGPro panel summarizing the current decision state.
🗺️ How to Read the Chart
Follow-Through Corridor = the active path from the breakout close toward the target-room guide. Its text is centered inside the corridor.
Breakout Line = the structure edge that was cleared and now anchors the active plan.
Failure Rail = the invalidation reference behind the breakout line. It is an analytical guide, not a stop order.
Target Room = the projected planning guide based on the prior structure height.
Labels = compact markers such as BFT UP, BFT DN, FT READY, WEAK FT, RETEST RISK, FAIL RAIL, ROOM HIT, and TRACK.
Colors = teal supports constructive bullish follow-through, pink supports bearish follow-through, amber marks caution, indigo marks target-room review, and red marks failure rail pressure.
Panel = the main decision interface showing Breakout Side, Follow-Through, Retest Risk, Target Room, and Action.
🚦 Signals & States
• BFT UP → a bullish breakout started a follow-through review.
• BFT DN → a bearish breakout started a follow-through review.
• FT WATCH → follow-through evidence is developing but not complete.
• FT READY → travel, closes, score quality, and retest-depth conditions are constructive.
• WEAK FT → the follow-through window aged without enough progress.
• RETEST RISK → price moved too deeply back toward or through the breakout line.
• FAIL RAIL → price closed through the failure rail after the breakout plan.
• ROOM HIT → price reached the target-room guide and context should be reviewed.
🔔 Alerts Logic
Alerts can trigger when a bullish or bearish breakout plan starts, follow-through reaches the ready state, weak follow-through or retest risk appears, the failure rail is hit, or target-room review is reached.
These alerts are attention markers for chart review. They are not trade instructions, automated strategy rules, or guaranteed outcomes.
🧩 Confluence Logic
The strongest follow-through context usually appears when the breakout candle is clean, price travels away from the breakout close, multiple closes hold beyond the breakout close, retest depth remains controlled, volume support is present, and target room is still readable.
When these conditions weaken, the planner can shift toward FT WATCH, WEAK FT, RETEST RISK, FAILED, or TARGET REVIEW.
📊 When to Use
• Breakout continuation review
• Range exits where post-break travel matters
• Trend continuation attempts after structure breaks
• Breakouts that need a clear failure rail and target-room reference
• Chart review workflows where the trader wants a decision state instead of another raw breakout marker
⚠️ When NOT to Use
• Low-liquidity markets with unreliable candles or volume
• Extremely noisy ranges where every breakout immediately snaps back inside
• Abnormal news spikes where ATR and structure references may distort quickly
• Situations where the user needs full trade management, position sizing, or automation
🎛️ Key Inputs
• Structure Lookback → controls the recent high/low reference used for breakout detection.
• Break Buffer ATR → defines how far price must close beyond the reference edge.
• Minimum Break Quality → filters weaker breakout candles before the planner starts.
• Follow-Through Window → controls the early review period after the breakout.
• Required Travel ATR → defines the preferred post-break travel distance.
• Maximum Clean Retest Depth ATR → controls when retest depth becomes risk.
• Failure Rail ATR → sets the analytical invalidation rail behind the breakout line.
• Target Room Range Multiple → projects the target-room guide from prior structure height.
• Visual and Panel Settings → control corridor visibility, labels, panel location, theme, and font sizes.
🖥️ Interface & Visual Design
The interface is intentionally chart-first.
The follow-through corridor carries the main story, while the breakout line, failure rail, and target guide create a clean level-risk-room hierarchy. Labels are compact and controlled by cooldown and maximum-visible settings so the chart remains active without becoming crowded.
The AGPro panel uses a merged blue title row and a compact decision layout for fast review.
🧪 Practical Usage Workflow
1. Read the panel to identify the current breakout side and follow-through state.
2. Check the breakout line and follow-through corridor.
3. Review whether price is traveling away, stalling, retesting too deeply, or reaching target room.
4. Use the failure rail as a structural review reference.
5. Treat the Action row as a planning prompt, not as an instruction.
🔍 Interpretation Guidelines
The Follow-Through Score should be read as context quality, not certainty.
A higher score means the breakout has cleaner post-break travel under the script's rules. A lower score means the breakout may be stalling, losing distance, retesting too deeply, or lacking enough supporting evidence.
The target-room guide does not forecast price. It gives a structured reference for whether the current path still has room to review.
🚫 What This Script Is NOT
This script is not a prediction engine.
This script is not financial advice.
This script is not an auto-trading system.
This script does not provide guaranteed signals.
This script is not a generic support/resistance map.
This script is not a Breakout Volume Quality clone.
This script is not a Breakout Retest Readiness clone.
⚠️ Limitations & Transparency
The script is rule-based and depends on the selected lookback, ATR length, timeframe, and symbol behavior.
Different markets can produce different breakout behavior. Lower timeframes may show more noise. Higher timeframes may produce fewer but cleaner events.
Volatility changes can affect corridor size, failure rail distance, target-room projection, and event frequency. Outputs should be interpreted within broader market context.
🧠 Market Context Notes
Breakout follow-through is usually most useful when structure is readable, liquidity is sufficient, and the market has enough room to travel after the break.
Volume can support the score, but the script is not built around volume alone. The central decision layer is post-break price travel and structural validity.
🧾 Use Case Examples
When price breaks above recent structure and immediately travels away with multiple closes beyond the breakout close, the planner can move from FT WATCH toward FT READY.
When price breaks but returns deeply through the breakout line before enough travel appears, the planner can mark RETEST RISK or FAIL RAIL.
When price reaches the projected target-room guide, the planner shifts to ROOM HIT so the context can be reviewed instead of blindly extended.
🧱 System Philosophy
The script is built around the AGPro decision-engine approach: structure first, quality score second, risk and target context always visible, and no promise-based signals.
🔐 Non-Promise Statement
No script can provide certainty.
No output should be treated as a guarantee.
The tool organizes breakout follow-through context so users can review price action with more structure.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own decisions.
This script does not provide financial advice.
📚 Educational Note
Use the planner to study how breakouts behave after the first break. The value is in comparing clean follow-through, weak continuation, deep retests, and failure-rail behavior across many examples.
Indicator

Price Rejection Readiness [AGPro Series]Price Rejection Readiness
🧠 Core Idea
Is the current price rejection strong enough to deserve attention now?
📌 Overview / What it does
Price Rejection Readiness is a chart-first rejection planning tool built to evaluate whether a wick-based rejection is only noise, a watch condition, a confirmed context, or a failed attempt.
The script produces a 0-100 Readiness Score, a rejection pocket, wick-quality label, confirmation rail, invalidation rail, target review rail, controlled chart labels, and a compact AG Pro decision panel.
It does not predict price direction, automate execution, or mark every wick as important. Its role is to organize rejection context into a cleaner planning workflow.
🎯 Purpose & Design Philosophy
Many rejection tools stop at candle recognition. They mark long wicks, pin bars, or local reactions without showing whether the context is ready, waiting, confirmed, or failing.
This script was built for traders who want a decision-support layer around rejection behavior. It helps users evaluate validity, quality, confirmation, risk boundary, target room, and the next action from one clean visual structure.
The design philosophy is planning first. A rejection candle should not be treated as a conclusion by itself. It should be evaluated through structure, participation, follow-through, and risk context.
⚡ Why This Script Is Different
Most tools focus on detecting a wick or highlighting a candle pattern.
This script does NOT clone Rejection Block Quality, Pin Bar Quality Filter, Reaction Efficiency Meter, order-block tools, or generic support/resistance maps.
Instead, it asks whether the current rejection is ready to be monitored as a structured plan. It scores wick dominance, close location, local reference pressure, volume response, and follow-through, then maps a practical confirmation rail, invalidation rail, and target review area.
⚙️ Methodology
1. Context Detection
The script measures the current candle body, wick dominance, wick share, close location, volume response, and local reference pressure.
2. Reference Mapping
When a valid rejection forms, the script draws a candle-native rejection pocket from the wick extreme to the rejection body area. This is not a broad support/resistance zone.
3. Reaction Evaluation
The engine converts wick quality, close strength, reference pressure, volume behavior, and follow-through into a 0-100 Readiness Score.
4. Visual Output
Accepted plans create a rejection pocket, confirmation rail, invalidation rail, target review rail, event labels, and a compact AG Pro panel.
🗺️ How to Read the Chart
Rejection Pocket = the candle-native area where the rejection originated.
Confirmation Rail = the price boundary that must be respected or exceeded according to the selected confirmation mode.
Invalidation Rail = the price boundary beyond the wick where the rejection plan is no longer valid.
Target Review Rail = a projected review area based on the distance from active price to invalidation.
Labels = compact event markers for Ready, Confirmed, Failed Rejection, and Target Review.
Colors = teal for bullish rejection context, pink for bearish rejection context, indigo for confirmation, gold for target review, and red for invalidation.
Panel = shows Rejection Side, Readiness, Wick Quality, Confirmation, Invalid / Target, and Action.
🚦 Signals & States
• Scan → no active rejection plan exists.
• Watch → rejection quality meets the minimum threshold but still needs confirmation.
• Ready → rejection quality is strong enough to review risk and confirmation context.
• Confirmed → the active rejection plan confirmed according to the selected confirmation mode.
• Failed → price closed beyond the invalidation rail.
• Target Review → price reached the projected target review rail.
🔔 Alerts Logic
Bullish Rejection Ready triggers when a bullish rejection reaches the configured readiness threshold.
Bearish Rejection Ready triggers when a bearish rejection reaches the configured readiness threshold.
Rejection Confirmed triggers when the active rejection plan confirms according to the selected confirmation mode.
Rejection Failed triggers when the active plan closes beyond its invalidation rail.
Target Review Reached triggers when price reaches the projected target review rail.
Alerts are attention markers, not trade instructions.
🧩 Confluence Logic
The readiness score becomes stronger when wick dominance, close location, local reference pressure, volume response, and directional follow-through align.
No single component is treated as absolute. A visually strong wick can still receive a weaker score if close location, participation, or follow-through are poor.
📊 When to Use
• Price-action review after a visible wick rejection
• Pullback or reaction environments where rejection quality matters
• Breakout failure, continuation delay, or reversal-watch contexts
• Charts where traders need risk and confirmation boundaries, not just a candle marker
⚠️ When NOT to Use
• Extremely low-liquidity symbols
• Very noisy micro timeframes with poor candle quality
• News spikes where wick structure can be unstable
• Markets where volume data is missing or unreliable
🎛️ Key Inputs
• Sensitivity → controls how strict the rejection engine is.
• Reference Lookback → defines the local edge used for context.
• Minimum Readiness Score → filters weak rejection plans.
• Confirmation Mode → controls how strict the confirmation rail behavior must be.
• Invalidation Buffer ATR → places the risk rail beyond normal candle noise.
• Target Review Multiple → projects the target review rail from risk distance.
• Visual settings → control pockets, rails, labels, object count, label size, panel visibility, panel location, theme, and panel font size.
🖥️ Interface & Visual Design
The interface is built around a compact AG Pro panel and a chart-first planning layer.
The pocket, rails, and labels are intentionally direct: they show where the rejection originated, where confirmation is evaluated, where the plan fails, and where review becomes relevant.
The design avoids crowded signal dumping and keeps the chart readable while still providing enough visible labels for publication-quality context.
🧪 Practical Usage Workflow
1. Read the panel to identify the active rejection side and readiness score.
2. Check the rejection pocket to see where the wick response originated.
3. Compare price behavior against the confirmation rail.
4. Use the invalidation rail and target review rail as planning context.
5. Interpret the next-action state instead of treating the label as a command.
🔍 Interpretation Guidelines
A high readiness score means the rejection has stronger structural qualities, not certainty.
A confirmed rejection means price respected the selected confirmation rule, not that future direction is guaranteed.
A failed rejection means the active plan lost its defined risk boundary and should be reviewed as invalidated context.
Target Review means the projected review area was reached and the context should be reassessed.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not auto trading
• Not guaranteed signals
• Not an order-block or rejection-block detector
• Not a generic support/resistance map
⚠️ Limitations & Transparency
Rejection quality can vary across symbols, timeframes, volatility regimes, and volume conditions.
The local reference component is designed for context, not complete market-structure mapping.
The target rail is a review boundary, not a promised destination.
The script is rule-based and reactive. It organizes information after conditions appear on the chart.
🧠 Market Context Notes
Wick rejection can be more meaningful when it appears near a local edge, forms with clear close behavior, and receives follow-through.
It can be weaker when the candle is isolated, the close location is poor, or the market is moving through unstable volatility.
Use the tool as a structured context layer inside a broader trading plan.
🧾 Use Case Examples
When price forms a lower-wick rejection near a recent local low and closes strongly above the body area, the planner may create a bullish readiness state with a visible pocket and confirmation rail.
When price forms an upper-wick rejection near a recent local high but later closes beyond the invalidation rail, the planner marks the setup as failed instead of keeping the rejection narrative active.
🧱 System Philosophy
AGPro tools are designed to turn raw chart events into structured interpretation.
This script follows that philosophy by transforming rejection candles into a readiness workflow: score, state, risk, confirmation, target review, and next action.
🔐 Non-Promise Statement
No script can remove uncertainty from markets.
This tool highlights rule-based rejection context and leaves final interpretation to the user.
📉 Risk Disclosure
Trading involves risk.
This script is for educational and analytical use only.
It does not provide financial advice, investment advice, or guaranteed trading outcomes.
Users are responsible for their own decisions, risk management, and market interpretation.
📚 Educational Note
Use Price Rejection Readiness as a structured reading layer for rejection behavior, not as a standalone decision system.
Indicator

Target Path Quality [AGPro Series]Target Path Quality
🧠 Core Idea
Is the path toward the next practical target reference clean, blocked, or too risky to review?
📌 Overview / What it does
Target Path Quality is a chart-first target path planning tool built to evaluate the route between current price and a practical target reference.
Instead of drawing a target and implying certainty, the script studies the path itself. It maps a forward path corridor, recent structure blockers, target room, invalidation context, a 0-100 Path Quality score, state labels, alerts, and a clean AGPro decision panel.
It does not predict that a target will be reached, automate execution, print buy/sell commands, or replace broader market context. Its purpose is to help traders judge whether the route toward a target is clean enough to deserve attention.
🎯 Purpose & Design Philosophy
This script was built for traders who already have a directional idea but need a cleaner way to evaluate the target path before focusing on execution.
Many tools draw target levels, projection zones, or take-profit ladders. Those visuals can be useful, but they often skip the more important question: what is between current price and the target?
Target Path Quality fills that gap by converting path cleanliness, blockers, risk edge, target room, volatility fit, and reaction history into one readable decision workflow.
⚡ Why This Script Is Different
Most tools focus on where price could go.
This script does NOT promise a target hit, build a take-profit ladder, or behave like a projection suite.
Instead, it asks whether the route toward the target reference is structurally clean, blocked by recent pivots, too close to justify attention, or too exposed to invalidation risk.
⚙️ Methodology
1. Context Detection
The engine identifies the active path side using EMA context or the user-selected directional mode.
2. Reference Mapping
The script maps a practical target reference, an invalidation review rail, and a forward path corridor.
3. Reaction Evaluation
It evaluates structure blockers, target-room distance, risk edge, trend support, volatility fit, and recent directional reaction history.
4. Visual Output
The result is shown through a centered path corridor label, blocker markers, target/invalidation rails, compact event labels, deterministic alerts, and a premium AGPro panel.
🗺️ How to Read the Chart
Path Corridor = the active review route between current price and the practical target reference. Its label is centered inside the corridor.
Blocker Markers = recent confirmed pivots sitting inside the path. These represent possible structural obstacles.
Target Rail = the practical target reference used for path-quality review. It is not a guaranteed destination.
Invalidation Rail = the risk edge behind the active path. It is an analytical reference, not a stop recommendation.
Labels = compact state markers such as PATH READY, WATCH PATH, BLOCKED PATH, TARGET REVIEW, or INVALID REVIEW.
Colors = teal supports cleaner long-side path quality, pink supports short-side or risk context, amber marks blocker/review states, and indigo marks target-reference context.
Panel = summarizes Path Quality, Blockers, Target Room, Risk Edge, and Action.
🚦 Signals & States
• PATH READY → the path quality score is strong, target room is acceptable, and blockers are limited.
• WATCH PATH → the route is improving but does not meet the strongest review conditions.
• BLOCKED PATH → one or more structure blockers reduce route cleanliness.
• TARGET REVIEW → price has reached the active target reference area and context should be reviewed.
• INVALID REVIEW → price crossed the active invalidation rail and the path should be reassessed.
• WAIT → the current route does not provide enough path quality for active review.
🔔 Alerts Logic
Alerts can trigger when the path becomes ready, enters watch mode, becomes blocked, reaches the target reference review area, or crosses the invalidation review rail.
Each alert is an attention marker. Alerts are not trade instructions, entry commands, exit commands, or automated strategy rules.
🧩 Confluence Logic
Path quality improves when target room is practical, blockers are limited, EMA context supports the active side, volatility is neither too quiet nor overheated, and recent candles show directional reaction history.
When these elements align, the route becomes cleaner. When blockers or invalidation risk rise, the route becomes weaker.
📊 When to Use
• When reviewing a directional setup that already has a target idea
• During breakout continuation review
• During pullback continuation planning
• When comparing whether target room is clean or structurally blocked
• When a trader wants target context without a promise-based target tool
⚠️ When NOT to Use
• Extremely low-liquidity symbols
• Very noisy ranges where pivots form too frequently
• News-driven volatility spikes
• Markets where target references are too close to current price
• Situations where broader context contradicts the active path
🎛️ Key Inputs
• Path Side → controls whether the script evaluates Auto, Long Path, or Short Path context.
• Sensitivity → changes pivot strictness and blocker selectivity.
• Target Path Lookback → controls how far back the script searches for target references and blockers.
• Minimum / Ideal / Maximum Target Room ATR → controls how target room affects the score.
• Max Clean Path Blockers → defines how many blockers are tolerated before the path becomes blocked.
• Label and panel settings → control visibility, location, theme, and font sizes.
🖥️ Interface & Visual Design
The panel follows the AGPro public-release standard with one merged blue header row containing only the panel title.
The chart is designed to stay active without becoming crowded. It uses one main path corridor, up to three blocker markers, target and invalidation rails, and controlled state labels.
Label and panel font sizes are adjustable, with Normal as the default.
🧪 Practical Usage Workflow
1. Read the panel Path Quality score.
2. Check whether blockers appear inside the path corridor.
3. Compare target room against the invalidation rail.
4. Review whether the action state says Path review, Track path, Clear blockers, Review target, or Review risk.
5. Confirm the broader market context before making any independent decision.
🔍 Interpretation Guidelines
A clean path does not mean price must reach the target reference.
A blocked path does not mean price cannot continue.
The script is best read as a route-quality filter. It helps organize whether the path is clean, obstructed, risky, or ready for review.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not an auto trading system
• Not guaranteed signals
• Not a take-profit ladder
• Not a promise that price will reach any target
⚠️ Limitations & Transparency
Target path quality can change quickly when volatility expands, pivots update, or price crosses a key reference.
Different timeframes may produce different blocker structures and target-room readings.
Low-liquidity or high-noise markets can create unstable path evaluations.
🧠 Market Context Notes
Target path analysis is strongest when combined with liquidity, structure, volatility, and trend context.
A route can look attractive by distance but still become lower quality when recent pivots block the path or the invalidation rail is too exposed.
🧾 Use Case Examples
When price trends upward and the path to the next swing reference is open, the script may show PATH READY.
When a recent pivot high sits between current price and the target reference, the script may show BLOCKED PATH.
When price reaches the target reference rail, the script may show TARGET REVIEW.
When price crosses the invalidation rail behind the path, the script may show INVALID REVIEW.
🧱 System Philosophy
AGPro Series tools are designed to support structured decision review, not emotional signal chasing.
Target Path Quality follows that philosophy by focusing on route cleanliness, blocker context, risk edge, and next-action state instead of a simple directional signal.
🔐 Non-Promise Statement
No target reference is certain.
No path score guarantees continuation.
No alert should be treated as a trade instruction.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own decisions, position sizing, risk controls, and market interpretation.
This script is for educational and analytical use only and does not provide financial advice.
📚 Educational Note
Use this tool to study how target path quality changes as blockers appear, target room expands or contracts, and invalidation risk shifts.
The strongest value comes from comparing the path corridor, blocker markers, risk rail, and broader market context together.
Indicator

Trend Pullback Risk Planner [AGPro Series]Trend Pullback Risk Planner
🧠 Core Idea
Is the current pullback normal trend digestion, or is it becoming a risk shift that deserves review?
📌 Overview / What it does
Trend Pullback Risk Planner is a chart-first trend risk planner built to evaluate active pullbacks inside an established trend.
The script maps a Pullback Risk Pocket, trend defense line, invalidation reference, target-room guide, compact state labels, alert conditions, and a clean AGPro panel. It converts trend slope, pullback depth, volume dry-up, defense response, and target obstruction into a 0-100 Continuation Score.
It does not predict price movement, automate execution, or print buy/sell commands. Its purpose is to help traders judge whether a pullback is still controlled enough to review, or whether the trend context is starting to lose quality.
🎯 Purpose & Design Philosophy
This script was built for traders who already see a trend but need a cleaner way to evaluate pullback risk.
Many pullback tools focus on marking every retracement as a possible continuation setup. This planner focuses on the decision question behind the setup: is the pullback still being defended, is it getting too deep, does target room remain clean, and what should be reviewed next?
The design supports a risk-first mindset. It helps users read pullback behavior without turning the chart into a crowded signal board or a generic support/resistance map.
⚡ Why This Script Is Different
Most tools focus on identifying pullbacks or continuation signals.
This script does NOT try to clone a low-volume pullback zone, a generic trend continuation score, a Supertrend pullback model, or a broad support/resistance system.
Instead, it treats the pullback as a live risk review. The unique output is the Pullback Risk Pocket: a controlled planning area where depth, defense, volume behavior, target room, and invalidation context are evaluated together before the panel prints the next action state.
⚙️ Methodology
1. Context Detection
The planner identifies trend side using EMA stack structure and normalized trend slope. Users can keep the side automatic or restrict the tool to bullish-only or bearish-only review.
2. Reference Mapping
The script builds a Pullback Risk Pocket between the base trend reference and the defense line. It also maps an invalidation reference and a target-room guide.
3. Reaction Evaluation
The model evaluates pullback depth versus ATR, trend slope, volume dry-up, wick/close response inside the pocket, and distance to the nearest target-side obstruction.
4. Visual Output
The result is shown through a centered risk pocket label, defense/risk/target guide lines, compact event labels, alerts, and an AGPro decision panel.
🗺️ How to Read the Chart
Zones = the Pullback Risk Pocket where an active pullback is reviewed for normal digestion versus risk shift.
Labels = continuation-ready, risk-watch, weak-pullback, risk-shift, follow-through, and sparse pocket-context markers.
Colors = bullish trend context uses AGPro teal, bearish trend context uses AGPro pink, warning states use yellow, and invalidation/risk-shift states use red.
Panel = the panel summarizes Trend Side, Pullback Depth, Risk Pocket status, Continuation Score, target-room context, and Action.
🚦 Signals & States
• TREND ACTIVE → trend context exists, but price has not reached the pullback risk pocket.
• POCKET NEAR → price is approaching the pullback risk pocket and deserves attention.
• HEALTHY PULLBACK → pullback is being reviewed with constructive but not yet high-grade conditions.
• RISK WATCH → pullback depth or response quality is becoming less clean.
• CONTINUATION READY → pullback risk pocket is defending with sufficient score and target-room context for review.
• FOLLOW-THROUGH → price is responding after a defended pullback pocket.
• WEAK PULLBACK → pullback touched the pocket, but score quality is weak.
• RISK SHIFT → price crossed the invalidation reference and the context should be rebuilt.
• NO TREND → trend structure is not aligned enough for the planner.
🔔 Alerts Logic
Alerts trigger when the planner detects a Continuation Ready state, a Risk Watch state, a Risk Shift event, or Follow-Through after a defended pocket.
These alerts are attention markers. They are not trade instructions, not execution commands, and not guaranteed outcomes.
🧩 Confluence Logic
The strongest context appears when trend slope, controlled pullback depth, quiet retracement volume, a constructive defense response, and clean target room align at the same time.
When one or more of these elements weakens, the planner shifts toward POCKET NEAR, RISK WATCH, WEAK PULLBACK, or RISK SHIFT instead of forcing a continuation interpretation.
📊 When to Use
• Trending markets with visible pullback structure
• Continuation review after a clean directional leg
• Situations where pullback depth and defense quality matter
• Trade-planning workflows that need risk, invalidation, and target-room context
⚠️ When NOT to Use
• Flat, low-directional range conditions
• Low-liquidity charts with unreliable wick and volume behavior
• Extreme news volatility where pullbacks can invalidate quickly
• Situations where the user expects an automatic buy/sell system
🎛️ Key Inputs
• Planner Side → controls Auto, Bullish Only, or Bearish Only evaluation.
• Sensitivity → changes how strict the risk pocket and scoring model behave.
• EMA Lengths → define fast trend pressure, base pullback reference, and defense line.
• Pullback Depth Lookback → controls how the script measures retracement depth from the latest trend-side extreme.
• Risk Pocket Width ATR → controls the thickness of the pullback review area.
• Invalidation Buffer ATR → controls the distance of the invalidation reference beyond the defense line.
• Clean Target Room ATR → defines preferred room before target-side obstruction.
• Visual settings → control pocket visibility, guide lines, labels, panel location, theme, and font sizes.
🖥️ Interface & Visual Design
The interface is built around one main object: the Pullback Risk Pocket.
The centered pocket label keeps the active state visible without forcing users to read many separate markers. The guide lines show defense, invalidation, and target-room context. The AGPro panel keeps the decision state compact and readable.
Labels use controlled spacing, cooldown, and maximum-count settings so the chart remains active without becoming crowded.
🧪 Practical Usage Workflow
1. Read the panel Action state.
2. Check Trend Side and Pullback Depth.
3. Review whether price is near, inside, defending, or breaching the Pullback Risk Pocket.
4. Compare the Continuation Score with target-room context.
5. Treat alerts as attention markers and confirm broader market context independently.
🔍 Interpretation Guidelines
A higher Continuation Score means the active pullback is showing stronger alignment between trend slope, controlled depth, volume dry-up, defense response, and remaining target room.
CONTINUATION READY does not mean a trade should be opened. It means the pullback remains structurally constructive under the script's rule set.
RISK WATCH and RISK SHIFT are caution states. They help users slow down when pullback depth, defense response, or invalidation context becomes weaker.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an auto-trading system.
It does not provide guaranteed signals.
It is not a generic support/resistance zone map.
It is not a clone of Low Volume Pullback Zones, Trend Continuation Quality, or Supertrend Pullback Quality.
⚠️ Limitations & Transparency
Timeframe differences can change trend slope, pullback depth, and target-room readings.
Volume behavior can vary across markets and data feeds.
Fast volatility expansion can move price through the pocket before a clean review state appears.
The script is rule-based and should be interpreted as an analytical planning layer, not as certainty.
🧠 Market Context Notes
Pullbacks are not automatically healthy because they occur inside a trend. A clean trend pullback usually needs controlled depth, reduced against-trend pressure, visible defense response, and enough room before the next obstruction.
This planner is designed to keep that review process structured.
🧾 Use Case Examples
When price pulls into the risk pocket with controlled depth, softer relative volume, and a strong close back toward the trend side, the planner may classify the state as CONTINUATION READY.
When price enters the pocket but response quality is weak or depth becomes excessive, the planner may show RISK WATCH.
When price crosses the invalidation reference beyond the defense line, the planner may show RISK SHIFT.
🧱 System Philosophy
Trend Pullback Risk Planner follows the AGPro Series decision-engine approach:
Trend first.
Pullback risk second.
Defense and target room before action.
Attention markers instead of promises.
🔐 Non-Promise Statement
No script can guarantee that a pullback will continue.
No state should be interpreted as certainty.
All outputs should be reviewed within broader market context.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own decisions, risk management, and trade execution.
This script is for educational and analytical purposes only and does not provide financial advice.
📚 Educational Note
The script is designed to help users think in structured pullback-risk terms: trend, depth, defense, target room, invalidation, and review.
Indicator

Volume Rejection Planner [AGPro Series]Volume Rejection Planner
🧠 Core Idea
Did unusual volume appear at rejection in a way that changes the current decision context?
📌 Overview / What it does
Volume Rejection Planner is a chart-first volume reaction tool built to evaluate wick-led rejection events that appear with elevated relative volume near a recent range edge.
The script maps a volume rejection zone, a risk edge, a follow-through trigger, a room guide, compact state labels, and a clean AGPro planning panel. It converts relative volume, wick quality, close location, range-edge context, follow-through progress, and time decay into a 0-100 rejection quality score.
It does not predict price, automate trades, or mark every volume spike as meaningful. Its purpose is to organize the decision window after volume appears at a rejection wick.
🎯 Purpose & Design Philosophy
This script was built for traders who want more context than a raw volume spike or a simple wick marker.
High volume at a wick can mean participation, absorption, rejection, or noise depending on where it appears and what follows next. The planner focuses on that next question: is the rejection being accepted by follow-through, or is the event failing at its risk edge?
The design supports a decision-engine mindset: identify the rejection, measure its quality, locate invalidation, monitor follow-through, and decide whether the context deserves review, patience, or dismissal.
⚡ Why This Script Is Different
Most tools focus on volume spikes, climax candles, or generic wick rejection labels.
This script does NOT clone a Volume Climax Detector, does not become a Rejection Block tool, and does not draw generic support/resistance zones.
Instead, it treats high-volume wick rejection as a short lifecycle: event, test, accepted follow-through, failed risk edge, expired window, or room-guide reach. The main output is not a raw signal; it is a structured planning state.
⚙️ Methodology
1. Context Detection
The script builds a recent range-edge reference and checks whether the rejection wick occurs near the upper or lower edge.
2. Reference Mapping
When a qualified event appears, it maps the rejection zone, risk edge, follow-through trigger, and room guide.
3. Reaction Evaluation
The model scores relative volume, wick ratio, wick size, close location, edge quality, room, follow-through progress, pressure against the event, and time decay.
4. Visual Output
The result is shown through centered zone text, compact event labels, risk/room guides, candle tint, alerts, and a premium AGPro decision panel.
🗺️ How to Read the Chart
Volume Rejection Zone = the wick-led rejection area created by elevated participation at a range edge.
Risk Edge = the invalidation boundary beyond the rejection wick.
Follow-Through Trigger = the distance price must move away from the rejection to show accepted context.
Room Guide = a forward planning reference used to judge whether the reaction has enough space to matter.
Labels = compact BULL VRP / BEAR VRP markers for primary volume rejection events. Optional secondary labels can show monitor, accepted follow-through, expiry, and room-guide reach when the user wants a more detailed chart.
Colors = teal highlights bullish rejection context, pink highlights bearish rejection context, amber highlights watch context, indigo highlights room/guide context, and red highlights invalidation.
Panel = summarizes Rejection Volume, Wick Quality, Follow-Through, Risk Edge, and Action.
The panel focuses on fresh active context only. Older historical zones can remain on the chart without forcing the panel to display stale invalidated events.
🚦 Signals & States
• Volume Rejection Event → elevated relative volume appears with a qualifying wick near a range edge.
• Testing → the event exists, but accepted follow-through is not confirmed yet.
• Monitor → the active score is high enough to keep the context under review.
• Accepted → price has moved away from the rejection wick enough to confirm follow-through context.
• Risk Edge Broken → the event has moved through its invalidation boundary.
• Window Expired → the event did not confirm within the selected follow-through window.
• Room Guide Reached → the accepted context reached its planning guide.
🔔 Alerts Logic
Alerts trigger when a qualified volume rejection event appears, when the active context reaches READY, when the state changes, when the risk edge is broken, or when the room guide is reached.
Alerts are attention markers only. They are not trade instructions, entry commands, exit commands, or automated strategy rules.
🧩 Confluence Logic
The strongest context appears when high relative volume, a clear wick ratio, a strong close back away from the wick, range-edge location, enough room, and quick follow-through align.
If price fails to move away from the rejection wick, presses back into the risk edge, or loses too much time, the planner downgrades the context.
📊 When to Use
• Range-edge reactions
• Wick rejection events with unusually high participation
• Failed pushes into recent highs or lows
• Markets where volume data is readable
• Situations where the next decision depends on whether rejection follows through
⚠️ When NOT to Use
• Very low-liquidity symbols with unreliable volume
• Extremely noisy micro-timeframes
• News spikes where wick behavior may distort quickly
• Markets where volume reporting is fragmented or unavailable
• Situations where the user expects a direct buy/sell signal
🎛️ Key Inputs
• Sensitivity → controls how strict the volume, wick, and edge requirements are.
• Range Edge Lookback → defines the recent high/low context used for rejection location.
• Minimum Rejection Score → controls which events are important enough to draw.
• Confirmation Mode → adjusts how quickly follow-through can be accepted.
• Follow-Through Window → controls how long the event remains active.
• Risk Edge Buffer → adjusts the invalidation boundary beyond the wick.
• Room Guide ATR → controls the planning guide distance.
• Visual settings → control zones, rails, primary labels, secondary labels, failure labels, candle tint, label density, and text size.
• Limit Historical Drawing / Historical Drawing Bars → controls how far back the script creates visual objects, improving load speed on long histories while preserving the current planning view.
• Adaptive HTF Events → slightly relaxes event thresholds on daily and weekly charts so higher timeframes do not look empty while intraday behavior stays stricter.
🖥️ Interface & Visual Design
The interface is designed to stay chart-first.
The rejection zone provides the visual anchor. The risk edge and room guide frame the planning context. Labels stay compact and offset away from candles so the chart remains active without becoming crowded.
The AGPro panel uses a merged blue title row and a compact five-row decision layout.
🧪 Practical Usage Workflow
1. Read the panel action state.
2. Check whether the rejection zone is bullish or bearish.
3. Review the wick quality and relative volume.
4. Compare current price against the follow-through trigger and risk edge.
5. Treat alerts as attention markers, then evaluate broader market context.
🔍 Interpretation Guidelines
Think in terms of event lifecycle, not prediction.
A stronger score means the rejection had better participation, wick structure, location, room, and follow-through behavior. A weaker or decaying score means the event is losing quality under the current rule set.
Accepted follow-through does not mean price must continue. It means the rejection event has met the script's conditions for stronger review context.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not auto trading
• Not guaranteed signals
• Not a generic volume spike marker
• Not a Rejection Block clone
• Not a Volume Climax Detector clone
⚠️ Limitations & Transparency
The script is rule-based and depends on recent price, volatility, wick structure, and volume behavior.
Different timeframes can change how rejection and follow-through appear. Volatility spikes can temporarily distort wick size and edge quality. Symbols with weak or unreliable volume may produce less useful readings.
Outputs should always be interpreted within broader structure, liquidity, volatility, and risk context.
🧠 Market Context Notes
Volume rejection is most useful when the wick appears at a meaningful location and the follow-up reaction is clear.
High volume alone is not enough. Location, close behavior, risk edge, and follow-through all matter.
🧾 Use Case Examples
When price pushes above a recent range edge, prints a strong upper wick with elevated RVOL, and then moves away from that wick, the planner may classify the context as accepted bearish rejection.
When price probes below a recent range edge, prints a strong lower wick with elevated RVOL, but then closes below the risk edge, the planner may classify the event as invalidated.
🧱 System Philosophy
AGPro planning tools are designed to help traders evaluate context before reacting.
This script follows that approach by turning high-volume wick rejection into a structured decision question: is the event valid, strong, risky, accepted, or fading?
🔐 Non-Promise Statement
No indicator can provide certainty.
This tool provides structured visual context and rule-based attention markers. It does not guarantee continuation, reversal, rejection, or follow-through.
📉 Risk Disclosure
Trading involves risk. Market conditions can change quickly, and no script can remove uncertainty.
Users are responsible for their own analysis, risk management, and decisions.
This script is for educational and analytical use only and does not provide financial advice.
📚 Educational Note
Use the planner to study how volume behaves at wick rejection points, how quickly follow-through appears after rejection, and how risk edges help separate valid context from failed reaction events.
Indicator

Retest Defense Planner [AGPro Series]Retest Defense Planner
🧠 Core Idea
Is a retested level still being defended strongly enough to keep the planning context alive?
📌 Overview / What it does
Retest Defense Planner is a chart-first decision tool built for traders who review how price behaves after returning to an active defense shelf.
Instead of treating every level touch as meaningful, the script evaluates whether the shelf is actually being protected. It measures retest depth, wick defense, close response, time at level, volume support, target room, and risk-edge distance, then converts that evidence into a 0-100 Retest Score and a clear next-action state.
The default view is tuned for clear 4H-style retest review, where shelf defense, reaction quality, and short-term follow-through are usually easier to read than on very compressed timeframes. The script still works across timeframes, but users should adjust shelf age, projection bars, and sensitivity when changing market rhythm.
The script produces a defense zone, active defense rail, risk edge, target-room guide, follow-through guide, compact chart labels, alerts, and a clean AGPro planning panel. It does not predict price movement, automate execution, or provide guaranteed outcomes.
🎯 Purpose & Design Philosophy
This script was built to fill the gap between simple level plotting and full structure scanners.
Many traders can identify that price has returned to a level, but the harder question is whether the level is still being defended cleanly enough to deserve attention. Retest Defense Planner focuses on that decision layer.
The design supports a planning mindset: read the defense state, check the score, locate the risk edge, compare target room, and decide what deserves review next.
⚡ Why This Script Is Different
Most retest tools focus on structure breaks, swing-leg pullbacks, support/resistance maps, or broad breakout retest signals.
This script does NOT clone Structure Retest Planner, Swing Retest Quality, Breakout Retest Readiness, Break-Retest Quality, Breaker Block Engine, or a generic S/R zone map.
Instead, it evaluates one active defense shelf and asks whether the shelf is surviving the retest. The main output is not a signal. It is a decision state: DEFENDED, WATCH, WEAK RETEST, APPROACH, DEFENSE LOST, WAIT, or SCAN.
⚙️ Methodology
1. Context Detection
The script identifies fresh support-side or resistance-side defense shelves using confirmed pivot behavior and optional automatic side selection.
2. Reference Mapping
It maps one active defense zone, a shelf rail, a risk edge, and a target-room guide. These are planning references, not trade instructions.
3. Reaction Evaluation
The 0-100 model scores retest depth, wick defense, close response, time at level, and volume support.
4. Visual Output
The chart shows the active defense zone with centered text, event labels, guide lines, and the AGPro decision panel.
🗺️ How to Read the Chart
Defense Zone = the active shelf area being evaluated after price returns to it.
Defense Rail = the exact reference shelf the model is monitoring.
Risk Edge = the planning line where the active defense context is considered lost.
Target-Room Guide = a forward context guide based on the current shelf-to-risk distance.
Labels = compact TEST, DEFENDED, WATCH, WEAK, LOST, and context labels.
Colors = teal marks bullish support-defense context, pink marks bearish resistance-defense context, amber marks caution/review, indigo marks watch/transition, and red marks lost defense.
Panel = the AGPro panel summarizes Defense State, Retest Score, Reaction Quality, Risk Edge, and Action.
🚦 Signals & States
• DEFENDED → the shelf has been retested and the defense score is strong enough for structured review.
• WATCH → the response is developing, but confirmation or room is still incomplete.
• WEAK RETEST → price touched the shelf, but response quality is not strong enough.
• APPROACH → price is near the active defense shelf and a retest review may be forming.
• DEFENSE LOST → price crossed the risk edge and the active shelf context should be rebuilt.
• WAIT → an active shelf exists, but price is not close enough for a useful review.
• SCAN → no fresh defense shelf is active yet.
🔔 Alerts Logic
Alerts trigger when price touches the active defense zone, when a defended retest appears, when watch context appears, when a weak retest is detected, and when the risk edge is crossed.
Alerts are attention markers only. They are not trade instructions, automated strategy commands, or outcome promises.
🧩 Confluence Logic
The strongest context appears when a controlled retest probe, visible wick defense, constructive close response, enough hold time, supportive relative volume, and usable target room align.
When those components conflict, the panel moves toward WATCH, WEAK RETEST, RISK REVIEW, or DEFENSE LOST.
📊 When to Use
• Pullbacks into a defended support shelf
• Retests of a resistance shelf after bearish pressure
• 4H retest reviews where shelf defense and reaction candles are visually readable
• Continuation planning where the level has already been identified by price action
• Risk planning where invalidation and target room matter
• Liquid markets where candles, pivots, and volume behavior are readable
⚠️ When NOT to Use
• Very low-liquidity symbols with irregular candles
• Extremely noisy micro-timeframes
• News-driven spikes where shelf behavior becomes distorted
• Markets where pivot structure is too compressed to form useful shelves
• Situations where the user expects a signal-only tool
🎛️ Key Inputs
• Defense Side → selects Auto, Bullish Defense, or Bearish Defense.
• Defense Pivot Length → controls how confirmed shelves are detected.
• Max Shelf Age → controls how long a shelf remains eligible.
• Sensitivity → adjusts activation distance and zone tolerance.
• Response Window Bars → controls how long the retest response remains active.
• Risk Edge ATR → controls the planning risk edge behind the shelf.
• DEFENDED Score → sets the score threshold for stronger review states.
• Label and Panel Font Size → controls chart-label and panel readability.
• Panel Location and Theme → adjusts the AGPro panel layout.
🖥️ Interface & Visual Design
The interface is designed to stay chart-first and decision-led.
The defense zone is the main visual object. The centered label keeps the zone readable without adding extra floating text. The risk edge and target guide explain where the planning context weakens and how much room remains.
The AGPro panel uses a merged blue title row and five compact rows so the user can read state, score, reaction quality, risk, and next action quickly.
🧪 Practical Usage Workflow
1. Read the panel state and Retest Score.
2. Check whether price is approaching or touching the defense zone.
3. Compare the shelf rail with the risk edge.
4. Review whether the label says TEST, DEFENDED, WATCH, WEAK, or LOST.
5. Confirm the broader market context before making any decision.
🔍 Interpretation Guidelines
Think in terms of defense quality, not prediction.
A higher score means multiple defense components align inside the script's rule set. A weaker score means the retest may be too shallow, too deep, too fast, too noisy, or missing a constructive close response.
The script helps organize the review process. It does not replace judgment.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not an auto-trading system
• Not a guaranteed signal tool
• Not a BOS / CHOCH scanner
• Not a breakout retest scanner
• Not a swing-leg retest tool
• Not an order block, FVG, or supply/demand map
• Not a generic support/resistance zone map
⚠️ Limitations & Transparency
• Pivot-based shelf references appear only after pivots are confirmed.
• Scores can vary across symbols, sessions, and timeframes.
• Volume scoring depends on exchange-provided volume data.
• Fast volatility can cross a shelf before a clean defense can be measured.
• In Live Updating mode, active-bar values can change before the bar closes.
🧠 Market Context Notes
Retest defense is easiest to interpret when liquidity, volatility, and trend context are readable.
A defended shelf is not enough by itself. The reaction, close location, hold time, risk edge, and target room all matter.
🧾 Use Case Examples
When price returns to a support shelf, probes the defense zone, forms a visible lower wick, and closes back above the shelf with enough target room, the planner may mark DEFENDED.
When price touches the shelf but closes weakly with poor reaction quality, the planner may show WEAK RETEST or WATCH.
When price crosses the risk edge, DEFENSE LOST indicates that the active context should be rebuilt.
🧱 System Philosophy
Retest Defense Planner follows the AGPro decision-engine approach: map the context, score the quality, show the risk reference, show the target room, and summarize the next action without issuing trade commands.
🔐 Non-Promise Statement
No indicator can provide certainty.
The script does not guarantee that a retest will hold, continue, reverse, or produce any specific outcome.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own analysis, risk management, and trading decisions.
This script is provided for educational and analytical purposes only and does not constitute financial advice.
📚 Educational Note
Use the script as a structured retest-defense review framework. The best results come from combining the panel, zones, labels, and alerts with broader chart context and disciplined risk evaluation.
Indicator

Stop Run Continuation Planner [AGPro Series]Stop Run Continuation Planner
🧠 Core Idea
Did the stop run fuel continuation instead of reversal?
📌 Overview / What it does
Stop Run Continuation Planner is a chart-first liquidity continuation tool built around a specific post-sweep question: after price runs stops beyond a recent high or low, is the market reclaiming back inside for reversal, or accepting beyond the swept edge for continuation?
The script maps stop-run zones, continuation references, invalidation edges, target corridors, compact state labels, alerts, a 0-100 Continuation Score, and a Reversal Risk reading. It is designed to organize observable stop-run behavior into a structured planning workflow.
It does not predict future price, automate execution, or issue buy and sell commands. It is an analytical and visualization tool built for structured review.
🎯 Purpose & Design Philosophy
This script was built for the cases where a stop run does not turn into a reversal. Many liquidity tools focus on the sweep itself. This script focuses on what happens after the sweep.
The design supports a planner mindset: identify the stop run, measure continuation acceptance, locate invalidation, estimate target room, judge reversal risk, and decide what deserves attention next.
⚡ Why This Script Is Different
Most stop-run tools focus on reversal reclaim behavior, generic liquidity grabs, or broad SMC-style mapping.
This script does NOT treat every sweep as a reversal event.
Instead, it evaluates whether price is accepting beyond the swept edge with enough quality, target room, and controlled reversal risk to justify a continuation review.
⚙ Methodology
1. Context Detection
Recent high and low references are defined with a configurable lookback.
2. Reference Mapping
When price sweeps beyond a reference, the script maps the swept edge, continuation side, invalidation edge, and forward target corridor.
3. Reaction Evaluation
Continuation Score blends sweep depth, close acceptance, volume participation, trend-side support, and target room. Reversal Risk tracks rejection, weak acceptance, and context conflict.
4. Visual Output
Qualified states produce stop-run boxes, target corridors, compact labels, alerts, and a clean AG Pro panel.
🗺 How to Read the Chart
Zones = the active stop-run area between the swept reference and the sweep extreme.
Corridors = the forward review area used for target room assessment.
Labels = watch or continuation state markers.
Colors = teal for bullish continuation context, pink for bearish continuation context, and red for invalidation pressure.
Panel = Stop Run, Continuation Score, Reversal Risk, Target Room, and Action.
🚦 Signals & States
• Upper Run Watch → price swept a recent high, but continuation acceptance still needs confirmation.
• Lower Run Watch → price swept a recent low, but continuation acceptance still needs confirmation.
• Bull Continuation Ready → bullish post-sweep continuation quality is strong enough for review.
• Bear Continuation Ready → bearish post-sweep continuation quality is strong enough for review.
• Invalidation Review → price has moved through the active invalidation edge.
• Target Review → price is testing the active target corridor.
• Reversal Risk Elevated → rejection risk is growing and continuation quality is weakening.
🔔 Alerts Logic
Alerts trigger when bullish or bearish continuation reaches ready state, when a watch condition appears, when invalidation review is triggered, when price tests the target corridor, or when reversal risk becomes elevated.
Important: alerts are attention markers, not trade instructions.
🧩 Confluence Logic
When sweep depth, close acceptance, volume participation, trend support, and clean target room align, the continuation context becomes stronger.
When price closes back inside the swept edge or rejection grows, Reversal Risk rises and the continuation plan weakens.
📊 When to Use
• After price runs above recent highs or below recent lows
• During breakout continuation attempts after a liquidity sweep
• In trending or expanding markets
• When traders need risk, target, and next-action context after a fast sweep event
⚠️ When NOT to Use
• Extremely low-liquidity markets
• Very noisy micro-timeframes
• News-driven candles with abnormal spread or slippage
• Markets where volume data is unreliable
• Situations where the user expects automated entries or guaranteed outcomes
🎛️ Key Inputs
• Continuation Side → evaluates bullish events, bearish events, or both
• Sensitivity → changes how strict the continuation requirements are
• Stop-Run Reference Lookback → defines the sweep reference levels
• Confirmation Mode → changes how much confirmation is required
• Minimum Continuation Score → sets the ready threshold
• Watch Score → controls earlier watch-state visibility
• Invalidation Edge Buffer → adjusts the wrong-side planning edge
• Target Corridor R Multiple → controls target-corridor projection
• Visual settings → control zones, labels, font size, panel location, and render limits
🖥️ Interface & Visual Design
The script is chart-first and decision-focused. The chart carries the zones, corridors, and labels. The panel provides a compact state summary without turning the script into a crowded dashboard.
The first panel row follows the AGPro standard: one merged blue header row containing only the script name.
🧪 Practical Usage Workflow
1. Read the panel state and Continuation Score.
2. Check whether price swept above a recent high or below a recent low.
3. Review whether price is accepting beyond the swept edge.
4. Compare Reversal Risk with the invalidation edge.
5. Review target room before treating continuation as stronger context.
🔍 Interpretation Guidelines
A high Continuation Score means the stop run is showing stronger continuation behavior under the script rules. It does not mean continuation must happen.
The invalidation edge and target corridor are planning references, not guaranteed levels.
The best use is to compare the planner state with broader market structure, liquidity, volatility, and personal risk process.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not auto trading
• Not guaranteed signals
• Not a generic support/resistance map
• Not an order-block or FVG scanner
• Not a stop-run reversal tool
⚠️ Limitations & Transparency
Stop-run behavior changes across symbols, sessions, and timeframes.
High volatility can widen risk and target references.
Low liquidity can distort sweep quality, volume response, and label timing.
No rule-based script can fully account for news, spread changes, slippage, or sudden liquidity shifts.
🧠 Market Context Notes
Stop runs often happen near visible highs, lows, session extremes, or recent structure.
A sweep becomes more useful for continuation planning when the market accepts beyond the swept edge instead of reclaiming back inside.
🧾 Use Case Examples
When price sweeps above a recent high, closes beyond the swept edge, and the Continuation Score improves, the planner may show bullish continuation readiness.
When price sweeps below a recent low and continues accepting below that edge, the planner may show bearish continuation readiness.
When price sweeps but closes back inside with stronger rejection, Reversal Risk can rise and the panel may shift to caution.
🧱 System Philosophy
AGProLabs tools are built around structured interpretation. The goal is not to add another raw signal. The goal is to turn market behavior into a cleaner review process with score, state, risk, target, and next action.
🔐 Non-Promise Statement
No indicator can remove uncertainty.
No score can guarantee continuation.
No zone, label, panel row, alert, or corridor should be interpreted as a guaranteed outcome.
📉 Risk Disclosure
Trading involves risk.
This script is provided for educational and analytical use only.
It does not provide financial advice or guaranteed trading outcomes.
Users remain responsible for their own analysis, risk management, and execution.
Indicator

Opening Pullback Planner [AGPro Series]Opening Pullback Planner
🧠 Core Idea
Is the first pullback after the open constructive, failing, or too stale to plan around?
📌 Overview / What it does
Opening Pullback Planner is a session pullback decision tool built around the first meaningful retracement after the opening drive. Instead of treating the open as only a breakout moment, it waits for the drive reference to lock, then maps the pullback area where continuation quality can be evaluated.
The script produces an opening pullback box, continuation trigger, failure line, target-room guide, 0-100 continuation score, risk-edge reading, compact event labels, alerts, and a clean AG Pro planning panel.
It does not predict price direction, automate trades, or mark every opening range breakout. Its purpose is to organize the pullback phase after the opening drive so traders can judge whether the first reset is constructive, failing, invalidated, or no longer worth attention.
🎯 Purpose & Design Philosophy
Many session tools focus on the first opening break, the opening range, or the first impulse. The problem is that a strong open often becomes difficult to plan only after price pulls back.
Opening Pullback Planner was built to fill that gap. It helps traders who study intraday continuation, first-pullback behavior, session execution, and risk-defined planning after the initial move.
The design philosophy is simple: lock the opening drive, map the first pullback box, evaluate recovery quality, define the failure line, and keep the next action readable without turning the chart into a crowded signal board.
⚡ Why This Script Is Different
Most tools focus on opening range breakouts, first-drive strength, fixed session boxes, or generic pullback signals.
This script does NOT clone Opening Drive Quality, does NOT act as an ORB breakout tool, and does NOT draw generic support/resistance zones.
Instead, it focuses on the first pullback after the opening drive. It asks whether the pullback is deep enough to matter, shallow enough to preserve structure, recovering with acceptable close quality, holding a measurable failure line, and offering enough target room for continued review.
⚙️ Methodology
1. Context Detection
The script builds an opening reference from either a fixed session window or the first bars of the day. This creates the drive structure that the pullback plan will use.
2. Reference Mapping
After the opening reference locks, the script maps a drive-native pullback box, continuation trigger, failure line, and target-room guide.
3. Reaction Evaluation
The engine evaluates pullback depth, close recovery, relative volume, volatility fit, room-to-risk, and drive quality to create a 0-100 continuation score.
4. Visual Output
The chart shows the pullback box with centered text, continuation and failure references, target-room guide, compact event labels, optional markers, and the AG Pro panel.
🗺️ How to Read the Chart
Opening Pullback Box = the first pullback review area derived from the locked opening drive.
Continuation Trigger = the level price must reclaim or break after the pullback for continuation context to strengthen.
Failure Line = the invalidation reference where the active pullback plan loses structural integrity.
Target Guide = a projected target-room reference based on the opening drive range.
Labels = event markers for drive retain, pullback test, constructive recovery, trigger readiness, pullback risk, failure line, stale plan, and target check.
Colors = teal for bullish continuation context, pink for bearish or invalid context, amber for caution, and indigo for structural emphasis.
Panel = the decision layer showing Pullback State, Drive Side, Continuation Score, Risk Edge, and Action.
🚦 Signals & States
• DRIVE RETAIN → the opening drive quality is strong enough to map a pullback plan.
• PULLBACK TEST → price has entered the opening pullback box.
• CONSTRUCTIVE → pullback depth and recovery quality are acceptable inside the model.
• TRIGGER READY → price has moved through the continuation trigger after a valid pullback.
• PULLBACK RISK → the pullback is becoming too deep, slow, or weak for clean continuation review.
• FAILURE LINE → the active pullback plan has lost structural integrity.
• PULLBACK STALE → the first pullback plan did not resolve inside the review window.
• TARGET CHECK → price reached the projected target-room guide.
🔔 Alerts Logic
The script includes alerts for:
• Opening Pullback Plan Armed → a qualified opening drive mapped the first pullback plan.
• Opening Pullback Test → price is testing the pullback box.
• Constructive Opening Pullback → the pullback is recovering constructively.
• Opening Pullback Continuation Trigger → the continuation trigger is active after the pullback.
• Opening Pullback Failure Line Broken → the plan has broken its failure reference.
• Opening Pullback Plan Expired → the first pullback plan became stale before confirmation.
• Opening Pullback Target Check → price reached the target-room guide.
Alerts are attention markers. They are not trade instructions.
🧩 Confluence Logic
The context becomes stronger when the opening drive has acceptable quality, the first pullback reaches the planned box without violating the failure line, recovery closes improve, volume does not collapse during recovery, and target room remains clean.
The context becomes weaker when the pullback is too deep, recovery is poor, the plan takes too long to resolve, or price violates the failure line.
📊 When to Use
• Intraday session planning after the opening move.
• First-pullback continuation review.
• Daily chart review when the higher-timeframe fallback is enabled.
• Markets where the opening drive often creates a useful early reference.
• Stocks, indices, futures, crypto, or FX charts where the selected opening session is meaningful.
• Review workflows where risk edge and target room need to be visible.
⚠️ When NOT to Use
• Very low-liquidity markets.
• Extremely noisy opens with unstable spreads.
• News-driven bars that distort the opening reference.
• Higher timeframes where session pullback structure is not meaningful.
• Markets where the selected opening window does not represent real participation.
🎛️ Key Inputs
• Opening Reference Mode → chooses between a fixed session window and first bars of day.
• Opening Drive Window → defines the drive reference used before pullback mapping begins.
• Higher Timeframe Fallback → keeps daily, weekly, and monthly charts visually useful by mapping broader opening references.
• Sensitivity → adjusts how strict the planner is with pullback recovery and score requirements.
• Constructive Score Threshold → controls when constructive pullback labels can appear.
• Pullback Box Shallow / Ideal / Deep → define the preferred retracement area.
• Continuation Trigger Buffer ATR → adjusts the trigger line beyond the drive extreme.
• Failure Line Buffer ATR → adjusts the invalidation reference beyond the pullback box.
• Target Guide Range Multiple → controls the projected target-room guide.
• Visual settings → control box, lines, labels, markers, projection, label limits, and font size.
• Panel settings → control panel visibility, location, theme, and font size.
🖥️ Interface & Visual Design
The interface is chart-first and decision-focused. The main visual object is one opening pullback box with centered state text, supported by a continuation trigger, failure line, and target guide.
The panel follows the AGPro public-release standard with one merged blue header row containing only the script name. The five panel rows are Pullback State, Drive Side, Continuation Score, Risk Edge, and Action.
Labels are compact, capped, and offset away from candles so the chart stays active without becoming crowded.
🧪 Practical Usage Workflow
1. Let the opening reference lock.
2. Read the panel to see whether the drive retained enough quality.
3. Watch whether price tests the opening pullback box.
4. Evaluate the continuation score, recovery state, risk edge, and failure line.
5. Treat alerts and labels as review prompts, not instructions.
🔍 Interpretation Guidelines
A strong continuation score means the pullback is controlled, recovering cleanly, preserving the failure line, and keeping useful room to the projected target guide.
A constructive label means the first pullback is behaving better inside the model. It does not mean continuation must occur.
A failure-line label means the plan has lost the structure it needed for this specific pullback framework.
The best use comes from combining the panel state with broader market context, liquidity, volatility, higher-timeframe structure, and personal risk rules.
🚫 What This Script Is NOT
• Not a prediction engine.
• Not financial advice.
• Not auto trading.
• Not guaranteed signals.
• Not a generic support/resistance map.
• Not an order block or FVG scanner.
• Not an Opening Drive Quality clone.
• Not a full opening range breakout system.
⚠️ Limitations & Transparency
Timeframe selection affects the opening reference and the pullback box. A 5-minute chart and a 15-minute chart can produce different plans.
Session definitions matter. The selected opening window should match the asset and market being studied.
Higher-timeframe fallback mode is a broader chart-reference layer. It should be read as a weekly, monthly, or yearly opening-pullback framework rather than a literal intraday open.
Volatility changes can expand or compress risk, target, and pullback behavior.
Low liquidity, abnormal spreads, and high-impact news can reduce the usefulness of any opening pullback model.
🧠 Market Context Notes
The first pullback after the open can be useful because it tests whether the opening move still has sponsorship. A shallow pullback may show strength but offer limited risk clarity. A deep pullback may offer a better reset but also higher failure risk.
This script keeps that decision visible by separating drive retention, pullback quality, continuation trigger, failure line, and target room.
🧾 Use Case Examples
When price locks a bullish opening drive, pulls back into the mapped box, holds above the failure line, and recovers toward the continuation trigger, the panel may shift toward a constructive or ready state.
When price enters the pullback box but keeps closing weakly or pushes beyond the deep boundary, the planner may mark pullback risk.
When price breaks the failure line, the opening pullback plan is no longer structurally intact inside this model.
🧱 System Philosophy
Opening Pullback Planner follows the AGPro Series decision-engine approach: a script should help the trader evaluate validity, strength, risk, target room, and next action instead of only printing another signal.
The tool is built to make one session behavior easier to read: the first pullback after the opening drive.
🔐 Non-Promise Statement
No script can provide certainty.
No opening pullback model can guarantee continuation, reversal, or profitability.
This script provides structured context only.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own decisions.
This script does not provide financial advice, investment advice, or guaranteed trading outcomes.
📚 Educational Note
Use this script as an educational planning and visualization tool. The strongest use comes from reading the first opening pullback together with broader market structure, liquidity, volatility, and personal risk rules.
Indicator

Failed Pullback Reversal Planner [AGPro Series]Failed Pullback Reversal Planner
🧠 Core Idea
Did the pullback fail to recover, and is it now creating a reversal-warning context?
📌 Overview / What it does
Failed Pullback Reversal Planner is a chart-first reversal risk planner built for one specific situation: a pullback inside an existing trend stops behaving like a healthy retracement and begins losing control.
The script maps a failed pullback pocket, control-loss rail, invalidation reference, target-room guide, compact state labels, alerts, and a clean AG Pro panel. It converts pullback depth, failed recovery, close behavior, volume response, and follow-through into a 0-100 Failure Score.
It does not predict future price movement, automate entries, or issue guaranteed buy/sell signals. Its role is to organize failed-pullback context into a clearer decision framework.
🎯 Purpose & Design Philosophy
This script was built because many pullback tools only focus on continuation quality. They often ask whether the pullback is healthy enough to resume the original trend.
Failed Pullback Reversal Planner focuses on the opposite decision layer. It asks whether the pullback failed to recover, lost the control reference, and now deserves reversal-risk review.
The design supports traders who want cleaner structure, risk location, target-room context, and next-action guidance without turning every candle into a signal.
⚡ Why This Script Is Different
Most tools focus on pullback continuation, moving-average bounces, or generic reversal markers.
This script does NOT clone Pullback Acceptance Planner, Low Volume Pullback Zones, Trend Continuation Quality, or a generic reversal signal indicator.
Instead, it treats failed pullbacks as a planning problem. Price must first enter a pullback context, then fail recovery around a control rail, then show enough close quality, volume response, and follow-through to raise reversal-risk state.
⚙️ Methodology
1. Context Detection
The script identifies former bullish or bearish trend context using fast, base, and slow EMA alignment.
2. Reference Mapping
It builds a failed pullback pocket, control-loss rail, invalidation reference, and target-room guide using ATR-normalized logic.
3. Reaction Evaluation
It scores pullback depth, failed recovery, close against the former trend, volume response, and nearby follow-through.
4. Visual Output
It displays concept-native zones, centered zone labels, compact event labels, guide rails, alerts, and a premium AG Pro planning panel.
🗺️ How to Read the Chart
Zones = the failed pullback pocket and reversal-risk zone.
Labels = pullback test, control-loss, reversal-risk, or reset markers.
Colors = teal shows bullish reversal-risk context, pink shows bearish reversal-risk context, amber shows watch context, red shows control-loss or risk context, and indigo shows reset/recovery context.
Panel = a compact decision dashboard showing Pullback State, Failure Score, Reversal Risk, Invalidation, and Action.
🚦 Signals & States
• PB TEST → a recent pullback is being monitored for failed-recovery behavior.
• CTRL LOST → price has lost the control reference but has not fully qualified the warning state.
• REV RISK → failed pullback context has enough score to deserve reversal-risk review.
• RESET → optional marker showing that price reclaimed the invalidation reference and the failed-pullback plan should be reset.
• NO SETUP → no active failed-pullback context is present.
🔔 Alerts Logic
Alerts trigger when the planner detects a monitored failed-pullback setup, a reversal-risk warning, invalidation/reset behavior, or meaningful follow-through after control loss.
Alerts are attention markers only. They are not trade instructions.
🧩 Confluence Logic
The strongest failed-pullback context appears when pullback depth is meaningful, price loses the control rail, the candle closes against the former trend, volume supports the shift, and follow-through begins beyond nearby structure.
When these components align, the Failure Score rises and the panel moves from watch context toward reversal-risk review.
📊 When to Use
• Trend pullbacks that start losing recovery quality
• Potential reversal transitions after a failed retracement
• Markets where a prior trend is weakening around a control reference
• Situations where invalidation and target-room context matter
⚠️ When NOT to Use
• Very low liquidity markets
• Extremely noisy sideways conditions
• News-driven volatility spikes
• Markets with no clean prior trend context
• Symbols where volume behavior is unreliable
🎛️ Key Inputs
• Sensitivity → controls how strict the failed-pullback model is.
• Former Trend Side → restricts evaluation to bullish-trend or bearish-trend failures when needed.
• Failure Window Bars → defines how long after a pullback touch control-loss behavior can qualify.
• Control-Loss Buffer ATR → adjusts the rail used to mark failed recovery.
• Invalidation Buffer ATR → controls the reset reference beyond the fast trend anchor.
• Label and Panel Settings → control panel location, theme, font size, label size, label spacing, and visible label count.
🖥️ Interface & Visual Design
The interface is built around a clean AG Pro decision panel and chart-first planning visuals.
The first panel row uses the AG Pro merged blue header standard with only the script name. The remaining rows focus on the active decision: pullback state, failure score, reversal risk, invalidation, and action.
The chart uses a focused failed pullback pocket, a reversal-risk zone, guide rails, and compact labels. The goal is a premium planning view without crowded generic signals.
🧪 Practical Usage Workflow
1. Read the panel state.
2. Check whether a pullback test is active.
3. Watch whether price loses the control rail.
4. Review the Failure Score and reversal-risk label.
5. Compare the invalidation reference and target-room guide before interpreting the context.
🔍 Interpretation Guidelines
Think in terms of failed recovery quality, not prediction.
A higher Failure Score means the current pullback has stronger failed-recovery characteristics across depth, control loss, close behavior, volume, and follow-through.
A control-loss state means the setup is weakening but may still need more confirmation.
A reset state means the failed-pullback idea has been reclaimed and should be reassessed.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not auto trading
• Not guaranteed signals
• Not a generic pullback continuation indicator
⚠️ Limitations & Transparency
• Timeframe differences can change how pullback depth and failure windows appear.
• High volatility can distort ATR-normalized rails.
• Low-volume instruments may reduce the reliability of the volume component.
• Sideways markets can create repeated failed-pullback noise.
• Outputs should be interpreted with broader market structure.
🧠 Market Context Notes
Failed pullbacks often matter when a market was expected to recover in the direction of the prior trend but instead loses the control reference.
The script does not assume that every failed recovery becomes a full reversal. It simply marks when the context is strong enough to deserve review.
🧾 Use Case Examples
When a bullish trend pulls back toward the fast/base EMA area, fails to recover, and closes below the control rail with stronger participation, the planner may raise bearish reversal-risk context.
When a bearish trend pulls back upward, fails to reject lower, and closes above the control rail with follow-through, the planner may raise bullish reversal-risk context.
🧱 System Philosophy
The script is built around decision quality. It does not try to add another signal layer. It asks whether a specific market behavior is valid, how strong it is, where it is invalidated, and what should be reviewed next.
🔐 Non-Promise Statement
No guarantees.
No certainty.
The script organizes observable market behavior into a structured analytical view.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own analysis, risk management, and decisions.
This script does not provide financial advice or guaranteed trading outcomes.
📚 Educational Note
Use the planner as an educational framework for studying failed pullbacks, recovery quality, control loss, and reversal-risk context.
Indicator
