AG Pro Stochastic Exhaustion Map [AGPro Series]AG Pro Stochastic Exhaustion Map
OVERVIEW
AG Pro Stochastic Exhaustion Map is not designed as a classic overbought / oversold reversal script.
This tool uses a stochastic framework to map trend maturity, extension pressure, momentum fatigue, and reset behavior. The objective is not to label every extreme reading as a turning point. Instead, the script is built to show whether a move still looks fresh, whether it is becoming stretched, whether exhaustion risk is increasing, or whether the market is moving through a reset phase after an extended run.
That distinction is important. In strong trends, stochastic values can remain elevated or depressed for long periods. This script does not assume that an extreme reading automatically means the move should reverse. It treats those conditions as contextual information and then evaluates whether the move still has healthy drive, whether it is becoming late-stage, or whether the structure is normalizing.
The result is a state-based reading model rather than a basic signal-only oscillator. The emphasis is on chart context, trend maturity, and fatigue mapping.
WHAT THIS SCRIPT DOES
This script organizes stochastic behavior into a compact state model built around five practical conditions:
• Build-Up
• Drive
• Stretch
• Exhaustion Risk
• Reset
These states are not intended to predict exact tops or bottoms. They are designed to help the user evaluate where the current move may sit within its broader development cycle.
In practical terms, the script focuses on questions such as:
• Is the move still behaving like an active and healthy expansion?
• Has the move become stretched?
• Is momentum support beginning to weaken?
• Has the market started to normalize after an extended push?
• Is current behavior better described as continuation pressure or late-stage fatigue?
That is the core purpose of the indicator.
UNIQUE EDGE
The unique edge of this script is that it does not reduce stochastic analysis to simple line crosses or fixed threshold reactions.
Instead of treating the oscillator as a binary overbought / oversold tool, the script uses it as a context engine for reading trend fatigue. The internal logic emphasizes four broad components:
1) Persistence in extreme zones
How long the oscillator remains in an extended area matters. Persistence alone is not treated as a reversal condition, but prolonged persistence can indicate that a move is progressing into a more mature phase.
2) Momentum decay
A move can remain extended while its internal strength starts to weaken. The script evaluates whether the oscillator is still advancing with conviction or whether follow-through is becoming less efficient.
3) Push efficiency
Price can continue expanding while oscillator quality becomes less supportive. That mismatch can be relevant when assessing whether the move still looks healthy or whether it is becoming increasingly vulnerable to a reset.
4) Reset behavior
After extended conditions, the market often goes through a normalization phase. The script attempts to identify when that process is occurring so the user can distinguish late-move fatigue from post-extension reset behavior.
Together, these components form a stochastic-based exhaustion map instead of a traditional threshold trigger script.
HOW IT WORKS
The script begins with a smoothed stochastic structure and then builds a higher-level state model on top of it.
The model evaluates:
• extreme-zone persistence
• directional decay in stochastic slope
• push-efficiency deterioration
• reset-zone normalization
Those components are blended into an Exhaustion Score, which is then interpreted through the state engine.
The state engine classifies the current condition as one of the following:
Build-Up
An early or re-engaging phase where activity is present but extension pressure is still relatively modest.
Drive
An active expansion phase where the move still appears supported and not yet meaningfully fatigued.
Stretch
A more mature condition where extension is becoming more visible and the move should be read with greater caution.
Exhaustion Risk
A late-stage condition where extension and internal weakening combine strongly enough to raise fatigue risk.
Reset
A normalization phase following recent extreme behavior, where the market is no longer best described as active drive or rising exhaustion.
This is why the script should be read as a contextual map rather than a standalone trade-decision engine.
SUMMARY PANEL
The panel is designed to keep the reading compact and practical. It includes:
• current state
• directional bias
• exhaustion score
• persistence profile
• decay profile
• reset quality
• context label
The panel is not intended to replace chart reading. It is there to summarize the current exhaustion model in a clean format.
HOW TO INTERPRET THE STATES
Build-Up
Early participation or reactivation. The move is not yet heavily stretched.
Drive
The move appears active and supported. This does not mean it must continue. It simply means the exhaustion model is not yet describing the condition as late-stage.
Stretch
The move is becoming more mature. This is a cautionary condition rather than an automatic reversal condition.
Exhaustion Risk
The model is detecting stronger signs of extension plus weakening support. This still does not guarantee reversal. It indicates that late-stage fatigue risk is becoming more relevant.
Reset
The market is moving away from an extended condition and toward normalization. This state can be useful when separating active fatigue from post-extension cooling.
ALERTS
Alerts are state-based and intentionally descriptive. They are designed to notify the user when the model shifts into meaningful phases such as Build-Up, Stretch, Exhaustion Risk, or Reset.
These alerts should be interpreted as contextual transitions rather than direct instructions.
HOW THIS DIFFERS FROM AG PRO RSI PRESSURE MAP
This difference should be understood very clearly.
AG Pro RSI Pressure Map is centered on pressure.
AG Pro Stochastic Exhaustion Map is centered on fatigue.
RSI Pressure Map focuses on whether directional pressure is building, holding, or weakening. Its primary reading axis is pressure intensity and directional dominance.
Stochastic Exhaustion Map focuses on whether a move is fresh, extended, maturing, fatigued, or resetting. Its primary reading axis is trend maturity and exhaustion state.
Put simply:
• RSI Pressure Map asks: which side is applying pressure?
• Stochastic Exhaustion Map asks: how mature or fatigued is the move?
That is not a small wording difference. It changes the analytical role of the script.
A user looking for pressure development, directional participation, or pressure persistence would generally be closer to the RSI Pressure Map framework.
A user looking for extension maturity, late-stage risk, and reset behavior would generally be closer to the Stochastic Exhaustion Map framework.
So even though both tools operate in the broader momentum / context space, they are not the same type of instrument and they are not trying to answer the same question.
HOW THIS DIFFERS FROM CLASSIC STOCHASTIC SCRIPTS
This script is not built as a standard stochastic crossover tool.
It is not built as a basic 80 / 20 reversal script.
It is not built as a simple divergence detector.
Many conventional stochastic scripts are primarily concerned with:
• K / D crossovers
• overbought and oversold threshold events
• simple turn signals from extreme zones
This script takes a different route.
Here, an extreme reading is not automatically treated as a reversal signal.
A crossover is not the main event.
The main objective is to describe the condition of the move itself: active, stretched, fatigued, or resetting.
That distinction is fundamental.
HOW THIS DIFFERS FROM AG PRO STRUCTURAL MOMENTUM OSCILLATOR
Structural Momentum Oscillator is more directly concerned with momentum structure and directional behavior inside the move.
Stochastic Exhaustion Map is more concerned with where the move stands in its lifecycle.
In simplified terms:
• Structural Momentum Oscillator = structure and momentum character
• Stochastic Exhaustion Map = maturity and exhaustion character
The overlap is limited because the purpose is different.
HOW THIS DIFFERS FROM AG PRO MACD DRIFT FILTER
MACD Drift Filter is centered on drift quality and directional continuation behavior through a MACD-derived lens.
Stochastic Exhaustion Map is not trying to grade drift quality in that way. Its emphasis is on extension maturity, internal fatigue, and reset conditions within a stochastic state framework.
So the user should not think of this script as a MACD variant with a different formula. The conceptual job is different.
HOW THIS DIFFERS FROM GENERIC MEAN REVERSION TOOLS
This script does not attempt to force a mean reversion call every time the market becomes extended.
It explicitly allows for the reality that strong moves can remain extended for longer than expected. The goal is to map the transition from healthy extension to increasing fatigue risk, not to declare that every extreme must immediately reverse.
That design choice is central to the script.
LIMITATIONS AND TRANSPARENCY
This script has important limitations.
First, extreme stochastic conditions can persist during strong trends. For that reason, an elevated reading should not be interpreted as an automatic turning point.
Second, exhaustion risk is not the same as reversal confirmation. A market can look stretched and still continue.
Third, reset behavior should be read as normalization context, not as a guaranteed reload condition.
Fourth, no single oscillator should be used in isolation. This script is intended to complement market structure, trend context, support / resistance analysis, volatility conditions, and the user's broader workflow.
The model is deterministic, but deterministic does not mean certain. It means the same conditions will produce the same classification logic.
RISK DISCLOSURE
This indicator is a chart-analysis and contextual state-mapping tool.
It is not a prediction engine.
It is not financial advice.
It should not be used as the sole basis for entries, exits, or risk decisions. Indicator

