Momentum Map Lite [PrimeFold]Four stochastic oscillators, read as one alignment score from 0/4 to 4/4.
Free, no signals, no alerts.
Momentum Map Lite runs four stochastic oscillators at different lookbacks
(fast, mid, slow, anchor) and plots their D-lines in one pane.)
You read one alignment score instead of watching all four:
- 4/4 BULL: all four turning up from oversold
- 4/4 BEAR: all four turning down from overbought
- Anything between: partial alignment, no full rotation
The background shades only at 4/4, and only on a closed bar, so it doesn't repaint.
The dashboard shows the current rotation count plus the strongest and weakest of the four.
It doesn't generate alerts, give entry signals, or detect divergence.
This is the alignment read.
Check whether momentum agrees across the four before you act on any one of them.
Indicator

Sector Rotation Map [ITA]See where institutional money is flowing across all 11 S&P sectors at a glance.
This indicator ranks every sector ETF (XLK, XLF, XLE, XLV, XLY, XLP, XLI, XLB, XLU, XLRE, XLC) by Relative Strength vs SPY and its momentum, then classifies each into one of four rotation states:
- Leading (strong + rising)
- Weakening (strong but fading)
- Lagging (weak + falling)
- Improving (weak but recovering)
Instead of flipping through 11 charts every morning, you get the full market rotation picture in one clean table.
Features:
- All 11 S&P sectors ranked automatically
- Relative Strength + Momentum, normalized around 100
- Four-state rotation classification, color-coded
- Configurable benchmark, lookbacks, table position and size
- Toggle any sector on/off
Feedback and suggestions welcome. Indicator

Indicator

[Viprasol] Real Relative StrengthOverview
This indicator is based on the open-source "Real Relative Strength" (RRS) concept, which measures how an asset is performing against a benchmark after normalising for volatility. The original plots ATR-normalised relative momentum versus a benchmark (e.g. SPY) with zero-cross arrows and strong/weak zones. This version keeps that calculation and adds RRS/price divergence detection, a second-benchmark agreement filter, a signal cooldown, an RRS acceleration read, and a compact dashboard.
How It Works
Real Relative Strength (from original concept):
Relative momentum = (asset momentum − benchmark momentum) / average ATR × multiplier, where momentum is close − close for both the asset and the benchmark, and the divisor is the average of the asset and benchmark ATR. The result is smoothed with an EMA. Positive = the asset is outperforming the benchmark on a volatility-adjusted basis; negative = underperforming. Strong/weak zones mark RRS beyond a configurable level.
Divergence (new):
Using pivots on the smoothed RRS, a bearish divergence is flagged when RRS makes a lower pivot high while price makes a higher high; bullish when RRS makes a higher pivot low while price makes a lower low.
Second-Benchmark Agreement (new):
Optionally compute RRS against a second benchmark and only confirm a zero-cross when both agree in sign — a confluence filter against single-benchmark noise.
Signal Cooldown (new):
A minimum bar gap between confirmed zero-cross signals to prevent clustering.
RRS Acceleration (new):
The bar-to-bar change in smoothed RRS, shown as a rising/falling momentum read in the dashboard.
What Is Original (Viprasol Additions)
1. RRS/price divergence detection (regular bullish and bearish).
2. Optional second-benchmark agreement filter on zero-cross signals.
3. Signal cooldown.
4. RRS acceleration (momentum-of-RRS) state.
5. Compact relative-strength dashboard.
Key Features
From the Original:
- ATR-normalised relative strength vs a benchmark
- EMA smoothing, zero-cross arrows, strong/weak zones, extreme background tint
Added in This Version (Viprasol):
- Divergence detection, dual-benchmark agreement, cooldown, acceleration read, dashboard
- Six alerts with dynamic {{ticker}}/{{close}}/{{interval}} messages
How to Use
1. Set the benchmark to match your asset class (SPY/QQQ stocks, IWM small-caps, BTCUSD crypto).
2. Above zero (aqua/green area) = outperforming; below zero (red area) = underperforming.
3. Zero-cross arrows mark fresh shifts; circles mark divergences; the strong/weak zones flag standout strength.
Recommended Starting Points:
- Intraday (15m-1H): Length 10-14
- Swing (Daily/4H): Length 14-20
- Use dual-benchmark agreement for higher-conviction crosses
These are starting points only — backtest and adjust before trading live.
Settings
Core: benchmark symbol, momentum length, ATR multiplier, RRS smoothing.
Confluence & Filters: 2nd-benchmark agreement (+ symbol), signal cooldown, strong/weak zone level.
Divergence: detect divergence toggle, pivot length.
Visuals: zero-cross arrows, RRS line, RRS area.
Dashboard: toggle and position.
Alerts
1. Bullish Cross — now outperforming the benchmark
2. Bearish Cross — now underperforming the benchmark
3. Strong Outperformance — RRS beyond the strong level
4. Strong Underperformance — RRS below the weak level
5. Bullish Divergence — RRS/price bullish divergence
6. Bearish Divergence — RRS/price bearish divergence
All alerts include {{ticker}}, {{close}}, and {{interval}}.
Limitations & Disclaimer
- RRS uses request.security for the benchmark; benchmark data quality and session alignment affect readings, especially across asset classes/exchanges.
- Divergence uses confirmed pivots, which lag by the pivot length.
- Relative strength shows leadership, not absolute direction — a rising RRS in a falling market only means the asset is falling less.
- Past performance does not guarantee future results. This indicator is for educational purposes only and is not financial advice. Always use proper risk management and test on historical data before trading live.
Credits & Attribution
Based on the open-source "Real Relative Strength" concept (community / SMB-style), which provided the ATR-normalised relative-momentum calculation, EMA smoothing, zero-cross signals, and strong/weak zones. Added by Viprasol: RRS/price divergence detection, optional second-benchmark agreement, signal cooldown, RRS acceleration, and the dashboard.
Published open-source per PulseWire House Rules.
Indicator

Nasan Stretch - Velocity Quadrant Plot# Stretch/Velocity Quadrant Plot
The **Stretch/Velocity Quadrant Plot** is a multi-asset market regime and momentum tool designed to track up to **11 symbols simultaneously**.
By plotting **Velocity** against **Stretch**, the indicator shows where each asset sits within the lifecycle of a trend and how it is moving between expansion, exhaustion, reversal, and recovery phases.
It is especially useful for:
* comparing several stocks on one chart,
* identifying leadership and rotation,
* spotting early momentum changes,
* distinguishing strong trends from overextended moves,
* and evaluating how likely a stock is to remain in or leave its current market phase.
## Core Concept
The model combines short-, medium-, and long-term behavior using:
* 13-period EMA
* 21-period EMA
* 34-period EMA
The three horizons are blended using customizable weights.
All values are normalized by ATR, allowing stocks with very different prices and volatility levels to be compared on the same scale.
## Velocity — X-Axis
Velocity measures the rate of change of the three EMAs.
Each EMA uses a separate lookback:
* EMA 13 velocity over 8 bars
* EMA 21 velocity over 13 bars
* EMA 34 velocity over 21 bars
The result represents the speed and direction of the underlying trend.
* Positive Velocity: trend momentum is improving
* Negative Velocity: trend momentum is weakening
## Stretch — Y-Axis
Stretch measures how far price has moved away from its EMA structure.
It is calculated as the ATR-normalized distance between price and the 13-, 21-, and 34-period EMAs.
* Positive Stretch: price is trading above its trend structure
* Negative Stretch: price is trading below its trend structure
* Larger absolute values: price is farther from equilibrium
## The Four Market Quadrants
### Q1 — Bullish Expansion
**Positive Velocity / Positive Stretch**
The asset is above its trend structure and momentum is accelerating.
This is typically associated with:
* strong uptrends,
* momentum continuation,
* leadership,
* and expanding price strength.
A stock moving from Q4 into Q1 may represent a developing recovery turning into a confirmed expansion phase.
### Q2 — Bearish Reversion
**Negative Velocity / Positive Stretch**
Price remains above its trend structure, but momentum is weakening.
This can indicate:
* an aging uptrend,
* loss of momentum,
* consolidation,
* profit-taking,
* or the beginning of a pullback.
Stocks that are highly stretched in Q1 and begin rotating into Q2 may be entering an exhaustion phase.
### Q3 — Bearish Expansion
**Negative Velocity / Negative Stretch**
Price is below its trend structure and downside momentum is increasing.
This is typically associated with:
* established downtrends,
* accelerating weakness,
* distribution,
* and bearish continuation.
### Q4 — Bullish Reversion
**Positive Velocity / Negative Stretch**
Price remains below its trend structure, but momentum has turned positive.
This can signal:
* improving conditions,
* mean reversion,
* early recovery,
* or a potential transition back into bullish expansion.
A rotation from Q4 into Q1 is one of the most important bullish transitions on the chart.
## Multi-Asset Tracking
The indicator supports up to **11 editable symbols**.
Each asset is displayed with:
* its own color,
* a historical trail,
* a current-position marker,
* and an automatically generated ticker label.
This makes it easy to compare:
* relative trend strength,
* market rotation,
* momentum leadership,
* and differences in trend maturity.
## Trailing Paths
Each ticker includes a configurable historical trail.
The trail shows how the asset arrived at its current position and whether it is:
* accelerating,
* slowing,
* rotating,
* reversing,
* or moving sideways near a quadrant boundary.
The direction of the trail is often as important as the current quadrant.
## True Range Variability Clouds
Optional ribbons are drawn around each asset’s trail using:
The calculation is blended over the same 8-, 13-, and 21-bar horizons used by the Velocity model.
Cloud thickness changes at every point along the trail:
* Narrow cloud: volatility is stable and movement is more orderly
* Wide cloud: volatility is inconsistent, noisy, or unstable
This provides an additional layer of information beyond direction and momentum.
The center trail shows where the asset is moving.
The surrounding cloud shows how reliable or disorderly that movement has been.
## Position-Sensitive Quadrant Statistics
A dedicated statistics table can be assigned to one requested ticker.
The table displays:
* current quadrant,
* current uninterrupted stay,
* average historical duration in each quadrant,
* number of completed quadrant runs,
* current Velocity and Stretch values,
* and transition probabilities over several forward horizons.
The transition model does not rely only on the quadrant name.
Each quadrant is divided into a 3 × 3 internal grid based on:
* Velocity magnitude: Low, Medium, or High
* Stretch magnitude: Low, Medium, or High
This creates 36 possible origin states:
The model therefore estimates probabilities such as:
> From Q1 with High Velocity and Medium Stretch, what is the probability of being in Q1, Q2, Q3, or Q4 after 5, 10, 15, or 21 bars?
This provides a more detailed transition model than treating every point inside the same quadrant as identical.
## Customizable Smoothing
The Velocity, Stretch, and cloud calculations can be smoothed using:
* EMA
* RMA
* SMA
* WMA
* or no smoothing
An optional second smoothing pass is also available for users who prefer slower, cleaner trails.
## How to Use the Indicator
The indicator is best used to evaluate trend rotation rather than as a standalone buy or sell signal.
Examples:
* Multiple stocks rotating from Q4 into Q1 may indicate broad market recovery.
* A leader remaining in Q1 with a narrow cloud may indicate persistent, orderly momentum.
* A highly stretched stock in Q1 rotating toward Q2 may be losing momentum.
* A stock in Q4 with rising Velocity may be developing an early recovery setup.
* A widening cloud may warn that the apparent move is becoming less stable.
* A stock near a quadrant boundary may be more likely to switch states than one deep inside a quadrant.
The strongest interpretation comes from combining:
* current quadrant,
* trail direction,
* cloud width,
* distance from the quadrant boundaries,
* and the transition-probability table.
## Important Note
This indicator is intended as a visual and statistical market-analysis tool.
It does not predict future prices with certainty and should be used together with:
* trend confirmation,
* volume,
* support and resistance,
* fundamentals,
* earnings risk,
* and position-sizing rules.
Indicator

Indicator

