RS Rating (Relative Strength) - Clean Table UIThis indicator calculates the Relative Strength (RS) Rating of a stock compared to the S&P 500 (SPY) and displays it as a clean, simple numerical value in a customizable table on your chart.
Unlike many complex swing data indicators that clutter your screen with moving averages, background colors, and multiple data points, this script is specifically designed for minimalist traders, day traders, and scalpers who only need to see the core RS Rating score at a single glance.
How It Works:
Core Calculation: It uses the standard weighted formula for 1-year performance (40% for the most recent quarter, and 20% for each of the previous three quarters) compared against the S&P 500 benchmark.
Percentile Ranking (1-99): Using market environment seed data, the raw score is converted into a true 1 to 99 percentile ranking. For example, an RS Rating of 85 means the stock is currently outperforming 85% of the overall market.
Color-Coded Signals: The numerical value automatically changes color based on the stock's momentum:
Green (>= 80): Strong market leader.
Red (<= 40): Weak laggard.
Custom/White: Neutral performance.
Features:
Zero Chart Clutter: No lines or shapes plotted over your candles. Just a single, elegant table.
Fully Customizable: You can easily change the table's position (Top/Bottom, Left/Right) and text size (Normal, Large, Huge) directly from the indicator settings to fit your exact workspace layout.
(Credits to the original open-source community and Fred6724 for the percentile mapping seed function utilized to power this clean UI version). Indicator

Relative Strength (RS) - Mansfield StyleRelative Strength (RS) measures how a symbol performs against a chosen
benchmark. Instead of plotting the raw price ratio โ whose scale differs
from one symbol to another and makes comparison difficult โ this script
normalizes the ratio (symbol close / benchmark close) against its own
simple moving average over a configurable lookback "Period". The result
is a zero-centered line that reads the same way on any symbol:
- RS above 0 and rising โ the asset is outperforming the benchmark
- RS below 0 and falling โ the asset is underperforming
- Zero-line crossings โ shifts in relative leadership
Only the direction and the position relative to zero matter, not the
absolute value.
โ HOW IT WORKS
1. The script requests the benchmark's close on the selected timeframe.
2. It computes the raw ratio: symbol close / benchmark close.
3. The ratio is divided by its SMA over the "Period" lookback, minus 1 โ
expressing how far the current relative strength stands above or
below its recent average.
4. An optional moving average of RS can be displayed as a signal line.
โ INPUTS
- Comparative Symbol: the benchmark (an index such as SPX, a sector
index, or any peer symbol โ e.g. compare gold against silver).
- Period (default 50): normalization lookback. Shorter = more reactive,
longer = smoother and slower.
- Show Moving Average / Moving Average Period: optional smoothing line.
- Timeframe: leave empty to use the chart's timeframe, or select a
higher timeframe for multi-timeframe analysis.
โ HOW TO USE
Apply the indicator to any symbol. When RS holds above zero, the asset
is leading its benchmark โ favor it for relative-strength strategies
(buy strength). When RS holds below zero, the asset is lagging โ avoid
it or rotate out. Zero-line crossovers flag early changes in relative
leadership, and two built-in alerts fire on these crossings.
RS is a relative tool, not a timing tool: an asset can outperform a
falling benchmark while still declining in absolute terms. Combine it
with your own trend or entry criteria.
โ CREDITS
The normalization method follows the Mansfield Relative Strength
concept popularized by Stan Weinstein in "Secrets for Profiting in
Bull and Bear Markets".
โ NOTE ON HIGHER TIMEFRAMES
When a higher timeframe is selected in the Timeframe input, the value
of the current forming bar updates until that bar closes. Historical
values do not repaint. Indicator

Trident Screener - Stocks, Themes, Sectors [Galin]Trident Screener
What it does
One screener, three universes. Run it in the Pine Screener on individual stocks, on thematic and industry ETFs, and on the sector SPDRs โ same columns, same saved filters, three watchlists. It combines a Minervini-style trend template, an IBD-style weighted relative strength score, a three-condition leadership flag with same-day rotation detection, and setup-ripeness columns: contraction, volume dry-up, extension. Every plot becomes a filterable, sortable column โ the answer arrives as a ranked table, not a chart to eyeball.
The columns
Trend
MM โ 0 to 8, one point per rule when true: 1) close above the 150 and 200 SMA ยท 2) 150 SMA above 200 SMA ยท 3) 200 SMA rising vs 22 bars ago ยท 4) 50 SMA above the 150 and 200 ยท 5) close above the 50 SMA ยท 6) at least 25% above the 260-bar low ยท 7) within 25% of the 260-bar high ยท 8) weighted price-momentum composite above 70. Rule 8 uses a price composite, not an IBD-style rating โ that job belongs to RS Score below.
Relative strength
RS Score โ IBD-style weighted relative strength vs the benchmark, in percentage points: 40% ร 3M + 20% ร 6M + 20% ร 9M + 20% ร 12M. Zero means the symbol moves with the benchmark; leaders typically read +20 to +80. It is a margin, not a 0โ99 percentile โ sorting the column gives you the ranking over your own watchlist, which is the honest version of a ranking anyway.
RS 1W % / RS 1M % / RS 3M % โ relative performance vs the benchmark per window, computed as the change of the symbol/benchmark ratio.
Leadership & rotation
A+ โ 1/0. Above the 200-day SMA AND beats the benchmark over 1 month AND over 3 months. Each condition catches what the other two miss: a "strong month" inside a downtrend is a bounce, not a leader.
A+ streak โ consecutive days with the A+ flag. 1 = promoted today: your rotation alert. Sort descending to rank the most established leaders. Tip: check RS 1W on fresh promotions โ a green week means an organic promotion; a deep red week means the calendar just rolled a crash out of the 1-month window.
Improving โ above the 200 SMA and beating the benchmark on 1M but not yet on 3M: the waiting room for tomorrow's leaders.
Early accumulation
RS NH โ the RS line (symbol รท benchmark) is at a 252-bar high.
RS NH lead โ RS NH while price is still more than 2% below its own 260-bar high. Relative strength breaking out before price is a classic accumulation tell: someone is buying the base hard enough to outrun the index without a breakout.
Setup ripeness
xFrom50 โ extension from the 50 SMA measured in daily ATRs: the "too extended to chase" gauge.
% vs 20SMA โ the pullback radar: an extended leader near its 20 SMA is offering an entry instead of demanding a chase.
% from 20D High / % from 60D High โ proximity to the recent high and to the base high.
Tight5 (xATR) โ the 5-day range measured in ATRs. Small = contraction.
Vol 5D/50D โ volume dry-up ratio; below ~0.8 = quiet base.
Suggested setups (set once โ filters stick to the indicator)
Stocks: MM = 8 ยท xFrom50 0 to 4 ยท % from 60D High โ8 to 0 ยท Tight5 < 3 ยท Vol 5D/50D < 0.8 โ sort RS Score descending. Result: tight, dry leaders sitting just under their highs. Loosen the last three by ~30% for an "almost ready" second pass.
Themes / sectors: A+ = 1 โ sort RS Score descending. The row count is a daily breadth curve โ log it. A+ streak = 1 โ fresh promotions. Improving = 1 โ the waiting room.
Weekly: RS NH lead = 1 โ the names where the money arrived before the breakout.
Settings
Benchmark โ default SPY. Compare sectors vs SPY, growth themes vs QQQ, breadth vs RSP, or a stock vs its own sector ETF.
Notes
Run the screener on the 1D timeframe โ required, because A+ streak and RS NH count chart bars, so one bar must equal one day. Plots are hidden on the chart by design; this is a screener tool. All windows are trading days (5/21/63/126/189/252). Symbols younger than ~12 months show empty RS Score cells until the history exists. MM criteria adapted from the Minervini Trend Template by yogy.frestarahmawan (MPL 2.0). Volume confirms what the screener nominates โ for entry confirmation, pair it with my Relative Volume At Time indicator. Indicator