AG Pro OBV Pressure Divergence [AGPro Series]AG Pro OBV Pressure Divergence
Overview
AG Pro OBV Pressure Divergence is a context-aware divergence quality map built around the relationship between price structure and On-Balance Volume pressure.
The script is designed to identify bullish and bearish divergence events, then rank those events by participation quality, structural context, and follow-through behavior. Instead of treating every divergence as equally important, it separates weaker pressure disagreements from more meaningful setups and organizes them into a cleaner decision framework.
This is not a generic divergence marker that prints every local mismatch between price and an underlying series. Its purpose is to classify divergence events through a layered process that includes pivot structure, price displacement, OBV behavior, trend context, confirmation timing, and visual emphasis.
The result is a tool that can be used to study when price and participation begin to disagree, while still preserving a practical chart view that remains readable during live market conditions.
What this script does
- Detects bullish divergence when price forms a lower low while OBV forms a higher low
- Detects bearish divergence when price forms a higher high while OBV forms a lower high
- Filters divergence candidates using pivot separation and ATR-based price swing requirements
- Scores events by quality instead of treating all signals the same
- Highlights the strongest events with more prominent chart objects
- Tracks confirmation and invalidation behavior after the initial event
- Displays a compact summary panel for state, pressure, context, and freshness
Unique Edge
Many divergence tools stop at basic detection. They show a disagreement between price and an oscillator or cumulative volume series and leave the rest to the user.
This script takes a different approach.
Its goal is not to maximize the number of divergence labels on the chart. Its goal is to classify divergence quality.
That difference matters. A simple divergence can appear in noisy conditions, in weak structural locations, or without any meaningful follow-through. In those cases, the event may still be technically valid, but not equally useful from an analytical point of view.
AG Pro OBV Pressure Divergence attempts to address that by combining several layers:
1. Structural divergence detection
2. ATR-normalized price displacement filtering
3. OBV pressure comparison between pivots
4. Local trend context using fast and slow EMA structure
5. Setup monitoring through confirmation and invalidation logic
6. Visual hierarchy that distinguishes lower-quality from higher-quality events
Because of this design, the script is better understood as a divergence classification framework rather than a simple divergence marker.
It is also distinct from breakout, reclaim, or trend continuation tools. It does not evaluate break-retest mechanics, VWAP reclaim logic, or general trend strength as its primary objective. Its focus is the quality of price-versus-participation disagreement.
Methodology
The script begins by identifying swing pivots through a configurable pivot length. These pivots form the structural anchor points used to compare price and OBV behavior.
For bullish divergence:
- price must form a lower low
- OBV must form a higher low
For bearish divergence:
- price must form a higher high
- OBV must form a lower high
After a raw divergence is found, the script applies additional requirements before the event is accepted:
Pivot Separation
A minimum bar gap is enforced between pivots so that tightly packed micro-swings do not dominate the output.
Minimum Price Swing
The distance between the two relevant pivots is measured relative to ATR. This prevents very small structural changes from being treated like full-quality events.
Pressure Evaluation
The OBV relationship between the two pivots is examined to determine whether participation is actually improving or weakening in a meaningful way.
Trend Context
Fast and slow EMA structure is used to frame whether the event is appearing against or within the prevailing price environment.
Contextual Location
The script also evaluates where the event is occurring in its local range structure. This helps separate mid-range noise from more interesting reversal or exhaustion locations.
Scoring
All of the above components contribute to a quality score. That score is then used to separate lower-priority events from stronger ones.
Confirmation
After the initial event, the script tracks a confirmation window. During that window, the setup may confirm, remain pending, expire, or become invalidated.
This layered structure is intentional. The script does not assume that a divergence label alone is enough.
Signal Structure
The script organizes events into a sequence instead of a single binary output.
Event Detected
A new bullish or bearish divergence is found and scored.
Pending State
The event remains active while the script monitors whether follow-through appears within the confirmation window.
Confirmed
If the confirmation condition is met within the allowed window, the event is marked as confirmed.
Invalidated
If price fails the setup before confirmation, the event is marked as invalidated.
Expired
If no confirmation occurs within the defined number of bars, the setup is no longer treated as active.
This state-based behavior is useful because it prevents the chart from presenting all divergence events as finalized conclusions the moment they appear.
Quality Model
The script uses a quality threshold and a premium threshold to distinguish event strength.
Lower-quality events can still be displayed when the user wants a fuller map of all structure, but the script can also be configured to focus only on stronger setups.
This creates three practical layers of interpretation:
Building
A divergence exists, but the score is lower and the event should be treated with more caution.
High
The event passes the main quality threshold and receives stronger visual treatment.
Premium
The event exceeds the premium threshold and receives the strongest category treatment in the script.
This does not mean that premium events are guarantees, and it does not imply that lower-quality events are unusable. It simply reflects that not every divergence deserves the same level of attention.
Panel Summary
The summary panel is intended to give quick context without forcing the user to inspect every label one by one.
The panel includes:
- Bias
A simple view of the current directional background based on the fast and slow EMA relationship.
- Pressure
A quick summary of whether OBV pressure is rising, falling, or mixed.
- Last Event
Shows the most recent detected divergence direction.
- Quality
Displays the score and current classification of the most recent event.
- State
Shows whether the most recent tracked setup is in watch, confirmed, invalidated, or idle state.
- Context
Provides a compact view of the local environment, such as trend-up, trend-down, or range-related placement.
- Freshness
Indicates how many bars have passed since the latest tracked event.
Visual Design
The chart output is intentionally organized with hierarchy.
Qualified events are easier to spot than weaker ones.
Confirmation labels are visually distinct from initial event labels.
Link lines help explain which two pivots created the divergence.
Optional background pulse and active setup zone provide temporary emphasis without permanently dominating the chart.
EMA context remains available but is visually secondary to the divergence structure.
Tooltips are included for key settings so that the logic behind the inputs remains understandable directly from the settings panel.
Signals and Alerts
The script includes alert conditions for the main state transitions:
- New Bullish Pressure Divergence
- New Bearish Pressure Divergence
- Premium Bullish Pressure Divergence
- Premium Bearish Pressure Divergence
- Bullish Pressure Divergence Confirmed
- Bearish Pressure Divergence Confirmed
- Pressure Divergence Invalidated
These alerts are designed to reflect internal script states rather than making claims about future price outcomes.
Key Inputs
Pivot Length
Controls how swings are defined. Higher values reduce noise but may delay detection.
OBV Smoothing
Smooths the OBV series before divergence analysis. Higher values create a cleaner but slower pressure curve.
Minimum Pivot Separation
Prevents overly compressed pivots from producing excessive clustering.
Minimum Price Swing (ATR)
Requires meaningful structural movement before a divergence is accepted.
Quality Threshold
Defines the minimum score required for a divergence to be treated as a qualified event.
Premium Threshold
Defines the score level required for premium classification.
Confirmation Window (Bars)
Controls how long a pending event is monitored before it expires.
Use Close-Based Confirmation
Switches confirmation logic between close-based behavior and intrabar high/low behavior.
Main Label Size
Scales event, confirmation, and invalidation labels.
Panel Text Size
Controls panel readability independently from chart labels.
Drawing Emphasis
Adjusts how visually prominent lines, EMA context, and active zone objects appear on the chart.
How to use it
This script is best approached as a context tool, not as a stand-alone decision engine.
A practical workflow may look like this:
1. Identify whether the panel context is aligned with a broad directional background or whether the market is behaving more like a range.
2. Observe whether a new divergence appears in a meaningful local location rather than in the middle of random price noise.
3. Compare the quality score and classification.
4. Watch whether the event confirms or invalidates within the chosen time window.
5. Combine the information with your own structure, risk, and execution framework.
The script is often more informative when used to reduce attention on weaker disagreements and concentrate on better-formed pressure divergences.
Who it may be useful for
This script may be useful for users who want:
- a more structured way to study price and OBV disagreement
- a cleaner divergence map with stronger visual hierarchy
- a chart that distinguishes raw detection from confirmed follow-through
- a volume-pressure oriented lens that is different from standard oscillator-only divergence tools
It may be less suitable for users who want a high-frequency signal stream, a one-click entry engine, or a tool that treats every local divergence as equally relevant.
Limitations and Transparency
This script has important limitations.
First, divergence is an analytical concept, not a guaranteed turning-point mechanism. A divergence can appear and still fail, extend, or resolve slowly.
Second, the scoring model is a ranking method, not a prediction formula. A higher score does not mean certainty. It only means that the event better satisfies the script's internal conditions.
Third, pivot-based logic requires structure to form. This means the script necessarily depends on completed swing information and will not behave like a forward-only projection model.
Fourth, confirmation and invalidation logic are simplifications intended to organize event follow-through. They do not replace full trade management, execution rules, or independent risk control.
Fifth, any indicator that uses volume-derived inputs depends on the characteristics of the underlying market data. Users should be aware that data quality and market structure can differ across symbols and venues.
This script is therefore best used as a contextual classification tool rather than a complete standalone methodology.
What this script is not
- It is not a guarantee of reversals.
- It is not a promise engine.
- It is not a fully automated trading system.
- It is not a substitute for independent structure analysis or risk management.
- It is not designed to predict every local top or bottom.
- It is not intended to imply that premium signals are always superior in every market condition.
Its purpose is narrower and more practical:
to organize OBV-based divergence events into a more useful analytical framework.
Risk Disclosure
This script is for chart analysis and research purposes only.
It does not provide financial advice, investment advice, portfolio advice, or a guarantee of future market behavior. Market conditions can change quickly, and any signal or classification generated by the script can fail or become invalid.
Users should make independent decisions and apply their own risk controls before acting on any chart output.
In summary
AG Pro OBV Pressure Divergence is a public, chart-based tool for analyzing divergence quality through the interaction of price structure and OBV pressure.
Its main contribution is not that it detects divergence, but that it attempts to rank divergence events by structural relevance, pressure context, and follow-through state.
For users who want a cleaner way to study whether price and participation are beginning to disagree, this script aims to provide a more selective and better-organized framework than a raw all-events divergence marker.
Indicator

AG Pro MACD Drift Filter [AGPro Series]AG Pro MACD Drift Filter
Overview
AG Pro MACD Drift Filter is a rules-based momentum quality indicator built around MACD structure, persistence, and decay behavior.
The script is not designed to treat every MACD expansion, crossover, or positive histogram print as equally meaningful. Its purpose is to help users evaluate whether current momentum is sustaining cleanly, weakening internally, or drifting into lower-quality continuation.
In many charts, the difficult part is not detecting that momentum exists. The difficult part is deciding whether that momentum is stable enough to respect, fragile enough to fade, or already starting to lose transmission quality before price fully reflects the slowdown. This indicator is built for that specific problem.
Rather than framing MACD as a simple signal engine, AG Pro MACD Drift Filter uses a structured state model to organize momentum into practical categories such as bullish drift, bearish drift, neutral or unstable conditions, and decay-prone phases. The output is intended to improve chart interpretation, not to replace broader market context.
What the script does
The script studies the relationship between the MACD line, the signal line, the histogram, and zero-line behavior in order to classify the current momentum environment.
Its main objective is to answer questions such as:
- Is current momentum expanding with acceptable continuity?
- Is the histogram improving in a way that supports follow-through, or only producing a temporary burst?
- Is MACD maintaining stable directional structure, or repeatedly slipping back toward unstable conditions?
- Is separation between MACD and signal line supporting continuation, or beginning to compress?
- Is the current move still carrying directional quality, or transitioning into decay?
The result is a compact momentum-quality framework that can be used as a continuation filter, a caution filter, or a chart-organization layer.
Why this script is different
This script is not presented as a generic MACD crossover tool.
Its focus is not on counting crosses or highlighting every histogram color shift. Instead, it is built around the idea that momentum quality matters more than raw momentum presence. A move can remain above zero and still lose internal quality. A histogram can expand and still produce weak follow-through. A crossover can occur inside unstable conditions and carry less analytical value than its appearance suggests.
AG Pro MACD Drift Filter attempts to separate those cases by combining several dimensions of MACD behavior into a rules-based drift model.
In practical terms, the script attempts to distinguish between:
- sustained directional drift
- fragile continuation
- internal weakening
- contraction and decay risk
- unstable zero-line behavior
This makes it more suitable as a momentum filter than as a standalone trigger engine.
Core methodology
The model evaluates momentum quality through multiple components rather than a single event.
1) Expansion quality
The script evaluates whether histogram magnitude is expanding with enough consistency to support the idea of directional development. A simple increase in histogram size is not treated as sufficient on its own. The model also looks at whether that expansion is steady enough to qualify as usable drift.
2) Zero-line persistence
Momentum states near the zero line can be more fragile and more prone to whipsaw. For that reason, the script evaluates whether MACD is maintaining enough distance and persistence relative to the zero area, or whether it is repeatedly slipping back toward instability.
3) Signal-line separation quality
The distance between MACD and signal line is part of the script's continuation logic. Expanding separation can support the case for cleaner momentum conditions, while compressing separation can indicate that the move is losing internal pressure even if price has not fully reacted yet.
4) Continuity
The script tracks whether directional alignment is being maintained across bars. The goal is to reduce the analytical weight of fragmented or inconsistent momentum states and give more weight to cleaner persistence.
5) Decay pressure
The model also monitors conditions that can reduce the quality of current drift. Compression, weakening histogram behavior, increased instability, and loss of directional efficiency contribute to decay risk.
These components are combined into a structured quality score and a state engine.
Main outputs
State
The State row summarizes the current momentum regime. Depending on conditions, the script can classify the environment as bullish drift, bearish drift, neutral or unstable, or other transition states derived from the internal logic.
Quality
The Quality value summarizes the current momentum-quality condition on a 0 to 100 scale. It is not intended as a standalone trade score. It is a compact way to express whether the underlying drift structure is currently weak, fragile, usable, or stronger relative to the script's framework.
Persistence
Persistence reflects whether directional conditions are being maintained with enough stability to be respected. This value is particularly useful when users want to distinguish between brief impulses and cleaner continuation behavior.
Decay Risk
Decay Risk estimates whether the move is beginning to lose quality internally. Higher decay risk does not automatically imply reversal. It means the current directional structure is carrying less internal efficiency and may deserve more caution.
Zero-Line
This field summarizes whether MACD is operating above zero, below zero, or in a more unstable zone. It is included because zero-line persistence often changes the interpretive quality of otherwise similar MACD readings.
Separation
This row describes whether MACD and signal line are expanding apart, remaining relatively stable, or compressing. It can help users identify whether momentum is gaining transmission strength or narrowing.
Phase
The script groups behavior into broad phases such as expansion, plateau, or contraction. This helps users interpret whether the current environment is still developing or beginning to cool.
Bias
Bias is not a buy or sell instruction. It is a compact interpretation layer that summarizes whether the current structure is more consistent with continuation, caution, or weaker follow-through.
Mode
The script includes a mode framework so users can run the tool with a more balanced or more selective posture, depending on how strict they want the state engine to be.
How to read the indicator
One practical way to use the script is to treat it as a continuation-quality filter.
For example, a bullish chart condition may look more structurally convincing when:
- the state remains in a bullish drift condition
- the quality score is improving or holding at healthier levels
- persistence remains stable
- separation is not compressing aggressively
- decay risk is contained
On the other hand, users may choose to become more cautious when:
- price still appears constructive, but quality is fading
- separation compresses while continuation expectations remain elevated
- the state returns to neutral or unstable conditions
- decay risk rises without meaningful renewal in quality
- the move remains active on price, but internal MACD structure begins to deteriorate
This script can also be used alongside support and resistance analysis, broader trend context, structural breaks, pullback logic, or other risk-management frameworks.
Alerts
The script includes alert conditions tied to meaningful state changes rather than arbitrary noise.
Examples include:
- Bullish Drift Confirmed
- Bearish Drift Confirmed
- Bullish Drift Weakening
- Bearish Drift Weakening
- Momentum Decay Warning
- Neutral Reset
- High-Quality Drift Detected
- Low-Quality Expansion Detected
These alerts are intended to help users monitor changes in momentum quality, not to function as guaranteed trading signals.
Key inputs
Core settings include the source series and standard MACD lengths.
Engine settings allow users to control the quality lookback, persistence window, decay sensitivity, instability penalty, zero-line stability filtering, and strictness.
Display settings manage panel visibility, panel position, theme handling, label size, label density, and optional visual styling.
Because different symbols and timeframes can produce different rhythm characteristics, users may want to experiment with persistence and sensitivity settings rather than assuming one configuration fits all market conditions.
Suggested interpretation
The strongest use case for this tool is not signal substitution, but signal qualification.
In other words, many users may find it more useful to ask:
"Does this move deserve continuation bias?"
instead of asking:
"Did MACD cross?"
That distinction is central to the script.
The script does not assume that every positive histogram bar is actionable. It does not assume that every crossover deserves equal analytical weight. It attempts to organize momentum conditions into a more structured framework so users can better judge whether current directional pressure is persistent, fragile, or fading.
Limitations and transparency
This indicator does not predict future price movement.
It does not guarantee continuation, reversal, breakout success, or trade performance. It does not replace broader chart context, volatility analysis, liquidity considerations, or risk management.
Like other momentum-based tools, it can still produce less useful readings in highly choppy environments, low-volatility compression regimes, or sudden event-driven price conditions. Users should interpret the output in context and validate whether the script's settings fit the instrument and timeframe they are studying.
The state engine is designed to organize information, not to remove uncertainty from market behavior.
Risk disclosure
This script is for educational and analytical use.
It should not be treated as financial advice, investment advice, or a promise of outcome. Users remain responsible for their own decision-making, trade planning, and risk control.
Indicator

