Indicator

Indicator

Indicator

ES Breakout Toolkit Breakout Candle Scanner Free=== PART OF THE ES BREAKOUT TOOLKIT ===
This is one of several free, standalone indicators that make up the ES Breakout Toolkit series. Each indicator isolates a single component used in the full ES London Breakout Pro strategy. They are designed to be useful on their own and educational for traders studying what makes a quality breakout candle.
=== WHAT THIS INDICATOR DOES ===
The Breakout Candle Scanner identifies candles that meet specific structural criteria for a high-quality breakout. Not every candle that crosses a level is worth trading — this indicator filters for candles with strong body-to-range ratios, directionally committed close positions, and confirmed breaks above or below a recent range.
When a candle breaks out of a defined range AND meets the body ratio and momentum close thresholds, it is marked with a BUY or SELL label. A detail label shows the exact body percentage and close position so you can see why it qualified. An optional mode also marks strong candles that did not produce a breakout, which can be useful for studying candle quality across different market conditions.
=== HOW TO USE IT ===
Apply this to an ES futures chart on a 5-minute timeframe. The indicator will scan every candle and mark those that qualify as breakout candles. You can adjust the body ratio threshold, close position thresholds, breakout buffer, and range lookback in the inputs.
Body Ratio measures how much of the candle's total range is real body vs wicks. Higher values mean more conviction. Close Position measures where price closed within the candle's range — a bullish candle closing near its high (70%+) or a bearish candle closing near its low (30% or below) indicates strong momentum commitment.
The dashboard tracks total bullish and bearish breakout candles as well as strong non-breakout candles, giving you a running count of candle quality during the session.
=== KEY FEATURES ===
- Breakout candle detection with body ratio and close position filters
- Configurable thresholds for all candle quality metrics
- ATR-based breakout buffer to filter false breaks
- Detail labels showing exact body% and close position% on each signal
- Optional mode to mark all strong candles (not just breakouts)
- Optional bar coloring for qualifying candles
- Optional London session filter
- Running stats dashboard
- Alerts for bullish and bearish breakout candles
=== ABOUT THE ES BREAKOUT TOOLKIT ===
This indicator is part of a free series that breaks down the building blocks of a London session ES futures breakout strategy. Other free indicators in the series cover session highlighting, consolidation range detection, ADX regime filtering, and momentum close analysis. Each is published separately on my profile.
The full ES London Breakout Pro indicator combines all of these components into a unified strategy with additional proprietary features including advanced risk management, trade qualification, and data tracking. It is available as an invite-only script on my profile. Use the access request instructions on that script's page if you are interested.
=== DISCLAIMER ===
This indicator is provided for educational and informational purposes only. It is NOT financial advice. It does not constitute a recommendation to buy, sell, or hold any financial instrument. Trading futures involves substantial risk of loss and is not suitable for all investors. Past performance of any indicator or strategy is not indicative of future results. Always conduct your own research and consult a qualified financial advisor before making any trading decisions. You are solely responsible for your own trading activity. Indicator

ES Breakout Toolkit Consolidation Range Detector Free=== PART OF THE ES BREAKOUT TOOLKIT ===
This is one of several free, standalone indicators that make up the ES Breakout Toolkit series. Each indicator isolates a single component used in the full ES London Breakout Pro strategy. They are designed to be useful on their own and educational for traders studying consolidation and breakout mechanics on ES futures.
=== WHAT THIS INDICATOR DOES ===
The Consolidation Range Detector identifies periods where price is compressing into a defined range that meets specific quality criteria. It draws a box around the consolidation zone when the range is tight relative to its recent average and falls within acceptable ATR bounds — not too small to be noise, not too large to be a trend already in motion.
When price exits a valid consolidation range, the indicator marks the breakout direction with an arrow. A label at the end of each range shows the range size in points and as a multiple of ATR, giving you context on the quality of the setup.
=== HOW TO USE IT ===
Apply this to an ES futures chart on a 5-minute timeframe. The indicator will automatically detect and draw consolidation boxes when conditions are met. You can adjust the range lookback period, tightness filter, and ATR bounds in the inputs to match your preference.
The key readings to watch are the Range/ATR ratio and the Range vs Average ratio in the dashboard. A range that is small relative to ATR and below its own recent average is a higher-quality consolidation — it means price is compressing more than usual, which often precedes a directional move.
An optional session filter limits detection to the London session (12AM-6AM PT) if you only want to see consolidations during that window.
=== KEY FEATURES ===
- Automatic consolidation zone detection with visual boxes
- Tightness filter comparing current range to rolling average
- ATR-based minimum and maximum range bounds
- Breakout direction arrows when price exits a valid range
- Range size labels in points and ATR multiples
- Optional London session filter
- Dashboard with real-time range quality metrics
- Alerts for consolidation detection and breakout events
=== ABOUT THE ES BREAKOUT TOOLKIT ===
This indicator is part of a free series that breaks down the building blocks of a London session ES futures breakout strategy. Other free indicators in the series cover session highlighting, ADX regime filtering, breakout candle scanning, and momentum close analysis. Each is published separately on my profile.
The full ES London Breakout Pro indicator combines all of these components into a unified strategy with additional proprietary features including advanced risk management, trade qualification, and data tracking. It is available as an invite-only script on my profile. Use the access request instructions on that script's page if you are interested.
=== DISCLAIMER ===
This indicator is provided for educational and informational purposes only. It is NOT financial advice. It does not constitute a recommendation to buy, sell, or hold any financial instrument. Trading futures involves substantial risk of loss and is not suitable for all investors. Past performance of any indicator or strategy is not indicative of future results. Always conduct your own research and consult a qualified financial advisor before making any trading decisions. You are solely responsible for your own trading activity. Indicator

ES Breakout Toolkit London Session Highlighter FreePART OF THE ES BREAKOUT TOOLKIT
This is one of several free, standalone indicators that make up the ES Breakout Toolkit series. Each indicator isolates a single component used in the full ES London Breakout Pro strategy. They are designed to be useful on their own and educational for traders studying London session price action on ES futures.
WHAT THIS INDICATOR DOES
The London Session Highlighter marks the 12:00 AM - 6:00 AM Pacific Time window directly on your chart. During this session, it tracks and displays the developing session high, session low, and session open price as real-time reference levels. When the session closes, it labels the total range in points.
A small dashboard in the top-right corner shows whether the session is currently active, the session high and low, and the current range expressed as a multiple of ATR(20). This gives you an immediate sense of whether the session is producing normal or extended price action relative to recent volatility.
HOW TO USE IT
Apply this indicator to any ES futures chart on a 5-minute timeframe. The session start and end hours are adjustable in the inputs if you want to monitor a different window. The background highlight, range lines, and open line can each be toggled on or off depending on your preference.
The Range/ATR reading in the dashboard is particularly useful for gauging whether the session has room to expand or is already stretched. Values below 1.0x suggest a quiet session with potential for a breakout. Values above 2.0x suggest the session has already made a significant move.
KEY FEATURES
- Configurable session window (defaults to London 12AM-6AM PT)
- Real-time session high/low/open tracking
- Session range label on close
- Range vs ATR dashboard for context
- Clean, minimal chart overlay
- Alert not included — this is a visual reference tool
ABOUT THE ES BREAKOUT TOOLKIT
This indicator is part of a free series that breaks down the building blocks of a London session ES futures breakout strategy. Other free indicators in the series cover consolidation range detection, ADX regime filtering, breakout candle scanning, and momentum close analysis. Each is published separately on my profile.
The full ES London Breakout Pro indicator combines all of these components into a unified strategy with additional proprietary features including advanced risk management, trade qualification, and data tracking. It is available as an invite-only script on my profile. Use the access request instructions on that script's page if you are interested.
DISCLAIMER
This indicator is provided for educational and informational purposes only. It is NOT financial advice. It does not constitute a recommendation to buy, sell, or hold any financial instrument. Trading futures involves substantial risk of loss and is not suitable for all investors. Past performance of any indicator or strategy is not indicative of future results. Always conduct your own research and consult a qualified financial advisor before making any trading decisions. You are solely responsible for your own trading activity. Indicator

Indicator

Indicator

Indicator