RS/Correlation Panel**RS/Correlation Panel**
A single-table dashboard that benchmarks the current chart's symbol against any reference ticker you choose (SPY, QQQ, BTC, or any other symbol) across multiple timeframes โ correlation, today's relative performance, short-term relative strength, and a longer IBD-style relative strength rating โ plus historical daily move statistics for the symbol itself.
**Inputs**
- **Benchmark Ticker** โ the symbol to compare against. Defaults to SPY, but accepts any ticker (QQQ, individual stocks, or crypto via its exchange prefix, e.g. COINBASE:BTCUSD).
- **Correlation Lookback (bars)** โ number of bars used for the rolling correlation calculation. Default 20.
- **Daily Stats Lookback (days)** โ number of trading days used to calculate average rise/fall and green/red day percentages. Default 60.
- **Short-Term RS/RW Lookback (bars)** โ the window used for the medium-term relative strength/weakness reading, sitting between the 1-day and quarterly reads. Default 10.
- **Table Position** โ corner of the chart where the table is displayed.
**Table Rows**
- **Correlation** โ rolling correlation coefficient between the symbol and the benchmark over the chosen lookback, tagged Strong / Moderate / Weak based on absolute value.
- **Symbol's Today's Move / Benchmark's Today's Move** โ each instrument's current-session percent change, calculated from that day's open to the live/last close.
- **RS/RW Today** โ the difference between the symbol's and benchmark's daily percent change. Positive means the symbol is outperforming the benchmark today; negative means it's underperforming.
- **N-Bar RS/RW** โ the same outperformance/underperformance concept, but measured as the difference in rate-of-change over the user-defined short-term lookback (default 10 bars). This fills the gap between a single day's move and a full quarterly trend.
- **IBD-Style RS** โ a quarterly-weighted relative strength calculation modeled on the classic IBD Relative Strength methodology: the symbol's and benchmark's trailing performance are each computed across four rolling quarters (weighted 40/20/20/20, most recent quarter weighted heaviest), then compared as a percentage difference. This is a slower-moving, trend-level strength read โ it won't react much to a single day's move, by design.
- **Avg % Rise / Fall** โ average percentage gain on up days and average percentage loss on down days, calculated over the Daily Stats Lookback period.
- **Green Days % / Red Days %** โ percentage of days in the lookback period that closed up versus down.
**Notes**
- All relative-strength and correlation metrics reference the same user-selected benchmark, so switching the input updates every row consistently.
- The IBD-Style RS calculation is a reproduction of the standard quarterly-weighted RS methodology and is intended to complement โ not replace โ short-term price action analysis.
- This is a decision-support tool, not a standalone trading signal. Always confirm readings against price structure, volume, and catalysts before acting. Indicator

Ultimate RSIHere is a breakdown of its core features and how they work together:
1. Volatility-Adaptive RSI Length
How it works: Instead of using a static length (like the traditional 14-period RSI), the script calculates the market's standard deviation (volatility).
The Benefit: When the market is highly volatile, the RSI length dynamically shortens, making the indicator more responsive so you can catch quick reversals. When volatility drops (consolidation), the length expands, smoothing the RSI line to filter out "chop" and false signals.
2. Dynamic Overbought / Oversold Zones (Bollinger Bands)
How it works: Standard RSIs use static horizontal lines at 70 and 30. This script applies Bollinger Bands directly to the RSI values themselves.
The Benefit: A reading of 70 isn't always overbought in a strong trend. By wrapping the RSI in a standard deviation channel, you get a dynamic zone. If the RSI breaks above its upper dynamic band, you know momentum is genuinely extreme relative to recent conditions, rather than a fixed arbitrary number.
3. Automated Divergence Detection
How it works: The script constantly scans for discrepancies between price action and RSI momentum.
The Benefit: It automatically plots visual markers on the RSI pane when it detects:
Regular Divergences (Reversals): E.g., Price makes a Lower Low, but RSI makes a Higher Low (Bullish Divergence).
Hidden Divergences (Trend Continuations): E.g., Price makes a Higher Low, but RSI drops to a Lower Low (Hidden Bullish).
4. RSI Moving Average (Signal Line)
How it works: An additional moving average (you can choose between SMA, EMA, RMA, WMA, or HMA) is plotted alongside the RSI.
The Benefit: This acts as a trigger line. An RSI crossing above its EMA can be used as an early entry signal, or as confirmation that momentum has definitively shifted.
5. Multi-Timeframe (MTF) Support
How it works: You can configure the indicator to calculate RSI based on a higher timeframe (e.g., pulling 4-Hour RSI data while you are looking at a 15-minute chart).
The Benefit: This ensures your lower timeframe entries are always aligned with the macro momentum, preventing you from trading against the larger trend.
6. Visual Confluence & Alerts
The RSI line itself is color-coded. For example, it turns bright green when momentum is both above 50 and rising, and dark red when below 50 and falling.
It includes a full suite of alert conditions (divergences and MA crossovers) so you can automate your trading or get pinged when a setup occurs.
In summary, it's designed to replace 3 or 4 different indicators on your chart by giving you adaptive momentum, dynamic exhaustion zones, trend direction, and divergence signals all natively in one branded, professional package. Indicator

DAX Universe Relative Strength [JS]DAX Universe Relative Strength
This indicator compares the current stock with an equal-weighted German stock market benchmark consisting of DAX, MDAX, SDAX and TecDAX.
Instead of comparing a stock only with one single index, the script creates a broader DAX Universe benchmark by calculating the average performance of the four major German equity indices over a selected lookback period.
The goal is to identify whether a stock is showing relative strength or relative weakness versus the broader German stock universe.
How it works:
1. The script measures the performance of the current stock over the selected comparison period.
2. It measures the performance of DAX, MDAX, SDAX and TecDAX over the same period.
3. It calculates the equal-weighted average performance of these four indices.
4. It compares the stockโs performance with this benchmark.
5. The result is plotted as a relative strength line.
Interpretation:
- RS above 0:
The stock is outperforming the DAX Universe benchmark.
- RS below 0:
The stock is underperforming the DAX Universe benchmark.
- RS above its moving average:
Relative strength is improving.
- RS below its moving average:
Relative strength is weakening.
- Strong RS signal:
The stock is above the benchmark, above its RS moving average, and the RS moving average is rising.
This indicator is designed as a filter, not as a standalone buy or sell signal.
For pullback and swing trading, I use it to identify stocks that are stronger than the broader German market. A strong RS reading does not mean that a stock should be bought immediately. It only means that the stock deserves attention and may be worth adding to a watchlist.
A complete trade setup should also include:
- constructive trend structure
- price above important moving averages
- controlled pullback
- declining selling pressure
- clear pivot or trigger
- defined stop-loss
- attractive risk/reward ratio
The indicator includes:
- relative strength line
- moving average of the RS line
- zero line
- histogram
- background highlighting
- interpretation label
- alert conditions for RS changes
Suggested use cases:
- screening German stocks
- comparing DAX, MDAX, SDAX and TecDAX stocks
- identifying potential market leaders
- filtering pullback candidates
- avoiding stocks with persistent relative weakness
Important:
This script is for educational and analytical purposes only. It does not provide investment advice, buy signals or sell signals. Always combine relative strength analysis with your own chart analysis, risk management and trading plan. Indicator