Smooths Trend BreakerSmooths Trend Breaker
Overview
Smooths Trend Breaker is a trend identification and entry timing tool that combines an adaptive ATR-based supertrend, a higher timeframe EMA trend filter, volume confirmation, an RSI gate, a price compression range detector, and FVG-gated star candlestick pattern recognition. Each component was chosen to address a specific weakness in standalone supertrend systems — noise in choppy markets, late entries, and signals that contradict the larger trend — and all components work together as a single decision framework rather than as separate overlapping indicators.
Component Methodology
Adaptive Supertrend Engine
The core engine uses an ATR-based supertrend calculation. True Range is computed on each bar as the maximum of the current high-low range, the absolute distance from the prior close to the current high, and the absolute distance from the prior close to the current low. ATR is then derived using Wilder's smoothing method — a modified exponential moving average with a smoothing factor of 1/N — rather than a simple average, which gives more weight to recent volatility while maintaining memory of past conditions.
The upper and lower bands are calculated as the midpoint of the bar's high-low range plus or minus the ATR multiplied by a user-defined multiplier. Bands are then locked directionally — the lower band can only move upward and the upper band can only move downward — preventing the line from retreating when price moves against the trend. The trend direction flips only when a closing price crosses the opposite band, not on intrabar wicks, ensuring signals are close-confirmed.
Rather than using fixed ATR settings across all timeframes, the indicator auto-selects ATR length and multiplier based on the chart's timeframe in seconds. Shorter timeframes receive a shorter ATR period and higher multiplier to account for proportionally larger noise relative to signal. Longer timeframes receive a longer period and lower multiplier to avoid over-sensitivity on slower-moving instruments. This eliminates the need to manually adjust parameters when switching timeframes.
Higher Timeframe EMA Filter
When enabled, the indicator uses `request.security()` to retrieve a 50-period EMA from a higher timeframe selected automatically based on the chart timeframe — for example a 15-minute EMA is referenced when viewing a 5-minute chart, and a 4-hour EMA is referenced when viewing a 1-hour chart. A Buy label is only confirmed when price closes above this EMA and a Sell label is only confirmed when price closes below it, aligning entries with the larger structural trend.
Volume Confirmation
The volume filter computes a 20-bar simple moving average of volume. A signal is confirmed only when the flip bar's volume exceeds this average by a user-defined threshold, defaulting to 1.2 times the average. This filters out supertrend flips that occur on low-participation bars, which have historically higher failure rates.
RSI Gate
A 14-period RSI using Wilder's smoothing is computed on each bar. Buy signals are blocked when RSI exceeds a user-defined overbought level (default 70) and Sell signals are blocked when RSI falls below a user-defined oversold level (default 30). This prevents chasing exhausted moves at extremes.
Range Breaker
The Range Breaker compares the current N-bar rolling range (highest high minus lowest low) against the prior N-bar rolling range from the equivalent lookback window shifted N bars back. When the current range is less than a defined ratio of the prior range — meaning price has compressed significantly relative to its recent volatility — a consolidation zone is declared. Horizontal lines are drawn at the highest high and lowest low of the active zone and extend forward with the current bar. When a closing price breaks outside either level the zone is sealed and a breakout marker fires.
Star Pattern Detection with FVG Gate
Morning Star, Morning Doji Star, Evening Star, and Evening Doji Star patterns are detected using strict 3-candle criteria. The first candle must be a strong directional bar with a body filling at least 50% of its range. The middle candle — the star — must have a body of 25% or less of its range and a total range smaller than 80% of the first candle's body. The confirmation candle must be directionally opposite to the first candle with a body filling at least 40% of its range, closing past the midpoint of the first candle's body.
Additionally, a Fair Value Gap check is applied to the candle immediately before the star. A bearish FVG exists when the high of bar N is below the low of bar N+2, creating a downward price gap. A bullish FVG exists when the low of bar N is above the high of bar N+2, creating an upward price gap. An Inverse FVG check scans back 45 bars for a prior FVG zone whose price range overlaps with the pre-star candle, indicating price has returned to fill an old imbalance. If neither an FVG nor an IFVG is present on the candle before the star, the pattern does not fire regardless of candle structure. This ensures every star signal is anchored to a real price imbalance.
How to Use It
The highest probability setups occur when the supertrend line has already established direction, the range detector is not showing an active chop zone, and a signal fires with volume and HTF agreement. The Range Breaker lines are a caution flag — while they are active and unbroken, the supertrend will produce lower quality signals due to market compression. The star patterns provide a precision entry trigger that can be used to time entries at reversal points, particularly when a star fires near an active Range High or Range Low level.
Trend continuation
Wait for a pullback toward the supertrend line, then enter when the next Buy or Sell label prints in the direction of the established trend.
Breakout entries
When a range zone has been active for several bars and the supertrend is already pointing in one direction, a range breakout marker firing in that same direction is a high-quality entry trigger.
Star entries
A star pattern firing at or near a Range High or Range Low, with the supertrend already in agreement, represents the highest confluence setup available in the indicator.
What to avoid
Do not enter trend signals while a range zone is active with no breakout. Do not take signals that contradict the HTF EMA. Do not enter late into an extended trend where price is far from the supertrend line.
Settings
ATR Length and Multiplier auto-scale by timeframe but can be manually overridden. Volume threshold multiplier defaults to 1.2× the 20-bar average. RSI overbought and oversold levels default to 70 and 30. Range sensitivity has three modes controlling lookback period, compression ratio, and minimum bar count. Past zones to display defaults to 5, maximum 20.
Indicator

Auto Parallel Channel - Trend & Reversal TrackerThis indicator automates a highly specific and effective manual charting technique for tracking trends and identifying potential reversal zones. It is designed to help traders visualize dynamic parallel channels without the hassle of constantly redrawing lines, making it especially useful for timing short entries or spotting bottom reversals in volatile markets like crypto and forex.
How It Works:
Unlike standard channel indicators that simply connect the highest highs and lowest lows, this script uses a refined pivot-based logic. During a downtrend, it identifies the last three Pivot Lows (PL) and the last Pivot High (PH). It constructs the foundational trendline by connecting the intermediate lows and projects a perfectly parallel upper boundary starting from the last confirmed PH.
Key Features:
Custom Key Levels: Includes specific internal and external parallel levels (-0.12, 0, 0.12, 0.5, 0.88, 1.0, 1.12) to identify precise support, resistance, and breakout zones.
Dynamic Peak Tracking (Prediction Line): Features a unique "memory" line. Before a new pivot is fully confirmed, a dashed tracking line anchors to the absolute highest price seen since the last Pivot High. This acts as an early-warning prediction channel that adjusts dynamically as price pushes higher, but stays firmly anchored if price drops.
Clean Chart Management: Prevents chart clutter by automatically limiting the number of historical channels shown at once (customizable).
Smart History Extension: Old channels don't just disappear or stretch to infinity. They are systematically frozen and extended backward/forward by a user-defined number of bars, allowing you to backtest how price reacted to past channel structures.
Customizable Settings:
Pivot Length: Adjust the sensitivity of pivot detection (Default: 25).
History Extension Bars: Control how far historical channel lines project into the past/future (Default: -65).
Max Historical Channels: Keep your chart clean by limiting visible past channels (Default: 3).
Toggles: Easily turn dynamic tracking, historical lines, and pivot labels on or off.
Whether you are riding a trend or looking for the exact moment a downtrend loses momentum, this automated channel system keeps your charts clean, precise, and highly actionable. Indicator

