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

Indicator

[blackcat] L3 ESCGO█ OVERVIEW
The L3 ESCGO is a fused momentum oscillator that combines the Ehlers Stochastic Center of Gravity (ESCGO) with Banker Fund Flow analysis to generate high-probability entry and exit signals. This indicator synchronizes two complementary methodologies—cycle-based momentum detection and institutional fund flow tracking—into a unified signal system with visual clarity.
█ CONCEPTS
This indicator integrates two powerful analytical approaches:
ESCGO (Ehlers Stochastic Center of Gravity Oscillator)
Developed from John F. Ehlers' Center of Gravity concept, the ESCGO identifies cycle turning points by calculating the weighted balance point of price distribution. The stochastic normalization ensures the oscillator remains bounded, making it easier to identify overbought and oversold conditions.
Key principles:
• Center of Gravity (CG): Calculates the balance point of price distribution
• Stochastic Normalization: Maps values to a -1 to +1 range for consistent interpretation
• ALMA-Smoothed Trigger Line: Reduces noise while maintaining signal responsiveness
Banker Fund Flow Oscillator
Tracks institutional money flow by analyzing the relationship between price action and cumulative fund flow patterns. This component helps identify when "smart money" is entering or exiting positions.
Key principles:
• Multi-timeframe trend analysis (Mid/Small/Tiny periods)
• Bull/Bear line crossover detection
• Candle color coding for instant visual recognition
█ HOW TO USE
1 — Add the indicator to your chart from the PulseWire indicator library
2 — Configure the input parameters based on your trading style (defaults work well for most markets)
3 — Observe the ESCGO lines and Banker candle colors for signal confirmation
4 — Use the status table (top-right) to monitor current indicator state
Input Parameters
ESCGO Settings
• Fast Line Length (default: 13): Controls the sensitivity of the main oscillator
• Slow Line Length (default: 3): Sets the trigger line smoothing period
• ALMA Offset (default: 0.85): Controls ALMA filter characteristics
• ALMA Sigma (default: 6.0): Controls ALMA filter sharpness
• Fill Between Lines: Toggle visual fill coloring
Banker Fund Flow Settings
• Mid Trend Period (default: 34): Primary trend identification period
• Small Trend Period (default: 5): Short-term momentum period
• Tiny Trend Period (default: 3): Micro-trend detection period
• Overbought Threshold (default: 80): Upper extreme level
• Oversold Threshold (default: 20): Lower extreme level
Signal Fusion Settings
• Use Fused Entry Signals: Enable/disable combined ESCGO + Banker entry logic
• Use Banker-Only Exit Signals: Enable/disable Banker-based exit logic
Visualization Settings
• Show B/S Labels: Toggle Buy/Sell labels on chart
• Show Status Table: Toggle the information panel display
█ SIGNALS
Entry Signals
• Long Entry (B) : ESCGO bullish crossover AND (Banker Yellow OR Green candle)
• Short Entry (S) : ESCGO bearish crossunder AND (Banker Red OR White candle)
Exit Signals
• Long Exit (XL) : Banker Red OR White candle (exit signal)
• Short Exit (XS) : Banker Yellow OR Green candle (exit signal)
Visual Elements
• ESCGO Lines : Fast line (thick) and slow trigger line (thin) with trend-based coloring
• Zero Line : Dotted center reference
• Extreme Levels : +0.8 (overbought), -0.8 (oversold)
Banker Candle Colors
• Yellow : Banker Entry Signal - institutional accumulation detected
• Green : Banker Increase Position - smart money adding to positions
• White : Banker Decrease Position - institutional distribution
• Red : Banker Exit - smart money exiting positions
• Blue : Banker Weak Rebound - potential trap or weak recovery
Status Table Information
• ESCGO Trend: Current momentum direction (Bullish ↑ / Bearish ↓)
• ESCGO Value: Current oscillator reading
• Banker Flow: Current banker candle status
• Fused Signal: Active signal type (LONG/SHORT ENTRY/EXIT)
• Strength: Signal strength classification (Strong/Medium/Weak)
• Position: Tracked position state (LONG/SHORT/FLAT)
█ ALERTS
The indicator includes comprehensive alert conditions:
• ESCGO Long Entry / Short Entry
• ESCGO Long Exit / Short Exit
• Combined Entry / Exit signals
• Individual Banker candle alerts (Yellow, Green, White, Red, Blue)
• ESCGO crossover alerts (Bullish/Bearish)
█ RECOMMENDED SETTINGS
• Timeframes : Works well on 15m to Daily charts
• Markets : Suitable for stocks, forex, crypto, and futures
• Best Results : Use in trending markets; avoid choppy/ranging conditions
█ LIMITATIONS
• Not suitable for strongly ranging/choppy markets
• Signal fusion may reduce signal frequency compared to single-indicator systems
• Banker fund flow analysis assumes institutional patterns are detectable
• Past signals do not guarantee future performance
• Requires proper risk management alongside indicator signals
█ NOTES
• The indicator uses a custom price source (Lao Xu 1949 Pivot Point) for improved responsiveness
• Position state tracking helps identify current market exposure
• Signal strength is calculated based on ESCGO extreme level proximity
• All signals are for educational purposes and should be validated with additional analysis
═════════════════════════════════════════════════════════════════════════
For questions or feedback, use comments section below.
Indicator

Indicator

Momentum Pulse█ MOMENTUM PULSE v1.0
Next-Generation Adaptive Momentum Analysis
Blends three orthogonal momentum sources into a single Adaptive Momentum Composite (AMC), enhanced with multi-timeframe confluence scoring and automatic divergence detection. A comprehensive, real-time read on momentum across multiple dimensions — all in one clean, non-overlay panel.
Free and Open Source.
═══════════════════════════════════
█ THE CONCEPT: COMPOSITE MOMENTUM
Traditional momentum indicators measure one thing: RSI tracks mean-reversion, MACD tracks trend acceleration, ROC tracks raw velocity. Each has blind spots. A composite approach eliminates these blind spots by combining all three perspectives into a single normalized reading.
The Adaptive Momentum Composite (AMC) uses Z-score normalization to ensure each component contributes equally regardless of asset type or volatility level — it auto-calibrates to any market.
═══════════════════════════════════
█ CORE ENGINE: ADAPTIVE MOMENTUM COMPOSITE (AMC)
The signature engine combines three Z-score normalized momentum sources:
1. Rate of Change (ROC)
Raw price velocity over N bars. Catches sharp moves early.
2. RSI Deviation
Distance of RSI from the 50-line. Captures overbought/oversold pressure.
3. MACD Histogram
Trend acceleration. Captures the speed of the trend change.
Each component's weight is configurable. The composite is clamped to to prevent extreme outlier distortion.
═══════════════════════════════════
█ TREND STRENGTH METER
Real-time regime classification using adaptive thresholds:
STRONG BULL — AMC above 1.8x its own standard deviation
BULL — AMC above 0.8x standard deviation
NEUTRAL — AMC near zero
BEAR — Mirror of bullish thresholds
STRONG BEAR — Mirror of bullish thresholds
Thresholds auto-calibrate to each asset and timeframe. A visual strength gauge (0–100%) shows momentum intensity at a glance.
═══════════════════════════════════
█ MULTI-TIMEFRAME CONFLUENCE
Polls AMC direction from up to 3 higher timeframes plus the current chart:
Score 4/4 — All timeframes aligned = high-conviction setup
Score 3/4 — Strong alignment with one dissenter = proceed with caution
Score 2/4 or less — Mixed signals = chop zone, reduce position size
Auto-selects appropriate higher timeframes based on your chart. Manual override available.
Auto-Selected Timeframes:
1-3 min chart → 5 min / 15 min / 1 Hour
5 min chart → 15 min / 1 Hour / 4 Hour
15 min chart → 1 Hour / 4 Hour / Daily
1 Hour chart → 4 Hour / Daily / Weekly
4 Hour chart → Daily / Weekly / Monthly
Daily chart → Weekly / Monthly / 3M
═══════════════════════════════════
█ DIVERGENCE DETECTION
Automatic pivot-based detection of four divergence types:
Regular Bullish — Price makes lower low, AMC makes higher low → reversal up
Regular Bearish — Price makes higher high, AMC makes lower high → reversal down
Hidden Bullish — Price makes higher low, AMC makes lower low → trend continuation up
Hidden Bearish — Price makes lower high, AMC makes higher high → trend continuation down
Each divergence is labeled directly on the chart with color-coded markers. Configurable pivot lookback and maximum bar distance between pivots.
═══════════════════════════════════
█ MOMENTUM WAVE VISUALIZATION
Dynamic gradient histogram:
Rising Bullish — Bright cyan
Fading Bullish — Teal
Rising Bearish — Bright red-pink
Fading Bearish — Magenta
Signal Line — Smoothed AMC (EMA) for crossover timing
Zero-Line Crosses — Circle labels ("0+" / "0-")
Signal Crosses — Diamond markers for entry/exit timing
Background zones subtly shade the panel based on the current momentum regime.
═══════════════════════════════════
█ DASHBOARD
Compact dark-themed info panel displaying:
AMC — Current composite value with trend arrow
Regime — STRONG BULL / BULL / NEUTRAL / BEAR / STRONG BEAR with color coding
Strength — Visual gauge bar (0–100%) showing momentum intensity
Signal — Above / Below signal line status
MTF Confluence — Arrow alignment for all 4 timeframes with score (0-4)
Timeframes — Current + 3 higher TFs being monitored
Components — Individual Z-scores for ROC, RSI, MACD
RSI — Raw RSI value with Overbought/Oversold status
═══════════════════════════════════
█ ALERTS (10 CONDITIONS)
Zero Crosses: Bullish / Bearish
Signal Crosses: Bullish / Bearish
Regular Divergence: Bullish / Bearish
Hidden Divergence: Bullish / Bearish
Full MTF Confluence: Bullish / Bearish
═══════════════════════════════════
█ PRO VERSION
The PRO version adds:
Enhanced AMC Engine — Additional momentum components and advanced weighting algorithms
Extended Dashboard — More detailed analytics and component breakdown
Advanced Divergence — Multi-level divergence scoring with strength classification
Strategy Mode — Built-in backtestable strategy with entry/exit logic
Additional Alert Conditions — Regime change, momentum acceleration, and more
═══════════════════════════════════
█ NON-REPAINTING
The AMC is calculated from standard non-repainting indicators (ROC, RSI, MACD). Z-score normalization uses historical data only. MTF requests use lookahead_off to prevent future data leakage. Divergence detection requires confirmed pivots. 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. Past performance does not guarantee future results. No indicator can predict market movements with certainty. Always implement proper risk management. Use this tool as one component of a comprehensive trading strategy, not as a standalone decision-making system.
Indicator