Crypto Beta Leadership Ladder [AGPro Series]Crypto Beta Leadership Ladder
🧠 Core Idea
When crypto risk appetite changes, who is actually leading the move: BTC, ETH, broad alt beta, or the active chart itself?
📌 Overview / What it does
Crypto Beta Leadership Ladder is a market leadership and relative beta map for crypto traders.
The script compares BTC, ETH, broad altcoin market-cap behavior, high-beta altcoin breadth, BTC dominance, ETH dominance, and the active chart into a single leadership framework.
It produces a right-side leadership ladder, a live leadership path, selective transition labels, optional compact markers, and an AG Pro dashboard panel. It does not predict price, automate trades, or tell users what to buy or sell.
🎯 Purpose & Design Philosophy
This script was built to solve a common crypto-market problem: price may move, but leadership often rotates underneath the move.
Sometimes BTC is leading defensively. Sometimes ETH begins to participate. Sometimes broad alt beta expands. Sometimes the active chart is outperforming the market. These are different market conditions, and they should not be interpreted the same way.
The goal is to help traders read crypto leadership quality instead of reacting only to candle direction.
⚡ Why This Script Is Different
Most tools focus on one symbol, one moving average, one dominance chart, or one relative-strength line.
This script does NOT draw liquidation zones, funding stress maps, stablecoin liquidity pulses, basis corridors, or open-interest commitment zones.
Instead, it builds a leadership ladder from multiple crypto-market proxies and ranks BTC, ETH, alt beta, and chart beta as a live market hierarchy.
⚙️ Methodology
1. Context Detection
The script reads BTC, ETH, TOTAL2, TOTAL3, BTC dominance, and ETH dominance sources.
2. Relative Beta Mapping
It compares performance, dominance change, chart beta versus BTC, and altcoin breadth versus BTC.
3. Leadership Ranking
BTC, ETH, ALT, and CHART scores are ranked into a leadership stack. The gap between the first and second rank controls whether leadership is clear or split.
4. Visual Output
The script displays a right-side rank ladder, a leadership path, selective event labels, optional rank markers, and a compact dashboard.
🗺️ How to Read the Chart
The top ladder rail shows the current leadership rank.
The middle rail shows the second rank and whether leadership is close or split.
The lower rail shows the third rank and the active beta spread context.
The leadership path moves with the market and changes color by active leadership state.
Event labels highlight major transitions such as BTC Shield Lead, ETH Leadership, Alt Beta Lead, Chart Beta Expansion, or Split Leadership.
The panel summarizes leader, score, edge, BTC relative change, ETH relative change, alt beta, chart beta, dominance shift, persistence, state, and grade.
🚦 Signals & States
• BTC Leadership → BTC is leading defensively versus the broader crypto market
• ETH Leadership → ETH participation is stronger than BTC and broad alt context
• Alt Beta Lead → high-beta altcoin breadth is leading the crypto market
• Chart Beta Expansion → the active chart is outperforming BTC with expanding beta
• Split Leadership → leadership is mixed and no single group has clear control
• Balanced Leadership → leadership is present but not strong enough to be dominant
• Data Missing → one or more reference sources are unavailable
🔔 Alerts Logic
Alerts can be enabled for BTC Leadership, ETH Leadership, Alt Beta Leadership, Chart Beta Expansion, and Split Leadership.
Alerts trigger when the relevant state becomes active and the leadership state changes.
Alerts are attention markers only. They are not trade instructions.
🧩 Confluence Logic
The ladder becomes more meaningful when rank edge, dominance shift, chart trend, and persistence align.
For example, an Alt Beta Lead state with positive chart beta and falling BTC dominance suggests a stronger risk-on leadership environment than a single isolated altcoin move.
📊 When to Use
• Crypto market rotation analysis
• BTC versus altcoin leadership checks
• ETH participation monitoring
• Altcoin beta expansion environments
• Market regime comparison across timeframes
⚠️ When NOT to Use
• Symbols with poor liquidity
• Very low timeframes with noisy dominance behavior
• Markets where reference symbols are unavailable
• During extreme news shocks without broader context
🎛️ Key Inputs
• Leadership Momentum Length → controls the main comparison window
• Leadership Baseline Length → controls slower leadership context
• Leadership Edge Threshold → controls how strong rank separation must be
• Beta Expansion Threshold → controls chart outperformance sensitivity
• Ladder Projection Bars → controls right-side ladder length
• Label Font Size / Panel Font Size → controls visual readability
🖥️ Interface & Visual Design
The interface is designed as a leadership stack rather than a zone map.
The ladder avoids white or pale-gray primary visuals so it remains visible on both dark and light chart backgrounds.
The panel uses the AG Pro blue header with a single merged title row and a compact information hierarchy.
🧪 Practical Usage Workflow
1. Read the panel state.
2. Check which asset group leads the ladder.
3. Compare edge and persistence.
4. Read the leadership path color.
5. Use event labels as attention markers, not trade signals.
🔍 Interpretation Guidelines
Clear leadership means one group is controlling relative market behavior.
Split leadership means the market may be rotating, pausing, or lacking conviction.
Chart Beta Expansion means the active symbol is outperforming BTC, but it still requires broader confirmation.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not a financial-advice tool.
It is not an automated trading system.
It does not guarantee that leadership will continue.
It does not replace risk management or broader market analysis.
⚠️ Limitations & Transparency
Reference-symbol availability may vary by exchange, region, and PulseWire data feed.
Dominance data may behave differently from exchange-traded pairs on lower timeframes.
Leadership can rotate quickly during volatile crypto sessions.
Different timeframes may show different leadership states.
🧠 Market Context Notes
BTC leadership often reflects defensive crypto behavior.
ETH leadership can suggest higher participation in major smart-contract assets.
Alt beta leadership can suggest broader risk appetite, but it may also be more volatile.
Split leadership often appears during transitions, pauses, or uncertain market regimes.
🧾 Use Case Examples
When BTC leads while BTC dominance rises, the market may be defensive even if price is moving.
When alt beta leads while BTC dominance falls, broader risk appetite may be improving.
When the active chart expands versus BTC while rank edge improves, that symbol may deserve closer attention.
🧱 System Philosophy
Crypto markets are not led by one chart all the time.
This script treats leadership as a rotating hierarchy and visualizes that hierarchy directly on the chart.
🔐 Non-Promise Statement
No script can guarantee future price behavior.
This tool maps leadership context; it does not provide certainty.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own decisions.
This script is provided for educational and analytical purposes only and does not constitute financial advice.
📚 Educational Note
Use the ladder to study how crypto leadership rotates between BTC, ETH, alt beta, and the active chart across different market regimes.
Indicator

Relative Strength Pullback Map [AGPro Series]Relative Strength Pullback Map
🧠 Core Idea
Is the pullback happening while the asset remains a relative leader against its benchmark?
📌 Overview / What it does
Relative Strength Pullback Map is a benchmark-relative price-action tool built to study whether an asset is pulling back from strength or breaking down into weakness.
The script compares the active symbol against a selected benchmark, builds a relative-strength baseline, evaluates leader status, measures pullback depth, maps a pullback pocket, marks the recovery rail, and summarizes the full context inside a compact AG Pro panel.
It does not predict future price, automate trades, or claim that every leader pullback must recover. It is a structured decision-support map for reading relative strength, benchmark leadership, pullback health, recovery readiness, and relative breakdown risk.
🎯 Purpose & Design Philosophy
Pullbacks are not all equal.
Some pullbacks happen while the asset continues to outperform its benchmark.
Other pullbacks happen because relative strength is already breaking down.
This script was built to separate those two conditions. The design goal is to help traders identify whether a pullback belongs to a still-strong relative leader or a weakening laggard.
⚡ Why This Script Is Different
Most pullback tools focus only on price.
Most relative-strength tools focus only on the ratio line.
This script does NOT treat pullback quality and relative strength as separate ideas.
Instead, it combines benchmark-relative leadership, price pullback depth, trend shelf behavior, recovery rail reclaim, and relative breakdown risk into one visual map.
The focus is not only whether price pulled back.
The focus is whether the asset remained a leader while pulling back.
⚙️ Methodology
1. Benchmark Comparison
The script compares the active symbol against a selected benchmark using a relative-strength ratio.
2. Relative Strength Baseline
The ratio is smoothed into a baseline so leadership can be evaluated against its own recent behavior.
3. Leader Status Scoring
Leader status combines relative-strength distance, relative-strength slope, and price trend structure.
4. Pullback Depth Measurement
The script measures how far price has pulled back from the recent high using ATR-normalized depth and percentage depth.
5. Pullback Pocket Mapping
The pullback pocket is mapped between the fast recovery rail and the deeper trend shelf.
6. Recovery Evaluation
The script checks whether price is reclaiming the recovery rail while relative strength remains constructive.
7. Visual Output
The chart displays the pullback pocket, recovery rail, relative-strength rail, leader/laggard labels, right-side context tags, alerts, and a compact AG Pro panel.
🗺️ How to Read the Chart
Relative Pullback Pocket = the area where a leader pullback can remain structurally constructive.
Recovery Rail = the fast trend rail used to evaluate whether price is starting to recover from the pullback.
RS LEADER tag = the active symbol is outperforming the selected benchmark with constructive relative strength.
PULLBACK tag = the current pullback depth measured in ATR.
LEADER PULLBACK = the asset remains a relative leader while pulling into a meaningful pullback area.
RS HOLD = relative strength remains constructive during the pullback.
RECOVERY READY = price reclaimed the recovery rail while relative strength remained constructive.
RS BREAK = relative strength weakened or price broke the deeper pullback shelf.
Panel = summarizes relative state, quality score, leader status, pullback depth, recovery trigger, benchmark, and next context.
🚦 Signals & States
• LEADER PULLBACK → the asset remains a relative leader while pulling back.
• RS HOLD → relative strength is still holding during the pullback.
• RECOVERY READY → price reclaimed the recovery rail with constructive relative strength.
• RS BREAK → relative strength weakened or the pullback shelf broke.
• LAGGARD RISK → price is pulling back while the asset is no longer a clear relative leader.
🔔 Alerts Logic
Alerts can trigger when a leader pullback appears, relative strength holds, recovery becomes ready, or relative breakdown appears.
These alerts are attention markers only.
They are not trade instructions, entry signals, exit signals, or guaranteed outcomes.
🧩 Confluence Logic
The context becomes stronger when the active symbol remains above its relative-strength baseline, relative-strength slope is constructive, pullback depth is meaningful but not too deep, and price starts reclaiming the recovery rail.
The context becomes weaker when relative strength drops below its baseline, the slope turns down, or price breaks below the deeper trend shelf.
📊 When to Use
• During trend pullbacks
• When comparing an asset against a benchmark
• In crypto rotation analysis
• In stock or ETF relative-strength review
• When looking for leader pullbacks rather than weak pullbacks
• When filtering pullbacks by benchmark-relative performance
⚠️ When NOT to Use
• On symbols with poor benchmark fit
• During extremely noisy sideways markets
• In low-liquidity markets with unreliable candles
• When benchmark data is missing or unsuitable
• As a standalone buy or sell system
🎛️ Key Inputs
• Benchmark Symbol → defines the market used for relative comparison.
• Relative Strength Baseline → controls the smoothing length of the RS ratio.
• RS Slope Lookback → controls how relative-strength direction is evaluated.
• Minimum Leader Score → controls how strict leader classification should be.
• Fast Trend Length → controls the recovery rail.
• Slow Trend Length → controls the deeper pullback shelf.
• Pullback Lookback → controls the recent high used to measure pullback depth.
• Maximum Healthy Pullback ATR → controls when a pullback becomes too deep.
• Label and Panel Font Size → controls chart readability.
🖥️ Interface & Visual Design
The visual design is built around one question:
Is this still a leader pullback?
The pullback pocket shows the structural area, the recovery rail marks the reclaim reference, the relative-strength rail keeps benchmark context visible, the labels mark state changes, and the AG Pro panel summarizes the current decision context.
🧪 Practical Usage Workflow
1. Select an appropriate benchmark.
2. Read the panel first.
3. Check whether the asset is a relative leader.
4. Review pullback depth.
5. Look at the pullback pocket.
6. Watch whether price reclaims the recovery rail.
7. Confirm the broader market structure independently.
🔍 Interpretation Guidelines
A leader pullback means the asset is pulling back while still holding relative strength.
An RS hold means relative leadership has not broken yet.
Recovery ready means price has started reclaiming the recovery rail while relative strength remains constructive.
An RS break means the pullback may no longer be a clean leader pullback.
None of these states guarantee what happens next.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not a financial advice tool.
It is not an automated trading system.
It does not guarantee recovery after a leader pullback.
It does not guarantee that relative leaders will continue outperforming.
It does not replace risk management or independent analysis.
⚠️ Limitations & Transparency
Relative strength depends heavily on benchmark selection.
Different benchmarks may produce different interpretations.
Different timeframes may show different relative-strength states.
Fast markets can move through the pullback pocket quickly.
Sideways markets may create unclear relative-strength readings.
🧠 Market Context Notes
Relative strength is most useful when combined with structure, trend, volatility, and market regime.
A pullback in a relative leader can be constructive if leadership remains intact.
A pullback with relative breakdown is a weaker context and should be interpreted with caution.
Benchmark choice matters: crypto pairs may use BTCUSDT, stock charts may use SPY, sector ETFs, or another relevant benchmark.
🧾 Use Case Examples
When ETH pulls back while still outperforming BTC, the script can identify whether the pullback remains constructive or starts losing relative strength.
When a stock pulls back against SPY but relative strength holds above baseline, the script can highlight a leader pullback context.
When price breaks the pullback shelf while RS weakens, the script can flag relative breakdown risk.
🧱 System Philosophy
Relative Strength Pullback Map is part of the AGPro Series approach:
Build visual tools that explain market context clearly, avoid hype, avoid prediction claims, and support structured decision-making.
The goal is not to tell users what to do.
The goal is to help users see whether a pullback belongs to a strong leader or a weakening asset.
🔐 Non-Promise Statement
No script can remove uncertainty from trading.
This tool does not promise accuracy, certainty, profitability, or future performance.
📉 Risk Disclosure
Trading involves risk.
Market conditions can change quickly.
Users are responsible for their own decisions, position sizing, risk management, benchmark selection, and interpretation.
This script is for educational and analytical purposes only and does not provide financial advice.
📚 Educational Note
Use this script as a structured way to study relative strength, benchmark leadership, pullback depth, and recovery context.
The most valuable output is not a single label.
The value is the full map: relative state, leader status, pullback pocket, recovery rail, and next context.
Indicator

