Strategy

Smart Reversal Compass [forexobroker]Smart Reversal Compass combines four independent reversal signals -- RSI divergence, volume climax, reversal candle pattern (pin bar or engulfing), and support/resistance touch -- into a single cardinal compass reading. North means an up-reversal is forming; South means a down-reversal is forming. The compass only fires a signal when at least the configured minimum number of confluences (default 3 of 4) are lit simultaneously on the same bar.
This indicator is designed for traders who reject single-signal reversal trades because they understand that any one pattern is weak on its own, but the coincidence of four unrelated signals at the same price level is a genuinely rare and significant event. The dashboard shows every component's live state so you can see the compass "light up" in real time as conditions align.
🔶 CONCEPTS
Reversals almost never begin from a single condition. A pin bar in isolation is noise. Oversold RSI in isolation is noise. A volume spike in isolation is noise. But when a pin bar prints at a prior swing low, with volume spiking and RSI forming a higher low as price forms a lower low, the probability of a reversal rises dramatically. This indicator formalizes that truth: it asks four independent questions, tallies the answers, and only points a directional arrow when enough of them agree. The compass metaphor makes the reading intuitive -- you see where the market is pointing at a glance.
🔶 HOW IT WORKS
- Monitors RSI at each new pivot high and pivot low and compares to the previous pivot to detect divergence
- Checks if current bar volume exceeds the SMA by the climax multiplier
- Classifies the current bar as a pin bar (wick ratio >= threshold) or engulfing (opposite-side engulfing pattern)
- Tests if the bar's high or low is within ATR tolerance of the last pivot high or low (S/R touch)
- Tallies confluence counts; fires BUY if bull count >= minimum and exceeds bear count, SELL in the mirror case
🔶 HOW TO USE
1. Add the indicator -- the dashboard (top-right) shows every component state and live confluence tallies
2. Green BUY triangle with "↑ N" label fires when bullish confluences reach the minimum and exceed bearish; pink SELL triangle with "↓ S" fires for the mirror
3. The signal label shows which components were lit using ● (lit) and ○ (dark) markers for fast postmortem review
4. Increase Min Confluences to 4 for only textbook-perfect reversals; lower to 2 for more frequent but less confirmed signals
5. Adjust S/R Tolerance wider to allow approximate level touches; narrower for stricter S/R proximity
🔶 FEATURES
- Non-repainting signals (barstate.isconfirmed)
- Works on all timeframes and instruments
- 9 alert conditions with JSON webhook support
- Four-factor confluence tally with live per-component dashboard
- Cardinal compass reading (N/S) on both chart labels and dashboard header
🔶 SETTINGS GUIDE
- RSI Length -- Period for RSI divergence detection
- Divergence Lookback -- Maximum bars since last pivot to still qualify as divergence
- Pivot Length -- Lookback for swing high/low detection
- Volume SMA Length -- Baseline for volume climax detection
- Volume Climax Multiplier -- Volume must exceed this multiple of SMA
- Pin Bar Wick Ratio -- Rejection wick must be at least this fraction of total range
- S/R Tolerance (ATR) -- Distance in ATR units for S/R touch qualification
- Min Confluences -- Minimum lit confluences to trigger signal (2-4)
- Signal Cooldown Bars -- Minimum bars between consecutive signals
🔶 ALERTS
- SRC Buy Compass N -- Bullish compass signal (N) fired
- SRC Sell Compass S -- Bearish compass signal (S) fired
- SRC Any Signal -- Any directional compass signal
- SRC Bull Divergence -- Bullish RSI divergence detected
- SRC Bear Divergence -- Bearish RSI divergence detected
- SRC Volume Climax -- Volume climax detected on the bar
- SRC Reversal Candle -- Pin bar or engulfing candle detected
- SRC Perfect 4/4 -- All four confluences lit simultaneously
- SRC Webhook JSON -- Generic webhook payload for external automation
🔶 LIMITATIONS & DISCLAIMER
- This is a technical analysis tool, not financial advice. Always use proper risk management.
- Past confluence setups do not guarantee future price movements.
- Divergence detection depends on confirmed pivots and therefore lags by the pivot length.
- A compass reading of N or S indicates reversal potential based on confluence, not a probability guarantee of a successful trade.
Indicator

Adaptive RSI ZScoreAdaptive RSI ZScore
Adaptive RSI ZScore is a normalized momentum oscillator that measures the statistical deviation of the RSI from its own moving average, expressed as a Z-Score. Rather than reading momentum on an absolute scale like traditional RSI, it shows how unusual the current momentum state is relative to its own historical behavior — making it self-adjusting across different market conditions.
The result is an oscillator that turns blue when momentum is unusually strong and red when momentum is unusually weak — always relative to its own recent history, not fixed overbought/oversold levels.
How It Works
The RSI is calculated on a configurable source and length. A moving average of the RSI is then computed using a separately configurable MA length and type — allowing the smoothing behavior to be tuned independently from the RSI calculation itself. The Z-Score is derived from the difference between the RSI and its moving average, normalized by the standard deviation of the RSI.
When the Z-Score crosses above the Long Threshold a bullish state is confirmed. When it crosses below the Short Threshold a bearish state is confirmed. The state persists until the opposite condition is met.
Why Dynamic Thresholds Matter
Fixed thresholds work well in stable market conditions but struggle in highly volatile environments — a Z-Score move that would be significant in a calm market may be completely normal during high volatility. The Dynamic Threshold feature solves this by automatically adjusting the Long and Short thresholds based on the current standard deviation of the Z-Score itself. This means the indicator always requires an equally significant statistical deviation to trigger a signal, regardless of how volatile the market currently is.
This makes the indicator particularly well suited for volatile assets where market conditions shift frequently and fixed thresholds would quickly become unreliable. By default Dynamic Thresholds are enabled. They can be disabled in favor of fixed manual thresholds if preferred.
Settings
RSI Length — Lookback period for RSI calculation (default: 39)
MA Length — Lookback period for the moving average and standard deviation (default: 37)
Source — Price source for RSI calculation (default: open)
MA Type — Moving average type used to calculate the RSI mean: SMA, EMA, WMA, RMA, HMA, VWMA (default: SMA)
Long Threshold — Z-Score level for bullish confirmation when dynamic thresholds are disabled (default: 0.85)
Short Threshold — Z-Score level for bearish confirmation when dynamic thresholds are disabled (default: -1.71)
Use Dynamic Thresholds — Enables adaptive thresholds based on Z-Score standard deviation (default: true)
Long SD Multiplier — Controls the sensitivity of the dynamic long threshold (default: 1.1)
Short SD Multiplier — Controls the sensitivity of the dynamic short threshold (default: 1.3)
Use Bar Coloring — Colors bars based on the current state (default: true)
Color Background — Colors the chart background based on the current state (default: false)
Background Transparency — Controls the transparency of the background color (default: 85)
How to trade it
Long — when the oscillator turns blue the momentum state is statistically unusually strong. This is the signal to look for long entries or to hold existing long positions
Short / Cash — when the oscillator turns red the momentum state has weakened significantly. This is the signal to exit longs, move to cash, or look for short entries depending on your strategy
Avoid trading against the signal — if the oscillator is red do not look for longs, if it is blue do not look for shorts
Recommended Usage
Best used on the 1D timeframe — the statistical deviation signals are cleaner and more reliable on higher timeframes where noise is reduced
Designed to be used as a confirmation filter alongside a trend-following indicator — it identifies statistically significant momentum shifts that support or contradict the prevailing trend
Should not be used alone for trade entries — combine with a structural or trend filter for best results
Separating RSI Length and MA Length allows fine-tuning of signal sensitivity independently from smoothing behavior
Dynamic Thresholds are recommended for volatile markets and assets — disable them for more stable and predictable signals
Use the Long and Short SD Multipliers to control how extreme the momentum deviation must be before a signal fires — higher values mean fewer but higher quality signals
All signals are confirmed on bar close. Indicator