Indicator

EMA Ride Scanner V2.a (Toggle) - AshishShort Description
A dual-mode EMA9/21/50 trend-ride scanner with volume classification and a relative-strength "Grinder Mode" for stocks that trend without ever coiling tight enough to trigger a squeeze. Use alongside its companion, SQZ_SCAN, for momentum timing.
What it does
EMA Ride Scanner V2.a finds stocks in a clean, established uptrend and flags healthy pullback zones to buy โ instead of chasing breakouts after the move has happened. Built on ideas from Qullamaggie's Episodic Pivot framework, Stockbee's price-neglect filter, and VCPSwing's 10/20-MA ride philosophy.
It checks: EMA9>21>50 stack alignment, minimum ride duration, distance from 52-week low, and volatility contraction. Volume bars are color-coded as EP surges, distribution, or healthy dips.
Two modes (single toggle)
Standard Mode (toggle OFF) โ for stocks that coil and release. Flags a 0-5% pullback to EMA9, ideally on light volume. Pair with SQZ_SCAN for the breakout-timing signal.
Grinder Mode (toggle ON) โ for stocks that never coil. Some strong trends have such low, steady volatility that they never compress enough to trigger a squeeze โ by the time SQZ_SCAN fires, they've already run too far from EMA9 to count as a dip. Grinder Mode drops the squeeze requirement and instead checks: low ATR, long ride above EMA21, and meaningful outperformance vs a benchmark index (momentum begets momentum). If price is also near EMA9/21, it flags a Grinder Setup.
Note: cloud-bounce count is shown for visual reference only, not used as a filter โ low-ATR stocks often show very few bounces simply because they ride EMA9 continuously rather than dipping and recovering.
Companion: SQZ_SCAN
SQZ_SCAN shows when volatility compression releases into a confirmed move โ WATCH (squeeze building), EARLY FIRE (just released), or BUY (released + volume confirmed). NOTE: As with most indicators, this is a lagging indicator on a daily timeframe, and accuracy reduces significantly on lower timeframes.
Workflow:
Screen with EMA Ride Scanner (Standard Mode) for clean pullback candidates.
Check SQZ_SCAN on each โ prioritize WATCH/EARLY FIRE/BUY.
Separately, screen Grinder Mode for low-volatility names โ don't require SQZ confirmation here, it structurally won't fire for this archetype.
Sanity-check on hourly before entry โ only to rule out an active breakdown, not as a hard gate. Both indicators are daily-timeframe tools; hourly readings are noisy and shouldn't override a valid daily setup.
What this isn't
A screening tool, not a full trading system โ no buy/sell signals, no risk management built in. Combine with your own entry timing, sizing, and stops. Indicator

Pair Currency Strength๐ What is Pair Currency Strength?
This indicator is a professional-grade relative strength oscillator designed to identify true market divergences and trend reversals in Forex pairs.
Unlike traditional currency strength meters that isolate only the two components of your current chartโcausing massive USD volatility to distort the linesโthis script calculates a global 8-currency matrix in the background.
To keep your workspace 100% clean and focused on your trading execution, it visually renders only the two lines corresponding to your active chart's pair. Inspired by advanced macro analysis dashboards like MarketMilk (Babypips), this indicator strips away the overwhelming USD background noise and dynamically auto-adjusts the Y-axis scale so micro-divergences become instantly scannable.
๐งฎ How the Math Works (Why itโs a game-changer)
To completely eliminate USD-dominance bias, the script runs a global basket normalization algorithm on every single bar:
Simultaneous Multi-Asset Fetching: No matter which pair you are actively viewing, the script requests backend data for the 7 major currencies against the USD (EURUSD, GBPUSD, AUDUSD, NZDUSD, USDCAD, USDCHF, USDJPY).
Raw Return Calculation: It measures the percentage return of each currency based on your selected lookback window (22-bar rolling window by default, representing 30 calendar days of trading). The raw return of the USD itself is strictly benchmarked at 0.0.
Global Average Normalization: The script calculates the arithmetic mean of the entire currency market:
Global Average = (Sum of all 8 currency returns) / 8
Extracting True Strength: It subtracts this Global Average from each individual currency's raw return:
True Strength = Raw Return - Global Average
By removing the overall market's average drift, the USD stops being a flat line at zero and fluctuates dynamically. More importantly, the indicator's Y-axis contracts dramatically (auto-zooming in). This amplifies the micro-divergences between your chart's two currencies, forcing them into an elegant "mirror effect" around the zero line.
5. Exclusive Display Filtering: It detects the base and quote currencies of your active chart and instantly hides the other 6 currencies, leaving you with a laser-focused, distraction-free panel.
๐ ๏ธ Key Features & Inputs
Data Source Selector: Easily toggle between Spot Forex (utilizing dynamic broker feeds) and CME Futures (Pro) (utilizing institutional, high-liquidity continuous futures contracts like 6E1!, 6B1!, 6J1!, etc.).
Flexible Anchor Modes:
Rolling Period: A continuous lookback window of N bars (Set to 22 or 30 to track the classic "last 30 days" look).
Weekly Anchor: Every line resets strictly to 0.0 at Monday's market open, allowing you to track intra-week capital flows.
EMA Smoothing Filter: An optional moving average layer to shave off erratic price noise and algorithmic spikes, converting raw data into highly readable, organic curves without introducing critical execution lag.
๐ How to Trade with this Tool (Visual Strategy)
Trend Confirmation (The Mirror Effect): A healthy, strong trend is confirmed when the Base and Quote lines expand symmetrically in completely opposite directions away from the zero equilibrium line.
Line Crossover (Early Reversal Trigger): When the Base currency line crosses over the Quote currency line at overextended historical extremes, it serves as a high-probability warning of an impending structural shift on the main price chart.
Divergence Exhaustion: When the vertical distance between the two lines becomes unsustainably wide, the market "rubber band" is stretched to its limit. This is your cue to look for price action reversal triggers, as a retracement or consolidation is highly imminent.
Indicator