Goldilocks and the Three Bears - [Algoat_Alpha]Goldilocks and the Three Bears is a multi-layer confluence indicator that identifies
when three independent technical dimensions — trend, momentum, and direction — all
align in the same direction. Inspired by the classic fairy tale, it waits for
conditions that are "just right" before signaling.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The indicator evaluates three independent layers on every bar:
Papa (Trend) — A Moving Average (SMA or EMA) establishes the macro trend.
Price above the MA = bullish trend. Price below = bearish trend. This is the
slowest-moving component and acts as the structural filter.
Mama (Momentum) — The Relative Strength Index measures whether buying or selling
pressure dominates. RSI above the midline (default 50) = bullish momentum.
Below = bearish momentum. This prevents entries against exhausted moves.
Baby (Direction) — The MACD-Signal crossover captures the fastest directional
shift. MACD above its signal line = bullish direction. Below = bearish direction.
This is the trigger layer.
A signal fires only when ALL THREE flip into alignment simultaneously — the exact
bar where the last component joins the other two. This transition-based logic
prevents redundant signals during sustained trends.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY CONFLUENCE MATTERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Each indicator alone produces frequent false signals:
• MA alone triggers late in ranges
• RSI alone triggers too early in trends
• MACD alone whipsaws in choppy markets
By requiring all three to agree, the indicator filters out noise that any single
layer would miss. The three layers operate on different mathematical principles
(price vs. average, momentum oscillator, moving average convergence/divergence),
so their agreement represents genuine multi-dimensional confluence — not just the
same signal measured three times.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Add the indicator to your chart. The dashboard shows the real-time state of
all three layers.
2. When all three show "Bull" → Goldilocks Zone (bullish). A 🐂 label appears
on the chart at the entry bar.
3. When all three show "Bear" → Goldilocks Zone (bearish). A 🐻 label appears.
4. "Still Cooking" means the layers are mixed — no directional consensus yet.
Hover over any signal label for a detailed tooltip showing the exact values
of all three components at the time of the signal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Auto light/dark theme detection — dashboard adapts to your chart background
• Discord-ready webhook alerts — alert messages are formatted as Discord embed
JSON, ready to pipe directly into a webhook channel
• Pine Screener compatible — includes Signal State, individual component states,
and a Bull Count (0-3) for flexible scanner filtering
• Minimal chart footprint — only the MA line and signal labels are drawn;
bar coloring is off by default
• Fully configurable — all indicator lengths, thresholds, dashboard position
and size are adjustable in settings
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Three alert conditions are available:
• 3 Bulls Aligned (Long Entry)
• 3 Bears Aligned (Short Entry)
• Full Confluence (Any Direction)
All alert messages include ticker, timeframe, price, and component status.
Messages are pre-formatted as Discord webhook JSON — just paste your webhook
URL in PulseWire's alert notification settings.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PINE SCREENER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Scanner columns exported:
• Signal State → 1 (bullish), -1 (bearish), 0 (no confluence)
• Papa Bull / Mama Bull / Baby Bull → individual component states (1 or 0)
• Bull Count → number of bullish layers (0 to 3), useful for "almost there" scans
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator does not repaint and does not use request.security().
All calculations are performed on the current chart's timeframe.
Open source under MPL 2.0.
Stay Liquid. Indicator

Indicator