Indicator

Indicator

Asia & NY Session Range Table (heistrader)Asia & NY Session Range Table
(heistrader)
Overview
This powerful indicator automatically tracks and displays key price levels from Asia and New York trading sessions, along with daily data and RSI, in a clean, customizable table format. Perfect for traders who want to quickly reference multi-session ranges without manual calculations.
🎯 Key Features
📈 Session Tracking
Asia Session (HKT 06:00-10:00) – Track Asian session High, Low, and Range
NY Session (EST 09:30-16:00) – Track New York session High, Low, and Range
Full Daily Data – Complete day's High, Low, Range, and average RSI
📅 Historical Reference
Shows Today + 4 previous days (Prev, Prev 2, Prev 3, Prev 4)
Automatically shifts data each new trading day
No manual data entry required
🎨 Visual Customization
Color-coded section labels:
🔴 Asia Session – Red background
🔵 NY Session – Blue background
🟢 Daily Data – Green background
RSI color alerts:
🔴 Red text for overbought (≥70)
🟢 Green text for oversold (≤30)
Fully customizable table position, size, and colors
⚙️ Flexible Settings
Toggle individual rows on/off (Asia, NY, Daily, RSI)
Adjustable session times
Customizable RSI length and thresholds
Multiple table positions: Top/Bottom, Left/Right
Table sizes: Tiny, Small, Normal, Large
💡 Why Use This Indicator?
Traditional Method This Indicator
Manual session tracking Automatic session detection
Scrolling through charts Instant table display
Mental calculations Automatic range calculation
Multiple timeframes One consolidated view
🔧 How It Works
Automatically detects when Asia and NY sessions begin/end based on your timezone
Records session High/Low values in real-time
Calculates session ranges and daily RSI averages
Shifts data at each new trading day
Displays all information in a clean table on your chart
📋 Example Use Cases
🏢 Institutional Traders
Quickly identify overnight ranges and potential breakout levels
📉 Day Traders
Reference key support/resistance levels from major sessions
📊 Swing Traders
Track session volatility patterns across multiple days
🔬 Technical Analysts
Compare RSI conditions with price action across sessions
🚀 Quick Start
Add indicator to your chart
Verify timezone setting (default: Asia/Hong_Kong)
Adjust session times if needed
Position table where convenient (default: Top Right)
Toggle rows you want to display
Start trading with instant session data!
⚡ Pro Tips
Volume Confirmation: Use Asia/NY ranges alongside volume indicators
Breakout Strategy: Watch for price breaking beyond previous session ranges
RSI Divergence: Look for price/RSI divergences across daily and session data
Multiple Timeframe: Combine with higher timeframe analysis for confluence
📝 Input Parameters
Parameter Default Description
Timezone Asia/Hong_Kong Your chart's timezone
Asia Session 2200-0200 UTC (HKT 06:00-10:00)
NY Session 1330-2000 UTC (EST 09:30-16:00)
Table Position Top Right Where table appears
Table Size Small Font size
RSI Length 14 Period for RSI calculation
RSI Overbought 70 Threshold for red text
RSI Oversold 30 Threshold for green text
❓ Common Questions
Q: Does this work on any timeframe?
A: Yes! Works on all timeframes from 1min to monthly.
Q: Can I adjust session times?
A: Absolutely – both Asia and NY session times are fully customizable in UTC.
Q: Does it repaint?
A: No. Session values are only finalized after each session closes.
Q: Can I hide certain rows?
A: Yes – each row group has its own visibility toggle.
#heistrader Indicator