AG Pro VWAP Reclaim Quality [AGPro Series]AG PRO VWAP RECLAIM QUALITY
OVERVIEW
AG Pro VWAP Reclaim Quality is a chart-first tool built to evaluate whether a move back above VWAP is clean, weak, delayed, or structurally fragile.
This script does not treat every recovery above VWAP as equally meaningful. Instead, it grades the reclaim event itself and then follows what happens next: whether price can hold above VWAP, whether the retest is constructive, and whether the reclaim deteriorates shortly after recovery.
The objective is simple: separate efficient VWAP reclaims from noisy or late recoveries that may look promising at first glance but fail to show durable acceptance.
This makes the script useful for traders who want more context than a basic VWAP cross. A standard cross can show that price moved from one side of VWAP to the other. This script is designed to evaluate the quality of that transition.
UNIQUE EDGE
The focus here is not generic VWAP direction bias and not a simple above/below state model.
The main edge of the script is its reclaim-quality framework. It evaluates the reclaim as a sequence rather than as a one-line event:
1) reclaim strength,
2) post-reclaim acceptance,
3) retest behavior,
4) timing quality,
5) failure risk.
That structure is what differentiates it from ordinary VWAP cross tools.
A reclaim that closes back above VWAP with a strong bar, holds acceptance, and survives a disciplined retest should not be treated the same as a reclaim that occurs late, stalls immediately, or fails after a shallow recovery. This script is designed to reflect that distinction visually and systematically.
In practical terms, the script attempts to answer a more specific question:
Is this reclaim simply back above VWAP, or is it actually behaving like a higher-quality recovery?
METHODOLOGY
The script starts by tracking session VWAP and identifying reclaim attempts after price has spent time below it.
Once a reclaim is detected, the script evaluates several components:
1) Reclaim strength
The reclaim bar is assessed using distance from VWAP, body efficiency, and close location within the bar. This helps distinguish decisive recoveries from marginal crosses.
2) Acceptance above VWAP
After the reclaim, the script measures whether price is actually holding above VWAP over the next bars. Stable acceptance is treated differently from mixed or poor acceptance.
3) Retest behavior
The script checks whether price revisits VWAP inside a defined tolerance area and whether that test is held constructively. A confirmed retest is handled as separate information rather than being merged blindly into the initial reclaim.
4) Timing quality
Reclaims that occur after an extended stay below VWAP, or later in the intraday session, can be penalized. This allows the script to separate timely recoveries from delayed ones.
5) Failure logic
A reclaim can later be downgraded if price loses structure below VWAP after the recovery. This failure layer is intentionally more selective so that minor noise is not treated as a meaningful reclaim breakdown.
The result is a compact grading model that produces a readable chart-first output instead of a large diagnostic dashboard.
HOW TO READ THE OUTPUT
Main chart labels:
- CLEAN: reclaim quality is strong and structurally healthy
- LATE: reclaim occurred, but timing quality is weaker or delayed
- RT HOLD: VWAP retest was revisited and held constructively
- FAILED: reclaim lost quality and broke down after recovery
Panel fields:
- VWAP Reclaim: current reclaim classification
- Reclaim: strength of the reclaim move itself
- Acceptance: quality of post-reclaim holding behavior
- Retest: whether a constructive retest is confirmed
- Bias: summary interpretation of the current reclaim state
- Quality: compact score representation
The chart is intentionally designed to stay visual and readable. The panel provides state context, while the labels highlight the important transition points.
SIGNALS AND ALERTS
The script includes alert conditions for:
- Clean Reclaim
- Late Reclaim
- Retest Hold
- Failed Reclaim
These alerts are intended to map to the reclaim lifecycle rather than to every minor VWAP interaction.
For more conservative usage, bar-close confirmation is generally preferable when evaluating reclaim quality, especially on volatile instruments or during rapid intrabar movement.
KEY INPUTS
Some of the main controls include:
- VWAP source
- ATR length
- reclaim distance normalization
- minimum prior bars below VWAP
- late reclaim thresholds
- acceptance lookback
- retest tolerance and retest window
- failure delay bars
- panel text size and panel theme
- label visibility and label discipline controls
The script also includes label filtering logic to reduce clustering and keep the chart cleaner by default.
WHAT THIS SCRIPT IS DESIGNED FOR
This script is designed for traders who want to evaluate reclaim quality around VWAP, not merely track whether price is above or below it.
Typical use cases may include:
- reviewing whether a recovery above VWAP has enough structural follow-through
- filtering weak reclaims from stronger continuation candidates
- identifying retest discipline after reclaim
- spotting delayed or fragile recovery behavior
- keeping a cleaner visual workflow around VWAP-based chart reading
LIMITATIONS AND TRANSPARENCY
This script is not a prediction engine and should not be interpreted as a guaranteed continuation model.
A reclaim labeled as clean can still fail.
A reclaim labeled as late can still continue.
A failed reclaim label does not automatically imply a larger bearish trend.
The tool is designed to classify reclaim behavior around VWAP, not to replace broader market structure analysis.
Like all chart-based tools, outputs can vary depending on instrument, volatility regime, timeframe, and user settings.
VWAP-based behavior is also context-dependent. Market environment, liquidity, trend phase, and volatility expansion can all influence reclaim behavior beyond what a single script can capture.
This script is therefore best used as a structured interpretation tool, not as a standalone decision framework.
RISK DISCLOSURE
This indicator is for chart analysis and research use only. It does not provide investment advice, portfolio advice, or trade guarantees.
Always evaluate signals within broader market context, risk management, and your own execution process.
No single indicator should be relied upon in isolation.
NOTES
This publication focuses on reclaim quality around VWAP rather than generic VWAP crosses.
The aim is to keep the logic interpretable, the visuals readable, and the methodology transparent. Indicator

S&P 500 Breadth BullstackCore Idea of the Indicator:
The indicator is not a classic buy/sell trigger, but rather a breadth regime scanner for the S&P 500. In other words, it measures how many stocks in each sector are trading above their 20-day, 50-day, and 200-day moving averages (Simple Moving Average - SMA), compresses that information into a color-coded view, and visualizes whether there is a true “bullstack” in the market.
In practical terms, this means it is especially useful for filtering long positions during strong market phases, scaling into them, and turning defensive earlier when market breadth starts to weaken.
Structure:
The code loads three breadth series for each of the 11 S&P 500 sectors, plus the Nasdaq-100: 20D, 50D, and 200D.
The data is retrieved using request.security() from other symbols or contexts; in Pine, this function is used to access values from other symbols or timeframes within the script.
The script also calculates three averages from the 11 sectors (tot20, tot50, tot200) to create an overall view of S&P 500 market breadth.
Color Logic:
The core idea is: 20D represents short-term momentum, 50D represents medium-term confirmation, and 200D represents the long-term trend.
The bullstackColor() function does not create a simple traffic-light system, but rather a graduated state model: green/turquoise means broad strength, white marks the transition zone, yellow/orange signals early weakness, red to near-black indicates clear breadth weakness, and pink represents a special case of negative divergence.
This divergence occurs when many stocks are still above their 200D line in the long term (b200 > 65), while short-term momentum is already breaking down significantly (b20 < 45) — a typical late-cycle/distribution signal.
Long Strategy:
For longs, the indicator is most powerful when used as a market filter:
The best entries occur when overall breadth rotates up out of capitulation through neutral (white) and then into light green, with 20D breadth picking up first as short-term momentum, 50D breadth then confirming as the medium-term trend, and 200D remaining stable as the long-term trend.
The highest-quality longs occur when not only “Total SPY” turns green, but especially cyclical sectors such as XLY, XLF, XLI, XLK, and ideally the Nasdaq block as well are participating. That usually means the rally is broad, risk-on, and more durable.
Specifically, I would derive three long setups from this:
Early long (first tranche) on the turn from capitulation into the neutral zone, when 20D breadth is clearly rising and 50D breadth is no longer declining.
Confirmation long (second tranche), when 20D > 50D > 50 and several leading sectors turn green at the same time.
Trend add-on (final tranche), when the overall market and cyclical sectors such as XLY, XLF, XLI, and XLK are already green and rotating into turquoise, while pullbacks on the price chart remain shallow (only down to the SMA20 or slightly below).
Position Management:
For position management, the color is almost more important than the entry itself: as long as the picture remains green and 20D only fluctuates slightly, that argues for holding rather than nervous re-trading.
Partial profit-taking or tighter risk management makes sense once strong green fades into pale green or white, because that often marks the transition from expansion to exhaustion.
A clear warning signal against new longs is pink: in that case, the long-term trend is still intact, but short-term momentum is already rolling over — exactly the kind of environment where late longs are often rewarded the least. Caution is warranted here, and the first partial profits should be secured.
Short Strategy:
I would trade shorts much more selectively than longs with this indicator, because breadth indicators in uptrends can often stay “too strong” longer than short setups can tolerate.
The better short opportunities do not occur on the first yellow bar, but when the overall picture shifts from white/yellow into orange/red, while 20D breadth and 50D breadth are weak at the same time and defensive sectors look better than cyclical ones. That points more to genuine market distribution rather than just a simple pullback in individual sectors.
The cleanest short entries come after a failed rebound out of a pink divergence, or when multiple sectors flip synchronously into red/dark red after a warning phase, especially if Nasdaq, Tech, and other cyclical sectors confirm the weakness.
A simple practical rule would therefore be:
Prefer longs when breadth is expanding, 20D leads first, and 50D/200D then confirm.
No fresh longs during pink divergences.
Only take shorts when the weakness is broad, synchronized, and visible across sectors.
One more important point:
The script measures market breadth, not price structure. Therefore, it is best used as a top-down filter together with price triggers in SPY/ES/QQQ or in individual stocks — for example, breadth turning green plus a breakout or trend pullback on the chart, rather than trading breadth in isolation. Indicator

AG Pro RSI Pressure Map [AGPro Series]AG Pro RSI Pressure Map
OVERVIEW
AG Pro RSI Pressure Map is an overlay indicator that interprets RSI behavior as directional pressure on price rather than presenting RSI as a standalone oscillator panel. The script maps bullish and bearish pressure conditions directly on the chart, highlights confirmed pressure builds, and separates those states from release conditions and internal weakening.
The goal is not to repeat standard RSI threshold usage such as simple overbought/oversold signals. Instead, this script translates RSI persistence, slope, trend alignment, and price response efficiency into a chart-based pressure model. The result is a structure-aware visual framework that helps users evaluate whether momentum is building, fading, or attempting to reassert itself.
This tool is designed for traders who prefer price-chart context over isolated oscillator readings. By keeping the logic on the main chart, it becomes easier to observe how directional pressure develops around swings, pullbacks, transitions, and continuation attempts.
UNIQUE EDGE
The distinctive idea behind this script is that RSI is not treated here as a one-line trigger engine. Instead, RSI is used as a pressure input inside a multi-step state model. A bullish or bearish condition is not activated by a single threshold alone. It requires a combination of persistence, slope, trend-side alignment, and minimum response quality.
That makes this script structurally different from conventional RSI overlays or threshold markers. It does not simply mark every move above or below a level. It attempts to identify whether price is actually behaving like a pressure phase, whether that phase lasts long enough to matter, and whether the move later transitions into a release or a weakening sequence.
Another important distinction is the use of zone persistence and signal spacing. Short-lived fluctuations are filtered by minimum zone duration, paint delay, cooldown spacing, and failure-lock logic. This helps reduce repetitive chart clutter and keeps the output more focused on pressure phases that remain contextually relevant for more than a single bar.
WHAT THE SCRIPT DOES
This indicator classifies chart behavior into a small number of practical states:
- Bullish Pressure
- Bearish Pressure
- Bullish Release
- Bearish Release
- Pressure Failure
- No Active Zone
Pressure zones are displayed as soft background states once a valid zone remains active long enough to pass the paint delay requirement. Signal markers and optional labels identify important transitions, including new pressure builds and release conditions. A panel summarizes the current state so users can quickly read the broader condition without scanning every marker.
The script is intended to help with context and organization. It is not limited to trend continuation use only. It can also help identify when an apparent move is weakening internally or when a previous stretch phase may be transitioning into a more constructive re-engagement.
METHODOLOGY
The script combines several components into a single state engine:
1. RSI baseline calculation
RSI is calculated from user-defined length and can optionally be smoothed. This creates the base momentum input for the pressure model.
2. RSI slope and persistence
The script evaluates whether RSI is rising or falling, and whether that direction persists across a configurable lookback window. This helps distinguish stable directional pressure from one-bar fluctuation.
3. Trend alignment
Price is compared against a trend EMA so the script can evaluate whether a pressure condition is aligned with the prevailing side of the market. This reduces cases where RSI alone may look strong while price structure remains inconsistent.
4. Price response efficiency
The model checks whether recent price movement is meaningful relative to ATR. This is used to filter low-quality pressure states where RSI movement exists but price response is weak.
5. Zone state logic
A bullish or bearish pressure state is only activated when the required conditions are present and remains active until exit logic invalidates it. Minimum zone duration and flat cooldown logic are used to reduce rapid state flipping.
6. Release logic
Release conditions are derived from pressure transitions that also satisfy contextual requirements such as recent stretch history and price-side confirmation. This is meant to make release signals more selective than ordinary threshold crosses.
7. Failure logic
The script can detect internal weakening inside an active zone when slope deteriorates and response quality drops. Failure-lock behavior is used to avoid excessive repetition inside the same pressure phase.
Because the model works through a state engine rather than isolated threshold events, the output is better understood as a pressure map than as a classical oscillator trigger set.
SIGNALS AND ALERTS
The script provides the following event types:
- Bullish Pressure Build
- Bearish Pressure Build
- Bullish Release Confirmed
- Bearish Release Confirmed
- Pressure Failure
These alerts are meant to notify users about state transitions, not to replace trade planning or execution rules. A pressure build does not automatically imply continuation. A release does not guarantee reversal or acceleration. A failure does not guarantee collapse. Each event is best interpreted in the context of structure, liquidity, volatility, and timeframe.
KEY INPUTS
RSI Length
Controls the base RSI period.
RSI Smoothing
Applies optional smoothing to RSI before state evaluation.
Trend EMA Length
Defines the trend alignment reference.
Persistence Lookback / Minimum Persistence Count
Control how stable RSI direction must be before a pressure state becomes valid.
Bull Entry RSI / Bear Entry RSI
Set the activation thresholds for bullish and bearish pressure.
Bull Exit RSI / Bear Exit RSI
Define when active pressure zones can terminate.
Minimum Push Efficiency
Filters low-quality states where RSI movement is not supported by sufficient price response.
Release Lookback
Controls how far back the script checks for recent stretch context before validating release behavior.
Minimum Zone Bars / Flat Cooldown Bars
Reduce rapid flip behavior and help pressure zones remain more stable.
Zone Paint Delay
Prevents immediate background painting on very early bars of a new zone.
Build Label Offset / Release Label Offset / Failure Label Offset
Allow spacing between labels and candles for cleaner presentation.
Build Label Minimum Gap Bars / Release Label Minimum Gap Bars
Reduce repeated labels on the same side and improve chart readability.
HOW TO READ IT
A bullish pressure zone means the script currently sees persistent bullish-side momentum that remains aligned with trend-side conditions and minimum response requirements. A bearish pressure zone means the same on the downside.
A bullish release is not simply “bullish RSI.” It represents a more selective re-engagement condition built on prior context. The bearish release follows the same idea in reverse.
A pressure failure suggests that the active zone may be weakening internally. This is not a standalone reversal call. It is a cautionary state that says the current pressure phase is losing quality.
The panel should be read as a summary layer:
- RSI State shows the active state classification
- Pressure Bias shows the normalized directional bias
- Stretch Status shows whether RSI is in an extreme region
- Structure Align shows whether price and RSI are aligned
- Signal State shows the latest meaningful state event
LIMITATIONS AND TRANSPARENCY
This script is not a prediction engine and should not be interpreted as one. It is a state-classification tool built from RSI behavior, EMA alignment, ATR-normalized response, and rule-based persistence logic.
Like all chart tools, it is sensitive to timeframe selection, volatility regime, and market structure. A setting combination that feels appropriate on one symbol or timeframe may be too loose or too strict on another.
The script also does not solve broader market context. It does not evaluate macro conditions, volume profile, order flow, news, or execution quality. Users should treat it as a chart-organization tool, not as a complete trading framework.
The output is intentionally selective, but any filter system involves trade-offs. More filtering may reduce noise while also delaying some transitions. Less filtering may make the script more responsive while increasing signal density.
This indicator should be used as a supporting layer for chart reading, not as a substitute for risk management, independent analysis, or confirmation from the user’s own process.
WHAT THIS SCRIPT IS NOT
- Not a basic RSI overbought/oversold marker set
- Not a simple RSI 50-line crossover script
- Not a buy/sell guarantee system
- Not a replacement for execution rules
- Not a full strategy with entries, exits, and sizing logic
It is a rule-based pressure mapping tool designed to help visualize directional momentum states on price.
RISK DISCLOSURE
This indicator is for analysis and chart interpretation only. It does not provide financial advice, investment advice, or guaranteed outcomes. All trading involves risk, including the risk of loss. Users should test settings, validate behavior on their own markets and timeframes, and make independent decisions based on their own methodology and risk tolerance. Indicator