Viprasol Sniper Confluence Entry/Exit## Overview
The Sniper Confluence Entry/Exit indicator builds on Sniper Entry/Exit with SL&TP by , which provided EMA crossover signals with ATR-based stop-loss/take-profit levels, a VWAP overlay, RSI/MACD display, and retest candle highlighting. This version adds a 7-factor confluence scoring engine that gates every signal — crossovers only fire when multiple technical factors align, dramatically reducing false entries. Built for swing and intraday traders who want clean, high-probability setups with automatic risk management.
## How It Works
**Signal Generation (from original):**
Entries are triggered by a Fast EMA / Slow EMA crossover. When the fast EMA crosses above the slow EMA, a long signal is generated; when it crosses below, a short signal is generated. The original script displayed these crossovers alongside supporting indicators (VWAP, RSI, MACD) but did not require them to agree before firing a signal.
**7-Factor Confluence Engine (new):**
This version adds a scoring layer that sits between the crossover and the signal output. Each bar, the indicator evaluates 7 independent factors and assigns 1 point for each that confirms the trade direction. A signal only fires when the total score meets your minimum threshold (default: 4/7).
Scoring logic (pseudocode):
```
confluenceScore = 0
// Factor 1: Price vs VWAP
if (long and close > vwap) or (short and close < vwap) → score += 1
// Factor 2: RSI direction
if (long and rsi > 50) or (short and rsi < 50) → score += 1
// Factor 3: MACD trend
if (long and macdLine > signalLine) or (short and macdLine < signalLine) → score += 1
// Factor 4: EMA alignment
if (long and fastEMA > slowEMA) or (short and fastEMA < slowEMA) → score += 1
// Factor 5: ADX + directional index
if adx > 25 and ((long and diPlus > diMinus) or (short and diMinus > diPlus)) → score += 1
// Factor 6: Volume confirmation
if volume > volumeSMA and ((long and close > open) or (short and close < open)) → score += 1
// Factor 7: Secondary timeframe RSI
if (long and secondaryRSI > 50) or (short and secondaryRSI < 50) → score += 1
signal fires only if confluenceScore >= minimumScore
```
A score of 5/7 or higher typically indicates a strong, well-supported setup. The configurable minimum lets you tune signal frequency vs. quality.
**Bar-Close Confirmation (new):**
When enabled, signals are delayed until the bar closes, preventing premature entries from intra-bar wicks that reverse before close.
**ATR-Based Stop-Loss & Take-Profit (from original, extended):**
The original calculated a single stop-loss and take-profit from ATR. This version extends that to:
- **Stop-Loss** — ATR multiplied by your chosen risk factor (same core logic as original)
- **Take-Profit Levels (1-5)** — Configurable number of TP levels at 1R, 2R, 3R, 4R, 5R distances (new — original had fixed levels)
- **Trailing Stop to Breakeven** — Optionally moves SL to entry price once TP1 is hit (new)
**Retest Candle Highlighting (from original):**
Bars that pull back to the fast EMA after a signal are highlighted in orange, marking potential add-on or re-entry opportunities.
**Secondary Timeframe RSI (from original, extended):**
The original included a secondary timeframe RSI hardcoded to the 5-minute chart. This version makes the timeframe user-configurable.
## Key Features
**From the Original:**
- EMA crossover signal generation (fast/slow EMA)
- ATR-based stop-loss and take-profit calculation
- VWAP overlay with directional coloring
- RSI and MACD display
- Retest candle highlighting at EMA pullbacks
- Secondary timeframe RSI confirmation
**Added in This Version:**
- 7-factor confluence scoring engine with configurable minimum score threshold
- Bar-close confirmation filter to prevent wick-driven false entries
- Trailing stop-loss to breakeven after TP1 is hit
- Configurable number of take-profit levels (1-5, was fixed)
- Configurable secondary timeframe (was hardcoded to 5m)
- SL label showing breakeven status when trailing is active
- 5 alert conditions with dynamic messages
- Full dashboard showing all 7 confluence factors, position status, and targets hit
## How to Use
**Setup:**
1. Add to any chart (works on all markets and timeframes)
2. Set your preferred EMA periods (default: 9/21)
3. Adjust the minimum confluence score — higher = fewer signals, better quality
4. Set your ATR multiplier for stop-loss width
**Reading Signals:**
- **LONG label** appears below bar when bullish crossover fires with sufficient confluence
- **SHORT label** appears above bar when bearish crossover fires with sufficient confluence
- Blue line = Entry, Red line = Stop-Loss, Green dashed lines = Take-Profit levels
- Lines turn turquoise when their target is hit
- Orange candles indicate price retesting the fast EMA (potential add-on opportunity)
**Dashboard:**
The side panel shows real-time scores for all 7 factors plus current position info, targets hit, and SL status.
**Recommended Starting Settings:**
- Scalping (1m-5m): Fast EMA 5, Slow EMA 13, Min Score 5, ATR Mult 1.0
- Intraday (15m-1H): Fast EMA 9, Slow EMA 21, Min Score 4, ATR Mult 1.5
- Swing (4H-1D): Fast EMA 9, Slow EMA 21, Min Score 4, ATR Mult 2.0
## Settings
**Signal Settings:** Fast/Slow EMA periods and bar-close confirmation toggle.
**Confluence Filter:** Enable/disable the score filter and set the minimum threshold.
**Risk Management:** ATR period, SL multiplier, number of TP levels, and breakeven trailing toggle.
**Secondary Timeframe:** Choose which timeframe provides the secondary RSI confirmation.
**Dashboard:** Position, font size, and show/hide toggle.
**Visuals:** Toggle EMA ribbon, VWAP, TP/SL lines, retest highlighting, label sizes and offsets.
## Alerts
1. **Long Entry Signal** — Fires when a bullish confluence entry triggers
2. **Short Entry Signal** — Fires when a bearish confluence entry triggers
3. **Any Entry Signal** — Fires on either long or short entry
4. **Strong Bull Bias** — Fires when bull confluence score crosses above 70%
5. **Strong Bear Bias** — Fires when bear confluence score crosses above 70%
All alerts include {{ticker}}, {{close}}, and {{interval}} for dynamic notification messages.
## Limitations & Disclaimer
- EMA crossover signals are inherently lagging — they work best in trending markets and may produce whipsaws during consolidation
- The confluence score uses current-bar values; in fast markets, conditions can change quickly
- The secondary timeframe RSI uses `request.security()` which may repaint on the current bar of that timeframe
- TP/SL levels are visual guides — they do not execute trades automatically
- Past performance of any signal system does not guarantee future results
- This indicator is for educational and analytical purposes only — it is not financial advice. Always use proper risk management and do your own analysis before trading.
## Credits & Attribution
This indicator is derived from **"Sniper Entry/Exit with SL&TP (open-source, PulseWire). The following components originate from that script:
- EMA crossover signal generation logic
- ATR-based stop-loss and take-profit calculation
- VWAP overlay
- RSI and MACD display
- Retest candle highlighting concept
- Secondary timeframe RSI (originally hardcoded to 5m)
Viprasol additions: 7-factor confluence scoring engine, bar-close confirmation, trailing stop to breakeven, configurable TP levels (1-5), configurable secondary timeframe, breakeven status labels, alert conditions, and dashboard.
Indicator

Indicator

Squeeze/IntraDay ScalpsSqueeze / Intraday Scalps is a momentum-based intraday trading tool designed to help traders identify high-probability entry opportunities during strong directional moves. The indicator combines adjustable EMA crossover signals (5, 9, 21, and 34 are presets, but all customizable inputs) with higher-timeframe MAs (50 and 100 are preset, but can be adjusted as well as being EMAs or SMAs) and volume confirmation to filter out low-quality signals and highlight moments when momentum aligns with broader trend conditions.
Intended for intraday scalping and short-term options trading. The signals generated are dynamic, meaning a signal may trigger on the 5 minute chart, but not the 15M based on user-defined conditions; not meant to be a standalone entry signal, only used with other indicators for confirmation.
Customization Inputs:
• EMA and MA visibility
• MA types (EMA or SMA)
• Signal cooldown timing
• Label or triangle signal style
• Moving average colors
• Optional 50 and 100 MA structure filters
• Dashboard gradient strength
Dashboard provides a quick market readout of the following:
Trend – Bullish, Bearish, or Chop
Signal Status – Call, Put, Cooldown, or None
Volume Context – Supportive or Light
Gradient intensity reflects strength of the underlying condition, providing a visual gauge of momentum.
Signal Logic
Call Signals
A CALL signal is generated when:
• The 5 EMA crosses above the 9 EMA
• Price is trading above the 34 EMA
• The broader structure is bullish
• The cooldown timer allows a new signal (cooldown is also adjustable by minutes)
Put Signals
A PUT signal is generated when:
• The 5 EMA crosses below the 9 EMA
• Price is trading below the 34 EMA
• The broader structure is bearish
• The cooldown timer allows a new signal
Volume
Volume is compared to a 20-period average to determine whether market participation is strong enough to support the move.
The dashboard identifies when volume is:
• Supportive – momentum is likely sustainable
• Light – moves may lack conviction
Calculations and Best Uses
Signals generate following three passing conditions:
1. Momentum Trigger
• 5 EMA crossing above 9 EMA → Potential CALL signal
• 5 EMA crossing below 9 EMA → Potential PUT signal
This identifies when short-term momentum begins shifting.
2. Trend Structure Filter
Momentum signals are only triggered when the broader structure supports them. It evaluates:
• EMA 21 vs EMA 34 (core trend direction)
• Optional 50 MA (intermediate structure)
• Optional 100 MA (macro trend filter)
This prevents signals from firing against the general market direction.
3. Price Position Filter
Signals a call or put when previous two conditions are met and current price is trending:
• CALL signals require price above the 34 EMA
• PUT signals require price below the 34 EMA
This helps avoid entries in the middle of consolidation. However, given this is not always the case, the inputs are adjustable to allow traders to bypass this if they feel it's a good trade even if this final condition isn't met.
Author
© TylerisTrading Indicator