Timeframe Heikin Ashi RSI OscillatorT-HARSI • Timeframe Heikin Ashi RSI Oscillator (HTF Edition)
What it is
An RSI-based oscillator that renders RSI values as Heikin Ashi candles instead of a line, with a full higher-timeframe (HTF) signal engine layered on top. The core idea — originally from JayRogers — is that translating RSI into HA-style OHLC preserves the oscillating nature of RSI while smoothing out noise and making trend/exhaustion visually obvious. The gggoaaat mods add a multi-condition overbought/oversold signal system that runs entirely on a user-selectable HTF.
How it's built
Everything is zero-median: RSI values have 50 subtracted so the oscillator swings around 0 instead of 50, with configurable OB/OS and "extreme" OB/OS bands above and below. Three core pieces generate the visuals:
HARSI candles — RSI is computed separately on close, high, and low, then combined into synthetic OHLC using Heikin Ashi math. Open smoothing biases toward the prior open for cleaner trend reads.
RSI overlay line + histogram — a second RSI (independent length) plotted on top, optionally smoothed using a recursive HA-style average of current vs prior RSI.
Stochastic RSI ribbon — stoch computed from that RSI, with K/D smoothing and a vertical scaling knob so it doesn't distort the channel.
The HTF signal engine
All stateful logic lives inside f_signalLogic() and is pulled through a single request.security call, so every counter, ta.barssince , and crossover naturally operates on HTF bars. The engine produces two composite signals:
bullishWays (overbought / fade-long / 🔥OB label) fires when RSI has been above the extreme upper band for N consecutive HTF bars and a confirming reversal condition hits within a hold window — either a crossover-based resistance touch or a reversal-candle pattern where the HARSI close flips bearish near the extreme.
bearishWays (oversold / fade-short / 🥶OS label) is the symmetric opposite at the lower extreme.
A barsBetweenCalls cooldown prevents back-to-back repeats, and an htfBarEdge gate ( ta.change(time(tf)) ) ensures plotshapes, circle-dot plots, and alerts fire exactly once per HTF bar transition rather than repeating across every chart bar that falls inside the same HTF window.
What you see on the chart
HARSI candles in the pane, OB/OS channel bands with tinted fills, optional RSI line and stoch ribbon, background shading when RSI is sustained beyond an extreme, warning triangles when the sustained-extreme threshold first trips, and 🔥OB / 🥶OS labels with orange/teal price dots on the main chart when a full composite signal fires. Alerts fire on confirmed HTF bar close for both directions.
Intended use
A mean-reversion / exhaustion tool — the signals flag spots where an HTF RSI has pushed to an extreme, held there, and then showed a reversal confirmation. Best paired with trend context on the main chart; the HARSI pane tells you when the stretch is exhausted, not which direction the trend actually is . Indicator

SHK CCI RSI StochRSI Fisher Blended Oscillator divergence╔══════════════════════════════════════════════════════════════╗
SHK Blended Oscillator
CCI + RSI + Stoch RSI + Fisher
╚══════════════════════════════════════════════════════════════╝
A professional-grade momentum oscillator that blends four powerful
indicators — CCI, RSI, Stochastic RSI, and Fisher Transform — into
one single weighted signal line. No clutter, no multiple panes.
Just one clean oscillator with maximum confluence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔷 HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Each indicator is normalized to the CCI scale (±100/±200) and
blended using user-defined weights. The result is a single line
that represents the combined momentum of all four indicators.
A signal MA line is plotted over the blended line for crossover
confirmation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 4 BLENDED INDICATORS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
① CCI — Commodity Channel Index (core base, always active)
② RSI — Relative Strength Index (normalized to CCI scale)
③ Stoch RSI — Stochastic RSI K line (normalized to CCI scale)
④ Fisher Transform — Price distribution oscillator (normalized)
Each indicator can be enabled/disabled independently.
Each has its own blend weight (0.1 to 3.0) to control influence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 11 SIGNAL MA TYPES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Choose any of 11 moving average types for the signal line:
▸ SMA — Simple MA
Equal weight to all bars. Slowest. Best for clean baselines.
▸ EMA — Exponential MA
More weight on recent bars. Balanced lag. Best general purpose.
▸ WMA — Weighted MA
Linear weight to recent bars. Slightly faster than SMA.
▸ RMA — Wilder's Smoothed MA
Same smoothing method used inside RSI and ATR. Very smooth,
minimal noise. Best for swing trades.
▸ HMA — Hull MA
Fastest MA with least lag. Reactive to price changes.
Best for intraday Nifty/BankNifty options scalping.
▸ VWMA — Volume Weighted MA
Weights bars by volume. Gives more importance to high-volume
moves. Best for volume-heavy stocks like Reliance, TCS.
▸ SWMA — Symmetrically Weighted MA
Fixed 4-bar symmetric weighting. No length setting needed.
Smooth and balanced.
▸ DEMA — Double EMA
2×EMA − EMA(EMA). Reduces lag significantly compared to EMA.
Good for trend-following entries.
▸ TEMA — Triple EMA
3×E1 − 3×E2 + E3. Very fast, aggressive lag reduction.
Best for strong trending markets.
▸ LSMA — Least Squares MA (Linear Regression)
Fits a regression line to price. Excellent for identifying
clean trend direction. Best for daily/weekly charts.
▸ ALMA — Arnaud Legoux MA
Gaussian-weighted MA with customizable Offset and Sigma.
Low lag + low noise. Best for commodity options (Gold, Crude).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 SIGNAL SYSTEM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▲ Bull Signal — appears when:
• Blended line is above signal MA (strength confirmed)
• AND any one of these fires:
- Blended crosses above zero
- RSI exits oversold zone
- StochRSI K exits oversold zone
- Fisher exits oversold level
▼ Bear Signal — appears when:
• Blended line is below signal MA (strength confirmed)
• AND any one of these fires:
- Blended crosses below zero
- RSI exits overbought zone
- StochRSI K exits overbought zone
- Fisher exits overbought level
Only ONE ▲ and ONE ▼ symbol per bar — no clutter.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 DIVERGENCE DETECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✦ CCI Divergence — draws solid lines on the blended oscillator
• Bullish: price lower low + blended higher low → Lime line
• Bearish: price higher high + blended lower high → Red line
✦ RSI Divergence — draws dashed lines on RSI (normalized)
• Bullish divergence → Aqua dashed line
• Bearish divergence → Orange dashed line
✦ Labels auto-printed:
"CCI Bull Div" / "CCI Bear Div"
"RSI Bull Div" / "RSI Bear Div"
"CCI&RSI Bull Div" when both confirm together
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 VISUAL FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Strength Histogram — color-coded background bars behind the line
• Blended Line Color:
Bright Lime = above zero + above MA (strong bull)
Faded Lime = below zero but above MA (weak bull)
Bright Red = below zero + below MA (strong bear)
Faded Red = above zero but below MA (weak bear)
• Signal MA Color:
Green = Heikin Ashi bullish candle
Red = Heikin Ashi bearish candle
• Extreme Zone BG Highlight:
Green background = blended above +100 and above MA
Red background = blended below -100 and below MA
• Horizontal Levels: ±200 (OB/OS), ±100, Zero line
• Blue filled zone between +100 and -100 (normal range)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 30+ ALERT CONDITIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Blended Alerts:
• Strong Bullish / Strong Bearish
• Zero line cross up / down
• Above +100 / Below -100
• Hit Overbought / Oversold
• Exit Overbought / Exit Oversold
RSI Alerts:
• RSI above OB / below OS
• RSI cross above/below 50
StochRSI Alerts:
• K cross above oversold / below overbought
• K cross above / below D
Fisher Alerts:
• Fisher cross above/below oversold/overbought
• Fisher cross above/below zero
Combined:
• Any Bull Signal fired
• Any Bear Signal fired
Heikin Ashi:
• HA turned Bullish / Bearish
Divergence:
• CCI Bull/Bear Div
• RSI Bull/Bear Div
• CCI & RSI both confirmed
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS GROUPS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• CCI Settings — length, source, MA type, MA length, ALMA params
• Levels — OB/OS and ±100 levels fully adjustable
• RSI Settings — length, source, OB/OS, blend weight
• StochRSI Settings — RSI len, Stoch len, K/D smooth, OB/OS, weight
• Fisher Settings — length, OB/OS levels, blend weight
• Features — toggle divergences, histogram, signals, extremes
• Divergence — lookback bars and threshold sensitivity
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🇮🇳 BEST FOR INDIAN MARKETS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✔ Nifty 50 / BankNifty intraday options (HMA or TEMA)
✔ Sensex daily swing trades (ALMA or RMA)
✔ MCX Gold / Crude Oil options (ALMA or LSMA)
✔ NSE large-cap stocks (VWMA)
✔ All timeframes — 1m to Monthly
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT DISCLAIMER — READ BEFORE USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
FOR EDUCATIONAL PURPOSES ONLY
This indicator is not financial advice, investment advice, or
a recommendation to buy or sell any financial instrument.
All signals, alerts, and visual outputs are informational only.
NO GUARANTEE OF ACCURACY
Technical indicators are mathematical calculations based on
historical price data. They are lagging by nature and cannot
predict future price movements. Signals may be false, delayed,
or unreliable during high volatility, news events, or low
liquidity conditions.
RISK OF LOSS
Trading financial markets involves substantial risk. Options
and derivatives carry even higher risk due to leverage — you
can lose your entire invested capital. Never trade with money
you cannot afford to lose.
YOUR RESPONSIBILITY
• You are solely responsible for all your trading decisions.
• Never use this as your only reason to enter or exit a trade.
• Always apply stop-loss, proper position sizing, and risk
management on every single trade.
• Consult a SEBI-registered advisor before making significant
financial decisions.
• The author accepts NO liability for any losses incurred
from the use or misuse of this indicator.
INDIA MARKET NOTE
NSE, BSE, and MCX markets are subject to SEBI regulations,
RBI policy decisions, Budget announcements, and circuit
breakers — all of which can cause sudden moves that no
indicator can anticipate. Always check news calendars.
Past performance shown on historical charts does NOT
guarantee future results under any circumstances.
─────────────────────────────────────────
© SHK — All rights reserved.
Unauthorized copying or resale of this script is strictly
prohibited under PulseWire House Rules.
───────────────────────────────────────── Indicator