Range Control Transfer Map [AGPro Series]Range Control Transfer Map
🧠 Core Idea
Who controls the range now, and did control transfer from the buyer side to the seller side or from the seller side to the buyer side?
📌 Overview / What it does
Range Control Transfer Map is a range-control visualization tool built to study sideways markets where price rotates between upper and lower boundaries.
The script builds a mature range, separates it into buyer-control and seller-control zones, maps the internal control transfer band, tracks acceptance through that band, scores transfer quality, monitors failed-transfer risk, and summarizes the current control state in a compact AG Pro panel.
It does not predict future price, automate trades, or claim that a control-transfer event must continue. It is a structured decision-support map for reading range control, acceptance, failed transfer risk, and next-context conditions.
🎯 Purpose & Design Philosophy
Many range tools answer only one question:
Where are support and resistance?
This script was built to answer a more useful question:
Who controls the range now?
The design goal is to help traders separate passive sideways movement from meaningful control transfer inside a mature range.
⚡ Why This Script Is Different
Most range tools draw a box, mark the high, mark the low, and stop there.
This script does NOT treat every range touch as equally important.
Instead, it divides the range into buyer-control and seller-control halves, watches the midpoint transfer band, checks candle body commitment, reviews volume participation, evaluates range health, and tracks whether the active control side is still protected or starting to fail.
The focus is not only where the range is.
The focus is who is gaining or losing control inside it.
⚙️ Methodology
1. Range Detection
The script identifies a working range using recent high/low structure, ATR-normalized range height, and repeated edge interaction.
2. Range Health Scoring
Range Health combines range height balance, edge-touch behavior, and current position relative to the control line.
3. Control Zone Mapping
The upper half becomes the Seller Control Zone.
The lower half becomes the Buyer Control Zone.
The midpoint area becomes the Control Transfer Band.
4. Transfer Evaluation
When price accepts through the transfer band with enough candle body commitment, the script evaluates whether buyer or seller control has transferred.
5. Transfer Quality Scoring
Transfer Quality combines range health, candle body commitment, and volume participation into a 0-100 score.
6. Failure Risk Review
The script monitors whether the active transfer is losing the transfer band and moving back toward control reset.
7. Visual Output
The chart displays buyer/seller control zones, the control transfer band, active transfer labels, failed-transfer labels, right-side control tags, alerts, and a compact AG Pro panel.
🗺️ How to Read the Chart
Seller Control Zone = the upper half of the mature range where seller-side control is evaluated.
Buyer Control Zone = the lower half of the mature range where buyer-side control is evaluated.
Control Transfer Band = the internal midpoint band where control handoff is judged.
SELLER CONTROL = price has accepted through the transfer band in favor of the seller side.
BUYER CONTROL = price has accepted through the transfer band in favor of the buyer side.
BALANCE = the range is mature, but neither side has clean active control.
RANGE BUILDING = the current structure is not mature enough for control-transfer mapping.
Panel = summarizes control side, transfer quality, range health, failure risk, control zone, and next context.
🚦 Signals & States
• CONTROL TRANSFER UP → buyer-side control transfer detected.
• CONTROL TRANSFER DOWN → seller-side control transfer detected.
• FAILED BUYER CONTROL → buyer-side transfer failed back through the control band.
• FAILED SELLER CONTROL → seller-side transfer failed back through the control band.
• BUYER EDGE CONTROL → price reacts from the lower control side.
• SELLER EDGE CONTROL → price reacts from the upper control side.
• BALANCE → no clean control transfer is active.
• RANGE BUILDING → the structure is not mature enough yet.
🔔 Alerts Logic
Alerts trigger when a major range-control event appears.
• Buyer Control Transfer → buyer-side transfer detected.
• Seller Control Transfer → seller-side transfer detected.
• High-Quality Control Transfer → transfer quality reaches the required threshold.
• Failed Control Transfer → active control transfer loses the control band.
• Buyer Edge Control → optional alert for lower-edge control reaction.
• Seller Edge Control → optional alert for upper-edge control reaction.
Alerts are attention markers, not trade instructions.
🧩 Confluence Logic
The context becomes stronger when:
• The range has enough ATR-normalized height
• The range has repeated edge interaction
• Price accepts through the transfer band
• Candle body commitment supports the transfer direction
• Volume participation is not weak
• Transfer Quality is above the required threshold
• Failure Risk remains low after the transfer
• The panel state agrees with the chart label
When these elements do not align, the script avoids treating every range movement as a meaningful control shift.
📊 When to Use
• Range-control review
• Sideways market analysis
• Buyer/seller control mapping
• Failed transfer review
• Range acceptance study
• Crypto, stocks, futures, forex, and liquid markets
• 15m, 30m, 1H, 4H, and 1D charts
⚠️ When NOT to Use
• Very low-liquidity assets
• Extremely noisy micro timeframes
• Strong news spikes that distort range structure
• Clean one-directional trend environments with no mature range
• Markets where every midpoint cross is being over-interpreted
• Situations where a single label is expected to act as a guaranteed signal
🎛️ Key Inputs
• Range Lookback → defines the recent structure window used for range high, range low, and control line.
• Minimum Range Height ATR → defines the minimum range height required for a meaningful control map.
• Maximum Range Height ATR → prevents very wide structures from being treated as clean range-control maps.
• Use Intraday Adaptive Range → allows intraday charts to keep useful control maps without making higher-timeframe charts too noisy.
• Edge Touch Tolerance ATR → controls how close price must come to a range edge to count as an edge interaction.
• Control Band ATR → controls the thickness of the internal transfer band.
• Minimum Transfer Score → defines the quality threshold for meaningful control transfer.
• Minimum Body / Range → controls how much candle body commitment is required.
• Volume Confirm Ratio → defines how much participation is required for full volume credit.
• Failure Buffer ATR → controls where an active transfer starts to fail.
• Maximum Transfer Age → defines how long an active transfer can remain under review.
🖥️ Interface & Visual Design
The visual hierarchy is built around the active range:
The full range box defines the structure.
The upper half shows seller-control territory.
The lower half shows buyer-control territory.
The transfer band marks the internal handoff area.
Event labels mark control transfer and failed-control states.
Right-side tags keep buyer control, seller control, and transfer references visible.
The AG Pro panel compresses the current range-control context into a fast, readable summary.
🧪 Practical Usage Workflow
1. Read the panel Control Side.
2. Check whether the chart is Range Building, Balance, Buyer Control, or Seller Control.
3. Review where price is relative to the Control Transfer Band.
4. If a transfer label appears, compare it with Transfer Quality.
5. Watch whether Failure Risk remains low or starts rising.
6. Use the buyer and seller control zones as context areas, not automatic trade levels.
7. Confirm with broader market structure, liquidity, volume, and risk planning.
🔍 Interpretation Guidelines
A buyer-control transfer does not guarantee upside continuation.
A seller-control transfer does not guarantee downside continuation.
A failed-transfer label means the active control idea weakened.
A range-building state means the structure is not mature enough yet.
The script is best used as a range-control context layer, not as a standalone trading system.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an auto-trading system.
It does not provide guaranteed entry or exit signals.
It is not a simple support/resistance box.
It is not another generic range breakout indicator.
⚠️ Limitations & Transparency
Range quality depends on timeframe and market structure.
Very volatile markets can expand beyond a clean control map.
Low-liquidity symbols may create unreliable edge and transfer behavior.
Choppy markets can create repeated control-transfer attempts.
Volume behavior can differ across crypto, stocks, futures, and forex.
🧠 Market Context Notes
Ranges often move through recognizable control phases:
range building → balance → control transfer → defense → failure or continuation.
This script visualizes that sequence so users can avoid treating every support or resistance touch as equally meaningful.
🧾 Use Case Examples
If price accepts through the transfer band from the lower half, the script may mark CONTROL TRANSFER UP.
If price accepts through the transfer band from the upper half, the script may mark CONTROL TRANSFER DOWN.
If an active buyer-control transfer loses the band, the script may mark FAILED BUYER CONTROL.
If an active seller-control transfer loses the band, the script may mark FAILED SELLER CONTROL.
🧱 System Philosophy
The goal is not to predict the next breakout.
The goal is to understand control inside the range.
This script treats range behavior as a sequence:
structure → control zone → transfer band → acceptance → defense or failure.
🔐 Non-Promise Statement
No control-transfer label guarantees continuation.
No failed-transfer label guarantees reversal.
No range zone guarantees support or resistance.
All outputs should be interpreted as analytical context.
📉 Risk Disclosure
Trading involves risk.
This script is for educational and analytical purposes only.
It does not provide financial advice, investment advice, or guaranteed trading outcomes.
Users are fully responsible for their own decisions, risk management, and trade execution.
📚 Educational Note
Use the script to study how control shifts inside mature ranges.
The most useful question is not only where the range high and low are.
The better question is whether control has actually transferred inside the range.
Indicator

Crypto Dominance Rotation Map [AGPro Series]Crypto Dominance Rotation Map
🧠 Core Idea
Is crypto capital rotating toward Bitcoin, Ethereum, altcoins, or defensive stablecoin exposure?
📌 Overview / What it does
Crypto Dominance Rotation Map is a crypto market regime tool built to read capital rotation through Bitcoin dominance, Ethereum dominance, broad altcoin participation, and stablecoin defensive pressure.
The script produces a four-lane rotation map, a 0-100 Risk Participation Score, curated regime labels, right-side lane tags, alert conditions, and an AG Pro panel that summarizes the active crypto capital-flow state.
It does not predict price direction, automate trades, or claim that dominance rotation will always lead to a specific outcome. It is designed as a structured market context and visualization tool.
🎯 Purpose & Design Philosophy
This script was built to fill the gap between single-symbol price indicators and broader crypto market context.
Many crypto traders watch BTC dominance, ETH dominance, altcoin market capitalization, and stablecoin dominance separately. This script brings those references into one readable rotation map so the trader can understand the current capital-flow environment faster.
The mindset is context-first: identify where attention and capital may be concentrating before interpreting individual chart setups.
⚡ Why This Script Is Different
Most tools focus on the active chart symbol or on a basket of crypto assets.
This script does NOT try to call buys or sells on one coin.
Instead, it maps dominance rotation across Bitcoin, Ethereum, altcoins, and stablecoin defense so the trader can read the broader crypto regime behind the chart.
⚙️ Methodology
1. Dominance Mapping
The script reads Bitcoin dominance, Ethereum dominance, altcoin market-cap participation, and stablecoin dominance.
2. Rotation Scoring
Each reference is converted into a normalized 0-100 lane score using configurable momentum and smoothing.
3. Regime Classification
The model classifies the active state as BTC Lead, ETH Lead, Alt Risk-On, Defensive, Rotation Watch, or Neutral.
4. Visual Output
The script plots four rotation lanes, a Risk Participation Score, event labels, right-side tags, and a compact panel.
🗺️ How to Read the Chart
BTC Lane shows whether Bitcoin dominance is gaining leadership.
ETH Lane shows whether Ethereum dominance is improving versus the broader crypto market.
Altcoin Lane shows whether broad non-Bitcoin participation is improving.
Stable Lane shows whether stablecoin dominance is rising, which may reflect defensive positioning.
The Risk Participation Score summarizes whether crypto rotation is constructive, defensive, or undecided.
🚦 Signals & States
• BTC LEAD → Bitcoin dominance is the active leadership lane.
• ETH LEAD → Ethereum dominance is leading rotation.
• ALT RISK-ON → altcoin participation is constructive and broad risk appetite is stronger.
• DEFENSIVE → stablecoin dominance pressure is elevated.
• ROTATION WATCH → no clean leader yet, but participation is improving.
• NEUTRAL → no strong capital-flow leader is confirmed.
🔔 Alerts Logic
Alerts trigger when the active rotation state changes into a major regime.
Available alert states:
• BTC Dominance Leadership
• ETH Dominance Leadership
• Altcoin Risk-On Rotation
• Defensive Stablecoin Rotation
Alerts are attention markers only. They are not trade instructions.
🧩 Confluence Logic
Context becomes stronger when the active rotation state aligns with the trader’s chart setup.
For example, an altcoin breakout may carry stronger context when the map shows Alt Risk-On. A defensive state may encourage more caution around aggressive long setups.
📊 When to Use
• Crypto market regime review
• Altcoin season / Bitcoin dominance monitoring
• Risk-on and risk-off context checks
• Higher-timeframe crypto market preparation
• Comparing individual setups with broader market rotation
⚠️ When NOT to Use
• Very low-liquidity crypto assets
• Symbols that do not respond to broader crypto conditions
• Extremely short-term scalping where dominance data is too slow
• Periods where dominance symbols are unavailable or delayed
🎛️ Key Inputs
• BTC Dominance Symbol → Bitcoin dominance reference.
• ETH Dominance Symbol → Ethereum dominance reference.
• Altcoin Market Cap Symbol → broad altcoin participation proxy.
• Stablecoin Dominance Symbol → defensive crypto positioning proxy.
• Rotation Momentum Length → how far back rotation pressure is measured.
• Rotation Smoothing → how smooth or reactive the lane map becomes.
• Risk-On / Defensive Thresholds → state classification sensitivity.
🖥️ Interface & Visual Design
The interface is designed around a four-lane map. Each lane has a clear role: BTC, ETH, ALT, and STABLE.
Event labels highlight regime changes without turning the chart into a signal board.
The panel summarizes state, risk score, lane values, dominance readings, next context, and timeframe.
🧪 Practical Usage Workflow
1. Read the panel state.
2. Check which lane is leading.
3. Compare the Risk Participation Score with the active chart idea.
4. Use labels and alerts as context markers.
5. Confirm with price structure, volume, and your own risk plan.
🔍 Interpretation Guidelines
The script should be interpreted as market context.
BTC leadership may indicate capital concentration in Bitcoin. Alt Risk-On may suggest broader participation. Defensive stablecoin rotation may indicate caution.
No state is automatically bullish or bearish for every asset.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an auto-trading system.
It does not provide guaranteed signals.
⚠️ Limitations & Transparency
Dominance symbols may update differently from exchange-traded instruments.
Timeframe selection can materially change the rotation read.
Crypto market conditions can shift quickly during volatility events.
The script depends on the availability and quality of the selected reference symbols.
🧠 Market Context Notes
Dominance rotation is often more useful as a background regime filter than as a direct entry signal.
The strongest use case is comparing an individual crypto setup against the broader flow of capital across Bitcoin, Ethereum, altcoins, and defensive stable exposure.
🧾 Use Case Examples
When an altcoin setup appears while the map shows Alt Risk-On, the broader participation context may be more supportive.
When Bitcoin dominance leads while altcoin participation weakens, altcoin setups may require more selectivity.
When stablecoin dominance becomes defensive, aggressive risk-on interpretations should be handled more carefully.
🔐 Non-Promise Statement
No script can provide certainty.
This tool provides structured context, not guaranteed outcomes.
📉 Risk Disclosure
Trading involves risk.
Users remain responsible for their own decisions.
This script does not provide financial advice.
📚 Educational Note
Use this script to study how crypto capital rotation changes across market regimes and how that context interacts with individual chart setups.
Indicator