AG Pro ATR Envelope Breakout Quality [AGPro Series]AG Pro ATR Envelope Breakout Quality
Overview / What it does
AG Pro ATR Envelope Breakout Quality is a volatility-aware breakout framework built around a dynamic ATR envelope rather than a static horizontal level, fixed box, or session-defined range. The script tracks when price closes outside an ATR-based outer band, then evaluates whether that move shows enough quality to be treated as a meaningful breakout instead of a weak expansion, short-lived overshoot, or low-conviction push.
The core logic is centered on three linked questions. First, did price achieve a valid close outside the active envelope? Second, was that move supported by enough momentum and relative participation to deserve attention? Third, what happened when price came back toward the broken area? This progression allows the script to move beyond a simple breakout marker and present a more structured breakout-quality workflow.
Because the reference structure is dynamic, the script adapts to changing market conditions instead of forcing all setups into a fixed box logic. In periods of contraction, the envelope tightens and makes outside acceptance more meaningful. In periods of expansion, the envelope widens and helps separate true continuation pressure from ordinary volatility noise. This makes the tool especially useful for traders who want to judge whether an expansion is merely visible or genuinely tradable.
The visual design is intentionally clean and overlay-first. The envelope defines the active volatility shell, breakout markers show where price escapes that shell, the throwback zone highlights the key acceptance pocket after the move, and the optional target line provides a simple expansion objective. A compact panel then summarizes the current state without taking over the chart. The result is a script that aims to look premium while still keeping the main story readable in a publish screenshot.
Unique Edge
The main distinction of this script is that it does not evaluate breakout quality from a static support/resistance line, a consolidation rectangle, a Donchian extreme, or an opening range boundary. It evaluates breakout quality from a moving ATR envelope. That difference is not cosmetic. It changes the entire logic of what counts as a breakout, how follow-through is judged, and how retests are interpreted.
In several classic breakout tools, the market is asked to escape a fixed historical structure. Here, the market is asked to achieve acceptance outside a live volatility shell. This creates a different analytical lens. A move that looks impressive relative to a flat level may not be meaningful relative to a volatility-adjusted envelope. On the other hand, a clean close outside an adaptive outer band can reveal expansion quality that a simple line break would miss.
This also separates the script from our other AG Pro tools. It is not a consolidation breakout evaluator, because its reference structure is not a box. It is not a Donchian breakout tool, because it is not based on period highs and lows. It is not an opening-range breakout model, because it is not session-box dependent. It is not a standard break-retest script, because the retest here happens around a dynamic envelope acceptance area rather than around a static horizontal level.
That distinction matters both analytically and visually. Analytically, the script focuses on volatility-adjusted breakout acceptance. Visually, it produces a different type of chart story: an active envelope, a breakout event, a throwback pocket, and a projected path. This gives the script its own place inside the AG Pro catalog rather than making it feel like a variation of an existing breakout family member.
Methodology
The script begins with an ATR-based envelope built around a moving basis. This creates an adaptive upper and lower band that expand or contract with market volatility. A bullish breakout candidate appears when price closes outside the upper band. A bearish breakout candidate appears when price closes outside the lower band. Wick-only excursions are not enough. The script is designed to care about acceptance, not mere contact.
Once an outside close is detected, the script evaluates breakout quality through a compact scoring framework. Momentum contribution helps measure whether the breakout candle shows real displacement or just a hesitant push. Volume contribution helps detect whether the breakout is supported by stronger-than-usual participation or whether it lacks confirmation. The combined result becomes the displayed breakout-quality score.
After the initial breakout, the script monitors the first return toward the broken band area. This is where the throwback logic becomes important. Instead of treating every pullback the same way, the script classifies what happens around the envelope area and updates the state accordingly. A successful hold suggests that the market accepted the breakout. A failure suggests that the move lost structural quality after the initial expansion.
An optional target line can be used to project a simple post-breakout objective. This is not presented as a promise of outcome. It is a visual planning reference intended to show a possible expansion path if the breakout continues to behave constructively. Together, the envelope, the breakout signal, the throwback state, and the target framework create a full breakout-quality sequence rather than a single event label.
Signals & Alerts
The script is designed to organize the breakout workflow into visible states rather than flooding the chart with constant commentary. The main states include bullish breakout, bearish breakout, throwback monitoring, throwback hold, breakout failure, and target hit. This makes the chart easier to read and helps the user understand where the setup currently stands.
Bullish and bearish breakout markers appear when price achieves a confirmed outside close beyond the relevant envelope band. These are the initial expansion events. They are then followed by a monitoring phase in which the script watches how price behaves around the broken band area. If the return is constructive, the script can label that behavior as a successful hold. If the move loses quality and breaks down, the script can classify it as a failure.
The target marker is optional and functions as a planning aid, not as a certainty engine. It simply shows that the projected expansion objective has been reached based on the chosen configuration. In practical use, this can help traders separate the breakout event itself from the later progression of the move.
The alert set is intended to remain deterministic and chart-state aware. It focuses on confirmed breakout events, throwback behavior, breakout failure, and target completion. This keeps the script aligned with workflow clarity instead of turning it into a noisy alert generator.
Key Inputs
The envelope settings control the moving basis, ATR length, and multiplier that define the adaptive breakout shell. These settings determine how sensitive the script is to changing volatility and how demanding the outside-close condition becomes.
The breakout filter settings allow the user to regulate confirmation quality. Depending on the selected configuration, the script can require stronger momentum, clearer outside distance, and optional volume confirmation. This helps users decide whether they want a more selective or more responsive model.
The throwback analysis settings define how the script interprets the first return toward the broken envelope area. These settings influence how deeply price can revisit the area before the move is treated as weak, failed, or still acceptable.
The target settings control whether the projected objective is shown and how far it is placed from the breakout area. The visual settings then manage panel visibility, panel placement, font sizing, historical object behavior, and label density so the script can remain clean in live use and in publish screenshots.
Limitations & Transparency
This script is a breakout-quality framework, not a prediction engine. It does not know in advance whether a breakout will continue. It evaluates the quality of a breakout after a valid outside-close event occurs and then tracks how price behaves afterward. That distinction is important.
The ATR envelope is an adaptive reference, which means the same market move may be classified differently under different volatility regimes. That is intentional. The script is designed to respond to changing market structure, but any adaptive model will also reflect the sensitivity of its settings. Users should therefore expect the behavior of the tool to vary across symbols, timeframes, and volatility environments.
Volume inputs may also behave differently across markets and data feeds. On some instruments, volume can add useful confirmation. On others, it may be less informative. For that reason, volume should be treated as a supporting factor rather than as an absolute truth layer.
The target projection is a chart-planning feature, not a guaranteed outcome. Likewise, a breakout failure label does not mean the market cannot later recover, and a target hit does not mean the move was universally optimal. The script is meant to help structure chart reading, not replace trade management, context analysis, or personal decision-making.
How this script differs from our other AG Pro tools
Within the AG Pro lineup, this script is intentionally positioned as a volatility-envelope breakout tool. It does not compete with our box-based breakout logic, our period-high/low breakout logic, or our static break-retest logic. Its role is to answer a different question: did price achieve meaningful acceptance outside an adaptive ATR shell, and did that acceptance survive the first return test?
That makes it especially useful when traders want a volatility-adjusted view of expansion quality. In markets where static levels are repeatedly pierced, an adaptive envelope framework can provide a cleaner read on whether the move is truly escaping current volatility conditions or simply stretching within ordinary noise.
In that sense, the script is not a replacement for our other breakout-oriented tools. It is a separate layer with a different reference model, different retest logic, and a different chart story. That separation is deliberate and is one of the reasons the script belongs in its own category inside the broader AG Pro collection.
Risk Disclosure
This script is an analytical chart tool designed to visualize volatility-adjusted breakout conditions, breakout quality, and post-breakout behavior. It is not financial advice, not a signal service, and not a guarantee of future price direction.
All breakout conditions can fail. Momentum can fade, volume can be inconsistent, and throwback behavior can change quickly. Markets remain uncertain, and no indicator can eliminate risk. Users should always apply their own market judgment, risk controls, and execution rules.
Use the script as a structured decision-support layer, not as a stand-alone trading instruction. Confirmation from broader context, trend conditions, liquidity structure, and personal risk management remains essential.
Indicator

Ultimate Opening Range Breakout [LuxAlgo]The Ultimate Opening Range Breakout indicator is a comprehensive toolkit designed to identify, visualize, and analyze price movements following the initial market session. It empowers traders to define a specific opening range and monitor subsequent breakouts with integrated volume analysis, automated trailing stops, and a performance-tracking dashboard.
🔶 USAGE
The indicator identifies the high and low prices of a user-defined session (e.g., the first 30 minutes of the New York open) and projects potential expansion targets based on that range. Traders can use these levels to identify breakout opportunities and set realistic price targets.
🔹 Breakout Signals & Volume
When price crosses above the range high or below the range low, the script generates "BULL BREAK" or "BEAR BREAK" labels. These signals include a volume context suffix:
(HV) : High Volume breakout, where current volume exceeds the 20-period average. (LV) : Low Volume breakout, suggesting a potential lack of conviction behind the move.
🔹 Trailing Stop & Optimization
A dynamic ATR-based trailing stop can be enabled to manage open positions. To help refine your strategy, the built-in Stop Optimizer runs simultaneous simulations of five different ATR multipliers in the background. It identifies which multiplier would have yielded the highest cumulative profit based on historical session data.
🔹 Hit Rate Dashboard
The indicator includes a real-time statistical table that tracks the "Hit Rate" of each expansion target. This allows you to see at a glance what percentage of sessions successfully reached Target 1, 2, or 3, helping you gauge the probability of price reaching specific levels on any given day.
🔶 DETAILS
🔹 Opening Range Volume Profile (ORVP)
Unlike standard range indicators, this tool includes an intra-range Volume Profile. It calculates the distribution of volume within the opening range itself, highlighting the Point of Control (POC). This helps traders identify where the most significant positioning occurred before the breakout.
🔹 Adaptive Scaling
The Volume Profile utilizes an asset-adaptive scaling mechanism. By using the Average True Range (ATR) to determine "price buckets," the profile remains visually consistent whether you are trading high-priced indices or low-priced penny stocks.
🔶 SETTINGS
🔹 Session Settings
Opening Range Session : Define the time window for the range (e.g., 0930-1000). Timezone : Adjust the session time to match your local or exchange timezone.
🔹 Calculation Settings
Range Source : Choose between using the High/Low or the candle Close to define the range. Extension Type : Switch between standard Multiples or Fibonacci levels (0.382, 0.618, 1.0).
🔹 Volume Profile
Number of Rows : Adjusts the vertical granularity of the profile. Profile Width : Controls how far the profile extends horizontally from the range.
🔹 Trailing Stop & Optimizer
ATR Multiplier : The sensitivity of the active trailing stop. Show Stop Optimizer : Enables the background simulation to find the most profitable multiplier.
🔹 Plotting Duration
End Plotting At : Choose to stop drawing levels at specific market closes (NY, London, or Manual) to keep the chart clean after trading hours. Indicator