Williams %R - %R | TR🎯 Overview
Williams %R – %R | TR is a modernised version of Larry Williams’ classic momentum oscillator. It measures the closing price relative to the highest high over a lookback period, producing values from -100 (oversold) to 0 (overbought). This implementation adds dynamic entry levels (either fixed 50 or a moving average of %R), gradient candle coloring, momentum‑based fill transparency, and nine color themes – turning a traditional indicator into a highly visual, adaptable trading tool.
Key Features
📐 Core Oscillator
Williams %R – Standard formula: (HighestHigh - Close) / (HighestHigh - LowestLow) * -100.
Values typically range from -100 (oversold) to 0 (overbought).
Reversed scale – Lower values indicate selling pressure, higher values indicate buying pressure.
🎯 Flexible Entry/Exit Signal
Option 1: Fixed 50 Level – Classic approach: cross above -50 = bullish, below -50 = bearish.
Option 2: %R Moving Average – Uses a smoothed line (many MA types available) as the dynamic threshold. Crosses of %R above/below its own MA generate signals.
🎨 Advanced Visualization
9 Color Themes – Same palette as TQI and SVZO (Classic, Modern, Heat, Robust, Accented, Monochrome, Moderate, Aqua, Cosmic).
Dynamic Fill Zones – Three fills: overbought zone (above entry), oversold zone (below entry), and a trend‑direction fill. Transparency changes with %R momentum.
Gradient Candle Coloring – Candles smoothly transition between bearish and bullish colors based on normalised %R.
Signal Markers – Triangles below/above bars on entry crosses.
Trend Table – Shows “Bullish” or “Bearish” in large coloured text.
Floating Value Label – Displays current %R value near the oscillator line.
📈 Signal System
Zero‑line cross? – No, Williams %R normally uses -50 or a dynamic MA as the threshold.
Entry signals – Bullish cross above the threshold, bearish cross below.
Persistent trend state – Remembers last direction until a crossover occurs.
Real‑time updates – Calculated on every bar.
How It Works
Calculation Logic
Williams %R – ta.wpr(Length_WillR) (PulseWire’s built‑in function).
%R = (highest_high - close) / (highest_high - lowest_low) * -100
Entry Threshold – User chooses:
'50' → fixed -50 level
'%R MA' → moving average of %R (configurable length and type)
Moving Average Engine – Supports 12 types: EMA, SMA, RMA, WMA, VWMA, HMA, DEMA, TEMA, TRIMA, FRAMA, SWMA, T3 (with T‑Factor).
Normalised %R – Rescaled 0‑1 range using 70‑period min/max. Used for gradient colors.
Momentum – 5‑bar absolute change of %R, normalised against 50‑period max.
Fill transparency = 35 - (norm_momentum * 25) clamped 0‑100.
→ Higher momentum = less transparency (more visible fill).
Trend State Persistence
Trend_WillR = 1 (bullish) when %R > threshold, -1 (bearish) when %R < threshold.
Holds until a crossover happens – prevents flickering near the threshold.
Display Options
Visual Components
%R Line – Coloured by trend state (bullish/bearish) with 50% opacity.
Entry Line – Yellow horizontal line (fixed -50 or dynamic MA).
Fills:
Above entry → overbought zone (bullish fill with momentum‑based transparency).
Below entry → oversold zone (bearish fill with transparency).
Third fill → only in the current trend direction, adding emphasis.
Gradient Candles – Price bars change colour smoothly between down‑color and up‑color based on normalised %R.
Entry Signals – Triangles below (long) or above (short) bars on crossover.
Background – Very light tint matching the trend direction.
Value Label – Floating label near the %R line showing current value.
Trend Table – Middle‑right corner displays “Bullish” or “Bearish”.
Trading Signals
Entry Signals
LONG – %R crosses above the entry threshold (fixed -50 or %R MA).
→ Triangle below the price bar.
→ Candles turn bullish (gradient).
→ Background tints bullish.
SHORT – %R crosses below the entry threshold.
→ Triangle above the bar.
→ Candles turn bearish.
→ Background tints bearish.
Trend Confirmation
Strong Bullish – %R well above entry, rising, with low fill transparency (high momentum).
Strong Bearish – %R well below entry, falling.
Overbought zone – > -20 (approx). May precede a reversal; use with caution.
Oversold zone – < -80 (approx). May precede a reversal.
Divergence – Price makes a lower low but %R makes a higher low (bullish divergence) or vice versa.
Customization Settings
Technical Parameters
Length %R – Lookback period for Williams %R (default 14).
Entry/Exit Signal – Choose '50' (fixed -50) or '%R MA' (dynamic MA).
Length MA – Period for %R moving average (default 365 – very long, effectively a trend filter).
Moving Average – 12 types (EMA, SMA, RMA, WMA, VWMA, HMA, DEMA, TEMA, TRIMA, FRAMA, SWMA, T3).
T3 Factor – Only for T3 moving average (0.7 default).
Visual Parameters
Color Choice – 9 themes (all fills, candles, background, signals follow the theme).
Alert System
LONG – Triggered on bullish cross (above entry).
SHORT – Triggered on bearish cross (below entry).
Alerts include ticker symbol. Indicator

