Pine Script® indicator
Indicators and strategies
ATC OBV Trend DivergenceWhat It Is
The ATC OBV Trend Divergence indicator is a structurally engineered version of On-Balance Volume — one of the oldest and most misunderstood volume tools in technical analysis. Where the standard retail OBV is a raw cumulative line that traders attempt to manually draw trend lines on (a subjective and unreliable process), ATC's version replaces that guesswork with a fully objective, pivot-based structural analysis engine.
The result is an OBV indicator that tells you, with no manual interpretation required, whether volume flow is building in a bullish structure, breaking down in a bearish one, expanding out of a range, or contracting into one — and it flags only the highest-quality divergences between volume flow and price, confirmed by strict multi-condition logic before a signal ever appears on your chart.
________________________________________
Who It's Built For
This indicator is designed for traders who understand that price alone doesn't tell the full story. If you've ever used a standard OBV and found yourself staring at a messy cumulative line with no clear way to interpret it — this is what OBV should have been from the start.
It works best for:
• Swing traders and intraday traders who want volume-flow confirmation before entering trend trades
• Traders who use divergence as part of a reversal or exhaustion framework and need a tool they can actually trust
• Anyone learning to think beyond price and understand what smart money participation looks like beneath the surface
Recommended instruments: ES, NQ, YM, SPY, QQQ, large-cap equities, major forex pairs Recommended timeframes: 15-minute, 1-hour, 4-hour, daily
________________________________________
The Core Concept
On-Balance Volume works on a simple principle: when price closes up, the entire bar's volume is added to a running total; when price closes down, that volume is subtracted. Over time, this creates a directional volume-flow line that should trend in the same direction as price if buying and selling pressure are in agreement.
The problem with standard OBV is threefold. First, the raw line is extremely noisy. Second, there's no objective way to define trend structure on it without drawing trend lines manually — which are subjective, brittle, and inconsistent from trader to trader. Third, most retail divergence tools flag anything that remotely resembles a divergence pattern, flooding the chart with signals that don't hold up.
The ATC OBV Trend Divergence solves all three.
________________________________________
ATC OBV Enhancements
1. HMA Smoothing Raw OBV is passed through a Hull Moving Average before any calculations are performed. HMA is ATC's standard smoothing method because it reduces noise significantly without introducing the lag bias that plagues SMA or EMA smoothing. The result is a cleaner OBV line that tracks true directional flow without reacting to bar-to-bar noise.
2. Pivot-Based Structure State Engine Instead of asking you to draw trend lines on OBV, the indicator does it objectively. It detects confirmed swing highs and lows on the smoothed OBV using a configurable left/right pivot lookback, then classifies the current volume flow structure into one of eight states:
• Uptrend (HH/HL) — volume flow is making higher highs and higher lows: the cleanest bullish structure
• Downtrend (LH/LL) — volume flow is making lower highs and lower lows: confirmed bearish structure
• Higher High / Lower High — partial structure information as the trend develops
• Higher Low / Lower Low — partial low-side structure
• Expanding — volume flow is making higher highs and lower lows simultaneously: a widening, volatile structure
• Contracting — volume flow is making lower highs and higher lows: compression, often preceding a breakout
• Forming — not enough pivot history yet to classify
This replaces subjective trend line drawing with a discrete, reproducible, rules-based classification you can read at a glance from the HUD.
3. Z-Score Normalized Slope Bias The indicator measures the rate of change in OBV slope over a configurable lookback, then normalizes that slope reading against its own rolling distribution using a Z-score calculation. This means the slope bias (Bullish / Neutral / Bearish) is not based on a fixed threshold — it adapts to the current instrument's behavior over time. When OBV momentum is statistically elevated above its own recent norm, slope bias reads Bullish. When it's statistically suppressed, it reads Bearish. Everything in between is Neutral. No hardcoded levels, no round numbers.
4. Conservative, Pivot-Confirmed Divergence Detection The divergence engine is the indicator's most technically demanding component, and it was built to be strict by design. A divergence signal is only issued when all of the following conditions are met simultaneously:
• Price and OBV each have two confirmed structural pivots of the same type (two highs for bearish divergence, two lows for bullish)
• The price pivots are separated by a minimum number of bars (configurable, default 10) to prevent noise on adjacent swings
• The price pivots are not too far apart (configurable, default 80 bars) to prevent flagging stale patterns
• The price pivot and OBV pivot are temporally close to each other — they're measuring the same swing
• Optionally, the slope bias must not be contradicting the divergence direction (the "Same-Side Slope" filter)
The result is that divergence signals are rare, which is exactly what you want. When the indicator prints a divergence, it means something.
________________________________________
Reading the Chart
The OBV Line The smoothed OBV line is the primary visual. Its color reflects the current slope bias: green when bullish, red when bearish, grey when neutral. This gives you an at-a-glance read on whether volume flow momentum is trending or flat.
The Baseline A softer line tracks the rolling mean of OBV over the Z-score window. Think of this as the "neutral equilibrium" for OBV on that instrument. When OBV is above the baseline, volume flow is in net positive territory relative to its own recent history. When below, it's in net negative territory. OBV crossing the baseline is one of the six available alerts.
The Fill The area between the OBV line and the baseline is shaded in the current bias color at low opacity. This makes it visually easy to see how far volume flow has extended from equilibrium, and when it's beginning to revert.
Pivot Markers Small triangles appear on the OBV panel at each confirmed structural pivot. Red downward triangles mark OBV swing highs. Green upward triangles mark OBV swing lows. These are the same pivots the structure engine and divergence engine use — seeing them lets you visually confirm what the HUD is reporting.
Divergence Lines When a divergence is confirmed, a dashed line is drawn across the two OBV pivots that created the pattern, and a label is placed at the most recent pivot. Bear divergence lines are red with a "Bear Div" label. Bull divergence lines are green with a "Bull Div" label. Lines only appear after full confirmation — there are no provisional signals on this indicator.
________________________________________
The HUD
The heads-up display in the corner of the panel gives you a real-time read of the indicator's full state without requiring you to inspect the chart visually. Every field updates on each bar close.
Slope Bias — The current directional read on OBV momentum: Bullish, Bearish, or Neutral. Colored to match the chart.
Slope Z — The raw Z-score driving the slope bias classification. Positive values indicate above-average upward momentum. Negative values indicate below-average, downward-leaning momentum. The threshold for Bullish/Bearish classification is configurable (default ±1.0).
Structure — The current OBV structural state: Uptrend (HH/HL), Downtrend (LH/LL), Expanding, Contracting, or a partial structure label as the pattern develops.
Last Div — The type and age of the most recent confirmed divergence signal. Displayed as "Bull (X bars)" or "Bear (X bars)" where X is how many bars ago the signal fired. Shows a dash if no divergence has been detected.
Div Engine — On or Off, reflecting whether the divergence detection module is enabled in settings.
OBV — Whether smoothed OBV is currently above or below the rolling baseline.
________________________________________
How to Trade With It
The ATC OBV Trend Divergence indicator is a confirmation and context tool. It is not a standalone entry signal generator. Use it alongside your price action, levels, and primary trend framework.
Step 1 — Establish the volume flow structure. Before considering any trade, check the Structure field in the HUD. An Uptrend (HH/HL) structure on OBV is the highest-confidence bullish volume environment. A Downtrend (LH/LL) is the highest-confidence bearish environment. If the structure reads Expanding, Contracting, or is still Forming, treat that as a low-conviction volume environment and apply higher selectivity to your trade entries.
Step 2 — Check slope bias alignment. The Slope Bias and Slope Z fields tell you whether current OBV momentum is statistically elevated or suppressed. For long bias trades, you want Bullish slope bias. For short bias trades, you want Bearish slope bias. A Neutral reading doesn't cancel a trade but should reduce your conviction — volume flow momentum is not supporting a directional move right now.
Step 3 — Check OBV vs. baseline. For long entries, OBV above the baseline is supportive. For short entries, OBV below the baseline is supportive. A divergence between price position and OBV baseline position — price near highs but OBV below baseline, for example — is worth noting even without a formal divergence signal.
Step 4 — Let divergence signals add weight, not replace analysis. When a Bull Div or Bear Div label appears, treat it as a significant weight-of-evidence addition to a trade you were already building a case for. Bull Div at a key support level, with a Higher Low structure printing on OBV and slope bias turning Bullish, is a high-confidence confluence setup. Bull Div in isolation, in the middle of a trending move with no structural or level support, is just a data point.
Step 5 — Use the alerts to stay hands-free. Set alerts for the events that matter most to your process — divergence confirmations, slope bias flips, or baseline crossovers — so you don't need to watch the panel continuously. The alerts fire only when conditions are fully confirmed.
What a strong long setup looks like: OBV Structure shows Uptrend (HH/HL) or a fresh Higher Low. Slope Bias reads Bullish. OBV is above baseline. Price is pulling back to a known level. Entry on the next confirmed price structure signal from your primary framework.
What a strong short setup looks like: OBV Structure shows Downtrend (LH/LL) or a fresh Lower High. Slope Bias reads Bearish. OBV is below baseline. Price is rallying into a known resistance zone. Entry on the next confirmed rejection signal from your primary framework.
What a high-quality divergence trade looks like: A Bear Div signal prints after price makes a new high but OBV fails to confirm. Structure has been degrading — recent pivots showing Lower High. Slope Z is declining toward neutral. Price is approaching a prior distribution zone. This is an exhaustion setup worth engaging with appropriate risk sizing.
________________________________________
Alerts
Six alert conditions are available. Configure them in TradingView's alert panel using "Once Per Bar Close" for all divergence and flip alerts.
• Bullish Divergence — Fires when a fully confirmed bull divergence condition is met (price LL, OBV HL, all confirmation filters passed)
• Bearish Divergence — Fires when a fully confirmed bear divergence condition is met (price HH, OBV LH, all confirmation filters passed)
• Slope Flipped Bullish — Fires on the first bar where slope bias crosses above the Bullish threshold
• Slope Flipped Bearish — Fires on the first bar where slope bias crosses below the Bearish threshold
• OBV Crossed Above Baseline — Fires when smoothed OBV crosses above the rolling mean
• OBV Crossed Below Baseline — Fires when smoothed OBV crosses below the rolling mean
• New Higher High on OBV — Fires when a new structural higher high pivot confirms on OBV
• New Lower Low on OBV — Fires when a new structural lower low pivot confirms on OBV
________________________________________
Settings Reference
OBV Core
• HMA Smoothing Length (default 14) — Controls the degree of noise reduction applied to raw OBV before any calculations. Increase for smoother, slower-reacting output. Decrease for faster but noisier response.
Pivot Structure
• Pivot Left Bars (default 5) — Number of bars to the left of a swing point that must be lower (for a high) or higher (for a low) for the pivot to confirm.
• Pivot Right Bars (default 5) — Number of bars to the right required for confirmation. Increasing this adds lag but improves signal quality. This is the primary control for how conservative the structure and divergence engines are.
Slope Bias (Z-Score)
• Slope Lookback (default 20) — Bars over which OBV momentum is measured.
• Z-Score Window (default 200) — Rolling history used to build the normalization distribution. Larger values create a more stable baseline against which current slope is measured.
• Slope Z Threshold (default 1.0) — The Z-score magnitude required to classify slope as Bullish or Bearish rather than Neutral. Higher values mean fewer directional readings; lower values are more sensitive.
Divergence Detection
• Enable Divergence Detection — Toggle the divergence engine on or off.
• Minimum Bars Between Pivots (default 10) — Prevents divergence from flagging on two adjacent swings that are too close to represent a meaningful structural comparison.
• Maximum Bars Between Pivots (default 80) — Prevents the engine from connecting pivots that are so far apart the comparison is no longer meaningful.
• Require Same-Side OBV Slope (default on) — An additional confirmation filter. When active, a bullish divergence also requires that OBV slope not be strongly negative at the time of the signal, and vice versa. Recommended to leave on for conservative operation.
Visuals
• Toggle OBV line, baseline, state fill, pivot markers, and divergence lines individually
• Full color control for bullish, bearish, neutral, accent, and pivot marker colors
________________________________________
Instruments and Timeframes
This indicator has been validated for use on US equity index futures (ES, NQ, YM), their ETF equivalents (SPY, QQQ), large-cap individual equities, and major forex pairs. It is designed for the 15-minute, 1-hour, 4-hour, and daily timeframes. Performance on lower timeframes or low-liquidity instruments is not guaranteed, as OBV structure analysis requires sufficient volume history to produce meaningful pivot sequences.
________________________________________
Pine Script® indicator
CE & PE Separated V6This Pine Script (v6) indicator creates a dual-pane visualizer for Call (CE) and Put (PE) options on a single chart. It is designed to compare the price action and key levels of two different option contracts simultaneously without them overlapping.
Core Functionality
Dual-Symbol Tracking: It fetches real-time OHLC data for two user-selected symbols (typically a CE and a PE strike) using request.security.
Visual Separation (The Gap): To prevent the candles from overlapping, it applies a user-defined gap_offset to the PE data, effectively "shifting" the Put option candles lower on the Y-axis.
Key Level Mapping: It automatically calculates and draws horizontal lines for critical intraday and historical levels for both contracts:
Historical: Previous Day High (PDH), Low (PDL), and Close (PDC).
Intraday: First Candle Close (FC) and Opening Candle High/Low (OCH/OCL).
Clean Visualization: Using barstate.islast, the script ensures that labels and lines are updated dynamically, appearing only for the current trading session to reduce chart clutter.
This is particularly useful for Option Scalpers or Straddle/Strangle traders who want to see if both CE and PE are breaking their opening ranges or previous day levels at the same time, indicating a strong move or a volatility expansion.
Pine Script® indicator
Power Trend IBD Power Trend (PT) indicator based on Market School Rules by Investors Business Daily (IBD ).
PT turns ON only when ALL 4 conditions are met at the same time:
• Low > 21 EMA for 10 or more consecutive days
• 21 EMA > 50 SMA for 5 or more consecutive days
• 50 SMA is rising (higher than the previous day)
• Current bar is up (closes higher than it opens)
PT turns OFF the moment the 21 EMA crosses below the 50 SMA.
It is fully stateful — once triggered ON, it remains active until the explicit OFF cross occurs (even if some market conditions weaken temporarily).
Pine Script® indicator
Pre-Breakout Pressure Planner [AGPro Series]Pre-Breakout Pressure Planner
🧠 Core Idea
Is pressure building before a breakout, or is the setup still premature?
📌 Overview / What it does
Pre-Breakout Pressure Planner is a chart-first breakout readiness tool designed to evaluate pressure before price leaves a range.
The script maps an active pressure box, upper and lower trigger corridors, directional buildup side, volume support, fakeout-risk context, invalidation reference, and target-room projection. These factors are converted into a 0-100 Pressure Score with a clear next-action state such as Bull Pressure, Bear Pressure, Coil Watch, Premature, Fakeout Risk, or Trigger Review.
It does not predict breakouts, automate entries, or confirm post-breakout acceptance. It is built to help traders organize the pre-breakout decision process before reacting to price movement.
🎯 Purpose & Design Philosophy
This script was built for traders who want to evaluate whether a breakout setup is becoming valid before the breakout actually happens.
Many traders notice a range only after price has already moved. This tool focuses on the earlier planning phase: Is the range compressed? Is one side applying pressure? Is volume supportive? Is the candle behavior constructive? Is there fakeout risk near the boundary?
The design supports a planning mindset. It helps the user read pressure quality, risk location, target room, and next-action context without turning the chart into a generic signal board.
⚡ Why This Script Is Different
Most breakout tools focus on the moment price breaks a level.
This script does NOT focus on post-breakout confirmation, measured move corridors, generic support/resistance boxes, or simple buy/sell labels.
Instead, it evaluates the setup before the break. The core question is whether pressure is building in a structured way or whether the range is still too early, too wide, too weak, or vulnerable to a fakeout.
This keeps the concept separate from consolidation breakout tools. The purpose is not to grade a completed breakout. The purpose is to organize the pre-breakout readiness window.
⚙️ Methodology
1. Context Detection
The script builds a live pressure range from prior bars and evaluates whether price remains inside the active box, probes a boundary, or enters a trigger corridor.
2. Reference Mapping
It maps the pressure box, upper trigger corridor, lower trigger corridor, active-side invalidation reference, and projected target-room reference.
3. Reaction Evaluation
The model scores range compression, higher-lows or lower-highs buildup, relative volume behavior, candle pressure, and close location inside the box.
4. Visual Output
The script displays the active pressure box, centered status label, trigger corridors, optional risk/target guides, compact event labels, alerts, and a premium AGPro panel.
🗺️ How to Read the Chart
Pressure Box = the active range where pre-breakout pressure is being evaluated.
Trigger Corridors = narrow upper and lower zones where breakout review becomes relevant.
Risk / Target Guides = active-side invalidation and target-room references used for planning context.
Labels = compact state markers showing pressure, watch, fakeout risk, or trigger-review context.
Colors = teal supports bullish buildup, pink supports bearish buildup, amber marks neutral or developing pressure, and red marks elevated fakeout risk.
Panel = summarizes Pressure Score, Buildup Side, Volume Support, Fakeout Risk, Risk / Target, and Action.
🚦 Signals & States
• Bull Pressure → bullish buildup is forming inside the pressure box near the upper trigger context.
• Bear Pressure → bearish buildup is forming inside the pressure box near the lower trigger context.
• Coil Watch → compression or pressure exists, but the directional side is not clear enough yet.
• Premature → the setup does not yet meet the pressure score or structural requirements.
• Fakeout Risk → a boundary probe appears with weak support, poor candle pressure, or elevated rejection risk.
• Trigger Review → price has entered or crossed a trigger corridor and deserves context review.
🔔 Alerts Logic
Alerts can trigger when bullish pressure appears, bearish pressure appears, fakeout risk appears, or price enters trigger-review context.
Each alert is an attention marker. Alerts are not trade instructions, entry commands, exit commands, or automated strategy rules.
🧩 Confluence Logic
The strongest pressure read appears when multiple conditions align:
Range compression + directional buildup + supportive relative volume + constructive candle pressure + close location near the active trigger side.
When these conditions weaken, the planner can shift toward Coil Watch, Premature, or Fakeout Risk.
📊 When to Use
• Before evaluating a potential range breakout.
• During tight ranges where pressure may be building on one side.
• Around breakout watchlists where fakeout risk needs context.
• During volatility compression before expansion attempts.
• On liquid symbols where ATR, range boundaries, and relative volume are meaningful.
⚠️ When NOT to Use
• Extremely low-liquidity symbols with unreliable candles or volume.
• Very noisy micro-timeframes where range boundaries change too often.
• News-driven volatility spikes where pre-breakout pressure can distort quickly.
• Markets where the recent range is too wide to represent meaningful compression.
• As a standalone reason to enter or exit a trade.
🎛️ Key Inputs
• Pressure Range Lookback → controls the prior range used to build the active pressure box.
• Buildup Slope Lookback → controls how the script measures rising lows or falling highs.
• Sensitivity → changes how strict the compression model is.
• Minimum Pressure Score → sets the score needed for Bull Pressure or Bear Pressure states.
• Volume Support Level → defines constructive relative volume before breakout.
• Trigger Corridor ATR Width → controls the size of the upper and lower trigger corridors.
• Invalidation Buffer ATR → controls the active-side invalidation reference.
• Target Room Multiple → projects target-room context from the pressure range height.
• Visual settings → control boxes, guides, labels, panel visibility, panel location, theme, and font sizes.
🖥️ Interface & Visual Design
The interface is designed to be chart-first.
The main visual object is the active pressure box with a centered status label. Trigger corridors are narrow and controlled so the chart does not become a generic zone map. Event labels are compact, offset away from candles, and limited by cooldown and maximum-visible settings.
The AGPro panel follows the standard publication layout with a single merged blue title row, adjustable panel location, adjustable theme, and adjustable font size.
🧪 Practical Usage Workflow
1. Read the panel Pressure Score and Action.
2. Check whether the pressure box is tight or still too wide.
3. Review the Buildup Side and Volume Support rows.
4. Check whether Fakeout Risk is Low, Moderate, or Elevated.
5. Compare the active trigger corridor with invalidation and target-room context.
6. Treat labels and alerts as attention markers inside broader analysis.
🔍 Interpretation Guidelines
A high Pressure Score means the pre-breakout setup is more organized according to the script's rule set. It does not mean price must break out.
Bull Pressure and Bear Pressure describe directional buildup, not guaranteed direction.
Fakeout Risk means the boundary behavior deserves caution and context review. It does not mean a breakout cannot continue later.
Trigger Review means price is interacting with a corridor. It is a review state, not a command.
🚫 What This Script Is NOT
• Not a prediction engine.
• Not financial advice.
• Not auto trading.
• Not guaranteed signals.
• Not a buy/sell signal service.
• Not a post-breakout confirmation engine.
• Not a generic support/resistance zone map.
• Not an order-block, FVG, or supply/demand scanner.
⚠️ Limitations & Transparency
The script depends on selected lookback values, ATR normalization, relative volume behavior, and current timeframe.
Different symbols may compress differently. Some markets can show pressure for a long time before expansion. Others may probe a boundary and return inside the range several times.
The model is rule-based. Outputs should always be interpreted with broader structure, volatility, liquidity, and trader-defined risk controls.
🧠 Market Context Notes
Pre-breakout pressure is useful because the quality of a range can change before the breakout candle appears.
Rising lows can show pressure toward the upper boundary. Falling highs can show pressure toward the lower boundary. Volume support and candle pressure help judge whether that buildup is constructive or weak.
The script organizes these factors into a clean planner view so the user can decide whether the setup deserves attention, patience, or caution.
🧾 Use Case Examples
When price remains inside a tight range and the panel shifts to Bull Pressure with supported volume, the upper trigger corridor becomes the main review area.
When price presses into a boundary but the panel shows Elevated Fakeout Risk, the user can recognize that the probe may be weak or vulnerable to rejection.
When the score stays low and the state remains Premature, the range may need more time before it deserves attention.
🧱 System Philosophy
Pre-Breakout Pressure Planner follows the AGPro decision-engine approach: a script should help traders evaluate setup quality, risk, target room, and next action without promising an outcome.
The goal is not to add another signal. The goal is to improve the quality of the planning process before the chart forces a decision.
🔐 Non-Promise Statement
No script can guarantee direction, continuation, breakout success, or outcome.
This tool provides structured pre-breakout context only.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own analysis, risk controls, position sizing, and trading decisions.
This script does not provide financial advice, investment advice, or guaranteed trading outcomes.
📚 Educational Note
Use the script to study how pressure builds inside ranges before breakout attempts.
The strongest learning value comes from comparing the panel state, pressure box, trigger corridors, and fakeout-risk labels with the broader chart context.
Pine Script® indicator
edgeful - candle gapsedgeful – candle gaps
Detects and visualizes price gaps between consecutive candles. A "candle gap" is the empty space between one candle's close and the next candle's open — a hidden imbalance that often acts as a magnet for future price action. This script finds those gaps automatically and tracks each one until it gets filled.
What counts as a gap?
The script flags a gap only when both candles are the same color and the next candle opens beyond the prior candle's close:
Bullish gap — two green candles in a row, where candle 2 opens above candle 1's close. Zone runs from the prior close up to the current open.
Bearish gap — two red candles in a row, where candle 2 opens below candle 1's close. Zone runs from the current open up to the prior close.
Requiring same-color candles filters out indecision-driven micro-gaps and isolates the directional, momentum-driven imbalances that tend to matter most.
What is "mitigation"?
A gap zone is mitigated (filled) when price comes back and fully consumes it:
Bullish gap → price drops through and below the bottom of the zone
Bearish gap → price rallies through and above the top of the zone
You choose the strictness:
Close mode (default) — the candle has to close through the far side of the zone
Wick mode — any wick touch through the far side counts
Features
Session filter: Daily (all bars), New York, London, or Asia — restrict gap detection to the window you care about
Min gap size filter (% of price) — ignore noise
Configurable look-back window (default 10 days) — old gaps auto-clear
Optional midpoint line at the 50% level of each zone (a common partial-fill target)
Optional toggle to keep mitigated gaps on the chart in a faded color, so you can see where prior fills happened
Four built-in alerts: bullish gap detected, bearish gap detected, bullish gap filled, bearish gap filled
Fully customizable colors and zone extension length
How traders use it
Magnets / targets — unfilled gaps frequently get revisited; use them as profit-taking levels
Support / resistance — the gap zone itself often reacts to price on the first retest
Trend bias — a chart full of unfilled bullish gaps below price suggests momentum is intact (and vice versa)
Mean-reversion entries — fade extended moves back toward the nearest unfilled gap
Session studies — combine with the session filter to study, for example, only gaps that form during the NY open
Pine Script® indicator
Structure Retest Planner [AGPro Series]Structure Retest Planner
🧠 Core Idea
Is the active structure retest being accepted, rejected, or invalidated?
📌 Overview / What it does
Structure Retest Planner is a structure-based trade planning overlay designed to help traders evaluate how price behaves when it returns to an important swing-derived structure rail.
The script maps the active support-side or resistance-side rail, draws a focused retest box around that rail, scores the retest from 0-100, and projects practical invalidation and target guides. The goal is to organize the retest decision process: structure state, score, acceptance, invalidation, and next action.
It does not predict the next move, does not automate trading, and does not turn every swing point into a generic support/resistance signal. It is a decision-support planner for reading acceptance and rejection around a live structure retest.
🎯 Purpose & Design Philosophy
This script was built for traders who use price structure but need a cleaner way to judge whether a retest deserves attention.
Most structure tools identify levels, breaks, or swing labels. Structure Retest Planner focuses on the next decision after a rail is present: is price responding cleanly enough, is invalidation nearby, and what should be reviewed next?
The design supports a planning mindset rather than a signal-chasing mindset. It is meant to make the chart easier to interpret while keeping the trader responsible for context and risk.
⚡ Why This Script Is Different
Most tools focus on plotting structure breaks, BOS / CHoCH labels, or broad support and resistance zones.
This script does NOT clone a BOS / CHoCH detector and does NOT duplicate a first-break retest grader.
Instead, it treats the active structure rail as a planning reference and evaluates acceptance, rejection, volatility fit, trend agreement, invalidation distance, and next-action state in one workflow.
⚙️ Methodology
1. Context Detection
The script confirms swing-derived structure rails using pivot logic and identifies whether the active planning side is support retest, resistance retest, or automatic nearest-rail context.
2. Reference Mapping
It draws a retest box around the active rail, plus an invalidation shelf and target guide. These are planning references, not guaranteed outcomes.
3. Reaction Evaluation
The 0-100 score combines level origin quality, retest response, close location, volatility fit, and trend agreement.
4. Visual Output
The script shows a centered retest-box label, compact event labels, rail/invalidation/target guides, alerts, and a premium AG Pro panel.
🗺️ How to Read the Chart
Zones = the active retest box around the selected structure rail.
Labels = watch, accepted, rejected, invalidated, or risk-review states with optional score and grade.
Colors = teal for support-side acceptance, pink for resistance-side or rejection pressure, yellow for review states, and indigo for planning context.
Panel = structure state, retest score, acceptance state, invalidation shelf, and next action.
🚦 Signals & States
• Retest Watch → price is close enough to the active rail and the score is improving.
• Accepted → price tested the rail and closed constructively on the expected side.
• Ready → acceptance is active and the score reached the ready threshold.
• Rejected → price tested the rail but did not show clean acceptance.
• Invalidated → price closed beyond the invalidation shelf.
• Risk Review → retest behavior exists, but volatility is too hot for clean reading.
🔔 Alerts Logic
Alerts trigger when the script detects a new watch state, accepted retest, high-quality retest review, rejected retest, or invalidation shelf break.
Alerts are attention markers. They are not trade instructions and should always be interpreted with broader market context.
🧩 Confluence Logic
The score improves when the active rail has a cleaner structural origin, price reacts near the rail, the close lands on the expected side, volatility is not overheated, and trend context agrees with the retest side.
When these factors align, the retest context becomes easier to review. When they conflict, the panel shifts toward waiting, context confirmation, risk review, or reset.
📊 When to Use
• Pullbacks toward confirmed swing structure
• Trend continuation retests
• Resistance retests after bearish structure pressure
• Support retests after bullish structure pressure
• Markets where structure rails are visible and not excessively noisy
⚠️ When NOT to Use
• Very low-liquidity symbols
• Extremely noisy sideways markets
• News-driven volatility spikes
• Markets where pivot structure is too compressed to provide useful rails
• Any situation where the user expects automated entry or exit instructions
🎛️ Key Inputs
• Retest Side → selects Auto, Support Retest, or Resistance Retest.
• Structure Pivot Length → controls how structure rails are confirmed.
• Sensitivity → changes retest-box width and activation behavior.
• Retest Ready Score → sets the minimum score for stronger review states.
• Invalidation Shelf ATR → adjusts the planning invalidation reference.
• Target Guide R Multiple → projects the forward target guide from planning risk.
• Label and Panel Font Size → controls visual readability.
• Panel Location and Theme → adjusts interface placement and style.
🖥️ Interface & Visual Design
The panel is built as a compact planning dashboard with one merged blue AG Pro header row and five decision rows.
The chart visuals are intentionally restrained: one active retest box, centered box text, structure rail, invalidation shelf, target guide, and controlled labels.
The design goal is to make the active retest decision readable without turning the chart into a dense support/resistance map.
🧪 Practical Usage Workflow
1. Read the panel to identify the active structure state.
2. Check whether price is approaching or testing the retest box.
3. Review the retest score and acceptance state.
4. Compare the invalidation shelf and target guide.
5. Use your own broader context before making any decision.
🔍 Interpretation Guidelines
A higher score means the retest is cleaner within the script's rule set. It does not mean price must continue.
Acceptance means the bar closed constructively relative to the rail. Rejection means the rail is not holding cleanly. Invalidation means the planning reference has been crossed and the setup should be reviewed again.
Use the script to organize thinking, not to outsource judgment.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not auto trading
• Not guaranteed signals
• Not a BOS / CHoCH auto detector
• Not a generic support/resistance zone map
⚠️ Limitations & Transparency
The script uses pivot-based structure, so rails appear only after pivots are confirmed.
Timeframe choice, volatility, liquidity, and symbol behavior can materially change how retests appear.
Fast markets may pass through a rail before the retest can be evaluated cleanly. Sideways markets may create repeated low-quality tests.
🧠 Market Context Notes
Structure retests are easier to interpret when liquidity, trend context, and volatility are aligned.
A clean rail is not enough on its own. The reaction, close location, invalidation distance, and broader environment all matter.
🧾 Use Case Examples
When price returns to a prior support rail and closes back above it with a strong lower wick, the planner may shift from watch to accepted if the score is high enough.
When price tests resistance but closes back below the rail with volatility under control, the planner may mark a cleaner resistance-side review state.
When price closes beyond the invalidation shelf, the planner marks the context as invalidated and the plan should be reset.
🧱 System Philosophy
Structure Retest Planner is part of the AGPro Series decision-engine direction: tools should help traders answer what is valid, how strong it is, where risk is, and what should be reviewed next.
🔐 Non-Promise Statement
No signal from this script guarantees continuation, reversal, or profit.
The output is a structured analytical read, not certainty.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own analysis, risk management, and decisions.
This script does not provide financial advice and does not guarantee trading outcomes.
📚 Educational Note
Use the planner to study how structure retests behave across symbols and timeframes, especially how acceptance, rejection, volatility, and invalidation interact.
Pine Script® indicator
Regression Deviation Channel [JOAT]Regression Deviation Channel
Introduction
The Regression Deviation Channel is an institutional-style statistical trend and execution framework built around segmented regression, deviation envelopes, premium/discount zoning, breakout qualification, and risk mapping. Instead of acting like a plain moving-average channel, it models price through a best-fit regression path, measures dispersion with RMSE, then classifies where price is trading inside that structure: discount, equilibrium, or premium.
This version is designed to feel more like a desk-grade directional map than a simple overlay. It combines a frozen regression segment, internal band hierarchy, confidence scoring, Supertrend stack alignment, breakout detection, and ATR-based trade mapping into one visual structure. The goal is not just to show where price is, but whether the current move is balanced, compressed, expanding, or resolving.
Why This Indicator Exists
Most channels are too simple. They show boundaries but do not explain what price is doing inside those boundaries. This indicator was built to solve that by combining:
Segmented Regression: Tracks the current directional price path with a proper best-fit slope
Deviation Architecture: Uses RMSE to define statistically meaningful channel width
Premium / Discount Zoning: Splits the channel into expensive, fair value, and cheap territory
Breakout Qualification: Scores breakout quality using slope, participation, structure, and location
Trend Stack Context: Adds Supertrend alignment to distinguish strong directional pressure from noise
Trade Mapping: Builds clean ATR-based stop and multi-target projections after confirmed breaks
The result is a regression channel that does more than draw lines. It gives context, bias, execution framing, and visual hierarchy.
Core Components Explained
1. Segmented Regression Engine
= f_ols(winLen)
basisVal = intercept + slope * float(barsInSeg - 1)
upperVal = basisVal + rmse * multiplier
lowerVal = basisVal - rmse * multiplier
The core engine uses manual ordinary least squares regression to calculate the channel basis. Once the segment matures, the regression values are frozen and projected forward until price resolves beyond the envelope.
This “freeze and resolve” behavior keeps the channel visually stable instead of constantly shifting every bar.
2. RMSE Deviation Structure
Root mean squared error defines channel width, making the envelope responsive to how tightly price is hugging the trend.
Tight RMSE = cleaner trend structure
Wide RMSE = unstable or volatile structure
Internal bands split the envelope into inner, quarter, and outer zones
These nested bands create a true structure ladder instead of a single upper/lower shell.
3. Premium / Discount Channel Arrays
The channel is separated into three value areas:
Premium: Upper edge territory where price is extended and expensive relative to the current regression path
Equilibrium: The center band around fair value and neutral orderflow balance
Discount: Lower edge territory where price is cheap relative to the active path
This makes the indicator more useful for directional context:
Bull channels pressing premium signal strong continuation pressure
Bear channels pressing discount signal strong downside control
Repeated failure to hold premium/discount can signal exhaustion or rebalancing
4. Breakout Confidence Model
Breakouts are not treated equally. The indicator scores breakout quality using four ingredients:
Participation: Distance from the regression basis normalized by ATR
Slope Force: Strength of the normalized regression slope
Location: Whether price is already pressing the outer structure
Alignment: Whether price direction and Supertrend stack agree with the channel
breakoutConfidence = participation + slopeForce + location + alignment
This helps separate lazy drifts from high-quality channel resolution.
5. Supertrend Ribbon Stack
The Supertrend layer is not there as a generic add-on. It acts as a second-order directional filter.
Bull channel + bull Supertrend = higher-quality directional stack
Bear channel + bear Supertrend = stronger downside stack
When regression and Supertrend disagree, price is more likely in transition
The fill between regression basis and Supertrend visually shows whether pressure is aligned or conflicted.
6. ATR Risk Map
After a confirmed breakout, the indicator projects:
1 ATR-based stop level
3 reward targets using configurable risk-reward multiples
Auto-expiring lines so stale trade maps are removed
This gives the channel direct execution value instead of leaving the user to manually measure every move.
Visual Elements
Metallic Basis Line: Gold-toned centerline for the active regression basis
Outer Deviation Shell: Main channel boundaries with glow
Inner Structure Bands: Internal ladder for pressure staging
Premium / Discount Fills: Separate upper and lower value zones inside the channel
Equilibrium Fill: Neutral fair-value region
Supertrend Ribbon: Context layer showing secondary directional alignment
Iridescent Candles: Candle coloring that intensifies as control and confidence improve
Breakout Markers: Compact signals for confirmed resolves
Readiness Diamonds: Pre-break alignment markers when channel conditions are strong
The visual hierarchy is designed so you can read the channel at a glance without relying on heavy objects or clutter.
Dashboard
The dashboard is intentionally compact and fixed to the right side. It shows only the highest-signal metrics:
Bias
Regime
Flow
Channel Position
Confidence
Compression
Trend Stack
Trade Map
How to Use This Indicator
Step 1: Identify Channel Bias
Check whether the regression slope is bullish or bearish. That defines the primary directional path.
Step 2: Read Value Location
See whether price is trading in premium, equilibrium, or discount. This tells you whether price is extended or balanced inside the channel.
Step 3: Watch Trend Stack Alignment
When Supertrend and regression agree, directional pressure is cleaner. When they disagree, reduce conviction.
Step 4: Monitor Confidence
Use the breakout confidence score to judge whether price is merely drifting or building a meaningful resolution.
Step 5: Trade the Resolve, Not the Noise
Use breakout markers and ATR map levels when price exits the frozen envelope with qualified pressure.
Best Practices
Use higher timeframes for cleaner channel geometry
Treat equilibrium as fair value, not a signal by itself
Bull channels work best when premium holds and pullbacks respect the inner bands
Bear channels work best when discount holds and rallies fail at internal structure
High compression followed by rising confidence often precedes expansion
Use the risk map for framing, not blind automation
Indicator Limitations
Regression is still a model of recent price, not a guarantee of future direction
Sudden event-driven moves can invalidate the frozen segment quickly
Premium and discount are relative to the current channel, not absolute market value
High breakout confidence can still fail in thin or news-driven markets
Short segments increase responsiveness but also increase noise
Technical Implementation
Built in Pine Script v6 using:
Manual OLS regression
RMSE deviation envelopes
Segment freeze-and-resolve logic
Internal quarter and inner bands
Premium/discount channel zoning
Supertrend stack integration
Breakout confidence scoring
ATR-based stop and target map
Compact institutional dashboard
Originality Statement
This indicator is original in how it treats a regression channel as a full market-state framework instead of a static overlay. The value is not just in plotting upper and lower lines, but in combining:
Segment freezing
Internal value zoning
Directional stack confirmation
Breakout qualification
Execution mapping
Each layer contributes different information: regression defines path, RMSE defines structure, premium/discount defines value, Supertrend defines stack, and confidence defines quality.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Regression channels, premium/discount zones, and breakout scores are analytical tools, not guarantees of market outcome. All trading decisions remain the responsibility of the user.
-Made with passion by officialjackofalltrades
Pine Script® indicator
Dealer Gamma Pressure MapDealer Gamma Pressure Map
The Philosophy
In modern markets, price action isn’t just driven by retail sentiment; it’s driven by the hedging requirements of options dealers. When price crosses certain thresholds, dealers must buy or sell the underlying asset to remain delta-neutral, creating a feedback loop known as a Gamma Squeeze.
The Dealer Gamma Pressure Map was designed to solve the primary challenge of trading these environments: distinguishing between a high-probability "Squeeze" and a "Fakeout" mean-reversion.
Pine Script Challenges
Building this tool in Pine Script presented three significant technical hurdles that I had to architect around to ensure professional-grade stability:
The Table "Out of Bounds" Trap: Many dashboard indicators crash when users change settings because Pine Script® tables don't always resize gracefully in real-time. I implemented a fixed-buffer initialization (50 columns) with a safe-access logic layer. This ensures that whether your lookback is 5 or 40, the dashboard remains stable and error-free.
MTF Integrity: To provide institutional context, this script anchors to a Higher Timeframe (HTF) Flip. Handling MTF data in Pine is notoriously prone to "Repainting." I’ve used a strict offset on security calls to ensure the data you see is historically accurate and never looks ahead into the future.
The Noise Problem: Gamma data is inherently jittery. To solve this, I developed the "Goldilocks Engine"—a signal logic that balances RSI exhaustion, Gamma Velocity, and Volume Confluence. This filters out the "market noise" that often triggers false signals in lower-tier indicators.
Mathematical Core:
For ease of reading and transparency, here is the logic driving your chart:
1. Gamma Flip Level (The Gravity Center)
The Flip is the zero-point where dealer positioning shifts from Long to Short.
Formula: GF_Level = EMA(VWMA(Close, Length), Smoothing)
2. Gamma Exposure Score (Normalized Distance)
We don't just measure distance; we normalize it by volatility (ATR or StDev) so the indicator works identically on a 1-minute chart or a Daily chart.
Formula: Gamma_Score = (Price - GF_Level) / Volatility
3. Gamma Velocity (Acceleration)
This measures the rate of change in exposure to identify when a squeeze is building momentum.
Formula: Velocity = Gamma_Score - Gamma_Score
Understanding the Engine
Breakout Signals (B / S): These require "The Perfect Storm." Price must be in the Negative Gamma zone, ADX must show a strong trend, and volume must be 1.2x the recent average.
Reversal Signals (R): These are the strictest signals. Price must have overextended into extreme dealer "Acceleration" zones and then definitively crossed back while RSI shows momentum exhaustion (38/62).
Fade Signals (F): These are Bollinger-style mean reversion plays. They identify "Failed Breakouts" where price tests the extreme dealer boundaries but lacks the institutional volume to sustain a squeeze.
Visual Dashboard & Professional Themes
This script is built for the "Clean Chart" enthusiast. The dashboard is proportionally scaled—meaning if you change the text size from Tiny to Normal, the entire UI grows with it to maintain visual balance.
I have included 10 Hand-Crafted Visual Templates to ensure the map matches your personal trading workspace perfectly.
How to Trade This
Positive Gamma (Blue Zone): Look for Fades (F) and mean-reversion back to the midline.
Negative Gamma (Red/Green Outer Zones): Look for high-velocity Breakouts (B/S).
Regime Shift: When price crosses the Flip Level (Midline), expect a transition in market volatility.
Pine Script® indicator
Range Expansion Risk Planner [AGPro Series]Range Expansion Risk Planner
🧠 Core Idea
Does a range expansion offer clean room, or is price moving into immediate failure risk?
📌 Overview / What it does
Range Expansion Risk Planner is a chart-first breakout quality and risk-planning tool built for one specific moment: price has left a defined range, and the trader needs to understand whether the expansion has enough structure to deserve attention.
Instead of printing generic breakout signals, the script maps the source range, freezes the broken edge, builds an expansion runway, tracks a failure rail, estimates target room, evaluates retest behavior, and converts those conditions into a 0-100 planner score.
The script produces a source range box, expansion runway, failed-expansion review band, risk/target rails, full-state labels, deterministic alerts, and a clean AGPro panel. It does not predict future price movement, automate execution, or guarantee that a breakout will continue.
🎯 Purpose & Design Philosophy
This script was built for traders who want to evaluate range expansion quality after price leaves a structure, not simply react to the first candle outside the range.
Many tools mark breakouts, draw range boxes, or highlight volatility expansion. The gap is the planning layer after the break: Is the source range mature? Was the expansion candle strong enough? Did price close clearly beyond the edge? Is the retest accepted or weak? Is there enough room before the next target-side reference?
The design supports a decision-first workflow. It helps users separate a clean range expansion from a weak release, blocked room, failed expansion, or early unconfirmed movement.
⚡ Why This Script Is Different
Most tools focus on breakout arrows, range highs/lows, volatility spikes, or support/resistance zones.
This script does NOT become a generic range breakout signal, a generic S/R zone map, a squeeze indicator, or a target predictor.
Instead, it evaluates the quality of the expansion plan after the range edge is broken. The main output is not a trade command. It is a planning state that helps the user decide whether the current expansion is CLEAN, on REVIEW, waiting for retest, blocked by room risk, or failing back into the source range.
⚙️ Methodology
1. Context Detection
The script maps the active source range using a user-defined lookback and detects whether price has closed beyond the upper or lower edge with enough ATR-normalized distance.
2. Reference Mapping
When a qualified expansion appears, the script freezes the source range, the broken edge, the failure rail, and the target-room marker so the plan can be reviewed consistently.
3. Reaction Evaluation
The model scores range maturity, expansion candle quality, close beyond edge, retest quality, target-room distance, and failure-rail distance.
4. Visual Output
The result is displayed through a source range box, expansion runway, failed-expansion band, risk/target rails, full-state event labels, alerts, and a premium AGPro panel.
🗺️ How to Read the Chart
Zones = the source range shows where the expansion came from. The expansion runway shows the path between the broken edge and the target-room marker. The failed-expansion band shows the area where the release may be losing structure.
Labels = full-state markers show Range Expansion, Clean Expansion, Expansion Review, Retest Accepted, Failed Expansion, Target Room Reached, Failure Risk, or Range Watch context.
Colors = teal highlights cleaner bullish expansion, pink highlights bearish or failed contexts, amber highlights review/risk states, and indigo highlights watch or target-edge states.
Panel = the panel summarizes Range Maturity, Expansion Risk, Room Risk, Confirmation, and Action.
🚦 Signals & States
• CLEAN EXPANSION → range expansion quality is strong enough to deserve active review.
• REVIEW → expansion context is developing, but confirmation or target room is incomplete.
• WAIT RETEST → price has expanded, but the broken edge has not yet been accepted clearly.
• ROOM BLOCKED → target-side room is limited relative to the current risk structure.
• FAILURE RISK → price is back inside the range or close to the failed-expansion area.
• FAILED → price crossed the failure rail and the prior expansion plan should be reviewed.
• TARGET EDGE → price reached the active target-room marker.
• RANGE WATCH → the range is mature enough to monitor, but no qualified expansion is active yet.
🔔 Alerts Logic
Alerts trigger when the planner enters clean expansion, review state, retest accepted state, failed-expansion warning, or target-room reached state.
These alerts are attention markers only. They are not trade instructions, entry signals, automated strategy commands, or guaranteed outcomes.
🧩 Confluence Logic
The strongest context appears when a mature source range releases with a strong expansion candle, price closes clearly beyond the edge, target-side room remains open, the failure rail is not too far away, and the broken edge receives constructive retest behavior.
When those components align, the planner score improves and the action state becomes cleaner.
📊 When to Use
• After price leaves a clear range
• During breakout-review workflows
• When comparing whether a release has enough room to justify attention
• When price retests the broken range edge
• On liquid symbols where ATR, range, and volume behavior are readable
• Especially on 4H swing charts, where range release, retest behavior, failure risk, and target-room context remain visually readable
⚠️ When NOT to Use
• Extremely low-liquidity symbols
• Very noisy micro-timeframes
• News-driven candles that distort the range edge
• Markets with frequent gaps or unreliable volume
• Situations where the user expects a simple buy/sell signal
🎛️ Key Inputs
• Expansion Side → controls Auto, Long Expansion, or Short Expansion planning.
• Sensitivity → changes how selective the range maturity and edge-close requirements are.
• Source Range Lookback → defines the range used before expansion.
• ATR Length → normalizes failure rail, label spacing, expansion distance, and room risk.
• Retest Review Bars → controls how long an edge retest can improve confirmation quality.
• Target-Side Obstacle Lookback → searches for older target-side references before using the measured target.
• CLEAN / REVIEW Scores → adjust how strict the state model is.
• Visual settings → control boxes, runway, rails, labels, panel location, theme, and font sizes.
🖥️ Interface & Visual Design
The interface is built around one primary decision path: source range → expansion runway → failure rail → target room.
The panel uses the AGPro public-release standard with one merged blue header row containing only the script name. It keeps the decision fields readable without turning the chart into a crowded dashboard.
Labels keep full professional state names, are offset away from candles, and are limited by cooldown and max-visible controls.
🧪 Practical Usage Workflow
1. Read the panel action state.
2. Check whether the source range was mature enough before expansion.
3. Review the expansion runway and target-room marker.
4. Check whether price accepted the broken edge or moved back into failure risk.
5. Use alerts as attention markers, then evaluate the broader market context.
🔍 Interpretation Guidelines
A higher score means the model sees better alignment between source range quality, expansion candle quality, edge close, retest behavior, and target room.
CLEAN EXPANSION does not mean a trade must be taken. It means the expansion structure is clean enough to deserve active review.
REVIEW means the release may be developing, but the user should check confirmation and room quality before treating it as clean.
FAILED and FAILURE RISK are caution states. They help identify when an expansion is losing structure after leaving the range.
🚫 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 does not replace user judgment, risk management, or broader market analysis.
⚠️ Limitations & Transparency
Timeframe differences can change how range maturity, retests, and target-room references appear.
Volatility changes can widen failure rails or reduce clean target room.
Fast market conditions can move from CLEAN to FAILED quickly if price returns into the source range.
The script is rule-based and should be interpreted as an analytical planning layer, not as certainty.
🧠 Market Context Notes
Range expansion quality is not only about breaking the edge. A cleaner expansion usually needs a readable source range, a decisive close beyond the edge, enough room before obstruction, and a failure reference that is not too wide.
The planner is most useful when it prevents users from treating every breakout as equal.
🧾 Use Case Examples
When price closes beyond a mature range and the target-room marker remains far enough away, the planner may move into REVIEW or CLEAN EXPANSION.
When price retests the broken edge and holds outside the range, confirmation can improve.
When price closes back through the failure rail, the planner marks FAILED so the old expansion idea is not treated as clean anymore.
🧱 System Philosophy
Range Expansion Risk Planner follows the AGPro Series decision-engine approach:
Context first.
Risk before reaction.
Structure before signal.
Attention markers instead of promises.
🔐 Non-Promise Statement
No indicator can remove uncertainty.
No score, state, label, alert, range box, runway, or rail should be interpreted as guaranteed market direction.
📉 Risk Disclosure
Trading involves risk.
All decisions remain the responsibility of the user.
This script is for educational and analytical chart review only and does not provide financial advice.
📚 Educational Note
Use this script to study how range expansions develop, how broken edges behave after release, and how failure risk can be organized visually before making discretionary decisions.
Pine Script® indicator
Compression Breakout Readiness [AGPro Series]Compression Breakout Readiness
🧠 Core Idea
Is compression mature enough for a breakout watch state, or is the range still early, noisy, or structurally weak?
📌 Overview / What it does
Compression Breakout Readiness is a chart-first breakout planning tool designed to evaluate whether a compressed range has developed enough maturity to deserve active attention.
Instead of printing a generic breakout signal, the script studies range contraction, ATR compression, pivot tightening, volume dry-up, directional side bias, invalidation-edge distance, and projected breakout room. These components are converted into a 0-100 Readiness Score and a clear next-action state.
The script produces an active compression box, breakout watch corridor, invalidation edge, target guide, compact state labels, alerts, and a clean AGPro planning panel. It does not predict direction, automate execution, or guarantee that a breakout will follow through.
🎯 Purpose & Design Philosophy
This script was built for traders who want to evaluate the quality of compression before reacting to a breakout attempt.
Many breakout tools only mark the moment price crosses a level. The more useful planning question often comes earlier: is the range actually tight, mature, quiet, and biased enough to watch, or is the structure still too loose?
The design supports a decision-first workflow: identify compression, measure readiness, check risk edge, review the watch side, then decide whether the chart deserves attention.
⚡ Why This Script Is Different
Most tools focus on squeeze dots, breakout arrows, generic consolidation boxes, or simple high/low range breaks.
This script does NOT act as a generic squeeze indicator, a choppiness filter, a support/resistance mapper, or a direct buy/sell signal generator.
Instead, it evaluates compression maturity before and around the breakout edge. The main output is not a trade command. It is a readiness state that helps the user separate READY WATCH conditions from early, neutral, overheated, or invalidated compression contexts.
⚙️ Methodology
1. Context Detection
The script maps the active compression range and evaluates whether current volatility and range width are contracting relative to their baselines.
2. Reference Mapping
It builds the compression box, active breakout watch corridor, invalidation edge, and target guide from the current structure.
3. Reaction Evaluation
The model scores range contraction, ATR compression, pivot tightening, volume dry-up, side bias, and compression age. It also checks whether the invalidation edge is too tight, too wide, or balanced.
4. Visual Output
The result is shown through centered zone text, compact chart labels, clean edge lines, deterministic alerts, and a premium AGPro panel.
🗺️ How to Read the Chart
Compression Box = the active range being evaluated for breakout readiness.
Breakout Watch Corridor = the planning area beyond the active compression edge.
Invalidation Edge = the opposite-side reference used to judge risk context.
Labels = compact state markers such as READY WATCH, WATCH, EDGE REVIEW, PREMATURE, HOT RISK, and INVALID EDGE.
Colors = teal for bullish watch context, pink for bearish or invalid context, amber for caution, and indigo for watch/neutral emphasis.
Panel = the panel summarizes Compression Age, Readiness Score, Expansion Side, Risk Edge, and Action.
🚦 Signals & States
• READY WATCH → compression is mature, biased, and risk edge distance is balanced enough for active review.
• WATCH → compression is developing, but at least one readiness component remains incomplete.
• EDGE REVIEW → price has moved beyond the compression edge and the user should verify the close and broader context.
• PREMATURE → compression has not lasted long enough to build strong maturity.
• HOT RISK → volatility has expanded too aggressively for clean readiness interpretation.
• NO BIAS → compression exists, but the directional side is not clear enough in Auto mode.
• INVALID EDGE → price crossed the active invalidation edge and the prior context may need reset.
🔔 Alerts Logic
Alerts trigger when the planner enters READY WATCH, WATCH, EDGE REVIEW, HOT RISK, or INVALID EDGE state.
These alerts are attention markers. They are not trade instructions, entry signals, broker actions, or automated strategy commands.
🧩 Confluence Logic
The strongest readiness state appears when multiple components align:
Range contraction + ATR compression + pivot tightening + volume dry-up + directional side bias + balanced risk edge.
When those components improve together, the score can rise toward READY WATCH. If volatility becomes too hot, risk becomes distorted, or the active edge fails, the state downgrades.
📊 When to Use
• Before evaluating a possible breakout setup
• During narrow ranges where volatility is compressing
• Around coiling structures that need maturity review
• When comparing whether one compression range is cleaner than another
• On liquid symbols where range, ATR, and volume behavior are meaningful
⚠️ When NOT to Use
• Extremely low-liquidity markets
• Highly noisy micro-timeframes
• News-driven volatility spikes
• Symbols with unreliable or missing volume data
• Situations where the user wants a simple breakout arrow or automated trade signal
🎛️ Key Inputs
• Breakout Watch Side → selects Auto, Bullish Watch, or Bearish Watch evaluation.
• Compression Lookback → defines the active range used for readiness scoring.
• ATR Baseline → controls volatility compression comparison.
• Volume Dry-Up Length → evaluates whether participation is contracting inside compression.
• Minimum Compression Age → controls how mature a range must be before stronger readiness states appear.
• READY / WATCH Thresholds → adjust how selective the planner is.
• Visual settings → control compression box, breakout corridor, range edges, invalidation edge, projection length, labels, and candle tint.
• Panel settings → control panel visibility, location, theme, and font size.
🖥️ Interface & Visual Design
The interface is intentionally chart-first.
The compression box uses centered text so the user can read score and age directly inside the structure. The breakout corridor provides a clean forward planning reference without filling the chart with many competing levels.
The AGPro panel uses a single merged blue header row and a compact five-row decision layout. Label and panel font sizes are adjustable, with Normal as the default.
🧪 Practical Usage Workflow
1. Read the panel Readiness Score and Action.
2. Check whether the compression box is mature or premature.
3. Review the Expansion Side and breakout watch corridor.
4. Compare the Risk Edge with the visible structure.
5. Treat labels and alerts as review prompts, not trade commands.
🔍 Interpretation Guidelines
A higher score means the script sees stronger compression maturity according to its rule set.
READY WATCH does not mean price must break out. It means the compression context is organized enough to deserve attention.
WATCH means the structure may be developing but is not fully mature.
HOT RISK and INVALID EDGE are caution states. They warn that the range may no longer be clean enough for the same readiness read.
🚫 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 squeeze indicator.
It is not a choppiness dashboard.
It is not a support/resistance scanner.
It is not a direct breakout entry tool.
⚠️ Limitations & Transparency
Compression quality depends on the selected lookback, timeframe, volatility baseline, and market condition.
Volume dry-up may be less reliable on symbols with inconsistent exchange volume.
Fast volatility expansion can quickly change the readiness state.
Different timeframes can show different compression ranges and side-bias context.
The script is rule-based and should be interpreted as an analytical planning layer, not as certainty.
🧠 Market Context Notes
Compression by itself is not enough.
A useful breakout watch context also needs maturity, reduced noise, a readable side, and a practical invalidation edge.
This script keeps those elements visible so users can review breakout readiness before reacting emotionally to a candle crossing a range edge.
🧾 Use Case Examples
When a range contracts, ATR falls below baseline, volume dries up, and side bias becomes clear, the planner may move toward WATCH or READY WATCH.
When price pushes beyond the edge while readiness is acceptable, the script can mark EDGE REVIEW so the user can verify the close and broader context.
When ATR expands too aggressively before structure is mature, the planner can show HOT RISK instead of treating every move as a clean breakout context.
🧱 System Philosophy
Compression Breakout Readiness follows the AGPro Series decision-engine approach:
Context first.
Readiness before reaction.
Risk edge before target guide.
Attention markers instead of promises.
🔐 Non-Promise Statement
No script can remove uncertainty.
No state, score, label, alert, box, corridor, or line should be interpreted as guaranteed market direction.
📉 Risk Disclosure
Trading involves risk.
All decisions remain the responsibility of the user.
This script is for educational and analytical chart review only and does not provide financial advice.
📚 Educational Note
Use the script to study how compression matures, weakens, breaks, or invalidates around range edges. The strongest reading comes from combining the panel state with the visible chart structure and broader market context.
Pine Script® indicator
Breakout Retest Readiness [AGPro Series]Breakout Retest Readiness
🧠 Core Idea
Is the post-breakout retest being accepted with structure, or is the breakout losing quality at the risk edge?
📌 Overview / What it does
Breakout Retest Readiness is a chart-first planning tool built to evaluate what happens after a confirmed breakout and after price starts interacting with the retest pocket.
The script maps the broken structure level, builds a retest pocket around it, places a risk-edge shelf beyond the pocket, and projects a target-room guide for context. It then scores the active retest environment with a 0-100 Acceptance Score and displays a clear next-action state in the AG Pro panel.
This script does not predict continuation. It does not automate entries. It is designed to organize post-breakout retest context so traders can review acceptance, rejection, risk edge, and plan quality in a cleaner way.
🎯 Purpose & Design Philosophy
Most breakout tools focus on the moment price crosses a level. In practice, many useful decisions happen after the break, when price returns toward the broken level and either accepts it or fails around it.
This script was built for traders who want a structured retest planning layer rather than another basic breakout marker. It supports a patient workflow: wait for structure, observe the pocket, evaluate acceptance, and review risk before reacting.
The design philosophy is simple: the chart should answer what state the retest is in, how strong the acceptance context is, where risk is being tested, and what the next review step should be.
⚡ Why This Script Is Different
Most tools focus on detecting a breakout or grading the first retest as a standalone signal.
This script does NOT try to clone a classic break-retest quality grader, and it does not print simple buy or sell commands.
Instead, it works as a post-breakout readiness planner. It arms a retest pocket after a confirmed breakout, waits for price to interact with that pocket, evaluates acceptance versus rejection, tracks the risk edge, and keeps the next-action state visible in the panel.
The difference is the decision layer. The script is less about saying "a retest happened" and more about answering whether the active retest environment is constructive enough to keep reviewing.
⚙️ Methodology
1. Context Detection
The script identifies a confirmed break beyond recent structure using a prior high or prior low reference. The breakout must clear the structure by an ATR-normalized buffer so minor pokes are filtered.
2. Reference Mapping
After a valid break, the script stores the breakout line, builds a retest pocket around it, places an invalidation shelf beyond the broken level, and projects a target-room guide from the prior structure range.
3. Reaction Evaluation
When price interacts with the retest pocket, the script evaluates breakout quality, retest depth, wick rejection, volume change, and trend agreement. These components combine into a 0-100 Acceptance Score.
4. Visual Output
The chart shows the active retest pocket, breakout line, risk edge, target guide, compact event labels, and the AG Pro panel. The panel summarizes retest state, acceptance score, breakout quality, risk edge, and action.
🗺️ How to Read the Chart
Retest Pocket = the zone around the broken structure level where price is being evaluated after the breakout.
Breakout Line = the structure level that was crossed and now anchors the retest plan.
Risk Edge = the invalidation shelf beyond the retest pocket. It is a planning reference, not a stop recommendation.
Target Guide = a target-room marker projected from the prior range. It is context only, not a forecast.
Labels = compact state markers such as ARMED, TEST, ACCEPT, REJECT, RISK EDGE, or EXPIRE.
Colors = bullish retest plans use the AGPro teal tone, bearish plans use the AGPro pink tone, watch states use indigo or amber, and risk conditions use red.
Panel = the main decision interface showing retest state, acceptance score, breakout quality, risk edge, and next action.
🚦 Signals & States
• Breakout Armed → a breakout retest plan has been created after price cleared structure.
• Testing Pocket → price is interacting with the active retest pocket and acceptance is being evaluated.
• Accepted Retest → the retest has held the pocket with enough acceptance quality to deserve review.
• Rejected Retest → the retest has failed around the pocket and quality has weakened.
• Risk Edge Hit → price has moved beyond the mapped risk shelf.
• Expired → the retest window aged out before a constructive interaction.
🔔 Alerts Logic
Alerts are available for breakout plan arming, retest pocket interaction, accepted retest readiness, rejected retest or risk-edge pressure, and expired retest plans.
Each alert is an attention marker. Alerts do not represent trade instructions, guaranteed outcomes, or automated strategy decisions.
🧩 Confluence Logic
The strongest acceptance context appears when the breakout quality, retest depth, wick rejection, volume behavior, and trend agreement support the same side.
When these components align, the retest score improves. When the pocket is too deep, volume behavior is poor, trend context disagrees, or the risk edge is pressured, the readiness state weakens.
📊 When to Use
• After clean breakouts from recent structure
• During trend continuation review
• When price returns toward a broken level
• When the trader wants to separate constructive retests from weak post-break reactions
• On liquid symbols where structure, volume, and candle behavior are readable
⚠️ When NOT to Use
• Extremely low-liquidity instruments
• Highly noisy lower timeframes
• News-driven volatility spikes
• Markets with no clear structure reference
• Situations where the breakout level is too close to major external obstruction
🎛️ Key Inputs
• Breakout Structure Lookback → controls the prior structure reference used for breakout detection.
• Maximum Bars To Retest → controls how long the script waits for the retest pocket to matter.
• Sensitivity → adjusts how strict the breakout and acceptance model should be.
• Minimum Acceptance Score → defines the score needed before accepted readiness can appear.
• Retest Pocket Width ATR → controls the width of the post-breakout pocket.
• Invalidation Shelf ATR → controls the mapped risk-edge distance beyond the broken level.
• Target Guide Range Multiple → controls the forward target-room guide.
• Visual Settings → control pockets, lines, labels, label density, label size, and forward rendering.
• Panel Settings → control panel visibility, location, theme, and font size.
🖥️ Interface & Visual Design
The interface is built around a clean AG Pro panel and one main chart object family: the retest pocket.
The pocket label is centered inside the zone so the active state is visible without needing extra clutter. The breakout line, invalidation shelf, and target guide create a simple visual hierarchy: level, risk, and room.
Labels are intentionally compact and controlled by cooldown and maximum-visible settings so the chart remains active without becoming crowded.
🧪 Practical Usage Workflow
1. Read the panel state.
2. Locate the active retest pocket.
3. Check whether price is testing, accepting, rejecting, or pressing the risk edge.
4. Compare the Acceptance Score with the breakout quality.
5. Use the action row as a review prompt, not as an instruction.
🔍 Interpretation Guidelines
The Acceptance Score should be read as context quality, not certainty.
A higher score means the current retest has cleaner structural behavior under the script's rules. A lower score means the retest is less constructive, too deep, poorly supported, or not aligned with trend context.
The Risk Edge matters because a retest can look acceptable for a few bars and still lose structure if price pushes beyond the invalidation shelf. The panel keeps that condition visible.
🚫 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 and resistance map.
This script is not a clone of a first-retest grading tool.
⚠️ Limitations & Transparency
The script is rule-based and depends on the selected lookback, timeframe, and market structure.
Different symbols can produce different retest behavior. Lower timeframes may show more noise. Higher timeframes may produce fewer but stronger events.
Volatility changes can affect pocket size, risk-edge distance, and event frequency. Users should interpret every output within broader market context.
🧠 Market Context Notes
Breakout retests are most useful when structure is clear, liquidity is sufficient, and price has enough room to continue without immediate obstruction.
Volume behavior can add context, but volume data quality varies across markets. When volume is unreliable, the script treats that component more neutrally.
The retest pocket is not a guaranteed support or resistance zone. It is a structured review area around the broken level.
🧾 Use Case Examples
When price breaks above recent structure and later returns to the pocket with a controlled pullback, the script can mark the retest as Testing Pocket or Accepted Retest depending on score quality.
When price breaks below structure but quickly pushes back above the pocket and pressures the mapped risk edge, the script can mark rejection or risk-edge pressure.
When a breakout never returns to the pocket within the selected time window, the script can expire the plan instead of keeping old context alive.
🧱 System Philosophy
AGPro tools are designed to support structured chart reading. The goal is not to add more random signals, but to turn market behavior into clearer states, cleaner context, and better review discipline.
Breakout Retest Readiness follows that philosophy by turning a common post-breakout question into a visible planning workflow.
🔐 Non-Promise Statement
No script can confirm future price direction with certainty.
This tool organizes retest context. It does not promise continuation, reversal, profit, or accuracy.
📉 Risk Disclosure
Trading involves risk.
All outputs from this script are educational and analytical in nature.
Users are responsible for their own decisions, risk management, position sizing, and market interpretation.
This script does not provide financial advice.
📚 Educational Note
Use the script to study how breakouts behave after price returns to the broken level. The most useful insight is often not the breakout itself, but how the market reacts when the level is tested again.
Pine Script® indicator
4H Swing Trend Pullback Breakout - Long Only + Labels📈 4H Crypto Swing Strategy (PRO)
This is a professional swing trading strategy designed for the 4H timeframe, combining trend-following and breakout logic to achieve high consistency and low drawdown across crypto markets.
The system is built to perform well on multiple pairs (BTC, ETH, altcoins) and focuses on capturing strong directional moves while avoiding choppy market conditions.
---
⚙️ STRATEGY LOGIC
This strategy combines two core concepts:
1. Trend Following (Market Direction Filter)
- EMA 50 above EMA 200
- Price above EMA 200
- ADX confirms trend strength
This ensures trades are only taken in strong bullish conditions.
---
2. Pullback + Breakout Entry
- RSI detects pullbacks within trend
- Price holds above key moving averages
- Entry triggers on breakout + momentum confirmation
This captures continuation after temporary weakness.
---
3. Trend Continuation Mode
- Price holds above EMA 50
- Strong momentum structure
- Breakout of recent highs
This allows the strategy to stay in strong trends without waiting for deep pullbacks.
---
🎯 RISK MANAGEMENT
- ATR-based Stop Loss (adaptive to volatility)
- Risk/Reward Take Profit system
- Trailing Stop to lock profits
Take Profit Levels:
TP1 = 1R
TP2 = 2R
TP3 = 3R
This creates a balance between win rate and profitability.
ibb.co
---
📊 BEST CONDITIONS
✔ Crypto markets (BTC, ETH, ALTCOINS)
✔ 4H timeframe
✔ Trending environments
---
⚠️ NOTES
- Not designed for sideways markets
- Works best when aligned with overall market trend (e.g. BTC direction)
---
🧠 EDGE
This strategy combines:
- Trend structure (EMA)
- Momentum confirmation (RSI + breakout)
- Volatility-based risk management (ATR)
Which provides a significant advantage over basic indicator strategies.
---
🚀 Designed for traders who want:
- Clean structure
- Consistent results
- Professional-grade logic
If you like clean, structured strategies — this one is for you.
Pine Script® strategy
ETHDVOL based Ethereum VolatilityThis indicator maps Ethereum's expected price range across three timeframes — daily, weekly, and monthly — using the Ethereum Deribit Volatility Index (ETHDVOL) as the implied volatility source and realized historical volatility (HV7, HV14, HV30) as the measured counterpart.
ETHDVOL is Ethereum's equivalent of the VIX. It represents the market's forward-looking expectation of annualized volatility, derived from Deribit options pricing. When ETHDVOL is high, the market expects large moves. When it is low, the market expects compression. By scaling ETHDVOL and realized vol into dollar-denominated price bands anchored to key opens, this indicator gives you a structural volatility map directly on the ETH price chart — no separate pane required.
The core concept is straightforward: options market participants price expected ranges. Those ranges become levels. Price respects them — not always, not perfectly, but consistently enough to be meaningful as reference and used in comparison to what is realized.
How to Read the Bands
The Anchoring System
Each set of bands is anchored to a specific open and held fixed for its entire period. They do not drift or repaint mid-period.
**Weekly bands** lock on Saturday's opening price and ETHDVOL reading at the start of each crypto week. They hold for the full 7-day period. This Saturday anchor matters: the crypto options and perpetuals market structurally resets around the Saturday UTC open. Weekly expiries settle on Fridays, and Saturday represents the cleanest "new week" anchor available on a 24/7 market.
**Monthly bands** lock on the 1st of each calendar month and hold for the entire month. They represent the options market's expectation of how far ETH could move over a 30-day window from that open.
**Daily bands** reset each day at 00:00 UTC and reflect that day's opening price and current live volatility readings. They are the tightest, most reactive bands on the chart.
The Band Pairs
Each timeframe shows two bands — one from implied volatility (IV) and one from realized historical volatility (HV):
**IV bands** (white weekly, white monthly) represent what the options market *expects* ETH to move. These are forward-looking. They define the market's priced range for the period.
**HV14 Weekly** (orange) represents the actual realized volatility over the past 14 days, scaled to a weekly move. When HV14 is inside the IV band, the market is pricing more risk than it has been delivering — a low-volatility regime. When HV14 approaches or exceeds the IV band, realized vol is catching up to or exceeding what was priced.
**HV30 Monthly** (orange-red) is the 30-day realized volatility scaled to a monthly move. This sits alongside the monthly IV band and gives context for whether the current month's implied range is historically generous or tight.
**HV7 Today** (light yellow) is a live daily band using the most recent 7 days of realized volatility anchored to today's open. It is the most sensitive reading — useful for intraday context and identifying when daily price movement is pushing into or through the short-term realized range.
**IV Today** (faded white) is the same daily scaling but using DVOL — today's implied daily range from the options market. It is intentionally faded to keep the chart readable.
The Info Table
The top-left badge shows three live readings updated on every bar:
- **IV %** — the current ETHDVOL weekly reading with a heat emoji (🔥 above 60%, ❄️ below 40%, ⚡ in between)
- **HV14 %** — the Saturday-latched realized vol for the week
- **HV14/IV ratio** — the percentage of realized vol relative to implied. ✅ below 95% means RV is running below IV (options are pricing more than has been delivered). ⚠️ at or above 95% means RV is catching up to or exceeding IV — a higher-energy regime.
- **Daily change** — BTC price change from today's open in both % and dollar terms
The Saturday Anchor Line
The ⚓ Sat Open line marks the weekly anchor price. It is the midpoint of the weekly IV and HV14 bands. Price reclaiming or failing at this line is significant — it is the reference price that all weekly band math is built from.
Trend Channels
Two sets of dynamic trendlines auto-draw based on pivot structure — a shorter-period dashed pair and a longer-period solid pair. They update continuously as new pivots form. Green slope = bullish structure on that channel. Red slope = bearish. They reset on the 1st of each calendar month, giving enough bars to build meaningful structure across a full monthly cycle rather than resetting too frequently on the weekly.
---
Settings Walkthrough
Display Toggles
✅ Show Weekly Open Line | The ⚓ Sat Open midline
✅ Show Weekly Bands (IV + HV14) | Both white IV weekly and orange HV14 bands together
✅ Show Monthly Bands (IV + HV30) | Both white IV monthly and orange-red HV30 bands together
✅ Show HV7 Today (daily rotating) | The light yellow daily realized vol band — resets each day
✅ Show IV Today (daily rotating) | The faded white daily implied vol band — resets each day
The weekly and monthly band pairs are intentionally linked — IV and HV are most useful when compared against each other, so they toggle as a unit.
Label Proximity Gate ($)
When multiple bands converge near the same price level, the chart can become cluttered with overlapping labels. The Proximity Gate controls how close a daily band label can be to a weekly or monthly level before it is suppressed. The **line still draws** — only the text label is hidden.
**Default: $50.** At this setting, a daily HV7 or IV Today label will be hidden if it sits within $50 of any weekly or monthly band. Increase this value if you want a cleaner chart with fewer labels. Decrease it if you want to see all labels even when levels are close together.
**Practical guidance:**
💡 On wider perspectives toggle HV7/IV (daily) off and widen 'proximity label gate' to reduce screen clutter
💡 On narrow perspectives keep the daily looks with a tighter 'proximity label gate'
Trend Line Settings
Short and long pivot periods are adjustable independently. The defaults (10 and 16) are calibrated for the 30-minute timeframe. On the 1-hour chart, consider reducing both slightly. On 15-minute, increasing them gives more stable pivots. Because the trendlines reset monthly rather than weekly, they have sufficient bars to establish meaningful channel structure — particularly useful for identifying multi-week compression patterns and directional bias across the full monthly vol cycle.
🚨 General — The indicator is most powerful when used to identify when price is testing a band confluence — for example, when the weekly IV lower and monthly HV30 lower are within close range of each other. Those areas represent options-market-defined support zones where two independent vol calculations agree.
---
*Indicator is designed for ETHUSD. Requires access to DERIBIT:ETHDVOL data on TradingView. Works on intraday timeframes only — weekly and monthly band projections display for the current period.*
Pine Script® indicator
Swing Retest Quality [AGPro Series]Swing Retest Quality
🧠 Core Idea
Is the active swing retest clean enough to treat as valid context, or is the pullback too weak, too deep, or too hard to plan?
📌 Overview / What it does
Swing Retest Quality is a chart-first swing retest planner built to evaluate pullbacks into an active swing leg.
The script maps a focused swing retest pocket, defense line, target-room zone, compact labels, deterministic alerts, and a clean AGPro panel. It converts swing clarity, retest depth, wick rejection, close response, and volume support into a 0-100 Retest Quality score.
It does not predict future price movement, automate entries, print buy/sell commands, or replace broader market context. Its purpose is to help traders judge whether a swing retest has enough structure to deserve attention.
🎯 Purpose & Design Philosophy
This script was built for traders who evaluate pullbacks, retests, and continuation structure but want a more disciplined way to judge retest quality.
Many tools show structure levels or retest markers without answering the practical planning question: is this retest clean, defended, and readable enough to review?
The design philosophy is simple: a retest is not useful just because price touches a level. It becomes useful when the swing reference is clear, the pullback depth is controlled, the response is readable, and risk/target context can be mapped.
⚡ Why This Script Is Different
Most tools focus on support/resistance touches, break-and-retest markers, BOS/CHOCH events, or broad supply/demand zones.
This script does NOT clone Break-Retest Quality, does not require a structure break first, does not map order blocks, does not create a generic S/R zone map, and does not become a broad swing scanner.
Instead, it evaluates one active swing leg and asks whether the pullback into that swing has enough quality to be treated as valid context. The main output is not a trade command. It is a planner state: VALID RETEST, WATCH, DEFENSE REVIEW, LOST, or WAIT.
⚙️ Methodology
1. Context Detection
The script detects confirmed swing highs and lows, then identifies the active bull or bear swing leg.
2. Reference Mapping
It builds a concept-native retest pocket inside the active swing, adds a defense line behind the swing origin, and projects a target-room zone toward the swing terminal.
3. Reaction Evaluation
The model scores swing clarity, retest depth, wick rejection, close response, and optional volume support.
4. Visual Output
The result is displayed through a centered retest pocket, centered target-room zone, defense guide, swing leg, compact labels, alerts, and a premium AGPro panel.
🗺️ How to Read the Chart
Zones = the retest pocket shows where a pullback into the active swing leg is being evaluated. The target-room zone shows the available room back toward the swing terminal or extension guide.
Labels = compact event labels mark pocket tests, hold retests, watch states, room reviews, and defense-loss events.
Colors = teal marks cleaner bull-side retest context, pink marks bear-side or lost-defense context, amber marks caution/review, and indigo marks watch/transition context.
Panel = the panel summarizes Retest Quality, Swing Side, Defense State, Risk Room, and Action.
🚦 Signals & States
• VALID RETEST → the active swing retest is holding with enough quality and room for review.
• WATCH → the retest context is improving, but confirmation is incomplete.
• DEFENSE REVIEW → price has tested the pocket, but quality, response, or room is not strong enough.
• LOST → price has crossed the defense line and the swing context should be rebuilt.
• WAIT → no active swing retest context is strong enough yet.
🔔 Alerts Logic
Alerts trigger when price touches the swing retest pocket, when a valid swing retest appears, when a watch state appears, when target room becomes limited, and when the defense line is lost.
These alerts are attention markers only. They are not trade instructions, entry signals, or automated strategy commands.
🧩 Confluence Logic
The strongest context appears when a clear swing leg is followed by a controlled retest depth, visible wick rejection, a constructive close response, supportive relative volume, and enough target room relative to the defense line.
When these components align, the Retest Quality score improves and the state can move from WATCH to VALID RETEST.
📊 When to Use
• During pullbacks inside a clear directional swing
• When price is retesting a prior swing leg rather than breaking a new structure level
• When planning continuation context around a readable defense line
• When comparing whether a pullback is clean enough to monitor or too weak to trust
• On liquid symbols 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 swing structure becomes distorted
• Markets where volume is unreliable and should not affect scoring
• Situations where the user expects a signal-only entry tool
🎛️ Key Inputs
• Swing Pivot Length → controls how confirmed swing highs and lows are detected.
• Max Swing Age → controls how long a swing leg remains active.
• Shallow / Deep Pocket Depth → controls the retest pocket inside the swing leg.
• Ideal Retest Depth → defines the preferred pullback depth for stronger scoring.
• Defense Buffer ATR → controls the defense line behind the swing origin.
• Minimum Target Room ATR → defines how much room is preferred before VALID state.
• Label and Panel Font Size → controls chart labels, centered zone text, and panel readability.
🖥️ Interface & Visual Design
The interface is designed to stay chart-first.
The retest pocket gives the main visual story. The defense line defines where the swing context becomes weak. The target-room zone shows whether the pullback still has practical room to evaluate.
The AGPro panel uses a merged blue title row and a compact decision hierarchy so the user can read state, quality, risk, and next action quickly.
🧪 Practical Usage Workflow
1. Read the panel state and Retest Quality score.
2. Check whether price has touched the swing retest pocket.
3. Review the defense line and target-room zone.
4. Evaluate whether the label says HOLD, WATCH, ROOM REVIEW, or DEFENSE LOST.
5. Compare the retest with broader trend, liquidity, volatility, and timeframe context.
🔍 Interpretation Guidelines
Think in terms of retest quality, not prediction.
A stronger score means multiple structural conditions are aligned. A weaker score means the swing may be unclear, the pullback may be too shallow or too deep, the response may be weak, or target room may be limited.
The script helps organize the review process. It does not decide for the user.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not an auto-trading system
• Not a guaranteed signal tool
• Not a Break-Retest Quality clone
• Not a BOS/CHOCH scanner
• Not a generic support/resistance zone map
• Not a supply/demand, order block, or FVG map
⚠️ Limitations & Transparency
• Pivot-based swing references depend on the selected Swing Pivot Length.
• Scores can vary across symbols, sessions, and timeframes.
• Volume support depends on exchange-provided volume data.
• Fast, news-driven movement can distort retest depth and defense readings.
• In Live Updating mode, active-bar values can change before the bar closes.
🧠 Market Context Notes
Swing retests are most useful when the broader chart has readable structure.
Liquidity, volatility, trend maturity, and higher-timeframe context can all affect whether a retest should be treated as meaningful. The script provides a structured review layer, not a complete trading system.
🧾 Use Case Examples
When a bull swing is clear and price pulls back into the retest pocket, a HOLD RETEST label with a strong score indicates that the pullback response is clean enough to review.
When price touches the pocket but target room is too limited, ROOM REVIEW highlights that the structure may be readable but planning space is constrained.
When price crosses the defense line, DEFENSE LOST indicates that the active swing context should be rebuilt.
🧱 System Philosophy
Swing Retest Quality 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-review framework. The best results come from combining the panel, zones, labels, and alerts with broader chart context and disciplined risk evaluation.
Pine Script® indicator
Initial Balance Break Planner [AGPro Series]Initial Balance Break Planner
🧠 Core Idea
Is the Initial Balance break being accepted, or is it becoming vulnerable to failure back inside the balance?
📌 Overview / What it does
Initial Balance Break Planner is an intraday session planning tool built around the first major balance of the trading session. It maps a configurable Initial Balance window, tracks the first break beyond that balance, and evaluates whether that break has enough quality to deserve structured review. The default showcase workflow is designed for intraday charts up to 60 minutes.
The script produces a locked Initial Balance box, break review labels, acceptance labels, failure-risk labels, failed-IB markers, target rails, and an invalidation reference. The panel summarizes the active state through IB State, Break Side, Acceptance Score, Failure Risk, and Action.
It does not predict future price movement, automate trades, or tell the user what to buy or sell. It is a rule-based decision-support overlay for reading Initial Balance behavior with more structure.
🎯 Purpose & Design Philosophy
This script was built to solve a common intraday problem: many traders can see that price broke the first balance, but they still need a cleaner way to judge whether that break is accepted, stretched, weak, or vulnerable.
The tool is designed for traders who use session structure, Initial Balance concepts, intraday breakouts, and structured risk review. Its purpose is not to create another simple breakout signal. Its purpose is to turn the Initial Balance break into a practical planning framework.
The design philosophy is simple: map the balance, evaluate the break, show the risk, project the planning rails, and keep the next action readable.
⚡ Why This Script Is Different
Most opening-range tools focus on basic breakout direction, raw high/low levels, or target projections.
This script does NOT clone ORB Quality or Opening Range Failure Zones. ORB Quality is focused on opening range breakout quality and drive continuation. Opening Range Failure Zones is focused on failed opening range probes and reclaim zones.
Instead, Initial Balance Break Planner focuses on the post-IB decision layer: is the first Initial Balance break accepted, does the retest response support the break, where is the invalidation reference, where are the target rails, and what should the trader review next?
⚙️ Methodology
1. Context Detection
The script builds the Initial Balance from a configurable session window. The default uses the first 60 minutes of the New York regular session.
2. Reference Mapping
Once the IB window ends, the script locks the IB high, IB low, and midpoint. The box remains centered with an internal state label so the chart stays visually clear.
3. Reaction Evaluation
After the first break, the planner scores the setup using:
• IB width
• Break close quality
• Retest response
• Relative volume support
• Volatility fit
4. Visual Output
The chart displays break labels, acceptance labels, risk-review labels, failed-IB markers, target rails, and an invalidation rail. The panel converts the model into a compact next-action state.
🗺️ How to Read the Chart
The Initial Balance box represents the first session balance selected by the user.
Break labels show when price closes beyond the IB edge with enough buffer to start review.
Acceptance labels appear when the break has enough score, enough confirmation time, and controlled failure risk.
Failure-risk labels warn that the break is weakening or returning back inside the balance.
Target rails show measured planning references from the broken IB edge.
The invalidation rail marks the area where the break begins losing acceptance quality.
Panel colors summarize the current state:
• Teal → stronger acceptance or constructive long-side context
• Pink → bearish break side or failed context
• Amber → watch, risk review, or unresolved state
• Indigo / blue → active planning context
🚦 Signals & States
• IB READY → the Initial Balance has locked and the planner is ready to track the first break
• BREAK UP REVIEW → price closed beyond the upper IB edge and long-side review has started
• BREAK DOWN REVIEW → price closed beyond the lower IB edge and short-side review has started
• RETEST HOLD → price retested the broken IB edge without clearly losing it
• ACCEPTED → the break met the acceptance threshold with controlled failure risk
• RISK REVIEW → the break is not yet accepted and failure vulnerability is rising
• FAILED IB → price failed back inside the Initial Balance with elevated weakness context
🔔 Alerts Logic
Alerts trigger when the script detects:
• A bullish IB break review
• A bearish IB break review
• Bullish IB acceptance
• Bearish IB acceptance
• Failure-risk review
• Failed return back inside the IB
Alerts are attention markers only. They are not trade instructions.
🧩 Confluence Logic
The strongest context appears when the break close is clean, the IB width is balanced, volume is supportive, volatility is not overheated, and the retest response holds the broken edge.
When these elements align, the Acceptance Score improves and the panel can move from Observe Retest into Review Long or Review Short.
📊 When to Use
• Intraday markets with clear session structure
• 1-minute to 60-minute charts
• Index, futures, FX, and liquid crypto sessions
• Initial Balance breakout review
• Session expansion planning
• Post-break retest evaluation
• Risk and target planning after the first session balance breaks
⚠️ When NOT to Use
• Very low-liquidity symbols
• Extremely noisy micro timeframes
• Markets with poor session definition
• Events with abnormal volatility spikes
• Symbols where volume data is unreliable and should not be weighted heavily
• Higher timeframes where the selected IB session has little practical meaning
• 4H, daily, weekly, or monthly charts where a one-session Initial Balance cannot be mapped cleanly
🎛️ Key Inputs
• Initial Balance Window → defines the balance-building period
• Tracking Session → defines when break review can update
• Sensitivity → adjusts how selective the planner is
• Acceptance Lookback → controls the review window after the first break
• Minimum Acceptance Score → sets the threshold for accepted-break states
• Confirmation Mode → chooses confirmed-bar behavior or live updating
• Break Buffer ATR → controls how far price must close beyond the IB edge
• Retest Response Buffer ATR → controls retest tolerance around the broken edge
• Failure Buffer ATR → controls how quickly returning inside the IB raises risk
• Target Rail Multiples → control measured target references
• Max Visible IB Boxes → controls how many recent balance boxes stay on the chart
• Max Visible Labels → controls how many recent event labels stay on the chart
• Show IB Ready Labels → optionally displays a readiness label when the Initial Balance locks
• Visual Settings → control labels, box count, rail projection, and spacing
• Panel Settings → control panel visibility, location, theme, and font size
🖥️ Interface & Visual Design
The script uses a chart-first design. The Initial Balance box is the main anchor, and the centered box label keeps the active state visible without requiring a large dashboard.
Event labels are deliberately compact and offset away from candles. Target rails and invalidation rails are projected only after a break, so the chart remains clean during the balance-building phase.
The AG Pro panel uses a single merged blue header row and five compact rows so the user can quickly scan state, side, score, risk, and action.
🧪 Practical Usage Workflow
1. Read the panel after the Initial Balance locks.
2. Wait for price to break one IB edge.
3. Check whether the break receives a clean score or moves into risk review.
4. Watch the broken edge for retest behavior.
5. Use the target rails and invalidation rail as planning references.
6. Interpret the result within broader market context.
🔍 Interpretation Guidelines
The Acceptance Score is a quality score, not a prediction. Higher scores mean the break has better internal structure according to the script's rules.
Failure Risk is a warning layer. It rises when price loses acceptance quality, moves back inside the IB, shows weak close behavior, or lacks participation.
The Action row is the most practical summary. It helps the user decide whether the environment is still building, waiting, reviewing, accepted, vulnerable, or better left alone.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not auto trading
• Not guaranteed signals
• Not a generic ORB breakout system
• Not Opening Range Failure Zones
• Not a broad support/resistance or order-block map
⚠️ Limitations & Transparency
Initial Balance behavior changes across symbols, sessions, and timeframes. A 60-minute IB on one market may behave differently from the same window on another market.
Relative volume can be less useful on symbols where reported volume is incomplete or inconsistent.
Fast news events, thin liquidity, and unusual volatility can reduce the usefulness of any session-break model.
The script evaluates rule-based context only. It cannot know future order flow or guarantee what price will do next.
🧠 Market Context Notes
Initial Balance analysis is most useful when the session has a meaningful opening phase and a clear expansion phase.
A clean break usually needs more than a line cross. The break should show location, acceptance, participation, and controlled risk.
A weak break can still travel further, and a strong break can still fail. The script is designed to help structure the review, not remove uncertainty.
🧾 Use Case Examples
When price breaks above the IB high, receives a strong acceptance score, holds the broken edge on retest, and keeps failure risk low, the panel may move into Review Long.
When price breaks below the IB low but quickly returns back inside the balance with weak close quality, the panel may move into Failure Watch or Failed Back In.
When the IB is too wide, volatility is unstable, and the break lacks volume support, the planner can remain cautious even if price has crossed the edge.
🧱 System Philosophy
The AGPro Series approach is built around decision structure, not raw signal output.
Initial Balance Break Planner follows that philosophy by combining a visible session reference with a score, risk layer, target references, and a next-action panel.
The goal is to make the chart easier to interpret without making the chart crowded.
🔐 Non-Promise Statement
This script does not provide certainty.
It does not guarantee that an accepted break will continue or that a vulnerable break will reverse.
All outputs should be interpreted as structured analytical context.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own analysis, execution, and risk management.
This script is not financial advice and does not provide guaranteed trading outcomes.
📚 Educational Note
Initial Balance analysis can help traders study how a session moves from balance into expansion, but it should always be combined with broader market structure, liquidity, volatility, and personal execution rules.
Pine Script® indicator
Range Escape Planner [AGPro Series]Range Escape Planner
🧠 Core Idea
Is price escaping a mature range with enough quality to monitor, or is the move still vulnerable to failure?
📌 Overview / What it does
Range Escape Planner is a chart-first breakout quality and trade planning tool built around mature range escape behavior.
Instead of printing a generic breakout signal, the script maps the active range boundary, projected escape corridor, invalidation edge, target guide, obstruction room, follow-through quality, and retest behavior. These components are converted into a 0-100 Escape Score and a clear next-action state.
The script produces a range boundary box, escape corridor, risk/target guide lines, compact labels, alerts, and a clean AGPro planning panel. It does not predict future price movement, automate decisions, or guarantee that a range escape will continue.
🎯 Purpose & Design Philosophy
This script was built for traders who want to evaluate breakout quality after price leaves a mature range.
Many breakout tools identify the break itself but stop before answering the practical planning questions: is the range mature, is the close beyond the boundary strong enough, is volatility expanding constructively, is there clean room, and where is the failure reference?
The design philosophy is simple: a range escape is only useful when it has maturity, confirmation, room, and a readable invalidation edge.
⚡ Why This Script Is Different
Most tools focus on basic range breaks, box breakouts, session opening ranges, or simple breakout markers.
This script does NOT clone Darvas Box Breakout Quality, does NOT rebuild an ORB model, and does NOT act as a generic consolidation breakout signal.
Instead, it treats the move as a planning problem. The main output is not a buy or sell command. It is a structured state that helps users separate VALID ESCAPE, ESCAPE WATCH, RANGE READY, OBSTRUCTION, FAILED, and WAIT RANGE conditions.
⚙️ Methodology
1. Context Detection
The script maps the prior range from previous bars and checks whether price is still inside, near an edge, or closing beyond the boundary.
2. Reference Mapping
It draws the mature range, escape edge, invalidation edge, projected target guide, and older swing obstruction room.
3. Reaction Evaluation
The model scores range maturity, close beyond range, volatility expansion, follow-through, retest quality, and obstruction room.
4. Visual Output
The result is displayed through centered zone labels, compact event labels, guide lines, deterministic alerts, and a premium AGPro panel.
🗺️ How to Read the Chart
Zones = the range box shows the active mature range. The escape corridor shows the projected planning path from the broken boundary toward a target guide. Zone text is centered inside the boxes.
Labels = compact markers identify RANGE READY, ESCAPE WATCH, VALID ESCAPE, RETEST HOLD, OBSTRUCTION, and FAILED context.
Colors = green highlights cleaner long-side escape quality, pink highlights short-side or failure risk, amber highlights review conditions, and indigo highlights watch or mature-range context.
Panel = the panel summarizes Escape Score, Range Age, Confirmation, Obstruction, and Action.
🚦 Signals & States
• RANGE READY → the range is mature and price is near an escape edge.
• ESCAPE WATCH → price has escaped the range, but follow-through or retest confirmation is still incomplete.
• VALID ESCAPE → the escape has stronger score alignment, follow-through or retest support, and acceptable obstruction context.
• RETEST HOLD → price retested the escape edge and held outside the prior range.
• OBSTRUCTION → the escape is active, but older structure may limit clean room.
• FAILED → price returned through the escape edge and the escape context is no longer clean.
• WAIT RANGE → no mature range escape context is active.
🔔 Alerts Logic
Alerts trigger when the planner detects RANGE READY, New Range Escape, ESCAPE WATCH, VALID ESCAPE, RETEST HOLD, OBSTRUCTION REVIEW, or FAILED ESCAPE conditions.
These alerts are attention markers only. They are not trade instructions, entry signals, or automated strategy commands.
🧩 Confluence Logic
The strongest context appears when a range is mature, price closes beyond the range boundary, volatility expands constructively, candle follow-through improves, the broken edge holds on retest, and obstruction room remains acceptable.
When these components align, the Escape Score improves and the state can progress from RANGE READY to ESCAPE WATCH or VALID ESCAPE.
📊 When to Use
• During range breakout and range expansion review
• 4H and multi-hour swing charts where the range structure has enough space to breathe
• After price has spent time inside a defined range
• When evaluating whether a breakout has clean follow-through
• When a trader needs a visible invalidation edge and target-room reference
• On liquid markets where ATR, range, and swing structure are readable
⚠️ When NOT to Use
• Very low-liquidity symbols with unstable candles
• Extremely noisy micro-timeframes
• Very compressed intraday charts where labels and range boxes can crowd the price action
• News-driven spikes where price gaps far beyond the range
• Markets where older swing structure is too messy to define clean obstruction room
• Situations where the user expects a signal-only entry tool
🎛️ Key Inputs
• Planning Side → controls Auto, Long Escape, or Short Escape mode.
• Range Lookback → controls how the prior range boundary is mapped.
• Minimum Range Age → defines how mature the range should be before stronger scoring.
• Minimum Close Beyond Edge ATR → controls how far price must close beyond the boundary before an escape registers.
• Follow-Through ATR → defines stronger post-escape movement beyond the edge.
• Retest Tolerance ATR → controls how close price can revisit the broken boundary and still count as a hold.
• Obstruction Lookback → controls how older swing structure is checked for clean room.
• Label and Panel Font Size → controls chart labels, centered box text, and panel readability.
🖥️ Interface & Visual Design
The interface is designed to stay chart-first.
The range box defines the active decision area. The escape corridor shows the forward planning path. The invalidation, target, and obstruction lines add context without turning the chart into a crowded signal board.
The AGPro panel provides a compact decision summary with a merged blue title row and clear state hierarchy.
🧪 Practical Usage Workflow
1. Read the panel state and Escape Score.
2. Check whether the range is mature enough.
3. Review the escape corridor and edge line.
4. Check confirmation, retest behavior, and obstruction room.
5. Treat alerts as attention markers, then evaluate broader market context.
🔍 Interpretation Guidelines
Think in terms of escape quality, not prediction.
A stronger score means multiple structural conditions are aligned. A weaker score means the escape may be premature, poorly confirmed, obstructed, too noisy, or already failed.
OBSTRUCTION is especially important because a range can break cleanly while nearby older structure still limits practical room.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not an auto-trading system
• Not a guaranteed signal tool
• Not a Darvas Box clone
• Not an ORB model
• Not a generic support/resistance zone map
⚠️ Limitations & Transparency
The script is rule-based and depends on recent price, volatility, range, and older swing structure.
Timeframe differences can change how range maturity and escape quality appear. Volatility spikes can distort the score. Thin markets can create false escape or failure behavior.
Outputs should always be interpreted with broader market structure, liquidity, and risk context.
🧠 Market Context Notes
Range escape behavior is most useful when a readable balance area exists before expansion.
An escape with no follow-through may still be early. An escape with immediate obstruction may require extra caution. An escape that returns through the broken edge is treated as failed context, not as a new opposite prediction.
🧾 Use Case Examples
When price closes beyond a mature range, volatility expands from normal conditions, the candle holds beyond the edge, and older obstruction room is clean, the planner may classify the move as VALID ESCAPE.
When price breaks the boundary but quickly returns through the edge, the planner may classify the context as FAILED.
When price escapes but older swing structure is immediately ahead, the planner may show OBSTRUCTION even if the score is otherwise improving.
🧱 System Philosophy
AGPro planning tools are designed to help traders evaluate context before reacting.
This script follows that philosophy by turning a range breakout into a structured planning question: is the escape mature, confirmed, readable, and supported by clean room?
🔐 Non-Promise Statement
No indicator can guarantee continuation, reversal, or follow-through.
This tool provides structured visual context and rule-based attention markers. It does not provide certainty.
📉 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 mature ranges resolve, how escape quality changes after the first break, and how obstruction room affects the readability of breakout continuation.
Pine Script® indicator
Custom ORB, Premarket & EMAs 1.23 opening ranges, with emas and premkt levels , this will help with scalping strategies thru your daytrading
Pine Script® indicator
Expansion Target Planner [AGPro Series]Expansion Target Planner
🧠 Core Idea
After expansion is confirmed, where is the reasonable target band, how clean is the path, and what should be reviewed next?
📌 Overview / What it does
Expansion Target Planner is a chart-first risk-target planning tool designed to evaluate the target area after a confirmed range expansion.
Instead of drawing a generic target line or copying a measured-move pattern, the script studies the prior range edge, current ATR, continuation pressure, recent structure obstacles, volatility state, and an invalidation shelf behind the move. It then converts that context into a 0-100 Target Quality score and a clear next-action state.
The output is a practical planning workflow: an expansion target band, invalidation shelf, target midpoint guide, path obstruction marker, compact chart labels, alert conditions, and a clean AGPro decision panel. It does not predict the future, automate decisions, or guarantee that any target band will be reached.
🎯 Purpose & Design Philosophy
This script was built for traders who need a cleaner way to evaluate expansion targets after price has already shown confirmation.
Many tools focus on finding a breakout, drawing an equal measured move, or plotting fixed take-profit levels. This tool fills a different gap: it asks whether the next target area is reasonable, whether the path is blocked, and whether the invalidation reference still supports the plan.
The design supports a disciplined target-review mindset. It helps users separate a clean expansion path from a stretched, obstructed, expired, or invalidated plan.
⚡ Why This Script Is Different
Most tools focus on measured moves, ABCD projections, fixed target ladders, or generic breakout confirmation.
This script does NOT become a measured-move projection tool, ABCD pattern detector, take-profit ladder, auto trading system, or generic support/resistance map.
Instead, it builds one active expansion target plan after confirmation and evaluates the quality of that plan. The core output is not a trade command. It is a planning state that helps users review whether the target band, invalidation shelf, volatility, and structure path still make sense.
⚙️ Methodology
1. Context Detection
The script identifies whether price has confirmed expansion beyond a prior range edge. Users can keep the side on Auto or force Long Expansion / Short Expansion.
2. Reference Mapping
Once confirmation appears, the script locks an active target plan. It maps the expansion anchor, ATR-adjusted target distance, target band, invalidation shelf, and recent pivot-based path obstacle.
3. Reaction Evaluation
The script scores the plan using expansion strength, ATR projection fit, nearby structure, continuation pressure, volume support, trend support, and volatility state.
4. Visual Output
The chart displays the active target band, invalidation shelf, guide lines, obstruction marker, event labels, alerts, and AGPro panel state.
🗺️ How to Read the Chart
Zones = the forward target band and the invalidation shelf behind the expansion.
Labels = the current target planning state, such as TARGET READY, WATCH, OBSTRUCTED, TARGET HIT, or INVALID REVIEW.
Colors = green/teal supports cleaner bullish expansion quality, pink marks bearish or risk states, yellow marks caution or obstruction, and indigo is used as a neutral planning accent.
Panel = the compact decision view showing Expansion Side, Target Band, Invalidation, Target Quality, and Action.
🚦 Signals & States
• TARGET READY → the target band has acceptable quality and the path is clean enough for review.
• WATCH → target context is improving, but not enough conditions are aligned yet.
• OBSTRUCTED → a recent structure obstacle sits between current price and the target band.
• TARGET HIT → price has interacted with the active target band.
• INVALID REVIEW → price has crossed the invalidation shelf and the plan should be reviewed.
• EXPIRED → the active plan has spent too many bars without completing.
🔔 Alerts Logic
Alerts trigger when the active target state changes into an important review condition.
• Target Ready alert → target quality moves into a stronger review state.
• Target Watch alert → target context improves but remains incomplete.
• Path Obstructed alert → a structure obstacle blocks the target path.
• Target Band Touched alert → price reaches the active target band.
• Invalidation Review alert → price crosses the invalidation shelf.
Alerts are attention markers, not trade instructions.
🧩 Confluence Logic
The Target Quality score improves when expansion confirmation, ATR projection fit, continuation pressure, volume support, volatility state, and open structure path align.
When the target distance is reasonable, the close is efficient, volume supports the move, and no nearby obstacle blocks the path, the context becomes stronger.
📊 When to Use
• After confirmed range expansion
• During breakout continuation review
• When evaluating whether a target area is too close, too far, or structurally blocked
• When a trader wants target context without a fixed take-profit ladder
• During volatility expansion phases where target planning matters more than another signal
⚠️ When NOT to Use
• Very low-liquidity markets
• Extremely noisy sideways chop
• News-driven spikes where ATR and structure become unstable
• Markets with unreliable volume if volume support is central to your process
• Any situation where the user expects automatic trade instructions
🎛️ Key Inputs
• Expansion Side → Auto, Long Expansion, or Short Expansion planning.
• Prior Range Lookback → defines the range edge used for confirmation.
• Confirmation Break ATR → controls how far beyond the range edge price must close.
• Range Projection Multiple → adjusts how much prior range width contributes to the target distance.
• ATR Projection Multiple → adjusts how much current volatility contributes to the target distance.
• Target Band Width ATR → controls the visual width of the target band.
• Invalidation Shelf Lookback → defines the reference shelf behind the expansion.
• TARGET READY / WATCH thresholds → control how selective the state engine is.
• Visual settings → control target band, shelf, guide lines, obstruction marker, labels, panel location, theme, and font sizes.
🖥️ Interface & Visual Design
The interface is built around one active target plan.
The target band is displayed forward on the chart with centered text. The invalidation shelf is shown behind the move so the risk reference is visible without turning the script into a generic support/resistance tool.
The panel follows the AGPro public-release standard with one merged blue header row containing only the script name. The layout is compact and designed for quick reading during live chart review.
🧪 Practical Usage Workflow
1. Read the panel to identify the active Expansion Side and Target Quality.
2. Check whether the target band is clean or obstructed.
3. Review the invalidation shelf behind the expansion.
4. Use labels and alerts as attention markers.
5. Confirm the broader market context with your own process.
🔍 Interpretation Guidelines
Treat the target band as a planning area, not a guaranteed destination.
A higher Target Quality score means the target plan is cleaner according to the script rules. It does not mean the move must continue.
An OBSTRUCTED state does not mean price cannot move through the obstacle. It means the path contains structure that deserves review.
An INVALID REVIEW state means the active shelf has been crossed and the plan context has changed.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not auto trading
• Not guaranteed signals
• Not a measured-move projection system
• Not an ABCD pattern scanner
• Not a take-profit ladder
⚠️ Limitations & Transparency
• Timeframe differences can change expansion quality and target distance.
• Volatility shifts can make a previously clean target band less useful.
• Recent structure may not capture every important higher-timeframe obstacle.
• Volume-based scoring can be less useful on symbols with unreliable volume.
• No rule-based tool can fully account for news, liquidity shocks, or sudden regime changes.
🧠 Market Context Notes
Expansion targets are more useful when the market has already shown range release and the target path is not immediately blocked by nearby structure.
Liquidity, volatility, and structure should be read together. A target band can look reasonable by distance but still become lower quality if the path is obstructed or volatility becomes overheated.
🧾 Use Case Examples
When price closes beyond a prior range edge with strong close location and the target path is open, the script may show TARGET READY.
When price expands but a recent pivot sits directly between current price and the target band, the script may show OBSTRUCTED.
When price crosses the invalidation shelf behind the plan, the script may show INVALID REVIEW.
🧱 System Philosophy
AGPro Series tools are designed to support structured decision review, not emotional signal chasing.
This script follows that philosophy by focusing on target quality, invalidation context, and next-action state rather than a simple directional signal.
🔐 Non-Promise Statement
No target band is certain.
No 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 quality changes after expansion confirmation.
The strongest value comes from comparing the target band, obstruction marker, invalidation shelf, and broader market context together.
Pine Script® indicator
Swing Trade Master v2 [14-Confirm]Overview
Instead of relying on any single indicator, this script runs 14 indicators simultaneously on every bar and assigns each one a vote — bullish or bearish. Those votes are tallied into a score out of 14. A trade signal only fires when the score clears your chosen threshold and a momentum trigger fires at the exact same bar, ensuring both the broad market context and short-term timing agree. A Choppiness Index gate sits above everything and blocks all signals when the market is ranging rather than trending.
How a signal is generated — step by step
Choppiness gate check
The Choppiness Index is calculated first. If it reads above 61.8 (ranging/choppy market), all signals are suppressed for that bar and bars tint gray. This prevents entries during sideways price action where trend indicators give false signals.
Each indicator casts a vote
All 14 indicators evaluate the current bar. Each one produces a binary result — bullish (1) or bearish (0). Trend indicators look at alignment, momentum oscillators look at zones, and volume/flow indicators check buying vs selling pressure.
Scores are tallied
Bull votes are summed into a Bull Score (0–14) and bear votes into a Bear Score (0–14). Both are displayed live in the HUD table on the top-right of your chart. A score of 7 or above means at least half of all indicators agree on direction.
Score threshold check
The bull/bear score must reach your configured minimum (default 7/14). This filters out weak or ambiguous setups where indicators disagree. The higher you set this threshold, the fewer but stronger signals you receive.
Momentum trigger required
Even with a passing score, the signal won't fire unless a momentum-based crossover also occurs on the same bar — one of: MACD cross, RSI exiting oversold/overbought, Stochastic RSI cross, Williams %R exit, Super trend flip, or Parabolic SAR flip. This provides precise timing, so you don't enter mid-trend.
Opposing score tie-break
A final sanity check: if the opposing score is higher than the signal score, the signal is blocked. For example, a bull score of 8 is blocked if the bear score is 9 — the market is too mixed to take confidently.
De-duplication
Once a BUY or SELL fires, it is locked in. Subsequent bars that would trigger the same direction are suppressed until a signal in the opposite direction appears. This means you never see stacks of BUY labels on consecutive bars.
ATR stop loss and take profit drawn
On signal bars, horizontal SL and TP lines are drawn. Stop Loss = entry price minus (ATR × 1.5). Take Profit = entry price plus (ATR × 3.0). This gives a default 2:1 risk/reward ratio. Both multipliers are adjustable in settings.
Exit monitoring begins
After entry, the script monitors 10 exit conditions. A minimum of 3 bars must pass before any exit can fire. Then either a single strong exit (Super trend or PSAR flip) or 2+ standard exit conditions must agree simultaneously. Only one exit signal per trade is shown — never repeated.
Signal types on the chart
▲ BUY — green label below bar
All conditions met. Shows score, SL price, TP price in a detail label. Teal PSAR dots switch below price. Supertrend line turns green.
▼ SELL — red label above bar
All conditions met for short entry. Shows score, SL, TP. PSAR dots switch above price. Supertrend line turns red.
✕ Exit long — orange X above bar
Fired after 3+ bars when Supertrend/PSAR flips bearish, or 2+ of: RSI OB cross, MACD cross, Stoch, CCI, WPR, MFI, or VWAP cross.
✕ Exit short — cyan X below bar
Fired after 3+ bars when Supertrend/PSAR flips bullish, or 2+ of the same conditions reversed. One exit maximum per trade.
When the market is choppy (Choppiness Index > 61.8), bars tint gray and a ⚠ CHOP label appears on the last bar. No BUY or SELL signals will fire until trending conditions return.
Recommended settings by market type
Stocks (trending)
Score 7–8 · 4H or Daily · ATR SL 1.5 · TP 3.0
Crypto (volatile)
Score 8–9 · 4H or Daily · ATR SL 2.0 · TP 4.0
Forex (ranging)
Score 8+ · Daily only · Lower Chop to 55 · SL 1.2
Index ETFs
Score 6–7 · Daily · Default ATR · Standard Chop
Pine Script® indicator
MTF Untested Liquidity (1H + 4H Clean)📌 MTF Untested Liquidity (1H + 4H)
🧠 Description
This indicator plots untested liquidity levels from the 1-hour (1H) and 4-hour (4H) timeframes directly onto the chart.
These levels are derived from swing highs and swing lows and represent areas where price previously reversed but has not yet returned to mitigate.
🟠 4H Liquidity (Higher Timeframe)
Represents major institutional liquidity zones and higher-impact swing levels.
🔵 1H Liquidity (Lower Timeframe)
Represents internal structure liquidity and intraday swing points.
⚡ How It Works
The indicator automatically identifies swing highs and swing lows on both 1H and 4H timeframes.
These levels are plotted as horizontal lines and extend to the right.
When price revisits and trades through a level (liquidity is taken), the line is automatically removed from the chart.
📊 How to Use
1. Identify Liquidity Zones
Redrawn levels show where liquidity is resting above highs or below lows.
These are areas where stop orders are likely positioned.
2. Understand Market Draw
Price often moves toward liquidity before reversing or continuing trend direction.
This tool helps visualize where price is likely to be “drawn” next.
3. Watch for Liquidity Sweeps
When a level disappears, it indicates:
Liquidity has been taken
Stops have likely been triggered
A potential shift in market behavior may follow
🎯 Trading Application
Traders commonly use this indicator to:
Identify high-probability liquidity targets
Time entries after liquidity sweeps
Align intraday trades with higher timeframe structure
Avoid entering before liquidity is taken
⚠️ Disclaimer
This indicator does not predict direction.
It maps liquidity zones and their interaction with price, which can be used as context for trading decisions.
Pine Script® indicator
Auto Swings + 1H / 5m Trend (ENTRY LOGIC)1. Основа — фрактали (swing-и)
Скрипт знаходить локальні:
🔺 хай (top fractal) — потенційний рівень ліквідності зверху
🔻 лоу (bottom fractal) — ліквідність знизу
👉 використовуються тіла свічок, а не тіні (це важливо)
📈 2. Лінії рівнів
Коли з’являється фрактал:
будується горизонтальна лінія
тягнеться вправо
показує рівень, який можуть “зняти”
👉 це твої:
ліквідність
потенційні BOS рівні
🧠 3. Визначення тренду (ключова логіка)
Функція f_trend():
запам’ятовує останній:
верхній фрактал
нижній фрактал
Далі:
якщо ціна пробиває останній верхній фрактал → 🔼 LONG (trend = 1)
якщо ціна пробиває останній нижній фрактал → 🔽 SHORT (trend = -1)
👉 це фактично спрощений Break of Structure (BoS)
⏱ 4. Multi-Timeframe (MTF)
Скрипт дивиться на 2 таймфрейми:
1H → контекст (основний тренд)
5m → тригер (вхід)
через request.security()
🎯 5. Логіка входу (найважливіше)
✅ LONG сигнал:
1H вже в LONG
5m тільки що став LONG (раніше не був)
❌ SHORT сигнал:
1H в SHORT
5m тільки що став SHORT
👉 це означає:
ти не заходиш “в середині тренду”
ти заходиш в момент підключення молодшого ТФ
🔁 6. Захист від повторів
Змінні:
prev1H
prev5m
👉 зберігають попередній стан, щоб:
сигнал був один раз
не було спаму алертів
🔔 7. Алерти
Є 3 типи:
окремо:
1H LONG/SHORT
5m LONG/SHORT
головний:
✅ 1H + 5m LONG (ENTRY)
❌ 1H + 5m SHORT (ENTRY)
👉 саме його ти використовуєш для входу
📊 8. Таблиця
Внизу справа:
показує стан:
1H
5m
кольори:
🟢 зелений — лонг
🔴 червоний — шорт
⚪ сірий — немає тренду
⚠️ Важливий нюанс (чесно)
Цей скрипт:
✔ добре ловить початок імпульсу
❌ але може ловити флет (пилу)
💡 Як це використовувати правильно
Найкраща модель:
1H задає тренд
чекаєш відкат
5m дає сигнал → входиш
🚀 Якщо хочеш апгрейд
Ось що реально підніме рівень:
🔹 фільтр флету (range detection)
🔹 5m BoS замість просто тренду
🔹 підтвердження через ліквідність / sweep
Pine Script® indicator
Adaptive Trend Checklist Entries ExitsEnglish Description
Adaptive Trend Checklist PRO Optimal Entries and Exits
Adaptive Trend Checklist PRO is an advanced trend following and trade management indicator designed to help traders identify higher quality long and short opportunities directly on the chart.
The script combines trend direction, momentum, ADX strength, Supertrend, moving average bias, higher timeframe confirmation, risk management levels and automated alerts into a single visual trading framework.
Its purpose is not to predict the market with certainty, but to help the trader make more structured decisions by filtering weak setups, identifying valid entry conditions and managing exits through predefined technical logic.
Main Functionalities
1. Adaptive automatic mode by timeframe
The indicator can automatically adjust its internal parameters depending on the chart timeframe.
It adapts the moving average length, ATR length, Supertrend factor, ADX length, ADX minimum threshold, higher timeframe references and trading mode.
This allows the script to behave differently on scalping, intraday and swing trading timeframes.
2. Manual mode
Users can disable automatic mode and manually configure the trading mode, moving average period, ATR period, Supertrend factor, ADX minimum value, ADX length and higher timeframe confirmations.
This is useful for traders who want full control over the strategy logic.
3. Visual checklist panel
The script includes a visual checklist table showing the current market context.
The checklist displays the system mode, trading mode, higher timeframe trend state, moving average trend bias, Supertrend direction, ADX condition, current active trade direction, market session, risk status and last exit reason.
This panel helps the trader quickly understand whether the market is aligned for a potential trade.
4. Long and short entry signals
The indicator generates potential long and short entries when several conditions align.
The entry logic may include price above or below the selected moving average, price above or below the Supertrend, ADX confirming sufficient trend strength, higher timeframe confirmation, momentum trigger and no trade range filter.
The script marks entries directly on the chart with visual signals.
5. Optimal entry price
When a valid setup appears, the script calculates and displays a suggested entry price based on the close of the confirmed signal candle.
It also draws a horizontal entry line on the chart so the trader can clearly see the reference level.
6. Smart stop loss calculation
The stop loss is calculated using a combination of Supertrend distance, recent swing structure, volatility adjustment and timeframe based multiplier.
The aim is to avoid placing the stop too close to market noise while still maintaining a controlled risk profile.
7. Take profit levels
The script automatically calculates and displays three take profit levels called TP1, TP2 and TP3.
These levels are based on the real distance between entry and stop loss, using a risk reward structure.
8. Trailing stop
The indicator includes a trailing stop logic based on Supertrend movement.
The trailing stop is designed to protect profits as price moves in favor of the trade, without worsening the original stop loss.
9. Optimal exit logic
The script can trigger exit signals depending on the selected exit mode.
Available exit modes include TP1, TP2, TP3, TP2 plus trailing stop, trailing Supertrend and trend reversal.
The script also displays the reason for the last exit on the chart and in the checklist.
10. Trade management table
A separate management panel shows account capital, risk amount, entry price, stop loss, TP1, TP2, TP3, trailing stop and suggested position size in dollars.
This allows the trader to evaluate the risk and position size before entering the trade.
11. Automated alerts
The script includes alert conditions for optimal long entry, optimal short entry, optimal long exit, optimal short exit, general entry signal and general exit signal.
It also includes dynamic runtime alerts using alert function, which can provide detailed messages including entry price, stop loss and take profit levels.
How to Use
1. Add the script to your TradingView chart.
2. Choose whether to use Automatic Mode or Manual Mode.
3. Select your preferred trading style, Conservative, Aggressive or Ultra Aggressive.
4. Adjust the higher timeframe filters if needed.
5. Choose the desired exit mode.
6. Wait for a confirmed long or short signal.
7. Use the displayed entry, stop loss and take profit levels for trade planning.
8. Create alerts in TradingView using the script alert conditions.
For the most detailed alerts, create a TradingView alert and select Condition, Adaptive Trend Checklist PRO, Any alert function call.
This allows the script to send dynamic alerts with real trade levels.
Important Notice
This indicator is a decision support tool and should not be considered financial advice. No indicator can guarantee profitable trades or predict the market with certainty.
Traders should always combine this tool with their own analysis, risk management rules and market context. Backtesting and forward testing are strongly recommended before using it with real capital.
Descripcion en Castellano
Adaptive Trend Checklist PRO Entradas y Salidas Optimas
Adaptive Trend Checklist PRO es un indicador avanzado de seguimiento de tendencia y gestion de operaciones disenado para ayudar al trader a identificar oportunidades long y short de mayor calidad directamente sobre el grafico.
El script combina direccion de tendencia, momentum, fuerza mediante ADX, Supertrend, media movil, confirmacion de timeframes superiores, niveles de gestion de riesgo y alertas automaticas en un unico sistema visual de analisis.
Su objetivo no es predecir el mercado con certeza absoluta, sino ayudar al trader a tomar decisiones mas estructuradas, filtrando escenarios debiles, detectando condiciones validas de entrada y gestionando salidas mediante una logica tecnica predefinida.
Funcionalidades Principales
1. Modo automatico adaptativo por timeframe
El indicador puede ajustar automaticamente sus parametros internos segun el timeframe del grafico.
Adapta automaticamente la longitud de la media movil, longitud del ATR, factor del Supertrend, longitud del ADX, umbral minimo del ADX, timeframes superiores de referencia y modo de trading.
Esto permite que el script se comporte de forma diferente en temporalidades de scalping, intradia o swing trading.
2. Modo manual
El usuario puede desactivar el modo automatico y configurar manualmente el modo de trading, periodo de la media movil, periodo del ATR, factor del Supertrend, valor minimo del ADX, longitud del ADX y confirmaciones de timeframes superiores.
Este modo es util para traders que quieren controlar completamente la logica del indicador.
3. Panel visual de checklist
El script incluye una tabla visual que muestra el estado actual del mercado.
El checklist muestra el modo del sistema, modo de trading, estado de los timeframes superiores, sesgo de la media movil, direccion del Supertrend, estado del ADX, direccion de la operacion activa, sesion de mercado, estado de gestion y motivo de la ultima salida.
Este panel permite entender rapidamente si el mercado esta alineado o no para una posible operacion.
4. Senales de entrada long y short
El indicador genera posibles entradas long y short cuando se alinean varias condiciones tecnicas.
La logica de entrada puede incluir precio por encima o por debajo de la media movil seleccionada, precio por encima o por debajo del Supertrend, ADX confirmando suficiente fuerza tendencial, confirmacion de timeframes superiores, activacion por momentum y filtro de rango o no operar.
Las entradas se muestran directamente en el grafico mediante senales visuales.
5. Precio de entrada optima
Cuando aparece una configuracion valida, el script calcula y muestra un precio de entrada sugerido basado en el cierre de la vela de senal confirmada.
Tambien dibuja una linea horizontal de entrada en el grafico para que el trader tenga una referencia clara del nivel operativo.
6. Calculo inteligente del stop loss
El stop loss se calcula combinando distancia respecto al Supertrend, estructura reciente de swings, ajuste por volatilidad y multiplicador adaptado al timeframe.
El objetivo es evitar colocar el stop demasiado cerca del ruido del mercado, manteniendo al mismo tiempo un riesgo controlado.
7. Niveles de take profit
El script calcula y muestra automaticamente tres niveles de take profit llamados TP1, TP2 y TP3.
Estos niveles se basan en la distancia real entre la entrada y el stop loss, utilizando una estructura de riesgo beneficio.
8. Trailing stop
El indicador incorpora una logica de trailing stop basada en el movimiento del Supertrend.
El trailing stop esta disenado para proteger beneficios a medida que el precio avanza a favor de la operacion, sin empeorar nunca el stop loss original.
9. Logica de salida optima
El script puede activar senales de salida segun el modo de salida seleccionado.
Los modos disponibles son TP1, TP2, TP3, TP2 mas trailing stop, trailing Supertrend y giro de tendencia.
Ademas, el script muestra el motivo de la ultima salida tanto en el grafico como en el checklist.
10. Tabla de gestion de operacion
El indicador incluye una tabla separada de gestion donde se muestra capital de la cuenta, importe de riesgo, precio de entrada, stop loss, TP1, TP2, TP3, trailing stop y tamano sugerido de posicion en dolares.
Esto permite al trader evaluar el riesgo y el tamano de posicion antes de operar.
11. Alertas automaticas
El script incluye condiciones de alerta para entrada optima long, entrada optima short, salida optima long, salida optima short, senal general de entrada y senal general de salida.
Tambien incorpora alertas dinamicas mediante alert function, que pueden enviar mensajes detallados con precio de entrada, stop loss y objetivos de beneficio.
Modo de Uso
1. Anade el script al grafico de TradingView.
2. Elige entre Modo Automatico o Modo Manual.
3. Selecciona el estilo de trading deseado, Conservador, Agresivo o Ultra Agresivo.
4. Ajusta los filtros de timeframes superiores si lo necesitas.
5. Selecciona el modo de salida deseado.
6. Espera una senal long o short confirmada.
7. Usa los niveles de entrada, stop loss y take profit mostrados en el grafico para planificar la operacion.
8. Crea alertas en TradingView usando las condiciones de alerta del script.
Para recibir las alertas mas completas, crea una alerta en TradingView y selecciona Condition, Adaptive Trend Checklist PRO, Any alert function call.
Esto permite que el script envie alertas dinamicas con los niveles reales de la operacion.
Aviso Importante
Este indicador es una herramienta de apoyo a la toma de decisiones y no debe considerarse asesoramiento financiero. Ningun indicador puede garantizar operaciones rentables ni predecir el mercado con certeza absoluta.
El trader debe combinar esta herramienta con su propio analisis, gestion de riesgo y contexto de mercado. Se recomienda realizar backtesting y pruebas en tiempo real antes de utilizarlo con capital real.
Pine Script® indicator






