AG Pro Consolidation Breakout Quality [AGPro Series]AG Pro Consolidation Breakout Quality
Overview / What it does
AG Pro Consolidation Breakout Quality is an overlay tool designed to detect compression zones and evaluate the quality of the breakout that emerges from them. Instead of marking every simple range expansion, the script first looks for a valid consolidation structure, then measures how convincing the breakout is once price closes outside the box.
The core idea is straightforward: not every breakout from a tight range carries the same informational value. Some breaks occur with weak commitment, low participation, and immediate failure. Others show stronger intent through better candle structure, stronger relative volume, longer pre-break compression, and cleaner continuation behavior. This script is built to separate those conditions visually and systematically.
The indicator automatically identifies consolidation zones using a narrow-range logic relative to ATR. When a valid box forms, the structure is drawn on the chart. If price closes beyond the upper or lower edge of that box, the script registers a breakout or breakdown and assigns a quality score. A throwback event can also be tracked after the break, helping users distinguish cleaner expansions from breaks that immediately revisit the zone.
This makes the script useful for traders who want to monitor compression-to-expansion behavior in a structured way. It can be used to review developing ranges, compare breakout quality across instruments, and filter visual attention toward stronger or weaker breakout events without turning the chart into a cluttered signal feed.
Unique Edge
The differentiating idea behind this tool is that it does not treat consolidation and breakout as two unrelated events. It treats them as one sequence: compression, release, validation, and possible throwback. That sequence is then scored.
Many breakout tools only draw a box or mark the first candle that moves outside a recent range. This script adds a second layer by evaluating the break itself. Volume participation, the strength of the closing position, the duration of the consolidation, and the efficiency of the breakout candle all contribute to the final quality read. If price quickly throws back into the prior box, that weakness is also reflected.
This makes the script a natural sibling to AG Pro Break-Retest Quality, but it is not a duplicate. Break-Retest Quality focuses on retest behavior after a level break. Consolidation Breakout Quality begins one step earlier by focusing on the compression box itself, the first breakout from that structure, and the immediate integrity of that release. The emphasis here is the quality of expansion from consolidation, not the later retest workflow.
Methodology
1) Consolidation detection
The script scans for a sequence of relatively narrow bars. Narrowness is measured against ATR, so the detection logic adapts to the volatility environment of the symbol rather than relying on a fixed tick or percentage threshold. Once the required number of bars is reached, a consolidation box is formed from the local high-low range of that sequence.
2) Breakout / breakdown detection
A bullish breakout is registered when price closes above the upper boundary of the active consolidation box. A bearish breakdown is registered when price closes below the lower boundary. The breakout level is then projected forward visually so the user can continue tracking the structure after the event.
3) Quality scoring
The script assigns a 1 to 5 quality score using a weighted ruleset built around the breakout event:
- Base breakout occurrence
- Relative volume expansion compared with a volume moving average
- Strength of the close beyond the box boundary
- Duration of the consolidation before release
- Body efficiency of the breakout candle
4) Throwback context
After the breakout, the script can monitor whether price returns back into the broken consolidation box within a user-defined lookback window. This is treated as a sign of weaker follow-through and can be displayed directly on the chart for fast context reading.
5) Visual workflow
The chart uses a structured visual hierarchy:
- Consolidation box
- Breakout or breakdown label
- Throwback warning label
- Quality score card
- Breakout level projection
- Compact info panel
The goal is to keep the workflow readable while preserving enough structure for live chart use.
Signals & Alerts
The script can generate alerts for:
- Bullish breakout
- Bearish breakdown
- High-quality breakout conditions
- Elite-quality breakout conditions
- Throwback warning
- Any breakout event
This allows the tool to be used either as a visual chart companion or as part of a broader alert-driven workflow. Users who prefer stricter confirmation logic should configure alerts in a way that matches their execution style.
Key Inputs
Consolidation Settings
- Consolidation Length: number of bars required to form a valid consolidation
- ATR Multiplier: sensitivity threshold for narrow-range detection
- ATR Length: volatility lookback
- Max Zones to Display: keeps chart objects under control
Quality Scoring
- Volume Spike toggle
- Volume MA Length
- Volume Spike Multiplier
- Close Position scoring toggle
- Throwback monitoring toggle
- Throwback lookback length
Visual Settings
- Box color
- Bullish breakout color
- Bearish breakdown color
- Throwback color
- Box, level, score, arrow, and panel visibility
- Label size controls
Alerts
- Minimum score threshold for alert relevance
Limitations & Transparency
This script is a market-structure visualization and event-quality tool. It is not a prediction engine, and it does not claim that every high score will lead to continuation or that every low score will fail. The score is a structured summary of selected breakout characteristics, not a guarantee of outcome.
Consolidation detection depends on the selected ATR settings and bar count. Different symbols, sessions, and timeframes may require different parameter values. Users should expect the frequency and strictness of the boxes to change when those settings are adjusted.
Volume-based logic may be more informative on instruments and venues where reported volume is meaningful. On some markets, volume behavior can be less consistent, which may reduce the usefulness of the volume component.
Throwback detection is intended as context, not as a complete post-break trade management model. A throwback can represent weakness, but in some workflows it may also represent a later confirmation opportunity. The script leaves that interpretation to the user.
Risk Disclosure
This indicator is for chart analysis, structure review, and breakout context evaluation only. It does not provide financial advice, investment recommendations, or guaranteed trade outcomes. All trading and investing involve risk, including the risk of loss. Users should evaluate the tool on their own symbols, timeframes, and execution rules before relying on it in live decision-making.
Indicator

AG Pro Inside Bar Breakout Quality [AGPro Series]AG Pro Inside Bar Breakout Quality
Overview / What it does
AG Pro Inside Bar Breakout Quality is an overlay tool built to study one of the market’s most familiar compression structures: the inside bar. Instead of stopping at simple detection, the script evaluates what happens after the pattern forms and grades the breakout attempt with a structured quality model. The result is a workflow-oriented view of inside bar compression, breakout strength, and failed continuation behavior.
The script first identifies a strict inside bar condition, where the current bar remains fully contained within the previous bar’s range. That parent range becomes the active reference zone. From there, the script monitors whether price resolves above or below the structure, whether the move is confirmed by close, whether volume supports the breakout, and whether the breakout later fails and re-enters the range within a user-defined window.
This is not designed as a generic “any breakout” marker. Its purpose is narrower and more specific: it focuses on a compact volatility contraction event, then measures how decisively price leaves that compression. In practical chart work, this helps separate a low-commitment range poke from a more convincing expansion move.
The visual presentation is intentionally structured. Inside bar zones are boxed, breakout direction is marked, quality is scored, and fakeouts are labeled when the breakout reverses back into the monitored range. This makes the script suitable for traders who want a cleaner way to inspect inside bar behavior without manually drawing every structure.
Unique Edge
The main difference here is that the script does not treat every inside bar break as equally meaningful. Many tools stop at “pattern detected” or “level broken.” This script adds a second layer: breakout quality. That layer is derived from close position, volume context, candle body participation, and alignment with the parent candle’s directional bias.
A second differentiator is the built-in fakeout logic. After a breakout is detected, the script continues to watch price for a limited number of bars. If the move quickly returns back through the breakout boundary, the event is tagged as a fakeout. This adds post-event context instead of only marking the first directional move.
Another distinction is that the methodology is deterministic and chart-native. The logic is rule-based, visible, and reproducible from bar to bar. Users can decide whether to require close confirmation beyond the inside bar range, whether to require volume confirmation, and how strict they want the displayed threshold to be through the minimum score filter.
In short, this script is not only about finding compression. It is about ranking the quality of the expansion attempt that follows the compression, while also acknowledging that some breakouts fail quickly and should be read differently.
Methodology
1) Inside Bar Detection
An inside bar is identified when the current bar’s high is lower than the previous bar’s high and the current bar’s low is higher than the previous bar’s low. This creates a strict containment definition based on the previous candle’s full range.
2) Reference Zone
Once an inside bar is detected, the prior candle becomes the parent reference bar. Its high and low define the active breakout boundaries. That range can be visualized as a box, with an optional midpoint line to make the compression zone easier to read on chart.
3) Breakout Confirmation
A bullish breakout occurs when price moves above the parent high. A bearish breakout occurs when price moves below the parent low. Users can choose whether breakout confirmation should be based on close beyond the range or on a less restrictive intrabar break condition.
4) Quality Score
Each breakout can be scored on a 0–10 scale. The score is built from multiple components:
- close position relative to the inside bar boundary
- volume ratio versus the selected moving average
- body participation within the breakout candle’s total range
- directional alignment between the breakout and the parent candle bias
This scoring model is designed to estimate how committed the breakout candle appears, rather than assuming all breaks have equal informational value.
5) Fakeout Detection
If enabled, the script monitors a user-defined number of bars after breakout. A bullish breakout that returns back below the upper boundary within that window is labeled as a bull trap / fakeout. A bearish breakout that returns back above the lower boundary within that window is labeled as a bear trap / fakeout.
6) Visual Layer
The script can display the inside bar zone, midpoint, breakout arrows, score labels, and fakeout markers. A summary panel tracks aggregate statistics such as total inside bars, total breakouts, breakout direction counts, fakeouts, and the latest breakout score.
Signals & Alerts
The script can provide alert conditions for:
- bullish inside bar breakout
- bearish inside bar breakout
- fakeout detection
- high-quality breakout events
- any breakout event
These alerts are intended to help users monitor the pattern and its resolution more efficiently. They do not replace trade planning, confirmation from broader market context, or independent risk management.
Key Inputs
Min Score to Show Breakout
Filters displayed breakout labels by quality threshold. This can be useful for reducing low-quality visual noise.
Volume Confirmation Required
When enabled, breakout evaluation requires volume to be above its moving average threshold. This can help remove low-participation breaks.
Volume MA Period
Defines the lookback length for average volume comparison.
Require Close Beyond IB
When enabled, breakout confirmation depends on bar close beyond the parent range. This creates a more conservative and more stable breakout definition.
Max IBs to Display
Controls how many recent structures and related objects remain visible on chart.
Show IB Box / Midline / Breakout Arrow / Score Label
Lets users decide how much visual detail they want to keep on screen.
Glow Effect on High Score
Adds emphasis to stronger breakout events without changing the underlying logic.
Fakeout Window
Defines how many bars after breakout the script should continue monitoring for a return back through the breakout boundary.
Limitations & Transparency
This script studies inside bar compression and subsequent breakout behavior. It does not claim to identify all meaningful consolidations, and it does not attempt to classify every market regime. The methodology is intentionally focused on one structure.
The score is a rule-based quality model, not an objective measure of future outcome. A high score does not guarantee continuation, and a lower score does not guarantee failure. It simply reflects how the breakout candle and its context behave according to the script’s internal criteria.
Volume-based interpretation may vary across symbols and markets. On some instruments, especially those with inconsistent or synthetic volume data, volume confirmation may be less informative than on others. Users should evaluate whether volume filtering is appropriate for the asset they are studying.
Fakeout detection is also definition-dependent. The script labels a fakeout when price returns through the breakout boundary within the selected lookback window. Different traders may prefer a different timing window or a different failure definition.
As with any overlay, chart readability depends on market volatility, timeframe, and user settings. On lower timeframes or during highly active periods, more visual events may appear. The built-in filters and display controls are there to help manage that density.
Risk Disclosure
This script is an analytical tool for chart study. It is not financial advice, not a trade recommendation, and not a promise of future results.
Inside bar breakouts can behave differently across timeframes, instruments, and market regimes. Users should not rely on a single pattern, score, or alert in isolation. Context still matters, including trend condition, liquidity environment, nearby structure, volatility regime, and execution discipline.
Before using this script in any live decision process, it should be reviewed in the specific market and timeframe relevant to the user’s own approach. Testing, observation, and risk controls remain essential.
Indicator

