Tectonic Ribbon Oscillator [JOAT]Tectonic Ribbon Oscillator
Introduction
Tectonic Ribbon Oscillator is an open-source lower-pane momentum field built from twenty lag-reduced strands. The script classifies whether momentum is in bullish expansion, bearish expansion, or twist compression by comparing the ribbon's fast, mid, and slow structure instead of relying on a single oscillator line.
The problem Tectonic solves is momentum depth. A single oscillator can show direction, but it usually hides how broad or fragile the move actually is. Tectonic exposes ribbon breadth, spread, slope, and divergence in one framework so the user can distinguish acceleration from compression.
Core Concepts
1. Multi-Strand Ribbon Construction
Each strand uses a progressively larger lookback and lag-reduced smoothing. This creates a depth field rather than a single-value oscillator.
2. Fast-Mid-Slow Spread Logic
The oscillator compares grouped ribbon averages and uses the spread to determine whether momentum is directional or twisted into compression.
3. Regime Classification
Bull, bear, and twist states are identified from the spread and held as confirmed regime transitions.
4. Divergence Validation
Price pivots and ribbon pivots are compared to identify confirmed bullish and bearish divergence without using future leaks.
5. Momentum Support Layers
Histogram and slope components add a second view of how the ribbon is accelerating or decelerating internally.
Features
Twenty-strand momentum ribbon: Progressive lookbacks create a true depth profile
Lag-reduced smoothing: Ribbon strands are stabilized without reverting to a slow classic oscillator
Twist regime detection: Compression is explicitly separated from directional impulse
Confirmed divergence logic: Bullish and bearish divergence are tracked from confirmed pivot relationships
Histogram and slope overlays: Secondary layers help gauge acceleration quality
Top-right dashboard: State, spread, slope, histogram, depth, divergence, last shift, confirmation, and breadth are reported continuously
How to Use This Indicator
Step 1: Read the regime
Bull and bear states indicate directional momentum dominance. Twist indicates compression or unstable breadth.
Step 2: Compare spread and slope
A large spread with weakening slope often indicates mature momentum. A fresh spread expansion with improving slope usually indicates earlier-cycle momentum.
Step 3: Respect divergence in context
Confirmed divergence is most useful when it appears against an already stretched ribbon state.
Indicator Limitations
Divergence is not a reversal guarantee
Twist states can persist for long periods in balanced markets
Shorter settings will react faster but can become noisy
The oscillator is a momentum context tool and should be combined with market structure or regime logic
Originality Statement
Tectonic Ribbon Oscillator is original in the way it assembles a twenty-strand lag-reduced ribbon, grouped spread classification, divergence validation, and dashboard reporting into one momentum framework rather than publishing a lightly modified RSI derivative.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Momentum and divergence signals can fail, especially during high-volatility structural breaks. Use independent analysis and risk management.
Indicator

Adaptive Wave Pressure Index [JOAT]Adaptive Wave Pressure Index
Introduction
Adaptive Wave Pressure Index is a normalized slope oscillator built to measure directional pressure through the relationship between regression slope and volatility. By scaling a manually calculated OLS slope with ATR, the script produces a dimensionless momentum reading that can be compared across instruments and timeframes much more cleanly than raw slope alone.
This indicator is designed for traders who want wave pressure, not just speed. It tracks directional force, smooths that force into fast and slow lines, colors the histogram using structural swing context, and adds divergence detection for potential exhaustion.
Why This Indicator Exists
Volatility-Normalized Momentum: Regression slope is scaled by ATR to improve comparability
Fast / Slow Pressure Read: Reveals acceleration and deceleration of directional force
Structure Overlay: Swing-sequence counts add context to histogram strength
Zone Framework: Overbought and oversold thresholds define pressure extremes
Divergence Layer: Flags when price reaches new extremes without matching pressure
Core Components Explained
1. Manual OLS Slope
rawSlope = f_olsSlope(regLength)
The script calculates slope directly from the last N closes rather than relying on a built-in regression shortcut. This provides more control over normalization and display logic.
2. ATR Normalization
normSlope = rawSlope / ta.atr(atrNormPeriod)
Dividing slope by ATR transforms it into a volatility-aware measure of pressure. A positive slope on a low-volatility asset and a positive slope on a high-volatility asset become more comparable after normalization.
3. Fast / Slow Pressure System
Two EMAs are applied to the normalized slope:
Fast Line: More responsive pressure state
Slow Line: More stable reference
Histogram: Spread between fast and slow, showing acceleration or fade
4. Structural Sequence Layer
The indicator also counts consecutive higher lows and lower highs in price. When structure strongly supports the current pressure direction, histogram colors intensify. This adds a valuable distinction between pressure that is statistically rising and pressure that is also structurally confirmed.
5. Divergence and Zone Logic
The script highlights:
Fast-line crosses of overbought and oversold thresholds
Fast/slow line crosses
Bullish and bearish divergences
Divergence lines are retained with a fixed cap so the pane stays readable over time.
Visual Elements
Histogram: Pressure spread with structural-intensity color logic
Fast Line: Main directional read
Slow Line: Reference pressure line
Zero Fill: Directional bias area fill
OB/OS Background: Soft zone shading for extreme pressure
Markers: Crosses and divergence markers
Dashboard: Raw slope, normalized slope, trend, structure sequence, divergence, and active zone
Input Parameters
Regression Length: Window for OLS slope calculation
ATR Norm Period: Volatility baseline used for normalization
Fast / Slow EMA: Pressure responsiveness controls
OB / OS Levels: Extreme pressure thresholds
Pivot Left / Right: Sensitivity for structural and divergence logic
How to Use This Indicator
Step 1: Read whether fast is above or below slow.
Step 2: Check the histogram to see whether pressure is expanding or contracting.
Step 3: Use the sequence readout to judge whether price structure agrees with the oscillator.
Step 4: Treat divergences as warnings that pressure may be weakening.
Step 5: Use OB/OS events to identify stretched pressure, especially after large runs.
Best Practices
Use on instruments with clean swings and sufficient range
Respect signals more when sequence direction agrees with fast/slow direction
Use divergence with structure, not by itself
Increase regression length for smoother wave pressure
Lower lengths react faster but create more noise
Indicator Limitations
Normalized slope improves comparison but does not eliminate market differences
Pressure can stay elevated in strong trends
Divergences can persist before price turns
Short settings increase false transitions
Structure counts are descriptive, not predictive
Technical Implementation
Built in Pine Script v6 using:
Manual OLS slope computation
ATR normalization
Dual-EMA pressure smoothing
Pivot-based structure counting
Capped divergence-line management
Confirmed-bar signal generation
Originality Statement
This indicator is original in the way it combines normalized regression slope, structural sequence intensity, and divergence management into a single wave-pressure framework. Its purpose is not just to show direction, but to show how forceful and how structurally supported that direction is.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Momentum and divergence tools can fail, especially during volatile transitions. Always use proper risk management and independent confirmation.
-Made with passion by officialjackofalltrades
Indicator

Volatility Compression Oscillator [JOAT]Volatility Compression Oscillator
Introduction
Volatility Compression Oscillator is a two-line momentum oscillator that measures where price is trading inside a dynamic volatility envelope, then tracks the compression and release of that positioning through line crosses, histogram rotation, and divergence. It is designed to show when price is quietly loading pressure, when that pressure starts to expand, and when expansion may be exhausting.
This script is useful for traders who want more than a standard bounded oscillator. It combines normalized price location, dual smoothing, histogram analysis, and divergence into one compact pane.
Why This Indicator Exists
Adaptive Normalization: Measures price against a volatility-sensitive envelope instead of a fixed formula
Two-Speed Momentum Read: Uses fast and slow lines to reveal early shifts in pressure
Compression / Release Logic: The histogram shows whether momentum is accelerating or fading
Exhaustion Markers: Histogram peaks and troughs help spot unstable extensions
Divergence Layer: Tracks when price makes a new swing but oscillator pressure does not confirm
Core Components Explained
1. Dynamic Volatility Envelope
offset = avgRange * scale * (1 + avgBody / avgRange)
The script centers the envelope around the candle midpoint average, then expands it with both average range and average body contribution. This makes the oscillator adaptive to both volatility and candle conviction.
2. Normalized Oscillator Calculation
rawOsc = 100 * (close - lowerBand) / bandWidth - 50
Price is transformed into a centered oscillator that measures whether price is trading in the upper or lower half of the active volatility envelope.
3. Dual-Smoothing Engine
The raw oscillator is processed through fast and slow smoothing chains. Their relationship drives the main trend reading:
Fast above slow = bullish pressure
Fast below slow = bearish pressure
Histogram expanding = pressure increasing
Histogram fading = pressure weakening
4. Signal Layers
The indicator produces several distinct signal families:
MA Cross Signals: Momentum handoff between fast and slow lines
OB/OS Crosses: Stretch events when Line 1 crosses the thresholds
Histogram Peaks / Troughs: Local exhaustion cues
Divergences: Price making a stronger swing while oscillator pressure weakens
5. Chart Cleanliness Controls
Divergence lines are retained with an internal cap so the script does not keep drawing indefinitely. This keeps the pane readable and reduces object-limit risk on long-running charts.
Visual Elements
Histogram Columns: Momentum spread between fast and slow lines
Fast Line: Main directional pressure line
Slow Line: Reference trend line
Zero Fill: Directional fill from Line 1 to the centerline
OB/OS Background: Soft shading in stretch conditions
Signal Markers: Circles, triangles, diamonds, and squares for different event types
Dashboard: Trend, line values, histogram value, regime, and divergence state
Input Parameters
Volatility Window: Lookback for midpoint, body, and range normalization
Band Scale %: Width multiplier for the adaptive envelope
OB / OS Levels: Stretch boundaries for Line 1
Line 1 / Line 2 Smoothing: Controls responsiveness of the dual-line engine
Pivot Length: Sensitivity for divergence and histogram turning points
Histogram Peak Levels: Defines stronger exhaustion zones
How to Use This Indicator
Step 1: Determine whether fast is above or below slow.
Step 2: Watch the histogram for acceleration or decay.
Step 3: Use MA crosses for timing only when they occur in sensible zones.
Step 4: Treat OB/OS signals as context for stretch, not automatic reversal commands.
Step 5: Respect divergences most when they align with histogram exhaustion.
Best Practices
Use higher pivot lengths when markets are noisy
Treat histogram turns near extremes as better-quality warnings
Use line crosses in the direction of the higher-timeframe trend
Avoid overreacting to every divergence in strong trends
Keep marker display on only if you actively trade the signal layer
Indicator Limitations
Oscillators can stay overbought or oversold in strong trends
Divergences are warning signs, not standalone trade systems
Short smoothing lengths will create more noise
Compression readings can fail to expand immediately
Signal quality depends heavily on market structure and instrument behavior
Technical Implementation
Built in Pine Script v6 using:
Adaptive volatility-band normalization
Dual-smoothed oscillator lines
Histogram spread calculation
Pivot-based divergence detection
Object-retention caps for divergence lines
Confirmed-bar signal logic
Originality Statement
This indicator is original in how it frames volatility compression and release through normalized envelope location, dual-line momentum, histogram exhaustion, and divergence management in one pane. Its value comes from synthesis and signal layering rather than from any single oscillator component alone.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Oscillator signals can fail, especially in volatile or trendless conditions. Always use proper risk management and independent judgment.
-Made with passion by officialjackofalltrades
Indicator