Alpha Relative Strength & Performance [Pineify]Alpha Relative Strength & Performance
The Alpha Relative Strength & Performance (Alpha RSP) indicator is a dual-metric relative strength analysis tool that measures both an asset's outperformance ratio and its momentum trajectory against a user-defined benchmark — providing a complete, four-quadrant classification of relative strength state. Inspired by the Relative Rotation Graph (RRG) methodology developed by Julius de Kempenaer, Alpha RSP distills the two-dimensional RRG framework into a single-pane oscillator that traders can apply to any asset and any benchmark. Instead of simply comparing price returns, the indicator computes a double-smoothed RS Ratio (where the asset sits relative to its own trend of outperformance) and an RS Momentum reading (whether that outperformance is accelerating or decelerating). Together, these two metrics classify the asset into one of four states — Strong, Improving, Weakening, or Weak — with color-coded plotting, area fills, crossover signals, and a real-time dashboard table. This gives traders an objective, quantitative framework for sector rotation, pair trading, and relative performance timing.
Key Features
Double-smoothed RS Ratio oscillator — uses two layers of Weighted Moving Average (WMA) smoothing on the raw price ratio to produce a stable, noise-resistant measure of relative outperformance centered around the 100 equilibrium line.
RS Momentum (second derivative) — calculates the rate of change of the RS Ratio itself, revealing whether outperformance is accelerating or decelerating before the RS Ratio line visually turns.
Four-quadrant state classification — categorizes the asset into Strong (Leading), Improving, Weakening, or Weak (Lagging) based on the combination of RS Ratio and RS Momentum relative to 100, mirroring the proven RRG quadrant system.
Momentum-confirmed crossover signals — bullish entry signals require the RS Ratio to cross above 100 with pre-confirmed positive momentum; bearish exit signals require a cross below 100 with pre-confirmed negative momentum, filtering out low-conviction transitions.
Net Performance delta — independently calculates bar-by-bar alpha (asset return minus benchmark return) as a supplementary metric displayed in the info table.
Real-time dashboard table — a four-row info panel displays the current quadrant state, RS Ratio value, RS Momentum value, and net performance percentage, all color-coded for instant visual assessment.
Flexible benchmark selection — compare against any symbol available on PulseWire (SPY, QQQ, BTCUSD, sector ETFs, etc.), making the indicator applicable to equities, crypto, forex, and commodities.
Built-in alert conditions — four configurable alerts cover bullish entries, bearish exits, and sustained strong/weak state detection for hands-free monitoring.
How It Works
The indicator follows a multi-stage calculation pipeline that transforms a raw price ratio into a classified relative strength state:
Benchmark data sourcing: The benchmark's closing price is fetched using request.security() with a one-bar lookback and lookahead enabled. This ensures only confirmed (already closed) benchmark data is used, preventing repainting. A validity check guards against missing data, falling back to neutral values (1.0 for ratios, 100 for normalized metrics) when the benchmark is unavailable.
Relative Strength (RS) calculation: The raw RS is computed as Asset Close / Benchmark Close. A rising RS means the asset is gaining value faster (or losing value slower) than the benchmark. This raw ratio is then smoothed with a Weighted Moving Average (WMA) of configurable length to establish the asset's trend of relative performance.
RS Ratio normalization: The RS Ratio measures where the current RS sits relative to its own WMA trend: RS_Ratio = WMA(RS / WMA_RS) × 100. Values above 100 indicate the asset is outperforming its own recent relative trend (leading); values below 100 indicate underperformance (lagging). The double WMA smoothing — first on the raw RS, then on the ratio — significantly reduces noise while preserving responsiveness.
RS Momentum derivation: RS Momentum is the rate of change of the RS Ratio: RS_Mom = RS_Ratio / WMA(RS_Ratio) × 100. This "second derivative" of relative strength reveals whether the RS Ratio is accelerating (above 100) or decelerating (below 100). Momentum turns often precede RS Ratio turns, providing an early warning of quadrant transitions.
State classification and signal generation: The combination of RS Ratio and RS Momentum relative to the 100 baseline classifies the asset into one of four quadrants. Crossover signals are generated when the RS Ratio crosses the 100 line with momentum confirmation from the previous bar, ensuring entries and exits occur only during high-conviction quadrant transitions.
Trading Ideas and Insights
Sector rotation timing: Apply Alpha RSP to sector ETFs (XLK, XLF, XLE, etc.) against SPY as the benchmark. Assets in the Strong quadrant (green) are the current market leaders — favor long positions in these sectors. Assets in the Weak quadrant (red) are lagging — avoid or consider short positions. The quadrant rotation (Strong → Weakening → Weak → Improving → Strong) follows a predictable clockwise pattern that can be used to anticipate sector leadership changes.
Pair trading confirmation: When comparing two correlated assets, use Alpha RSP on one asset with the other as the benchmark. A sustained Strong state suggests going long the asset and short the benchmark; a sustained Weak state suggests the reverse. The crossover signals provide specific entry and exit timing for the pair trade.
Momentum-based entries: The bullish entry signal (green circle) fires when the RS Ratio crosses above 100 with positive momentum — this is the moment the asset transitions into the Strong quadrant. Historically, assets entering the Strong quadrant tend to continue outperforming for multiple bars, making this a high-probability entry point for relative outperformance trades.
Early warning via momentum divergence: Monitor the RS Momentum independently. When an asset is in the Strong quadrant but RS Momentum drops below 100, it transitions to Weakening (yellow) — outperformance is decelerating even though the asset still leads. This early warning allows traders to tighten stops or reduce position size before the RS Ratio itself crosses below 100.
Benchmark-relative alpha tracking: The Net Performance row in the info table shows the bar-by-bar return difference between the asset and benchmark. Use this to monitor whether your holdings are generating positive alpha on each bar, independent of the smoothed RS calculations.
How Multiple Indicators Work Together
Alpha RSP integrates several analytical components into a unified relative strength assessment system, each serving a distinct purpose:
Weighted Moving Average smoothing (trend extraction): WMA is applied twice in the calculation chain — first to smooth the raw RS ratio, then to normalize the RS Ratio and compute RS Momentum. WMA was chosen over SMA or EMA because its linear weighting scheme provides a good balance between responsiveness and smoothness. The double application creates a cascading filter that removes short-term noise while preserving the medium-term trend of relative performance.
RS Ratio (position measurement): The RS Ratio answers the question "is the asset currently outperforming or underperforming its own recent relative trend?" By normalizing the raw RS against its WMA, the indicator creates a mean-reverting oscillator centered at 100 that is comparable across different assets and timeframes — regardless of the absolute price levels of the asset and benchmark.
RS Momentum (direction measurement): The RS Momentum answers the question "is the relative outperformance getting better or worse?" This second derivative adds the critical directional dimension that the RS Ratio alone cannot provide. An asset can be above 100 (leading) but with momentum below 100 (weakening) — meaning it still outperforms but is losing its edge. This distinction is what enables the four-quadrant classification.
Crossover signals with momentum confirmation (timing mechanism): Raw crossovers of the RS Ratio above/below 100 would generate signals at every quadrant boundary. By requiring momentum confirmation from the previous bar, the signal filter ensures that only transitions into the Strong quadrant (bullish) or Weak quadrant (bearish) generate signals — skipping the ambiguous transitions into Improving or Weakening states.
The synergy is hierarchical: raw price ratio → WMA-smoothed trend → normalized RS Ratio (position) → RS Momentum (direction) → four-quadrant classification → momentum-confirmed crossover signals. Each layer adds a dimension of analysis, and the final signals require alignment across all layers — the asset must cross the outperformance threshold AND have confirmed momentum direction to trigger.
Unique Aspects
RRG methodology in a single pane: Traditional Relative Rotation Graphs require a two-dimensional scatter plot with RS Ratio on the x-axis and RS Momentum on the y-axis. Alpha RSP condenses this into a standard oscillator pane by plotting the RS Ratio as the primary line and encoding the momentum dimension through color (four-quadrant coloring). This makes the RRG framework accessible within PulseWire's standard indicator layout without losing the quadrant classification.
Double WMA smoothing architecture: Most relative strength indicators use a single smoothing pass (e.g., SMA or EMA of the price ratio). Alpha RSP's double WMA approach — smoothing the raw RS, then smoothing the normalized ratio — creates a more stable oscillator that filters out short-term noise while remaining responsive to genuine trend changes in relative performance.
Non-repainting benchmark data: The indicator fetches benchmark data with a one-bar offset (close ) and lookahead enabled, ensuring that only confirmed historical data is used. This prevents the common repainting issue where indicators using request.security() produce different historical signals depending on when they are loaded.
Momentum-confirmed signals: Unlike simple ratio crossover systems, Alpha RSP requires the previous bar's momentum to confirm the direction of the crossover. This dual-condition filter significantly reduces false signals during choppy, mean-reverting relative performance periods where the RS Ratio oscillates around 100 without establishing a clear trend.
How to Use
Add the indicator to your chart. It appears in a separate pane below the price chart, displaying the RS Ratio line, a dashed equilibrium baseline at 100, and a color-coded area fill.
Set the Benchmark Symbol to the index or asset you want to compare against. Use SPY for broad US equity comparison, QQQ for tech-weighted comparison, BTCUSD for crypto relative analysis, or any other symbol relevant to your trading universe.
Adjust the Calculation Window based on your trading timeframe. The default of 14 works well for daily charts. Use shorter values (7–10) for intraday or short-term swing trading; use longer values (21–50) for position trading or weekly charts.
Monitor the line color for the current quadrant state: green = Strong (outperforming with rising momentum), blue = Improving (underperforming but momentum turning positive), yellow = Weakening (outperforming but momentum fading), red = Weak (underperforming with falling momentum).
Watch for green circle signals — these mark Bullish Entry points where the RS Ratio crosses above 100 with confirmed positive momentum, indicating the asset is entering the Strong quadrant. Consider initiating or adding to long positions relative to the benchmark.
Watch for red circle signals — these mark Bearish Exit points where the RS Ratio crosses below 100 with confirmed negative momentum, indicating the asset is entering the Weak quadrant. Consider reducing exposure or exiting positions.
Check the info table in the bottom-right corner for a real-time summary of the current state, RS Ratio, RS Momentum, and net performance values.
Set up alerts using the four built-in alert conditions to receive notifications for bullish entries, bearish exits, or sustained strong/weak states without watching the chart.
Customization
Benchmark Symbol (default: SPY): The reference asset for relative strength comparison. Choose a benchmark that represents the market or sector you want to measure outperformance against. For equity traders, SPY or a sector ETF is typical. For crypto traders, BTCUSD provides a relative strength reading against the dominant cryptocurrency.
Calculation Window (default: 14): Controls the WMA smoothing period for both the RS Ratio and RS Momentum calculations. Lower values (7–10) produce a more volatile, responsive oscillator that captures short-term relative strength shifts — suitable for active trading. Higher values (21–50) produce a smoother oscillator that focuses on medium-term relative trends — suitable for position trading and sector rotation strategies.
Quadrant Colors: All four quadrant colors are fully customizable. The default scheme (green/blue/yellow/red) follows the standard RRG color convention, but you can adjust these to match your chart theme or personal preference. Colors are applied to the RS Ratio line, area fill, signal markers, and info table simultaneously.
Conclusion
The Alpha Relative Strength & Performance indicator brings the proven Relative Rotation Graph methodology into a streamlined, single-pane oscillator format. By computing both an RS Ratio (where the asset stands relative to its benchmark trend) and an RS Momentum (whether that standing is improving or deteriorating), it provides a complete four-quadrant classification of relative strength that goes far beyond simple price ratio comparison. The double WMA smoothing architecture delivers clean, noise-resistant readings, while momentum-confirmed crossover signals filter out low-conviction transitions. Whether you are timing sector rotations, managing pair trades, or simply tracking whether your holdings are generating alpha relative to a benchmark, Alpha RSP provides an objective, quantitative framework for relative performance analysis across any market and timeframe.
Indicator