AG Pro Liquidity Sweep Quality [AGPro Series]AG Pro Liquidity Sweep Quality
OVERVIEW / WHAT IT DOES
AG Pro Liquidity Sweep Quality is a pivot-based overlay designed to map bullish and bearish liquidity sweep events around confirmed swing highs and swing lows. Instead of only flagging whether price traded beyond a prior level, the script evaluates whether that move behaved like a meaningful rejection or a weak sweep. The result is a structured liquidity sweep indicator that focuses on sweep quality, not only sweep detection.
In practical terms, the script looks for price moving above a prior swing high or below a prior swing low and then closing back through that level on the same bar or, if enabled, on the next bar. This behavior is commonly associated with stop hunts, failed breakout attempts, failed breakdown attempts, and short-term rejection events around visible liquidity. The script then ranks the event using a multi-factor quality model so the chart does not treat every sweep as equally important.
This makes the tool relevant for traders studying liquidity sweep behavior, smart money concepts, ICT-style chart reading, rejection anatomy, wick-driven reversals, sweep confirmation, and swing-based context. It is not built to predict direction on its own. It is built to organize sweep events so users can distinguish weaker noise from stronger rejection structures.
UNIQUE EDGE
The main objective of this script is not to publish another generic liquidity grab marker. Its edge comes from the fact that it scores each confirmed sweep using a quality framework. That framework combines how deeply price traded through the level, how decisively it closed back beyond the level, the wick-to-body relationship of the sweep bar, relative volume behavior, swing freshness, nearby swing crowding, and optional higher-timeframe bias alignment.
This matters because many sweep-style tools stop at a binary answer:
sweep happened / sweep did not happen.
This script asks a more useful follow-up question:
how good was that sweep?
That distinction is important on real charts. Some liquidity sweeps show strong rejection, clean close-back behavior, fresh structure, and supportive context. Others are simply noisy level violations inside a crowded area. By assigning a quality score, the script is designed to help users compare sweep events with more nuance.
Another distinguishing feature is that the script separates watch conditions from qualified conditions. A level can first be challenged, then either reclaim cleanly or fail to reclaim. This helps reduce the tendency to treat every level breach as a reversal event.
METHODOLOGY
1) SWING DETECTION
The script uses confirmed pivot highs and confirmed pivot lows as its structural reference points. These pivots are not assumed in advance. They become available only after the user-defined Pivot Strength confirmation process is complete.
2) SWEEP TRIGGER
A bearish sweep scenario begins when price trades above a stored swing high.
A bullish sweep scenario begins when price trades below a stored swing low.
3) QUALIFICATION
A sweep is considered qualified when price closes back through the swept level. By default, the script can evaluate same-bar reclaim behavior and, optionally, next-bar reclaim behavior.
4) QUALITY MODEL
Each qualified sweep is scored using multiple factors, including:
- penetration relative to ATR
- rejection distance back through the level
- wick-to-body ratio
- relative volume versus a recent baseline
- freshness of the swing level
- nearby level crowding penalty
- optional higher-timeframe trend alignment bonus
The final output is normalized into a simple 1 to 10 quality score so chart reading remains fast and visually clean.
5) VISUAL MAPPING
Qualified sweeps can display:
- direction label
- quality score label
- sweep zone box
- dashed memory line at the swept level
- optional chart background tint
- compact minor markers for lower-priority qualified sweeps
This allows the chart to remain informative without forcing every event to carry the same visual weight.
SIGNALS & ALERTS
The script includes deterministic alert conditions for:
- Bull Sweep Trigger
- Bear Sweep Trigger
- Bull Sweep Qualified
- Bear Sweep Qualified
- High Quality Bull Sweep
- High Quality Bear Sweep
A trigger means price challenged the stored liquidity level.
A qualified sweep means price also reclaimed the level according to the script rules.
A high-quality sweep means the final score exceeded the selected threshold.
These states are intended to help users organize workflow and review price behavior. They are not instructions to buy or sell.
KEY INPUTS
Pivot Strength
Controls how swings are confirmed. Higher values generally reduce noise but also make structural detection slower and more selective.
Max Swing Age
Limits how long old swing levels remain eligible. This helps keep the liquidity map focused on fresher structure.
Allow Next-Bar Reclaim
Allows the script to qualify a sweep when the reclaim happens on the next bar instead of only the sweep bar itself.
ATR Length
Used in the quality engine to normalize sweep depth and rejection distance.
Relative Volume Length
Defines the baseline used for volume comparison.
Crowding Width (ATR)
Helps penalize sweeps occurring in dense structural clusters, where nearby levels can reduce interpretive clarity.
Higher Timeframe and HTF EMA Length
Used to build an optional bias filter so aligned sweeps can receive a context bonus.
Min Score For Full Labels
Lets users keep high-information labels on stronger sweeps while weaker qualified sweeps can remain as compact markers.
Same-Side Full Label Cooldown
Reduces repeated full labels in the same direction over a short span, improving chart readability.
LIMITATIONS & TRANSPARENCY
This script is a chart-organization tool, not a stand-alone decision engine.
Because the logic is pivot-based, swing levels are only confirmed after the chosen Pivot Strength delay. That means the structural reference points are confirmed swings, not instantly-known highs or lows.
A liquidity sweep on one market, timeframe, or volatility regime may not behave the same way on another. The scoring framework is designed to rank events relative to the script's own rules, not to certify that a sweep will lead to reversal or continuation.
Higher relative volume may improve context, but volume confirmation does not guarantee outcome quality.
The higher-timeframe alignment feature is a contextual filter. It should not be interpreted as a macro trend forecast.
Like any visual overlay, this tool can produce signals in choppy or highly reactive conditions that later prove less useful than they first appeared. Parameter selection matters.
WHAT THIS SCRIPT IS NOT
This script is not a promise of reversal.
It is not a complete smart money framework.
It is not a substitute for execution planning, risk management, or broader market context.
It does not claim to detect institutional intent.
It does not classify every level break as tradable.
Instead, it focuses on one specific chart behavior:
sweep-and-reclaim quality around confirmed swing liquidity.
RISK DISCLOSURE
This indicator is for analytical and educational use only. It does not provide financial advice, investment advice, or guaranteed trade outcomes. Markets can remain irrational, trend aggressively, or ignore local sweep signals for extended periods. Users should validate any chart workflow with their own process, risk controls, and market understanding before acting on any signal or alert.
If you use this tool, it is generally best treated as a structural filter inside a broader workflow rather than as a stand-alone trigger.
AGPro Series note:
This publication is designed to emphasize structured chart reading, deterministic event definitions, and transparent methodology over promotional claims or outcome promises.
Indicator

AG Pro ORB Quality [AGPro Series]AG Pro Opening Range Breakout Quality
OVERVIEW / WHAT IT DOES
AG Pro Opening Range Breakout Quality is a session-structure indicator built to evaluate how price behaves around the Opening Range rather than treating every early breakout as equally meaningful.
The script defines an Opening Range from a user-selected session window, locks that range when the session window ends, and then tracks whether price breaks above or below that range with constructive follow-through, delayed expansion, weak continuation, retest acceptance, or failure back into the range.
Instead of acting like a simple breakout marker, this tool is designed to help organize the sequence that often matters most after the range is formed:
range construction, first directional break, follow-through quality, retest behavior, acceptance, and failed continuation.
This makes it more useful for traders who want a structured way to study whether the market is truly accepting price outside the Opening Range, or only probing beyond it temporarily.
UNIQUE EDGE
Most Opening Range tools focus mainly on drawing the range and marking the first break.
This script is designed to go one step further by grading the quality of that break and the quality of post-break behavior.
Its main edge is not the box itself. Its edge is the attempt to classify whether the move is:
clean,
good but delayed,
weak,
accepted after retest,
or rejected back into the range.
That makes the script conceptually different from a generic breakout overlay and also different from a broad market-structure or break-retest map. This indicator is specifically anchored to the Opening Range and to the behavior that follows that range.
METHODOLOGY
1) Opening Range Construction
The script builds an Opening Range from the chosen session window and stores:
- range high
- range low
- optional midpoint
2) Break Detection
After the range is locked, the script scans for the first qualified directional break within a defined search window.
3) Quality Engine
Once a break appears, the script evaluates it using a rules-based scoring framework. The score can incorporate factors such as:
- displacement beyond the range
- body efficiency versus wick behavior
- timing of the break relative to the range lock
- optional relative volume context
- directional alignment versus a moving average reference
- post-break extension quality
- retest depth and retest acceptance
4) State Transition Logic
The script then maps price behavior into structured states such as:
- Building Range
- Watching Break
- Bull Break Detected
- Bear Break Detected
- Bull Acceptance
- Bear Acceptance
- Failed Back In
- Range Expired
5) Visual Organization
The chart can display the Opening Range, the active acceptance zone, and projected target levels so that the user can visually compare the range location, the active accepted area, and nearby expansion references.
SIGNALS & ALERTS
The script can generate alerts for:
- break events
- acceptance events
- failure events
These alerts are intended to notify the user when a defined state transition occurs under the script's internal rules.
They should be treated as workflow events, not as standalone trading instructions.
KEY INPUTS
Opening Range
- Session Label
- Opening Range Session
- Timezone
- Engine Timeframe
- Range Extension Bars
- Show Midline
Quality Engine
- Late Break Threshold
- Acceptance Confirmation Bars
- Break Search Window
- Failure Tolerance
- Relative Volume Length
- Use Volume in Score
Projected Targets
- Show Targets
- T1 / T2 / T3
- Target Multipliers
- Target Ray Width
- Target Label Style
Style
- Theme
- State Labels
- Background Tint
- Label Size
- Label Mode
- Hero OR display
- Acceptance Ribbon
- Minimal OR Tag
- Right-side layout controls
Panel
- Panel Position
- Panel Font Size
- Score Meter
HOW THIS SCRIPT IS DIFFERENT
This script is not meant to be a general-purpose support/resistance map, and it is not meant to be a broad break-retest engine applied to every chart structure.
Its scope is narrower by design.
The entire logic is centered on the Opening Range and what happens immediately after that range is established. Because of that, the script is more session-specific and more sequence-specific than many broader structure tools.
It is also not a plain "Opening Range breakout = signal" overlay. A break can still be weak, late, accepted after retest, or rejected back into the range. That distinction is the core of the script.
LIMITATIONS & TRANSPARENCY
This is a rules-based interpretation tool, not a predictive model.
The score is an internal quality estimate derived from the script's selected factors and thresholds. It should not be treated as an objective market truth.
Opening Range behavior can vary significantly by instrument, volatility regime, session participation, and timeframe. A configuration that is useful on one symbol may not behave the same way on another.
Projected targets are reference expansions based on the script's range logic. They are not guarantees, forecasts, or required destinations.
Retest and acceptance behavior are also dependent on the selected engine timeframe. Lower engine timeframes may capture more detail, while higher ones may smooth some intrabar behavior.
Users should review settings carefully and test the script on the instruments and sessions they actually follow.
WHAT IT IS NOT
This script is not:
- a guarantee of breakout continuation
- a promise that every accepted break will trend
- a substitute for independent risk management
- a standalone reason to enter or exit a trade
- financial advice
RISK DISCLOSURE
This indicator is provided for educational and analytical use.
All trading involves risk. Markets can reverse quickly, fail to follow through, or invalidate a setup even when a breakout initially looks constructive.
Use the script as a structured chart-reading aid, not as a certainty engine. Position sizing, stop placement, execution quality, liquidity conditions, and broader market context remain the user's responsibility.
If you use alerts, projected targets, or the quality score in a workflow, they should be interpreted within a broader decision process rather than in isolation.
Indicator