Volume Displacement Engine [JOAT]Volume Displacement Engine
Introduction
Volume Displacement Engine (VDE) is an open-source volume regime oscillator that measures the ratio of short-term volume activity to long-term volume baseline, smooths it into a clean oscillator, and classifies current market activity into four distinct regimes: Low, Normal, High, and Extreme. The histogram and background tint update in real time with regime-specific coloring, reference lines mark each threshold boundary, and breakout signals fire when price closes beyond a rolling high or low during elevated volume regimes. A consolidation detection layer identifies consecutive low-volume bars as ranging periods. Trade outcomes from breakout signals are tracked for statistical win rate context, displayed in a structured dashboard.
The core problem VDE solves is the absence of context in standard volume indicators. Raw volume bars communicate size but not relevance — a large bar on a trending instrument in a high-liquidity session is very different from the same bar during off-hours. By expressing volume as a ratio to a rolling baseline and classifying it into regimes, VDE communicates whether current activity is institutionally significant (High or Extreme) or routine (Normal/Low). Price breakouts during High or Extreme volume are fundamentally different propositions than the same price moves on thin volume — VDE makes that distinction explicit and actionable.
Core Concepts
1. Volume Ratio Oscillator
The core calculation divides a short-term volume simple moving average by a long-term volume simple moving average, then applies an EMA smoothing pass to reduce bar-to-bar noise:
float rawRatio = volShort / math.max(volLong, 1.0)
float volRatio = ta.ema(rawRatio, i_smoothLen)
A ratio above 1.0 means recent volume is above the long-term average — activity is elevated. A ratio below 1.0 means recent volume is below the baseline — activity is depressed. The smoothing EMA gives the oscillator a cleaner shape while maintaining responsiveness to regime changes.
2. Four-Tier Regime Classification
Four threshold boundaries define the regime tiers. All thresholds are fully configurable:
Low: Ratio below the low threshold (default: 0.70) — below-average activity, reduced institutional participation
Normal: Ratio between low and normal ceiling (default: 0.70–1.20) — baseline activity
High: Ratio between normal ceiling and high threshold (default: 1.20–1.80) — elevated activity, potential institutional flow
Extreme: Ratio above the high threshold (default: 1.80+) — exceptional volume surge, likely significant price event
3. Breakout Signal Detection
Breakout signals are generated when price closes beyond the rolling highest high or lowest low of the configurable lookback window during a High or Extreme volume regime. This combines price displacement with volume confirmation, filtering out low-conviction breakouts that occur on thin volume:
bool bullBreak = barstate.isconfirmed and close > hh and (isHigh or isExtreme)
bool bearBreak = barstate.isconfirmed and close < ll and (isHigh or isExtreme)
4. Consolidation Detection
When multiple consecutive bars fall below the consolidation volume threshold, VDE identifies the period as a consolidation zone. The minimum bar count ensures short dips below the threshold are not misclassified as ranges. A dotted reference line marks consolidation periods in the oscillator pane, providing context for identifying compression before expansion moves.
5. Gradient Fill and Regime Tint
The oscillator histogram is colored to match the current regime. A fill between the histogram and the 1.0 baseline uses the regime color with transparency, providing a visual area representation of volume expansion or contraction. During High and Extreme regimes, a background tint activates in the oscillator pane to immediately draw attention to elevated activity periods without requiring inspection of the histogram height.
Features
Volume Ratio Oscillator: Short/long MA ratio smoothed by EMA — measures relative volume displacement from baseline
Four-Tier Regime Classification: Low, Normal, High, and Extreme regimes with independent color coding and configurable thresholds
Histogram Coloring: Bar color matches current regime — immediate visual reading of activity level
Regime Background Tint: High and Extreme volume periods highlighted with a pane background color for immediate attention
Threshold Reference Lines: Horizontal dashed lines at each regime boundary and at the 1.0 baseline for quick ratio reading
Gradient Regime Fill: Fill between oscillator and baseline communicates expansion/contraction area visually
Price Breakout Signals: Bull and bear breakout signals fire when price closes beyond rolling extremes during elevated volume regimes only
Consolidation Detection: Consecutive below-threshold volume bars identified as consolidation periods
Breakout Win Rate Tracking: Outcomes from breakout signals tracked against ATR-based TP/SL levels for statistical context
Non-Repainting: All signals gated on barstate.isconfirmed
Dashboard (Top Right): Current regime label, vol ratio value, consolidation status, and win rate breakdown for High and Extreme regime breakouts
Vol Momentum Columns: 3-bar rate-of-change of the vol ratio displayed as green/red column bars in the oscillator pane — shows whether volume activity is accelerating or decelerating relative to 3 bars prior
Rolling 20-Bar Vol Ratio Peak Reference Line: A purple reference line tracks the rolling 20-bar peak vol ratio — provides a visual ceiling for recent activity levels and highlights when the current ratio is approaching or exceeding recent extremes
Vol Ratio Delta in Dashboard: Vol ratio delta shown in real time in the dashboard with a directional arrow (▲/▼) — communicates whether volume pressure is building or fading on the current bar
CONS Label on Consolidation Start: A "CONS" label fires at the bar when a consolidation zone begins — marks the exact start of identified compression periods directly on the oscillator
Breakout Strength Labels: "BRK +X.XX" and "BRK -X.XX" labels appear at each breakout signal showing the vol ratio value at the moment of the break — communicates the institutional conviction level behind each breakout directly on the chart
Input Parameters
Volume Engine:
Short Vol Window: Short-term volume MA period (default: 10)
Long Vol Window: Long-term volume MA period (default: 40)
Ratio Smooth: EMA smoothing length for ratio (default: 3)
Low Vol Threshold: Ratio below which regime is Low (default: 0.70)
Normal Vol Ceiling: Ratio above which regime is High (default: 1.20)
High Vol Threshold: Ratio above which regime is Extreme (default: 1.80)
Consolidation:
Consolidation Window: Lookback window for consolidation range (default: 8)
Consolidation Vol Max: Maximum ratio to qualify as a consolidation bar (default: 0.80)
Min Consolidation Bars: Minimum consecutive qualifying bars to declare consolidation (default: 4)
Breakout Signal:
Breakout Lookback: Rolling high/low lookback window (default: 20)
ATR Length: Period for ATR calculation (default: 14)
ATR SL Multiplier: Stop loss distance (default: 1.5)
Reward:Risk Ratio: TP multiple (default: 3.0)
Show TP/SL Labels: Toggle label display in the oscillator pane (default: enabled)
How to Use This Indicator
Step 1: Read the Regime
Glance at the dashboard regime label and histogram color. A grey histogram (Low) indicates the market is in a quiet, low-participation period — avoid breakout strategies during these windows. A teal histogram (Normal) is baseline. An amber histogram (High) or red (Extreme) signals institutional-grade activity.
Step 2: Identify Consolidation Periods
When the dotted consolidation line is active in the oscillator pane, the market is in a low-volume compression phase. These periods typically precede expansion moves — the direction of the subsequent breakout, confirmed on volume, is a key signal.
Step 3: React to Breakout Signals
Breakout signals (triangles at the top/bottom of the oscillator pane) only fire during High or Extreme regimes. When a bull breakout label appears, price has closed above the rolling high on elevated volume — a confirmed displacement. The ATR TP/SL levels from that bar define the immediate risk/reward.
Step 4: Monitor the Ratio Trend
The oscillator line trending upward while above 1.0 indicates sustained institutional accumulation of activity — these sustained elevated periods often coincide with trending phases. A declining ratio from Extreme back toward Normal often signals activity exhaustion.
Indicator Limitations
Volume data quality varies significantly by instrument and data provider. On synthetic instruments, indices, or assets where volume reflects contract count rather than notional size, the ratio will not accurately represent true monetary volume displacement
TP/SL outcome tracking in the oscillator pane uses price data for TP/SL hit detection but displays in the volume pane — the label positions are approximate visual markers, not precise price levels on the main chart
The consolidation detector uses a fixed volume threshold. In trending markets where baseline volume rises over time, the historical consolidation threshold may not match current market conditions without recalibrating the threshold input
Breakout signals require both a price breakout and an elevated volume regime simultaneously. In markets with persistently high volume baselines (e.g., during major economic event periods), the Extreme threshold may trigger more frequently than on typical days — the thresholds may need upward adjustment on those instruments
The short/long MA window ratio is a relative measure. It compares recent volume to a historical baseline — it does not measure absolute volume in shares, contracts, or dollars
Originality Statement
VDE combines a smoothed relative volume ratio oscillator with a four-tier classification framework, consolidation detection, and volume-gated breakout signals in a unified indicator. This is original for the following reasons:
Expressing volume as a ratio of short-term to long-term moving average — rather than showing raw volume bars — normalizes the oscillator across instruments and timeframes, making the same threshold values meaningful on a liquid equity, a commodity, and a cryptocurrency without manual recalibration
The four-tier classification system with independently configurable thresholds and a gradient color scheme provides a richer regime reading than simple volume-above-average/below-average binary indicators
Volume-gated breakout detection explicitly requires the price breakout and the volume regime elevation to occur simultaneously on the same confirmed bar — preventing breakout signals from firing on thin-volume price moves that carry low institutional conviction
The consolidation detection layer adds a compression-identification capability within the volume pane, providing context for identifying low-activity ranging periods before the volume regime shifts to support a directional move
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Volume regime classification and breakout signals are statistical constructs — elevated volume at a price breakout does not guarantee continuation in the breakout direction. Win rate statistics are derived from historical bar data and do not predict future performance. Always apply proper risk management. The author is not responsible for any trading losses resulting from the use of this indicator.
-Made with passion by jackofalltrades
Indicator

Torque Momentum Oscillator [JOAT]Torque Momentum Oscillator
Introduction
The Torque Momentum Oscillator is a sub-chart composite momentum engine that synthesizes four independent momentum perspectives into a single normalized 0–100 oscillator. Rather than relying on any one momentum calculation, it blends a stochastic-range oscillator, two RSI variants at different cycle lengths, and a Bollinger Band position reading into a weighted composite score — then colors the histogram on a gradient that instantly communicates whether momentum is building or exhausting.
The philosophy behind TMO is that any single momentum indicator can be fooled by choppy markets or unusual price action. When four different momentum frameworks all agree, the composite reading carries genuine conviction. When they diverge, the composite score gravitates toward the midline — a built-in disagreement signal that keeps you from over-committing to a directional bias.
Core Concepts
Component 1 — RSV (Raw Stochastic Value)
The RSV is a stochastic-style reading of where close sits within the highest high and lowest low range over the lookback period, smoothed with an SMA to reduce noise:
float hiRange = ta.highest(high, rsvPeriod)
float loRange = ta.lowest(low, rsvPeriod)
float rsvRaw = safeDiv(close - loRange, hiRange - loRange, 0.5) * 100.0
float rsvLine = ta.sma(rsvRaw, rsvSmooth)
The RSV line is also plotted independently as a fast overlay on the oscillator, giving it a secondary use as a crossover signal generator. When RSV crosses above 20, an Opportunity label fires. When it crosses back below 80, a Risk label fires.
Component 2 — RSI Fast
The standard Wilder RSI at the fast period (default 14) captures short-cycle momentum velocity. It contributes a responsive directional reading without being so short that it becomes noise.
Component 3 — RSI Slow (Blackcat-Style)
The slow RSI uses a blackcat-inspired manual construction: SMA of gains divided by SMA of absolute changes, rather than the standard Wilder smoothing:
float rsiSlowVal = safeDiv(
nz(ta.sma(math.max(close - prevClose, 0.0), rsiSlow), 50.0),
nz(ta.sma(math.abs(close - prevClose), rsiSlow), 1.0),
0.5) * 100.0
This produces a longer-cycle momentum trend bias that is less sensitive to individual candle extremes, creating a smoother counterpart to the fast RSI.
Component 4 — Normalized BB Position
Bollinger Band position tells you where price sits in its statistical envelope:
= ta.bb(close, bbLen, bbMult)
float bbPos = math.max(0.0, math.min(100.0,
safeDiv(close - bbLower, bbUpper - bbLower, 0.5) * 100.0))
At 100 price is at the upper band. At 0 it is at the lower band. At 50 it is exactly at the basis. This adds a volatility-relative momentum reading to the composite.
Weighted Composite Score
All four components are blended using user-configurable weights that are automatically normalized to sum to 1.0:
float wSum = wRsv + wRsiF + wRsiS + wBB
float composite = (rsvLine * (wRsv / wSum) +
rsiFastVal * (wRsiF / wSum) +
rsiSlowVal * (wRsiS / wSum) +
bbPos * (wBB / wSum))
Default weights: RSV 35%, RSI Fast 25%, RSI Slow 25%, BB Position 15%.
Gradient Histogram Coloring
The histogram is colored on a gradient that transitions from full bear red near 0 to transparent near 50, then from transparent bull green near 50 to full bull green near 100. This produces an immediate visual sense of momentum intensity — a faint histogram near midline means indecision, a saturated histogram near the extremes means conviction.
Features
Four-component weighted composite oscillator: RSV + RSI Fast + RSI Slow + BB Position
RSV component double duty: used in composite and plotted as independent fast line
Gradient histogram — color intensity scales with momentum conviction
Overbought (default 75) and oversold (default 25) zones with gradient fills
RSV Opportunity label when RSV crosses above 20 — potential upswing signal
RSV Risk label when RSV crosses below 80 — potential downswing signal
Per-component weight controls — customize the blend to your trading style
Midline reference at 50 and dashed OB/OS lines
Dashboard showing composite, RSV, RSI Fast, RSI Slow, BB position, and last signal
Auto dark/light theme detection
Alerts for Opportunity, Risk, entering Overbought, and entering Oversold
Webhook JSON alert format for automation
Watermark
Input Parameters
Oscillator Settings
RSV Period — lookback for the stochastic range calculation (default 20)
RSV Smoothing — SMA length applied to raw RSV before use (default 3)
RSI Fast Period — short-cycle RSI length (default 14)
RSI Slow Period — long-cycle blackcat-style RSI length (default 24)
BB Period — Bollinger Band lookback (default 20)
BB Multiplier — standard deviation multiplier for BB width (default 2.0)
Composite Weights
RSV Weight — relative weight of the stochastic component (default 0.35)
RSI Fast Weight — relative weight of the fast RSI (default 0.25)
RSI Slow Weight — relative weight of the slow RSI (default 0.25)
BB Position Weight — relative weight of the BB position reading (default 0.15)
Visual Settings
Overbought Level — upper threshold for OB zone and gradient fill (default 75)
Oversold Level — lower threshold for OS zone and gradient fill (default 25)
Show RSV Signals — toggles Opportunity and Risk label markers
Theme — Auto, Dark, or Light
Show Dashboard — compact panel with live component readings
Dashboard Position — four corner options
Show Watermark
Colors
Bull / Opportunity — color for bullish histogram bars and signal labels
Bear / Risk — color for bearish histogram bars and signal labels
RSV Line — color for the fast RSV overlay line
RSI Fast — color for the RSI Fast overlay line
How to Use
Add TMO to your chart below price as a separate sub-pane oscillator.
Watch the composite histogram for directional bias: readings above 50 favor longs, below 50 favor shorts.
Use the OB zone (above 75) and OS zone (below 25) as caution areas — not automatic reversal signals, but places where momentum is stretched and a mean reversion or consolidation becomes more likely.
Use Opportunity labels (RSV crossing above 20) as early warning that the stochastic component is turning up from deeply oversold — look for price confirmation before acting.
Use Risk labels (RSV crossing below 80) as early warning of a potential momentum rollover from overbought.
Check the dashboard to see exactly which components are driving the composite reading. If RSV and RSI Fast are both high but BB Position is low, the composite may not tell the full story.
Adjust the component weights in settings to emphasize the momentum style that best suits your market. For crypto, increasing RSV weight can be effective. For equities, RSI Slow weight can provide a smoother signal.
Indicator Limitations
The composite is a weighted average and can only be as accurate as the components that feed it. In strongly trending markets with low volatility, RSV and BB Position can both hover near extremes for extended periods — the composite will look overbought even when trend continuation is the correct read.
RSV Opportunity and Risk signals are generated by a single component (RSV) and should not be used in isolation as trade entries. They are high-probability turning-point flags that require price action confirmation.
Warmup bars are required before the oscillator becomes reliable. The indicator suppresses output until sufficient history is available.
This is a momentum indicator, not a trend direction indicator. It works best in liquid, active markets and may generate false signals during low-volume chop.
Originality Statement
The Torque Momentum Oscillator is an original Pine Script v6 publication. The architecture of combining RSV (stochastic-range), dual RSI cycles at different periodicities, and normalized Bollinger Band position into a single dynamically-weighted composite is an original design. The blackcat-style SMA-based RSI slow construction is an adapted technique included for its distinct noise characteristics, with full attribution. The gradient histogram coloring, RSV crossover signal system, and dashboard layout are original implementations built specifically for this publication.
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. Momentum readings are not predictions of future price direction. Always use proper risk management and never risk more than you can afford to lose.
-Made with passion by jackofalltrades
Indicator