Imperium FlowImperium Flow is a market flow indicator designed to evaluate the quality behind price movement. It analyzes pressure, volume participation, candle behavior, wick rejection, Money Flow, and effort versus result to help traders understand whether a move is supported, stretched, weakening, or starting to rotate.
The indicator is built for confirmation and market context. It does not predict price. Its purpose is to help identify when buyers or sellers have stronger control, when continuation remains healthy, and when market conditions are becoming less efficient.
Main Features
Exhaustion Zones;
Money Flow;
Price Pressure;
Price Effort;
Exhaustion Warnings;
Reversal Warnings;
Divergence.
Each section is designed to give a different view of market quality, from participation and pressure to exhaustion, consolidation, and possible rotation.
Exhaustion Zones
Exhaustion Zones highlight areas where directional pressure has become stretched.
Reaching these zones does not mean price must reverse. Strong trends can continue through them. The zones simply warn that late entries may carry more risk because continuation can become less efficient.
They are most useful when combined with pressure shifts, candle rejection, absorption, fading Money Flow, or nearby market structure.
Money Flow
Money Flow shows whether buying or selling participation is stronger.
When Money Flow is above zero, buyer participation is stronger. When it is below zero, seller participation is stronger.
Rising or stable Money Flow can support bullish continuation. Falling or weak Money Flow can support bearish continuation. When price keeps moving in one direction while Money Flow starts fading or improving against it, the move may be losing quality.
High positive or deep negative readings can also show stretched market conditions.
Price Pressure
Price Pressure shows the active balance between bullish and bearish pressure.
Positive pressure suggests stronger buyer control. Negative pressure suggests stronger seller control.
Pressure is most useful when compared with price movement. When pressure supports the direction of price, the move has better confirmation. When pressure starts moving against price, continuation may be losing quality.
The pressure momentum columns help show acceleration, fading pressure, absorption, rejection, or early rotation near key market areas.
Price Effort
Price Effort is the main directional read of Imperium Flow.
It shows whether price movement is supported by strong effort and meaningful follow-through, or whether the move is becoming weak, inefficient, or exhausted.
When Price Effort is above zero and in a bullish state, buyers have stronger control. When it is below zero and in a bearish state, sellers have stronger control. When it turns neutral, the market may be losing direction or entering consolidation.
The strongest continuation conditions usually appear when Price Effort, Price Pressure, and Money Flow support the same direction. When these readings begin to separate, the move should be treated with more caution.
Exhaustion Warnings
Exhaustion warnings are shown with ✦ symbols.
They appear when a strong move may be starting to lose quality. These warnings are not designed to mark the exact top or bottom. They are caution markers showing that the current direction may be becoming more vulnerable.
An exhaustion warning can appear when pressure fades, Money Flow becomes stretched, candles show rejection, volume produces weaker follow-through, or absorption forms against the active move.
The warning is more useful after an extended move or near important market structure, liquidity areas, previous highs or lows, support, or resistance. If price continues with strong pressure after the warning, the trend may remain valid. If it is followed by weak continuation, rejection, or a shift in Price Effort, the market may be preparing for a pullback or rotation.
Reversal Warnings
Reversal warnings are shown with ▼ and ▲ symbols.
They appear when an extended move begins to show stronger rotation evidence. These are not automatic buy or sell signals. They highlight moments where the active side may be losing control and the opposite side is starting to react.
A reversal warning can form after rejection from an extreme area, a pressure shift against the active move, fading Money Flow, or a turn in Price Effort from stretched conditions.
The signal is strongest when it appears after exhaustion, near important market structure, or after a failed continuation attempt. If price ignores the warning and continues with strong pressure, the trend may still remain active.
Divergence
Divergence highlights when price continues to extend, but Imperium Flow no longer confirms the move with the same strength.
This can help traders spot moments where momentum, pressure, or participation may be weakening behind the current price movement.
Divergence does not mean price must reverse immediately. It should be checked together with market structure, support, resistance, liquidity areas, rejection, exhaustion, and Price Effort behavior.
Divergence signals are confirmed after the swing confirmation period, so they can appear a few candles after the actual high or low. They are best used as context, not as standalone entry signals.
Practical Use
Imperium Flow is best used to evaluate whether the current move has strong confirmation or is starting to lose quality.
The main read is Price Effort. Price Pressure and Money Flow should be used as supporting confirmation.
When all three support the same direction, continuation conditions are usually stronger. When they separate, fade, or conflict, traders may choose to become more selective with entries, exits, and trade management.
Mixed or unstable readings usually mean the market does not have clear directional control.
Important Notes
Exhaustion is a caution signal, not a guaranteed reversal;
Reversal warnings are for context and should not be treated as automatic buy or sell signals;
Divergence can appear before price reacts, especially during strong trends;
Money Flow, Price Pressure, and Price Effort should be read together;
Mixed readings usually mean the move lacks clear confirmation;
Readings may be less reliable on symbols with missing, unreliable, or illiquid volume;
Non-standard chart types may produce different readings because candle structure and volume behavior can be altered;
The indicator analyzes current and recent market behavior. It does not predict future price movement.
Imperium Flow is intended for structured market analysis and confirmation. It should be used as part of a broader trading process that includes market structure, execution rules, invalidation, and risk management. Indicator

Crypto Market Breadth Risk Planner [AGPro Series]Crypto Market Breadth Risk Planner
🧠 Core Idea
Is the crypto market showing broad risk-on participation, weakening rotation, or a risk-off breadth environment?
📌 Overview / What it does
Crypto Market Breadth Risk Planner is a chart-first market breadth tool built to evaluate whether a selected crypto basket is participating broadly or weakening internally.
Instead of reading only the active chart symbol, the script reviews a configurable basket of major crypto pairs. It measures how many symbols are trading above their trend baseline, how many have positive momentum, how many have rising trend structure, and how much volatility stress is present across the basket.
The script produces a 0-100 Breadth Risk Score, a colored breadth risk corridor on the active chart, event labels, right-side tags, alerts, and a compact AG Pro panel. It does not predict price direction, automate execution, or claim that breadth alone is enough to trade.
🎯 Purpose & Design Philosophy
This script was built because single-chart analysis can look strong while the broader crypto market is quietly weakening, or look weak while breadth is beginning to rotate back into strength.
The purpose is to help traders read market participation before treating an individual setup as clean. Strong setups usually have a better context when the broader basket is aligned, while weaker breadth can warn that a chart may be more exposed to false follow-through.
The design supports traders who want broader market context without opening ten charts manually. It turns cross-market participation into a simple decision-support layer that can be read directly on the current chart.
⚡ Why This Script Is Different
Most crypto tools focus on the active symbol, a single benchmark, a simple correlation reading, or a raw relative-strength line.
This script does NOT act as a benchmark correlation meter, a relative-strength rotation map, a volume spike detector, or a generic trend dashboard.
Instead, it evaluates breadth across a user-defined crypto basket and converts that participation into a risk-readiness framework. The goal is not to say which coin to buy or sell. The goal is to show whether the broader crypto environment is supportive, mixed, stressed, or risk-off.
⚙️ Methodology
1. Context Detection
The script requests data from a configurable crypto basket and evaluates each symbol on the selected breadth timeframe.
2. Reference Mapping
Each symbol is compared against its own trend baseline, momentum reading, trend slope, and ATR-based volatility stress condition.
3. Reaction Evaluation
The script combines trend participation, momentum participation, slope confirmation, and volatility stress into a single Breadth Risk Score.
4. Visual Output
The final output includes a colored breadth risk corridor, centered corridor text, event labels, right-side tags, optional bar coloring, alerts, and an AG Pro panel.
🗺️ How to Read the Chart
Zones:
The breadth risk corridor is a visual context zone around price. Its color reflects the current breadth regime rather than a direct support or resistance level.
Labels:
Labels mark important breadth state transitions such as Risk-On, Rotation Watch, Risk-Off, Stress Review, and Cooling.
Colors:
Teal represents broad constructive participation.
Pink represents risk-off breadth or weak participation.
Gold represents stress or caution.
Indigo represents improving rotation or transitional breadth.
Panel:
The panel summarizes breadth participation, Breadth Risk Score, momentum, stress, regime, and action state.
🚦 Signals & States
• Risk-On Ready → Broad participation and momentum are strong enough to support risk-on review.
• Rotation Watch → Breadth is improving, but not yet strong enough for full risk-on classification.
• Stress Review → Volatility stress is elevated while breadth quality remains weak.
• Risk-Off → Basket participation is weak or deteriorating.
• Cooling → Stress is easing while breadth quality begins to improve.
• Wait Breadth → No strong breadth regime is currently active.
🔔 Alerts Logic
Alerts can trigger when the basket shifts into Risk-On, Rotation Watch, Risk-Off, Stress Review, or Cooling.
Alerts are attention markers only. They highlight changes in the breadth model. They are not trade instructions, automated entries, or guaranteed market calls.
🧩 Confluence Logic
The context becomes stronger when multiple breadth layers align together.
For example, a high Breadth Risk Score with many symbols above their trend baselines, positive momentum participation, rising trend slopes, and low stress suggests a cleaner risk-on environment than a rally led by only one or two symbols.
Likewise, weak participation combined with elevated stress can warn that individual bullish setups may need stricter review.
📊 When to Use
• Crypto market context review
• BTC, ETH, altcoin, and sector-style crypto watchlists
• 1H, 4H, and 1D market participation analysis
• Before treating individual setups as risk-on
• When the trader wants to know whether the broader crypto basket supports the active chart
⚠️ When NOT to Use
• Markets where selected symbols have unreliable data
• Very small or illiquid crypto pairs with distorted candles
• Situations where the basket does not match the user's trading universe
• Low-timeframe scalping where external-symbol breadth may be too slow
• News-driven events where correlation and breadth can change abruptly
🎛️ Key Inputs
• Crypto Basket Symbols → define the assets used in the breadth model
• Breadth Timeframe → controls whether the basket is evaluated on chart timeframe, 1H, 4H, or 1D
• Trend Baseline Length → controls the EMA reference used for participation
• Momentum Length → controls the ROC window used for positive or negative participation
• ATR Stress Threshold → controls when basket volatility begins to count as stress
• Minimum Risk-On Score → controls how selective the risk-on state should be
• Visual Settings → control corridor, labels, right-side tags, panel location, theme, and font size
🖥️ Interface & Visual Design
The interface is designed to make broad crypto participation readable without turning the chart into a large dashboard.
The corridor gives a fast visual state directly on the chart. The panel provides the structured readout. Labels mark only important transitions, while cooldown and memory controls keep historical events from overwhelming the chart.
The visual intent is premium, clean, and publication-friendly.
🧪 Practical Usage Workflow
1. Read the panel to identify the current breadth regime.
2. Check the Breadth Risk Score and participation percentage.
3. Review whether momentum and stress support or conflict with the active chart setup.
4. Use the corridor color as a market-context layer, not as a direct entry zone.
5. Combine breadth context with price structure, volatility, liquidity, and personal risk rules.
🔍 Interpretation Guidelines
A strong score means the selected crypto basket is broadly aligned according to the script's rules.
A Rotation Watch state means breadth is improving, but the market has not fully confirmed broad risk-on participation.
A Stress Review state means volatility pressure is elevated while breadth remains weak or mixed.
A Risk-Off state means the selected basket is not supporting broad participation under the current settings.
🚫 What This Script Is NOT
This script is not a prediction engine.
This script is not financial advice.
This script is not an automated trading system.
This script does not place orders.
This script does not guarantee market direction, continuation, reversal, or profitability.
⚠️ Limitations & Transparency
This script depends on the selected symbols, selected timeframe, and PulseWire data availability.
Different baskets can produce different breadth readings. A BTC-heavy basket may behave differently from an altcoin-heavy basket. External symbol data may also load differently depending on market, exchange, and PulseWire availability.
The script should be interpreted as market context, not as a standalone execution model.
🧠 Market Context Notes
Crypto often moves through participation waves. Sometimes BTC leads while altcoins lag. Sometimes the whole market rotates together. Sometimes volatility rises while breadth deteriorates, creating a more fragile environment.
This script is designed to make that internal participation easier to observe directly from the active chart.
🧾 Use Case Examples
Example 1:
BTC is breaking higher, but the panel shows weak breadth and high stress. The trader may decide that the move needs extra confirmation before treating it as broad risk-on.
Example 2:
ETH is consolidating, but the basket shifts into Rotation Watch with improving momentum. The trader can monitor whether the active chart begins to align with the broader rotation.
Example 3:
The basket prints Risk-Off while an individual altcoin setup looks technically clean. The script warns that the broader market backdrop is not supportive under the current model.
🧱 System Philosophy
AGPro Series tools are built as decision-support frameworks, not signal vending machines.
This script follows that philosophy by turning broad market participation into a structured context layer: define the basket, score the breadth, map the state, and show the next action clearly.
🔐 Non-Promise Statement
This script does not promise certainty.
It does not promise that a risk-on breadth state will produce gains, or that a risk-off state will produce losses. It only organizes participation context so the user can evaluate the broader market with more clarity.
📉 Risk Disclosure
Trading involves risk.
Market conditions can change quickly, and breadth models can fail or become less useful during sudden volatility, exchange-specific moves, or news-driven repricing. Users remain responsible for their own decisions, execution, and risk management.
This script is for educational and analytical purposes only. It does not provide financial advice.
📚 Educational Note
Use this tool to study how crypto breadth changes before, during, and after major market moves.
Its strongest value comes from comparing the active chart with the broader basket context rather than reading any single label in isolation.
Indicator

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

Indicator