Active Pair Currency StrengthยกUff, sรญ! Se hizo un "licuado" total de texto al pegar. Eso pasa porque el editor de TradingView a veces ignora los saltos de lรญnea simples si vienen muy juntos y no soporta ecuaciones complejas en LaTeX (asรญ que los sรญmbolos como \frac y \text se ven rarรญsimos en la pantalla).
Aquรญ tienes la versiรณn completamente limpia, estructurada con tรญtulos claros, viรฑetas y matemรกticas en texto plano legible para que cuando lo pegues se vea impecable, ordenado y muy profesional.
Asegรบrate de dejar un espacio en blanco (un doble Enter) entre cada pรกrrafo al pegarlo si ves que el editor de TradingView intenta juntarlos de nuevo.
๐ Copia y pega el siguiente bloque de texto en inglรฉs:
๐ What is "Active Pair Currency Strength"?
This indicator is a professional-grade relative strength oscillator designed to identify true market divergences and trend reversals in Forex pairs.
Unlike traditional currency strength meters that isolate only the two components of your current chartโcausing massive USD volatility to distort the linesโthis script calculates a global 8-currency matrix in the background.
To keep your workspace 100% clean and focused on your trading execution, it visually renders only the two lines corresponding to your active chart's pair. Inspired by advanced macro analysis dashboards like MarketMilk (Babypips), this indicator strips away the overwhelming USD background noise and dynamically auto-adjusts the Y-axis scale so micro-divergences become instantly scannable.
๐งฎ How the Math Works (Why itโs a game-changer)
To completely eliminate USD-dominance bias, the script runs a global basket normalization algorithm on every single bar:
Simultaneous Multi-Asset Fetching: No matter which pair you are actively viewing, the script requests backend data for the 7 major currencies against the USD (EURUSD, GBPUSD, AUDUSD, NZDUSD, USDCAD, USDCHF, USDJPY).
Raw Return Calculation: It measures the percentage return of each currency based on your selected lookback window (22-bar rolling window by default, representing 30 calendar days of trading). The raw return of the USD itself is strictly benchmarked at 0.0.
Global Average Normalization: The script calculates the arithmetic mean of the entire currency market:
Global Average = (Sum of all 8 currency returns) / 8
Extracting True Strength: It subtracts this Global Average from each individual currency's raw return:
True Strength = Raw Return - Global Average
By removing the overall market's average drift, the USD stops being a flat line at zero and fluctuates dynamically. More importantly, the indicator's Y-axis contracts dramatically (auto-zooming in). This amplifies the micro-divergences between your chart's two currencies, forcing them into an elegant "mirror effect" around the zero line.
5. Exclusive Display Filtering: It detects the base and quote currencies of your active chart and instantly hides the other 6 currencies, leaving you with a laser-focused, distraction-free panel.
๐ ๏ธ Key Features & Inputs
Data Source Selector: Easily toggle between Spot Forex (utilizing dynamic broker feeds) and CME Futures (Pro) (utilizing institutional, high-liquidity continuous futures contracts like 6E1!, 6B1!, 6J1!, etc.).
Flexible Anchor Modes:
Rolling Period: A continuous lookback window of N bars (Set to 22 or 30 to track the classic "last 30 days" look).
Weekly Anchor: Every line resets strictly to 0.0 at Monday's market open, allowing you to track intra-week capital flows.
EMA Smoothing Filter: An optional moving average layer to shave off erratic price noise and algorithmic spikes, converting raw data into highly readable, organic curves without introducing critical execution lag.
๐ How to Trade with this Tool (Visual Strategy)
Trend Confirmation (The Mirror Effect): A healthy, strong trend is confirmed when the Base and Quote lines expand symmetrically in completely opposite directions away from the zero equilibrium line.
Line Crossover (Early Reversal Trigger): When the Base currency line crosses over the Quote currency line at overextended historical extremes, it serves as a high-probability warning of an impending structural shift on the main price chart.
Divergence Exhaustion: When the vertical distance between the two lines becomes unsustainably wide, the market "rubber band" is stretched to its limit. This is your cue to look for price action reversal triggers, as a retracement or consolidation is highly imminent. Indicator

Relative Strength MatrixOverview
This script is based on work of @jfsrev 's indicator "Swing Data - ADR% / RVol / PVol / Float % / Avg $ Vol", which I modified heavily and left only the Relative Strength related calculations and added to these.
The Relative Strength Matrix is a contextual dashboard designed to help traders instantly identify whether a stockโand its corresponding industry or sectorโis displaying true leadership or relative weakness. By tracking rolling price performance across multiple timeframes relative to the S&P 500 (SPX), the script visualizes market alpha directly on your chart via a clean, dynamic, and non-intrusive matrix panel.
Features and customization
Script has following main features and customization options:
Modifiable RS score calculation: you can dynamically adjust the mathematical percentage weights for the 2-Week (10d), 1-Month (21d), 3-Month (63d), and 6-Month (126d) momentum lookback periods straight from the UI settings.
Multi-Period Trend Tracking: Calculates and presents the real-time absolute percentage performance of the tracked industry ETF over different time periods. Results can be shown or hidden for each calculation separately.
Individual tickers can be mapped to target ETFs: You can form your own groups with individual tickers and specify benchmark ETF for them (e.g. Tickers: CRWD, S, PANW => Target industry: CIBR)
Industry specific mapping to target ETF: You can use TradingViews provided Industry-information and map the industry to specific ETF (e.g., TW Industry: Semiconductors => Target ETF: SMH)
Complete UI visuals customization: You can customize table position, sizes, background transparencies, border widths, and text colors.
Order for RS calculation
Relative Strength is checked and mapped in the following order:
Tier 1: Custom Groups (Fully User-Defined) - The script checks if the current ticker belongs to any of your 20 fully customizable thematic watchlists (e.g., Cybersecurity, Semis, Crypto Infrastructure). If found, it instantly binds the stock to your manually assigned thematic ETF.
Tier 2: Core Industries (User-Defined Mappings) โ If not found in a custom group, the script screens the stock's native TradingView Industry against 30 available custom mapping slots to find your preferred benchmark tracking ETF.
Tier 3: Sector Fallback (Hardcoded) โ If no custom group or industry mapping exists, the engine relies on a robust, hardcoded fallback architecture that maps the stockโs native TradingView Sector to its corresponding Select Sector SPDR ETF (e.g., Electronic Technology is mapped to XLK, Finance is mapped to XLF, Energy is mapped to XLE etc).
Tier 4: Global Catch-All โ If a stock does not belong to any defined industry or sector, it defaults to SPY to guarantee a clean baseline calculation without script errors.
Indicator

Indicator

Indicator