Strata Volume Contour [JOAT]Strata Volume Contour
Introduction
Strata Volume Contour (SVC) is an open-source dynamic volume profile engine that divides a configurable lookback window into 25 equidistant price bins and accumulates the total traded volume within each bin. The result is a real-time horizontal histogram drawn to the right of the current bar, showing exactly where the market has spent the most volume over the selected period. The Point of Control (POC) — the highest-volume bin — is highlighted as the dominant fair-value level. The Value Area — the range of bins containing 70% of total volume — is shaded to mark the institutional accumulation zone.
The problem SVC solves is the inability of time-based charts to show volume distribution across price levels. Standard volume bars show how much was traded each period, but not at which prices. Volume profile reveals the price levels that attracted the most participation — these are the levels where institutional orders were concentrated, making them the most meaningful support and resistance references available. SVC brings this institutional-grade analysis directly to the chart without requiring specialized volume profile software.
Core Concepts
1. Price Range Binning
The indicator determines the highest high and lowest low across the full lookback window, then divides this range into 25 equal-width bins. Each bin represents a price zone:
float rangeHi = ta.highest(high, math.min(bar_index + 1, lookback))
float rangeLo = ta.lowest( low, math.min(bar_index + 1, lookback))
float binStep = (rangeHi - rangeLo) / BINS
A zero-range guard (binStep > 0) prevents division errors on flat or illiquid instruments. With 25 bins, the histogram provides enough granularity to identify structural features while remaining visually clean.
2. Volume Accumulation (Performance-Gated)
Volume accumulation runs exclusively on the last bar of the chart (barstate.islast). This is a critical design decision: running the O(bins x lookback) double-loop on every bar within the lookback window would create an O(bars x bins x lookback) computational cost that exceeds PulseWire's execution limits on longer charts. By gating to the last bar, the full recalculation costs O(bins x lookback) exactly once per chart update:
if barstate.islast
if binStep > 0.0
for i = 0 to BINS - 1
float binLevel = rangeLo + binStep * i
float binVol = 0.0
for k = 0 to lookback - 1
if math.abs(close - binLevel) <= binStep
binVol += nz(volume , 0.0)
array.set(volBins, i, binVol)
Each bar within the lookback is assigned to the nearest bin based on its closing price.
3. Point of Control (POC)
The POC is the bin with the highest accumulated volume. It represents the price level where the most trading activity occurred over the lookback period. Markets tend to use the POC as a magnet — price is attracted to it during consolidation and uses it as a reference when transitioning between ranges. The POC is rendered with a distinct highlight color (default orange) to make it immediately identifiable.
4. Value Area Calculation (70% Rule)
The Value Area is determined by a symmetric expansion algorithm. Starting from the POC, the algorithm expands outward one bin at a time, always adding the bin (above or below) that contributes the most volume, until the accumulated volume within the expanding range reaches 70% of total volume:
while vaVol < vaTarget and (vaLow > 0 or vaHigh < BINS - 1)
float addUp = vaHigh < BINS - 1 ? array.get(volBins, vaHigh + 1) : 0.0
float addDn = vaLow > 0 ? array.get(volBins, vaLow - 1) : 0.0
if addUp >= addDn and vaHigh < BINS - 1
vaHigh += 1
vaVol += addUp
else if vaLow > 0
vaLow -= 1
vaVol += addDn
The Value Area High (VAH) and Value Area Low (VAL) define the institutional accumulation zone. Price outside the value area represents a premium (above) or discount (below) relative to the lookback period's fair value.
5. Horizontal Histogram Visualization
Each bin is drawn as a horizontal box extending rightward from the current bar. The box width is proportional to the bin's volume relative to the POC volume — the POC spans the maximum width (50 bars right), and all other bins scale proportionally. Volume amounts are labeled on each bar.
Features
25-Bin Volume Profile Histogram: Full horizontal volume distribution rendered to the right of price with proportional bar widths and volume labels
Point of Control (POC): Highest-volume bin highlighted in a distinct color (default orange) with automatic detection each bar update
Value Area (VAH / VAL): The 70%-volume range shaded in a distinct color, with Value Area High and Low explicitly tracked and displayed in the dashboard
Gradient Bin Coloring: Each non-POC, non-VA bin is colored on a gradient from low volume (nearly transparent) to high volume (full opacity), creating a visual density map
Static Level Plots: All 25 bin levels are plotted as horizontal lines over the lookback window, providing a persistent price level grid even without the boxes visible
Price vs POC Context: The dashboard reports whether price is currently Above POC, Below POC, or At POC
8-Row Dashboard (Top Right): POC price, VA High, VA Low, price vs POC relationship, total volume, lookback period, and version
Watermark: JackOfAllTrades signature at chart center-bottom
Input Parameters
Profile Settings:
Lookback Period: Number of bars to include in the volume accumulation (default: 200, range: 50-500)
Visual Settings:
Show Volume Bins: Toggle the horizontal histogram boxes
Bin Color: Base color for the bin gradient (default: blue)
Bin Width: Border width of histogram boxes (default: 1, range: 0-5)
Highlight POC: Toggle POC highlighting
POC Color: Color for the highest-volume bin (default: orange)
Show Value Area: Toggle the 70%-volume range shading
VA High Color: Color for the Value Area High reference
VA Low Color: Color for the Value Area Low reference
Theme: Auto, Dark, or Light
How to Use This Indicator
Step 1: Identify the Point of Control
The POC is the most important level on the profile. It is the price the market spent the most time trading at — the ultimate fair-value anchor. Price below the POC is at a discount; above is at a premium. Trading setups at the POC during retest often exhibit tight risk/reward.
Step 2: Use Value Area Boundaries for Support and Resistance
The Value Area High and Low are the primary structural boundaries. Price often oscillates within the value area and struggles when attempting to leave it. A close outside the value area with high volume often signals the beginning of a new directional move.
Step 3: Adjust Lookback to Your Trading Style
Shorter lookbacks (50-100 bars) produce a profile of recent price structure, relevant for intraday traders. Longer lookbacks (300-500 bars) produce a macro structural view, relevant for swing traders. The POC and value area boundaries shift as the lookback changes.
Step 4: Watch Price Return to the POC
After price moves away from the POC, it frequently returns to it during low-volume periods. When price is far from the POC and trending, the POC can serve as a magnet target for reversion. When price is oscillating around the POC, it reflects a balanced, two-sided auction.
Indicator Limitations
The profile recalculates only on barstate.islast — it reflects the state at the last confirmed bar. During real-time market hours, the profile is not updating tick-by-tick; it updates each time a bar closes
The volume accumulation assigns each bar to a bin based on closing price, not the intrabar high-low range. This is a simplification — a professional volume profile distributes volume across all prices touched during the bar. The close-based method is computationally feasible within Pine Script's constraints
The 25-bin resolution is fixed. Very large price ranges (e.g., a lookback spanning a major crash) may produce bins too wide to be structurally meaningful. Users should adjust the lookback to keep the range within a reasonable structural period
Instruments with no volume data (some indices, spot forex) will show all zero bins and the profile will not render meaningfully
The histogram boxes are drawn to the right of the current bar. On instruments with extended right-side padding disabled, the boxes may be partially hidden off-chart
Originality Statement
SVC is original in its approach to making volume profile accessible within Pine Script's performance constraints. This indicator is published because:
The barstate.islast performance gate is the key design innovation — it collapses what would otherwise be an O(bars x bins x lookback) computation into a single O(bins x lookback) pass, making a 25-bin volume profile with 500-bar lookback feasible within PulseWire's execution limits
The 70% Value Area algorithm uses a symmetric expansion approach (always adding the larger of the next bin up or down) that correctly implements the standard Volume Profile Value Area methodology
The gradient bin coloring uses color.from_gradient() against the POC volume as the maximum reference, making the visual density map adaptive to the actual volume distribution rather than a fixed scale
The Price vs POC contextual label in the dashboard provides an immediately actionable market context read without requiring the user to visually judge their position relative to the histogram
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Volume profile levels are based on historical volume distribution and represent areas of past interest, not guarantees of future price behavior. The Point of Control and Value Area boundaries can and do shift significantly as the lookback window evolves. Always use proper risk management. The author is not responsible for any trading losses resulting from the use of this indicator.
-Made with passion by jackofalltrades
Indicator