RSI Failure Swing Detector [AGPro Series]RSI Failure Swing Detector
🔹 **Overview**
RSI Failure Swing Detector is a focused RSI reversal-structure tool built around one classic momentum concept: the confirmed RSI failure swing.
Instead of treating every oversold or overbought RSI reading as a reversal condition, this script waits for the full internal RSI sequence:
1. RSI reaches an extreme zone.
2. RSI recovers or reacts away from that extreme.
3. RSI pulls back while respecting the original RSI extreme.
4. RSI breaks the internal swing level that confirms the failure swing.
Only after that sequence is complete does the script mark a confirmed trigger on the chart.
The purpose is to make RSI failure swings easier to read in real time without turning the tool into a generic divergence scanner, RSI pressure map, or broad reversal dashboard.
🔹 **What Makes It Different**
Most RSI tools focus on one of three common ideas:
- RSI overbought and oversold levels.
- RSI divergence against price.
- RSI momentum or pressure state.
This script is intentionally different.
RSI Failure Swing Detector does not look for RSI divergence. It does not compare RSI swings against price swings to create hidden or regular divergence logic. It also does not measure RSI pressure, trend pressure, or directional dominance.
Its job is narrower and cleaner:
**It detects when RSI builds a classic failure swing sequence and then confirms that sequence through an internal RSI swing break.**
That keeps the tool separated from existing AGPro momentum scripts such as RSI Pressure Map, Stochastic Exhaustion Map, Multi-Oscillator Consensus Engine, Divergence Stack Scanner, and broader reversal-quality tools. The analytical lane here is not "is pressure building?" or "is price diverging?" The lane is:
**Has RSI completed a confirmed failure swing sequence?**
🔹 **Core Logic**
The bullish model starts when RSI moves into the oversold zone. The script then tracks the first recovery leg, waits for a pullback that stays meaningfully above the original RSI low, and confirms the pattern only when RSI breaks the recovery high.
The bearish model works in the opposite direction. It starts when RSI moves into the overbought zone, tracks the first reaction leg, waits for a bounce that stays meaningfully below the original RSI high, and confirms the pattern only when RSI breaks the reaction low.
This creates a clean four-part sequence:
- Extreme
- Recovery or reaction
- Controlled pullback
- Confirmed internal break
The confirmation step is important. The script is designed to avoid printing premature reversal labels while RSI is still only sitting at an extreme.
🔹 **Trigger Pockets**
When a failure swing is confirmed, the script can project a short chart-level trigger pocket from the confirmation bar.
These pockets are not generic support or resistance zones. They are failure-swing context zones designed to help the user visually track whether price respects or loses the area around a confirmed momentum trigger.
The pocket is time-limited, ATR-scaled, and capped by a maximum visible pocket setting so the chart remains clean.
🔹 **Panel**
The AGPro panel summarizes the active environment:
- RSI State
- Swing Stage
- Confirmation
- Sequence Score
- Trigger Pocket status
The first panel row follows the AGPro standard: one merged blue header row containing only the script title. Panel location, panel theme, label size, and panel font size are all configurable from settings.
🔹 **Visual Design**
The chart layer is intentionally restrained.
Stage labels explain where the RSI sequence is developing, while confirmed trigger labels appear only after the failure swing is complete. The default stage-label mode highlights only the final setup stage before confirmation, keeping lower-timeframe charts cleaner while still preserving the sequence logic.
Label cooldowns, maximum visible label limits, ATR-based offsets, compact trigger labels, and capped trigger pockets are included to keep the chart readable.
The default visual style is designed for a premium public chart: informative, but not crowded.
🔹 **Inputs**
Key settings include:
- RSI Length
- RSI Source
- Oversold Level
- Overbought Level
- Minimum RSI Separation
- Minimum RSI Pullback
- Maximum Sequence Bars
- Confirm On Bar Close
- Stage Label Detail
- Trigger Pocket Depth
- Trigger Pocket Projection Bars
- Panel Signal Memory Bars
- Label and panel size controls
- Panel location and theme controls
These settings allow the user to tune the detector for different symbols and timeframes while preserving the core failure swing structure.
🔹 **Best Use Case**
RSI Failure Swing Detector is best used when the trader wants a clean visual framework for RSI reversal structure without adding divergence complexity or broad pressure-state interpretation.
It can be useful for reviewing moments when RSI fails to retest its prior extreme and then confirms a momentum turn through its own internal swing level.
It is designed to organize one specific RSI pattern with cleaner confirmation, better visual hierarchy, and a focused chart workflow.
Indicator