AG Pro Regression Range Map [AGPro Series]AG Pro Regression Range Map
OVERVIEW
AG Pro Regression Range Map is a statistical corridor overlay built to answer one practical question as clearly as possible: what type of active movement corridor is price traveling in right now?
Instead of treating the market as a sequence of isolated signals, the script models the current price path as a rolling regression backbone surrounded by residual dispersion bands. This allows the chart to be read as a live structure: a directional corridor, a flat corridor, or a weakening corridor that is losing discipline.
The result is a clean visual framework that helps users judge whether price is progressing inside an organized range map or drifting without stable structure. The script is designed as an analytical overlay, not as a forecasting engine.
UNIQUE EDGE
The core idea here is different from indicators that measure simple distance from a moving average, fixed volatility envelopes, or breakout-style event detection.
This script does not ask, “How far is price from a reference?” It asks, “Given the current regression slope and the current residual dispersion, what movement corridor is active now?”
That distinction matters.
The center line is not a generic average. It is a rolling linear regression backbone. The bands are not ATR shells or standard deviation bands around price itself. They are built from the residual dispersion around the active regression backbone. In other words, the script maps drift and dispersion together.
This produces a different analytical lens:
- the backbone defines directional drift
- the corridor width reflects residual dispersion around that drift
- the containment rate shows whether price is respecting that corridor
- the quality score estimates how coherent the corridor currently is
This makes the tool suitable for users who want to evaluate market structure in a disciplined way without turning the chart into a signal-heavy dashboard.
WHAT THE SCRIPT DOES
The script plots:
- a rolling regression backbone
- an inner corridor around that backbone
- an outer corridor around that backbone
- subtle fill to make the active corridor readable without obscuring price
- a compact mini panel with corridor metrics
It also classifies the current corridor state into one of three modes:
- Uptrend Range
- Flat Range
- Downtrend Range
The intention is to show whether price is currently traveling inside an upward corridor, a neutral corridor, or a downward corridor, while also indicating how stable that corridor is.
METHODOLOGY
1) Regression backbone
The center line is a rolling linear regression calculated over the selected lookback window. This backbone is used as the active structural reference for the current chart state.
2) Residual dispersion corridor
After calculating the backbone, the script measures the residual distance between price and the regression line. The standard deviation of those residuals becomes the corridor unit.
The inner and outer bands are then built by multiplying that residual dispersion unit by user-defined multipliers.
This means the corridor is not based on absolute price volatility alone. It is based on how price is dispersing around the active regression path.
3) Normalized slope
The slope of the regression backbone is normalized relative to ATR so the directional reading is more comparable across instruments and conditions.
That normalized slope is then used to classify the corridor as upward, flat, or downward.
4) Containment
Containment measures how consistently price has remained inside the outer corridor over the selected lookback period.
A high containment reading suggests that price is respecting the active corridor. A lower reading suggests that the corridor is less representative of current behavior.
5) Range Width
Range Width expresses the outer corridor width relative to the current center value. This helps users quickly judge whether the active map is relatively tight or relatively wide.
6) Width Stability
Width Stability estimates how stable the corridor width has been over time. This helps distinguish between a corridor that is behaving consistently and one that is expanding or contracting too erratically.
7) Drift Quality
Drift Quality is a composite score derived from containment, normalized slope strength, width stability, and fit quality. It is not a prediction score. It is a structural quality score describing how coherent the active corridor currently is.
HOW TO USE IT
A practical way to read the script is to begin with the mode, then confirm the quality of the structure.
Mode
Start with the mode label:
- Uptrend Range suggests the active regression backbone is rising with enough normalized slope to avoid being treated as flat
- Flat Range suggests directional drift is weak relative to the selected threshold
- Downtrend Range suggests the active regression backbone is declining with enough normalized slope to define a downward corridor
Containment
Then check containment. High containment means price has been spending most of its recent time inside the outer corridor. This usually indicates that the displayed map is representative of the current market path.
Drift Quality
Use Drift Quality to judge whether the active corridor is coherent enough to be worth respecting as a structure. Higher values suggest cleaner organization. Lower values suggest weaker corridor integrity.
Range Width and Width Stability
Use these two together. A corridor can be narrow but unstable, or wide but orderly. The combination is often more informative than either metric alone.
VISUAL INTERPRETATION
In practice, the script is designed to help with questions such as:
- Is price traveling inside an orderly directional corridor or just moving noisily?
- Is the current range map still representative of behavior, or is it degrading?
- Is the structure flat, directional, tight, or loose?
- Is the current drift readable enough to justify a structure-based chart interpretation?
This makes the tool useful for context reading, corridor analysis, and chart organization. It is intentionally restrained in its presentation so price remains the primary object on the chart.
KEY INPUTS
Source
Selects the price source used to build the regression backbone.
Regression Length
Controls the lookback window used for the rolling linear regression center line. Shorter values make the map more reactive. Longer values make it smoother and more structural.
Containment Lookback
Defines the number of bars used to measure how consistently price remains inside the outer corridor.
Inner Band Multiplier
Controls the distance of the inner corridor around the regression backbone.
Outer Band Multiplier
Controls the distance of the outer corridor around the regression backbone.
Flat Threshold
Defines the normalized slope threshold below which the corridor is classified as flat.
Theme Preset
Provides a dark and light visual preset for better chart integration.
Mini Panel Controls
The panel can be shown or hidden and positioned in different chart corners depending on layout preference.
WHAT THIS SCRIPT IS NOT
This script is not a future path projection model.
It does not forecast a target.
It does not mark buy or sell entries.
It does not attempt to predict reversals.
It does not replace execution logic, confirmation logic, or risk management.
Its job is narrower and more disciplined: it maps the active regression corridor and summarizes how coherent that corridor currently is.
LIMITATIONS AND TRANSPARENCY
Like any rolling statistical model, this script is sensitive to lookback selection. Shorter lengths will react faster but may produce more frequent structural changes. Longer lengths will be smoother but slower to adapt.
Because the corridor is recalculated on a rolling basis, the map should be interpreted as a live description of current structure, not as a permanent historical truth.
The script also simplifies market behavior into a corridor framework. Strong news shocks, gap-like behavior, or abrupt volatility expansion can temporarily reduce corridor usefulness.
Drift Quality is a descriptive composite score, not an absolute truth metric. It should be used as context, not as a standalone trading decision.
HOW I THINK IT IS BEST USED
In my view, this tool works best when combined with discretionary chart reading or a broader structured workflow.
Examples:
- use it to decide whether a chart currently deserves trend-continuation thinking or range-neutral thinking
- use it to evaluate whether pullbacks are occurring inside a disciplined corridor or inside a deteriorating structure
- use it to compare the cleanliness of movement across symbols or timeframes
- use it as a chart-organization layer before applying separate execution logic
It is especially useful when the goal is not to chase events, but to understand the condition of the active movement map.
RISK DISCLOSURE
This script is an analytical indicator for chart interpretation. It does not provide financial advice, investment advice, or trading guarantees.
All trading decisions involve risk. Users should evaluate settings, market context, and risk management independently before using any indicator in live decision-making. Indicator

AI Neural Trend Predictor [identityKa]The AI Neural Trend Predictor is a professional-grade, zero-lag trend tracking system designed to keep traders in massive moves while aggressively filtering out market noise. Traditional moving averages suffer from two fatal flaws: they either lag heavily behind the price, or they whipsaw the trader out of positions during minor pullbacks. This script solves both issues by combining a zero-lag mathematical smoothing algorithm with a dynamic volatility shield.
Core Mechanics & Detection
Zero-Lag Base Engine: The core of the algorithm utilizes a highly responsive, smoothed proxy to track the live price instantly, eliminating the delayed entry problem found in SMA or EMA based indicators.
Volatility Shield (Noise Filter): Instead of flipping signals the moment price crosses the baseline, the engine projects a dynamic ATR-based shield around the trend. During a bullish run, minor price drops will simply compress into the shield without triggering a premature SELL signal. The trend only flips when the institutional order flow breaks through the true volatility threshold.
Clear BUY / SELL Labels: The engine prints highly visible, definitive BUY (Green) or SELL (Red) labels directly on the chart, taking the guesswork out of your entries.
HUD Dashboard & AI Logic
The strictly positioned on-chart intelligence panel evaluates the live market state:
Dangerous (Orange): Displayed actively whenever the internal volatility ratio drops below the algorithmic threshold, indicating a Choppy or Ranging market. This warns the trader to avoid taking new positions until momentum returns.
LONG / SHORT: The engine generates a clear directional bias when the market shifts to a "TRENDING" state and the volatility shield remains unbreached in the direction of the trend.
How to Use It
This tool is built for capturing massive swings. When an AI BUY label appears, you ride the trend until the opposing SELL label is printed. Do not panic-sell during minor red candles (pullbacks); trust the Volatility Shield to keep you in the trade. For optimal results, ignore signals generated while the dashboard reads "Dangerous." Indicator