Histogram by RumiancevRumiancev Histogram R/S/M
Rumiancev Histogram R/S/M is an open-source momentum indicator designed to combine three analytical layers in a single pane: a histogram-based Ergodic-style momentum model, two optional EMA overlays applied directly to the histogram, and an optional Adaptive RSI module with its own signal line and centered levels.
The goal of this script is to provide a compact but flexible momentum workspace. Instead of forcing the user to stack several separate tools on the chart, this script brings the main momentum histogram, short smoothing overlays, and an additional adaptive strength filter together in one place. The result is a cleaner workflow for traders who want to read momentum shifts, short-term acceleration, slowing conditions, and auxiliary RSI-style confirmation from a single panel.
General idea
The script is built around a normalized momentum histogram. It measures bar-to-bar price change, smooths that movement in multiple stages, and compares directional movement against total movement. This allows the oscillator to focus not only on whether price is rising or falling, but also on how efficiently price is moving in one direction relative to overall fluctuation.
A signal line is applied to the main oscillator value, and the histogram represents the distance between the oscillator and that signal. This makes the histogram useful for tracking momentum expansion and momentum contraction around the zero line.
In addition to the histogram, the script can display two optional EMA lines derived from the histogram itself. These lines help users visually filter short-term noise and better judge whether recent histogram movement is strengthening, fading, or transitioning.
The script also includes an optional Adaptive RSI module. This is not plotted in the classic RSI panel style. Instead, it is centered around zero and scaled so it can coexist with the histogram in the same pane. This gives the user an extra confirmation layer without requiring a separate indicator window.
How the main histogram works
The core oscillator uses the change in closing price from one bar to the next. First, the script calculates the raw directional change. Then it calculates the absolute value of that same change. These two series represent direction and total movement.
Both series are then smoothed in two stages. The first stage uses the selected fast smoothing method and fast length. The second stage uses the selected slow smoothing method and slow length. After these smoothing steps, the script divides the smoothed directional movement by the smoothed absolute movement and multiplies the result by 100. This creates a normalized momentum reading.
That normalized reading becomes the main oscillator value. A separate signal line is then calculated using the selected signal smoothing method and signal length. The histogram is the difference between the main oscillator and the signal line.
This construction allows the histogram to react to changing momentum conditions while remaining more structured than a simple unsmoothed rate-of-change style plot.
How to read the histogram
When the histogram is above zero, the main oscillator is above its signal line, which suggests positive momentum pressure. When the histogram is below zero, the main oscillator is below its signal line, which suggests negative momentum pressure.
If histogram bars are growing while already above zero, that often means bullish momentum is strengthening. If histogram bars are shrinking above zero, bullish pressure may still be present, but it is losing force. The same logic applies below zero: expanding negative bars can suggest increasing bearish pressure, while shrinking negative bars can suggest that bearish momentum is weakening.
The zero line is the main structural reference. Crosses above and below zero can be used to identify transitions in short-term momentum balance. However, like any momentum tool, the histogram should be interpreted in context, especially when price is ranging or when volatility suddenly expands.
EMA overlays on the histogram
The script includes two optional EMA lines, named Yellow EMA and Blue EMA in the settings. These are calculated from the histogram values, not from price.
Their purpose is visual smoothing. Some traders prefer to read the raw histogram alone. Others prefer to see one or two smoothed references that make short swings easier to interpret. Because these EMAs are applied to the histogram, they can help reveal whether momentum is accelerating into a move, flattening, or starting to roll over before a more visible shift in the histogram bars occurs.
The Yellow EMA is typically used as the faster smoothing line, while the Blue EMA can be treated as the slower companion line. Users may keep both hidden, display one of them, or display both depending on their preferred chart-reading style.
Adaptive RSI module
The Adaptive RSI included in this script is designed as an auxiliary momentum filter rather than a standard standalone RSI replacement. Instead of using the classic up-close versus down-close averaging approach only, this version evaluates directional pressure using the relationship between recent range expansion, recent range contraction, and ordinary bar-to-bar movement.
The script first examines the highest and lowest values over the selected RSI length. From there it measures whether the recent range is expanding upward, expanding downward, or whether current movement is better represented by the direct step from one bar to the next. That directional movement is then smoothed, compared to its absolute magnitude, and transformed into an RSI-style value centered around 50.
To make this RSI usable inside the same pane as the histogram, the script recenters it around zero by subtracting 50 and then multiplying the result by the RSI Scale input. The signal line for the Adaptive RSI is calculated separately using its own signal length and smoothing mode.
This gives the user a secondary confirmation line that can be visually aligned with the histogram without opening another indicator panel.
How to read the Adaptive RSI in this script
Because the Adaptive RSI is centered and scaled, it should not be interpreted exactly like a classic RSI pane. Its purpose here is relative confirmation.
If the Adaptive RSI is rising and the histogram is also strengthening, the two layers are confirming each other. If the histogram is trying to recover while the Adaptive RSI remains weak or rolls over quickly, that may suggest the move has limited follow-through. If both the histogram and the Adaptive RSI signal line turn together, momentum alignment is clearer. If one improves while the other lags, the market may be in transition or lacking conviction.
The optional overbought, midline, and oversold levels provide extra visual structure for this centered RSI display. Since the RSI is scaled into the histogram pane, these levels are translated into centered equivalents instead of being shown as standard 70, 50, and 30 horizontal lines in a separate RSI panel.
Input settings explained
Fast Length controls the first smoothing stage of the main momentum calculation. Smaller values make the oscillator more responsive. Larger values make it smoother and slower.
Slow Length controls the second smoothing stage of the main oscillator. Increasing it generally reduces noise further and creates a more stable but slower-moving histogram.
Signal Length controls how quickly the oscillator signal line responds. A shorter signal length makes the histogram react faster because the gap between oscillator and signal changes more quickly. A longer signal length tends to produce smoother histogram transitions.
Fast Smoothing determines the smoothing method used in the first stage of the oscillator calculation. Slow Smoothing determines the smoothing method used in the second stage. Signal Smoothing determines the smoothing method used for the oscillator signal line. Available choices are EMA, SMA, RMA, WMA, HMA, and TMA.
Yellow EMA enables or disables the first histogram EMA overlay. Blue EMA enables or disables the second histogram EMA overlay.
Yellow EMA Length sets the period for the faster EMA overlay on the histogram. Blue EMA Length sets the period for the second EMA overlay.
Show Adaptive RSI enables or disables the centered Adaptive RSI line.
Show RSI Signal enables or disables the signal line of the Adaptive RSI.
Show RSI Levels enables or disables the centered overbought, midline, and oversold reference levels for the Adaptive RSI display.
RSI Source defines which price source is used for the Adaptive RSI calculation. The default is HLC3, but the user can choose any source supported by Pine input.source.
RSI Length controls the lookback used by the Adaptive RSI model.
RSI Smoothing selects the smoothing method applied inside the Adaptive RSI calculation.
RSI Signal Length controls the smoothing length of the Adaptive RSI signal line.
Signal Smoothing in the RSI section selects the smoothing method used for the Adaptive RSI signal line.
RSI Scale controls how strongly the centered RSI is expanded or compressed inside the histogram pane. Lower values make the RSI layer more compact. Higher values make it visually more pronounced.
RSI Overbought sets the upper reference threshold used by the Adaptive RSI.
RSI Oversold sets the lower reference threshold used by the Adaptive RSI.
Smoothing modes explained briefly
EMA responds relatively quickly and is often a good default for momentum work.
SMA is straightforward and balanced, but usually a bit slower in turning points.
RMA is smoother and often produces steadier transitions.
WMA places more emphasis on recent values than SMA.
HMA is generally more responsive and may suit users who want faster turning behavior with reduced lag.
TMA is heavily smoothed and may suit users who prefer a calmer visual structure over fast reaction.
Different smoothing combinations can materially change the character of the indicator. A user looking for responsiveness may prefer faster lengths and more reactive smoothing types. A user focused on broader trend pressure may prefer heavier smoothing and longer lengths.
Practical ways to use the script
One common approach is to use the histogram as the primary trigger layer and the Adaptive RSI as a confirmation filter. In that workflow, the user watches for histogram recovery from negative values, histogram expansion above zero, or histogram contraction below zero, then checks whether the Adaptive RSI is moving in the same direction.
Another approach is to focus on momentum quality rather than signals. In that case, the user may ignore exact crosses and instead study whether histogram bars are expanding, flattening, or diverging in behavior from price structure. The EMA overlays can be helpful here because they smooth the histogram without hiding its basic structure.
Some users may also treat the script as a trend-phase tool. Sustained positive histogram behavior combined with a stable or rising Adaptive RSI can support a bullish phase reading. Sustained negative histogram behavior combined with weak Adaptive RSI behavior can support a bearish phase reading. Mixed readings can indicate consolidation, transition, or an early reversal attempt that still lacks confirmation.
Important interpretation notes
This indicator is designed to measure momentum structure, not to predict the future. It should not be treated as a standalone trading system.
Momentum indicators can remain strong or weak for longer than expected during trending conditions. They can also produce frequent transitions during sideways markets. For that reason, this script is best used with price structure, higher timeframe context, risk management, and the user’s own trade process.
No divergence module is included in this version. The focus of the script is the histogram engine, histogram EMA overlays, and the Adaptive RSI confirmation layer.
Who this script may be useful for
This script may be useful for traders who want a momentum-focused indicator that remains visually compact while still offering more than a single raw oscillator line. It can suit discretionary traders who read chart structure manually, as well as users who want a clean supporting tool for directional bias, momentum confirmation, or timing refinement.
It may be especially useful for users who like histogram-based momentum analysis but also want an additional internal filter without loading a second separate RSI pane.
Open-source note
This script is published as open-source so traders and Pine users can study the logic, verify how it works, adapt it to their own process, and build on it if they find it useful. Indicator

Volume Profile█ VOLUME PROFILE
Volume-at-Price Analysis with POC, VAH & VAL
A powerful volume-at-price analysis overlay that calculates and visualizes the Point of Control (POC) , Value Area High (VAH) , and Value Area Low (VAL) directly on your chart. It reveals where the most trading activity occurred and provides real-time price position analysis — helping you identify high-probability support/resistance levels and mean-reversion zones.
Free and Open Source.
█ THE CONCEPT: WHY VOLUME PROFILE MATTERS
Price charts show when trading happened. Volume Profile shows where it happened. The distribution of volume across price levels reveals the market's true valuation zones:
Point of Control (POC) — The price with the highest accumulated volume. Acts as a magnet for price and the strongest single S/R level.
Value Area (70%) — The range containing 70% of all traded volume. Defines what the market considers "fair value."
Above/Below VA — Price outside the value area signals potential overextension or breakout.
Institutional traders, market makers, and algorithmic systems all reference volume profile levels.
█ CORE FEATURES
1. Volume Profile Engine
Distributes each bar's volume proportionally across the price rows it spans, building a precise volume-at-price histogram:
POC — Highest volume row = strongest support/resistance
VAH — Upper boundary of the 70% value area = resistance
VAL — Lower boundary of the 70% value area = support
Row count is configurable (10-50 levels).
2. Profile Anchoring
Three anchor modes control how the profile is built:
Rolling — Continuously recalculated over the last N bars. Best for real-time analysis.
Session — Resets every new trading day. Best for intraday context.
Week — Resets every new trading week. Best for swing context.
3. Price Position Analysis
Real-time classification of price relative to the value area:
ABOVE VA — Potential overextension or breakout
BELOW VA — Potential undervaluation or breakdown
AT POC — High-probability mean-reversion zone
IN VA — Normal trading range
4. Bounce & Rejection Signals
Automatic detection of price interaction with key volume levels:
POC Bounce Up/Down — Price touches POC and reverses
VAL Rejection — Price tests VAL and bounces up (bullish)
VAH Rejection — Price tests VAH and bounces down (bearish)
5. Volume Histogram Visualization
A horizontal bar chart displayed directly on the price chart showing the volume distribution. POC row highlighted with a distinct color.
█ AUTO-TIMEFRAME ADAPTATION
All parameters automatically adjust based on the chart timeframe:
1-5 min → Lookback 30, 18 Rows, Histogram Width 8
15-30 min → Lookback 40, 20 Rows, Histogram Width 10
1 Hour → Lookback 50, 24 Rows, Histogram Width 15
4 Hour → Lookback 70, 28 Rows, Histogram Width 18
Daily → Lookback 100, 32 Rows, Histogram Width 22
Weekly+ → Lookback 150, 40 Rows, Histogram Width 30
█ DASHBOARD
A compact, dark-themed info panel displaying:
POC — Current Point of Control price level
VAH / VAL — Value Area boundaries
Position — Current price position (ABOVE VA / BELOW VA / AT POC / IN VA)
To POC — Distance from current price to POC in percent
Anchor — Active profile anchor mode
VA Range — Width of the value area in price units
█ ALERTS (4 CONDITIONS)
POC Bounce Up — Bullish bounce off the Point of Control
POC Bounce Down — Bearish bounce off the Point of Control
VAL Rejection — Bullish rejection at Value Area Low
VAH Rejection — Bearish rejection at Value Area High
█ NON-REPAINTING
The volume profile is calculated from confirmed bar data only. Rolling mode recalculates the full lookback window on each bar using historical high/low/volume — no future data is used. Session and Week modes accumulate incrementally within the anchor period. No repainting.
█ WORKS ON
Crypto, Forex, Stocks, Futures, Indices — any timeframe from 1 minute to Monthly.
█ DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Always do your own research and manage your risk. Past performance does not guarantee future results. Trading involves substantial risk of loss.
Indicator

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