Velocity Acceleration Momentum [VAM]Velocity Acceleration Momentum
Overview
VAM is a multi-layered momentum indicator that measures how fast price is moving (Velocity), whether that speed is increasing or decreasing (Acceleration), and how strong the underlying trend is (ADX). Rather than just telling you the direction of price, VAM tells you the quality and phase of the move you're in.
How It's Calculated
Velocity measures the percentage rate of change of price over a lookback period (default: 14 bars), then smooths it with a 3-period EMA. It answers: "How fast is price moving relative to where it was?"
Acceleration is the change in Velocity over a secondary smoothing window (default: 5 bars), also EMA-smoothed. It answers: "Is momentum speeding up or slowing down?"
Signal Line is an EMA of Velocity (default: 9 bars) — similar in concept to the MACD signal line. When Velocity crosses above/below the Signal Line, it can indicate momentum shifts.
ADX Histogram uses Pine's built-in DMI/ADX calculation. When DI+ > DI−, bars plot positively (green); when DI− > DI+, bars plot negatively (red). The color opacity is gradient-mapped to ADX strength — vivid bars mean a strong trend, faded bars mean a weak/ranging market.
Reading the Velocity Line Colors (Regime Detection)
The Velocity line changes color based on the combination of Velocity and Acceleration:
ColorConditionMeaning🟢 LimeVelocity > 0, Acceleration > 0Rocket — momentum is up and accelerating🟡 YellowVelocity > 0, Acceleration < 0Topping — still positive but losing steam🔴 RedVelocity < 0, Acceleration < 0Freefall — momentum is down and worsening🟠 OrangeVelocity < 0, Acceleration > 0Bottoming — still negative but recovering
How to Trade With It
High level Buy when Velocity Line Green 🟢sell when Velocity drops hard and is Red 🔴
+
ADX BARS TELL YOU THE TREND AND THE TREND STRENTH (COMBINE THIS AND THE VELOCITY LINE)
+
ACCELERATION PUROPLE AND YELLOW WAVE TELLS YOU SHARP DROPS OR ADVANCES IN ACCELERATION
Trend Entries: Look for the Velocity line turning Lime (🟢) with the ADX histogram printing vivid green bars above the +25 line. This is the highest-confidence long setup — price is accelerating upward with confirmed trend strength.
Caution / Exit Signals: When Velocity turns Yellow (🟡) and sharply drops, momentum is fading even if price is still rising. Consider tightening stops or taking partial profits.
Short / Bearish Bias🔴 : Red Velocity + vivid red ADX bars below −25 signal a strong downtrend in Freefall. Avoid longs; look for short setups.
Potential Reversals: Orange Velocity (Bottoming) combined with ADX bars beginning to fade and shift green can be an early signal that a bottom is forming — useful for scaling into longs cautiously.
Signal Line Crosses: When the Velocity line crosses above the white Signal Line, momentum is picking up. Crosses below suggest weakening. Best used as a confirmation filter, not a standalone trigger.
The ±25 Reference Lines mark the ADX threshold commonly used to separate trending (above) from ranging (below) markets. ADX histogram bars inside the ±25 zone suggest low trend conviction — reduce position sizing or wait for confirmation.
Inputs
Source — Price input (default: Close)
Velocity Length — Lookback period for rate-of-change calculation (default: 14)
Acceleration Smooth — Smoothing window for acceleration (default: 5)
Signal Line Length — EMA period for the signal line (default: 9)
ADX Length — Period for DMI/ADX calculation (default: 14)
Show Signal Line — Toggle the white signal line on/off
Show Zone Backgrounds — Toggle ADX-strength background shading
Show ADX Histogram — Toggle the ADX directional histogram Indicator

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

Indicator

Indicator