OBV with Kalman Filter Improv [TechnicalZen]Reversals, Breakouts & Re-Entries: OBV with Kalman Filter Improv
What This Indicator Does
This indicator transforms On-Balance Volume into a visual momentum instrument. Raw OBV is normalized to a 0-100 scale, rendered as stair-step candles with a continuous color gradient, and overlaid with a dual Kalman-filtered ribbon that tracks the flow trend with adaptive precision.
The result is a single pane that answers three questions at a glance: Is volume flow accumulating or distributing? How strong is the conviction? Where are the reversal, breakout, and re-entry points?
No footprint data required. No premium subscription needed. Pure price action and volume.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Why OBV Matters More Than Raw Volume
Raw volume bars tell you how much traded. They do not tell you which direction the volume was pushing. A high-volume bar during a selloff looks identical to a high-volume bar during a breakout rally.
On-Balance Volume assigns direction. When price closes up, the bar's volume is added. When price closes down, it is subtracted. The running total — OBV — reveals the persistent pressure beneath the surface. Rising OBV with flat price means accumulation. Falling OBV with rising price means distribution. These divergences are invisible on a standard volume histogram.
This indicator takes OBV further by normalizing it into a bounded oscillator, smoothing it for clarity, and applying Kalman filtering for adaptive trend detection.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
How It Works
The indicator processes OBV through four stages.
Stage 1 — Normalize to 0-100
Raw OBV is an unbounded cumulative number that grows indefinitely. This makes it difficult to compare across time periods or instruments. The indicator applies a rolling min-max normalization over a configurable lookback window (default 100 bars), mapping OBV into a 0-100 scale.
At 100, OBV is at its highest point within the lookback. At 0, its lowest. At 50, it sits at the midpoint of its recent range. This creates a bounded oscillator from a trending series.
Stage 2 — Stair-Step Candles
The normalized OBV is rendered as candles where each bar's open equals the previous bar's close. This creates seamless stair-step blocks with no gaps and no overlaps. The candles show the direction and magnitude of each bar's contribution to the flow — a tall green block means a strong volume push upward, a tall red block means aggressive selling pressure.
Stage 3 — Position-Based Color Gradient
Candle color is determined by where the candle sits in the 0-100 range, not merely whether it went up or down:
Bright green (above 70) — strong bullish accumulation zone
Yellow-green (50-70) — moderate bullish flow
Yellow (around 50) — neutral, transition zone
Orange (30-50) — weakening flow, bearish lean
Red (below 30) — strong bearish distribution zone
This gradient reveals the market's volume state at a glance. Candles clustered at the top in green signal sustained accumulation. Candles dropping through yellow into red signal a regime shift.
Stage 4 — Dual Kalman Ribbon
Two Kalman-filtered lines track the normalized OBV at different speeds:
Short KF (default 20) — responsive to recent flow shifts
Long KF (default 80) — tracks the underlying flow trend
When the short line is above the long line, the ribbon fills bullish. When below, bearish. The Kalman filter adapts its responsiveness automatically — smoothing through noise while responding quickly to genuine regime changes. This is fundamentally superior to any fixed-length moving average.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Reading the Three Signals
Reversals
A reversal signal appears when candles have been clustered at one extreme (above 70 or below 30) and begin migrating toward the midline. The color gradient shifts — green fading to yellow, or red fading to orange. The Kalman ribbon begins to narrow as the short line approaches the long line. When the ribbon flips color, the reversal is confirmed by volume flow, not just price action.
Breakouts
A breakout appears as a large candle that punches through the 70 or 30 threshold line with expanding body size. The Kalman ribbon is already aligned in the breakout direction (short above long for bullish, below for bearish). This confirms that volume flow is supporting the price move — not just a wick or a fake breakout.
Re-Entries
After a breakout, price often pulls back. During a healthy pullback, the candles dip toward the midline (50) but the Kalman ribbon stays in the trend direction . Candles may turn yellow briefly but do not reach the opposite extreme. When candles resume their original color and move away from the midline, that is the re-entry — volume flow confirms the trend is intact.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Why Kalman Filtering — Not EMA, SMA, or Hull
Traditional moving averages apply a fixed smoothing recipe regardless of market conditions. In a quiet market, they lag. In a volatile market, they whipsaw. The trader is forced to manually change the length setting as conditions change.
The Kalman filter solves this structurally. It maintains an internal estimate of both the value and its uncertainty . On every bar, it computes a gain that automatically balances between trusting the new data and trusting its prediction. When data is noisy, the gain drops and the filter smooths aggressively. When a genuine shift occurs, the gain rises and the filter responds immediately.
Two parameters control this behavior:
R (Measurement Noise) — how much noise is expected in each bar's data. Higher values produce smoother output.
Q (Process Noise) — how quickly the underlying trend is expected to change. Higher values allow faster adaptation.
The dual-line ribbon (short KF vs long KF) combines the adaptive smoothing with trend direction detection. The crossover of two Kalman-filtered lines is more reliable than traditional MA crossovers because the filter has already absorbed the noise before the crossover happens.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Reading the Indicator
The Candles
Green blocks at top — strong sustained buying pressure. Trend is healthy.
Red blocks at bottom — strong sustained selling. Downtrend confirmed by volume.
Yellow/orange blocks at midline — indecision. Flow is balanced. Wait for direction.
Color transition — the gradient shift (green to yellow, or red to orange) often leads price by several bars.
The Kalman Ribbon
Green fill (short above long) — volume flow trend is bullish
Red fill (short below long) — volume flow trend is bearish
Ribbon narrowing — trend weakening, potential flip ahead
Ribbon widening — trend conviction increasing
The Threshold Lines
70 line — overbought in volume flow terms. Sustained presence above = strong trend, not necessarily a sell signal.
50 line — equilibrium. Transitions through this level signal regime changes.
30 line — oversold in volume flow terms. Sustained presence below = strong downtrend.
Line colors match the candle gradient — they shift with the regime.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Key Settings
Normalization Lookback (default: 100)
Rolling window for min-max scaling. Higher values produce smoother oscillation with fewer extremes. Lower values make the indicator more reactive to recent volume changes.
HA Smoothing Passes (default: 1)
Number of additional smoothing passes on the normalized OBV. 1 = standard stair-step. 2-3 = smoother candles with less noise.
Short KF / Long KF Length (default: 20 / 80)
Controls the responsiveness of the two Kalman lines. The gap between them determines how quickly the ribbon detects trend changes.
Measurement Noise R (default: 0.01)
Higher = smoother Kalman output. Lower = more reactive to each bar.
Process Noise Q (default: 0.10)
Higher = faster adaptation to regime shifts. Lower = more rigid trend following.
Upper / Lower Threshold (default: 70 / 30)
Defines the overbought/oversold boundaries for the volume flow oscillator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Divergence — The Most Powerful Signal
When price makes a new high but the OBV candles fail to reach the upper zone (or are falling), volume is not confirming the move. This bearish divergence often precedes reversals by several bars. The Kalman ribbon will begin narrowing before the price chart shows any weakness.
Conversely, when price makes a new low but OBV candles hold above the lower zone or begin rising, that is bullish divergence — accumulation is happening beneath the surface.
The gradient coloring makes these divergences immediately visible. Price may look strong, but if the candles are orange instead of green, the volume story disagrees.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
What This Indicator Is Not
It does not generate automated buy or sell signals . It provides visual regime information for the trader to interpret.
It does not use footprint or order flow data . It is built on standard OBV which infers direction from price close. For actual bid/ask decomposition, a footprint-based indicator is required.
It does not predict future price direction . It reveals the current state and trend of volume flow. What the market does with that flow is never guaranteed.
It is not a standalone trading system . It is a confirmation and divergence detection tool designed to complement price action analysis.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice, and it does not constitute a recommendation to buy, sell, or hold any financial instrument.
All trading involves risk. Past performance of any signal, regime detection system, or volume analysis mechanism does not guarantee future results. The normalized OBV readings, Kalman-filtered trend lines, and color gradient zones represent a computational assessment of publicly available price and volume data. They are not predictions and should not be treated as certainties.
On-Balance Volume assigns all of a bar's volume to one direction based solely on whether the close was higher or lower than the previous close. This is an approximation. A bar that closes up by one tick with heavy selling throughout will register as entirely bullish volume in OBV. Traders should be aware of this limitation.
The Kalman filter parameters (R and Q) affect responsiveness. Poorly tuned parameters can produce either excessive lag or excessive noise. The default values are designed for general use but may require adjustment for specific instruments or timeframes.
No indicator, algorithm, or model can account for all market variables including liquidity events, news-driven gaps, exchange outages, or sudden regime changes. Traders should always use independent risk management, position sizing, and their own judgment before entering any trade.
By using this indicator, you acknowledge that you are solely responsible for your own trading decisions and that the authors accept no liability for any losses incurred.
Indicator