Momentum Pressure Gauge [JOAT] Momentum Pressure Gauge
Introduction
The Momentum Pressure Gauge is an advanced institutional-grade analysis tool designed to measure the underlying buying and selling pressure that drives market movements. This indicator goes beyond simple momentum oscillators by quantifying the actual pressure differential between buyers and sellers, incorporating volume analysis, detecting divergences, and identifying when momentum is reaching extreme levels. Understanding pressure and momentum is crucial because price often follows pressure - by measuring the force behind price movements, traders can anticipate future direction with greater confidence.
This tool is built for traders who understand that markets are driven by the constant battle between buyers and sellers, and that the outcome of this battle is reflected in pressure and momentum patterns. Whether you're a day trader timing entries with precision, a swing trader identifying trend strength, or a position trader spotting major reversals, this gauge provides the sophisticated pressure analysis needed to trade with the dominant force rather than against it.
Why This Indicator Exists
Most traders use basic momentum indicators without understanding the underlying pressure dynamics or volume participation. This indicator addresses that limitation by:
Pressure Analysis: Measures actual buying/selling pressure in each bar
Volume Weighting: Incorporates volume to confirm pressure significance
Momentum Scoring: Provides composite momentum scores with multiple factors
Divergence Detection: Identifies price/momentum divergences for early reversal signals
Extreme Zone Identification: Flags overbought/oversold conditions with pressure context
Energy Wave Analysis: Combines pressure with volume and price energy
The gauge transforms abstract momentum concepts into concrete pressure measurements that reveal the true force behind market movements.
Core Components Explained
1. Raw Pressure Calculation
The indicator measures buying and selling pressure in each bar:
// Raw buying/selling pressure
f_pressure_raw() =>
float range_val = high - low
float buy_pressure = range_val > 0 ? (close - low) / range_val : 0.5
float sell_pressure = range_val > 0 ? (high - close) / range_val : 0.5
// Apply smoothing
float pressure_ratio = ta.ema(raw_buy, i_pressure_len)
float pressure_smooth = ta.ema(pressure_ratio, i_smooth_len)
Pressure components:
Buy Pressure: Where price closed within the bar's range (0-1)
Sell Pressure: Complementary sell pressure (0-1)
Pressure Ratio: Buy pressure as a ratio
Smoothing: EMA smoothing for cleaner signals
Range Normalization: Pressure relative to bar's range
Pressure above 0.5 indicates buying dominance, below 0.5 indicates selling dominance.
2. Volume-Weighted Pressure
Volume analysis confirms the significance of pressure:
// Volume relative strength
float vol_sma = ta.sma(volume, i_pressure_len)
float vol_ratio = vol_sma > 0 ? volume / vol_sma : 1.0
float vol_weight = math.min(vol_ratio, 3.0) / 3.0 // Cap at 3x average
// Volume-weighted pressure
float vw_pressure = pressure_smooth * (0.7 + vol_weight * 0.3)
// Cumulative pressure
float cum_pressure = ta.sma(raw_buy, i_pressure_len) - 0.5 // Centered at 0
Volume features:
Volume Ratio: Current volume relative to average
Volume Weight: Normalized volume influence (0-1)
VW Pressure: Pressure adjusted for volume participation
Cumulative Pressure: Running pressure average
Volume Cap: Prevents extreme volume from distorting signals
High volume confirms pressure significance, while low volume questions its reliability.
3. Momentum Analysis
Multiple momentum factors are combined for comprehensive analysis:
// Pressure momentum (rate of change)
float pressure_momentum = pressure_smooth - pressure_smooth
// Pressure acceleration
float pressure_accel = pressure_momentum - pressure_momentum
// Composite pressure score (-100 to +100)
float composite_score = (pressure_smooth - 0.5) * 200
// Momentum-adjusted score
float momentum_adjustment = pressure_momentum * 100
float adjusted_score = composite_score + momentum_adjustment * 0.3
Momentum components:
Pressure Momentum: Rate of change in pressure
Pressure Acceleration: Change in momentum (second derivative)
Composite Score: Normalized pressure score (-100 to +100)
Momentum Adjustment: Score adjusted for momentum
Acceleration Detection: Identifies momentum shifts
Momentum analysis reveals not just current pressure but its direction and acceleration.
4. WaveTrend Integration
The WaveTrend oscillator adds an additional momentum layer:
f_wavetrend(int channel_len, int avg_len) =>
float ap = hlc3
float esa = ta.ema(ap, channel_len)
float d = ta.ema(math.abs(ap - esa), channel_len)
float ci = d > 0 ? (ap - esa) / (0.015 * d) : 0.0
float wt1_local = ta.ema(ci, avg_len)
float wt2_local = ta.sma(wt1_local, 4)
// WaveTrend signals
bool wt_bullish = wt1 > wt2 and wt1 > wt1
bool wt_bearish = wt1 < wt2 and wt1 < wt1
bool wt_oversold = wt1 < -60
bool wt_overbought = wt1 > 60
WaveTrend features:
WT1/WT2 Lines: Fast and slow WaveTrend lines
Cross Signals: Line crossovers for momentum changes
Extreme Levels: Overbought (>60) and oversold (<-60)
Trend Confirmation: Line slope for additional confirmation
Integration: Combined with pressure for confluence
WaveTrend provides an independent momentum confirmation.
5. Energy Wave Calculation
The indicator combines multiple energy sources:
// Energy combines pressure momentum with volume energy
float vol_energy = vol_sma > 0 ? (volume - vol_sma) / vol_sma * 100 : 0
float atr_14 = ta.atr(14)
float price_energy = atr_14 > 0 ? (close - open) / atr_14 * 100 : 0
float combined_energy = (pressure_momentum * 100 + vol_energy * 0.3 +
price_energy * 0.2) / 1.5
float energy_smooth = ta.ema(combined_energy, 5)
Energy components:
Volume Energy: Volume deviation from average
Price Energy: Price movement relative to ATR
Pressure Energy: Momentum contribution
Combined Energy: Weighted average of all energies
Energy Smoothing: EMA for cleaner energy signals
Energy waves show the underlying power driving market movements.
6. Divergence Detection
The indicator identifies price/momentum divergences:
// Price direction
float price_change = close - close
int price_dir = price_change > 0 ? 1 : price_change < 0 ? -1 : 0
// Pressure direction
int pressure_dir = pressure_momentum > i_momentum_thresh ? 1 :
pressure_momentum < -i_momentum_thresh ? -1 : 0
// Divergence detection
bool bullish_divergence = price_dir == -1 and pressure_dir == 1
bool bearish_divergence = price_dir == 1 and pressure_dir == -1
Divergence types:
Bullish Divergence: Price falling but pressure rising
Bearish Divergence: Price rising but pressure falling
Hidden Divergence: Continuation patterns
Regular Divergence: Reversal patterns
Threshold Filter: Minimum momentum for valid divergence
Divergences often precede significant price reversals.
7. State Classification System
The indicator classifies market states based on pressure:
// Pressure state
// 2 = extreme buying, 1 = buying, 0 = neutral, -1 = selling, -2 = extreme selling
var int pressure_state = 0
if pressure_smooth >= i_extreme_high
pressure_state := 2
else if pressure_smooth > 0.5 + i_momentum_thresh
pressure_state := 1
else if pressure_smooth <= i_extreme_low
pressure_state := -2
else if pressure_smooth < 0.5 - i_momentum_thresh
pressure_state := -1
// Momentum state
// 1 = accelerating, 0 = steady, -1 = decelerating
var int momentum_state = 0
if pressure_accel > i_momentum_thresh / 2
momentum_state := 1
else if pressure_accel < -i_momentum_thresh / 2
momentum_state := -1
State meanings:
Extreme Buying: Maximum buying pressure (>70%)
Buying: Moderate buying pressure (50-70%)
Neutral: Balanced pressure (40-60%)
Selling: Moderate selling pressure (30-50%)
Extreme Selling: Maximum selling pressure (<30%)
Accelerating: Momentum increasing
Decelerating: Momentum decreasing
State classification provides clear, actionable market conditions.
Visual Elements
Pressure Histogram: Main pressure display with gradient coloring
Multi-Layer Glow: Intensity-based glow effects
Energy Wave: Separate energy visualization
Momentum Line: Momentum rate of change
WaveTrend Lines: Additional momentum confirmation
Divergence Markers: Visual divergence signals
Extreme Zones: Highlighted overbought/oversold areas
Dashboard: Comprehensive metrics panel
Signal Labels: Key event labels with spacing
The dashboard displays:
1. Current pressure state and intensity
2. Momentum state and acceleration
3. Composite score and direction
4. Volume weight and analysis
5. Divergence status and alerts
6. Energy wave readings
7. Confluence quality score
8. WaveTrend status and signals
9. Overall signal strength
Input Parameters
Pressure Settings:
Pressure Period: Pressure calculation period (default: 14)
Smoothing Period: EMA smoothing (default: 5)
Momentum Lookback: Momentum calculation (default: 10)
Thresholds:
Extreme Buying: Maximum buying level (default: 0.7)
Extreme Selling: Maximum selling level (default: 0.3)
Momentum Threshold: Minimum momentum (default: 0.05)
WaveTrend Settings:
Channel Length: WT calculation period (default: 9)
Average Length: WT smoothing period (default: 12)
Enable WT: Toggle WaveTrend on/off
Visual Settings:
Color Scheme: Customizable pressure colors
Glow Effects: Enable visual enhancements
Show Zones: Display extreme zones
Show Labels: Control signal label frequency
How to Use This Indicator
Step 1: Assess Pressure State
Check the dashboard for current pressure state. Extreme states (>70% or <30%) often precede reversals, while moderate states suggest continuation.
Step 2: Analyze Momentum
Look at momentum direction and acceleration. Accelerating momentum in the pressure direction confirms strength, while deceleration warns of potential reversals.
Step 3: Check Volume Confirmation
Ensure pressure is supported by volume. High volume pressure is more reliable than low volume pressure.
Step 4: Watch for Divergences
Divergences are powerful reversal signals. A bullish divergence (price down, pressure up) suggests buying opportunity, while bearish divergence suggests selling.
Step 5: Monitor Energy Waves
Energy waves show the underlying power. Rising energy confirms current pressure, while falling energy suggests weakening.
Step 6: Use Extreme Zones
Extreme buying (>70%) often marks tops, while extreme selling (<30%) often marks bottoms. These are contrarian signals.
Best Practices
Extreme pressure states (>70% or <30%) often precede reversals
Divergences are most reliable at extreme levels
Volume confirmation is essential - pressure without volume is suspect
Momentum acceleration confirms pressure strength
Energy waves provide early warning of momentum shifts
Multiple timeframe analysis improves signal reliability
Combine with trend analysis for optimal results
Use WaveTrend crossovers for additional confirmation
Keep a pressure journal to track patterns
Be patient for the highest quality setups
Trading Applications
Momentum Trading:
Enter when pressure > 60% and accelerating
Add to positions as momentum increases
Exit when pressure decelerates or reverses
Use volume to confirm signal strength
Reversal Trading:
Look for extreme pressure (>70% or <30%)
Wait for divergence confirmation
Enter on first sign of pressure reversal
Target mean reversion to 50% level
Divergence Trading:
Identify clear price/pressure divergences
Confirm with volume and energy analysis
Enter on momentum shift confirmation
Use tight stops due to reversal nature
Strategy Integration
This indicator enhances any trading system:
Use pressure as a trend confirmation filter
Import momentum scores for signal weighting
Apply divergence detection for early warnings
Use extreme zones for contrarian signals
Integrate volume-weighted pressure for confirmation
Export pressure states for custom logic
Technical Implementation
Built with Pine Script v6 featuring:
Advanced pressure calculation with range normalization
Volume-weighted analysis with capping
Multi-factor momentum scoring system
WaveTrend oscillator integration
Energy wave calculation combining multiple sources
Sophisticated divergence detection with thresholds
State classification with multiple dimensions
Multi-layer visualization with glow effects
Real-time dashboard with 10 key metrics
Alert conditions for all major pressure events
The code uses confirmed bars for all calculations to prevent repainting.
Originality Statement
This indicator is original in its comprehensive approach to pressure and momentum analysis. While individual components (RSI, MACD, WaveTrend) are established tools, this indicator is justified because:
It synthesizes pressure analysis with volume weighting for more accurate signals
The energy wave concept combines multiple momentum sources into unified analysis
State classification provides clear, actionable market conditions
Divergence detection includes threshold filtering for higher quality signals
Multi-layer visualization with glow effects enhances readability
The dashboard presents complex pressure dynamics in an accessible format
Volume-weighted pressure adds confirmation often missing from momentum indicators
Acceleration analysis provides early warning of momentum shifts
Export functions enable integration with any trading system
Each component provides unique insights: pressure shows force, volume shows participation, momentum shows direction, energy shows power, and divergence shows potential reversals
The indicator's value lies in measuring the underlying forces that drive price movements rather than just tracking price itself, providing traders with deeper insight into market dynamics and potential future direction.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Pressure and momentum analysis is a tool for understanding market forces, not a prediction system.
Pressure and momentum can change suddenly due to news events, economic data, or changes in market sentiment. Extreme pressure states can persist longer than expected, and divergences can fail without warning. The indicator's signals are mathematical calculations based on historical patterns and should be used in conjunction with other forms of analysis.
Always use proper risk management, including stop losses and position sizing appropriate for your account and risk tolerance. Never trade against strong pressure without confirmation - the trend can remain in force longer than your account can survive.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this system.
-Made with passion by officialjackofalltrades
Indicator