Adaptive Velocity Oscillator [UAlgo]Adaptive Velocity Oscillator is a momentum and reversal framework built around the rate of change of an Adaptive Moving Average. Instead of using a fixed smoothing engine, the script first creates a Kaufman style adaptive average whose responsiveness changes according to market efficiency, then measures how fast that adaptive baseline is moving from one bar to the next. That velocity becomes the core oscillator.
The main idea is straightforward. When the adaptive average starts accelerating upward, the oscillator rises above zero. When the adaptive average starts decelerating or turning lower, the oscillator falls below zero. This gives the user a direct view of directional pressure, but in a way that remains sensitive to changing market conditions because the underlying average itself is adaptive rather than static.
To make the oscillator more practical, the script surrounds the velocity with dynamic filter bands derived from the standard deviation of the AMA series. These bands act like a contextual noise threshold. Small fluctuations inside the band are treated as less important, while stronger moves through the band can be interpreted as meaningful directional expansion or reversal activity.
The script also supports two signal styles. Standard mode reacts to velocity transitions through the regular filter band. Extreme Reversal mode requires a deeper stretch into an expanded threshold before signaling a reversal style response. Optional price confirmation can then require bullish candle structure for buy signals and bearish candle structure for sell signals. A cooldown filter is added on top so the same type of signal cannot repeat too rapidly.
The result is an oscillator that can be used for trend context, reversal spotting, and momentum transition analysis. It is especially useful for traders who want something more adaptive than a traditional moving average crossover or a simple rate of change calculation.
🔹 Features
🔸 Adaptive AMA Core
The script uses an adaptive moving average whose smoothing constant changes according to the Efficiency Ratio. When price is moving efficiently in one direction, the average becomes more responsive. When price is noisy and directionless, the average becomes slower and more stable.
🔸 Velocity Based Oscillator
The oscillator is not built from price directly. It is built from the bar to bar change of the adaptive average. This means the indicator measures how quickly the smoothed baseline itself is moving, which creates a cleaner momentum signal than raw price change alone.
🔸 Dynamic Filter Bands
A statistical filter band is calculated from the standard deviation of the AMA series and then scaled by the user selected gamma value. This creates a noise threshold that expands and contracts with market conditions.
🔸 Standard and Extreme Reversal Modes
In Standard mode, signals are generated when velocity crosses back through the regular filter threshold. In Extreme Reversal mode, the script requires a deeper stretch using an expanded band before a signal can trigger. This gives the user a choice between more responsive and more selective behavior.
🔸 Optional Price Confirmation
Signals can require candle confirmation. Bullish signals may be restricted to bars where close is above open, and bearish signals may be restricted to bars where close is below open. This can help reduce signals that appear without supportive candle structure.
🔸 Cooldown Protection
A built in cooldown logic prevents repeated same side signals from firing too close together. This helps reduce clustering during noisy or oscillatory phases.
🔸 Trend State From Zero Crosses
The script also tracks velocity crosses through zero. These zero transitions can be interpreted as broader positive or negative momentum regime shifts.
🔸 Visual Context Through Color and Bands
The histogram and line coloring change according to whether velocity is strongly positive, strongly negative, or neutral relative to the filter zone. This makes the oscillator easy to read at a glance.
🔸 Signal Labels and Alerts
The indicator places buy and sell labels around qualifying signal bars and includes alert conditions for bullish signals, bearish signals, positive trend shifts, and negative trend shifts.
🔹 Calculations
1) AMA State Container
type AMACalculator
float value = na
float value_prev = na
float velocity = 0.0
float filterBand = 0.0
This object stores the internal state of the adaptive average engine.
value holds the latest AMA value.
value_prev stores the previous AMA value.
velocity stores the bar to bar change of that AMA.
filterBand stores the active dynamic threshold used later for signal filtering.
So before any signal logic begins, the script already has a dedicated structure for the adaptive average, its momentum, and its statistical band.
2) Efficiency Ratio Calculation
float change = math.abs(src - src )
float volatility = math.sum(math.abs(src - src ), lengthER)
float ER = volatility == 0 ? 0 : change / volatility
This is the first major step inside the AMA calculation.
The script compares two quantities.
change measures the net directional move from the current price back to the price lengthER bars ago.
volatility measures the total path traveled during that same interval by summing all absolute bar to bar changes.
The Efficiency Ratio is then:
ER = change / volatility
If price moved smoothly in one direction, net change will be large relative to total movement, and ER will be high. If price moved in a noisy back and forth way, total movement will be large but net change will be smaller, so ER will be low.
This ratio tells the AMA how efficiently price has been moving, which directly controls how responsive the adaptive average should become.
3) Building the Adaptive Smoothing Constant
float fastest = 2.0 / (fastLen + 1)
float slowest = 2.0 / (slowLen + 1)
float sc = math.pow(ER * (fastest - slowest) + slowest, 2)
This block converts the Efficiency Ratio into a smoothing constant.
First, the script computes the EMA style constants for the chosen fast and slow lengths. Then it blends between them using ER. When ER is high, the result moves closer to the fast setting. When ER is low, the result stays closer to the slow setting.
Finally, the blended value is squared. This is a classic AMA technique that makes the adaptive response more sensitive to efficiency changes.
So the smoothing constant automatically shifts between fast and slow behavior depending on market structure.
4) Updating the Adaptive Moving Average
this.value_prev := this.value
float prevAma = na(this.value_prev) ? src : this.value_prev
this.value := prevAma + sc * (src - prevAma)
This is the actual AMA update formula.
The script first stores the previous AMA value. If no previous value exists yet, it uses the current source as the starting point.
Then it updates the average using:
new AMA = previous AMA + smoothing constant × (source minus previous AMA)
So the adaptive average moves toward price, but the speed of that movement depends entirely on the previously calculated smoothing constant.
When the market is efficient, the average reacts more quickly. When the market is noisy, it reacts more slowly.
5) Computing Velocity
this.velocity := this.value - prevAma
This single line is the core of the oscillator.
Velocity here is simply the difference between the current AMA value and the previous AMA value.
If the adaptive average is rising, velocity is positive.
If the adaptive average is falling, velocity is negative.
If the adaptive average is barely moving, velocity stays close to zero.
So the oscillator is not measuring price change directly. It is measuring the momentum of the adaptive baseline itself.
6) Creating the Dynamic Filter Band
float amaGlobalSeries = amaObj.value
float sigma = ta.stdev(amaGlobalSeries, n)
amaObj.filterBand := gamma * sigma
After the AMA is calculated, the script builds a dynamic filter threshold from its standard deviation.
sigma measures how much the AMA has been varying over the selected period.
That value is then scaled by gamma to create the final filter band.
So the band expands when the adaptive average becomes more variable and contracts when the average becomes quieter.
This creates a context aware threshold that helps separate meaningful momentum movement from smaller background fluctuations.
7) Regular Band and Extreme Band
float currentVelocity = amaObj.velocity
float currentFilter = amaObj.filterBand
float extremeBand = currentFilter * extMulti
This block prepares the two signal thresholds used later.
currentFilter is the normal band.
extremeBand is a larger band created by multiplying the normal band by the user selected extreme multiplier.
So the script supports two layers of selectivity:
a regular threshold for Standard mode,
and a deeper threshold for Extreme Reversal mode.
8) Raw Signal Logic
bool rawBullSignal = sigMode == "Standard" ? ta.crossover(currentVelocity, -currentFilter) : ta.crossover(currentVelocity, -extremeBand)
bool rawBearSignal = sigMode == "Standard" ? ta.crossunder(currentVelocity, currentFilter) : ta.crossunder(currentVelocity, extremeBand)
This is the primary signal engine.
In Standard mode:
a bullish signal appears when velocity crosses upward through the negative regular filter level.
a bearish signal appears when velocity crosses downward through the positive regular filter level.
In Extreme Reversal mode:
a bullish signal requires velocity to recover upward through the deeper negative extreme band.
a bearish signal requires velocity to fall downward through the deeper positive extreme band.
The important idea is that signals are not based on zero line crosses alone. They are based on velocity reentering from stretched territory. That makes the logic more reversal oriented than a simple trend flip model.
9) Optional Price Confirmation
if reqPriceConf
rawBullSignal := rawBullSignal and close > open
rawBearSignal := rawBearSignal and close < open
This block adds an extra candle structure filter.
If price confirmation is enabled:
bullish signals are only allowed when the bar closes above its open.
bearish signals are only allowed when the bar closes below its open.
This can help reduce signals that occur mathematically in the oscillator but do not have supportive price behavior on the actual candle.
So the oscillator can be used either in pure indicator form or with a stricter candle aligned confirmation layer.
10) Cooldown Filter Logic
method filterSignal(array arr, bool cond, int waitBars) =>
bool isValid = false
if cond
int lastSignalBar = arr.size() > 0 ? arr.get(0) : -waitBars - 1
if (bar_index - lastSignalBar) >= waitBars
isValid := true
arr.unshift(bar_index)
if arr.size() > 2
arr.pop()
isValid
This method prevents signals from firing too frequently.
When a new raw signal appears, the script looks at the most recent stored signal bar for that direction. If enough bars have passed since the previous signal, the new one is accepted. Otherwise it is ignored.
The accepted signal bar index is then stored at the front of the array. Only a small recent history is kept.
So this method acts as a timing gate that stops repetitive same side signals during choppy conditions.
11) Final Signal Construction
var array lastBull = array.new()
var array lastBear = array.new()
bool finalBullSignal = lastBull.filterSignal(rawBullSignal, cooldown)
bool finalBearSignal = lastBear.filterSignal(rawBearSignal, cooldown)
This is where raw signals become final trade style signals.
Bullish signals are passed through the bullish cooldown array.
Bearish signals are passed through the bearish cooldown array.
That means buy and sell signals are filtered independently. A recent bullish signal only blocks another bullish signal, and a recent bearish signal only blocks another bearish signal.
So the script maintains clean directional spacing for both sides.
12) Histogram Coloring Logic
color histColor = currentVelocity > currentFilter ? color.new(colorUp, 20) :
currentVelocity < -currentFilter ? color.new(colorDn, 20) :
currentVelocity > 0 ? color.new(colorUp, 70) :
color.new(colorDn, 70)
This block assigns visual meaning to oscillator strength.
If velocity is above the upper regular filter, the histogram uses a stronger bullish color.
If velocity is below the lower regular filter, it uses a stronger bearish color.
If velocity is still positive but inside the filter region, it uses a softer bullish color.
If velocity is negative but inside the filter region, it uses a softer bearish color.
So the color logic tells the user both direction and intensity at the same time.
13) Drawing the Filter Bands
plot(currentFilter, "Upper Filter Band", color=color.new(colorDn, 40), linewidth=1, style=plot.style_line)
plot(-currentFilter, "Lower Filter Band", color=color.new(colorUp, 40), linewidth=1, style=plot.style_line)
plot(extremeBand, "Upper Extreme Band", color=color.new(colorDn, 60), linewidth=1, style=plot.style_line, display=sigMode == "Extreme Reversal" ? display.all : display.none)
plot(-extremeBand, "Lower Extreme Band", color=color.new(colorUp, 60), linewidth=1, style=plot.style_line, display=sigMode == "Extreme Reversal" ? display.all : display.none)
These plots create the visual threshold system.
The regular upper and lower filter bands are always shown.
The wider extreme bands are shown only when Extreme Reversal mode is selected.
This makes it easy to see whether current velocity is operating inside the neutral zone, beyond the regular band, or at deeper stretch levels.
14) Filling the Neutral Filter Region
p_upper = plot(currentFilter, display=display.none)
p_lower = plot(-currentFilter, display=display.none)
fill(p_upper, p_lower, color=color.new(colorNeu, 95), title="Filter Band Fill")
This block shades the area between the upper and lower regular filter bands.
The filled zone visually represents the neutral or lower conviction region. When velocity remains inside this zone, momentum is more muted relative to recent adaptive average behavior.
So the fill acts as a quick background cue for whether velocity is still inside normal fluctuation territory.
15) Plotting Velocity as Histogram and Line
plot(currentVelocity, "AMA Velocity", color=histColor, style=plot.style_columns)
plot(currentVelocity, "Velocity Line", color=histColor, linewidth=2)
The same velocity value is drawn in two forms.
The column plot gives a strong histogram style momentum read.
The line plot overlays the same data as a smoother continuous path.
Using both together makes the oscillator easier to read because the columns highlight amplitude while the line emphasizes turning points and transitions.
16) Signal Label Placement
if finalBullSignal
label.new(x=bar_index, y=math.min(0, currentVelocity) - math.abs(sigMode == "Extreme Reversal" ? extremeBand : currentFilter) - (math.abs(currentFilter) * 1.5),
text="▲ BUY",
color=color.new(color.white, 100),
textcolor=colorUp,
style=label.style_none,
size=size.small)
if finalBearSignal
label.new(x=bar_index, y=math.max(0, currentVelocity) + math.abs(sigMode == "Extreme Reversal" ? extremeBand : currentFilter) + (math.abs(currentFilter) * 1.5),
text="SELL ▼",
color=color.new(color.white, 100),
textcolor=colorDn,
style=label.style_none,
size=size.small)
These blocks place the signal labels outside the oscillator body rather than directly on top of the bars.
For bullish signals, the label is positioned below the relevant lower threshold area.
For bearish signals, the label is positioned above the relevant upper threshold area.
This helps keep the chart readable and visually separates the signal from the oscillator itself.
17) Alert Conditions
alertcondition(finalBullSignal, "Buy Signal", "AMA Velocity Buy Signal")
alertcondition(finalBearSignal, "Sell Signal", "AMA Velocity Sell Signal")
bool posTrend = ta.crossover(currentVelocity, 0)
bool negTrend = ta.crossunder(currentVelocity, 0)
alertcondition(posTrend, "Positive Trend", "AMA Velocity crossed above zero")
alertcondition(negTrend, "Negative Trend", "AMA Velocity crossed below zero")
The script provides four alert types.
The first two alert on final buy and sell signals after all filters and cooldown checks are applied.
The second two alert when velocity crosses the zero line, which can be interpreted as broader momentum regime shifts.
So the indicator supports both reversal style event monitoring and general trend transition monitoring. Indicator