Hidden Divergence Continuation Zones [AGPro Series]Hidden Divergence Continuation Zones
🟦 Overview
Hidden Divergence Continuation Zones is a focused trend-continuation indicator built around one specific market behavior: hidden divergence that forms during a structured pullback inside an existing directional move.
Most divergence tools are built to search for reversals. They scan regular bullish and bearish divergence, print many labels, and often mix every oscillator event into the same visual map. This script intentionally takes a narrower lane. It does not try to be a general divergence scanner. It looks only for hidden bullish and hidden bearish divergence, because hidden divergence is most useful when the question is not "is the trend ending?" but "is the trend trying to continue after a controlled pullback?"
The result is a cleaner continuation framework:
- confirmed price swing structure
- RSI momentum displacement
- EMA and DMI trend filtering
- ATR-normalized quality scoring
- lower-intensity HDC Watch labels
- forward continuation pockets
- swing connectors
- trigger labels
- compact AGPro dashboard
The purpose is to make hidden continuation structure visible without filling the chart with every possible divergence mark.
🔹 What Makes This Different
This script is separated from both common public divergence tools and our existing AGPro divergence family by design.
It is not a multi-oscillator regular divergence stack. It does not score RSI, MACD, CCI, MFI, and OBV together. That lane is already covered by broader stack-style divergence tools.
It is not an OBV pressure divergence map. It does not study price-versus-participation disagreement through cumulative volume pressure.
It is not a trend dashboard with divergence added as a side feature.
Hidden Divergence Continuation Zones focuses on a single continuation workflow:
1. Confirm that the market has an active directional side.
2. Wait for a valid pullback swing.
3. Compare the new swing against the previous swing.
4. Accept only hidden divergence that supports continuation.
5. Draw a forward pocket from the continuation pivot.
6. Track whether price later triggers from that structure.
That narrow scope is the edge. The script is designed to avoid visual noise and avoid conceptual overlap.
🧭 Core Logic
Bullish hidden continuation:
- the trend filter must support a bullish continuation environment
- price must form a confirmed higher low
- RSI must form a lower low against that higher price low
- the two compared swings must be separated by enough bars
- the structure must be large enough relative to ATR
- the RSI displacement must clear the minimum threshold
- the final continuation score must pass the display threshold
Bearish hidden continuation:
- the trend filter must support a bearish continuation environment
- price must form a confirmed lower high
- RSI must form a higher high against that lower price high
- the two compared swings must be separated by enough bars
- the structure must be large enough relative to ATR
- the RSI displacement must clear the minimum threshold
- the final continuation score must pass the display threshold
The script uses confirmed pivots, so events appear only after the pivot is structurally available. This keeps the logic stable and prevents premature labels from appearing on incomplete swings.
📐 Continuation Score
Each qualified setup is graded with a 0 to 100 continuation score.
The score combines:
- ADX strength above the selected minimum
- ATR-normalized distance between the compared swings
- RSI displacement between the two pivot points
- whether the pullback sits in a continuation-relevant EMA area
- whether the fast and slow EMA structure remains aligned
The default thresholds are designed to keep the chart selective. Normal qualified events are shown as HDC+ or HDC-. Stronger events are shown as PRIME HDC+ or PRIME HDC-.
Lower-intensity confirmed hidden divergence candidates can also be displayed as HDC WATCH labels. These marks are intentionally softer: they add visual context and keep the chart informative, but they do not create continuation pockets or trigger tracking unless the full continuation threshold is reached.
🧩 Continuation Pockets
When a hidden continuation event qualifies, the script projects a forward pocket from the pivot area.
These pockets are not generic support and resistance boxes. They are continuation context zones tied directly to the hidden divergence pivot. Their job is to preserve the important pullback area on the chart after the label appears, so the user can see where the continuation structure was created.
Pocket height is ATR-based, which helps the zones adapt across symbols and timeframes. The number of visible pockets is capped, so older structures are automatically removed and the chart remains clean.
🎯 Trigger Labels
After a hidden divergence pocket is created, the script monitors a limited trigger window.
For bullish continuation, a trigger is printed only when price confirms above the pivot candle reference with the selected ATR buffer.
For bearish continuation, a trigger is printed only when price confirms below the pivot candle reference with the selected ATR buffer.
This keeps the workflow organized:
- hidden divergence creates the continuation pocket
- the pocket defines the structure
- the trigger label marks follow-through from that structure
⚙️ Dashboard
The AGPro panel is built for quick reading:
- Oscillator: current RSI value
- Trend Side: bullish continuation, bearish continuation, or neutral
- Swing Quality: none, building, qualified, or prime
- Continuation Score: latest event score
- Active Pocket: current pocket state and freshness
The first panel row follows the AGPro standard: one merged blue header row with only the script title. Panel location, panel theme, label font size, and panel font size are all adjustable from settings.
🧪 Practical Reading
A clean bullish continuation sequence usually looks like this:
1. Trend Side shows Bull Continuation.
2. Price pulls back and forms a confirmed higher low.
3. RSI makes a lower low at that swing.
4. A continuation pocket appears below/around the pullback area.
5. A trigger label appears only if price follows through during the trigger window.
A clean bearish continuation sequence usually looks like this:
1. Trend Side shows Bear Continuation.
2. Price pulls back and forms a confirmed lower high.
3. RSI makes a higher high at that swing.
4. A continuation pocket appears above/around the pullback area.
5. A trigger label appears only if price follows through during the trigger window.
The best use case is structured trend continuation study, especially when a trader wants to separate controlled pullbacks from random oscillator divergence noise.
🔍 Key Inputs
Trend Continuation Filter:
- Fast EMA Length
- Slow EMA Length
- EMA Slope Lookback
- DMI Length
- ADX Smoothing
- Minimum ADX
Hidden Divergence Engine:
- RSI Length
- Confirmed Pivot Length
- Minimum Pivot Separation
- Minimum Price Swing (ATR)
- Minimum RSI Displacement
- Minimum Continuation Score
- Prime Score Threshold
- Show HDC Watch Labels
- Watch Label Score
Continuation Pockets:
- Show Continuation Pockets
- Pocket Extension Bars
- Pocket Height (ATR)
- Maximum Visible Pockets
- Trigger Window Bars
- Trigger Buffer (ATR)
Visual Layout:
- EMA Backbone
- Swing Connectors
- Event Labels
- Same-Side Label Cooldown
- Label Offset
- Label Font Size
- Maximum Visible Labels
- Maximum Visible Connectors
Panel:
- Show Panel
- Panel Location
- Panel Theme
- Panel Font Size
🟣 Design Notes
The visual design is intentionally restrained:
- no regular divergence clutter
- no multi-oscillator table overload
- no unnecessary signal spam
- no permanent background wash
- no oversized dashboard
- no generic zone engine detached from the core concept
The chart should stay readable while still feeling active and premium. Swing connectors explain where the hidden divergence came from. Pockets preserve the continuation area. Labels are offset from candles and controlled by cooldown settings.
✨ Summary
Hidden Divergence Continuation Zones is built for traders who want a cleaner way to study trend continuation through hidden divergence.
Instead of asking whether every oscillator disagreement matters, this tool asks a more specific question:
Is there a confirmed hidden divergence pullback inside a real trend, and did that structure create a continuation pocket worth tracking?
That focused question is what keeps the script distinct, lightweight, and visually clean.
Indicator