Indicator

Scalper Pro 3 Min GoldDesigned specifically for low-timeframe scalping (ideal for 1m and 3m charts, especially on XAUUSD/Gold), the Scalper Pro 3 Min Gold is an advanced market structure breakout indicator that filters out market noise to catch explosive momentum.
Instead of giving a signal at every minor high/low cross, this script uses strict logic to ensure you only enter high-probability setups. It automatically calculates your risk and visualizes the exact Entry, Stop Loss, and Take Profit zones directly on your chart.
Key Features:
Smart Structure Breakouts: Uses internal Pivot High/Low calculations to identify true Market Structure Shifts (MSS). Stop losses are dynamically placed at the most recent logical swing low/high, not just the previous candle wick.
Consolidation Filter (Anti-Chop): The indicator analyzes the recent ATR. It requires the price to be in a tight accumulation/consolidation zone before a breakout occurs. This keeps you out of choppy, sideways markets and fakeouts.
Cooldown System: Prevents overtrading. After a valid signal is fired, the indicator enters a customizable "cooldown" period where it ignores erratic back-to-back signals.
Auto Risk:Reward Projection: Instantly draws professional Stop Loss (Red) and Target (Teal) boxes with clean labels based on your selected R:R multiplier (Default is 1:2).
How to Use:
Apply to a 1-minute or 3-minute chart (Highly optimized for Gold).
Wait for the indicator to draw the Entry/Target boxes.
The Stop Loss is automatically placed at the safest structural pivot. Execute your trade and let the price run to the projected Teal target zone.
Fully customizable inputs allow you to adjust the R:R ratio, consolidation strictness, and cooldown length to fit your personal scalping strategy. Indicator

Adaptive Trend Ribbon [JOAT]Adaptive Trend Ribbon
Introduction
The Adaptive Trend Ribbon is an advanced open-source trend-following indicator that combines multi-layer moving average analysis with real-time volatility adaptation, momentum weighting, and volume confirmation. This indicator transforms traditional ribbon systems into an institutional-grade tool by dynamically adjusting to market conditions, providing traders with a comprehensive view of trend strength, direction, and potential reversals across all timeframes.
Unlike static ribbon indicators that use fixed parameters, this system continuously adapts to volatility percentiles, momentum shifts, and volume surges, creating a responsive framework that works equally well in ranging, trending, and explosive market conditions. The indicator is designed for traders who understand that market regimes change and that adaptive systems outperform static ones in real-world trading.
Why This Indicator Exists
This indicator addresses critical limitations in traditional moving average systems by introducing adaptive intelligence that responds to market microstructure. The core innovation lies in combining multiple adaptation mechanisms:
Volatility Adaptation: Ribbon parameters adjust based on ATR percentile ranking, expanding during high volatility and contracting during consolidation
Momentum Adaptation: RSI-based momentum weighting modifies ribbon sensitivity to capture acceleration and deceleration phases
Volume Adaptation: Volume ratio analysis confirms trend validity and filters false signals during low-participation moves
Multi-Timeframe Alignment: Higher timeframe trend confirmation across three customizable periods validates directional conviction
Ribbon Compression Detection: Identifies coiling patterns that precede explosive breakouts with statistical precision
Twist Reversal System: Detects ribbon layer crossovers that signal potential trend exhaustion or reversal
Each adaptation layer provides unique intelligence. Volatility adaptation ensures the ribbon remains relevant across different market regimes, momentum adaptation captures trend acceleration, volume adaptation confirms institutional participation, MTF alignment validates conviction, compression detection anticipates breakouts, and twist detection warns of reversals.
Core Components Explained
1. Adaptive Multiplier System
The indicator calculates three distinct adaptation factors that combine into a unified multiplier:
Volatility Multiplier: Based on ATR percentile ranking over 100 bars, this factor increases ribbon responsiveness during high volatility periods and decreases it during low volatility. The calculation uses percentile ranking rather than raw ATR to normalize across different instruments and timeframes.
Momentum Multiplier: Derived from RSI deviation from the 50 midpoint, this factor amplifies ribbon sensitivity during strong momentum phases and dampens it during consolidation. The normalization ensures the multiplier remains bounded and predictable.
Volume Multiplier: Calculated as the ratio of current volume to 20-period average volume, capped at 2x to prevent extreme distortions. This factor confirms that price movements are supported by genuine participation rather than thin-market noise.
The combined adaptive multiplier averages these three factors, creating a balanced response to multiple market dimensions simultaneously. This multi-factor approach prevents over-optimization to any single market characteristic.
2. Multi-Layer Ribbon Construction
The ribbon consists of 3 to 20 customizable moving average layers (default 12) spanning from a fast length (default 5) to a slow length (default 55). The indicator supports five moving average types:
EMA (Exponential Moving Average): Responsive to recent price action, ideal for trending markets
SMA (Simple Moving Average): Equal weighting, provides stable trend identification
WMA (Weighted Moving Average): Linear weighting favoring recent data
VWMA (Volume-Weighted Moving Average): Incorporates volume into price averaging
HMA (Hull Moving Average): Reduced lag through weighted calculations and square root periods
Each ribbon layer is calculated with evenly distributed periods between fast and slow lengths. The spacing ensures smooth gradient transitions and prevents clustering that can create false signals. The ribbon can optionally use Heikin Ashi candles as the source, providing additional smoothing for noisy instruments.
3. Trend Detection and Classification
The indicator employs multiple trend detection mechanisms:
Ribbon Trend: Determined by comparing the fastest MA to the slowest MA. When fast > slow, the ribbon trend is bullish; when fast < slow, it's bearish.
Price Trend: Determined by comparing current price to the middle ribbon layer. This provides confirmation that price is aligned with the ribbon structure.
Aligned Trend: Occurs when both ribbon trend and price trend agree, indicating high-probability directional moves.
Trend strength is measured using percentile ranking of ribbon width over 50 bars. Higher percentile rankings indicate stronger trends with greater separation between ribbon layers, while lower rankings suggest consolidation or trend exhaustion.
4. Ribbon Metrics and Analysis
The indicator calculates comprehensive ribbon metrics:
Ribbon Width: Absolute distance between fastest and slowest MAs, providing a raw measure of trend strength.
Ribbon Width Percent: Width expressed as a percentage of current price, normalizing across different price levels and instruments.
Ribbon Strength: Percentile ranking of width percent over 50 bars, showing relative strength compared to recent history.
Compression Detection: Identifies when ribbon width falls below its 20-period average, signaling potential energy buildup before breakouts.
Expansion Rate: Measures the rate of change in ribbon width, identifying acceleration or deceleration in trend development.
These metrics work together to provide a complete picture of trend dynamics, from initiation through maturation to exhaustion.
5. Twist Detection System
The twist detection system identifies potential reversals by counting crossovers between adjacent ribbon layers. When multiple layers cross simultaneously (threshold: 50% of total layers), it signals a "twist" - a condition where the ribbon is reorganizing its structure, often preceding significant directional changes.
The system tracks twist count cumulatively, allowing traders to identify instruments or timeframes experiencing frequent regime changes versus those in stable trends. High twist counts suggest choppy, range-bound conditions, while low twist counts indicate clean trending environments.
6. Trend Acceleration Detection
Trend acceleration is measured using rate-of-change calculations on the middle ribbon layer:
Trend Momentum: 5-period rate of change of the mid-ribbon MA
Trend Acceleration: 3-period rate of change of trend momentum (second derivative)
When acceleration exceeds one standard deviation of its 20-period history, the indicator flags accelerating conditions. This early warning system helps traders identify when trends are gaining steam versus when they're losing momentum, even if price continues in the same direction.
7. Multi-Timeframe Alignment
The indicator requests ribbon trend data from three higher timeframes (default: 15m, 60m, 240m) and calculates an alignment score. The score ranges from -1 (all timeframes bearish) to +1 (all timeframes bullish), with values near zero indicating mixed or transitional conditions.
MTF alignment above 0.75 or below -0.75 indicates strong multi-timeframe conviction, suggesting high-probability directional moves. This feature is particularly valuable for swing traders who need confirmation that their trade direction aligns with higher timeframe structure.
Visual Elements
Ribbon Lines: Up to 20 gradient-colored MA lines with transparency increasing from fast to slow, creating a visual "ribbon" effect
Cloud Fill: Filled area between fastest and slowest MAs, colored based on trend direction and strength
Signal Labels: Text-based labels for crossovers, twists, compression breakouts, and extreme conditions
Background Heatmap: Optional gradient background showing ribbon strength intensity
Compression Zones: Subtle background highlighting during ribbon compression periods
MTF Alignment Background: Very subtle background when multi-timeframe alignment is strong
Comprehensive Dashboard: Real-time metrics table showing trend, strength, width, compression status, acceleration, twist count, volatility, momentum, volume ratio, expansion rate, adaptive factor, and MTF alignment
The dashboard displays 12 key metrics with color-coded values and status indicators, providing at-a-glance assessment of all ribbon dimensions simultaneously.
Input Parameters
Core Settings:
Ribbon Count: Number of MA layers (3-20, default 12)
Fast Length: Shortest MA period (2-50, default 5)
Slow Length: Longest MA period (10-200, default 55)
MA Type: EMA, SMA, WMA, VWMA, or HMA (default EMA)
Adaptation Settings:
Adapt to Volatility: Enable/disable ATR-based adaptation (default enabled)
Adapt to Momentum: Enable/disable RSI-based adaptation (default enabled)
Adapt to Volume: Enable/disable volume ratio adaptation (default enabled)
Use Heikin Ashi: Calculate ribbon using HA candles instead of regular OHLC (default disabled)
Display Options:
Show Cloud: Toggle ribbon cloud fill (default enabled)
Show Ribbon Lines: Toggle individual MA lines (default enabled)
Show Signals: Toggle entry/exit signal labels (default enabled)
Show Twists: Toggle twist reversal markers (default enabled)
Show Compression: Toggle compression breakout signals (default enabled)
Show Dashboard: Toggle metrics table (default enabled)
Show Heatmap: Toggle strength-based background gradient (default enabled)
Multi-Timeframe:
Enable MTF: Toggle multi-timeframe analysis (default enabled)
HTF 1/2/3: Three higher timeframe selections (default 15m, 60m, 240m)
Colors:
All colors are fully customizable including bull ribbon (neon cyan), bear ribbon (neon pink), twist (gold), compression (neon purple), and acceleration (neon green).
How to Use This Indicator
Step 1: Assess Ribbon Direction and Alignment
Check the dashboard "Trend" field and observe ribbon color. Bullish ribbon (cyan) indicates uptrend, bearish ribbon (pink) indicates downtrend. Verify that price is aligned with ribbon direction - price above ribbon in uptrends, below in downtrends.
Step 2: Evaluate Trend Strength
Monitor the "Strength" metric in the dashboard. Values above 70 indicate strong trends with high conviction, 40-70 suggests moderate trends, below 40 indicates weak or developing trends. Strong trends typically offer better risk/reward for trend-following entries.
Step 3: Watch for Compression Breakouts
When the dashboard shows "Compression: YES" and "Width" is contracting, prepare for potential breakout. Compression breakout signals appear when ribbon expands after coiling, often marking the start of new trend legs. These setups offer excellent risk/reward as stops can be placed tight to the compression zone.
Step 4: Identify Twist Reversals
Twist signals (gold labels) indicate ribbon layers are crossing, suggesting potential trend exhaustion or reversal. High twist counts in the dashboard suggest choppy conditions where trend-following strategies may underperform. Use twists as warnings to tighten stops or reduce position size.
Step 5: Confirm with Multi-Timeframe Alignment
Check MTF alignment in the dashboard. "ALIGNED" status with high percentage (>75%) confirms that higher timeframes support your trade direction. "MIXED" status suggests caution as higher timeframes may be in conflict with current timeframe trend.
Step 6: Monitor Acceleration Signals
Acceleration labels (neon green) indicate trend momentum is increasing. These often appear early in new trend legs and can signal optimal entry timing. Lack of acceleration in mature trends may warn of impending exhaustion.
Step 7: Use Volume Confirmation
Check "Volume Ratio" in dashboard. Ratios above 1.5x confirm strong participation, while ratios below 0.8x suggest weak participation. Volume-confirmed signals (labeled "STRONG BUY/SELL") offer higher probability than signals on low volume.
Best Practices
Use on liquid instruments with consistent volume patterns for most reliable adaptation
Combine with price action analysis - ribbon shows trend, price action shows entry timing
In ranging markets, reduce ribbon count and increase fast/slow length spread to filter noise
In trending markets, increase ribbon count for finer gradient visualization
Pay attention to compression zones near key support/resistance levels for high-probability breakout setups
Use MTF alignment as a filter - only take trades when alignment exceeds 75% in your direction
Twist signals are most reliable when they occur at extreme ribbon strength levels (>70 or <30)
Monitor adaptive factor in dashboard - values above 1.3 indicate high adaptation, below 0.9 indicate low adaptation
Heikin Ashi mode reduces noise but adds lag - use for very choppy instruments only
Acceleration signals work best in early trend phases, less reliable in mature trends
Volume ratio below 0.5 suggests thin liquidity - avoid new positions during these periods
Ribbon width expansion rate above 5% indicates strong trend acceleration
Indicator Limitations
Moving average-based systems inherently lag price action - ribbon confirms trends but doesn't predict them
Adaptation mechanisms require sufficient historical data - may be less reliable on newly listed instruments
MTF analysis requires data availability on all selected timeframes - some instruments may not support all timeframes
Compression detection can produce false signals in extremely low volatility environments
Twist detection sensitivity depends on ribbon count - too few layers may miss twists, too many may over-signal
Volume adaptation assumes volume data is accurate and representative - some instruments have unreliable volume
Heikin Ashi mode adds significant lag and should be used cautiously
Adaptive multiplier can become extreme during unusual market conditions - monitor dashboard values
The indicator shows what is happening, not why - fundamental catalysts can override technical ribbon signals
Ribbon crossovers can whipsaw in ranging markets - use compression detection to filter range-bound periods
Technical Implementation
Built with Pine Script v6 using:
Custom MA calculation function supporting five MA types with dynamic length parameters
Multi-factor adaptive multiplier combining volatility, momentum, and volume dimensions
Percentile-based strength calculations for normalized cross-instrument comparison
Compression detection using rolling average width comparison
Twist detection via adjacent layer crossover counting
Multi-timeframe security requests with proper lookahead settings to prevent future data leakage
Trend acceleration using rate-of-change and second derivative calculations
Dynamic color gradients based on strength percentile ranking
Comprehensive dashboard with 12 real-time metrics and color-coded status indicators
Persistent label system to prevent label proliferation and maintain chart clarity
The code is fully open-source and extensively commented for educational purposes and customization.
Originality Statement
This indicator is original in its comprehensive adaptive approach to ribbon analysis. While moving average ribbons are an established concept, this indicator is justified because:
It introduces multi-factor adaptation (volatility + momentum + volume) not found in standard ribbon indicators
The compression detection system provides statistical breakout anticipation beyond simple width measurement
Twist detection quantifies ribbon reorganization to identify reversal conditions systematically
Multi-timeframe alignment scoring provides conviction measurement across temporal dimensions
Trend acceleration tracking using second derivatives offers early momentum shift detection
The adaptive multiplier system creates a self-adjusting framework that works across all market regimes
Integration of five MA types with Heikin Ashi option provides unprecedented flexibility
The comprehensive dashboard synthesizes 12 distinct metrics into a unified intelligence panel
Persistent label system prevents chart clutter while maintaining signal visibility
Volume confirmation layer filters false signals during low-participation moves
Each component contributes unique intelligence: adaptation ensures relevance across regimes, compression detects energy buildup, twists warn of reversals, MTF alignment validates conviction, acceleration identifies momentum shifts, and the dashboard synthesizes everything into actionable intelligence. The indicator's value lies in combining these complementary perspectives into a cohesive, adaptive trend-following system.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Moving average-based systems are lagging indicators that confirm trends rather than predict them. Strong ribbon signals do not guarantee profitable trades. Past ribbon performance does not guarantee future ribbon performance. Market conditions change, and strategies that worked historically may not work in the future.
The metrics displayed are mathematical calculations based on current market data, not predictions of future price movement. Ribbon alignment, compression breakouts, and twist signals do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Indicator