Squeeze Impulse OscillatorSqueeze Impulse Oscillator (SIO)
Indicator Description
The Squeeze Impulse Oscillator is designed to detect moments when the market exits a consolidation phase (squeeze) and forms a strong impulsive move. The indicator analyzes candlestick patterns, the ratio of the body to the range, wick lengths, and price dynamics to assess the strength of the current trend and potential breakout from consolidation.
The core idea is to compare two components:
Impulse – shows how strong the price movement is, based on the body size relative to the range and the persistence of direction (consecutive bars in the same direction).
Squeeze – reflects the degree of market tightness, evaluated by wick length and range contraction. Longer wicks and narrower ranges indicate higher energy accumulation for a subsequent impulse.
The resulting SIO value = impulse − squeeze. Positive values indicate a dominance of the impulse component, negative values point to a squeeze phase. Additional threshold levels help identify confident impulse zones and extreme squeeze zones.
How It Works
Candle Evaluation
Relative body size (bodyEff) – ratio of the candle body to its full range. Larger body means stronger impulse.
Wick ratio (wickRatio) – total wick length relative to the range. Long wicks indicate indecision or accumulation.
Current range compared to its average (rangeRatio) – helps incorporate volatility.
Price Dynamics
Persistence factor (persist) equals 1 if the last two price changes are in the same direction, otherwise 0.
Component Calculation
impulseScore = bodyEff × rangeRatio × (0.5 + 0.5 × persist)
squeezeScore = wickRatio × (2.0 − rangeRatio) × (1.0 − persist × 0.5)
Oscillator
rawSIO = impulseScore − squeezeScore
Final sio value is smoothed with an exponential moving average (EMA) using the specified smoothing period.
Squeeze Counter
When sio drops below the squeeze threshold (i_sqzTh), a consecutive bar count begins. The counter resets when sio rises above zero.
Additional Line
Averaged wick bias (avgWickBias) is displayed, showing which side has longer wicks (positive → bullish bias, negative → bearish bias). Used for signal filtering.
Signals
The indicator generates three types of signals (enabled via Show Signals parameter):
Bull Impulse – green triangle at the bottom.
Conditions:
sio crosses above the impulse threshold (i_impTh);
preceded by at least the minimum number of squeeze bars (Min Squeeze Bars);
wick bias positive (avgWickBias > 0).
Interpretation: after a prolonged squeeze phase, price starts moving up, confirmed by bullish candle structure.
Bear Impulse – red triangle at the bottom.
Same conditions but wick bias ≤ 0.
Interpretation: expected downward move after a squeeze.
Squeeze Start – purple diamond at the top.
Occurs when sio crosses below the squeeze threshold. Warns of possible energy accumulation and an upcoming impulse.
Visual Elements
SIO Histogram – colored according to the state:
bright green/red (depending on candle direction) – above impulse threshold;
purple – below squeeze threshold;
gray – neutral zone.
Wick Bias Line (yellow) – scaled for better visibility.
Squeeze Counter – purple step line showing consecutive bars in squeeze.
Background Highlight – squeeze zones are marked with a semi‑transparent purple background.
Horizontal Levels: impulse threshold, zero line, squeeze threshold.
Input Parameters
Core
Period – period for average range calculation and wick bias moving average.
Smoothing – EMA smoothing of the final SIO value.
Impulse Threshold – level above which the value is considered impulsive.
Squeeze Threshold – level below which the value is considered a squeeze.
Signals
Show Signals – enable/disable signal plotting.
Min Squeeze Bars – minimum number of consecutive squeeze bars required for an impulse signal.
Highlight Squeeze Zones – enable/disable background highlighting.
Colors – custom colors for all visual elements.
Usage
The indicator helps identify entry points after consolidation phases. Buy/sell signals should be considered only with confirming factors: higher‑timeframe trend, volume, support/resistance levels. False signals may occur in low‑volatility markets or during news events. It is recommended to backtest and adapt thresholds for the specific instrument.
Disclaimer
This indicator is not financial advice. All calculations are based on historical data and do not guarantee future results. Use it as one of many analytical tools in combination with other methods. Indicator