ALIZET - Premarket + VWAP + 30m ORB Scalper v6ALIZET - Premarket + VWAP + 30m ORB Scalper v6
A comprehensive intraday scalping indicator designed for SPY, QQQ, and other liquid equities. Combines three proven frameworks — Premarket levels, VWAP, and Opening Range Breakout — with overbought mean-reversion signals and automatic ATR-based exit targets.
Features:
🔵 VWAP — Dynamic intraday anchor plotted in orange. Used as an optional filter to confirm breakout direction.
🟡 Premarket High / Low — Automatically tracks the high and low from 4:00–9:30 AM. Key levels that often act as support and resistance during the regular session.
🟦 Opening Range Breakout (ORB) — Builds the opening range over a configurable window (default 30 min). Highlights the ORB formation period in blue. Plots ORB High (aqua) and ORB Low (fuchsia) for the remainder of the session.
🟢🔴 ORB Breakout Signals — Fires a LONG signal when price crosses above the ORB High, and a SHORT signal when price crosses below the ORB Low. Optional filters: VWAP direction and volume confirmation.
🟠 Overbought Sell Signals — Independent mean-reversion sell alerts triggered when RSI crosses above 70 (adjustable). Designed to catch overextended moves before a pullback.
📐 ATR Exit Levels — Every signal automatically plots three dashed exit targets at 1×, 1.5×, and 2× ATR from the entry price, labeled with exact prices. ORB signals use green/red; overbought signals use orange.
Settings:
Toggle each feature on/off independently
Configurable ORB window (5–60 min)
ATR length (default 14)
RSI length and overbought threshold
Volume MA filter with multiplier
Custom premarket and RTH session times
Best used on: 1m, 2m, 5m timeframes during regular US market hours. Indicator

ORB Trading DashboardORB Trading Dashboard is a multi-factor intraday decision-support indicator built for fast market context.
It combines opening range behavior, trend structure, momentum, volume, and key levels into a single table with a weighted directional bias.
Features
Multi-timeframe ORB Status (5m / 15m / 30m)
Location-based ORB logic after each window completes
Bullish above ORB high
Bearish below ORB low
Inside = price within range
Time gates:
5m after 9:35 ET
15m after 9:45 ET
30m after 10:00 ET
Weighted Bias Model (max +/-21)
Converts multiple market factors into a single directional score
Bias states:
Strong Bull
Bullish
Lean Bull
Neutral
Lean Bear
Bearish
Strong Bear
EMA Trend Structure
Price vs Daily EMA 8 / 21 / 50 / 100 / 200
EMA stacking used to grade trend quality
VWAP Context with Volatility Bands
Session VWAP with SD1 / SD2 levels
Bias adjusts based on price relative to VWAP and SD1
Key Level Context
Yesterday high/low behavior
Premarket high/low behavior
Session position (top / mid / bottom of intraday range)
Higher Timeframe Directional Filter
Current week open status
Current month open status
Momentum & Participation
DMI / ADX direction and trend strength
Relative Volume (RVOL) confirmation or low-conviction penalty
Extension Awareness
ATR multiples from Daily EMA50 to identify trend health vs overextension
Practical Dashboard Metrics
LoD distance %
ATR / DTR %
RVOL
Weekly / monthly status
Optional EMA and key level plots
Settings
Display Options
Table position
Text size
Toggle rows:
ORB 5-Min
ORB 30-Min
Session High/Low
Toggle chart plots:
Daily EMA 8 / 21 / 50 / 100 / 200
Yesterday High/Low
Premarket High/Low
Alert Options
Enable 5-Min ORB alerts
Enable 15-Min ORB alerts
Enable 30-Min ORB alerts
Indicator Inputs
DMI/ADX length
ADX smoothing
How to Use
Use the bias score as a structured context layer, not as a standalone signal.
Combine it with your own entries, risk management, and session awareness.
Optional: How to Read the Table
Bias: composite directional score
ORB 5/15/30: opening range state (Bullish / Bearish / Inside)
VWAP / SD1 / SD2: mean and volatility context
ADX / DI: trend strength and direction
Key levels: yesterday, premarket, session positioning
Metrics: LoD %, ATR/DTR, ATR vs EMA50, RVOL
Disclaimer
This indicator is for educational and informational purposes only.
Always perform your own analysis and manage risk appropriately.
Indicator

RalisLine SpreadRalisLine Spread is a companion histogram for the RalisLine overlay. It measures the percentage gap between the fastest and slowest smoothed moving averages in a 4-SMMA ribbon, rendering that spread as a color-coded histogram below the chart. Gold bars above zero mean the ribbon is fanned out bullish — all four SMAs aligned with the fast line leading upward. Blue bars below zero mean bearish alignment. Gray bars appear when the ribbon is tangled — the inner lines disagree with the outer lines, indicating a regime transition is in progress.
The indicator uses a 3-state regime classification that goes beyond simple spread direction. It's not enough for the fast SMMA to be above the slow one — the two inner lines must also confirm the alignment. This "inconclusive" detection prevents false regime calls during crossover periods when the ribbon is tangled and direction is genuinely uncertain.
A 9-period EMA signal line (magenta) overlays the histogram. When the spread crosses above its signal line, a green triangle marks the crossover — momentum is building and the regime is strengthening. When it crosses below, a red triangle marks the fading — momentum is weakening. These signal line crossovers typically lead regime flips by several bars, giving you early warning before the RalisLine overlay changes color. A MACD-style fill between the spread and signal line shades green when spread is above signal and red when below, making the momentum relationship visible at a glance.
Bar brightness indicates acceleration. When the spread is growing in its current direction — bullish bars getting taller or bearish bars getting deeper — bars render at full brightness. When the spread is shrinking toward zero (regime fading), bars dim to 50% opacity. This means a bright gold bar is a strengthening bull trend, while a dim gold bar is a bull trend losing steam. The dimming often appears several bars before a regime flip, adding another layer of early warning beyond the signal line crossovers.
An optional percentile reference line (off by default, toggle in settings) ranks the current absolute spread against a 120-bar rolling history using ta.percentrank(). This solves the cross-asset comparison problem — a 2% spread on gold means something very different than 2% on a volatile altcoin. The percentile line turns orange above the 80th percentile (spread is extreme for this asset), blue below the 20th (spread is compressed, transition likely), and white in between. The percentile value is always shown in the info table even when the line is hidden.
The info table displays five fields: Regime (BULLISH/BEARISH/NEUTRAL with color-coded background), Spread (current percentage), Momentum (GROWING or FADING based on acceleration), Percentile (rank against rolling history), and Signal (ABOVE or BELOW the signal line). The table can be toggled off in settings for a cleaner pane.
Six alert conditions are available: Signal Cross Up (spread crossed above signal EMA), Signal Cross Down (spread crossed below), Zero Cross Up (spread turned positive — fast SMMA now leading slow), Zero Cross Down (spread turned negative), Regime to Bullish (ribbon aligned bullish from inconclusive or bearish), and Regime to Bearish (ribbon aligned bearish).
Default SMMA lengths are 8/16/24/32 on HL2, matching the RalisLine overlay for synchronized regime reads. For best results, use both indicators on the same chart — RalisLine shows the structural ribbon directly on price while RalisLine Spread shows the momentum and conviction beneath it. The signal line crossovers on the Spread often fire 3–5 bars before the RalisLine flip dots appear on the overlay, giving you a head start on regime transitions.
Works on any asset and any timeframe. No repainting. Indicator