Machine Learning: Trend Classifier [identityKa]Overview
The Machine Learning: Trend Classifier is a professional-grade algorithmic momentum and trend analysis tool designed for data-driven traders. Unlike traditional moving averages that inherently lag behind live price action, this script introduces a multi-factor mathematical classification engine that evaluates real-time market behavior to predict the true direction of the trend.
Core Mechanics & Detection
The algorithm uses a continuous data-stream calculation to locate major market shifts:
Bullish Classification (Neon Green): Detected when the underlying momentum, volatility, and trend-flow simultaneously show aggressive upward expansion. The dynamic data ribbon shifts to green, encapsulating the price.
Bearish Classification (Neon Red): Detected when the structural momentum shifts downwards. The dynamic ribbon turns red, acting as algorithmic resistance.
Neutral / Chop Zones (Orange): Detected when the market loses clear direction. The engine recognizes this as a friction zone and shifts to a neutral state, warning the trader of potential whipsaws.
The Algorithmic Classification Engine
A fundamental rule of this indicator is the "AI Confidence Score". The engine normalizes multiple indicators (RSI, CCI, and MACD flows) into a strict 0 to 100 percentage scale.
The script constantly monitors this confidence score. If the score is above 20%, a Bullish state is confirmed. If it is below -20%, a Bearish state is confirmed. Anything in between is classified as market noise.
Upon crossing these algorithmic thresholds, the script instantly updates the on-chart Ribbon, ensuring that only statistically significant trend shifts are highlighted for the trader. This keeps the workspace incredibly clean and mathematically sound.
HUD Dashboard & AI Logic
The on-chart intelligence panel evaluates the live market state and generates actionable data:
Dangerous: Displayed actively whenever the current live price is trading inside the Neutral zone (Confidence Score between -20% and 20%). This serves as a warning that the price is in a high-friction area where sharp rejections and false breakouts are imminent.
LONG / SHORT: The engine tracks the macro bias based on the classification state. If the AI Confidence heavily favors upward momentum, the bias shifts to LONG. If the momentum breaks downwards, the bias shifts to SHORT.
How to Use It
This tool provides exceptional context for trade entries and trend following. When the AI Suggestion reads "LONG," traders should look for pullbacks toward the lower band of the green ribbon. When the state reads "Dangerous," it is highly recommended to stay out of the market or tighten stop losses until a clear trend direction is re-established by the algorithm. Indicator

Trend Quality Score (TQS)Trend Quality Score (TQS) is a composite indicator designed to evaluate the strength, direction, and consistency of a trend in a single normalized signal.
The indicator combines three core components derived from price action and directional movement:
Directional Strength – Measures the relative dominance of buyers vs. sellers using the difference between +DI and -DI.
Trend Strength (DX) – Captures the magnitude of directional movement, smoothed to reduce noise.
Trend Persistence – Evaluates how consistently price has been moving in one direction over a defined lookback period.
These components are weighted and combined into a single score (TQS), which fluctuates around zero:
Positive values indicate upward trend conditions
Negative values indicate downward trend conditions
Values near zero suggest weak or non-trending markets
A configurable moving average can be applied to TQS to help identify shifts in trend quality and improve signal clarity.
Key Features
Combines strength, direction, and persistence into one metric
Helps distinguish strong trends from choppy conditions
Customizable smoothing and moving average type (SMA, EMA, WMA, RMA)
Suitable for trend confirmation, filtering trades, or regime detection
How to Use
Use TQS above zero to confirm bullish conditions and below zero for bearish conditions
Look for crossovers between TQS and its moving average as potential shifts in trend quality
Avoid trading when TQS is near zero, as this indicates low-quality or sideways markets
This indicator is designed as a confirmation and filtering tool and works best when combined with a broader trading strategy. Indicator

HTF Conviction Divergence Matrix [ChartPrime]🔶 OVERVIEW
HTF Conviction Divergence Matrix is a professional-grade reversal detection engine that synchronizes momentum oscillators with institutional volume flow across multiple timeframes. Unlike standard divergence tools that only track price and RSI, this indicator utilizes a "Matrix" validation engine that requires Volume Delta alignment to confirm institutional participation before flagging a signal.
The tool provides a comprehensive high-timeframe (HTF) workspace, featuring dynamic OHLC structural levels, a multi-timeframe bias ribbon, and a real-time "Power of 3" (PO3) projection.
• Conviction-Based RSI Divergence Matrix
• NEW: High-Conviction Volumetric Filtering
• Dynamic HTF OHLC Structural Levels (Open, High, Low, Close)
• Multi-Timeframe Trend Bias Ribbon (Bottom-fixed)
• Automated "Power of 3" (PO3) Candle Projection
• Precision Pivot Trendline Plotting
• Customizable "High Conviction" Signal Labels
🔶 CORE CONCEPT — THE CONVICTION MATRIX
Standard divergences often suffer from "exhaustion traps" where price continues to move against the signal due to a lack of institutional backing. HTF Conviction Divergence Matrix solves this by integrating Cumulative Volume Delta into the reversal logic:
• High-Conviction Filter: A divergence is only labeled as "High Conviction" if the HTF Volume Delta aligns with the price reversal. For a bullish divergence, we look for rising delta (buying pressure); for bearish, we look for falling delta (selling pressure).
• Institutional Confirmation: By filtering out low-volume divergences, the script helps traders focus on areas where "Smart Money" is actively rotating positions, significantly increasing the probability of a successful reversal.
🔶 HTF STRUCTURAL LAYERS
To provide institutional-level context, the indicator features a dynamic structural mapping system that identifies key HTF levels in real-time.
Period-Origin Levels: The script draws the Open, High, Low, and Close of the current HTF candle, starting exactly at the period's origin. This allows traders to see how lower-timeframe price action is interacting with the "Higher Timeframe Range" as it develops.
Dynamic S/R: These levels act as automated support and resistance zones. Reversals occurring at the HTF High (H-H) or HTF Low (H-L) are historically higher probability than those occurring in the middle of the range.
HTF Bias Ribbon: A discrete ribbon at the bottom of the chart tracks whether the HTF candle is currently Bullish (Price > Open) or Bearish (Price < Open), providing an instant "Go/No-Go" filter for trend-alignment.
🔶 PO3 PROJECTION (POWER OF 3)
The indicator features an automated "Power of 3" projection system to the right of the price action.
Accumulation, Manipulation, Distribution: The PO3 projection visualizes the current HTF candle's internal structure (Wick vs. Body), allowing you to anticipate "Expansion" phases before they occur on the lower timeframe.
Real-Time Updates: The projection updates bar-by-bar, showing the exact HTF High/Low expansion relative to the current session.
🔶 HOW TO USE
Spotting High-Conviction Reversals: Look for the High Conviction label accompanied by a solid trendline. These signals represent a rare alignment of Price, Momentum (RSI), and Institutional Flow (Volume Delta).
Trading the HTF Range: Use the H-H (HTF High) and H-L (HTF Low) levels as primary targets or reversal zones. A signal appearing at an HTF range extremity is a "Prime" setup.
Trend Alignment: Check the HTF Bias Ribbon at the bottom. For the highest probability, only take Bullish signals when the ribbon is Green (HTF Bullish Context).
Managing Exits: Use the HTF Open (H-O) level as a "Magnet" or "Equilibrium" point for mean-reversion trades.
🔶 CONCLUSION
HTF Conviction Divergence Matrix transforms the traditional RSI divergence into a multi-factor institutional tool. By prioritizing volume intensity and HTF structural context, it removes the guesswork from reversal trading and helps traders identify where the real market rotations are happening.
Indicator

NQ Swing Command Intraday NQ Swing Command – Intraday (15m/30m/1h)
A structured intraday trading system built for the Nasdaq-100 Index (NQ), designed to capture clean swing moves using multi-timeframe confluence. This script aligns 15m execution with 30m confirmation and 1H directional bias, giving traders a clear framework for timing entries within the broader market structure.
The strategy focuses on identifying trend continuation and reversal zones, combining price action, momentum, and key levels to deliver high-probability setups. Whether you're trading pullbacks, breakouts, or intraday swings, this system helps filter noise and keep you trading in sync with market flow.
Built for consistency and discipline, NQ Swing Command is ideal for traders looking to:
*Follow structured, rule-based setups
*Improve entry timing across multiple timeframes
*Capture intraday swings with confidence
*Stay aligned with overall market direction
A clean, no-fluff approach to mastering intraday movement on NQ. Indicator

Trader in war (By Vahid.Jz) IR🎉 The first Persian indicator on PulseWire, released for free to celebrate my daughter's (Atena / Avina) birthday. 🎉
first in corona, next in war. . .
**Trading Assistant (by Vahid.Jz)** is an all-in-one tool designed to simplify analysis and improve accuracy. It acts as an intelligent trading partner.
**Features:**
- Market Structure detection
- Multi-Timeframe “Third Eye” analysis
- Professional Order Blocks recognition
- Fair Value Gaps (FVGs) detection
- Customizable alerts
- Fully Persian interface
- Create Custom Alarm
Developed with love by **Vahid.Jz**, a trader and Pine Script enthusiast.
*“Trading is not a destination; it’s the journey — a path of learning, growth, and experience.”*
Oct 10, 2025
Release Notes
fix bog
Oct 10, 2025
Release Notes
fix bug tw
Oct 10, 2025
Release Notes
Fix Bug Alert
Oct 10, 2025
Release Notes
Fix bug
Oct 12, 2025
Release Notes
Add Neo Elliot Wave - "You can manually adjust the Elliott wave range."
Dec 16, 2025
Release Notes
Update Description:
Added Divergence Signals and Types:
This update introduces new divergence signals to the indicator, providing more robust market analysis.
Custom Divergence
Volume Divergence
Trend Divergence
Inverse Trend Divergence
Feb 13
Release Notes
+fix Bug
Feb 13
Release Notes
+Fix minimal Bug
Feb 27
Release Notes
Added shadow divergence detection for improved hidden signal recognition.
Enhanced Ichimoku implementation with advanced configuration options.
Integrated additional filters including Kumo-based, Ichimoku-based, and regression-based signal filtering for trend-oriented strategies.
Improved transparency and signal clarity in gap structures and order block zones.
Optimized performance and fixed minor bugs for more stable and accurate signal generation.
Feb 27
Release Notes
Fix BUG Indicator

TX Volume Spike Overview:
TX Volume Spike Pro is a sophisticated technical analysis tool designed to identify high-probability breakout and breakdown opportunities in STOCK trading. The core philosophy is "Volume confirms price." By combining price action breakout levels with directional volume spikes and advanced momentum filters, this script helps traders filter out market noise and identify institutional accumulation or distribution.
Key Features:
Directional Volume Spike Logic: Unlike standard volume indicators, TX Pro distinguishes between Bullish Spikes (accumulation) and Bearish Spikes (distribution). A signal is only valid if the recent volume surge aligns with the candle's direction.
Hybrid Confirmation System: The "Hybrid" mode integrates several technical indicators—On-Balance Volume (OBV), Money Flow Index (MFI), and Volume Oscillator—to ensure that momentum and money flow are fully supporting the price move.
Breakout/Breakdown Engine: Automatically identifies dynamic resistance (High) and support (Low) levels based on user-defined lookback periods.
Institutional Trend Filter: Includes a 200-period SMA filter to ensure traders stay on the right side of the long-term trend, significantly reducing risk in trending markets.
Professional UI: Features clean visual plots of key levels, directional bar highlighting for volume anomalies, and optimized signal labels.
How to Use:
Bullish Signal (BUY): Triggered when the price crosses over the Resistance level, confirmed by a Bullish Volume Spike within the lookback window, and supported by Hybrid filters (OBV/MFI/VO) if enabled.
Bearish Signal (SELL): Triggered when the price crosses under the Support level, confirmed by a Bearish Volume Spike, and supported by momentum filters.
Recommended Setting: Use the "Hybrid (All Filters)" mode for stock trading to ensure maximum confirmation.
Disclaimer:
This script is a technical analysis tool and should not be considered financial advice. Always use proper risk management and stop-loss orders in your trading strategy. Indicator