AG Pro Donchian Breakout Quality [AGPro Series]AG Pro Donchian Breakout Quality
Overview / What it does
AG Pro Donchian Breakout Quality is an overlay indicator built around a simple but practical question: not every Donchian breakout carries the same informational quality, so how can that difference be visualized directly on the chart? Instead of treating every channel escape as equally meaningful, this script evaluates the structure of the breakout bar, the local channel condition, and the immediate follow-through context, then converts that information into a readable breakout quality framework. The goal is not to predict the future or to classify markets with certainty. The goal is to help the user separate cleaner breakouts from weaker ones inside a familiar Donchian channel structure.
The indicator plots the Donchian upper band, lower band, optional midline, and channel fill, then adds a quality layer on top of the raw channel logic. When price closes through the previous Donchian boundary, the script evaluates the event and assigns a score. That score is then mapped to a simple grade scale so the breakout can be read quickly without losing access to the underlying channel context. This creates a workflow that remains visually intuitive for users who already understand Donchian channels, while adding a more structured interpretation layer for breakout review.
A second focus of the script is post-breakout behavior. In practice, many breakouts are not decided by the break itself, but by what price does after the first expansion bar. For that reason, the indicator tracks an active breakout level, projects a retest zone around that level using ATR, and monitors whether price can hold that area. This makes the tool useful not only for identifying fresh breaks, but also for observing whether the market is accepting or rejecting the newly crossed boundary.
The visual design is intentionally chart-first. The channel remains the primary frame, while breakout labels, retest markers, level tags, the setup tag, and the compact state panel provide context without turning the script into a crowded dashboard. Historical label clutter is reduced by default, and the script is designed so the most recent relevant structure remains readable on active charts.
Unique Edge
The distinctive feature of this script is that it does not stop at “price broke the channel.” Traditional Donchian usage often leaves the interpretation step entirely to the user. This script keeps the Donchian framework intact, but adds an explicit breakout quality model. That means the script is not merely showing an upper-band break or lower-band break; it is also evaluating how that break occurred.
The quality model scores breakouts using multiple components rather than a single threshold. It considers breakout distance relative to ATR, breakout candle body participation, wick behavior, local channel compression, midline slope context, and optional volume confirmation. This matters because many weak breakouts can look similar to stronger ones at first glance, especially when the user is reviewing charts quickly. By ranking the event instead of only flagging it, the indicator introduces a more disciplined read on the same familiar Donchian concept.
Another differentiator is the breakout-to-retest workflow. The script identifies the breakout, stores the active level, builds a retest zone around that level, and then tracks hold behavior within a limited life window. This makes the indicator less about a one-bar event and more about the structural sequence that often matters in live chart reading: approach, break, test, hold, or fail. That sequence is especially helpful for users who do not want a Donchian tool to act like a simple channel overlay with occasional arrows.
The presentation layer is also part of the edge. Active-side emphasis, breakout shelf visualization, level tagging, a right-side setup tag, state detection, and selective event marking are included to help the chart communicate context more clearly. The script is therefore positioned as a Donchian breakout interpretation tool, not as a generic channel plotter.
Methodology
The script starts with a standard Donchian channel calculation using the selected lookback length. The highest high defines the upper boundary, the lowest low defines the lower boundary, and the midpoint between them forms the optional midline. A breakout is detected when the current close moves beyond the previous upper boundary for a bullish event, or beyond the previous lower boundary for a bearish event.
Once a breakout is detected, the script calculates a quality score. The score is built from multiple normalized components. Breakout distance measures how far the close extends beyond the prior Donchian boundary relative to ATR. Candle body participation rewards bars where the real body contributes meaningfully to the range. Wick behavior penalizes less efficient breakout bars. Midline slope acts as a directional context proxy. Channel compression evaluates whether the breakout is emerging from a relatively tighter local structure. Volume, when enabled, adds an additional confirmation layer by comparing current volume to a moving average baseline.
These components are weighted and combined into a single breakout quality score. The result is then translated into a grade scale: A+, A, B, C, or D. This grade is not a claim about trade outcome, and it is not a guarantee of continuation. It is a structured description of breakout quality according to the internal model used by the script.
After the breakout, the indicator records the active breakout level and projects a retest zone around it using ATR-based half-width logic. This active zone remains visible for a user-defined number of bars. During that window, the script monitors whether price revisits the zone and holds it according to the directional logic. When a valid hold occurs, the script can mark that event on the chart. If price invalidates the zone, the active state is cleared.
The panel summarizes the current state and the most recent breakout evaluation. Depending on chart context, the script can display conditions such as Long Breakout, Short Breakout, active retest states, watch states, or Neutral. It also reports the latest breakout score, grade, channel width relative to ATR, and the current volume ratio when volume confirmation is enabled.
Signals & Alerts
The script includes deterministic alert conditions tied to specific structural events rather than vague descriptive states.
Long Breakout
Triggered when price closes above the previous upper Donchian boundary.
Short Breakout
Triggered when price closes below the previous lower Donchian boundary.
Long Retest Hold
Triggered when a bullish breakout remains active and price revisits the retest zone without losing the active breakout level according to the script’s hold logic.
Short Retest Hold
Triggered when a bearish breakout remains active and price revisits the retest zone without reclaiming the active breakout level according to the script’s hold logic.
These alerts are event-based and intended to describe what the script detects on the chart. They are not trade instructions, and they should not be interpreted as a complete execution plan on their own.
Key Inputs
Donchian Length
Controls the lookback used for the channel boundaries.
ATR Length
Used in the quality model and for retest zone construction.
Midline Slope Lookback
Defines how the script measures midline slope for directional context.
Use Volume Confirmation / Volume SMA Length
Enables or disables the volume component and sets the averaging baseline.
Break Distance Full-Score ATR
Defines how far beyond the channel price must extend to receive a full distance score.
Channel Width Full-Penalty ATR
Controls how channel width contributes to the compression component.
Watch Threshold
Helps identify when price is approaching the upper or lower channel region.
Retest Zone Life / Retest Half-Width ATR
Sets how long the active retest zone remains valid and how wide it is.
Minimum Score For Breakout Labels
Helps reduce noise by showing breakout labels only above the chosen threshold.
Label and Panel Controls
Allow adjustment of label visibility, historical label behavior, label size, label shift, panel position, and panel font size.
Visual Style Controls
Enable or disable edge glow, breakout level tags, right-side setup tag, breakout shelf, and event candle tint.
Limitations & Transparency
This indicator is an analytical overlay, not a strategy, not an execution engine, and not a backtest report. It does not place orders, size positions, manage risk, or estimate expected return. A high breakout score does not mean price must continue, and a low breakout score does not mean reversal is guaranteed. The score only reflects how the breakout ranks according to the script’s internal weighting model.
Donchian logic is inherently sensitive to lookback selection and market regime. A shorter channel can produce more frequent events and more noise, while a longer channel can reduce event frequency and delay signals. Volume-based confirmation also depends on the instrument and session structure. On some symbols, volume can be informative; on others, it may be less useful.
Retest logic is also contextual. Not every breakout will retest, not every retest will be clean, and not every valid hold will produce meaningful continuation. The retest zone is an interpretive tool designed to help chart reading, not a universal rule set for all instruments or timeframes.
The visual elements are intended to improve readability, but users may still want to tune label thresholds, style controls, and retest settings to fit their own workflow. As with any chart tool, results can vary across assets, volatility regimes, and timeframes.
Risk Disclosure
This script is for chart analysis and educational use. It is not financial advice, not investment advice, and not a promise of future performance. Markets can move unpredictably, and breakout structures can fail without warning. Any trading or investment decision should be made using independent judgment, personal risk controls, and additional confirmation where appropriate. Indicator