MACD Advanced: Trend-Weighted MomentumMACD Advanced Overview
MACD Advanced is a refined version of the classic Moving Average Convergence Divergence. While the standard MACD identifies changes in momentum, it often produces false signals in ranging markets or against a strong higher-timeframe trend. This script addresses that by "tilting" the MACD calculation based on the slope of a Higher Timeframe (HTF) Moving Average.
How it Works
The script integrates a Trend Bias Factor derived from the rate of change of a long-period EMA (default 200) from a user-defined timeframe.
The Math: It calculates the ratio between the current HTF EMA and its value $n$ bars ago. This ratio is then used to offset the MACD line.
Bullish Bias: If the HTF EMA is sloping upward, the MACD is shifted higher, making bearish crossovers harder to trigger and bullish ones more sensitive.
Bearish Bias: If the HTF EMA is sloping downward, the MACD is dragged lower, prioritizing short-side momentum.
Key Features
MTF Integration: Analyze the daily trend while trading on the 5m or 15m chart.
Dynamic Histogram: The visual fill between the MACD and its momentum provides a clear look at when momentum is accelerating or exhausting relative to the trend.
Customizable Sensitivity: Adjust the lookback period for the trend slope to match your specific asset’s volatility.
How to Trade
Trend Confirmation: Look for the MACD line (the columns) to cross the zero line. This indicates that both short-term momentum and long-term trend are in alignment.
Momentum Exhaustion: When the inner histogram (the fill) begins to shrink back toward the MACD columns, it suggests a potential pull-back or profit-taking zone.
Divergences: Look for price making a new high while the MACD Advanced makes a lower high; the trend-weighting makes these divergences more prominent during trend exhaustion.
Technical Approach
Normalization of MTF Data: The script uses request.security with barmerge.gaps_off to ensure that higher timeframe data is mapped correctly to the current chart bars without creating visual "steps" or "staircases."
The Delta Calculation: Instead of a simple boolean filter,
we calculate a relative value r = EMA_ current/EMA_ lookback
By adding r - 1 to the standard MACD calculation, we create a non-linear offset. This means the more aggressive the trend, the more the MACD is displaced.
Visual Architecture: The script uses two plot outputs (g1 and g2) and a fill() function. This creates a "ribbon" effect that is more intuitive than the standard "centered" histogram, as it shows momentum relative to the trend-weighted line rather than a static zero axis.
Since this version of the MACD is "weighted" by a higher-timeframe trend, it changes how you read common signals. On a standard chart, the MACD just shows momentum; here, it shows momentum relative to the "big picture" slope.
Here is how to effectively use the MACD Advanced on a live chart:
1. Finding the "Trend-Momentum" Alignment
The most powerful signal from this indicator occurs when the Trend Factor and the Momentum Histogram both agree.
The Bullish Setup: Look for the MACD columns (the "base") to be above the zero line, while the inner fill (the "histogram") is bright green.
Interpretation: The Daily trend is up, and the intraday momentum is also accelerating.The
Bearish Setup: Look for the MACD columns to be below the zero line, while the inner fill is bright red.
Interpretation: The Daily trend is down, and intraday selling pressure is increasing.
2. Reading the "Hidden" Divergence
Because we’ve added a trend offset r-1, this indicator identifies "Trend Exhaustion" better than a standard MACD.
Standard Divergence: Price makes a higher high, but MACD makes a lower high.
Advanced Divergence: If the price makes a higher high, but the MACD Advanced is flat or lower, it means the Higher Timeframe EMA is losing its slope. Even if the price looks strong, the "Big Picture" is flattening out. This is often a precursor to a major reversal.
3. The "Snap-Back" Trade (Mean Reversion)
Since you are using a 200 EMA as the trend filter, the indicator will naturally pull back toward zero when the price gets too far from that average.
The Signal: If the MACD Advanced is "overextended" (very high or very low relative to its recent history) and the inner histogram crosses back toward the zero line, it’s a sign that the price is likely to "snap back" to the mean.
Application: This is great for exiting a trend trade before the actual trend reversal happens.
Pro Tip: The "Zero-Cross" Filter
In a strong uptrend (Daily EMA 200 is rising), the MACD Advanced will rarely cross below zero. If you see the histogram dip into the red while the MACD columns stay green/above zero, treat that as a "Buy the Dip" opportunity rather than a "Sell" signal.
The Chart shows regular MACD vs ADVANCED MACD one can easily observe the difference between them and the trend is identified easily. Indicator

QQE Momentum Pulse Pro [identityKa]Overview
The QQE Momentum Pulse Pro is a highly responsive sub-chart oscillator designed to measure the velocity and magnitude of directional price movements. Traditional Quantitative Qualitative Estimation (QQE) indicators suffer from severe signal lag due to triple-layered EMA smoothing. This script addresses that core flaw by introducing an optional "Zero-Lag Engine," swapping the standard exponential smoothing for a dynamic Hull Moving Average (HMA), effectively eliminating lag while preserving the indicator's mathematical robustness.
Underlying Mathematics & Enhancements
The foundation of the engine is built upon the Relative Strength Index (RSI).
Volatility Trailing Bands: The script calculates the Absolute True Range of the smoothed RSI, which is then further smoothed using Wilder's methodologies. This creates dynamic fast and slow trailing bands that track the momentum.
The Pulse Histogram: Instead of plotting multiple confusing lines on the chart, this script calculates the exact mathematical difference (spread) between the smoothed RSI and the dynamic trailing band. This spread is plotted as a zero-line oscillating histogram.
Four-Color State Logic: The histogram's color intensity provides instant visual feedback regarding momentum acceleration. Bright Neon Green indicates rising positive momentum (acceleration), whereas Dark Green indicates positive but decaying momentum (deceleration). The same logic applies inversely for bearish trends with Bright/Dark Red.
HUD Dashboard & AI Logic
To prevent traders from getting trapped in exhausting trends, the integrated on-chart panel translates the histogram's state into a mechanical directive:
LONG: Triggered when the histogram is positive (above the zero line) and its value is strictly greater than the previous bar (actively growing).
SHORT: Triggered when the histogram is negative (below the zero line) and its value is strictly less than the previous bar (actively deepening).
Dangerous: This is the crucial risk-management state. It is triggered the exact moment the histogram shifts from bright to dark colors. It indicates a mathematical divergence where the macro trend may still exist, but the immediate momentum driving it is rapidly fading.
How to Use It
This tool is best paired with a main-chart trend indicator (like a SuperTrend or Moving Average crossover). Traders should look to execute LONG or SHORT entries when the Pulse Histogram crosses the zero line and the AI Suggestion aligns with their directional bias. If the AI Suggestion switches to "Dangerous", traders should consider scaling out of active positions, tightening stop-losses, or avoiding taking new trend-continuation entries, as a pullback or consolidation phase is statistically imminent. Indicator

Indicator

Indicator

Gaussian Volume Profile [LuxAlgo]The Gaussian Volume Profile indicator is a sophisticated volume analysis tool that uses the Levenberg-Marquardt optimization algorithm to fit a Sum of Gaussians model to historical volume distribution.
This approach transcends traditional discrete volume profiles by providing a continuous, noise-reduced representation of liquidity clusters, allowing for the precise identification of high-volume nodes and their respective price boundaries.
🔶 USAGE
The indicator projects a lateral volume density map to the right of the current price action. Users can utilize this tool to identify "fair value" zones where the Gaussian peaks are most concentrated. Unlike standard profiles that show jagged horizontal bars, this tool provides a smooth "fit" line that highlights the true center of gravity for volume at specific price levels.
🔹 Identifying High-Volume Nodes
The script automatically detects local maxima (peaks) within the fitted Gaussian model. These peaks represent the most significant price levels where the highest density of trading occurred. Horizontal dashed lines are drawn at these apexes, color-coded to match the specific Gaussian component that is most dominant at that price.
🔹 Zone Width and Volatility
By observing the width (standard deviation) of the individual Gaussian components (the dotted curves), traders can gauge the "breadth" of a value area. A narrow, sharp peak suggests a very specific price level of agreement, while a wide, shallow curve indicates a broad range where volume was distributed less precisely.
🔶 DETAILS
This tool represents a scientific advancement over regular Volume Profiles by applying a Gaussian Density model to market data:
Noise Reduction: Discrete profiles are often "noisy," with small volume gaps between price ticks. The Sum of Gaussians model acts as a sophisticated filter, smoothing out insignificant variances to reveal the underlying structural liquidity.
Levenberg-Marquardt Optimization: The script utilizes the LM algorithm, a standard in non-linear least squares problems, to iteratively refine the fit of multiple Gaussian pulses. This ensures the model converges on the most mathematically accurate representation of the volume data.
Precise Liquidity Centers: While a standard profile bin might be several ticks wide, the Gaussian apex provides a mathematically derived "center" ($\mu$) for liquidity, often offering more precise support and resistance levels.
Continuous Distribution: Because it models volume as a continuous function, it can estimate volume density between discrete price bins, providing a more fluid view of market interest.
The visual output combines a lateral histogram with a bold Gaussian density curve, color-coded components, and auto-detected peak levels for a comprehensive view of institutional interest.
🔶 SETTINGS
🔹 Profile Settings
Lookback Window: The number of historical bars used to calculate the volume profile distribution.
Number of Bins: Determines the vertical resolution of the profile. More bins provide more detail but require more computation.
🔹 Gaussian Settings
Max Potential Peaks: The maximum number of Gaussian components (nodes) the algorithm will attempt to fit to the data.
Max Iterations: Controls how many times the LM optimizer refines the fit. Higher values improve accuracy but may impact performance.
Initial Lambda: The damping factor for the optimization algorithm, affecting the early steps of the fitting process.
🔹 Visuals
Histogram Resolution: The maximum horizontal length of the projected histogram and fit line, measured in bar widths.
Highlight Window Range: Toggles a visual background box covering the historical lookback area for context.
Highlight Detected Peaks: Detects local maxima in the final fit and draws horizontal dashed levels at those price points.
Fit Color: Sets the static color for the main density curve.
Auto: When enabled, the fit color automatically adapts to your chart's foreground color (e.g., white on dark backgrounds).
Indicator