Apex Momentum Wave [Pineify]Apex Momentum Wave
The Apex Momentum Wave (AMW) is a noise-filtered momentum oscillator that combines Hull Moving Average price smoothing with RSI momentum measurement and an EMA-based signal line to produce cleaner, more actionable momentum readings. Instead of applying RSI directly to raw price — which often generates noisy, whipsaw-prone signals — AMW first smooths the close price through an HMA filter to strip out short-term market noise, then measures momentum on this cleaned data. The result is a responsive yet smooth oscillator that highlights genuine momentum shifts while suppressing false signals. Buy and sell markers are further refined by a midline filter that only triggers entries when momentum is turning from a favorable position, making this indicator a practical tool for timing entries across any market and timeframe.
Key Features
HMA-smoothed RSI oscillator — applies RSI to a Hull Moving Average of price rather than raw close, dramatically reducing noise and false momentum readings.
EMA signal line with crossover detection — a trailing signal line provides clear, objective crossover-based entry triggers.
Midline-filtered buy/sell signals — BUY signals only fire when momentum crosses up below the 50 midline (turning from weakness), and SELL signals only fire when crossing down above 50 (turning from strength), filtering out low-conviction entries.
Multi-layer visual zone system — overbought/oversold zones, dynamic breach fills, and oscillator-signal cloud fills provide instant visual context of market momentum state.
Built-in alert conditions — configurable alerts for both BUY and SELL signals for hands-free monitoring.
How It Works
The indicator follows a three-stage calculation pipeline designed to extract clean momentum information from price:
Price smoothing via Hull Moving Average (HMA): The closing price is first passed through an HMA with a configurable period (default: 7). The Hull Moving Average uses a combination of weighted moving averages with a square-root-period final smoothing step, producing a curve that closely tracks price with significantly less lag than traditional SMA or EMA. This step acts as a pre-filter, removing intrabar noise and minor fluctuations before momentum is measured.
Momentum measurement via RSI: The Relative Strength Index is then calculated on the HMA-smoothed price over a configurable lookback (default: 14). Because the input price has already been cleaned by the HMA, the resulting RSI oscillator produces smoother momentum readings that more accurately reflect the underlying trend's strength, rather than reacting to every minor price tick.
Signal line via EMA: An Exponential Moving Average (default period: 9) is applied to the oscillator output, creating a trailing signal line. Crossovers between the oscillator and this signal line indicate momentum direction changes — the oscillator crossing above the signal suggests strengthening momentum, while crossing below suggests weakening momentum.
Trading Ideas and Insights
The AMW is designed to be versatile across different trading styles and market conditions. Here are practical approaches:
Momentum reversal entries: The primary use case — when a BUY triangle appears (oscillator crosses above signal below the 50 midline), it indicates momentum is shifting from bearish to bullish while still in the lower half of the range, catching the turn early. Enter long and target the midline or overbought zone. The SELL signal is the mirror for short entries.
Overbought/oversold confluence: When the oscillator enters the shaded overbought zone (above 80) or oversold zone (below 20), the market is at a momentum extreme. Wait for the oscillator to turn and cross below the signal line (in overbought) or above it (in oversold) for high-probability mean reversion trades.
Trend confirmation: Use the cloud fill between the oscillator and signal line as a trend filter. A sustained bullish (green) cloud suggests maintaining long bias; a sustained bearish (red) cloud suggests maintaining short bias. Only take signals aligned with the prevailing cloud color for higher win rates.
Divergence analysis: Compare the oscillator's peaks and troughs with price action. If price makes a higher high but the oscillator makes a lower high, bearish divergence suggests weakening momentum — and vice versa for bullish divergence. These divergences often precede significant reversals.
How Multiple Indicators Work Together
The AMW integrates three distinct technical components into a cohesive system, each serving a specific role:
Hull Moving Average (noise reduction): The HMA serves as the foundation layer, transforming noisy raw price data into a clean input signal. Its near-zero-lag property is critical — if a lagging average like SMA were used instead, the subsequent RSI calculation would inherit that lag, making the entire oscillator slow to react. HMA preserves responsiveness while eliminating the noise that causes false RSI signals.
Relative Strength Index (momentum quantification): RSI converts the smoothed price movement into a bounded 0–100 oscillator that measures the speed and magnitude of price changes. Applied to the HMA-filtered price, it produces a momentum reading that is both responsive and stable — capturing genuine momentum shifts without the jitter that plagues standard RSI on raw price.
Exponential Moving Average signal line (timing mechanism): The EMA of the oscillator creates a reference line that the oscillator oscillates around. Crossovers between the two provide objective, rule-based entry timing. The EMA's inherent smoothing prevents the signal line from reacting to every minor oscillator fluctuation, ensuring crossovers represent meaningful momentum changes rather than noise.
The synergy is sequential: HMA cleans the price → RSI measures momentum on clean data → EMA provides a timing reference for the momentum reading. Each layer builds on the previous one, and the midline filter on top adds a final directional bias check, ensuring the complete system produces signals only when multiple conditions align.
Unique Aspects
Pre-filtered RSI approach: Most oscillator indicators apply RSI (or similar) directly to raw price. AMW's innovation is the HMA pre-smoothing step, which fundamentally changes the quality of the RSI output. This two-stage approach produces a momentum oscillator that behaves more like a "true" momentum reading rather than a noisy derivative of price.
Midline directional filter: Unlike simple crossover systems that generate signals anywhere in the oscillator range, AMW restricts BUY signals to the lower half (below 50) and SELL signals to the upper half (above 50). This ensures entries occur when momentum is turning from a relatively extreme position, significantly reducing false signals during choppy, range-bound conditions.
Multi-layer visual feedback: The indicator provides four distinct visual layers — oscillator-signal cloud fill, horizontal zone lines, extreme zone background shading, and dynamic breach fills — giving traders an immediate, at-a-glance understanding of the current momentum state without needing to interpret raw numbers.
Clean sub-panel design: As a non-overlay oscillator, AMW keeps the price chart uncluttered while providing all momentum information in a dedicated panel, making it easy to combine with overlay-based indicators like moving averages or support/resistance tools.
How to Use
Add the indicator to your chart. It will appear in a separate panel below the price chart, displaying the oscillator (thick line), signal line (orange), and reference levels.
Watch for BUY triangles (green, at the bottom of the panel) — these appear when the oscillator crosses above the signal line while below the 50 midline, indicating a bullish momentum shift from a weak state.
Watch for SELL triangles (red, at the top of the panel) — these appear when the oscillator crosses below the signal line while above the 50 midline, indicating a bearish momentum shift from a strong state.
Use the cloud fill color between the oscillator and signal line to gauge the prevailing momentum direction — green for bullish, red for bearish.
Monitor the overbought (80) and oversold (20) zones. When the oscillator enters these shaded areas and the breach fill activates, the market is at a momentum extreme — be alert for potential reversals.
Set up alerts using the built-in "AMW Buy Signal" and "AMW Sell Signal" alert conditions to receive real-time notifications.
Customization
Momentum Length (default: 14): The RSI lookback period. Lower values (e.g., 8–10) make the oscillator more sensitive and responsive, suitable for scalping or lower timeframes. Higher values (e.g., 21–30) produce smoother, more stable readings for swing trading or higher timeframes.
Price Smoothing / HMA (default: 7): Controls the Hull Moving Average period applied to price before RSI calculation. Lower values preserve more price detail but allow more noise through; higher values produce a cleaner oscillator but introduce slight additional lag. Find the balance that suits your timeframe.
Signal Line Length (default: 9): The EMA period for the signal line. Shorter periods make the signal line more reactive, generating more frequent crossovers; longer periods produce fewer but potentially more reliable crossover signals.
Overbought Level (default: 80): The upper threshold for the extreme zone. Raise to 85 or 90 for fewer but more extreme overbought readings; lower to 70 or 75 for earlier warnings.
Oversold Level (default: 20): The lower threshold for the extreme zone. Lower to 10 or 15 for fewer but more extreme oversold readings; raise to 25 or 30 for earlier warnings.
All colors — bullish, bearish, and signal line — are fully customizable through the Colors & Aesthetics settings group.
Conclusion
The Apex Momentum Wave reimagines the classic RSI oscillator by introducing an HMA pre-smoothing stage that fundamentally improves signal quality. Combined with an EMA signal line for objective crossover timing and a midline directional filter that restricts entries to favorable momentum positions, AMW delivers a momentum oscillator that is both cleaner and more actionable than standard RSI implementations. Its multi-layer visual design — featuring cloud fills, zone shading, and dynamic breach highlights — provides traders with immediate, intuitive momentum context. Whether you trade stocks, forex, crypto, or futures, the Apex Momentum Wave adapts to your market and timeframe, offering a refined approach to momentum-based trading decisions. Indicator

Indicator

Strategy

MACD Signal (Acht)Script Description: MACD Signal
This script is a modified version of the classic MACD (Moving Average Convergence Divergence) indicator. Custom conditions have been added to generate more precise buy (long) and sell (short) signals using the EMA9, EMA20, and EMA200 moving averages.
Main Components of the Indicator:
MACD line (fast EMA12 – slow EMA26)
Signal line (EMA9 of MACD)
MACD histogram (difference between MACD and signal line), colored in standard shades: green shades when the histogram is positive, red shades when negative.
Zero line (horizontal line at 0).
Additional Calculations:
EMA9, EMA20, EMA200 based on the closing price (close). The periods of these moving averages can be adjusted in the input parameters.
Signal Conditions:
Long Signal (buy) – green vertical line:
Closing price above EMA200 (global uptrend).
EMA9 crosses above EMA20 (crossover) – entry point.
On the previous bar, the MACD lines (macd and signal) were below zero – confirmation that the indicator is emerging from the "bearish" zone.
Short Signal (sell) – red vertical line:
Closing price below EMA200 (global downtrend).
EMA9 crosses below EMA20 (crossunder) – entry point.
On the previous bar, the MACD lines (macd and signal) were above zero – confirmation that the indicator is emerging from the "bullish" zone.
Signal Visualization:
When conditions are met on the current bar, a vertical line is drawn, spanning from the minimum to the maximum MACD value over the last 100 bars. This makes the signal clearly visible across the entire height of the indicator.
Line color: green for long, red for short. Line width is 2.
Lines older than 200 bars are automatically deleted to prevent chart clutter.
Input Parameters (adjustable):
Source – data source for MACD (default: close).
Fast length – period of the fast EMA (default: 12).
Slow length – period of the slow EMA (default: 26).
Signal length – period of the signal line (default: 9).
Oscillator MA type / Signal MA type – types of moving averages for MACD and signal (EMA or SMA).
EMA 9 length, EMA 20 length, EMA 200 length – periods of the additional EMAs for entry conditions (default: 9, 20, 200).
Built-in Alert Conditions:
Rising to falling – triggers when the histogram transitions from positive to negative (green → red).
Falling to rising – triggers when the histogram transitions from negative to positive (red → green).
Notes:
All EMA9/EMA20 crossovers are calculated globally on each bar, eliminating compilation errors and ensuring correct indicator operation.
Signals do not repaint, as they use only current and previous values.
The code fully complies with Pine Script v6 and contains no errors.
This indicator helps identify entry points in the direction of the global trend (determined by EMA200) with confirmation from the MACD, enhancing signal reliability. 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