Indicator

MESA Adaptive Cycle Engine [MarkitTick]💡 The MESA Adaptive Cycle Engine is an advanced, dynamic trend-following overlay designed to adapt to market volatility and cyclical phases. Unlike traditional moving averages that suffer from significant lag during range-bound periods, this tool leverages digital signal processing to stay aligned with the market's dominant cycle. It features an integrated webhook automation system and a real-time risk management dashboard.
✨ Originality and Utility
Standard exponential or simple moving averages rely on fixed lookback periods, making them inherently flawed when market conditions shift from trending to cycling. This indicator utilizes the MESA (Maximum Entropy Spectral Analysis) Adaptive Moving Average (MAMA) and Following Adaptive Moving Average (FAMA) concepts. By measuring the phase rate of change via a Hilbert Transform, the moving averages mathematically adapt their alpha speeds. Furthermore, this script is uniquely engineered for modern automated trading, featuring a self-cleaning dashboard and dynamically constructed JSON payloads for external execution engines.
🔬 Methodology and Concepts
● The Hilbert Transform
At its core, the script applies a Hilbert Transform to the price source (defaulting to hl2) to extract the real and imaginary components of the market cycle.
● Phase and Period Calculation
By calculating the arctangent of the quadrature and in-phase components, it determines the current phase and dominant cycle period.
● Adaptive Alpha
The phase's rate of change dictates the alpha variable. In trending markets, the phase changes slowly, allowing the alpha to remain near the Fast Limit. In choppy markets, the phase changes rapidly, dropping the alpha toward the Slow Limit to prevent whipsaws.
● Risk Engine
The script establishes automated Stop Loss and Take Profit levels based on an ATR multiplier, updating dynamically upon regime shifts.
🎨 Visual Guide
● MAMA and FAMA Lines
The indicator plots two primary lines: the MAMA line (default Green) and the FAMA line (default Red).
● Regime Fill
The space between MAMA and FAMA is filled with a semi-transparent Bullish color when MAMA is above FAMA, and a Bearish color when MAMA is below FAMA.
● Entry Signals
A small upward triangle is plotted below the bar upon a Golden Cross (Buy Signal), and a downward triangle is plotted above the bar upon a Death Cross (Sell Signal).
● Analytics Dashboard
A table in the bottom-right corner displays the current Market Regime, Phase Volatility (ATR), and the active JSON Payload status.
📖 How to Use
Wait for a confirmed crossover. A Golden Cross (MAMA crossing above FAMA) initiates a Bullish regime, while a Death Cross initiates a Bearish regime.
Use the Regime Fill to hold positions; stay in a long position as long as the fill remains bullish.
Monitor the Dashboard for real-time ATR values to assist with manual trailing stops, or rely on the automated Risk Manager's calculated Take Profit (2x ATR) and Stop Loss (1x ATR).
Non-standard charts (like Heikin Ashi or Renko) will trigger a runtime warning, as cycle measurements rely on standard time-based OHLC data.
⚙️ Inputs and Settings
● MESA DSP Parameters
Price Source: Determines the input data (default hl2).
Fast Limit: The maximum alpha speed, usually set to 0.5.
Slow Limit: The minimum alpha speed, usually set to 0.05.
● Automation & JSON Payload
ATR Multiplier: Controls the width of the Stop Loss and Take Profit levels.
Webhook Action (Long/Short): Defines the string action injected into the outgoing JSON payload.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The indicator is deeply rooted in digital signal processing (DSP), specifically pioneered for trading by John Ehlers. The framework models market data as a complex waveform. By passing the data through a 4-bar WMA smoother and then applying a Hilbert Transform, the algorithm isolates the in-phase (I) and quadrature (Q) components. This orthogonal relationship allows the script to map the market's analytic signal onto a complex plane, solving for the instantaneous phase angle. The fundamental academic breakthrough here is using the derivative of this phase (the rate of phase change) to govern the exponential smoothing constant (alpha) of the moving average. This ensures the filter's bandwidth dynamically conforms to the signal's spectral density, offering high-fidelity smoothing without the commensurate group delay found in static linear filters.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Indicator