TT - SPDR Sector RS vs BenchmarkSPDR Sector Relative Strength vs Benchmark
A top-down dashboard that ranks the 11 S&P 500 SPDR sector ETFs by how strongly each is outperforming or underperforming a benchmark (SPY by default) across multiple timeframes โ plus a momentum read on which sectors are gaining or losing ground. Built for traders who want to find the strongest sectors first, then hunt individual stock setups inside them.
WHAT IS RELATIVE STRENGTH?
Relative strength (RS) here means a sector's return minus the benchmark's return over the same window. If XLK returns +8% over a month while SPY returns +5%, XLK's RS is +3% โ it beat the market by three points. A positive number means the sector is leading; negative means it's lagging. This is more useful than raw return for sector rotation, because it tells you where money is flowing relative to the broad index, not just whether things went up.
HOW TO READ THE TABLE
- 1D / 1W / 1M / 3M / 6M / 1Y โ relative strength over each trailing window. Green = beating the benchmark, red = lagging. Each column can be toggled on or off, and the cell colour deepens with the size of the move so you can read the whole grid at a glance.
- Score โ the average relative strength across every enabled timeframe, giving you a single ranking number. A sector that's green across all horizons is a more durable leader than one that's only popped on a single window.
- Mom (Momentum) โ whether relative strength is improving or deteriorating, by comparing a recent window against an older one. Positive (green) means strength is building; negative (red) means it's fading. This is often where rotation shows up before it's obvious in the raw RS columns.
MOMENTUM MODES
Momentum offers three calculations (Settings > Momentum Mode):
- Level diff โ the raw difference between the recent and older RS. Simplest, but biased: a longer window naturally accumulates a bigger number, so it can mislead.
- Pace (per-bar) โ rescales the older window to the recent window's length before comparing, removing that size bias.
- Pace (non-overlap) โ compares the most recent stretch against the separate, earlier stretch before it. This is a true acceleration measure and the best early signal of a sector quietly turning up or rolling over. It's the default.
Tip: a sector showing a shrinking negative in the raw columns isn't necessarily recovering โ shorter windows always show smaller cumulative numbers. The pace modes correct for this and reveal whether the sector is actually decelerating or still getting worse, faster.
KEY SETTINGS
- Benchmark โ what each sector is measured against. Swap SPY for QQQ, IWM, or any symbol.
- Measurement Timeframe โ the bar size lookbacks are counted in. Daily is recommended, where 5 bars โ 1 week, 21 โ 1 month, 63 โ 3 months, 126 โ 6 months, 252 โ 1 year.
- RS Columns Show โ Cumulative (total RS per window) or Per-Month Rate (RS divided by the months in each window) for an apples-to-apples monthly pace across columns.
- Gradient Scale โ Auto (each column scaled to its own strongest sector) or Manual (a fixed percentage maps to the deepest colour, so every column shares one scale).
- Plus full control of table position, size, font, colours and which columns are shown.
A SUGGESTED WORKFLOW
1. Sort by Score (or Momentum) descending.
2. Favour sectors that are both strong (high Score) AND strengthening (positive Momentum) โ that combination tends to flag leadership early rather than late.
3. Drill into the top one or two sectors and look for individual stock candidates there. Skip the laggards.
4. For shorter holds, lean on the 1W / 1M columns and momentum; for swing positions, weight the 3M / 6M horizons.
NOTES
- When a column is set to a higher timeframe than your chart, its value updates until that higher-timeframe bar closes. This is expected behaviour, not repainting of confirmed bars.
- In Per-Month Rate mode the 1D and 1W columns get extrapolated to a full month and will look large and noisy โ untick them and lean on the 1Mโ1Y columns in that mode.
- Sector weights are deliberately not used; index weighting tells you what moves SPY, not where the best opportunities are.
This script is an analysis and educational tool, not financial advice. Relative strength is backward-looking and can reverse quickly. Always do your own research and manage risk. Indicator