Triangle Pattern Detection [Dots3Red]Triangle Pattern Detection Indicator detects and draws triangle chart patterns in real time. The indicator identifies pivot highs and lows, validates converging trendlines, calculates the mathematical apex, and classifies each pattern by type.
How it works
The indicator scans for pivot highs and pivot lows using a configurable lookback length. Once two valid pivot highs and two valid pivot lows are found, it verifies that:
The trendlines are genuinely converging (spread shrinks from left to right)
No bar between the pivots violates the trendline boundary
The upper and lower patterns are aligned in time
The pattern meets minimum and maximum width requirements
If all conditions pass, the apex is calculated mathematically as the exact intersection point of the two trendlines, and the full triangle is drawn from the shared start bar to the apex.
Pattern Types Detected
Symmetrical Triangle — both lines converging toward each other
Ascending Triangle — flat upper resistance, rising lower support
Descending Triangle — declining upper resistance, flat lower support
Rectangle — both lines near horizontal
Visuals
🟡 Electric glow triangle
▼ / ▲ Pivot markers at pattern boundaries ( commented out in the code )
🔵 Bullish breakout signal / 🔴 Bearish breakout signal with glow effect and stem line
Number label at each triangle's start for cross-referencing with the info table
Info Table (top right)
Keeps a record of the last 5 detected triangles showing:
Column - Description
ID - Triangle number
Type- Pattern classification
Width - Pattern width in bars
BO date - The day the price broke out from the triangle pattern
Status - Live breakout status — Bull / Bear / Inside
The Status column updates on every bar so you can see in real time whether price has broken out of any recent pattern.
Settings
Pivot Length - Sensitivity of pivot detection (1–10). Lower = more patterns
Max Pattern Width - Maximum bars between first and second pivots
Start Bar Alignment Tolerance - Max distance between the start of the upper and lower pivots of the triangle's sides
Max Apex Distance - How far ahead the apex can project
Min Pattern Width - Filters out patterns that are too narrow to be meaningful
Breakout Threshold % - How far the price must close beyond the trendline to confirm a breakout
Notes
All triangles are drawn on the last bar only, avoiding repainting of historical patterns
Breakout detection scans from the leftmost bar of the pattern to the apex, firing on the first confirmed close beyond the boundary
Example on BTC 🪙 chart
Indicator

ROC Regime Filter [HYPR-run]DESCRIPTION:
A reliable universal regime filter across all assets, all timeframes. Rate of change filter that classifies price action into regime states. A suite of smoothed EMAs feeds a layered ROC engine that detects when fast momentum aligns with, or diverges from, slow structure. The filter measures; it doesn't predict. When all ROC layers stack in the same direction (parallel alignment), the trend is confirmed by arithmetic. When fast ROC diverges from slow, the regime shifts. The lag is the cost of certainty. Sweet spot is 1hr to 1D; lower timeframes get noisy.
DISCOVERING EDGE
In order to gain a persistent, mechanical edge in which trades are permitted and which are filtered out, we explored a more meaningful expression of regime classification using layered multiple ROC periods to detect when fast momentum aligns with or diverges from slow structure. This resilient regime filter has been the backbone for our automated strategies since 2021.
LAYERED ROC vs SINGLE-INDICATOR REGIME
A single RSI or ADX reading flattens the market into binary (trending/not trending). Layered ROC alignment separates six distinct states, each with different permissible trade types, so the filter matches the complexity of what the market is actually doing. Six regime states gate every decision; the combination of regime color + ROC slope is the trade filter, not either one alone. Phase transitions (green to yellow, orange to green) are the actionable signals; static states just confirm what's already happening. Webhook alerts fire on macro pivots (accumulation/distribution inflections) at the regime transition, not after the move has run.
FEATURES
- Six regime states from layered ROC alignment (see color legend below)
- Early trend detection when all layers accelerate in parallel
- ROC 200 line with regime-colored gradient fill
- Macro pivot detection: strong trend exhausting into sideways, scored by where ROC 200 sits relative to its all-time range
- Accumulation/distribution context in dashboard
- ROC 200 pivot high/low divergence markers on main chart
- Consolidation markers with conviction scoring (normal vs extreme)
- Gradient candle overlay (ROC Sticks; toggle on/off)
- Two-row dashboard: row 1 = macro context (accumulation/distribution), row 2 = current regime state with directional qualifier and slope
- Dashboard dark/light theme toggle for any chart background
- Full ROC stack in data window for manual analysis
- Webhook alerts on macro pivots (accumulation/distribution)
HOW IT WORKS
ROC alignment is the core signal. When all layers stack in the same direction, that's strong trend territory (green). When fast ROC diverges from the slower layers while slow structure still holds, the engine reclassifies from strong trend to sideways (yellow), flagging a pullback rather than trend failure. Deeper corrections where intermediate layers fall below the structural anchor fire orange, indicating a correction within the primary trend. Macro pivots fire at the inflection: strong trend exhausting into sideways for the first time. The consolidation score layers this with where ROC 200 sits in its all-time range. Consolidation at extreme ROC readings (bright green/red dots) is the highest-conviction signal for reversal.
HOW TO USE
Read the regime color, not the price. Green = strong trend long, red = strong trend short, orange = deeper correction, yellow = short pullback, white = directionless. Use regimes as a directional gate: longs during green, shorts during red. Yellow flags a pullback within trend; wait for resolution back to green/red before re-entering. Orange is a deeper correction; patience or fade with confirmation from other tools. The highest-edge signals come from regime transitions, not static states. Watch for: green breaking into yellow (macro pivot, potential reversal), extended yellow resolving back to green (continuation re-entry), and the ROC slope within a regime (slope rising in orange = trend about to resume). The data window shows the full ROC stack across all layers. When fast ROC diverges from slow, that signals continuation or reversion.
MACRO CONTEXT (Dashboard Row 1)
REGIME COLOR LEGEND (Dashboard Row 2)
ALERTS
Macro pivot long fires when accumulation is detected (bull inflection). Macro pivot short fires when distribution is detected (bear inflection). Create alert: condition = this indicator, "Any alert() function call". Paste your webhook URL, set Open-ended, create. Alert payload is built into the script; works with any webhook receiver.
CREDITS
Advance/Decline gradient function: LucF Indicator