Gamma Hedging Pressure Gamma Hedging Pressure (Proxy) – Market Maker Gamma Exposure Estimator
This open-source, non-overlay indicator provides a **proxy** for dealer/market-maker gamma hedging pressure using only standard OHLCV data — no options chain or implied volatility required.
Core Concept
In options markets, gamma measures how much delta changes with price movement. When dealers are **net short gamma** (negative gamma), they must hedge aggressively in the direction of the move → this amplifies trends and breakouts. When **net long gamma** (positive gamma), they hedge against the move → this creates mean-reversion and pinning behavior.
Because true gamma exposure is hidden (dealer books are private), this script estimates hedging pressure indirectly by combining:
- Volatility expansion (normalized range)
- Price acceleration (second derivative)
- Abnormal volume participation
High positive values → likely negative gamma regime (trend acceleration)
High negative values → likely positive gamma regime (reversion pressure)
Near zero → neutral/chop
Why this proxy is useful
True gamma dashboards require Level 2 options data and are often delayed or paid. This lightweight version:
- Works on any instrument with volume (stocks, futures, forex proxies, crypto)
- Updates in real time
- Helps traders anticipate whether the current move is likely to accelerate (negative gamma) or fade (positive gamma)
- Useful as a regime filter alongside support/resistance, order flow, or momentum tools
How It Works – Step by Step
1. Volatility Expansion
- Normalized range = (high - low) / ATR(14)
2. Price Acceleration
- First difference: close - close
- Second difference (acceleration): diff - diff
3. Volume Participation
- Normalized volume = volume / SMA(volume, 20)
4. Raw Pressure
- rawPressure = normalized range × acceleration × normalized volume
5. Smoothed Gamma Pressure
- gammaPressure = EMA(rawPressure, 5) // short smoothing for responsiveness
6. Optional Daily Reset
- If enabled, resets to 0 at the start of each new day (useful for intraday)
7. Regime Classification
- Negative Gamma (red): gammaPressure > +threshold (default 0.5) → trend/breakout likely
- Positive Gamma (green): gammaPressure < -threshold → mean-reversion likely
- Neutral (gray): within ±threshold → chop/consolidation
Visual Output
- Histogram: colored by regime (red = negative gamma / trend accel, green = positive gamma / reversion, gray = neutral)
- Zero line reference
- Background tint: red/green during strong regimes
- Last-bar label: "NEGATIVE GAMMA – Trend / Breakout", "POSITIVE GAMMA – Mean Reversion", or "NEUTRAL"
How to Use
- Best on intraday timeframes (5m–1h) for futures (NQ, ES, GC), indices, or high-volume stocks
- Daily/4h for swing context on liquid names
- Interpretation examples:
→ Red histogram + rising pressure → dealers likely short gamma → expect trend continuation or acceleration
→ Green histogram + falling pressure → dealers long gamma → expect fading moves, pinning near strikes, or reversion
→ Gray/neutral → low gamma pressure → range-bound or low-conviction market
- Combine with:
- Key levels (VWAP, previous highs/lows)
- Volume profile or order flow
- Options-related news (expiration days, gamma flips)
- Threshold tuning: 0.3–0.8 depending on instrument volatility (lower for crypto, higher for forex)
Inputs
- ATR Length: default 14
- Volume MA Length: default 20
- Gamma Threshold: default 0.5 (sensitivity for regime coloring)
- Reset on New Session: true = daily reset (recommended for intraday)
Publishing Recommendation
- Publish with a clean chart (e.g., 15m–1h NQ1!, ES1!, or SPY)
- Show a trending period (red histogram) and a ranging/consolidation period (green/gray)
- No extra indicators/drawings needed for basic interpretation
This is an **educational proxy** — not a direct measure of actual dealer gamma. It approximates pressure from observable market behavior. Trading involves significant risk of loss. Use discretion and proper risk management.
Feedback welcome — especially threshold or smoothing suggestions for different markets! Indicator

Rhokeo-VW-RSI Histogram for Cumulative Delta by ZeiirmanRhokeo-VW-RSI Histogram: Volume-Weighted Momentum (use with Cumulative Delta from Zeiierman) Note that Cumulative Delta is a paid indicator.
Overview: The Rhokeo-VW-RSI Histogram is a momentum oscillator designed to filter out market noise by integrating volume directly into the RSI calculation. Unlike a standard RSI, which only considers price change, this indicator weights those changes by the volume occurring at the time.
It creates a momentum profile in the form of a Histogram. If the price moves on high volume, the indicator reflects that strong market interest through its volume-weighted gain and loss calculations. It is particularly effective as a complementary filter for “Cumulative Delta” from Zeiierman to confirm the strength behind a move before you enter a trade.
How It Works The indicator operates on a normalized scale of -1.0 to +1.0 for easier visual interpretation and compatibility with Cumulative Delta indicator:
• The Volume-Weighted Core: Gains and losses are calculated by multiplying the price change by volume to ensure the "Relative Strength" reflects true capital flow.
• Smoothing for Clarity: The raw Volume Weighted RSI (VW-RSI) is processed through a customizable Moving Average—such as SMA, EMA, SMMA, WMA, or VWMA—to produce the smooth histogram.
• Four-Zone Coloring System: The histogram changes color dynamically based on momentum intensity:
o Strong Bull: Price is trending up with high-volume conviction.
o Weak Bull: Positive momentum, but not yet overextended.
o Weak Bear: Negative momentum starting to build.
o Strong Bear: Heavy selling pressure with high-volume conviction.
Key Features
• Shading: The background features optional red and green shading in the "Extreme" zones to warn traders of potential exhaustion areas.
• Dynamic Zero Line: The center line flips color between Green and Red based on whether the VW-RSI is positive or negative.
• Customization: Traders can adjust the smoothing length, source price, and the specific levels for overbought/oversold zones.
Best Use Case for New Traders: New traders often get "faked out" by price spikes that have no volume behind them. This indicator helps confirm and time better entries:
1. Wait for your Cumulative Delta indicator to give a signal.
2. Check the VW-RSI Histogram and whether it confirms or not.
3. Long Entry: Only enter if the histogram is positive and rising (above 0).
4. Short Entry: Only enter if the histogram is negative and decreasing (below 0).
________________________________________
Disclaimer
Financial Risk:
• Trading involves significant risk, and most traders lose money.
• This indicator is a tool for technical analysis and does not constitute financial, investment, or trading advice.
• Past performance is not indicative of future results; never trade with money you cannot afford to lose.
Usage & Reliability:
• The Rhokeo-VW-RSI Histogram is provided "as-is" for educational and informational purposes only.
• While volume-weighting aims to filter market noise, no indicator can guarantee 100% accuracy or predict future market movements with certainty.
• This script is intended to be a complementary tool that works well with other indicators in this case the Cumulative Delta from Zeiirman; it should be used in conjunction with other forms of analysis, risk management, and your own due diligence.
Commercial Notice:
• If you are using this alongside a third-party paid indicator, please note that I am not responsible for the performance or support of external products.
• Users are responsible for their own trade execution and account management.
Indicator

[COG] Platypus Platypus
Overview
Platypus is a volume momentum indicator that combines price action, volume analysis, and multi-timeframe confirmation to generate trade signals. Unlike traditional volume indicators, Platypus reconstructs volume momentum by factoring in price velocity, volatility adjustment, and market structure to identify true institutional momentum shifts.
The indicator features a comprehensive filtering system including EMA alignment, background state confirmation, and optional multi-timeframe filters to eliminate false signals and ensure you only trade with the strongest momentum.
Key Features
✅ Volume Momentum Calculation
Volatility-Adjusted Volume: Normalizes volume relative to recent volatility periods
Quiet Market Filtering: Reduces noise during low-activity periods
Spike Detection: Identifies abnormal volume surges with boosted weighting
Momentum Smoothing: EMA-based smoothing prevents erratic signals
✅ Entry Pattern Detection
3-Bar Pattern Requirement: RED → GREEN → GREEN for buys (opposite for sells)
State Management: Prevents consecutive signals in same direction without reset
Background Confirmation: Must align with bullish/bearish market state
EMA Alignment Filter: Ensures trend structure supports the trade direction
✅ Multi-Timeframe Filtering System
HTF Closed Bar Filter: Confirms last closed higher timeframe bar matches direction (no repaint)
HTF Momentum Filter: Requires current HTF bar to match direction (live, prevents delayed entries)
Dual-Filter Capability: Use both filters for maximum precision
✅ Dashboard
Real-time Status Monitoring: Volume trend, background state, EMA order, trade state
Filter Status Display: Shows HTF filter conditions and signal permission
Pattern Detection: Indicates when 3-bar entry pattern is forming
✅ On-Chart Integration
50/100/200 EMAs: Automatically plotted on price chart with customizable colors
Visual Entry Markers: Triangle signals appear on price chart at entry points
Signal Alerts: Built-in alert conditions for all signal types
📚 Core Settings Explained
signalPeriod = input.int(8, "Signal Period", minval=1, group="Core Settings")
Signal Period (Default: 8): Controls the smoothing of the signal line (blue line). Lower values = more responsive, higher values = smoother but slower to react.
volatilityPeriod = input.int(20, "Volatility Period", minval=1, group="Core Settings")
Volatility Period (Default: 20): Lookback period for volume and price range calculations. This period is used to normalize volume relative to recent market conditions.
priceFilterLength = input.int(200, "Price Filter MA Length", minval=1, group="Core Settings")
Price Filter MA Length (Default: 200): The SMA period used for background state determination. Price must be above this MA for bullish background, below for bearish background.
Advanced Settings
momentumMultiplier = input.float(50.0, "Momentum Multiplier", minval=20.0, maxval=80.0, step=2.0, group="Advanced")
Momentum Multiplier (Default: 50.0): Scales the final momentum score. Higher values = larger histogram bars and more sensitivity. Adjust based on your instrument's volatility.
momentumSmoothing = input.int(4, "Momentum Smoothing", minval=1, maxval=15, group="Advanced")
Momentum Smoothing (Default: 4): EMA period applied to raw momentum before normalization. Higher values reduce noise but add lag.
quietThreshold = input.float(0.3, "Quiet Market Filter", minval=0.0, maxval=1.0, step=0.05, group="Advanced")
Quiet Market Filter (Default: 0.3): During low-volume periods, this applies exponential dampening to momentum. Higher values = more aggressive filtering of weak moves.
volStrengthFactor = volRatio < (1.0 + quietThreshold) ? math.pow(volRatio, 2) : volRatio
When volume is less than average + threshold, it squares the ratio (dampening), otherwise uses linear scaling. Indicator

Indicator

Smart RSI Composite [DotGain]Summary
Do you want to know the "True Direction" of the market without getting distracted by noise on a single timeframe?
The Smart RSI Composite simplifies market analysis by aggregating momentum data from 10 different timeframes (5m to 12M) into a single, easy-to-read Histogram.
Instead of looking at 10 separate charts or dots, this indicator calculates the Average RSI of the entire market structure. It answers one simple question: "Is the market predominantly Bullish or Bearish right now?"
⚙️ Core Components and Logic
This indicator works like a consensus mechanism for momentum:
Data Aggregation: It pulls RSI values from 10 customizable slots (Default: 5m, 15m, 1h, 4h, 1D, 1W, 1M, 3M, 6M, 12M). All slots are enabled by default.
Smart Averaging: It calculates the arithmetic mean of all active timeframes. If the 5m chart is bearish but the Monthly chart is bullish, this indicator balances them out to show you the net result.
Histogram Visualization: The result is plotted as a histogram centered around the 50-line (Neutral).
🚦 How to Read the Histogram
The histogram bars indicate the aggregate strength of the trend based on the Average RSI:
🟩 DARK GREEN (Strong Bullish)
Condition: Average RSI > 60.
Meaning: The market is in a strong uptrend across most timeframes. Momentum is firmly on the buyers' side.
🟢 LIGHT GREEN (Weak Bullish)
Condition: Average RSI between 50 and 60.
Meaning: Slight bullish bias. The bulls are in control, but momentum is not yet extreme.
🔴 LIGHT RED (Weak Bearish)
Condition: Average RSI between 40 and 50.
Meaning: Slight bearish bias. The bears are taking control.
🟥 DARK RED (Strong Bearish)
Condition: Average RSI < 40.
Meaning: The market is in a strong downtrend across most timeframes. Momentum is firmly on the sellers' side.
Visual Elements
Center Line (50): This acts as the Zero-Line. Above 50 is bullish, below 50 is bearish.
Zone Lines (30/70): Dashed lines indicate the traditional Overbought/Oversold levels applied to the aggregate average.
Key Benefit
The Smart RSI Composite acts as a powerful Macro Trend Filter .
Pro Tip: Never go long if the Histogram is Dark Red, and avoid shorting when it is Dark Green. Use this tool to align your trades with the overall market momentum.
Have fun :)
Disclaimer
This "Smart RSI Composite" indicator is provided for informational and educational purposes only. It does not, and should not be construed as, financial, investment, or trading advice.
The signals generated by this tool (both "Buy" and "Sell" indications) are the result of a specific set of algorithmic conditions. They are not a direct recommendation to buy or sell any asset. All trading and investing in financial markets involves substantial risk of loss. You can lose all of your invested capital.
Past performance is not indicative of future results. The signals generated may produce false or losing trades. The creator (© DotGain) assumes no liability for any financial losses or damages you may incur as a result of using this indicator.
You are solely responsible for your own trading and investment decisions. Always conduct your own research (DYOR) and consider your personal risk tolerance before making any trades. Indicator