WT3D SpreadWT3D measures momentum on one asset. WT3D Spread measures relative momentum between two โ and that's a different signal entirely. Set any second symbol as your reference; the oscillator runs on the spread between the chart and that reference. NVDA/SPY shows when NVDA is outpacing the market. GDX/GLD shows when miners are leading gold. Altcoin/BTC shows when an alt is decoupling. Same WT3D engine, different question.
Watchlist workflow: leg 1 follows the chart, leg 2 stays pinned. Arrow through your list and watch each name update against your fixed reference in succession.
Built on jdehorty's open-source WaveTrend 3D โ full credit chain in the description (jdehorty, LazyBear, PineCoders, veryfid). Additions on top: two-symbol spread layer, anchor-lead tracking from the left visible bar, and an optional currency-debasement view using FRED T10YIFR with calendar-time inflation decay (so the math is right on any chart timeframe, not just daily).
Open-source under MPL 2.0. Feedback welcome.
โ TECHNICAL OVERVIEW
WT3D Spread takes a two-symbol spread โ either subtract or ratio โ and feeds it into the WaveTrend 3D (WT3D) oscillator engine. WT3D operates on tanh-bounded, quadratic-mean-normalised derivatives, which means the absolute scale of the input is irrelevant; only the rate-of-change shape matters. That property makes spreads a natural fit, because pair-trade dynamics, relative outperformance, and cross-asset divergence are all rate-of-change questions on relative price.
This script is not a re-skin of WT3D. The oscillator core is jdehorty's open-source WaveTrend 3D โ credited and linked in full at the bottom โ but the surrounding machinery is new and addresses problems the original wasn't built to solve.
โ WHAT THIS SCRIPT ADDS ON TOP OF WT3D
1. Two-symbol spread layer
A second symbol is selectable as an input. The script computes either close1 โ close2 (Subtract) or close1 / close2 (Ratio) on the chart's timeframe and routes the resulting series through WT3D's normalisation pipeline as the source. Leg 1 is always the chart symbol and is read directly from `close` rather than through `request.security()` โ one fewer security call and no exchange-prefix ambiguity.
Leg 2 is the reference you're measuring against. Common patterns: a broad-market benchmark (SPY, QQQ) for relative-strength against the market; a sector index ETF (XLK for tech, XLE for energy, XLF for financials, GDX for miners, etc.) for sector-relative strength; a single peer ticker for direct pair comparison; or a macro proxy (DXY, GLD, BTC) for currency or hard-asset framing. Because leg 1 follows the chart automatically, you can pin leg 2 to a fixed reference and arrow through a watchlist to rip through comparisons in sequence โ each chart change reruns the spread, the oscillator, and the info table against the new chart ticker.
Subtract is the right choice when both legs trade at similar absolute prices (FX crosses, sector ETFs in the same band). Ratio is the right choice when prices differ by an order of magnitude (a $30 stock vs a $500 index ETF, or an altcoin vs BTC), and is also the more honest framing for "outperformance" โ d(A/B)/dt carries a B term that doesn't cancel under quadratic-mean normalisation, so the signal genuinely responds to relative dynamics rather than to whichever leg happens to have the larger absolute moves.
2. Currency Mode โ calendar-time inflation drag
Optional. When enabled, the info table shows the spread's real (inflation-adjusted) value alongside the nominal value, plus a running purchasing-power drag percentage. Inflation can be pulled live from FRED's T10YIFR series (the bond market's 5-year-5-year forward inflation expectation, used in preference to backward-looking CPI because the indicator is forward-anchored) or set manually for non-USD currencies or scenario testing.
The decay is calendar-time-based, not bar-based: pp_value at any bar equals (1 โ inflation)^(years_since_anchor), with years_since_anchor computed from wall-clock timestamps. This matters because the conventional approach of compounding a daily decay factor per bar over-applies the drag on intraday timeframes (six 4H bars ร one daily decay each per session) and under-applies it across weekends (no chart bars form while inflation continues). The calendar-time formulation works identically on 1H, daily, or weekly charts and correctly accounts for weekend and holiday gaps.
This adjustment is display-only and does not affect oscillator signals.
3. Anchor Lead tracking
Optional. Locks an anchor bar at the left visible edge on first render and tracks each leg's percentage return from that anchor onward. The info table shows which leg is leading "since anchor," by how many percentage points, and the underlying returns of both legs for context. Useful for separating long-baseline winners from short-term noise โ the rolling lead/trend rows above answer "who's winning right now," and the anchor row answers "who's actually won over the period you've been watching."
4. Lead and trend analysis
Always on. Two rows in the info table summarise the current state of the spread: "Leading" identifies which leg is currently outperforming, measured against a 20-bar SMA of the spread and gated by a volatility-aware tie threshold so noise doesn't flip the label. "Trend" answers whether that lead is expanding, holding, or contracting versus five bars ago. Helps interpret the oscillator at a glance.
5. Info table
Theme-aware (auto-detects from the chart background, or force Dark/Light). Shows the two legs colour-tinted to match the bullish/bearish oscillator palette, the live spread value, the lead and trend rows, the optional anchor row, and the optional Currency Mode block.
โ READING THE OSCILLATOR
A bearish reading in this script is not a value judgment. It means Leg 2 is currently outperforming Leg 1 โ exactly the same information as "Leg 1 is currently underperforming Leg 2," but the colour convention narrates one of those two readings and silences the other. Whether a red oscillator is good news for you depends entirely on which leg you own, are considering rotating into, or are using as a benchmark.
The green/red colour scheme is inherited from absolute-asset analysis, where in jdehorty's original WT3D red = bad makes perfect sense because there is only one asset and one perspective. On a relative-strength indicator the same colours code "which side is currently winning the spread," not "good versus bad." This is the central conceptual difference between WT3D Spread and the original.
Two pieces of the UI exist to keep this explicit. The "Above 0 โฒ" and "Below 0 โผ" rows at the top of the info table show, in live tickers, exactly which symbol the convention maps to for your current pair โ so the framing stays visible on every glance and you never have to memorise which colour means what. The "Leading" row further down names the actual winner in plain language regardless of the colour shown. If you want to soften the framing visually, the Use Mirror toggle in Signal Settings renders the chart symmetrically, making both perspectives equally weighted.
โ WHEN TO USE WHICH SPREAD MODE
The default is Ratio because it works universally. Stock divided by SPY, altcoin divided by BTC, a sector ETF divided by a broad-market ETF โ all are dimensionless, bounded, and read as relative-strength in the conventional way. The oscillator responds to genuine relative dynamics regardless of how differently the two legs are priced.
Use Subtract instead when both legs trade at similar absolute levels and you specifically want the spread in raw price units. EUR/USD vs GBP/USD, two large-caps in the same band, two sector ETFs around the same price โ Subtract gives you a clean dollar (or basis-point) reading. With unequally-priced legs, Subtract is misleading: a 2% move on the cheaper leg is dwarfed by a 0.5% move on the more expensive leg, so the oscillator ends up tracking the dominant leg's volatility rather than the actual relative dynamic.
โ WHAT THIS ISN'T
This is a momentum and divergence tool for spreads, not a statistical-arbitrage toolkit. If your workflow requires cointegration testing, residual half-life estimation, rolling hedge-ratio computation, or stationarity diagnostics, this isn't that. Use it for timing relative-strength shifts and spotting divergences within the WT3D framework, applied to a custom spread you've chosen.
Currency Mode is a display feature for showing real-value erosion against an inflation series. It does not feed back into the oscillator, and it makes the most sense when at least one leg of the spread carries fiat-currency exposure (a USD-denominated commodity, a currency index, a real-asset-vs-fiat pair). On a pure equity-vs-equity spread the Real Value row is technically computable but conceptually thin.
Anchor Lead locks to the left visible bar on first render. If you scroll the chart and want to re-anchor, reload the indicator.
โ CREDITS
Built on jdehorty's open-source WaveTrend 3D (WT3D):
WT3D in turn credits and inherits from:
โข LazyBear โ original WaveTrend port to Pine (2014)
โข PineCoders โ colour-gradient framework (the getColorGradientFromSource / getColorGradientFromSteps helpers used throughout)
โข veryfid โ mirrored-signal cycle analysis and multi-lookback timeframe proxies (the Use Mirror toggle and the Fast/Normal/Slow oscillator structure)
The KernelFunctions library used for the optional kernel overlays is also jdehorty's, imported by reference.
Released under the Mozilla Public License 2.0 โ the TradingView default for open-source Pine publications.
โ DISCLAIMER
For analytical and educational use. Past behaviour of any spread, oscillator, or signal carries no guarantee about future behaviour. Do your own due diligence.
Indicator

Indicator

mbergeschI built this indicator to make my market read cleaner, faster, and more objective.
It brings together the main elements I use when analyzing momentum stocks:
โข moving averages to understand trend and pace;
โข benchmark comparison to see how the stock is performing against the market;
โข relative strength to identify true leadership;
โข tables with key information to support faster decision-making.
The goal is not to predict the future or automate the process. The goal is to reduce noise and make it easier to see when a stock is actually standing out.
For me, a good setup is not just price breaking out. It needs context: trend, relative strength, market comparison, structure, volume, and narrative.
This indicator was built around that idea: turning the chart into a cleaner and more practical decision-making dashboard for momentum trading.
Not financial advice. Just a tool for process, discipline, and better market reading.
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

Supply-Demand Imbalance Prevalence (SDI-P)Supply-Demand Imbalance Prevalence (SDI-P)
Overview
Most indicators focus on candle closes or volume in isolation. SDI-P (Supply-Demand Imbalance Prevalence) looks deeper into intra-bar price dynamics by analyzing buying and selling pressure. It quantifies which side is more successful at pushing the price away from the extremes, then calculates how consistently that dominance occurs over a historical window.
The Core Logic
For every bar, the indicator calculates the Supply Pressure (S) โthe distance from the High to the Closeโand the Demand Pressure (B) โthe distance from the Close to the Low. The indicator, then calculates the difference D between the two:
D = B - S
D > 0$: Buying pressure exceeded selling pressure.
D < 0$: Selling pressure exceeded buying pressure.
Based on the above differences, the indicator calculates the percentage of bars where buying pressure prevailed over the selling pressure over a lookback window of a user-specified size. A number of different weighting schemes can be applied during this computation as described below.ย
Key Features
Dual Weighting Modes: Choose Uniform for a raw win-rate or SDI Weighted (default) to give more "voting power" to bars with higher supply-demand imbalances.
Volume Weighting (Toggleable): Factor in capital commitment. A "win" on high volume is treated as more significant than a win on thin liquidity.
Quantile Normalization (The Purple Line): This shows you how the current buyer/seller prevalence compares to the last Q bars. A reading above 80 means the current intensity is in the top 20% of historical readings. This line is displayed only when there are at least Q bars of history available.
How to Read the Lines
Prevalence (Gray Line): The raw, bar-by-bar (weighted) percentage. High volatility.
SMA of Prevalence (Teal/Orange Line): The smoothed trend of the "win rate." This is your primary directional bias.
Smoothed Quantile (Purple Line): The "rarity" of the current movement. Use this to identify exhaustion points (extremes) or breakout confirmation.
Multi-Timeframe Strategy: Micro Signals vs. Macro Context
To get the most out of SDI-P, it should be viewed as a fractal tool. The "prevalence" of demand on a Weekly chart means something very different than on a daily chart.
1. Finer Timescales (Daily / Intraday): The Early Warning System
Use lower timeframes to spot **incipient trend shifts** before they are obvious in the price structure.
Furthermore, consider the behavior of SDI-P in conjunction with price trajectory for detecting. This is often effective for detecting divergences before price trajectory shifts. For example: If price is continuing trending higher, but SDI-P is declining and making lower highs, it is a strong indicator of buyers' exhaustion and a warning of an upcoming price decline.
ย
2. Coarser Timescales (Weekly / Monthly): The Strategic Anchor
Higher timeframes provide the structural context and serve to confirm durability of longer-term trends.
Confirming Durable Changes: For example, a "durable" trend change is confirmed when the Weekly SDI-P crosses the 50-median and holds. This filters out the "noise" of daily volatility and identifies shifts in institutional commitment.
Indicator

Indicator

Indicator

Indicator

Money Flow Dynamics Forecaster 3D [TechnicalZen]The art of swimming with the whales ๐ณ
What is this?
MFDF 3D provides a topological three-dimensional mapping of current market drivers and potential future trajectories.
is a visual analysis indicator that compresses several ideas into one spatial model: recent history, layer depth, directional amplitude, and short-term forward continuation.
Visually a three-dimensional momentum ocean where two independent systems โ Money Flow (MFI-driven) and Price Current (Hull-VWMA-driven) โ are rendered as layered terrains inside a bounded 3D box. Past history forms a waved carpet; the future is slope-extrapolated with exponential decay. When both systems agree, whales appear โ ๐ณ when the tide is rising, ๐ when it's falling.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The Metaphor โ Swimming With the Whales
Markets do not move on their own. They move because whales move them โ large institutional players whose positions are too big to enter or exit in a single candle. A pension fund building a position, a market maker hedging a block, a macro desk rotating out of a sector โ none of them can step in without leaving ripples.
When whales move, they leave two distinct footprints in the tape:
Money Flow โ volume concentrated at favorable prices. You don't see it as a price change at first; you see it as buying pressure accumulating . MFI, weighted by volume, detects this before it becomes price.
Price Current โ the volume-weighted tide. Once enough pressure accumulates, price itself has to drift in the direction the whale is pushing. Hull-VWMA slope tracks this.
Retail traders typically see only the second footprint โ price moving. By then the whale is already positioned. Money Flow shows you the first footprint before price has to respond, which is why MFI leads VWMA in this indicator.
The goal is not to catch the whale โ you can't. The goal is to see the ripples early enough to swim with the tide instead of against it. That's what "swimming with the whales" means: recognizing the institutional current and aligning with it, instead of fading it and getting dragged under.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The Fluid Dynamics
Every oscillator you've used is a single line. MFI is one line. RSI is one line. MACD is two lines and a histogram. They're flat because they pick one smoothing length and commit to it. You see where momentum is; you don't see its shape .
This indicator draws a family of 20 Hull-smoothed Money Flow variants simultaneously , each using a different HMA length (3, 4, 5, 6, 8, 10, 12, 14, 17, 20, 23, 26, 30, 34, 38, 42, 46, 50, 55, 60). Short HMAs foam at the surface, reacting instantly. Long HMAs move like glaciers. Stitched together across time and depth, they form a genuine fluid โ ripples, waves, surges, cascades, turning-tides โ not a line, a current.
The Hull-VWMA carpet is the same idea on a second dimension: 12 depth layers, each the 2-bar percentage slope of a Hull-smoothed Volume-Weighted Moving Average. This is your price current : where the volume-weighted tide is moving, independent of momentum.
Two independent Wireframes. Shared 3D box. When they agree, the whale arrives.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The 3D Box
Axes:
X โ time (past bars left of center, forecast right)
Y โ amplitude, signed ยฑ100 (positive = bullish, negative = bearish)
Z โ depth layer (each HMA length sits at a different depth)
Reference planes:
The translucent Y=0 plane is momentum neutrality โ where MFI = 50, VWMA slope = 0. Wireframes rise above it when bullish, sink below when bearish.
The X=0 plane marks the current candle. Everything to the left is memory; everything to the right is forecast.
Nine labeled points (AโI) on the Y=0 plane let you orient instantly.
Riders:
๐โโ โ rides the leading edge of the Money Flow terrain (HMA 20 middle layer)
โต โ rides the Price Current leading edge (Hull-VWMA slope in Hull-VWMA mode, signed-ADX HMA in ADX mode)
๐ณ โ breaches at the forecast end when both slopes are bullish
๐ โ dives at the forecast end when both slopes are bearish
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Color Aesthetics
The color choices are not random โ they carry semantic weight.
Money Flow terrain uses traffic-light logic:
Yellow at neutral (v โ 0)
Yellow โ Green as bullish momentum grows
Yellow โ Red as bearish momentum grows
Solid green above +50, solid red below โ50
Hull-VWMA carpet uses a water palette:
Light blue at neutrality โ still water
Light blue โ Cyan as money flows in
Light blue โ Maroon as money flows out
Transparency encodes magnitude: weak signals fade to nearly invisible, strong signals saturate. You read intensity at a glance, without staring at a number.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The Forecast
Past Wireframes tell you where you've been. The right half of the box projects where you're heading .
Each of the 20 + 12 = 32 HMA layers gets slope-extrapolated into the future:
future = current + slope ยท t ยท decay^t
slope is computed from the last N bars (default 4)
decay (default 0.92) is the honesty multiplier โ the further out you go, the less confident the projection, so the slope contribution fades
All forecast values clamp to ยฑ100 so they never escape the box
Rendered as translucent ghost terrain in the forecast half, colored with the same palette as the past but softer. You see the shape of projected momentum , not a point estimate.
When both the Money Flow middle-layer slope AND the Hull-VWMA middle-layer slope agree on direction, a whale surfaces at the forecast's far edge. This is confluence โ two independent systems pointing the same way. That's the signal worth swimming toward.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The Two Riders โ Surfer vs Sailboat
The two emojis on the present-boundary are not decoration. They represent two fundamentally different kinds of signal โ and understanding the difference is the whole game.
๐โโ The Surfer โ rides the Money Flow terrain. Surfers feel the impulse : every short wave, every gust of buying or selling pressure, every sudden shift in volume-weighted momentum. Surfers are fast, reactive, sensitive. What the surfer tells you: "the wind just picked up" โ or "it just died." This is the quick, leading signal.
โต The Sailboat โ rides the Price Current carpet. Sailboats don't react to gusts; they set their course by the trend โ the steady directional pressure of the volume-weighted tide pushing the boat one way or the other. Slow, deliberate, confirmed. What the sailboat tells you: "the current is actually carrying us this way now." This is the confirming, lagging signal.
These are two different kinds of information, not two views of the same thing:
The surfer sees the impulse before it matures into committed direction.
The sailboat confirms that the impulse has turned into real directional displacement.
When both agree โ surfer AND sailboat pointing the same way โ momentum builds faster than either signal could account for alone. That agreement is the proof that big money isn't just testing the waters; they're actually moving them. That's when a whale surfaces.
Surfer alone = wind, no commitment yet. An impulse without confirmation โ interesting but unconfirmed.
Sailboat alone = drift, no fresh push. A trend without new pressure โ may be tired.
Surfer + Sailboat = whale. Both fresh impulse and committed direction. Institutional participation confirmed.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Reading the Whales โ What They Mean For Decisions
A whale is not a liquidity-grab signal. It is a confluence signal: both independent systems have agreed on direction at the same time.
๐ณ โ Money Flow and Price Current are both rising. Buyers are accumulating AND getting filled at progressively higher prices. This is sustained pressure, not a stop-hunt or a single-bar spike.
๐ โ Both falling together. Selling pressure AND price giving ground in lockstep.
No whale โ the two systems disagree, or both are flat. Low-conviction zone.
Decision framework
๐ณ โ align long, don't fade. This is a conviction trade, not a reversal bet. Big money is actually pushing the tape, so size up with the tide instead of against it.
๐ โ exit longs or consider shorting. Don't buy the dip blindly โ the volume-weighted price is confirming the sellers, not fighting them.
No whale โ stand aside, or scale out of existing positions. Wait for confluence before committing fresh risk.
The mental model: "is big money actually moving the tape right now, or just shuffling?" Whale = pushing. No whale = shuffling.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Helpful Tip โ Money Flow Leads Price Current
How to Use It in Practice
The best way to use the indicator is to read it in layers. It is not a one-glance yes or no system. Its advantage comes from helping the user see whether a move has internal support, whether the structure is broadening or thinning, and whether the present slope still has credible continuation.
โข Start with orientation: Keep the default camera first. Learn where the zero plane is, where present time sits, and how positive and negative terrain occupies the box.
โข Read the momentum terrain first: Look for height, curvature, and continuity across layers. A broad aligned rise or fall is stronger than a single sharp spike on only the fast layers.
โข Check the oscillator carpet next: In Hull-VWMA mode, ask whether price-current slope supports momentum. In ADX mode, ask whether directional trend strength is building under the move.
โข Inspect the forecast half: Use the ghosted forward half as a continuation sketch, not as a promise. Flattening structure, decaying height, or diverging layers often matter more than the exact projected endpoint.
โข Use the whale as confirmation, not as the whole trade: The whale is most useful when it appears after the terrain has already become coherent, not when the picture is still fragmented and noisy.
Practical setup profiles
Fast tape
Suggested mode: MFI + Hull-VWMA
What to emphasize: Steeper terrain changes and quicker second-signal response.
Reading style: Use for intraday pulse and immediate continuation checks.
Cleaner swing structure
Suggested mode: RSI + Hull-VWMA
What to emphasize: Broader curvature and less volume sensitivity.
Reading style: Use when the user wants smoother rhythm and cleaner layer alignment.
Trend-strength confirmation
Suggested mode: MFI or RSI + ADX
What to emphasize: Whether directional pressure is actually strengthening underneath the move.
Reading style: Use when momentum looks attractive but may be structurally weak.
In practice, the Money Flow terrain (yellow/green/red) turns before the Hull-VWMA carpet (cyan/blue/maroon) . Volume-driven accumulation and distribution show up in MFI first โ price only has to move afterwards to reflect what already happened underneath.
What to watch for:
Momentum terrain flipping color while the carpet is still flat โ early warning . A whale sighting may be forming but is not yet confirmed.
Carpet starting to tilt the same way โ confirmation building . Slopes are aligning.
๐ณ / ๐ appears at the forecast edge โ confluence . Both systems point the same way. Act.
Read the terrain first. Wait for the carpet to catch up. Act on the whale.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Why This Is Different
Traditional oscillators answer: "what is momentum doing right now?"
This indicator answers:
What is money flow doing across every smoothing horizon at once? โ the 20-layer Wireframe shows the full shape of momentum, not a single slice
What is the volume-weighted price doing independently? โ the Hull-VWMA carpet is a second, independent witness
What do they predict together? โ slope-extrapolated forecasts fill the future half; confluence emojis mark conviction
How strong is the signal? โ opacity, saturation, and emoji presence are all quantitative encodings
No threshold to wait for. No line to cross. The ocean tells you where you are โ and the whales tell you where it's heading.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Best Used With Volume-Weighted Candles
Switch your TradingView chart's bar type (top-left dropdown) to Volume Candles .
Here's why this matters: the Hull-VWMA layer is already volume-weighted mathematically. When the chart's candles are ALSO volume-weighted, every visible pixel speaks the same language โ price, indicator terrain, and forecast are all reading the same volume-filtered reality.
Thin-volume wicks and gap-outs stop polluting the chart, so they stop polluting the forecast
๐ณ / ๐ confluence signals calibrate more cleanly because both the price action and the indicator see the same "what the volume actually cared about"
On plain OHLC candles the indicator still works โ but low-liquidity price spikes can disagree with the terrain. On VWC they move in lockstep.
If you want one setup to remember: Volume Candles + this indicator + default settings . Swim with the whales.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Best Paired With Smart Candle Structures
This indicator answers one question: "Is big money flowing, and in which direction?" It does not answer: "At what price level should I enter, exit, or place my stop?"
For that you need structural context โ the levels where the market has historically reacted. Smart Candle Structures (order blocks, fair value gaps, liquidity pools, break-of-structure / change-of-character zones) maps exactly those levels.
The two tools are complementary, not redundant:
Smart Candle Structures gives you WHERE โ the structural level worth reacting at.
MFD Forecaster gives you WHETHER AND WHEN โ is the flow actually supporting a reaction here, and is it committed enough to act on?
The ideal workflow:
Smart Candle Structures highlights a level worth watching (an unfilled order block, a liquidity sweep, a CHoCH break).
Price arrives at that level. You don't act yet.
Watch this indicator: is the surfer turning? Is the sailboat joining? Is a whale forming in the forecast half?
Structure + confluence = your trigger. Structure without confluence = low-conviction trap. Confluence without structure = direction without location.
Pair them and you have both legs of the trade: the right place, at the right moment, with conviction .
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
TradingView Chart Stretch โ Feature, Not Bug
Pine drawings live in chart coordinates (bar_index ร price), so they stretch with your chart. Most indicator authors fight this. We lean into it.
Horizontal zoom โ bar spacing changes โ the 3D box widens or tightens organically. Zoom in tight to inspect individual layer positions; zoom out to see broad wave cycles.
Pane height changes โ vertical proportions adjust. Invisible ยฑ50 anchor plots lock the Y range so the box never jumps when values move.
Emojis scale with the pane โ surfers and whales always read clearly at any zoom.
The indicator breathes with your viewport . That's what a real 3D visualization should do in a chart environment. It's responsive by design, not despite itself.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Settings Overview
Core
Time Span โ past bars rendered (default 15). Also the forecast horizon.
Momentum Source โ MFI (volume-weighted, default) or RSI (pure price)
Momentum Length โ 14 default
Rib Amplification โ stretches the ribs vertically to fill the box
Oscillator (Hull-VWMA)
VWMA Length โ default 30
HMA Length โ default 20
Hull-VWMA Scale โ amplifies the slope into ยฑ100
Bull/Bear/Neutral Tint colors
Camera
Yaw โ horizontal rotation (โ180 to +180)
Pitch โ vertical tilt (default 5ยฐ = eye-level)
Scale X / Y / Z โ box proportions
Forecast
Slope Lookback โ bars used to compute current slope (default 4)
Decay per Bar โ how slope contribution fades into the future (default 0.92)
Display
Box Wireframe, Y=0 plane, Axis markers, Mesh wireframe, Grids (all togglable)
Show Emoji Markers โ master toggle for all four emojis
Quick-Start Tips
Load with defaults.
Switch chart bar type to Volume Candles.
Watch for ๐ณ and ๐ โ they're rare, by design. They mean confluence.
Read the color gradient โ yellow is neutral, bright green / cyan is strong bull, red / maroon is strong bear.
Try yaw presets: 0 = front view, 45 = corner, 90 = side, 180 = back.
Lower time spans (10โ15) for intraday, higher (25โ40) for daily and weekly.
Money Flow leads Price Current. If the yellow/green/red terrain is already turning while the cyan/blue/maroon carpet is still flat, you're early โ the whale hasn't confirmed yet, but it's forming.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Disclaimer
This indicator is a visualization and analytical tool. It is not financial advice, a trade recommendation, or a signal service.
The whale emojis, forecast terrain, and slope extrapolations are mathematical projections from past data. They describe what has been and what linear decay would suggest next โ not what markets will actually do. Markets are non-linear and reflexive; forecasts can and will be wrong.
No indicator eliminates risk. Confluence signals reduce noise, they do not guarantee outcomes. Every trade can lose.
Past performance โ of this tool, or of any setup you build with it โ does not predict future results.
Use with your own risk management (position sizing, stop placement, portfolio exposure). The indicator has no awareness of your account, your instruments, or your time horizon.
Do your own research. Consider speaking to a licensed financial professional before making investment decisions, especially on leveraged or derivative instruments.
By using this indicator you accept that all trading decisions and their consequences are your own. The author assumes no liability for losses incurred through use of this tool.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The art of swimming with the whales.
โ TechnicalZen
Indicator