Smart RSI Candles [MarkitTick]💡 The Smart RSI Candles indicator redefines how traders visualize momentum by converting the standard Relative Strength Index (RSI) into an intuitive, multi-dimensional candlestick chart. Instead of relying on a single oscillating line that only shows the final value of a period, this tool provides Open, High, Low, and Close (OHLC) data for the RSI itself. This methodology offers far deeper insights into momentum volatility, internal strength, and intra-bar price action within any given timeframe. Furthermore, it features an advanced, automated divergence detection engine. This engine continuously scans the market for both regular and hidden divergences, instantly plotting them directly on the oscillator pane alongside actionable alert conditions. Whether you are a reversal trader looking for exhaustion or a trend-follower waiting for a pullback, this indicator provides a complete, self-contained momentum ecosystem.
✨ Originality and Utility
While the traditional RSI is a staple in technical analysis, it often fails to convey the true intra-bar volatility of market momentum. This script solves that fundamental flaw by generating fully formed RSI candles.
The originality of this script lies heavily in the custom `RsiScaler` type. This mathematical function scales actual price wicks (the highs and lows) down into the restricted 0-100 bounds of the RSI scale. This creates highly accurate high and low shadows for the RSI candles, a feature completely absent in standard momentum oscillators.
The utility is massively enhanced by the built-in divergence scanner. Traders no longer need to manually draw trendlines comparing price pivots to RSI pivots. The script autonomously identifies Regular Bullish, Regular Bearish, Hidden Bullish, and Hidden Bearish setups.
For algorithmic and systematic traders, alerts are generated with pre-calculated JSON payloads. These payloads include dynamic Stop Loss (SL) and Take Profit (TP) values automatically calculated using a 1:1.5 risk-to-reward ratio, making it highly useful for direct integration into automated trading systems or execution bots.
🔬 Methodology and Concepts
● The RSI Candlestick Calculation
The script begins by calculating the raw RSI using the user-defined length (default is set to 14).
To construct the body of the candle, it calculates a custom RSI Open (`o_rsi`). This is achieved by evaluating the moving average of both gains and losses using a smoothed Running Moving Average (RMA) approach with a specific alpha.
The current raw RSI serves as the Closing value (`c_rsi`) for the candle.
The high and low wicks are derived through a complex mapping process. The script compares the actual price high and low against the RSI's historical range using a proportional interpolation factor.
Finally, these values are mathematically clamped to ensure they never exceed the absolute RSI limits of 0 and 100.
● Divergence Detection Engine
The script utilizes pivot functions to pinpoint local troughs and peaks on the newly calculated RSI extremes.
These coordinates are stored in a custom `PivotData` object.
When a new pivot is confirmed within the maximum lookback window, the script evaluates the current price and RSI values against the historical pivot.
A Regular Bullish Divergence triggers when the price structure makes a lower low, but the RSI momentum makes a higher low.
Conversely, a Hidden Bullish Divergence triggers when the price structure makes a higher low, but the RSI plunges to a lower low.
🎨 Visual Guide
● RSI Candlesticks
• Bullish Candles: Displayed on the oscillator pane when the RSI Close is greater than or equal to the RSI Open. These are colored in a distinct teal (#089981) by default to indicate rising internal momentum.
• Bearish Candles: Displayed when the RSI Close is strictly lower than the RSI Open. These are colored in a standard red (#f23645) to indicate falling internal momentum.
● Threshold Lines
• Overbought Line: A horizontal line permanently set at the 80 level, indicating extreme upward momentum and potential overextension.
• Oversold Line: A horizontal line permanently set at the 20 level, indicating extreme downward momentum and potential capitulation.
• Midline: A neutral 50-level line used by traders to gauge the broader trend bias (above 50 is bullish, below 50 is bearish).
● Divergence Indicators
• Solid Lines: Drawn connecting the valid pivot points to highlight Regular Divergences (Green lines for Bullish setups, Red lines for Bearish setups).
• Dashed Lines: Drawn connecting the valid pivot points to highlight Hidden Divergences, separating them visually from regular reversal setups.
• Text Labels: Small, precise shapes containing text (such as "Bull", "Bear", "H-Bull", "H-Bear") appear directly above or below the triggering price pivots on the main chart to provide immediate visual confirmation of the detected setup.
📖 How to Use
• Momentum Confirmation: Closely observe the color and the physical size of the RSI candles. A consecutive series of large, bullish RSI candles decisively breaking above the 50 Midline strongly suggests that buyer strength is accumulating rapidly.
• Reversal Trading: Look for Regular Divergences occurring near the extreme 20 or 80 boundary levels. For example, if the price is pushing down to a new low, but the RSI candle forms a higher low and subsequently triggers a "Bull" label on the chart, traders can consider this an early warning signal that selling pressure is exhausting.
• Trend Continuation: Utilize Hidden Divergences to strategically rejoin an already established trend. A "H-Bull" label appearing during a standard uptrend pullback indicates that momentum has reset to a lower level, but the overall price remains structurally bullish, offering a high-probability potential entry point.
• Alert Automation: Configure PulseWire alerts directly on this indicator to receive the structured JSON payloads. These comprehensive data packets can be routed to third-party execution platforms, automatically utilizing the mathematically derived Stop Loss and Take Profit levels provided in the code.
⚙️ Inputs and Settings
• RSI Length: This is the core lookback period utilized for the relative strength calculation. The default value is 14, but it can be adjusted to suit faster or slower trading styles.
• Divergence Pivot Left / Right: This setting determines exactly how many bars are required on either side of a potential high or low to officially confirm it as a pivot point. Selecting higher values will inherently result in fewer, but potentially more significant and reliable, divergence signals.
• Max Divergence Lookback: This controls the maximum number of historical bars allowed between two confirmed pivots for a divergence to be considered valid by the engine. The default parameter is 60.
• Color Customization: Users have absolute control over the visual aesthetics, with dedicated inputs to change the colors for bullish/bearish candles, overbought/oversold lines, and all four distinct divergence line types.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The fundamental foundation of this script rests firmly on J. Welles Wilder Jr.'s Relative Strength Index, a classic momentum oscillator designed to measure the speed and change of directional price movements.
By converting the standard RSI formula—which traditionally yields only a single scalar value per time period—into an OHLC statistical distribution, the script practically applies the advanced principles of data discretization to market momentum.
The proprietary `RsiScaler` algorithm utilizes linear interpolation to effectively project the spatial relationship of price wicks onto the confined, normalized vector space of the RSI (which operates strictly from 0 to 100). This mathematical mapping ensures that the proportional variance of the asset's price is accurately and visually represented within the oscillator's finite bounds.
Furthermore, the divergence detection protocol relies on local extremum mathematics. It actively identifies specific points in time where the first derivative of the price function changes its sign. By calculating and comparing the slope of the secant line connecting two price extrema to the slope connecting the corresponding RSI extrema, the algorithm efficiently identifies structural non-conformities. In academic financial literature, these structural non-conformities (divergences) are widely recognized as phenomena that often precede significant shifts in aggregate market psychology.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Indicator

Viprasol Multi-Timeframe Trend Signal EngineOverview
The Multi-Timeframe Trend Signal Engine is a comprehensive overlay indicator that combines SuperTrend signals, a 5-EMA trend ribbon, EMA cloud, chaos trend line, order blocks, and an RSI-based take profit system with a 6-timeframe ADX trend dashboard. The core system — originally developed by Zakaria Safri — is a mature, feature-rich trading toolkit. This version adds a confluence quantification layer that transforms the dashboard's six independent timeframe readings into a single scored consensus metric, turning passive multi-timeframe observation into an actionable alignment signal.
How It Works
SuperTrend Signal Engine:
A custom SuperTrend calculation generates buy and sell signals using ATR-based dynamic bands. All signals require bar-close confirmation to prevent repainting on confirmed bars. Two modes are available: "All Signals" shows every crossover, while "Filtered Signals" adds an EMA gate requiring price to be above (for buys) or below (for sells) the main EMA before a signal qualifies.
Multi-Timeframe ADX Dashboard:
The indicator fetches ADX trend quality from six timeframes (5m, 15m, 1H, 4H, 12H, Daily) using an anti-repaint security pattern (previous bar value with lookahead — confirmed bars only). Each timeframe is classified as Bullish, Bearish, or Neutral based on an adaptive threshold derived from the median ADX value multiplied by a configurable factor. This means trend classification adjusts to the instrument's own volatility regime rather than relying on fixed levels.
MTF Confluence Score (Viprasol Addition):
The six individual timeframe trend readings are aggregated into a Confluence Score ranging from 0 to 6. The score counts how many timeframes currently show a bullish ADX trend. A separate bear confluence count tracks bearish alignment independently. The score is color-coded in the dashboard: green at 5-6 (strong bullish consensus), yellow at 3-4 (mixed), red at 0-2 (weak or bearish-dominant). This transforms what would otherwise be six separate readings requiring manual interpretation into a single quantified alignment metric. Two dedicated alert conditions fire when 5 or more timeframes agree on direction, providing automated detection of high-confluence setups.
Trend Ribbon:
Five EMAs (20, 25, 35, 45, 55) form a color-coded ribbon. The ribbon is bullish when the fastest EMA leads and bearish when it trails, shifting state on crossover. It provides a visual trend context layer independent of the SuperTrend signal system.
EMA Cloud:
A 150/250 EMA cloud identifies longer-term structural trend direction. Green fill indicates bullish structure, red fill indicates bearish structure. This serves as a backdrop for assessing whether shorter-term signals align with the broader trend.
Chaos Trend Line:
An adaptive trend line using pivot-based detection with ATR channels. It tracks the prevailing trend using highest and lowest pivot levels and changes color on confirmed reversals, providing another independent trend perspective.
Order Blocks:
Structural order blocks based on pivot break-of-structure logic. Bullish order blocks form at swing lows when higher highs break structure; bearish order blocks form at swing highs when lower lows break structure. Boxes fade when price tests them and are removed when fully invalidated.
RSI Take Profit System:
A sequential TP system using RSI crossovers at configurable levels (default 70/85/100 for bullish, 30/15/5 for bearish). Each TP level only fires after the previous one has triggered within the current signal cycle, creating a staged exit framework. TP1 must trigger before TP2 becomes active, and TP2 before TP3.
Reversal Signals:
A 25-period RSI-based reversal detector that fires when RSI crosses above the oversold level or below the overbought level, using bar-close confirmation.
Risk Management Lines:
Visual-only TP and SL lines plotted relative to entry price. These are for reference only and do not execute trades.
Key Features
- SuperTrend buy/sell signals with bar-close confirmation (no repainting on confirmed bars)
- Two signal modes: All Signals and EMA-Filtered Signals
- 6-timeframe ADX trend dashboard (5m, 15m, 1H, 4H, 12H, Daily)
- MTF Confluence Score (0-6) quantifying multi-timeframe bullish/bearish alignment
- 5-EMA trend ribbon with directional color coding
- EMA 150/250 cloud for structural trend context
- Adaptive chaos trend line with pivot-based detection
- Structural order blocks with fade-on-test and auto-invalidation
- RSI-based sequential take profit system (TP1, TP2, TP3)
- Visual TP/SL risk management lines
- RSI reversal signals at extreme levels
- Channel breakout levels from pivot highs and lows
- Three candle coloring modes (Scalper RSI, Trend Ribbon, EMA Direction)
- RSI background zones for overbought/oversold visualization
- Configurable dashboard position and font size
- All visual elements individually toggleable
- 10 alert conditions with dynamic messages
How to Use
Reading the Dashboard:
Start with the MTF Confluence Score. A score of 5-6 out of 6 indicates strong multi-timeframe bullish alignment — the majority of timeframes from 5-minute through Daily are trending in the same direction. A score of 0-1 indicates strong bearish alignment. Scores of 3-4 represent mixed conditions where caution is warranted. The individual timeframe rows below the score show exactly where agreement and disagreement exist, letting you identify which timeframes are diverging.
Signal Workflow:
Use "Filtered Signals" mode for higher-quality entries that align with the main EMA direction. Use "All Signals" mode when you want to capture more frequent opportunities in ranging or transitional markets. Reversal signals (purple labels) flag potential exhaustion at RSI extremes. The sequential TP markers (TP1, TP2, TP3) provide staged exit targets based on RSI momentum progression.
Combining Confluence with Signals:
The confluence score is most valuable as a directional filter. A buy signal firing when the confluence score is 5 or 6 carries more weight than one firing at a score of 2. Similarly, a sell signal at confluence 0 or 1 has stronger multi-timeframe backing. This is the core analytical addition — rather than visually scanning six rows, you get a single number that quantifies alignment strength.
Suggested Starting Points:
- Scalping (1m-5m): Sensitivity 2.0, ATR Factor 8, Filtered mode
- Intraday (15m-1H): Sensitivity 2.5, ATR Factor 11, All Signals mode
- Swing (4H-1D): Sensitivity 3.0, ATR Factor 14, Filtered mode
Settings
Main Settings — Sensitivity (controls signal frequency), Signal Mode (All or Filtered), ATR Factor (band width)
Trend Settings — Toggle trend ribbon, EMA cloud, chaos trend line, order blocks; configurable main EMA period
Signal Settings — Show/hide buy-sell signals, candle coloring mode selection, RSI background zones, channel breakouts
Dashboard Settings — Show/hide dashboard, position selection, font size
Risk Management — Visual-only TP/SL lines, TP strength multiplier, individual TP level toggles
Alerts
1. Buy Signal — SuperTrend crossover buy confirmed at bar close
2. Sell Signal — SuperTrend crossover sell confirmed at bar close
3. Filtered Buy — Buy signal with price above main EMA
4. Filtered Sell — Sell signal with price below main EMA
5. Reversal Up — RSI crosses above oversold level
6. Reversal Down — RSI crosses below overbought level
7. Ribbon Turned Bullish — EMA ribbon state change to bullish (edge-detected, fires once on crossover bar)
8. Ribbon Turned Bearish — EMA ribbon state change to bearish (edge-detected, fires once on crossover bar)
9. Strong Bullish MTF Alignment — 5+ of 6 timeframes showing bullish ADX trend
10. Strong Bearish MTF Alignment — 5+ of 6 timeframes showing bearish ADX trend
All alerts include dynamic message variables: {{ticker}}, {{close}}, and {{interval}}.
Limitations & Disclaimer
- MTF data uses the anti-repaint pattern (previous bar value with lookahead) to avoid repainting on confirmed bars. The current bar's data updates in real-time until that bar closes.
- ADX trend classification uses an adaptive threshold (median ADX multiplied by a configurable factor). "Neutral" readings are relative to the instrument's recent volatility, not fixed levels. This means the same ADX value may be classified differently across instruments or time periods.
- The RSI TP system is sequential — TP2 only becomes active after TP1 fires, and TP3 after TP2. If TP1 never triggers during a signal cycle, later levels will not fire.
- Order blocks use a simplified break-of-structure method based on 3-bar pivots. They are structural levels, not institutional order flow data.
- The Risk Management TP/SL lines are visual references only — they do not place or manage trades.
- This indicator is for educational and analytical purposes only. It is not financial advice. Always use proper risk management and validate signals with your own analysis. Test on a demo account before live trading.
Credits & Attribution
This script is derived from "Multi-Timeframe Trend Indicator with Signals" v4.4 by Zakaria Safri. The original is a substantial, feature-rich indicator that provides the SuperTrend signal engine, 5-EMA trend ribbon, EMA cloud, chaos trend line, 6-timeframe ADX dashboard, order block detection, RSI sequential take profit system, TP/SL risk management lines, reversal signals, channel breakout levels, three candle coloring modes, volatility measurement, and 8 alert conditions. The vast majority of the analytical logic in this script is Zakaria Safri's work.
Viprasol's additions: MTF Confluence Score (aggregating 6 timeframe readings into a 0-6 quantified alignment metric with color coding), separate bear confluence tracking, MTF alignment alerts (firing at 5+ timeframe agreement), and ribbon trend change alerts using edge detection for single-bar precision. These additions layer a confluence quantification system on top of the original's multi-timeframe dashboard.
Published open-source per PulseWire House Rules governing derivative works of open-source scripts. Indicator

Liquidity Flow Surge Profile [ChartPrime]🔶 OVERVIEW
LiquidityFlow Surge Profile is an advanced orderflow visualization suite that maps institutional transaction density and detects climactic liquidation events in real time. By combining a 25-bin structural heatmap with an intelligent "Liquidation Surge" engine, this indicator identifies where market energy is being absorbed and where it is being aggressively released.
The tool focuses on the relationship between high-contrast structural "Heat" and immediate volume surges, providing traders with a high-conviction roadmap of the market's internal mechanics.
• 25-Bin High-Contrast Structural Liquidity Map
• Dynamic Liquidation Surge Bubbles (5 Tier Scaling)
• Real-Time Analytics Dashboard
• ATR-Adaptive Signal Placement
• Automated Fair-Value Visibility Clearout
🔶 CORE CONCEPT — STRUCTURAL THERMAL MAPPING
Liquidity is the fuel of the market. This indicator uses a proprietary single-pass volume distribution algorithm to identify the most significant transaction clusters over three user-definable depths (Short, Medium, Long).
Structural Clusters: The 25-bin heatmap highlights price levels where the most volume has transacted, acting as psychological and institutional floors or ceilings.
Fair-Value Visibility: To ensure the trader can always see immediate price action, the heatmap dynamically clears its coloring around the active candle, maintaining structural context without obscuring the bars.
🔶 LIQUIDATION SURGE ENGINE
The "Liquidation Bubble" system monitors current volume relative to the highest transaction peaks over the last 500 bars. These surge events are often where stop-losses are triggered, positions are forcefully closed, and major institutional entries are filled.
Relative Intensity: Bubbles scale across 5 tiers (Tiny, Small, Normal, Large, Extreme) based on volume size, ranging from 40% to 100%+ of the lookback high.
Directional Context: Bubbles are plotted above the bar for bullish surges (Short Liquidations) and below the bar for bearish surges (Long Liquidations).
Visual Weight: As volume intensity increases, the bubbles become more opaque and larger, creating an immediate visual hierarchy of market conviction.
🔶 REAL-TIME ANALYTICS DASHBOARD
The Pro version includes a dedicated real-time dashboard positioned in the top right corner of the chart.
This table tracks the absolute latest liquidation event, displaying:
• Event Type: Identifies if the last surge was a Long or Short liquidation.
• Volume Magnitude: Displays the exact transaction volume of the surge.
• Contextual Coloring: The dashboard text dynamically matches the bubble colors (Mint/Rose) for instant situational awareness.
🔶 HOW TO USE
Absorption & Reversal: Look for price entering a thick "Heat" cluster while printing an Extreme (Large) liquidation bubble. This often signals a climactic "Stop Run" followed by a reversal.
Breakout Confirmation: When price slices through a thermal zone accompanied by a sequence of rising bubbles, it confirms high-conviction institutional participation.
Liquidity Magnets: Use the high-intensity bins as primary magnets for profit-taking or as structural levels to defend with your stop-loss.
🔶 CONCLUSION
LiquidityFlow Surge Profile transforms raw transaction data into a structured map of market energy. By identifying exactly where the "Heat" is concentrated and where the "Surge" is occurring, it allows traders to move beyond price action and stay aligned with the strongest institutional footprints in the market. Indicator