Volume Surprise [LuxAlgo]The Volume Surprise tool displays the trading volume alongside the expected volume at that time, allowing users to spot unexpected trading activity on the chart easily.
The tool includes an extrapolation of the estimated volume for future periods, allowing forecasting future trading activity.
🔶 USAGE
We define Volume Surprise as a situation where the actual trading volume deviates significantly from its expected value at a given time.
Being able to determine if trading activity is higher or lower than expected allows us to precisely gauge the interest of market participants in specific trends.
A histogram constructed from the difference between the volume and expected volume is provided to easily highlight the difference between the two and may be used as a standalone.
The tool can also help quantify the impact of specific market events, such as news about an instrument. For example, an important announcement leading to volume below expectations might be a sign of market participants underestimating the impact of the announcement.
Like in the example above, it is possible to observe cases where the volume significantly differs from the expected one, which might be interpreted as an anomaly leading to a correction.
🔹 Detecting Rare Trading Activity
Expected volume is defined as the mean (or median if we want to limit the impact of outliers) of the volume grouped at a specific point in time. This value depends on grouping volume based on periods, which can be user-defined.
However, it is possible to adjust the indicator to overestimate/underestimate expected volume, allowing for highlighting excessively high or low volume at specific times.
In order to do this, select "Percentiles" as the summary method, and change the percentiles value to a value that is close to 100 (overestimate expected volume) or to 0 (underestimate expected volume).
In the example above, we are only interested in detecting volume that is excessively high, we use the 95th percentile to do so, effectively highlighting when volume is higher than 95% of the volumes recorded at that time.
🔶 DETAILS
🔹 Choosing the Right Periods
Our expected volume value depends on grouping volume based on periods, which can be user-defined.
For example, if only the hourly period is selected, volumes are grouped by their respective hours. As such, to get the expected volume for the hour 7 PM, we collect and group the historical volumes that occurred at 7 PM and average them to get our expected value at that time.
Users are not limited to selecting a single period, and can group volume using a combination of all the available periods.
Do note that when on lower timeframes, only having higher periods will lead to less precise expected values. Enabling periods that are too low might prevent grouping. Finally, enabling a lot of periods will, on the other hand, lead to a lot of groups, preventing the ability to get effective expected values.
In order to avoid changing periods by navigating across multiple timeframes, an "Auto Selection" setting is provided.
🔹 Group Length
The length setting allows controlling the maximum size of a volume group. Using higher lengths will provide an expected value on more historical data, further highlighting recurring patterns.
🔹 Recommended Assets
Obtaining the expected volume for a specific period (time of the day, day of the week, quarter, etc) is most effective when on assets showing higher signs of periodicity in their trading activity.
This is visible on stocks, futures, and forex pairs, which tend to have a defined, recognizable interval with usually higher trading activity.
Assets such as cryptocurrencies will usually not have a clearly defined periodic trading activity, which lowers the validity of forecasts produced by the tool, as well as any conclusions originating from the volume to expected volume comparisons.
🔶 SETTINGS
Length: Maximum number of records in a volume group for a specific period. Older values are discarded.
Smooth: Period of a SMA used to smooth volume. The smoothing affects the expected value.
🔹 Periods
Auto Selection: Automatically choose a practical combination of periods based on the chart timeframe.
Custom periods can be used if disabling "Auto Selection". Available periods include:
- Minutes
- Hours
- Days (can be: Day of Week, Day of Month, Day of Year)
- Months
- Quarters
🔹 Summary
Method: Method used to obtain the expected value. Options include Mean (default) or Percentile.
Percentile: Percentile number used if "Method" is set to "Percentile". A value of 50 will effectively use a median for the expected value.
🔹 Forecast
Forecast Window: Number of bars ahead for which the expected volume is predicted.
Style: Style settings of the forecast.
Indicator

Risk Distribution HistogramStatistical risk visualization and analysis tool for any ticker 📊
The Risk Distribution Histogram visualizes the statistical distribution of different risk metrics for any financial instrument. It converts risk data into histograms with quartile-based color coding, so that traders can understand their risk, tail-risks, exposure patterns and make data-driven decisions based on empirical evidence rather than assumptions.
The indicator supports multiple risk calculation methods, each designed for different aspects of market analysis, from general volatility assessment to tail risk analysis.
Risk Measurement Methods
Standard Deviation
Captures raw daily price volatility by measuring the dispersion of price movements. Ideal for understanding overall market conditions and timing volatility-based strategies.
Use case: Options trading and volatility analysis.
Average True Range (ATR)
Measures true range as a percentage of price, accounting for gaps and limit moves. Valuable for position sizing across different price levels.
Use case: Position sizing and stop-loss placement.
The chart above illustrates how ATR statistical distribution can be used by looking at the ATR % of price distribution. For example, 90% of the movements are below 5%.
Downside Deviation
Only considers negative price movements, making it ideal for checking downside risk and capital protection rather than capturing upside volatility.
Use case: Downside protection strategies and stop losses.
Drawdown Analysis
Tracks peak-to-trough declines, providing insight into maximum loss potential during different market conditions.
Use case: Risk management and capital preservation.
The chart above illustrates tale risk for the asset (TQQQ), showing that it is possible to have drawdowns higher than 20%.
Entropy-Based Risk (EVaR)
Uses information theory to quantify market uncertainty. Higher entropy values indicate more unpredictable price action, valuable for detecting regime changes.
Use case: Advanced risk modeling and tail-risk.
VIX Histogram
Incorporates the market's fear index directly into analysis, showing how current volatility expectations compare to historical patterns. The CAPITALCOM:VIX histogram is independent from the ticker on the chart.
Use case: Volatility trading and market timing.
Visual Features
The histogram uses quartile-based color coding that immediately shows where current risk levels stand relative to historical patterns:
Green (Q1): Low Risk (0-25th percentile)
Yellow (Q2): Medium-Low Risk (25-50th percentile)
Orange (Q3): Medium-High Risk (50-75th percentile)
Red (Q4): High Risk (75-100th percentile)
The data table provides detailed statistics, including:
Count Distribution: Historical observations in each bin
PMF: Percentage probability for each risk level
CDF: Cumulative probability up to each level
Current Risk Marker: Shows your current position in the distribution
Trading Applications
When current risk falls into upper quartiles (Q3 or Q4), it signals conditions are riskier than 50-75% of historical observations. This guides position sizing and portfolio adjustments.
Key applications:
Position sizing based on empirical risk distributions
Monitoring risk regime changes over time
Comparing risk patterns across timeframes
Risk distribution analysis improves trade timing by identifying when market conditions favor specific strategies.
Enter positions during low-risk periods (Q1)
Reduce exposure in high-risk periods (Q4)
Use percentile rankings for dynamic stop-loss placement
Time volatility strategies using distribution patterns
Detect regime shifts through distribution changes
Compare current conditions to historical benchmarks
Identify outlier events in tail regions
Validate quantitative models with empirical data
Configuration Options
Data Collection
Lookback Period: Control amount of historical data analyzed
Date Range Filtering: Focus on specific market periods
Sample Size Validation: Automatic reliability warnings
Histogram Customization
Bin Count: 10-50 bins for different detail levels
Auto/Manual Bin Width: Optimize for your data range
Visual Preferences: Custom colors and font sizes
Implementation Guide
Start with Standard Deviation on daily charts for the most intuitive introduction to distribution-based risk analysis.
Method Selection: Begin with Standard Deviation
Setup: Use daily charts with 20-30 bins
Interpretation: Focus on quartile transitions as signals
Monitoring: Track distribution changes for regime detection
The tool provides comprehensive statistics including mean, standard deviation, quartiles, and current position metrics like Z-score and percentile ranking.
Enjoy, and please let me know your feedback! 😊🥂 Indicator

Advanced MACD Pro (WhiteStone_Ibrahim) - T3 Themed✨ Advanced MACD Pro (WhiteStone_Ibrahim) - T3 Themed ✨
Take your MACD analysis to the next level with the Advanced MACD Pro - T3 Themed indicator by WhiteStone_Ibrahim! This isn't just another MACD; it's a comprehensive toolkit packed with advanced features, unique T3 integration, and extensive customization options to provide deeper market insights.
Whether you're a seasoned trader or just starting, this indicator offers a versatile and powerful way to analyze momentum, identify trends, and spot potential reversals.
Key Features:
Core MACD Functionality:
Classic MACD Line: Calculated from customizable Fast and Slow EMAs using your chosen source (Close, Open, HLC3, etc.).
Standard Signal Line: EMA of the MACD line, with adjustable length.
Dynamic MACD Line Coloring: Automatically changes color based on whether it's above or below the zero line (positive/negative).
Zero Line: Clearly plotted for reference.
Enhanced MACD Histogram:
Sophisticated Color Coding: The histogram isn't just positive or negative. It intelligently colors based on momentum strength and direction:
Strong Bullish: MACD above signal, histogram increasing.
Weakening Bullish: MACD above signal, histogram decreasing.
Strong Bearish: MACD below signal, histogram decreasing.
Weakening Bearish: MACD below signal, histogram increasing.
Neutral: Default color for other conditions.
Optional Histogram Smoothing: Smooth out the histogram noise using one of five different moving average types: SMA, EMA, WMA, RMA, or the advanced T3 (Tilson T3). Customize smoothing length and T3 vFactor.
🌟 Unique T3 Integration (T3 Themed):
Extra T3 Signal Line (on MACD): An additional, fast-reacting T3 moving average calculated directly from the MACD line. This provides an alternative and often quicker signal.
Customizable T3 length and vFactor.
Dynamic Coloring: The T3 Signal Line changes color (bullish/bearish) based on its crossover with the MACD line, offering clear visual cues.
T3 is also available as a smoothing option for the main histogram (see above).
🔍 Disagreement & Divergence Detection:
Bar/Price Disagreement Markers:
Highlights instances where the price bar's direction (e.g., a bullish candle) contradicts the current MACD momentum (e.g., MACD below its signal line).
Visual markers (circles) appear above/below bars to draw attention to these potential early warnings or confirmations.
Histogram Color Change on Disagreement: Optionally, the histogram can adopt distinct alternative colors during these bar/price disagreements for even clearer visual alerts.
Classic Bullish & Bearish Divergence Detection:
Automatically identifies regular divergences between price action (Higher Highs/Lower Lows) and the MACD line (Lower Highs/Higher Lows).
Customizable pivot lookback periods (left and right bars) for divergence sensitivity.
Plots clear "Bull" and "Bear" labels on the price chart where divergences occur.
🎨 Extensive Customization & Visuals:
Multiple Color Themes: Choose from pre-set themes like 'Dark Mode', 'Light Mode', 'Neon Night', or use 'Default (Current Settings)' to fine-tune every color yourself.
Granular Control (Default Theme): Individually customize colors and thickness for:
MACD Line (positive/negative)
Standard Signal Line
Extra T3 Signal Line (bullish/bearish)
Histogram (all four momentum states + neutral)
Disagreement Markers & Histogram Alt Colors
Divergence Lines/Labels
Zero Line
Toggle Visibility: Easily show or hide the Standard Signal Line and the Extra T3 Signal Line as needed.
🔔 Comprehensive Alert System:
Stay informed of key market events with a wide array of configurable alerts:
MACD Line / Standard Signal Line Crossover
Histogram / Zero Line Crossover
MACD Line / Zero Line Crossover
Bullish Divergence Detected
Bearish Divergence Detected
Bar/Price Disagreement (Bullish & Bearish)
MACD Line / Extra T3 Signal Line Crossover
Each alert can be individually enabled or disabled.
The Advanced MACD Pro - T3 Themed indicator is designed to be your go-to tool for momentum analysis. Its rich feature set empowers you to tailor it to your specific trading style and gain a more nuanced understanding of market dynamics.
Add it to your charts today and experience the difference!
(Developed by WhiteStone_Ibrahim) Indicator