Crypto Sector Rotation Radar Pro | Altseason & Memecoin TrackerA live cross-sectional ranking of 7 crypto sectors that answers a question every alt and memecoin trader asks: where is capital actually flowing right now?
Most existing sector-rotation visualizations on PulseWire normalize each sector independently against its own historical range. That approach has a fundamental flaw — when one sector reads "80" and another reads "70," those numbers are not comparable to each other, because each one is relative to its own past, not to the other sectors. You cannot rank sectors that way.
This script does it differently. Every sector's momentum is measured against the same benchmark — TOTAL crypto market cap — so the resulting scores are directly comparable. Then sectors are ranked #1 through #7 in real time. The output is a single dashboard table that tells you, at a glance, which sectors are leading, which are lagging, and which are accelerating or fading.
▸ WHAT IT DOES
For each of 7 crypto sectors, the script:
1. Computes the sector-cap-to-TOTAL ratio
2. Measures rate-of-change of that ratio across three windows (default: 7, 14, 30 bars)
3. Blends the three windows by user-configurable weights into a single raw RS reading
4. Cross-sectionally ranks all 7 sectors against each other (#1 strongest, #7 weakest)
5. Converts rank to a 0–100 RS Score (rank 1 → 100, rank 4 → 50, rank 7 → 0)
6. Tracks rank change over 3 and 7 bars to surface acceleration and rotation
7. Classifies each sector's flow as IN, OUT, or NEU based on rank and momentum
All of this is rendered in a sortable dashboard table, with optional smoothed RS lines plotted below for historical pattern context.
▸ SECTORS TRACKED
• 🚀 Memecoins (CRYPTOCAP:MEME.C)
• Ξ Ethereum Eco (CRYPTOCAP:ETHEREUM.C)
• 🏛 RWA (CRYPTOCAP:RWA.C)
• 🤖 AI (CRYPTOCAP:AI.C)
• ◎ Solana Eco (CRYPTOCAP:SOLANA.C)
• 🏢 Exchange Tokens (CRYPTOCAP:EXCHANGES.C)
• 🏦 DeFi (CRYPTOCAP:TOTALDEFI)
The benchmark for all RS calculations is CRYPTOCAP:TOTAL.
▸ HOW TO READ THE TABLE
Each row shows one sector with six columns:
• SECTOR — emoji and name
• RANK — current cross-sectional rank (#1 = strongest, #7 = weakest)
• RS — 0–100 score derived from rank
• Δ3D — rank change over the last 3 bars, with a heat badge (🔥 ▲ ↗ · ↘ ▼ ❄️)
• Δ7D — rank change over the last 7 bars
• FLOW — IN (top 3 + positive momentum), OUT (bottom 3 + negative momentum), NEU (mixed)
A footer row summarizes the regime in plain language:
• 🔥 Memes in Top 2 — Meme Rotation
• ⚠️ Risk-Off Regime — defensive sectors leading while risk-on lagging
• ❄️ Memes in Bottom 2 — sector weak
• Mixed Rotation — no clear leader pattern
The memecoin row is highlighted by default to make it stand out at a glance for memecoin-focused traders. This can be toggled off in settings.
▸ HOW TO READ THE LINES
Below the table, each sector's RS Score is plotted as a smoothed line using EMA smoothing (default: 5 bars). Because the raw RS Score takes only 7 discrete values (rank-derived), a small amount of smoothing turns step-function jumps into readable curves while preserving the cross-sectional comparability.
• Lines above 83 = sector is currently in top 2 by RS
• Lines below 17 = sector is currently in bottom 2 by RS
• Lines crossing through the middle band = active rotation in or out
• Multiple lines bunched together = no clear sector leadership
Smoothing length is user-adjustable. Set to 1 for raw stepped lines.
▸ INPUT SETTINGS
Calculation:
• Calculation Timeframe — default Daily, locked regardless of chart TF
• Short / Medium / Long Window — three momentum lookbacks (default 7, 14, 30 bars)
• Three weight inputs to blend the windows (default 40 / 35 / 25 %)
Display:
• Toggle the dashboard table
• Choose table position and size
• Toggle the memecoin row highlight
• Toggle the RS score lines
• Adjust line smoothing (EMA length)
Colors — all six dashboard color states are individually configurable.
▸ BUILT-IN ALERTS
The script defines 17 alert conditions, available through PulseWire's standard Add Alert dialog:
Per-sector surges (rank improved by 2+ over 3 bars):
• 🚀 MEME surged
• Ξ Ethereum surged
• 🏛 RWA surged
• 🤖 AI surged
• ◎ Solana surged
• 🏢 Exchange surged
• 🏦 DeFi surged
Per-sector drops (rank declined by 2+ over 3 bars):
• same 7 sectors, mirrored
Memecoin-specific:
• 🔥 MEMES entered Top 2
• ❄️ MEMES dropped to Bottom 2
Regime:
• ⚠️ Risk-Off Regime — defensives leading, risk-on lagging
▸ HOW TO USE IT
The script pulls all of its data from CRYPTOCAP indices via request.security, so the chart symbol does not affect the calculation. Putting it on CRYPTOCAP:TOTAL on the Daily timeframe gives the cleanest macro context, but the radar will work identically on any chart.
Default timeframe is Daily, which is appropriate for sector-rotation analysis. Higher-timeframe rotations are typically slower-moving signals; lower timeframes will produce noisier rankings.
▸ LIMITATIONS AND HONEST CAVEATS
• This is a contextual / regime tool, not a predictive one. The radar tells you the current state of cross-sector capital flow. It does not predict which sector will lead next.
• Rank is a relative measure. A sector at rank #1 with weak absolute momentum is still rank #1 — but the broader market may be in a downtrend. Pair this with absolute price/cap context.
• When two or more sectors have very similar momentum, ranks can flip frequently. The Δ3D and Δ7D columns help filter noise from real rotation.
• Sector definitions follow PulseWire's CRYPTOCAP indices, which themselves are subject to PulseWire's classification logic. If a token is reclassified, all sectors will reflect that change.
• RS Score is derived from rank, so it can only take 7 discrete values (0, 16.7, 33.3, 50, 66.7, 83.3, 100). The smoothing on the plotted lines is purely cosmetic; the table values are exact.
▸ TECHNICAL NOTES
• Pine Script v6
• Open-source under the Mozilla Public License 2.0
• Uses 8 request.security calls (well below the 40-call limit), all to official CRYPTOCAP indices
• No repainting — all calculations use confirmed bar close values from the requested timeframe
• Designed to coexist with other indicators on the same chart
▸ DISCLAIMER
For educational and informational purposes only. This script is a market analysis tool, not financial advice. Nothing here constitutes a recommendation to buy or sell any asset. Past behavior of the radar in historical data is not a guarantee of future behavior. Cryptocurrency markets are highly volatile and can result in substantial losses. Always do your own research and trade with risk you can afford to lose.
Indicator

Swap Engine - Pair Rotation (Z-Score) [AGPro Series]Swap Engine - Pair Rotation (Z-Score)
🔷 OVERVIEW
Swap Engine - Pair Rotation (Z-Score) transforms the log-ratio between two correlated crypto assets into a disciplined tier ladder decision framework. Rather than signalling single-asset direction, the engine measures how stretched one pair has become relative to its rolling mean and proposes rotation between the two assets when the spread reaches statistically meaningful extremes. Every decision is evaluated on confirmed Engine TF bar close, keeping suggestions non-repainting under the configured execution model.
🟣 UNIQUE EDGE
Unlike single-symbol mean-reversion or trend indicators, this engine treats the ratio itself as the tradable variable and pairs it with a full operational stack: a tiered exposure ladder (T0 to T3), an Integrity Gate that blocks entries when the pair relationship deteriorates, a Trend Regime filter that respects persistent one-sided moves, and a confirm-first execution model that converts raw signals into auditable decisions. A dedicated Signal Quality score (Q 0-100) and Integrity Score (IN 0-100) make every suggestion inspectable, not a black box.
🟢 METHODOLOGY
The engine fetches the closing price of Pair A and Pair B on the chosen Engine TF, computes the log-ratio L = ln(A / B), then derives a rolling z-score using user-defined lookback length. Entry thresholds (Z1, Z2, Z3) define the three tiers of exposure; exit thresholds (hysteresis) define when each tier is scaled back. A cost filter requires the expected mean-reversion edge to exceed a configurable multiple of estimated roundtrip cost before any entry is allowed. The Integrity Gate continuously validates rolling return correlation, ratio drift, and spread-volatility expansion, halting new entries when the pair relationship degrades.
🟡 SIGNALS & ALERTS
Each signal renders as a clearly tagged label on chart showing the action type (ENTRY / EXIT), source tier, target tier, direction (A->B or B->A), z-score snapshot, delta %, and Reason Code. Alerts are provided for: entry and exit events per direction, pending lifecycle (created, confirmed, skipped, expired), trend regime activation edges, duplicate suppression, and configuration warnings. All alerts fire on Engine TF bar close to remain consistent with the visible suggestions.
⚙️ KEY INPUTS
Pair A / Pair B: the two assets to rotate between (same quote currency recommended).
Engine TF: timeframe used for all ratio, z-score, and decision logic (240 / 4H default).
Lookback: bars used for rolling mean and standard deviation.
Entry Z1/Z2/Z3, Exit Z1/Z2/Z3: tiered thresholds for scaling in and out.
Tier Sizing (T1 / T2 / T3 %): rotation size per tier as a percentage of the active pool.
Trade Profile: preset gate behavior (Conservative, Balanced, Aggressive, Volatile Alt, High-Cost, Custom).
Integrity Gate: correlation, drift, and volatility expansion filter with configurable minimum score.
Execution Model: ASSUME (auto-advance), CONFIRM (pending + manual commit), or SIGNAL_ONLY (display only).
🔵 HOW TO USE
Start on the default BTCUSDT vs ETHUSDT pair on 4H Engine TF with the Balanced profile. Keep the chart timeframe equal to or lower than the Engine TF (the script warns otherwise). Watch the status panel for the current tier, direction, confidence strip (Q / IN / PH), and next action preview. In CONFIRM mode, a PENDING card appears when a signal fires; increase CONFIRM +1 to commit the rotation state, or SKIP +1 to discard. Use the Trade Profile dropdown to tighten or loosen effective gates without changing your base inputs.
🟠 LIMITATIONS & TRANSPARENCY
This is an indicator, not a strategy; no orders are placed and no backtest statistics are produced. Signals reflect statistical extremes in the pair's log-ratio and do not guarantee mean reversion. Performance depends heavily on pair selection - assets with persistent trends, broken correlation, or structural regime changes can cause extended adverse periods. The Integrity Gate mitigates but does not eliminate this risk. Costs, slippage, tax, and execution details are the user's responsibility; the Min Edge x filter is an estimate, not a realized-cost guarantee. Always validate on your own pair, timeframe, and account conditions before relying on any suggestion.
🔴 RISK DISCLOSURE
Trading and rotating between crypto assets involves substantial risk, including loss of capital. Past or simulated behavior of the ratio does not guarantee future results. This tool is shared for educational and analytical purposes only and does not constitute financial, investment, or trading advice. Users are solely responsible for their own decisions and should consult a qualified professional before committing capital. Indicator

AG Pro DMI Rotation Pressure [AGPro Series]AG Pro DMI Rotation Pressure
Overview / What it does
AG Pro DMI Rotation Pressure is designed to track directional leadership shifts between +DI and -DI rather than treating DMI as a simple trend-strength confirmation tool. The script focuses on which side is gaining control, how decisively that control is expanding, and whether the current condition reflects rotation, compression, drift, or established directional pressure.
The indicator is plotted in a separate pane so the rotational structure can be read clearly without interfering with price structure on the main chart. It combines a net pressure histogram, a pressure signal line, DI spread behavior, rotation bursts, and compression tension into one framework intended to make directional handoffs easier to interpret.
This script is intentionally different from strength-oriented DMI or ADX studies. In many DMI-based tools, ADX becomes the main story. Here, ADX is only a supporting context value. The primary objective is to monitor the push-and-pull between +DI and -DI, especially when leadership is unstable, when pressure begins to build after compression, or when one side starts to hold directional control more consistently.
For traders who want to study internal directional pressure before or during trend development, this script is built to highlight control transitions rather than just reporting whether a trend is already strong.
Unique Edge
The distinctive feature of this script is its emphasis on rotational pressure instead of trend-strength ranking. Rather than asking only whether the market is strong, it asks which side is taking control, whether that control is improving or fading, and whether a transition is underway.
This produces a different read from a standard ADX workflow. A market can have moderate ADX and still show meaningful bullish or bearish pressure transfer through the behavior of +DI and -DI. Conversely, a market may print elevated ADX while the directional leadership structure is already weakening or becoming unstable. By separating directional leadership from raw strength, the script aims to expose the internal character of the move more clearly.
The script also classifies the environment into readable states such as Bull Rotation, Bear Rotation, Bull Control, Bear Control, Bull Expansion, Bear Expansion, Bull Drift, Bear Drift, and Compression Battle. That state engine is meant to reduce ambiguity and make the pane easier to interpret quickly across multiple symbols and timeframes.
Methodology
The script begins with the DMI framework: +DI, -DI, and ADX. From there, it derives a rotational model built around DI spread and spread behavior over time.
1. DI leadership
The core directional read is the spread between +DI and -DI. Positive spread means bullish directional leadership. Negative spread means bearish directional leadership. The magnitude of that spread is used as one layer of directional pressure assessment.
2. Rotational slope behavior
The script evaluates how +DI and -DI are changing, not only their absolute values. This helps estimate whether one side is accelerating relative to the other. Slope behavior is important because leadership transitions often begin before a large DI spread is fully established.
3. Pressure scoring
Bullish and bearish pressure are scored separately using DI spread, relative slope behavior, and spread momentum. This creates the Bull / Bear pressure readings shown in the panel, as well as the Net Pressure histogram in the pane.
4. Signal smoothing
A pressure signal line is applied to the net pressure series to make pressure drift and bias easier to read. This is not intended as a prediction line. It is a smoothing layer that helps frame whether the dominant side is strengthening, fading, or remaining relatively stable.
5. Rotation bursts
Crossovers between +DI and -DI are treated as potential rotational events. The script scores those events so that rotation markers are tied to directional handoff rather than appearing as purely cosmetic crossover labels.
6. Compression and tension
When DI spread contracts below the compression threshold, the script evaluates internal tension. This is useful because some of the most meaningful directional expansions begin after a compressed and contested leadership state. Compression Battle is meant to identify that contested environment, not to forecast direction by itself.
7. State engine
The script assigns a readable state based on pressure, spread, crossover status, and compression context. This is what allows the study to describe the environment as rotation, control, expansion, drift, or compression instead of leaving the user to infer all conditions from raw lines alone.
Signals & Alerts
The script includes deterministic alert conditions for the following events:
Bull Rotation
Triggered when +DI crosses above -DI and bullish directional rotation takes control.
Bear Rotation
Triggered when +DI crosses below -DI and bearish directional rotation takes control.
Bull Control
Triggered when bullish pressure is in control territory.
Bear Control
Triggered when bearish pressure is in control territory.
Compression Battle
Triggered when DI spread is compressed while internal tension is elevated.
These conditions are designed to describe state changes inside the DMI structure. They should be used as analytical events, not as automatic trade instructions.
Key Inputs
DI Length
Controls the base DMI sensitivity.
ADX Smoothing
Adjusts the ADX smoothing component used for contextual strength reading.
Rotation Slope Smoothing
Changes how quickly slope-based rotational behavior reacts.
Pressure Signal Length
Controls smoothing of the net pressure signal.
Compression Threshold
Defines when DI spread is considered compressed.
Expansion Threshold
Defines when directional pressure begins to qualify as expansion.
Control Threshold
Defines when directional pressure is strong enough to be treated as control.
Visual controls
Backgrounds, spread fill, rotation markers, panel theme, panel position, and panel font size can all be adjusted depending on the chart style and workspace preference.
Limitations & Transparency
This script is not a forecasting model. It does not know future direction and it does not attempt to predict exact reversal points. It is a structural pressure tool built from DMI behavior.
Like all DMI-based studies, it can become noisy in highly erratic or mean-reverting conditions. Repeated +DI and -DI handoffs may appear during choppy phases, especially on lower timeframes or during indecisive sessions.
Compression readings should not be interpreted as guaranteed breakout setups. Compression only describes a tight directional contest inside the DI structure. Direction still needs confirmation from price behavior, market structure, volatility regime, or other contextual tools.
Bullish or bearish control states do not guarantee continuation. They only indicate that the directional pressure model currently favors one side. Users should evaluate the output alongside price structure, support/resistance, volume behavior, and timeframe context.
This study is best treated as a directional pressure map, not as a standalone trading system.
Risk Disclosure
This script is for chart analysis and research purposes only. It does not provide financial, investment, or trading advice. Markets involve risk, and indicator-based decisions can result in losses. Always use independent judgment, confirm with broader market context, and apply appropriate risk management.
Indicator

AG Pro Relative Strength Rotation Map [AGPro Series]AG Pro Relative Strength Rotation Map
OVERVIEW / WHAT IT DOES
AG Pro Relative Strength Rotation Map is a relative leadership framework designed to evaluate how the active symbol is behaving versus a user-defined reference symbol. Instead of focusing only on absolute price movement, this script studies whether the active market is strengthening, weakening, stabilizing, or rotating relative to its benchmark.
The script builds a smoothed relative-strength backbone, measures rotation pressure through fast-versus-slow internal comparison, and classifies the current environment into clear structural states. The goal is not to predict future price, but to help the user read whether relative leadership is improving, fading, or losing quality.
This makes the script useful when the question is not simply “is price going up or down?” but rather:
- Is this symbol outperforming or underperforming a chosen benchmark?
- Is leadership gaining traction or fading?
- Is the current rotation constructive, weak, or at risk of deterioration?
Because of that, the script can be used across multiple workflows, including:
- crypto asset vs BTC or another reference asset
- stock vs index benchmark
- sector ETF vs broader market ETF
- instrument vs instrument relative comparison
UNIQUE EDGE
This script is not a simple ratio line, not a screener, and not a classic momentum oscillator.
Its main distinction is that it separates relative-strength behavior into a structured rotation model built from:
- relative-strength bias
- rotation pressure
- persistence
- state transitions
In other words, it does not stop at showing whether one asset is stronger than another. It also attempts to show whether that leadership is building, stable, fading, or structurally vulnerable.
Compared with many standard relative-strength tools, this script is designed to be more state-driven and map-oriented rather than just line-oriented.
Compared with other AG Pro scripts, this one addresses a different problem set:
- it does not grade breakout quality
- it does not analyze reclaim behavior around a single moving average or level
- it does not map exhaustion or pressure inside one symbol in isolation
- it does not classify broad market regime
- it does not function as a multi-symbol screener
Instead, it focuses on one specific task:
reading relative leadership rotation between the active chart and a chosen benchmark.
That makes it structurally different from the rest of the AG Pro catalog and useful as a complementary layer rather than an overlapping one.
METHODOLOGY
The script starts by building a relative-strength ratio between the active symbol and the selected reference symbol. That ratio is then normalized around its own baseline and smoothed into an RS backbone so that the user can observe directional leadership more clearly.
A rotation-pressure engine is then derived from the relationship between faster and slower internal measures of that backbone. This helps estimate whether relative movement is gaining traction, losing traction, or transitioning.
A persistence component is also included so short-lived fluctuations are not treated the same way as more durable relative-strength behavior.
Using those building blocks, the script classifies market structure into states such as:
- Leadership Rising
- Leadership Stable
- Rotation Building
- Leadership Fading
- Breakdown Risk
- Neutral / Mixed
This is intended as a decision-support framework for context reading, not a standalone execution model.
SIGNALS & ALERTS
The script can mark structural events such as:
- Leadership Reclaim
- Rotation Build
- Leadership Fade
- Breakdown Risk Rising
- State Changed
These events are derived from the internal relative-strength and rotation conditions of the model. They are intended to help the user notice structural changes in leadership behavior, not to serve as guaranteed entry or exit instructions.
KEY INPUTS
Important controls include:
- Reference Symbol
- Timeframe source selection
- RS Baseline Length
- Backbone Smoothing
- Pressure Fast Length
- Pressure Slow Length
- Threshold Length
- Persistence Length
- Signal Sensitivity
- Zone visibility
- Histogram visibility
- Event label visibility
- Panel position and style controls
These inputs allow the user to adapt the script to different symbols, volatility profiles, and chart-reading preferences.
LIMITATIONS & TRANSPARENCY
This script does not measure intrinsic value, fundamentals, liquidity quality, or macro context. It only evaluates relative-strength behavior through its own internal model.
Like any state-based framework, it can produce transitions that later reverse, especially in noisy or low-conviction market conditions. Relative-strength leadership can also change quickly when the benchmark itself becomes unstable or when both assets move in the same direction with changing intensity.
This script should therefore be used as a contextual and comparative tool, not as a promise of continuation, reversal, or future performance.
It is also important to understand what this script is not:
- not a prediction engine
- not a full portfolio allocator
- not a complete trading system
- not a substitute for confirmation, risk management, or broader market context
RISK DISCLOSURE
This script is for chart analysis and research support only. It does not provide financial, investment, legal, or tax advice. Markets involve risk, and no indicator can guarantee performance or prevent loss. Decisions involving real capital should be made only with appropriate risk controls and independent judgment.
Indicator

Market Acceptance Zones [Interakktive]Market Acceptance Zones (MAZ) identifies statistical price acceptance — areas where the market reaches agreement and price rotates rather than trends.
Unlike traditional support/resistance tools, MAZ does not assume where price "should" react. Instead, it highlights regions where multiple internal conditions confirm balance: directional efficiency drops, effort approximately equals result, volatility contracts, and participation remains stable.
This is a market-state diagnostic tool, not a signal generator.
█ WHAT THE ZONES REPRESENT
MAZ (ATF) — Chart Timeframe Acceptance
A MAZ marks an area where price displayed rotational behaviour and the auction temporarily agreed on value. These zones often act as compression regions, fair-price areas, or boundaries of consolidation where impulsive follow-through is less likely.
Use ATF MAZs to:
- Identify rotational environments
- Avoid chasing price inside balance
- Frame consolidation prior to expansion
MAZ • HTF / MAZ • 2/3 — Multi-Timeframe Acceptance (AMTF)
When Multi-Timeframe mode is enabled, MAZ evaluates acceptance on:
- The chart timeframe
- Two higher structural timeframes
If the minimum consensus threshold is met (default: 2 of 3), the zone is classified as AMTF. These zones represent stronger agreement and typically decay more slowly than single-timeframe acceptance.
AMTF zones are structurally stronger and are useful for:
- Higher-quality rotation areas
- Pullback framing within trends
- Context alignment across timeframes
H • MAZ — Historic Acceptance Zones
Historic MAZs represent older acceptance that has transitioned out of active relevance. These zones are hidden by default and can be enabled to provide long-term memory context.
█ AUTO MULTI-TIMEFRAME LOGIC
When MTF Mode is set to Auto, MAZ uses a deterministic structural mapping based on the current chart timeframe:
- 5m → 15m + 1H
- 15m → 1H + 4H
- 1H → 4H + 1D
- 4H → 1D + 1W
- 1D → 1W + 1M
This ensures consistent higher-timeframe context without manual configuration. Advanced users may switch to Manual mode to define custom timeframes.
█ ZONE LIFECYCLE
MAZ zones are dynamic and maintain an internal lifecycle:
- Active — Acceptance remains relevant
- Aging — Acceptance quality is degrading
- Historic — Retained only for memory context
Zones track price interaction and re-acceptance, which can stabilise or strengthen them. Weak or stale zones are automatically removed to keep the chart clean.
█ HOW TRADERS USE MAZ
MAZ is designed to provide structure, not entries.
Common applications include:
- Avoiding chop when price is inside acceptance
- Framing expansion after clean breaks from MAZ
- Identifying higher-quality rotational pullbacks (AMTF zones)
- Defining objective invalidation using zone boundaries
█ SETTINGS OVERVIEW
Market Acceptance Zones — Core
- Acceptance Lookback
- ATR Length
- Zone Frequency (Conservative / Balanced / Aggressive)
Market Acceptance Zones — Zones
- Maximum Zones
- Fade & Stale Bars
- Historic Zone Visibility (default OFF)
Market Acceptance Zones — Timeframes
- MTF Mode (Off / Auto / Manual)
- Manual Higher Timeframes
- Minimum Consensus Requirement
Market Acceptance Zones — Visuals
- Neon / Muted Theme
- Zone Labels & Consensus Detail
- Optional Midline Display
█ DISCLAIMER
This indicator is a market context and diagnostic tool only.
It does not generate trade signals, entries, or exits.
Past acceptance behaviour does not guarantee future price action.
Always combine with independent analysis and proper risk management. Indicator

Luxy Sector & Industry RS AnalyzerEver wonder why some stocks soar while others in the same sector barely move? Or why your perfectly timed entry still loses money? Possibly the answer can be found in Relative Strength.
The Luxy Sector & Industry RS Analyzer solves a critical problem that most traders overlook: picking strong stocks in strong sectors AND strong industries . It's not enough for a stock to go up - you want stocks that are crushing their competition at both the sector AND industry level. This indicator does the heavy lifting by automatically comparing your stock against its sector ETF, industry ETF, the broader market, sector leader, and industry leader, giving you a complete multi-level picture of relative performance.
What makes this different?
- Automatic sector AND industry detection - no manual setup required
- Multi-level hierarchy analysis: Market → Sector → Industry → Stock
- Multi-timeframe analysis (1 month to 1 year) in one glance
- Industry ETF mapping (30+ industries covered)
- Clear 0-100 scoring system with letter grades (A+ to F)
- Works on stocks, crypto, forex, and commodities
- Real-time updates with anti-repaint protection
Think of it as your performance dashboard - instantly showing you if you're trading a champion or a laggard at every level of the market hierarchy.
METHODOLOGY & ATTRIBUTION
This indicator is based on classical Relative Strength (RS) analysis principles from technical analysis. RS methodology compares an asset's price performance against a benchmark to identify relative outperformance or underperformance. This concept has been used by professional traders and institutions for decades.
Key Concepts Used:
Relative Strength (RS) - Classical technical analysis concept measuring comparative performance
Multi-Level Hierarchy Analysis - Market → Sector → Industry → Stock comparison
Sector Rotation Analysis - Identifying which sectors are leading or lagging the market
Industry Rotation Analysis - Identifying which industries are leading within their sectors
Multi-period Performance Analysis - Evaluating strength across multiple timeframes
Beta Calculation - Standard statistical measure of volatility relative to a benchmark
DISCLAIMER: This indicator is for educational and informational purposes only. It should not be considered financial advice or a recommendation to buy or sell. Past performance does not guarantee future results. Trading involves risk and may not be suitable for all investors. Always do your own research and consult with a financial advisor before making investment decisions.
with all rows visible - capture when stock has strong RS score (70+) so users can see what a "good" setup looks like]
WHAT THE INDICATOR SHOWS
1. AUTOMATIC ASSET TYPE DETECTION
The indicator automatically identifies what you're analyzing and adjusts accordingly:
Stocks - Compares to sector ETF (XLK, XLF, XLV, etc.) and SPY
Crypto - Compares to Total Crypto Market Cap and Bitcoin
Forex - Compares to relevant currency index (DXY, EXY, etc.)
Commodities - Compares to Gold (GLD) as benchmark
Indices - Compares to broader market indices
How it works: The indicator reads your chart's asset type and ticker, then automatically maps it to the correct sector or benchmark. For stocks, it uses intelligent sector detection (looking at the sector field) to match you with the right sector ETF. For example:
- Technology stocks get compared to XLK (Technology Select Sector SPDR)
- Financial stocks get compared to XLF (Financial Select Sector SPDR)
- Healthcare stocks get compared to XLV (Health Care Select Sector SPDR)
This happens instantly when you add the indicator to any chart - no configuration needed.
2. SECTOR & MARKET BENCHMARKS
What is a Sector ETF?
A sector ETF is an exchange-traded fund that tracks a specific industry group. For example, XLK contains all major technology companies. By comparing your stock to its sector ETF, you can see if your stock is outperforming or underperforming its peers.
The indicator shows three key comparison points:
Stock vs Sector (Benchmark)
This tells you how your stock performs compared to companies in the same industry. Positive numbers mean your stock is beating the sector average. Negative numbers mean it's lagging behind.
Stock vs Market (SPY)
This shows performance against the broader S&P 500 index. This is important because even if a stock beats its sector, the entire sector might be weak. You want stocks that beat both their sector AND the market.
Sector vs Market
This reveals "sector rotation" - whether money is flowing into or out of this sector. When this number is positive, the whole sector is hot and leading the market. This is powerful because strong sectors tend to lift all boats, making it easier to find winners.
3. MULTI-PERIOD PERFORMANCE ANALYSIS
The indicator calculates performance across four timeframes simultaneously:
1 Month (1M) - Recent short-term momentum
3 Months (3M) - Medium-term trend strength
6 Months (6M) - Longer-term positioning
1 Year (1Y) - Full-cycle performance view
Why multiple periods matter:
A stock might look great over 1 month but terrible over 6 months - that's a red flag. The best stocks show consistent strength across all timeframes . When you see positive RS (Relative Strength) values across all four periods, you've found a stock with sustained outperformance.
Each row in the table shows:
- Raw performance percentage for that period
- RS value (the difference compared to benchmark)
- Color coding: Green for positive, red for negative, white for neutral
4. SECTOR LEADER COMPARISON
The indicator automatically identifies and compares your stock to the sector leader - the dominant stock in that industry.
Sector leaders by industry:
Technology: Apple (AAPL)
Healthcare: UnitedHealth (UNH)
Financial: JPMorgan Chase (JPM)
Energy: ExxonMobil (XOM)
Consumer Discretionary: Amazon (AMZN)
Consumer Staples: Walmart (WMT)
And more...
Why this matters:
Comparing to the leader shows you if you're trading a champion or a follower. If your stock consistently beats the sector leader, you've found something special. If it's lagging the leader, you might want to trade the leader instead.
Optional Custom Leader:
You can override the automatic leader and compare to any stock you choose. This is useful if you want to benchmark against a specific competitor or reference stock.
NEW! INDUSTRY ANALYSIS (STOCKS ONLY)
The indicator now provides multi-level analysis by automatically detecting and comparing your stock to its specific industry , not just the broad sector.
Why Industry matters:
Technology sector (XLK) contains many different industries: Software, Semiconductors, Hardware, etc. A software stock might beat the broad tech sector but lag behind other software companies. Industry analysis provides this granular view.
Industry ETF Mapping (30+ industries):
Software/Applications: IGV (iShares Software ETF)
Semiconductors: SMH (VanEck Semiconductor ETF)
Biotech: IBB (iShares Biotechnology ETF)
Pharmaceuticals: XPH (SPDR Pharmaceuticals ETF)
Banks: KBE (SPDR S&P Bank ETF)
Regional Banks: KRE (SPDR Regional Banking ETF)
Oil & Gas Exploration: XOP (SPDR Oil & Gas Exploration ETF)
Homebuilders: XHB (SPDR Homebuilders ETF)
Retail: XRT (SPDR S&P Retail ETF)
Aerospace & Defense: ITA (iShares U.S. Aerospace & Defense ETF)
And many more...
Industry Leader Mapping:
The indicator also identifies the leader within each industry:
Software: Microsoft (MSFT)
Semiconductors: NVIDIA (NVDA)
Biotech: Amgen (AMGN)
Pharmaceuticals: Eli Lilly (LLY)
Banks: JPMorgan (JPM)
Oil Exploration: ConocoPhillips (COP)
And more...
New Table Rows for Stocks:
Industry ETF Performance - How the specific industry performed (green background)
Industry Leader Performance - How the top stock in the industry performed
vs Industry RS - Your stock's outperformance vs its industry ETF
Industry vs Sector RS - Is this industry hot or cold within its sector?
vs Industry Leader RS - Your stock's performance vs the industry's best
Why this is powerful:
A stock that beats both its sector AND its industry is showing strength at every level. This indicates true relative strength, not just riding sector-wide momentum.
Optional Custom Industry:
You can override automatic detection for both Industry ETF and Industry Leader in settings.
5. RS SCORE & GRADING SYSTEM (0-100)
The heart of the indicator is the RS Score - a weighted calculation that distills all the performance data into one clear number from 0 to 100.
How the score is calculated:
FOR STOCKS (with Industry data):
The indicator splits the weight between Sector (60%) and Industry (40%):
SECTOR RS (60% of total weight):
1 Month RS: 24% weight (40% × 0.6)
3 Month RS: 18% weight (30% × 0.6)
6 Month RS: 12% weight (20% × 0.6)
1 Year RS: 6% weight (10% × 0.6)
INDUSTRY RS (40% of total weight):
1 Month RS: 16% weight (40% × 0.4)
3 Month RS: 12% weight (30% × 0.4)
6 Month RS: 8% weight (20% × 0.4)
1 Year RS: 4% weight (10% × 0.4)
FOR OTHER ASSETS (Crypto, Forex, Commodities):
Uses full 100% weight on benchmark:
1 Month RS: 40% weight
3 Month RS: 30% weight
6 Month RS: 20% weight
1 Year RS: 10% weight
It starts at 50 (neutral) and adds or subtracts points based on your asset's relative strength in each period.
Bonus points:
+5 points if the sector is outperforming the market (sector rotation is bullish)
+5 points if the industry is outperforming its sector (hot industry) - STOCKS ONLY
+5 points if RS momentum is improving (getting stronger over time)
-5 points if RS momentum is declining (getting weaker)
The final score is capped between 0-100.
Letter Grade System:
90-100: A+ - Elite performer, crushing the sector
85-89: A - Excellent, strong outperformer
80-84: A- - Very good, above average
75-79: B+ - Good, solid performer
70-74: B - Above average, decent strength
65-69: B- - Slightly above average
60-64: C+ - Average, neutral strength
55-59: C - Below average
50-54: C- - Weak, slight underperformance
45-49: D+ - Concerning weakness
40-44: D - Poor, significant underperformance
0-39: F - Failing, avoid this stock
What scores mean for trading:
- RS Score above 70: Strong stocks worth considering for long positions
- RS Score 50-70: Average stocks, better opportunities elsewhere
- RS Score below 50: Weak stocks, avoid or consider for shorts
6. CONSISTENCY SCORE
This metric shows what percentage of time periods show positive RS .
For STOCKS (with Industry data):
Counts both Sector RS periods AND Industry RS periods (up to 8 total periods):
- If a stock beats both sector and industry in all 4 periods each: Consistency = 100% (8/8)
- If it beats in 6 out of 8 total periods: Consistency = 75%
- If it beats in 4 out of 8 total periods: Consistency = 50%
For OTHER ASSETS:
Counts benchmark periods only (4 total):
- If it beats benchmark in all 4 periods (1M, 3M, 6M, 1Y): Consistency = 100%
- If it beats in 3 out of 4 periods: Consistency = 75%
- If it beats in 2 out of 4 periods: Consistency = 50%
Why consistency matters:
A high RS Score with low consistency might indicate a recent spike that could fade. The best stocks show both high RS Score AND high consistency - they're strong now AND have been strong historically at both the sector AND industry level.
Look for stocks with:
Consistency above 75%: Very reliable strength across all levels
Consistency 50-75%: Decent but check other metrics
Consistency below 50%: Weak or erratic, proceed with caution
7. BETA CALCULATION (Volatility Measure)
Beta measures how much more volatile your stock is compared to its sector.
Beta > 1.2 : High volatility - stock moves more aggressively than sector (marked as "High")
Beta 0.8-1.2 : Normal volatility - moves roughly in line with sector
Beta < 0.8 : Low volatility - stock is more stable than sector (marked as "Low")
Formula used:
Beta = Correlation(Stock, Sector) × (Standard Deviation of Stock / Standard Deviation of Sector)
This uses a 20-period calculation for reliability.
How to use Beta:
- High Beta stocks offer bigger gains but also bigger risks - good for aggressive traders
- Low Beta stocks are more defensive - good for conservative positions
- Match Beta to your risk tolerance and strategy
8. DAYS ABOVE/BELOW SECTOR
This tracks consecutive periods (bars) where your stock outperforms or underperforms its sector.
Days Above Sector:
Counts how many bars in a row your stock has beaten the sector.
10+ days: Strong sustained strength (shown in bright green)
5-9 days: Building momentum (shown in yellow)
1-4 days: Early strength (shown in white)
0 days: Not currently outperforming
Days Below Sector:
Counts how many bars in a row your stock has lagged the sector.
10+ days: Sustained weakness (shown in bright red)
5-9 days: Losing momentum (shown in orange)
1-4 days: Minor weakness (shown in white)
0 days: Not underperforming (this is good!)
Why this matters:
Long streaks show trend persistence. A stock with 15+ days above sector is riding strong momentum. A stock with 15+ days below sector is in a sustained downtrend relative to peers.
9. PRICE VS 52-WEEK HIGH
Shows where current price sits relative to its 52-week high (or equivalent for your timeframe).
95%+ (green) : Stock is near all-time highs - strong positioning
80-94% (yellow) : Stock is in a pullback but still relatively strong
Below 80% : Stock has pulled back significantly from highs
Why this matters:
The strongest stocks stay near their highs. When you see a stock with high RS Score AND price near 52W high, you've found a stock with institutional support and strong buying pressure.
10. RELATIVE VOLUME
Compares current volume to the 20-period average volume.
1.5x+ (green) : High volume - significant interest and participation
Around 1.0x : Average volume - normal trading activity
Below 1.0x : Low volume - less interest or inactive period
Why volume matters:
High relative volume confirms price moves. When a stock makes a strong move on 2x or 3x normal volume, it's more likely to sustain. Low volume moves are often just noise.
11. AVERAGE RS STRENGTH
This calculates the average absolute value of all RS readings across the four timeframes.
It shows the magnitude of divergence from the sector, regardless of direction. A high number means the stock moves very differently from its sector (could be much stronger or much weaker). A low number means it tracks closely with the sector.
High Average RS: Stock has strong character, moves independently
Low Average RS: Stock follows sector closely, lacks individual strength
12. SECTOR ROTATION SIGNAL
This indicator automatically detects when a sector is experiencing bullish rotation - meaning money is flowing into the sector and it's outperforming the broader market.
Condition for bullish rotation:
Sector must be beating SPY (market) in both 1-month AND 3-month periods.
Why this matters:
Stocks in hot sectors tend to perform better because they have tailwinds from sector-wide buying. When sector rotation is bullish and your stock has a high RS Score, you've found an ideal setup.
The indicator adds +5 bonus points to the RS Score when sector rotation is bullish.
13. MOMENTUM DETECTION
The indicator compares 1-month RS to 3-month RS to detect if momentum is improving or declining.
RS Momentum Improving: 1M RS is better than 3M RS - stock is getting stronger (adds +5 to score)
RS Momentum Declining: 1M RS is worse than 3M RS - stock is getting weaker (subtracts -5 from score)
Why momentum matters:
You want to catch stocks as momentum is building, not after it's already peaked. Improving momentum suggests the strength is accelerating, not fading.
14. OVERALL ASSESSMENT & RECOMMENDATION
The indicator provides two quick summary rows:
Overall Rating:
Based on grade and RS Score, you get an instant quality rating:
Strong Leader (A/A+) - Top tier stock, crushing it
Above Average (A-/B+) - Solid performer, better than most
Average (B/B-) - Middle of the pack
Below Average (C/C+) - Struggling, watch carefully
Underperformer (D/F) - Weak stock, underperforming badly
Trading Signal:
Combines multiple factors to give setup quality:
STRONG BUY SETUP - RS Score 70+, Consistency 75+, AND sector rotation bullish. This is the perfect storm - strong stock, consistent strength, hot sector.
BULLISH - RS Score 60+, Consistency 50+. Good quality stock worth considering.
NEUTRAL - RS Score 50+. Okay but not exciting, better opportunities exist.
WEAK - RS Score 40-49. Below average, risky.
AVOID - RS Score below 40. Stay away, too weak.
IMPORTANT: These are educational signals only, not financial advice. Always do your own analysis and risk management.
KEY FEATURES
1. AUTOMATIC EVERYTHING
- Auto-detects asset type (stock, crypto, forex, commodity, index)
- Auto-maps stocks to correct sector ETF (11 sectors covered)
- Auto-maps stocks to correct industry ETF (30+ industries covered)
- Auto-identifies sector leader AND industry leader
- Auto-selects appropriate market benchmark
- Zero configuration required - just add to chart
2. MULTI-ASSET SUPPORT
Works on all asset classes:
US Stocks - Compares to sector ETFs (XLK, XLF, XLV, etc.)
Crypto - Compares to Total Crypto Market Cap
Forex - Compares to currency indices (DXY, EXY, etc.)
Commodities - Compares to Gold (GLD)
Indices - Compares to broader market benchmarks
3. FLEXIBLE DISPLAY
9 table positions (top/middle/bottom, left/center/right)
4 size options (tiny, small, normal, large)
Show/hide table completely
Real-time indicator toggle
4. TIMEFRAME FLEXIBILITY
Choose your analysis timeframe:
Chart Timeframe (default) - Uses whatever timeframe your chart is on
Fixed: 1 Hour, 4 Hours, Daily, Weekly - Forces calculations to specific timeframe
This means you can be on a 5-minute chart but analyze RS on Daily timeframe if you prefer.
5. RS SCORE FILTERING
Set a minimum RS Score threshold to only see strong stocks:
Set to 0 - Shows all stocks
Set to 70 - Only displays stocks with RS Score 70+ (strong stocks only)
Warning message displays if stock doesn't meet threshold
Perfect for screening - quickly scan multiple charts and the indicator only shows tables for stocks that pass your quality filter.
6. CUSTOM LEADER COMPARISON
Override automatic leader detection:
Compare to any ticker you choose
Benchmark against specific competitors
Use your own reference stocks
7. COMPREHENSIVE TOOLTIPS
Every input parameter and every table row has detailed tooltips explaining:
What the metric measures
How to interpret the values
What thresholds indicate strength/weakness
Why it matters for trading
Hover over any element to learn - it's like having a trading coach built in.
8. SMART ALERTS
Built-in alert system for key events:
Divergence Alerts:
Get notified when your stock diverges significantly from its sector.
Bullish Divergence: Stock beating sector by threshold percentage
Bearish Divergence: Stock losing to sector by threshold percentage
Set your threshold (default 5%) - this determines how big a divergence triggers the alert.
RS Score Alerts:
Get notified when RS Score crosses your threshold:
Crossed Above: RS Score went from below to above your threshold (bullish)
Crossed Below: RS Score dropped from above to below threshold (bearish)
Set your threshold (default 70) to focus on strong stocks.
Sector Rotation Alert:
Fires when sector shows bullish rotation (outperforming market).
HOW TO USE THE INDICATOR
FOR SWING TRADERS:
1. Add indicator to your watchlist stocks
2. Look for RS Score 70+ with Consistency 75%+
3. Check if sector rotation is bullish (bonus!)
4. Verify price is near 52W high (95%+)
5. Wait for entry setup on your chart
6. Use stop loss below key support
Example Setup:
Stock shows:
- RS Score: 82 (Grade: A-)
- Consistency: 100% (strong across all periods)
- Sector Rotation: Bullish
- Price vs 52W High: 96%
- Days Above Sector: 12 days
- Relative Volume: 1.8x
This is a textbook strong stock in a hot sector near highs - ideal for swing long.
FOR POSITION TRADERS:
1. Focus on 6-month and 1-year RS values
2. Look for sustained outperformance (Consistency 75%+)
3. Prefer lower Beta stocks (less volatility)
4. Check Days Above Sector for trend persistence
5. Monitor RS Score monthly, exit if drops below 60
FOR ACTIVE TRADERS:
1. Use on intraday timeframes (1H or 4H)
2. Set RS Score filter to 60+ for quick screening
3. Enable Divergence Alerts
4. Watch for momentum improving signal
5. Higher Beta stocks offer more movement
FOR SHORT SELLERS:
1. Look for RS Score below 40 (Grade: D or F)
2. Check for declining momentum
3. Verify Days Below Sector is increasing (10+)
4. Sector rotation should be bearish
5. Price should be well off 52W high
WHAT MAKES A PERFECT SETUP:
The holy grail combination:
RS Score: 75+ (A- or better)
Consistency: 80%+ (strong across time - beats sector AND industry)
Sector Rotation: Bullish (hot sector)
Industry vs Sector: Positive (hot industry within sector)
Days Above Sector: 10+ (sustained strength)
Momentum: Improving (getting stronger)
Price vs 52W High: 90%+ (near highs)
Relative Volume: 1.5x+ (volume confirmation)
When you find this combination, you've located a stock with every advantage in its favor - strong at the stock level, industry level, AND sector level. That's multi-level confirmation of relative strength.
IMPORTANT NOTES
Data Reliability:
All calculations use lookahead=off for anti-repaint protection
Historical values will never change
Real-time indicator toggle only affects the visual clock icon, not data reliability
All security requests are properly configured to prevent future data leakage
Sector Mapping Notes:
Sector detection uses PulseWire's sector field
Some stocks may not have sector data - indicator will adapt
Sector ETFs used: XLK, XLF, XLV, XLE, XLY, XLP, XLI, XLB, XLRE, XLU, XLC
Major market ETFs (SPY, QQQ, DIA) are treated as market benchmarks, not stocks
Multi-Asset Notes:
Crypto compares to CRYPTOCAP:TOTAL (total crypto market cap)
Forex compares to relevant currency index based on base currency
Commodities compare to Gold (GLD) as primary commodity benchmark
Custom leaders can be set for any asset type
FREQUENTLY ASKED QUESTIONS
Q: What does RS Score of 75 actually mean?
A: It means your stock is strongly outperforming its sector across multiple timeframes. The score is weighted toward recent performance (1-month gets 40% weight), so 75 indicates sustained relative strength with emphasis on current momentum.
Q: My stock has high RS Score but is going down. Why?
A: RS Score measures relative performance (vs sector/market), not absolute price direction. A stock can fall 5% while its sector falls 10% - that's still positive relative strength. In bear markets or sector corrections, high RS stocks often fall less than peers.
Q: Should I only trade stocks with RS Score above 70?
A: For long positions, yes - focus on 70+ scores. These stocks have proven they can beat their sector. However, for pairs trading or relative value plays, you might also short stocks with scores below 40 while longing stocks above 70.
Q: What if my stock doesn't have a sector?
A: The indicator handles this gracefully. If no sector is detected, it will compare directly to the market (SPY for stocks). Some rows may show N/A, but the indicator will still provide useful market-relative data.
Q: Why does the sector sometimes show N/A?
A: This happens when: 1) Your asset has no sector classification, 2) The stock IS the sector ETF itself, 3) You're analyzing a non-stock asset (crypto, forex, commodity). The indicator adapts by focusing on market-relative metrics instead.
Q: Can I use this on cryptocurrencies?
A: Yes! The indicator automatically detects crypto and compares to the Total Crypto Market Cap (CRYPTOCAP:TOTAL). You can also set a custom leader like Bitcoin (BTCUSD) to compare against the dominant crypto.
Q: What's the difference between RS Score and Consistency?
A: RS Score is the weighted average of how much you're beating the sector (magnitude). Consistency is what percentage of time periods show outperformance (reliability). You want both high - that means strong AND consistent.
Q: Do the alerts repaint?
A: No. All alerts fire only on bar close (barstate.isconfirmed) and use properly configured data with lookahead=off. Once an alert fires, it's final and won't change.
Q: What timeframe should I use?
A: For swing trading: Daily or Weekly. For day trading: 1H or 4H. For position trading: Weekly. Use "Chart Timeframe" mode and switch your chart timeframe to change the analysis period easily.
Q: Why is Days Above Sector showing 0?
A: This means your stock is not currently outperforming its sector. If Days Below Sector is also 0, it means the RS is exactly neutral (very rare). Check the actual RS values to see current standing.
Q: Can I compare to a different market benchmark than SPY?
A: Currently the indicator uses SPY (S&P 500) as the default US stock market benchmark. For crypto it uses CRYPTOCAP:TOTAL, for forex it uses currency indices, etc. The benchmark auto-adjusts based on asset type.
Q: What's a good Beta value?
A: It depends on your strategy. Aggressive traders prefer Beta above 1.2 (more volatility = bigger moves). Conservative traders prefer Beta 0.8-1.0 (more stable). Beta is neutral - it's about matching your risk tolerance.
Q: How often does the table update?
A: With Real-time Indicator enabled: Every tick (constant updates). With it disabled: Only on bar close. Either way, the underlying data is identical and non-repainting - the toggle only affects update frequency and the clock icon display.
Q: My stock is showing "AVOID" but it's up 50% this year. Is the indicator wrong?
A: Not necessarily. The indicator measures RELATIVE performance. If your stock is up 50% but the sector is up 100%, your stock is actually underperforming by 50%. The indicator helps you identify when you should switch to stronger stocks in the same sector.
Q: What does "Strong Buy Setup" really mean?
A: It means three things aligned: 1) RS Score above 70 (strong stock), 2) Consistency above 75% (reliable strength), 3) Sector rotation is bullish (hot sector). This combination historically correlates with stocks that continue outperforming. However, this is NOT financial advice - always do your own analysis.
Q: Can I use this for options trading?
A: Yes! High RS Score stocks make good candidates for call options (bullish bets) while low RS Score stocks may work for puts (bearish bets). Higher Beta stocks will have more volatile options (higher premiums but more movement).
Q: Why is my crypto showing N/A for sector?
A: Cryptocurrencies don't have "sectors" like stocks do. Instead, the indicator compares crypto to the total crypto market cap. This is normal and expected behavior.
Q: What happens if I'm analyzing an ETF?
A: If you're analyzing a sector ETF (like XLK), it will compare to SPY (market). If you're analyzing SPY itself, some comparisons won't be available (can't compare SPY to itself). The indicator intelligently adapts to avoid circular comparisons.
Q: What if my stock doesn't have industry data?
A: Not all stocks are mapped to specific industries (only 30+ major industries are covered). If no industry is detected, the indicator will still work using only sector analysis. The RS Score calculation will use 100% sector weight instead of the 60%/40% split.
Q: Why does Industry vs Sector matter?
A: Industry vs Sector shows if your specific industry is hot or cold within its broader sector. For example, Semiconductors (SMH) might be outperforming Technology sector (XLK) even though both are up. This helps you find not just strong sectors, but the strongest industries within those sectors.
Q: Can I disable Industry analysis?
A: Yes! In the "Industry Analysis" settings group, you can toggle off "Show Industry Analysis in Table" to hide all industry rows. However, even when hidden, industry data still contributes to the RS Score calculation for stocks.
Q: Why is my Consistency Score lower for stocks than other assets?
A: For stocks with industry data, Consistency counts 8 periods (4 Sector + 4 Industry periods) instead of just 4. This means the bar is higher - your stock needs to beat both sector AND industry consistently. A stock that beats sector in all 4 periods but lags industry in 2 periods will show 75% consistency (6/8), not 100%.
BEST PRACTICES
Use as a screening tool - Set RS Score filter to 70+ and quickly scan your watchlist. Only strong stocks will show the table.
Combine with technical analysis - RS Score tells you WHAT to trade, your chart tells you WHEN to enter.
Check multiple timeframes - Switch between Daily and Weekly to see if strength holds across different time horizons.
Monitor sector rotation - When sector goes from bearish to bullish rotation, it's often a great time to enter stocks in that sector.
Watch Industry vs Sector - Stocks in hot industries within hot sectors have double tailwinds. Prioritize Industry vs Sector positive values.
Pay attention to consistency - High RS Score with low consistency might be a spike that fades. Look for 70%+ consistency across BOTH sector and industry.
Use the leader comparison - If your stock consistently beats both sector leader AND industry leader, you may have found the next champion.
Watch days above/below sector - Long streaks (15+ days) indicate strong trends. Look for these in conjunction with high RS Score.
Set alerts on key stocks - Enable RS Score alerts at 70 threshold to get notified when watchlist stocks become strong.
Consider Beta for position sizing - Size smaller positions in high Beta stocks, larger in low Beta stocks for balanced risk.
Exit when RS Score drops - If a stock's RS Score falls below 60, consider reducing or exiting - the strength may be fading.
Leverage industry-level insight - If Industry ETF is weak but stock is strong, that's standout strength. If Industry is hot but stock is lagging, consider switching to the industry leader instead.
SETTINGS EXPLAINED
Display Settings:
Show Performance Table - Master on/off switch for the table
Table Position - 9 positions available (corners, edges, center)
Table Size - 4 sizes (tiny, small, normal, large) for different screen sizes
Timeframe Settings:
Chart Timeframe (recommended) - Dynamic, uses whatever chart TF you're on
Fixed Timeframes - Locks analysis to 1H, 4H, Daily, or Weekly regardless of chart
Filtering Settings:
Minimum RS Score - Set threshold (0-100) for displaying table
Show Warning - When enabled, displays message if stock doesn't meet filter
Alert Settings:
Divergence Alerts - Enable alerts when stock diverges from sector
Threshold (%) - How big a divergence triggers alert (default 5%)
RS Score Alerts - Enable alerts when RS Score crosses threshold
Threshold - What RS Score level triggers alert (default 70)
Sector Analysis Settings:
Use Custom Sector ETF - Override automatic sector ETF detection
Sector ETF Symbol - Enter any sector ETF to compare against
Use Custom Sector Leader - Override automatic sector leader detection
Sector Leader Symbol - Enter any ticker as sector leader
Industry Analysis Settings:
Use Custom Industry ETF - Override automatic industry ETF detection
Industry ETF Symbol - Enter specific industry ETF (e.g., IGV, SMH)
Use Custom Industry Leader - Override automatic industry leader detection
Industry Leader Symbol - Enter specific industry leader
Show Industry Analysis - Toggle all industry rows on/off
Display Settings:
Show Real-time Indicator - Toggle clock icon in header (doesn't affect data)
WHAT THIS INDICATOR DOESN'T DO
To set proper expectations:
Does NOT provide entry/exit signals - this is a strength analyzer, not a trading system
Does NOT predict future price movement - shows current and historical relative strength
Does NOT guarantee profits - strong RS stocks can still decline
Does NOT replace your own analysis - use as one tool among many
Does NOT work on stocks with no sector data - will adapt but some rows show N/A
This indicator is a decision support tool . It helps you identify which stocks are showing relative strength so you can make more informed trading decisions. You still need your own entry strategy, risk management, and position sizing rules.
SUPPORT & CONTACT
Questions or feedback? Use the comments section below or send me a message.
If you find this indicator useful, please give it a boost and share with other traders who might benefit from relative strength analysis.
FINAL REMINDER
This indicator is a tool for analyzing relative strength - it shows you which stocks are outperforming their sector and market. It does NOT provide financial advice or trade signals. Always conduct your own research, manage your risk appropriately, and consult with a financial advisor before making investment decisions.
Past performance of relative strength does not guarantee future results. Strong stocks can become weak, and sectors rotate in and out of favor. Use this indicator as part of a comprehensive trading strategy, not as a standalone decision-making system.
Trade smart, manage risk, and may your RS Scores stay high!
If you got till here and you like my work a BOOST and a COMMENT would make me happy Indicator

Relative Performance Tracker [QuantAlgo]🟢 Overview
The Relative Performance Tracker is a multi-asset comparison tool designed to monitor and rank up to 30 different tickers simultaneously based on their relative price performance. This indicator enables traders and investors to quickly identify market leaders and laggards across their watchlist, facilitating rotation strategies, strength-based trading decisions, and cross-asset momentum analysis.
🟢 Key Features
1. Multi-Asset Monitoring
Track up to 30 tickers across any market (stocks, crypto, forex, commodities, indices)
Individual enable/disable toggles for each ticker to customize your watchlist
Universal compatibility with any PulseWire symbol format (EXCHANGE:TICKER)
2. Ranking Tables (Up to 3 Tables)
Each ticker's percentage change over your chosen lookback period, calculated as:
(Current Price - Past Price) / Past Price × 100
Automatic sorting from strongest to weakest performers
Rank: Position from 1-30 (1 = strongest performer)
Ticker: Symbol name with color-coded background (green for gains, red for losses)
% Change: Exact percentage with color intensity matching magnitude
For example, Rank #1 has the highest gain among all enabled tickers, Rank #30 has the lowest (or most negative) return.
3. Histogram Visualization
Adjustable bar count: Display anywhere from 1 to 30 top-ranked tickers (user customizable)
Bar height = magnitude of percentage change.
Bars extend upward for gains, downward for losses. Taller bars = larger moves.
Green bars for positive returns, red for negative returns.
4. Customizable Color Schemes
Classic: Traditional green/red for intuitive interpretation
Aqua: Blue/orange combination for reduced eye strain
Cosmic: Vibrant aqua/purple optimized for dark mode
Custom: Full personalization of positive and negative colors
5. Built-In Ranking Alerts
Six alert conditions detect when rankings change:
Top 1 Changed: New #1 leader emerges
Top 3/5/10/15/20 Changed: Shifts within those tiers
🟢 Practical Applications
→ Momentum Trading: Focus on top-ranked assets (Rank 1-10) that show strongest relative strength for trend-following strategies
→ Market Breadth Analysis: Monitor how many tickers are above vs. below zero on the histogram to gauge overall market health
→ Divergence Spotting: Identify when previously leading assets lose momentum (drop out of top ranks) as potential trend reversal signals
→ Multi-Timeframe Analysis: Use different lookback periods on different charts to align short-term and long-term relative strength
→ Customized Focus: Adjust histogram bars to show only top 5-10 strongest movers for concentrated analysis, or expand to 20-30 for comprehensive overview Indicator

LRS-Strategy: 200-EMA Buffer & Long/Short Signals LRS-Strategy: 200-EMA Buffer & Long/Short Signals
This indicator is designed to help traders implement the Leveraged Return Strategy (LRS) using the 200-day Exponential Moving Average (EMA) as a key trend-following signal. The indicator offers clear long and short signals by analyzing the price movements relative to the 200-day EMA, enhanced by customizable buffer zones for increased precision.
Key Features:
200-Day EMA: The main trend indicator. When the price is above the 200-day EMA, the market is considered in an uptrend, and when it is below, it indicates a downtrend.
Customizable Buffer Zones: Users can define a percentage buffer around the 200-day EMA (default is 3%). The upper and lower buffer zones help filter out noise and prevent premature signals.
Precise Long/Short Signals:
Long Signal: Triggered when the price moves from below the lower buffer zone, crosses the 200-day EMA, and then breaks above the upper buffer zone.
Short Signal: Triggered when the price moves from above the upper buffer zone, crosses the 200-day EMA, and then breaks below the lower buffer zone.
Alternating Signals: Ensures that a new signal (long or short) is only generated after the opposite signal has been triggered, preventing multiple signals of the same type without a reversal.
Clear Visual Aids: The indicator displays the 200-day EMA and buffer zones on the chart, along with buy (long) and sell (short) signals. This makes it easy to track trends and time entries/exits.
How to Use:
Long Entry: Look for the price to move below the lower buffer, cross the 200-day EMA from below, and then break out of the upper buffer to confirm a long signal.
Short Entry: Look for the price to move above the upper buffer, cross below the 200-day EMA, and then break below the lower buffer to confirm a short signal.
This indicator is perfect for traders who prefer a structured, trend-following approach, using clear rules to minimize noise and identify meaningful long or short opportunities. Indicator

Market Inner Strength IndexThe "Market Inner Strength Index" is an indicator designed to visually represent the market strength by analyzing the six major sectors: XLK, XLV, XLF, XLY, XLC and XLI. These sectors represent more than 80% of the SPX index, making their performance crucial for understanding overall market conditions. The indicator calculates the individual strengths of these sectors and combines them to provide an overall market strength index, helping to identify scenarios of sector rotation, euphoria, or panic.
Rationale:
The six major sectors (XLK, XLV, XLF, XLY, XLC, XLI) are essential as they encompass a significant portion of the SPX index. Typically, money rotates among these sectors, meaning some sectors grow while others decline. Rare occasions where all sectors move in the same direction can indicate market-wide euphoria (upwards) or panic (downwards). The Market Inner Strength Index helps track sector performance and identify these scenarios.
Methodology:
Script requests current timeframe data for each of the sectors and assigns scores, based on its performance. It will work best on the daily and higher timeframes but can also be used on the lower timeframes.
Score assignment:
If the sector is green (positive performance) for the given timeframe, it receives positive points.
If the sector is red (negative performance), it receives negative points.
If the current close price is above the previous period high, additional positive points are assigned.
If the current close price is below the previous period low, additional negative points are assigned.
The scores for the six sectors are averaged to compute a total score, which is plotted on the chart. A table displays the performance of each sector, color-coded based on their scores for the last period.
Parameters:
Neutral Zone : Define the neutral zone threshold.
Heikin Ashi : Option to use Heikin Ashi candles instead of normal ones.
Show Divergency : Option to show divergences on the chart. Divergence occurs when the SPY is bullish, but the sector score is bearish, or vice versa. This option will only work on SPY chart.
Sector selections : Enable/disable specific sectors in score calculation.
Indicator