Market State Distribution Engine v2 [Breadth Model]Market State Distribution
Market State Distribution is a breadth-based market internals indicator designed to visualize the balance between demand and supply using underlying participation, structural strength, and leadership behavior.
Rather than relying on price alone, the model aggregates multiple internal components into a normalized framework to help evaluate whether conditions are improving, weakening, or transitioning.
This script is intended for educational and informational purposes only. It does not provide financial advice or standalone trading signals.
________________________________________
Overview
Market State Distribution is built to help evaluate underlying market conditions using internal breadth data.
Instead of focusing on a single metric, the model combines multiple internal inputs into a unified structure. This allows users to assess whether internal conditions appear:
• Supportive
• Weakening
• Mixed or transitional
The goal is to provide a simplified view of broader market conditions.
________________________________________
Quick Read Guide
• Demand > Supply → Internal conditions are more supportive
• Supply > Demand → Internal conditions are weaker
• Crossovers → Potential internal shifts in control
• Expansion state → Early-stage improvement environment
• Trend state → Sustained participation and stronger conditions
• Demand ≈ Supply → Mixed / lower conviction environment
This indicator is designed as a context tool, not a signal generator.
________________________________________
Data Inputs
The model uses breadth-style market internals as its primary inputs. By default, these include:
• Percent of symbols above intermediate-term moving average (INDEX:S5FI)
• Percent of symbols above longer-term moving average (INDEX:S5TH)
• New highs minus new lows (INDEX:NYHL)
These inputs are used to approximate:
• Participation (breadth of strength)
• Structural strength (trend stability)
• Leadership behavior (expansion vs deterioration)
Some data inputs may require specific Trading View subscriptions.
Users may substitute equivalent symbols depending on availability.
________________________________________
Core Model Components
Participation Strength
Measures how broadly strength is distributed across the market using intermediate-term breadth data.
Higher values suggest broader participation; lower values suggest narrowing conditions.
Structural Strength
Represents longer-term trend alignment using broader participation above long-term averages.
Helps assess whether underlying structure is supportive or deteriorating.
Leadership Behavior
Uses new highs vs new lows data to evaluate whether leadership is expanding or weakening.
Provides confirmation beyond participation metrics alone.
________________________________________
State Modeling
The indicator transforms the underlying inputs into normalized components and combines them into a synthetic state model.
The model estimates the relative distribution of:
• Trend
• Expansion
• Decay
• Transition
These are descriptive categories designed to reflect current internal conditions, not predict future price movement.
________________________________________
Demand vs Supply Framework
The core output of the indicator is the relationship between Demand and Supply:
• Demand = Trend + Expansion components
• Supply = Decay component
Interpretation (contextual, not prescriptive):
• Demand > Supply → Internal conditions may be more supportive
• Supply > Demand → Internal conditions may be weaker
• Demand ≈ Supply → Conditions may be mixed or transitional (lower conviction environment)
This framework is intended to help interpret internal market tone.
________________________________________
State Classification
The indicator classifies the current environment into one of four states:
• Trend
• Expansion
• Decay
• Transition
These labels summarize which internal condition appears most dominant.
________________________________________
Shift Detection
The model evaluates changes in the Demand/Supply relationship to identify internal shifts:
• Demand crossing above Supply → Improving conditions
• Supply crossing above Demand → Deteriorating conditions
• No crossover → No significant change
This is designed to highlight internal shifts, not generate trade signals.
________________________________________
Visualization
Primary Lines
• Demand
• Supply
These are plotted in a separate pane to visualize internal strength vs deterioration over time.
Summary Table (Optional)
Provides a structured overview of:
• Control (Demand vs Supply dominance)
• Breadth condition
• Market condition
• State classification
• Shift
• Read (contextual interpretation)
• Bias (contextual framing)
Optional end-of-line labels can be enabled for clarity.
________________________________________
How to Use
This indicator is designed as a market context tool.
A typical workflow may include:
1. Applying the indicator to a broad market index
2. Observing whether Demand or Supply is dominant
3. Reviewing the state table for context
4. Combining insights with price structure, volatility, and risk management
The objective is to support contextual awareness—not replace independent analysis.
________________________________________
Configurable Inputs
Data Sources
• Custom breadth symbols for participation, structure, and leadership inputs
Logic Settings
• Smoothing length
• Control gap threshold
• Demand strength/weakness levels
• Decay dominance level
Display Options
• Show/hide summary table
• Show/hide line labels
• Show/hide reference levels
• Table size customization
________________________________________
Important Notes
• This script is provided for educational and informational purposes only
• It does not provide financial advice or trade recommendations
• It does not execute trades or manage positions
• Outputs are descriptive, not predictive
• Historical behavior does not guarantee future results
• Data availability may vary depending on your Trading View plan
All trading decisions should be made using independent judgment and appropriate risk management.
Indicator

Indicator
