Institutional Structure Intelligence Engine [JOAT]Institutional Structure Intelligence Engine
Introduction
The Institutional Structure Intelligence Engine is an advanced open-source market structure indicator that combines swing detection, order block analysis, fair value gap (FVG) identification, institutional level tracking, and velocity analysis into a comprehensive structural intelligence system. This indicator helps traders identify where institutional orders are positioned, where price inefficiencies exist, and how market structure is evolving in real-time.
Unlike basic support/resistance indicators that draw static lines, this engine dynamically tracks institutional footprints through order blocks (zones where institutions accumulated or distributed), fair value gaps (price inefficiencies that often get filled), breaker blocks (failed order blocks signaling reversals), and multi-timeframe institutional levels. The indicator is designed for traders who understand that market structure reveals institutional intent and that price gravitates toward areas of institutional interest.
Why This Indicator Exists
This indicator addresses the challenge of identifying institutional positioning in real-time. Institutional traders leave structural footprints that can be detected through systematic analysis. By combining multiple structural methodologies, this indicator reveals:
Order Block Detection: Identifies zones where institutions accumulated or distributed positions before major moves
Fair Value Gaps: Detects price inefficiencies where rapid institutional movement left unfilled gaps
Breaker Blocks: Tracks failed order blocks that signal potential trend reversals
Institutional Levels: Monitors Weekly/Daily highs and lows, Premium/Discount zones, and Golden Zone (0.618-0.5 Fibonacci)
Structure Velocity: Measures how quickly market structure is forming to identify momentum shifts
Compression Zones: Detects periods of range compression that often precede explosive moves
Each component provides a different structural perspective. Order blocks show where institutions positioned, FVGs show where price moved inefficiently, breaker blocks show where structure failed, institutional levels show key reference points, velocity shows momentum, and compression zones show coiling energy. Together, they create a comprehensive structural intelligence system.
Below showing the Main Features and how it works:
Core Components Explained
1. Advanced Order Block Detection
Order blocks are identified using strict volume and price action criteria:
Bullish Order Block:
// Two consecutive down candles followed by strong up move
if close < open and close < open and close > open and
volume > avgVolume * obVolumeThreshold and
close > high and
(high - low ) <= atr * maxATRMult and
(close - open) > atr * 0.5
Bearish Order Block:
// Two consecutive up candles followed by strong down move
if close > open and close > open and close < open and
volume > avgVolume * obVolumeThreshold and
close < low and
(high - low ) <= atr * maxATRMult and
(open - close) > atr * 0.5
Order blocks represent the last opposite-direction move before a strong impulse. The logic: institutions accumulate/distribute in the opposite direction before pushing price in their intended direction. The indicator tracks:
Order block volume (total volume during formation)
Number of touches (how many times price returned to the zone)
Zone strength (calculated from volume, touches, and age)
Breaker status (whether the order block was invalidated)
Overlapping Order Block Combination:
When multiple order blocks overlap, the indicator combines them into a single stronger zone:
if doOBsOverlap(ob1, ob2)
ob1.top := math.max(ob1.top, ob2.top)
ob1.bottom := math.min(ob1.bottom, ob2.bottom)
ob1.obVolume += ob2.obVolume
ob1.touches += ob2.touches
ob1.strength := math.max(ob1.strength, ob2.strength)
This prevents chart clutter and highlights the most significant institutional zones.
2. Breaker Block Detection
Breaker blocks are order blocks that failed - price broke through them instead of bouncing. This signals potential trend reversal:
// Bullish OB becomes breaker if price breaks below
if low < ob.bottom
ob.breaker := true
ob.breakTime := time
// Bearish OB becomes breaker if price breaks above
if high > ob.top
ob.breaker := true
ob.breakTime := time
Breaker blocks are displayed with distinct colors (cyan for bullish breakers, orange for bearish breakers) to differentiate them from active order blocks. When an order block becomes a breaker, it often signals that institutional positioning has changed and the previous structure is no longer valid.
3. Fair Value Gap (FVG) Detection
FVGs are identified using strict gap and volume criteria:
Bullish FVG:
// Gap between 2 bars ago high and current low
bool bullishFVGDetected = low > high and
(low - high ) > atr * 0.3 and // Minimum gap size
volume > avgVolume * 0.8 // Volume confirmation
Bearish FVG:
// Gap between 2 bars ago low and current high
bool bearishFVGDetected = high < low and
(low - high) > atr * 0.3 and // Minimum gap size
volume > avgVolume * 0.8 // Volume confirmation
FVGs represent price inefficiencies where institutional orders moved price so quickly that normal auction process was bypassed. These gaps often get "filled" as price returns to establish fair value. The indicator tracks:
FVG top and bottom prices
Mitigation status (whether the gap has been filled)
Mitigation bar (when the gap was filled)
Only non-mitigated FVGs are displayed to keep charts clean. Maximum FVG count is customizable (default: 3) to prevent clutter.
Showing Order Block, Breaker Block, and All Combined OB's that occured:
4. Institutional Level Tracking
The indicator monitors key institutional reference levels:
Weekly High/Low:
float lastWeekHigh = request.security(syminfo.tickerid, "W", high )
float lastWeekLow = request.security(syminfo.tickerid, "W", low )
Daily High/Low:
float yesterdayHigh = request.security(syminfo.tickerid, "D", high )
float yesterdayLow = request.security(syminfo.tickerid, "D", low )
Premium/Discount Zones:
Based on weekly range:
Premium Zone: 70%-100% of weekly range (institutional selling zone)
Discount Zone: 0%-30% of weekly range (institutional buying zone)
Golden Zone: 50%-61.8% of weekly range (optimal entry zone)
float weekRange = lastWeekHigh - lastWeekLow
float premiumTop = lastWeekHigh
float premiumBot = lastWeekLow + (weekRange * 0.7)
float discountTop = lastWeekLow + (weekRange * 0.3)
float discountBot = lastWeekLow
float goldenTop = lastWeekLow + (weekRange * 0.618)
float goldenBot = lastWeekLow + (weekRange * 0.5)
These zones help traders identify where institutions are likely to buy (discount) or sell (premium), with the golden zone representing optimal risk:reward entries.
Breaker Block with VOL, Discount zone touched for signal, Market Phase + Quality of chart score:
5. Structure Velocity Analysis
The indicator measures how quickly market structure is forming:
// Price velocity
priceVelocity = ta.change(close, velocityLength) / velocityLength
velocityMA = ta.sma(math.abs(priceVelocity), velocityLength)
velocityScore = velocityMA > 0 ? math.abs(priceVelocity) / velocityMA : 0
// Volume momentum
volumeMomentum = volume / avgVolume
volumeAcceleration = ta.change(volumeMomentum, 5)
// Structure velocity (how fast structure is forming)
structureVelocity = (bar_index - lastSwingHighBar) + (bar_index - lastSwingLowBar)
High velocity indicates rapid structure formation (trending market), low velocity indicates slow structure formation (ranging market). Velocity analysis helps traders identify momentum shifts before they become obvious in price.
6. Compression to Expansion Detection
The indicator detects periods of range compression using strict criteria:
float rangeMA = ta.sma(high - low, 50)
float currentRange = high - low
bool compressed = currentRange < rangeMA * 0.3 and volume < avgVolume * 0.8
bool expanding = currentRange > rangeMA * 2.0 and volume > avgVolume * 1.3
Compression zones are only displayed if:
Compression lasted at least 10 bars
Range is less than 1.5x ATR (truly tight)
This prevents false compression signals and highlights only significant coiling periods that often precede explosive moves.
7. Swing Point Detection
The indicator uses pivot-based swing detection:
pivotHigh = ta.pivothigh(high, swingLength, swingLength)
pivotLow = ta.pivotlow(low, swingLength, swingLength)
Swing points are stored in arrays and used for:
Structure line drawing
Break of Structure (BOS) detection
Change of Character (CHOCH) detection
Trend determination
Swing length is customizable (default: 10) to adjust sensitivity.
Visual Elements
Order Block Boxes: Filled boxes showing bullish (green) and bearish (red) order blocks with volume and touch count
Breaker Block Boxes: Distinct colored boxes (cyan/orange) showing failed order blocks
FVG Boxes: Transparent boxes showing bullish (green) and bearish (red) fair value gaps
Institutional Lines: Weekly high/low (purple), Daily high/low (yellow)
Premium/Discount Fills: Shaded zones showing premium (red), discount (green), and golden (orange) zones
Compression Boxes: Purple boxes showing range compression periods
Swing Points: Triangle markers showing swing highs (red) and swing lows (green)
All visual elements use "locked" boxes that don't extend indefinitely, preventing chart clutter. Overlap prevention logic ensures boxes don't stack on top of each other.
Input Parameters
Structure Detection:
Swing Length: Period for pivot detection (default: 10, range: 3-50)
Show Swing Points: Toggle swing markers (default: enabled)
Show Structure Lines: Toggle structure lines (default: enabled)
Show Compression Zones: Toggle compression boxes (default: disabled to reduce clutter)
Order Blocks:
Show Order Blocks: Toggle order block boxes (default: enabled)
Combine Overlapping OBs: Merge overlapping order blocks (default: enabled)
Show Breaker Blocks: Toggle breaker block display (default: enabled)
Volume Threshold: Minimum volume multiplier for OB detection (default: 1.5)
Max Order Blocks: Maximum OBs to display (default: 3, range: 1-10)
Max ATR Multiplier: Maximum OB size relative to ATR (default: 2.5)
Market Structure:
Show Break of Structure: Toggle BOS markers (default: disabled to reduce clutter)
Show Change of Character: Toggle CHOCH markers (default: enabled)
Show Fair Value Gaps: Toggle FVG boxes (default: enabled)
Show FVG Mitigation: Track when FVGs are filled (default: enabled)
Max FVGs to Display: Maximum FVGs to show (default: 3, range: 1-10)
Institutional Levels:
Show Weekly High/Low: Toggle weekly levels (default: enabled)
Show Daily High/Low: Toggle daily levels (default: enabled)
Show Golden Zone: Toggle 0.618-0.5 Fib zone (default: enabled)
Show Premium/Discount Zones: Toggle institutional zones (default: enabled)
Velocity Analysis:
Show Structure Velocity: Toggle velocity calculations (default: enabled)
Velocity Period: Period for velocity analysis (default: 20, range: 5-50)
Display:
Table Position: Dashboard location (Top Right/Top Left/Bottom Right/Bottom Left)
Show Structure Quality Score: Toggle quality metrics (default: enabled)
Colors:
All colors are fully customizable including bullish/bearish structure, order blocks, breaker blocks, FVGs, weekly/daily levels, golden zone, premium/discount zones, and compression zones.
4HR TF BTCUSDT showing the zones being used in action and price movement:
How to Use This Indicator
Step 1: Identify Key Institutional Zones
Look for order blocks with high touch counts and strong volume. These represent areas where institutions are likely to defend their positions.
Step 2: Monitor Fair Value Gaps
FVGs often get filled as price returns to establish fair value. Look for entries when price approaches unfilled FVGs, especially if they align with order blocks.
Step 3: Watch for Breaker Blocks
When an order block becomes a breaker, it signals that institutional positioning has changed. This often marks trend reversals or significant structure shifts.
Step 4: Use Premium/Discount Zones
Look for long entries in discount zones (0-30% of range) and short entries in premium zones (70-100% of range). The golden zone (50-61.8%) offers optimal risk:reward.
Step 5: Check Institutional Levels
Weekly and daily highs/lows act as magnets for price. Breaks above/below these levels often lead to significant moves.
Step 6: Monitor Structure Velocity
High velocity indicates trending conditions (follow the trend), low velocity indicates ranging conditions (fade extremes).
Step 7: Wait for Compression Breakouts
Compression zones mark periods of coiling energy. Breakouts from compression often lead to explosive moves with strong follow-through.
Best Practices
Use on 15-minute to 4-hour timeframes for optimal structure clarity
Combine order blocks with FVGs for high-probability entries
Wait for price to return to order blocks before entering - don't chase
Breaker blocks often become new support/resistance in opposite direction
Premium/discount zones work best in trending markets
Golden zone entries offer best risk:reward when combined with order blocks
Compression zones require patience - wait for confirmed breakout
Structure velocity helps determine whether to trade with trend or fade extremes
Multiple touches on an order block increase its significance
FVG fills often provide excellent entry opportunities with tight stops
Indicator Limitations
Order blocks don't always hold - institutions can change positioning
FVGs don't always get filled - some gaps persist indefinitely
Breaker blocks can fail - price can return above/below breaker zones
Premium/discount zones are relative to recent range - not absolute levels
Compression detection requires sufficient bars - may not work on new instruments
Structure velocity is a lagging indicator - confirms moves after they start
Maximum box/line limits (500 each) can be reached on lower timeframes with long history
Overlap prevention may hide some valid order blocks to prevent clutter
The indicator shows structure, not direction - requires trader interpretation
Works best on liquid instruments with clear institutional participation
Technical Implementation
Built with Pine Script v6 using:
Custom type definitions for OrderBlockInfo and FVGInfo
Array-based storage for order blocks, FVGs, and swing points
Strict volume and ATR-based filtering for accuracy
Overlap detection and combination logic for order blocks
Breaker block tracking with time-based invalidation
FVG mitigation detection
Multi-timeframe security requests for institutional levels
Fibonacci-based premium/discount zone calculations
Velocity and momentum analysis
Compression detection with strict criteria
Dynamic box and label management with anti-overlap logic
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive structural integration. While individual components (order blocks, FVGs, institutional levels) are established concepts, this indicator is justified because:
It combines seven distinct structural methodologies into a unified intelligence system
Order block detection uses strict multi-criteria filtering (volume, ATR, price action) for accuracy
Automatic order block combination prevents clutter while highlighting strongest zones
Breaker block tracking provides reversal signals not available in basic order block indicators
FVG detection includes mitigation tracking and strict size/volume filtering
Premium/discount zones integrate Fibonacci analysis with institutional levels
Structure velocity analysis provides momentum context for structural zones
Compression detection uses strict criteria to identify only significant coiling periods
Anti-overlap logic ensures clean charts without sacrificing information
Each component contributes unique structural intelligence: order blocks show institutional positioning, FVGs show inefficiencies, breaker blocks show failures, institutional levels show reference points, velocity shows momentum, and compression shows coiling energy. The indicator's value lies in presenting these complementary structural perspectives simultaneously with intelligent filtering and display management.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Market structure analysis is a tool for understanding institutional positioning, not a crystal ball for predicting future price movement. Order blocks, FVGs, and institutional levels do not guarantee profitable trades. Past structural patterns do not guarantee future structural patterns. Market conditions change, and strategies that worked historically may not work in the future.
The zones and levels displayed are mathematical calculations based on current market data, not predictions of future price movement. High-quality order blocks, unfilled FVGs, and premium/discount zones do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Indicator

Indicator

Volatility-Gated Trend Oscillator [QuantAlgo]🟢 Overview
The Volatility-Gated Trend Oscillator identifies statistically significant trend conditions by measuring price deviation from a dynamic baseline and filtering out normal market noise through an adaptive volatility floor. It calculates a moving average of the chosen type as a baseline, then measures how far price has deviated from it relative to average absolute deviation to define a noise threshold. Only when price breaks decisively beyond this threshold is a trend state confirmed, helping traders distinguish genuine momentum from random noise across different timeframes and markets.
🟢 How It Works
The indicator's core methodology lies in its dual-layer approach combining deviation measurement with volatility-gated filtering, where trend confirmation requires price movement to exceed statistically meaningful thresholds.
First, a configurable moving average is calculated to establish a dynamic baseline reflecting the underlying trend at the chosen sensitivity level:
baseline = get_ma(src, sensitivity, ma_type)
raw_diff = src - baseline
Then, the average absolute deviation from the baseline is measured over the same period and scaled by a user-defined multiplier to construct an adaptive noise floor, which is the minimum price deviation required to confirm a trend signal:
noise_floor = ta.sma(math.abs(raw_diff), sensitivity) * noise_mult
The trend state is then determined by comparing raw deviation against this noise floor, with a decay mechanism applied when price re-enters the neutral zone to avoid abrupt reversals:
if raw_diff > noise_floor
trend_state := 1
locked_val := raw_diff
else if raw_diff < -noise_floor
trend_state := -1
locked_val := raw_diff
else
locked_val := locked_val * 0.9
The locked deviation value is then normalized by ATR to make the oscillator comparable across instruments and volatility regimes, and smoothed with a short WMA to reduce micro-fluctuations in the final output:
normalized_val = locked_val / ta.atr(sensitivity)
final_osc = ta.wma(normalized_val, 5)
This creates a robust momentum oscillator that only registers trend conditions when price makes structurally significant moves beyond typical noise, while the ATR normalization ensures readings remain meaningful and consistent regardless of the underlying instrument's price scale or volatility level.
🟢 Signal Interpretation
▶ Bullish Trend (Oscillator Rising Above Zero with Bullish Color): When price deviation breaks above the positive noise floor, the oscillator enters bullish mode with green/bullish coloring across all visual elements = Confirmed upward momentum signal for trend-following long positions. The trend remains bullish until price deviation falls below the negative noise floor, allowing traders to stay positioned through normal consolidations without premature exits on minor pullbacks that remain within the noise boundary.
▶ Bearish Trend (Oscillator Falling Below Zero with Bearish Color): When price deviation breaks below the negative noise floor, the oscillator enters bearish mode with red/bearish coloring across all visual elements = Confirmed downward momentum signal for short positions or long exit signals. The trend remains bearish until deviation exceeds the positive noise floor, enabling traders to maintain directional bias through corrective bounces that stay within the threshold boundaries.
🟢 Features
▶ Preconfigured Presets: Three optimized parameter sets tailored for different trading styles and timeframes. "Default" delivers balanced trend detection for swing trading on 4-hour and daily charts, filtering minor noise while remaining responsive to meaningful momentum shifts. "Fast Response" uses a reactive EMA baseline with a tighter noise floor for intraday and scalping timeframes, generating earlier signals suited to active traders on 5-minute to 1-hour charts. "Smooth Trend" applies a smooth, lag-reduced HMA baseline with a demanding noise threshold for position trading on daily and weekly charts, confirming only major directional shifts with minimal false positives.
▶ Built-in Alerts: Three alert conditions enable automated monitoring of trend transitions without constant chart observation. "Bullish Trend Signal" triggers when the oscillator first enters a confirmed bullish state, alerting for potential long entries. "Bearish Trend Signal" activates when the oscillator first enters a confirmed bearish state, signaling potential short entries or long exits. "Trend Direction Changed" provides a combined alert for any trend transition regardless of direction, allowing traders to monitor both bullish and bearish opportunities through a single alert setup.
▶ Visual Customization: Six color presets (Classic, Aqua, Cosmic, Cyber, Neon, plus Custom) accommodate different chart themes and aesthetic preferences, with coordinated bullish and bearish color schemes applied consistently across all indicator elements. A layered luminance fill system creates graduated visual depth around the main oscillator line using four fill zones at progressively increasing transparency, making trend strength and direction immediately readable at a glance. Optional bar coloring tints price bars with the active trend color during confirmed bullish and bearish periods, providing instant overhead visual confirmation of trend state without requiring direct reference to the oscillator panel below.
Indicator

Thermal Momentum Gauge [JOAT]Thermal Momentum Gauge
Introduction
The Thermal Momentum Gauge is an open-source institutional-grade pressure and volatility monitoring system that combines market pressure measurement, volatility temperature analysis, volume steam detection, and multi-factor explosion identification into a unified oscillator. This sophisticated system integrates multiple proven momentum methodologies to identify high-probability explosive move conditions where pressure, temperature, and steam factors converge.
The indicator is designed for traders who understand that explosive market moves occur when multiple pressure systems align simultaneously. By synthesizing RSI pressure, WaveTrend momentum, Money Flow Index analysis, Stochastic pressure, ATR temperature, Bollinger Band width, volume steam detection, and confluence scoring, this tool helps identify structural market explosion points with thermal precision.
Why This Integration Exists
This indicator combines seven distinct pressure and volatility measurement frameworks that complement each other:
Multi-Component Pressure System: Combines RSI, WaveTrend, MFI, and Stochastic RSI for comprehensive pressure measurement
Thermal Temperature Analysis: Uses ATR and Bollinger Band width to measure market volatility temperature
Volume Steam Detection: Analyzes volume spikes and directional volume pressure for steam identification
Explosion Detection Engine: Multi-factor confluence system that identifies when all pressure systems align
Momentum Confirmation System: Ensures signals occur at genuine turning points through momentum analysis
Pressure Zone Classification: Defines thermal zones from extreme oversold to extreme overbought
Signal Filtering System: Prevents overlapping signals while maintaining precision timing
Each component addresses different aspects of market thermal dynamics. Pressure measurement reveals directional bias, temperature analysis shows volatility energy, steam detection indicates volume explosions, and confluence scoring quantifies setup quality. Together, they create a comprehensive thermal view that traditional single-dimension momentum indicators cannot provide.
Core Components Explained
1. Multi-Component Pressure System (0-100 Scale)
The system combines four pressure measurements for comprehensive analysis:
RSI Pressure:
RSI Pressure = RSI(close, rsi_length) // Standard 0-100 scale
WaveTrend Pressure:
ESA = ema(hlc3, wt_channel_length)
D = ema(abs(hlc3 - ESA), wt_channel_length)
CI = (hlc3 - ESA) / (0.015 * D)
WT1 = ema(CI, wt_average_length)
WT Pressure = (WT1 + 100) / 2 // Normalize -100 to 100 → 0 to 100
MFI Pressure:
MFI Pressure = MFI(hlc3, mfi_length) // Money Flow Index 0-100
Stochastic RSI Pressure (Optional):
Stochastic RSI = Stochastic(RSI(close, rsi_length), stoch_length)
Stoch Pressure = sma(Stochastic RSI, 3)
Combined Pressure:
Total Pressure = (RSI + WT + MFI + Stoch) / 4 // With Stochastic
Total Pressure = (RSI + WT + MFI) / 3 // Without Stochastic
2. Thermal Temperature System (0-100 Scale)
Measures market volatility energy through dual methods:
ATR-Based Temperature:
ATR Percentage = (ATR(atr_length) / close) * 100
ATR Temperature = ATR Percentage * temperature_multiplier
Bollinger Band Width Temperature (Optional):
BB Basis = sma(close, bb_length)
BB Deviation = bb_multiplier * stdev(close, bb_length)
BB Width = ((BB Upper - BB Lower) / BB Basis) * 100
BB Temperature = BB Width * 5 // Scale to 0-100
Combined Temperature:
Temperature = min((ATR Temperature + BB Temperature) / 2, 100) // With BB
Temperature = min(ATR Temperature, 100) // Without BB
3. Volume Steam Detection (0-100 Scale)
Analyzes volume explosions and directional pressure:
Volume Steam Base:
Volume Ratio = volume / sma(volume, volume_length)
Steam Base = Volume Ratio * 50
Volume Delta (Optional):
Buy Volume = close > open ? volume : 0
Sell Volume = close < open ? volume : 0
Volume Delta = (Buy Volume - Sell Volume) / volume * 50
Combined Steam:
Steam = min(Steam Base + abs(Volume Delta), 100)
Steam Classifications:
- Steam Burst: Steam > steam_threshold (default 80)
- Extreme Steam: Steam > 90
- Volume Spike Direction: Bullish (close > open) or Bearish (close < open)
4. Explosion Detection Engine
Multi-factor confluence system with momentum confirmation:
Momentum Confirmation:
Pressure Momentum = change(Total Pressure)
Pressure Acceleration = change(Pressure Momentum)
Momentum Shift = (momentum > 0 AND momentum <= 0) OR (momentum < 0 AND momentum >= 0)
Confluence Score (0-5):
Confluence Components:
- Pressure Factor: Total Pressure > pressure_threshold ? 1 : 0
- Temperature Factor: Temperature > temperature_threshold ? 1 : 0
- Steam Factor: Steam > steam_threshold ? 1 : 0
- WaveTrend Extreme: WT Pressure > 80 OR WT Pressure < 20 ? 1 : 0
- Extreme Steam: Steam > 90 ? 1 : 0
Confluence Score = Sum of all factors (0-5)
Explosion Conditions:
Explosion = Confluence Score >= minimum_confluence AND (Momentum Shift OR abs(Pressure Acceleration) > 2)
Bull Explosion = Explosion AND Total Pressure > 50 AND Pressure Momentum > 0
Bear Explosion = Explosion AND Total Pressure < 50 AND Pressure Momentum < 0
Perfect Explosion (Rare):
Perfect Explosion = Confluence Score == 5 AND abs(Pressure Momentum) > 3
Perfect Bull = Perfect Explosion AND Total Pressure > 50 AND Pressure Momentum > 0
Perfect Bear = Perfect Explosion AND Total Pressure < 50 AND Pressure Momentum < 0
5. Thermal Zone Classification
The system defines seven thermal pressure zones:
Extreme Overbought: Pressure > 80 (Critical thermal level)
Overbought: Pressure 70-80 (High thermal level)
Neutral High: Pressure 55-70 (Warm thermal level)
Equilibrium: Pressure 45-55 (Neutral thermal zone)
Neutral Low: Pressure 30-45 (Cool thermal level)
Oversold: Pressure 20-30 (Low thermal level)
Extreme Oversold: Pressure < 20 (Critical thermal level)
6. Signal Filtering System
Prevents overlapping signals while maintaining precision:
Minimum Bars Between Signals = 8
Signal Filtering Logic:
- Perfect signals take priority over regular explosions
- Regular explosions are filtered if perfect signal occurred recently
- Warning signals are filtered if explosion signals are active
- Steam bursts are filtered to minimum 3 bars apart
Visual Elements
Thermal Pressure Wave: Main oscillator with thermal gradient coloring and glow effects
Component Pressures: Individual RSI, WT, MFI, and Stochastic lines (hidden by default)
Temperature Background: Heat map style background coloring based on volatility temperature
Steam Burst Histograms: Volume spike visualization with directional coloring
Thermal Zone References: Critical levels at 20, 30, 50, 70, 80 with neutral zone highlighting
Explosion Markers: Diamond shapes for perfect explosions, triangles for regular explosions
Warning Signals: Circle markers for approaching explosion conditions
Pressure Meter: Visual gauge showing current pressure level with thermal gradient
Dashboard: Comprehensive real-time display of all thermal components and status
How Components Work Together
The integration creates a thermal momentum analysis approach:
Layer 1 - Pressure Measurement: Multi-component system reveals directional pressure across four dimensions
Layer 2 - Temperature Analysis: Volatility measurement shows market energy and expansion potential
Layer 3 - Steam Detection: Volume analysis identifies explosive energy release conditions
Layer 4 - Momentum Confirmation: Ensures signals occur at genuine turning points, not random noise
Layer 5 - Confluence Scoring: Quantifies setup quality by counting aligned factors
Layer 6 - Explosion Detection: Identifies rare moments when all thermal systems align
Layer 7 - Signal Filtering: Prevents overlap while maintaining precision timing
Example scenario: Pressure reaches extreme oversold (Layer 1) with high temperature (Layer 2), volume steam burst (Layer 3), momentum shift confirmation (Layer 4), confluence score of 5 (Layer 5), triggering perfect bull explosion (Layer 6) with proper signal filtering (Layer 7). This represents maximum thermal alignment for explosive upward move.
Input Parameters
Pressure Settings:
RSI Length: Period for RSI calculation (default: 14)
WT Channel Length: WaveTrend channel period (default: 10)
WT Average Length: WaveTrend smoothing period (default: 21)
MFI Length: Money Flow Index period (default: 14)
Stochastic Length: Stochastic RSI period (default: 14)
Use Stochastic Pressure: Toggle fourth pressure component
Temperature Settings:
ATR Length: Average True Range period (default: 14)
Temperature Multiplier: Sensitivity adjustment (default: 10.0)
Use Bollinger Band Width: Toggle BB width temperature component
BB Length: Bollinger Band period (default: 20)
BB Multiplier: Bollinger Band deviation (default: 2.0)
Volume Settings:
Volume MA Length: Volume average period (default: 20)
Steam Threshold: Volume spike multiplier (default: 2.0)
Use Volume Delta: Toggle directional volume analysis
Show Volume Spikes: Toggle volume spike visualization
Explosion Settings:
Pressure Threshold: Minimum pressure for explosion (default: 80)
Temperature Threshold: Minimum temperature for explosion (default: 70)
Steam Threshold: Minimum steam for explosion (default: 80)
Minimum Confluence Score: Required factors for explosion (default: 3)
Show Explosion Warnings: Toggle warning markers
How to Use This Indicator
Step 1: Assess Thermal Pressure
Check the main pressure gauge and current thermal zone classification in the dashboard.
Step 2: Monitor Temperature Levels
High temperature (>70) indicates market energy building for potential explosive moves.
Step 3: Watch for Steam Bursts
Volume steam bursts (>80) show explosive energy release with directional bias.
Step 4: Check Confluence Score
Scores ≥3 indicate multiple thermal factors aligning for explosion potential.
Step 5: Wait for Momentum Confirmation
Explosions require momentum shifts or acceleration to confirm genuine turning points.
Step 6: Identify Explosion Signals
Perfect explosions (diamond markers) offer highest probability, regular explosions (triangles) offer good probability.
Step 7: Monitor Warning Signals
Warning markers indicate approaching explosion conditions - prepare for potential signals.
Best Practices
Use on 15-minute to 4-hour timeframes for optimal thermal detection
Focus on extreme thermal zones (<20 or >80) for highest explosion probability
Perfect explosions are rare but offer exceptional risk:reward opportunities
Temperature confirmation adds conviction to pressure-based signals
Steam direction (bullish/bearish) should align with expected explosion direction
Confluence scores ≥4 significantly increase explosion probability
Warning signals help prepare for upcoming explosion opportunities
Thermal zone transitions often precede significant price movements
Indicator Limitations
Thermal pressure can remain extreme longer than expected during strong trends
Perfect explosions are rare - patience required for highest probability setups
Temperature spikes during news events may create false explosion signals
Steam bursts don't guarantee immediate price movement - timing varies
Confluence scoring is mathematical, not predictive of future performance
Component pressures may conflict, requiring interpretation skills
Signal filtering may delay signals in rapidly changing market conditions
Requires understanding of multi-factor thermal analysis concepts
Technical Implementation
Built with Pine Script v6 using:
Multi-component pressure calculation with optional Stochastic RSI integration
Dual-method temperature analysis using ATR and Bollinger Band width
Advanced volume steam detection with directional bias measurement
Multi-factor confluence scoring system with momentum confirmation
Thermal gradient coloring system with glow effects and heat map backgrounds
Anti-overlap signal filtering with priority-based signal management
Real-time pressure meter visualization with thermal zone classification
Comprehensive dashboard with component breakdown and explosion status
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its thermal momentum integration approach. While individual components (RSI, WaveTrend, MFI, ATR, volume analysis) are established concepts, this integration is justified because:
It synthesizes seven distinct thermal and momentum methodologies into a unified system
The multi-component pressure system provides comprehensive momentum analysis beyond single indicators
Thermal temperature analysis combines volatility measurements for energy assessment
Volume steam detection adds explosive energy context to momentum signals
Multi-factor confluence scoring quantifies setup quality across all thermal dimensions
Perfect explosion detection identifies rare, high-probability explosive move conditions
Each component contributes unique thermal information: pressure measurement reveals directional momentum, temperature analysis shows volatility energy, steam detection indicates volume explosions, confluence scoring quantifies alignment, and momentum confirmation ensures signal quality. The integration's value lies in identifying moments when all thermal systems align simultaneously for explosive market moves.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Thermal momentum analysis and explosion detection are analytical concepts that do not guarantee future price movement. Past performance and backtested results do not guarantee future results. Market conditions change, and thermal patterns that worked historically may not work in the future.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Prism Orderflow Detector [JOAT]Prism Orderflow Detector
Introduction
The Prism Orderflow Detector is an open-source institutional liquidity and order flow system that combines Smart Money Concepts (SMC), liquidity pool detection, Fair Value Gap analysis, Order Block identification, and advanced orderflow strength measurement into a unified overlay indicator. This comprehensive system integrates multiple proven institutional trading methodologies to identify high-probability zones where smart money positioning and retail liquidity intersect.
The indicator is designed for traders who understand that institutional players move markets by targeting liquidity pools, creating imbalances, and establishing positions through Order Blocks. By synthesizing liquidity detection, Fair Value Gaps, Order Blocks, Breaker Blocks, market structure analysis, and real-time orderflow strength measurement, this tool helps identify structural market inflection points with institutional-grade precision.
Why This Integration Exists
This indicator combines eight distinct institutional analysis frameworks that complement each other:
Liquidity Pool Detection: Identifies equal highs/lows and swing points where retail stops cluster
Order Block Analysis: Tracks institutional accumulation and distribution zones
Fair Value Gap Identification: Detects price inefficiencies created by rapid institutional moves
Breaker Block Recognition: Identifies failed Order Blocks that become new support/resistance
Market Structure Mapping: Tracks Break of Structure (BOS) and Change of Character (CHoCH)
Liquidity Heatmap Analysis: Visualizes liquidity concentration across price levels
Volume Delta Tracking: Measures real-time buying versus selling pressure
Orderflow Strength Measurement: Quantifies institutional pressure across multiple factors
Each component addresses different aspects of institutional order flow. Liquidity detection reveals where stops are hunted, Order Blocks show where institutions positioned, Fair Value Gaps indicate rapid institutional moves, market structure provides trend context, and orderflow strength quantifies current institutional pressure. Together, they create a comprehensive view of smart money activity and retail liquidity targeting.
Core Components Explained
1. Advanced Liquidity Detection System
The system identifies multiple types of liquidity pools:
Equal Highs (Buy-Side Liquidity):
Equal High Threshold = high * (threshold_percentage / 100)
Equal High Condition = (high == high ) OR (abs(high - high ) <= threshold AND high > high )
Valid Equal High = Equal High Condition AND high == highest(high, lookback_period)
Equal Lows (Sell-Side Liquidity):
Equal Low Threshold = low * (threshold_percentage / 100)
Equal Low Condition = (low == low ) OR (abs(low - low ) <= threshold AND low < low )
Valid Equal Low = Equal Low Condition AND low == lowest(low, lookback_period)
Liquidity Sweeps:
- Bullish Sweep: Price breaks below recent lows but closes back above
- Bearish Sweep: Price breaks above recent highs but closes back below
These sweeps often precede significant moves as institutions trigger retail stops before establishing positions.
2. Order Block Detection Engine
Order Blocks represent the last opposite-direction move before a strong impulse:
Bullish Order Block:
Bullish OB = close < open AND close > open AND
close > high AND (high - low ) > (ATR * strength_multiplier)
Bearish Order Block:
Bearish OB = close > open AND close < open AND
close < low AND (high - low ) > (ATR * strength_multiplier)
Order Blocks are displayed as gradient boxes with diagonal lines and extend forward to show ongoing relevance.
3. Fair Value Gap Analysis
Fair Value Gaps represent price inefficiencies where institutions moved price rapidly:
Bullish FVG:
Bullish FVG = low > high AND close > open
FVG Size = ((low - high ) / close) * 100
Valid Bullish FVG = Bullish FVG AND FVG Size >= minimum_size_percentage
Bearish FVG:
Bearish FVG = high < low AND close < open
FVG Size = ((low - high ) / close) * 100
Valid Bearish FVG = Bearish FVG AND FVG Size >= minimum_size_percentage
FVGs are displayed as horizontal lines with gradient fills and often get filled (retested) later.
4. Breaker Block System
Breaker Blocks are failed Order Blocks that become new support/resistance:
Bullish Breaker: Failed bearish Order Block that price breaks above
Bearish Breaker: Failed bullish Order Block that price breaks below
These represent significant shifts in market structure and often provide strong reversal zones.
5. Market Structure Analysis
Tracks institutional trend changes through structure breaks:
Break of Structure (BOS):
- Bullish BOS: New higher high with strong momentum
- Bearish BOS: New lower low with strong momentum
Change of Character (CHoCH):
- Bullish CHoCH: Lower low followed by higher high (trend change)
- Bearish CHoCH: Higher high followed by lower low (trend change)
6. Advanced Orderflow Features
Liquidity Heatmap:
Tracks liquidity concentration by counting touches at key levels over specified periods. High-intensity areas (>80% touch count) are highlighted as significant liquidity zones.
Volume Delta Analysis:
Buy Volume = close > open ? volume : 0
Sell Volume = close < open ? volume : 0
Volume Delta = sma(Buy Volume - Sell Volume, 14)
Volume Delta Normalized = (Volume Delta / sma(volume, 14)) * 100
Strong delta (>50) indicates institutional accumulation or distribution.
Imbalance Zone Detection:
Enhanced Fair Value Gap detection for larger inefficiencies:
Bullish Imbalance = low > high AND (low - high ) > (ATR * 0.5)
Bearish Imbalance = high < low AND (low - high) > (ATR * 0.5)
Premium/Discount Zones:
Price Range = highest(high, 50) - lowest(low, 50)
Equilibrium = lowest(low, 50) + (Price Range / 2)
Premium Zone = close > equilibrium + (Price Range * 0.25)
Discount Zone = close < equilibrium - (Price Range * 0.25)
7. Orderflow Strength Meter
Real-time quantification of institutional pressure:
Orderflow Strength = Order Block Factor + FVG Factor + Sweep Factor +
Volume Delta Factor + Structure Factor
Components:
- Order Block: ±20 points for new OBs
- FVG: ±15 points for valid FVGs
- Sweeps: ±25 points for liquidity sweeps
- Volume Delta: ±30 points (normalized)
- Structure: ±20 points for BOS/CHoCH
Strength classifications:
- Extreme Bull/Bear Pressure: >±60
- Strong Bull/Bear Pressure: >±30
Visual Elements
Liquidity Arrows: Directional arrows for equal highs/lows with clean labels
Liquidity Sweeps: Arrow lines showing sweep direction with "SWEEP" labels
Order Block Boxes: Gradient boxes with diagonal lines and "OB" labels
Fair Value Gap Lines: Horizontal lines with gradient fills and "FVG" labels
Breaker Diamonds: Diamond markers for failed Order Blocks with "BRK" labels
Structure Arrows: CHoCH arrows with directional labels
Imbalance Zones: Boxes with crossing diagonal lines and "IMB" labels
Liquidity Heatmap: Significant liquidity levels with "LIQ" labels
Volume Delta Markers: "Δ+" and "Δ-" labels for extreme volume pressure
Orderflow Background: Subtle background coloring for extreme pressure states
Dashboard: Comprehensive real-time status of all orderflow components
How Components Work Together
The integration creates a layered institutional analysis approach:
Layer 1 - Liquidity Mapping: Equal highs/lows and swing points reveal where retail stops cluster
Layer 2 - Institutional Positioning: Order Blocks show where smart money accumulated/distributed
Layer 3 - Price Inefficiencies: Fair Value Gaps indicate rapid institutional moves
Layer 4 - Structure Context: BOS/CHoCH provide trend and reversal context
Layer 5 - Failed Levels: Breaker Blocks show where previous levels failed
Layer 6 - Flow Analysis: Volume delta and heatmaps reveal current institutional pressure
Layer 7 - Strength Synthesis: Orderflow strength meter quantifies overall institutional activity
Example scenario: Price approaches equal lows (Layer 1) where a bullish Order Block exists (Layer 2), creating a Fair Value Gap on the move up (Layer 3), with bullish CHoCH confirming trend change (Layer 4), strong positive volume delta (Layer 6), and extreme bullish orderflow strength (Layer 7). This confluence suggests high-probability long opportunity.
Input Parameters
Liquidity Settings:
Show Equal Highs/Lows: Toggle liquidity pool display
Equal Price Threshold: Percentage tolerance for equal levels (default: 0.1%)
Liquidity Lookback: Period for liquidity level detection (default: 50)
Order Block Settings:
Show Order Blocks: Toggle Order Block display
Order Block Strength: ATR multiplier for OB validation (default: 3)
Extend Order Blocks: Forward extension bars (default: 20)
Fair Value Gap Settings:
Show Fair Value Gaps: Toggle FVG display
Min FVG Size: Minimum gap size percentage (default: 0.1%)
Breaker Block Settings:
Show Breaker Blocks: Toggle Breaker display
Breaker Lookback: Period for Breaker detection (default: 20)
Advanced Features:
Show Liquidity Heatmap: Toggle heatmap visualization
Show Volume Delta: Toggle volume pressure display
Show Imbalance Zones: Toggle imbalance detection
Show Premium/Discount Zones: Toggle equilibrium analysis
Show Orderflow Strength: Toggle strength background
Heatmap Period: Lookback for liquidity concentration (default: 100)
How to Use This Indicator
Step 1: Identify Market Structure
Check for recent BOS or CHoCH to understand current trend context and potential reversal zones.
Step 2: Map Liquidity Pools
Locate equal highs/lows and swing points where retail stops are likely clustered.
Step 3: Find Order Blocks
Identify recent Order Blocks where institutions likely positioned for the next move.
Step 4: Check for Fair Value Gaps
Look for unfilled FVGs that price may return to test, especially near Order Blocks.
Step 5: Monitor Liquidity Sweeps
Watch for sweep arrows indicating stop hunting - these often precede strong moves in the opposite direction.
Step 6: Analyze Volume Delta
Confirm institutional flow direction through volume delta analysis - strong delta supports directional bias.
Step 7: Review Orderflow Strength
Check dashboard for current orderflow strength - extreme readings indicate high institutional activity.
Step 8: Wait for Confluence
Best setups occur when multiple factors align: liquidity pools + Order Blocks + structure + volume confirmation.
Best Practices
Use on 15-minute to 4-hour timeframes for optimal institutional detection
Focus on confluence zones where multiple SMC concepts align
Liquidity sweeps provide excellent risk:reward when they fail to sustain
Order Block retests often provide precise entry levels with tight stops
Fair Value Gaps act as magnets - price often returns to fill them
CHoCH signals are more significant than BOS for trend changes
Volume delta confirmation adds conviction to SMC setups
Premium/discount zones help time entries - buy discount, sell premium
Indicator Limitations
Not all liquidity pools get targeted - institutional timing varies
Order Blocks can fail if market structure changes significantly
Fair Value Gaps may never get filled during strong trending moves
Breaker Blocks don't always provide reliable support/resistance
Volume delta can be misleading in low-liquidity conditions
Orderflow strength is reactive, not predictive of future moves
SMC concepts require understanding of institutional behavior
Visual elements can clutter chart - adjust display settings as needed
Technical Implementation
Built with Pine Script v6 using:
Advanced liquidity detection with percentage-based thresholds
Real-time Order Block calculation with ATR-based validation
Dynamic Fair Value Gap identification with size filtering
Breaker Block tracking with lookback period management
Market structure analysis with BOS/CHoCH detection
Volume delta calculation with institutional bias measurement
Orderflow strength meter with multi-factor scoring
Anti-overlap filtering to prevent visual clutter
Comprehensive dashboard with real-time status updates
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive SMC integration approach. While individual components (Order Blocks, Fair Value Gaps, liquidity detection, volume analysis) are established Smart Money Concepts, this integration is justified because:
It synthesizes eight distinct SMC methodologies into a unified system
The orderflow strength meter quantifies institutional pressure across multiple factors
Advanced liquidity heatmap visualization shows concentration levels not available elsewhere
Integrated volume delta analysis provides real-time institutional flow confirmation
Premium/discount zone analysis adds equilibrium context to SMC setups
Anti-overlap filtering and clean visual design reduce chart clutter while maintaining functionality
Each component contributes unique institutional information: liquidity detection reveals stop hunting targets, Order Blocks show positioning zones, Fair Value Gaps indicate rapid moves, market structure provides context, and volume analysis confirms flow. The integration's value lies in presenting these complementary SMC perspectives simultaneously with quantified orderflow strength measurement.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Smart Money Concepts and institutional analysis are educational frameworks that do not guarantee future price movement. Past performance and backtested results do not guarantee future results. Market conditions change, and SMC patterns that worked historically may not work in the future.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Harmonic Pulse Tracker [JOAT]Harmonic Pulse Tracker
Introduction
The Harmonic Pulse Tracker is an open-source institutional-grade wave and rhythm analysis system that combines Elliott Wave principles, Fibonacci harmonic analysis, WaveTrend oscillator mechanics, and cycle detection into a unified oscillator. This sophisticated system integrates multiple proven methodologies to identify high-probability reversal zones where harmonic patterns, wave cycles, and momentum indicators converge.
The indicator is designed for traders who understand that market movements follow natural harmonic patterns and cyclical rhythms. By synthesizing detrended price oscillation, Fibonacci retracement levels, WaveTrend momentum analysis, money flow dynamics, and volume confirmation, this tool helps identify structural market turning points with mathematical precision.
Why This Integration Exists
This indicator combines six distinct analytical frameworks that complement each other:
Harmonic Wave Analysis: Uses detrended price oscillation combined with Ehlers cycle detection to identify natural market rhythms
Fibonacci Harmonic Levels: Calculates dynamic Fibonacci retracements and extensions based on wave swing points
WaveTrend Oscillator: Implements LazyBear's WaveTrend algorithm for momentum and overbought/oversold detection
Money Flow Integration: Tracks institutional buying and selling pressure through Money Flow Index analysis
Volume Analysis: Confirms wave movements with volume spikes and directional volume pressure
Elliott Wave Counting: Simplified wave counting system to identify impulse and corrective wave phases
Each component addresses different aspects of market rhythm and harmony. The harmonic wave engine identifies natural price cycles, Fibonacci levels provide mathematical support/resistance, WaveTrend shows momentum extremes, money flow reveals institutional activity, volume confirms genuine moves, and Elliott Wave counting provides structural context. Together, they create a multi-dimensional view of market harmony and discord.
Core Components Explained
1. Harmonic Wave Engine
The core wave calculation combines two advanced techniques:
DPO (Detrended Price Oscillator) = close - sma(close, length/2 + 1)
Ehlers Cycle Component = High-pass filtered price with cycle smoothing
Harmonic Wave = Smoothed DPO + (Cycle Component * 0.5)
This creates a wave that removes trend bias while preserving cyclical components, revealing the natural harmonic rhythm of price movement.
Wave Derivatives:
- Wave Momentum: Rate of change in harmonic wave
- Wave Acceleration: Rate of change in momentum
- Wave Velocity: Percentage rate of change over 5 periods
These derivatives help identify wave phase transitions and momentum shifts before they become obvious in price.
2. Fibonacci Harmonic Level System
The indicator calculates dynamic Fibonacci levels based on harmonic wave swing points:
Standard Retracements:
- 23.6%, 38.2%, 50.0%, 61.8%, 78.6% of wave range
Extensions:
- 127.2%, 161.8%, 261.8% beyond wave high
Golden Pocket Zone:
The critical 61.8% to 78.6% retracement zone where most harmonic reversals occur. This zone represents the mathematical sweet spot where Fibonacci ratios converge with natural market rhythm.
Harmonic Resonance Detection:
The system identifies when price is within 5% of key Fibonacci levels and calculates confluence scores when multiple levels align.
3. WaveTrend Oscillator Integration
Implements the proven WaveTrend algorithm:
ESA = ema(hlc3, channel_length)
D = ema(abs(hlc3 - ESA), channel_length)
CI = (hlc3 - ESA) / (0.015 * D)
WT1 = ema(CI, average_length)
WT2 = sma(WT1, 4)
WaveTrend Signals:
- Crossovers in oversold zone (< -50): Bullish reversal signals
- Crossunders in overbought zone (> 50): Bearish reversal signals
- Regular crossovers: Momentum shift confirmation
4. Money Flow Analysis
Tracks institutional buying and selling pressure:
MFI = Money Flow Index over specified period
MFI Centered = (MFI - 50) * multiplier
- Positive MFI: Institutional buying pressure
- Negative MFI: Institutional selling pressure
- Strong MFI: Absolute value > 25 indicates significant institutional activity
5. Volume Analysis Engine
Comprehensive volume analysis including:
Volume Spikes: Volume > Average Volume * Threshold
Volume Ratio: Current volume / Average volume
Volume Strength: Normalized volume intensity (0-100)
Directional Volume:
- Bullish Volume Spike: High volume + green candle
- Bearish Volume Spike: High volume + red candle
6. Elliott Wave Phase Detection
Simplified wave analysis to identify market structure:
Impulse Waves:
- Impulse Up: Positive momentum + acceleration + velocity
- Impulse Down: Negative momentum + acceleration + velocity
Corrective Waves:
- Mixed momentum and acceleration signals indicating consolidation
Wave Counting:
Basic 5-wave count system that resets after wave 5 completion, helping identify potential reversal zones.
Multi-Factor Confluence Scoring System
The indicator calculates a real-time confluence score (0-100) by weighting each component:
Confluence Score Components:
- Fibonacci Zone: Up to 20 points (Golden Pocket = 20, other Fib levels = 4 each)
- Wave Strength: Up to 20 points (based on wave momentum intensity)
- WaveTrend: Up to 20 points (extreme zone crossovers = 20, regular = 15)
- Money Flow: Up to 20 points (strong institutional activity = 20)
- Volume: Up to 20 points (volume spikes = 20, elevated = 15)
Scores above 80 indicate exceptional confluence for potential trades. The dashboard displays individual component scores for transparency.
Perfect Harmonic Alignment Detection
The system identifies rare "Perfect Harmonic" setups when:
- Price is in Golden Pocket zone
- Impulse wave phase is active
- Wave strength > 70
- WaveTrend crossover in extreme zone
- Positive money flow (for bullish) or negative (for bearish)
- Volume spike confirmation
These setups represent the highest probability reversal opportunities.
Visual Elements
Harmonic Wave: Main oscillator with gradient coloring based on wave position
Wave Momentum: Histogram showing rate of change in wave movement
Fibonacci Levels: Key retracement and extension levels (38.2%, 50%, 61.8%, 78.6%, 161.8%)
Golden Pocket Zone: Highlighted area between 61.8% and 78.6% levels
WaveTrend Lines: WT1 and WT2 with overbought/oversold zones
Money Flow Columns: Institutional buying/selling pressure visualization
Volume Strength: Volume intensity histogram
Signal Markers: Perfect Harmonic signals and strong confluence alerts
Background Zones: Golden Pocket and Perfect Signal highlighting
Dashboard: Real-time display of all component values and confluence score
How Components Work Together
The integration creates a harmonic analysis approach:
Layer 1 - Wave Rhythm: Harmonic wave identifies natural market cycles and turning points
Layer 2 - Mathematical Levels: Fibonacci ratios provide precise support/resistance zones
Layer 3 - Momentum Context: WaveTrend shows overbought/oversold extremes
Layer 4 - Institutional Flow: Money flow reveals smart money positioning
Layer 5 - Volume Confirmation: Volume analysis validates genuine moves vs noise
Layer 6 - Wave Structure: Elliott Wave context provides structural framework
Example scenario: Harmonic wave reaches Golden Pocket zone (Layer 1 + 2) during WaveTrend oversold crossover (Layer 3) with positive money flow (Layer 4) and volume spike (Layer 5) in corrective wave phase (Layer 6). This confluence suggests exceptional reversal probability.
Input Parameters
Wave Settings:
Wave Length: Period for harmonic wave calculation (default: 34)
Smoothing Period: Wave smoothing factor (default: 5)
WaveTrend Settings:
Show WaveTrend: Toggle WaveTrend display
WT Channel Length: Channel calculation period (default: 9)
WT Average Length: Smoothing period (default: 12)
WT Overbought: Overbought threshold (default: 50)
WT Oversold: Oversold threshold (default: -50)
Money Flow Settings:
Show Money Flow: Toggle money flow display
MFI Length: Money Flow Index period (default: 14)
MFI Multiplier: Sensitivity adjustment (default: 1.5)
Volume Settings:
Show Volume Analysis: Toggle volume indicators
Volume Spike Threshold: Multiplier for spike detection (default: 1.5)
Fibonacci Settings:
Show Fibonacci Levels: Toggle Fibonacci level display
Fibonacci Lookback: Period for swing point calculation (default: 100)
Cycle Settings:
Cycle Period: Ehlers cycle detection period (default: 20)
Cycle Smoothing: Cycle component smoothing (default: 3)
How to Use This Indicator
Step 1: Identify Wave Phase
Check the dashboard for current wave phase (Impulse Up/Down, Corrective, Neutral) and Elliott Wave count.
Step 2: Locate Fibonacci Zones
Look for price approaching key Fibonacci levels, especially the Golden Pocket zone (61.8%-78.6%).
Step 3: Check WaveTrend Position
Identify if WaveTrend is in extreme zones and watch for crossovers in oversold/overbought areas.
Step 4: Analyze Money Flow
Confirm institutional positioning through Money Flow Index - positive for bullish setups, negative for bearish.
Step 5: Verify Volume Confirmation
Ensure volume supports the move - look for volume spikes in the direction of the expected reversal.
Step 6: Review Confluence Score
Check the dashboard confluence score. Scores above 80 indicate high-probability setups.
Step 7: Wait for Perfect Harmonic Signals
The highest probability trades occur when "PERFECT" signals appear, indicating all factors are aligned.
Best Practices
Use on 15-minute to 4-hour timeframes for optimal harmonic detection
Focus on Golden Pocket zone entries - this is where most harmonic reversals occur
Wait for WaveTrend crossovers in extreme zones for best risk:reward
Confirm with money flow direction - institutional flow should support the trade direction
Volume spikes add significant confirmation to harmonic setups
Perfect Harmonic signals are rare but offer exceptional probability
Wave 5 completions often coincide with major reversal opportunities
Use confluence scores above 80 as primary filter for trade selection
Indicator Limitations
Harmonic patterns can extend beyond expected Fibonacci levels
Perfect Harmonic signals are rare - patience is required for best setups
Wave counting is simplified and may not match complex Elliott Wave analysis
Fibonacci levels are dynamic and may adjust as new swing points form
Money flow can remain extreme longer than expected during strong trends
Volume confirmation may be less reliable in low-liquidity markets
Confluence scoring is mathematical, not predictive of future performance
Requires understanding of harmonic analysis principles for effective use
Technical Implementation
Built with Pine Script v6 using:
Advanced detrended price oscillation with Ehlers cycle detection
Dynamic Fibonacci calculation based on swing point analysis
LazyBear WaveTrend algorithm implementation
Real-time Money Flow Index with institutional bias detection
Volume analysis with spike detection and directional confirmation
Simplified Elliott Wave counting with phase detection
Multi-factor confluence scoring system with component weighting
Anti-overlap signal filtering to prevent signal clustering
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its harmonic integration approach. While individual components (DPO, Fibonacci, WaveTrend, MFI, volume analysis, Elliott Wave) are established concepts, this integration is justified because:
It synthesizes six distinct methodologies that address different aspects of market harmony
The harmonic wave engine combines detrended oscillation with cycle detection for superior rhythm analysis
Dynamic Fibonacci levels adjust to current wave structure rather than using static retracements
Golden Pocket zone identification provides mathematical precision for reversal timing
Multi-factor confluence scoring quantifies setup quality across all components
Perfect Harmonic detection identifies rare, high-probability reversal opportunities
Each component contributes unique harmonic information: wave analysis reveals natural cycles, Fibonacci provides mathematical levels, WaveTrend shows momentum extremes, money flow indicates institutional positioning, volume confirms genuine moves, and Elliott Wave provides structural context. The integration's value lies in identifying moments when all these harmonic factors align simultaneously.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Harmonic analysis and Fibonacci levels are mathematical concepts that do not guarantee future price movement. Past performance and backtested results do not guarantee future results. Market conditions change, and harmonic patterns that worked historically may not work in the future.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Price Percentile Heatmap [QuantAlgo]🟢 Overview
This indicator visualizes where price currently stands within its recent historical distribution, displayed as a dynamic gradient heatmap directly on the chart. It is built on the concept of percentile ranking: rather than using lagging momentum oscillators or fixed overbought/oversold thresholds, it measures price relative to every bar within a user-defined lookback window and expresses that position as a smooth, continuous gradient. The result is an at-a-glance read of whether price is historically cheap, historically expensive, or somewhere in between, all without leaving the main chart.
The defining visual feature is the thermal color gradient applied to the price bars, background, and source line. Bullish colors represent price trading near the top of its recent range, signaling historically elevated conditions. Bearish colors represent price trading near the bottom of its range, signaling historically depressed conditions. A built-in Heat Thermometer reinforces this reading by showing exactly where the current percentile rank falls along the full spectrum in real time.
🟢 How It Works
The foundation of the indicator is a per-bar percentile rank calculated over a rolling lookback window. For each bar, the selected price source is compared against every value within the lookback period to determine what percentage of historical bars traded below the current price:
percentile_rank = ta.percentrank(price_source, lookback_length)
A rank of 100 means the current price is higher than every bar in the lookback sample. A rank of 0 means it is lower than all of them. A rank of 50 places price exactly at the median of its recent distribution. This single value drives every visual output in the indicator.
The raw rank is then mapped directly into a continuous color gradient, transitioning smoothly from the bearish color at rank 0 to the bullish color at rank 100:
gradient_color = color.from_gradient(percentile_rank, 0, 100, bearish_color, bullish_color)
Because the rank is recalculated on every bar using a rolling window, the gradient never relies on fixed thresholds or static levels. It adapts continuously to the most recent price history, meaning the same absolute price level can read bullish in one market environment and bearish in another depending on what has happened within the lookback period.
The lookback length is the primary tuning parameter. Short periods (10 to 30) make the rank reactive to recent moves and suit scalping and intraday setups. Medium periods (50 to 100) provide a balanced read suitable for swing trading. Long periods (150 to 500) produce a slow-moving, macro-level view best suited for position trading and identifying historically extreme conditions.
🟢 Key Features
1. Thermal Color Gradient
Every visual element on the chart, including the source line, the bar colors, and the background tint, reflects the current percentile rank through a smooth color transition.
▶ Bullish Color: Applied when price ranks high within its recent distribution, drawing attention to historically elevated price levels.
▶ Bearish Color: Applied when price ranks low, highlighting historically depressed conditions and potential mean-reversion or continuation setups.
▶ Bar Coloring: Each individual candlestick is colored according to the current rank, giving instant bar-by-bar feedback without requiring a separate panel.
▶ Background Coloring: The full chart canvas receives a semi-transparent tint that reinforces the heatmap reading across the entire visible price area. Transparency is fully adjustable so price action is never obscured.
▶ Color Presets: Six pre-configured schemes, Classic, Aqua, Cosmic, Cyber, Neon, and Custom, allow you to match the heatmap to any chart theme or personal preference.
2. Heat Thermometer
An optional thermometer panel displays the full bearish-to-bullish color spectrum and marks exactly where the current percentile rank sits along that spectrum with a real-time arrow indicator.
▶ Real-Time Positioning: The arrow updates on every bar, giving an immediate visual anchor for the current rank without needing to read a number.
▶ Resolution: The number of gradient segments in the thermometer is adjustable from 5 to 20, letting you choose between a clean simplified display or a finer, smoother gradient.
▶ Position and Size: The thermometer can be placed in any of nine chart positions and its text size is independently adjustable, making it easy to integrate into dense multi-indicator layouts or standalone setups.
🟢 Practical Applications
▶ Mean Reversion Setups: When price reaches an extreme low percentile rank, it is historically cheap relative to recent bars, a potential entry signal for mean reversion strategies. The opposite applies at high ranks.
▶ Trend Confirmation: In a strong trend, the percentile rank will persistently hue toward one color. A sustained bullish gradient confirms trend strength; a persistent bearish gradient confirms sustained selling pressure.
▶ Multi-Timeframe Alignment: Apply the indicator across multiple timeframes and look for gradient agreement. When both a higher and lower timeframe show the same extreme color, the percentile signal carries significantly more weight. Indicator

Adaptive Hull Momentum Ribbon [JOAT]Adaptive Hull Momentum Ribbon
Introduction
The Adaptive Hull Momentum Ribbon is an open-source trend-following indicator that combines a 5-layer Hull Moving Average (HMA) ribbon with EMA cloud analysis, key moving averages (SMA 50/200, EMA 200), crossover detection, and comprehensive trend strength analytics. This mashup creates a multi-layered trend identification system designed to show not just trend direction, but trend quality, alignment across multiple timeframes, and confluence between different moving average methodologies.
The indicator addresses a fundamental challenge in trend trading: single moving averages provide limited information about trend strength and quality. By layering five HMAs with different periods, adding an EMA cloud for short-term momentum, and tracking alignment with key institutional moving averages, this tool provides a complete picture of trend health that helps traders distinguish between strong trends worth following and weak trends likely to fail.
Chart showing 5-layer HMA ribbon, EMA cloud, and key MAs with trend dashboard on D timeframe
Why This Mashup Exists
This indicator combines four moving average frameworks that complement each other:
Hull Moving Average Ribbon: 5 HMAs (8, 13, 21, 34, 55) providing smooth, responsive trend indication
EMA Cloud: Fast (9) and Slow (21) EMAs showing short-term momentum
Key Institutional MAs: SMA 50, SMA 200, EMA 200 tracked by institutions globally
Crossover Detection: Golden Cross, Death Cross, and HMA crossovers
Each component serves a specific purpose: HMA Ribbon shows trend with minimal lag, EMA Cloud captures short-term momentum shifts, Key MAs provide institutional reference levels, and Crossovers signal major trend changes. Together, they create a comprehensive trend analysis system that shows both micro (HMA/EMA) and macro (SMA 50/200) trend structure.
The mashup is justified because these moving average types use fundamentally different calculations (weighted moving average with square root period for HMA, exponential weighting for EMA, simple average for SMA) that respond to price changes differently. When they align, it indicates genuine trend strength across multiple calculation methods and timeframes.
Core Components Explained
1. Hull Moving Average Ribbon System
HMA calculation provides smooth, responsive moving averages with reduced lag:
// Hull Moving Average formula
hullMA(src, length) =>
wma1 = ta.wma(src, length / 2)
wma2 = ta.wma(src, length)
ta.wma(2 * wma1 - wma2, int(math.sqrt(length)))
// 5-layer ribbon
hma8 = hullMA(close, 8) // Fastest, most responsive
hma13 = hullMA(close, 13)
hma21 = hullMA(close, 21) // Medium-term trend
hma34 = hullMA(close, 34)
hma55 = hullMA(close, 55) // Slowest, smoothest
HMA advantages over traditional MAs:
Significantly reduced lag compared to SMA/EMA
Smooth line without excessive whipsaws
Responsive to price changes while filtering noise
Square root period weighting provides optimal balance
Ribbon interpretation:
Full Bullish Alignment: HMA8 > HMA13 > HMA21 > HMA34 > HMA55 = strong uptrend
Full Bearish Alignment: HMA8 < HMA13 < HMA21 < HMA34 < HMA55 = strong downtrend
Mixed Alignment: HMAs crossing or intertwined = weak trend or consolidation
Ribbon Width: Wide ribbon = strong trend, narrow ribbon = weak trend
The indicator plots all 5 HMAs with gradient coloring (green to red) and fills between them to create visual ribbon effect.
2. EMA Cloud System
Fast and slow EMAs create a cloud showing short-term momentum:
emaFast = ta.ema(close, 9) // Short-term momentum
emaSlow = ta.ema(close, 21) // Medium-term trend
// Cloud color
emaCloudBullish = emaFast > emaSlow
emaCloudBearish = emaFast < emaSlow
EMA Cloud significance:
Fast EMA above Slow EMA = bullish momentum
Fast EMA below Slow EMA = bearish momentum
Cloud acts as dynamic support/resistance
Cloud thickness indicates momentum strength
Price above cloud = bullish, below cloud = bearish
The indicator fills the area between fast and slow EMAs with color based on direction (green for bullish, red for bearish).
3. Key Institutional Moving Averages
Three widely-watched institutional moving averages:
sma50 = ta.sma(close, 50) // Short-term institutional trend
sma200 = ta.sma(close, 200) // Long-term institutional trend
ema200 = ta.ema(close, 200) // Alternative long-term trend
// Golden Cross / Death Cross
goldenCross = sma50 > sma200 // Bullish long-term
deathCross = sma50 < sma200 // Bearish long-term
Key MA significance:
SMA 50: Short-term institutional trend, strong support/resistance
SMA 200: Most watched long-term trend indicator globally
EMA 200: More responsive alternative to SMA 200
Golden Cross: SMA 50 crosses above SMA 200 = major bullish signal
Death Cross: SMA 50 crosses below SMA 200 = major bearish signal
These MAs are plotted with distinct colors and act as major support/resistance levels.
4. Comprehensive Crossover Detection
The indicator detects multiple types of crossovers:
// Golden Cross / Death Cross (major signals)
goldenCross = ta.crossover(sma50, sma200)
deathCross = ta.crossunder(sma50, sma200)
// EMA Cloud crossovers (momentum shifts)
emaBullCross = ta.crossover(emaFast, emaSlow)
emaBearCross = ta.crossunder(emaFast, emaSlow)
// HMA fast crossovers (early trend changes)
hmaFastBullCross = ta.crossover(hma8, hma13)
hmaFastBearCross = ta.crossunder(hma8, hma13)
Crossover hierarchy:
Golden/Death Cross: Major long-term trend changes (rare, very significant)
EMA Crossovers: Medium-term momentum shifts (moderate frequency)
HMA Crossovers: Short-term trend changes (frequent, early signals)
The indicator marks crossovers with shapes: circles for Golden/Death Cross, triangles for EMA crossovers, diamonds for HMA crossovers.
5. Trend Strength Analytics
Comprehensive trend strength calculation:
// Calculate alignment score
alignmentScore = 0
alignmentScore := (close > hma8 ? 1 : -1) +
(close > hma13 ? 1 : -1) +
(close > hma21 ? 1 : -1) +
(close > hma34 ? 1 : -1) +
(close > hma55 ? 1 : -1) +
(close > emaFast ? 1 : -1) +
(close > emaSlow ? 1 : -1) +
(close > sma50 ? 1 : -1) +
(close > sma200 ? 1 : -1)
// Normalize to 0-100 scale
trendStrength = (alignmentScore + 9) / 18 * 100
Trend Strength interpretation:
75-100: STRONG BULL - price above all MAs, high-quality uptrend
55-74: BULL - price above most MAs, moderate uptrend
45-54: NEUTRAL - mixed signals, no clear trend
26-44: BEAR - price below most MAs, moderate downtrend
0-25: STRONG BEAR - price below all MAs, high-quality downtrend
Example showing full HMA alignment with 55% trend strength score
Confluence Scoring System
The indicator calculates a confluence score showing agreement between different MA systems:
Confluence Score Components:
- HMA Trend: +3 if full alignment, 0 if mixed, -3 if opposite
- EMA Cloud: +2 if bullish, -2 if bearish
- Price vs SMA 50: +1 if above, -1 if below
- Price vs SMA 200: +2 if above, -2 if below
- SMA 50 vs 200: +2 if golden cross, -2 if death cross
Total Range: -10 to +10
Confluence interpretation:
+8 to +10: STRONG confluence - all systems aligned bullish
+5 to +7: MODERATE confluence - most systems bullish
-4 to +4: WEAK confluence - mixed or conflicting signals
-7 to -5: MODERATE confluence - most systems bearish
-10 to -8: STRONG confluence - all systems aligned bearish
Enhanced Dashboard System
The dashboard (top-right position) displays 9 rows:
Row 1: MA System header
Row 2: Trend classification (STRONG BULL/BULL/NEUTRAL/BEAR/STRONG BEAR)
Row 3: Trend Strength percentage (0-100%)
Row 4: HMA Alignment status (Bullish/Bearish/Mixed)
Row 5: EMA Cloud status (Bullish/Bearish)
Row 6: Price vs 200 MA (Above/Below)
Row 7: 50 vs 200 MA (Golden/Death)
Row 8: Confluence score (-10 to +10)
Row 9: Confluence strength (STRONG/MODERATE/WEAK)
Dashboard showing trend metrics with color-coded confluence score
Visual Elements
HMA Ribbon: 5 HMA lines with gradient coloring (green to red) and fills between lines
EMA Cloud: Filled area between fast and slow EMAs with transparency
SMA 50: Blue line (short-term institutional trend)
SMA 200: Orange line (long-term institutional trend)
EMA 200: Purple line (alternative long-term trend)
Golden/Death Cross Markers: Large circles at major crossovers
EMA Cross Markers: Small triangles at EMA crossovers
HMA Cross Markers: Tiny diamonds at HMA crossovers
Dashboard: Comprehensive table with all trend metrics
How Components Work Together
The mashup creates layered trend analysis:
Layer 1 - Micro Trend: HMA 8/13 crossovers show earliest trend changes
Layer 2 - Short-Term Momentum: EMA cloud shows momentum direction
Layer 3 - Medium-Term Trend: HMA 21/34/55 ribbon shows established trend
Layer 4 - Institutional Trend: SMA 50/200 show long-term institutional bias
Layer 5 - Synthesis: Trend strength and confluence scores combine all layers
Example scenario: HMA 8 crosses above HMA 13 (Layer 1), EMA cloud turns bullish (Layer 2), all 5 HMAs align bullish (Layer 3), price is above SMA 50 and SMA 200 in golden cross (Layer 4). Trend strength reaches 92% and confluence score is +9 (Layer 5), signaling extremely strong uptrend with all systems aligned.
Input Parameters
HMA Ribbon Settings:
Show HMA Ribbon: Toggle ribbon display (default: enabled)
HMA 1 Length: Fastest HMA (default: 8)
HMA 2 Length: (default: 13)
HMA 3 Length: (default: 21)
HMA 4 Length: (default: 34)
HMA 5 Length: Slowest HMA (default: 55)
EMA Cloud Settings:
Show EMA Cloud: Toggle cloud display (default: enabled)
Fast EMA: Short-term EMA (default: 9)
Slow EMA: Medium-term EMA (default: 21)
Cloud Transparency: Adjust fill transparency (default: 85)
Key MA Settings:
Show SMA 50: Toggle SMA 50 (default: enabled)
Show SMA 200: Toggle SMA 200 (default: enabled)
Show EMA 200: Toggle EMA 200 (default: enabled)
Crossover Settings:
Show Crossovers: Toggle crossover markers (default: enabled)
Show Golden/Death Cross: Major crossovers (default: enabled)
Show EMA Crossovers: EMA cloud crossovers (default: enabled)
Show HMA Crossovers: HMA fast crossovers (default: enabled)
Display Options:
Show Trend Strength: Toggle dashboard (default: enabled)
Ribbon Transparency: Adjust HMA fill transparency (default: 70)
Dashboard Position: Top-right, top-left, etc.
Color Theme: Choose color scheme
How to Use This Indicator
Step 1: Check HMA Ribbon Alignment
Look for full alignment (all 5 HMAs in order). Full alignment indicates strong, high-quality trend worth following.
Step 2: Verify EMA Cloud Direction
Ensure EMA cloud supports HMA direction. Bullish HMA + bullish EMA cloud = strong confirmation.
Step 3: Check Key MA Position
Verify price is above SMA 50 and SMA 200 for long trades, below for short trades. Golden Cross adds significant bullish weight.
Step 4: Review Trend Strength
Check dashboard trend strength percentage. Above 70% indicates strong trend, below 40% suggests caution.
Step 5: Assess Confluence Score
Review confluence score. Scores above +7 indicate strong multi-system alignment. Scores near 0 suggest mixed signals.
Step 6: Watch for Crossovers
Monitor crossover markers. Golden/Death Cross are major signals. HMA crossovers provide early trend change warnings.
Best Practices
Use on 1-hour to daily timeframes for optimal trend identification
Full HMA alignment (5/5) produces highest-quality trend-following opportunities
EMA cloud acts as dynamic support/resistance - use for entry refinement
Golden Cross with full HMA alignment = extremely strong bullish setup
Trend strength above 80% suggests strong trend continuation potential
Confluence score above +8 indicates rare, high-probability trend alignment
HMA crossovers provide early warnings but confirm with other layers
Wide ribbon spacing indicates strong momentum, narrow spacing suggests consolidation
Combine with price action and key levels for precise entries
Indicator Limitations
Moving averages are lagging indicators - trends confirmed after they've started
HMA crossovers can produce false signals in choppy markets
Full alignment is rare - waiting only for perfect setups may miss opportunities
Trend strength can remain high even as trend is ending
Golden/Death Cross signals are very lagging (occur well after trend change)
Multiple MAs can clutter chart - adjust display settings as needed
Confluence score is mathematical calculation, not prediction
Strong trends can reverse suddenly despite high trend strength scores
Requires understanding of moving average concepts for effective use
Technical Implementation
Built with Pine Script v6 using:
Custom Hull Moving Average calculation with WMA and square root period
5-layer HMA ribbon with gradient fills
EMA cloud with dynamic coloring
Key institutional MA tracking (SMA 50/200, EMA 200)
Multiple crossover detection systems
Comprehensive trend strength algorithm
Confluence scoring with weighted components
9-row dashboard with real-time metrics
Alert conditions for all major crossovers
The code is fully open-source and can be modified to adjust MA periods, colors, and dashboard layout.
Originality Statement
This indicator is original in its multi-layer moving average integration approach. While individual components (HMA, EMA cloud, SMA 50/200, crossovers) are established tools, this mashup is justified because:
It combines three different MA calculation methods (HMA, EMA, SMA) that respond differently to price
5-layer HMA ribbon provides granular trend quality assessment
Trend strength algorithm quantifies alignment across all 9 moving averages
Confluence scoring shows agreement between different MA systems
Integration of micro (HMA/EMA) and macro (SMA 50/200) trend perspectives
Comprehensive dashboard presents complex multi-MA data clearly
Each MA type contributes unique information: HMAs provide responsive trend indication with minimal lag, EMAs show short-term momentum, and SMAs provide institutional reference levels. The mashup's value lies in showing when these different calculation methods align, indicating genuine trend strength across multiple mathematical approaches and timeframes.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Moving averages are lagging indicators that confirm trends after they've begun. They do not predict future price movement. Strong trends can reverse suddenly, and high trend strength scores do not guarantee trend continuation. Golden Cross and Death Cross signals are very lagging and trends may be well-established before these signals occur.
The trend strength and confluence scores are mathematical calculations based on current MA positions, not predictions of future price movement. Past trend strength does not guarantee future performance. Market conditions change, and trends that appear strong can reverse without warning.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Adaptive Entropy Trend [QuantAlgo]🟢 Overview
Adaptive Entropy Trend is a trend-following indicator built on Shannon information theory rather than conventional price averaging. It quantifies the statistical disorder of recent log returns to determine whether the market is in a directional regime or a random one, then feeds this entropy reading into every layer of the system simultaneously, helping traders identify directional shifts that are validated by both low-entropy momentum conditions and genuine volatility expansion across different timeframes and markets.
🟢 How It Works
The foundation of the indicator is a per-bar entropy calculation built from the distribution of log returns over the lookback window. Log returns are computed and their range is divided into equal-width histogram bins:
logReturn = math.log(close / close )
minReturn = ta.lowest(logReturn, lookbackLen)
maxReturn = ta.highest(logReturn, lookbackLen)
returnRange = maxReturn - minReturn
Each historical return within the lookback is assigned to a bin, building a frequency distribution. Shannon entropy is then calculated from the probability of each bin, measuring how uniformly returns are spread across the range:
probability = array.get(binCounts, i) / lookbackLen
if probability > 0
entropy := entropy - probability * math.log(probability) / math.log(2)
A uniform distribution produces maximum entropy, reflecting a chaotic, non-directional market. A concentrated distribution produces low entropy, reflecting a market where returns are clustering in a consistent direction. The raw entropy is normalized against the theoretical maximum for the bin count to produce a stable 0-1 score:
normalizedEntropy = maxEntropy > 0 ? entropy / maxEntropy : 0.5
This score is then wired directly into the EMA smoothing factor. Higher entropy lengthens the effective period of the EMA, insulating it from noise. Lower entropy shortens it, allowing the EMA to track price closely during genuine trends:
adaptiveAlpha = 2.0 / (lookbackLen * (0.3 + normalizedEntropy * 1.4) + 1.0)
adaptiveEma := na(adaptiveEma) ? close : adaptiveEma + adaptiveAlpha * (close - adaptiveEma)
The same entropy reading drives band width through an inverted trend strength factor. Unlike volatility-based bands that widen during noise, these bands widen specifically during trending conditions and tighten during choppy ones:
trendStrength = 1.0 - normalizedEntropy
fastBandWidth = atr * fastMultiplier * (0.5 + trendStrength)
slowBandWidth = atr * slowMultiplier * (0.5 + trendStrength)
Finally, trend state is determined when price breaks beyond the inner bands, and transitions are tracked for alert conditions:
if close > innerUpper
trendDirection := 1
else if close < innerLower
trendDirection := -1
trendTurnedBullish = trendDirection == 1 and trendDirection != 1
trendTurnedBearish = trendDirection == -1 and trendDirection != -1
This creates a self-regulating trend system where the EMA baseline, the trigger threshold, and the visual envelope all adapt together from the same entropy source, rather than using a fixed center with adaptive edges or vice versa.
🟢 Signal Interpretation
▶ Bullish Trend (Price Above Inner Upper Band, Green): When price closes above the inner upper band, the indicator switches to bullish mode with bullish coloring across all visual elements = Confirmed uptrend signal for trend-following long positions. Because the inner band expands in low-entropy trending conditions, a bullish confirmation in a genuinely directional market requires a more meaningful breakout than in a noisy one. The trend remains bullish until price breaks below the inner lower band, allowing traders to stay positioned through normal pullbacks that remain within the band range.
▶ Bearish Trend (Price Below Inner Lower Band, Red): When price closes below the inner lower band, the indicator switches to bearish mode with bearish coloring throughout all visual elements = Confirmed downtrend signal for short positions or long exit signals. The adaptive band floor ensures the trigger threshold in choppy, high-entropy markets is tighter, reducing the risk of false breakdowns on thin directional moves. The trend remains bearish until price breaks above the inner upper band.
▶ Neutral Zone (Price Between Inner Bands): When price trades between the inner upper and lower bands, the indicator holds its previous trend direction = Continuation of existing trend during consolidation or normal volatility retracements. This prevents whipsaws during sideways action by requiring price to make a statistically meaningful move beyond the entropy-scaled band boundaries rather than reacting to minor crosses of the adaptive EMA centerline.
🟢 Features
▶ Preconfigured Presets: Three optimized parameter sets for different trading approaches and timeframes. "Default" provides balanced trend detection for swing trading on 4-hour and daily charts, "Fast Response" delivers quicker trend signals for intraday trading on 1-minute to 1-hour charts, and "Smooth Trend" focuses on major trend changes for position trading on daily to weekly timeframes.
▶ Built-in Alerts: Three alert conditions enable automated monitoring of trend changes without constant chart watching. "Bullish Trend Signal" triggers when the indicator switches to bullish mode after price breaks above the inner upper band, alerting for potential long entries. "Bearish Trend Signal" activates when the indicator switches to bearish mode after price breaks below the inner lower band, signaling potential short entries or long exits. "Trend Direction Changed" provides a combined alert for any trend transition regardless of direction, allowing traders to monitor both bullish and bearish opportunities with a single alert setup.
▶ Visual Customization: Six color presets (Classic, Aqua, Cosmic, Cyber, Neon, plus Custom) accommodate different chart backgrounds and aesthetic preferences, with coordinated bullish, bearish, and neutral color schemes applied across all indicator elements. Inner and outer band fills create a two-layer gradient envelope around the adaptive EMA, with the inner zone between the two bands rendered slightly more transparent than the outer zone to preserve natural depth, both controlled by a single fill transparency input (0-100%) so the visual weight of the envelope can be adjusted without disrupting the gradient relationship. Optional bar coloring tints price bars with trend-appropriate colors during bullish and bearish periods, enabling instant visual confirmation of trend state across multiple timeframes without switching between chart and indicator panels.
Indicator

Elite Session Volume Distribution Engine [JOAT]Elite Session Volume Distribution Engine
Introduction
The Elite Session Volume Distribution Engine is an open-source indicator that combines session-based analysis (London, New York, Asian sessions) with volume distribution profiling, VWAP analysis, volume-weighted momentum indicators, and session high/low tracking. This mashup creates a comprehensive session and volume analysis system designed to identify when institutional volume enters the market during specific trading sessions and how that volume is distributed across price levels.
The indicator addresses a critical market reality: different trading sessions have distinct volume characteristics and institutional participation levels. London and New York sessions typically have highest volume and volatility, while Asian session is quieter. By tracking volume distribution, momentum, and key levels within each session, this tool helps traders identify optimal trading windows and understand how institutional volume shapes price action during different global market hours.
Chart showing session boxes, volume distribution, and VWAP on 45M timeframe
Why This Mashup Exists
This indicator combines five analytical frameworks that address different aspects of session-based trading:
Session Identification: Tracks London, New York, and Asian trading sessions
Volume Distribution: Analyzes how volume is distributed across price levels within sessions
VWAP Analysis: Calculates session-specific Volume Weighted Average Price
Volume Momentum: Tracks volume trends and climax conditions
Session High/Low: Identifies key levels established during each session
Each component serves a specific purpose: Session identification shows when institutional traders are active, Volume Distribution reveals where volume concentrates (value areas), VWAP shows institutional average price, Volume Momentum identifies accumulation/distribution phases, and Session High/Low marks key reference levels. Together, they create a complete picture of how institutional volume flows through different trading sessions.
The mashup is justified because these components work together in session-based trading: institutions enter during specific sessions (London/NY), create volume distribution patterns at key levels, establish VWAP as benchmark, show momentum through volume trends, and set session highs/lows that become support/resistance. Tracking all simultaneously reveals the complete session-based institutional flow.
Core Components Explained
1. Session Identification System
The indicator identifies three major trading sessions:
// London Session (03:00-12:00 GMT)
londonSession = input.session("0300-1200", "London Session")
inLondonSession = not na(time(timeframe.period, londonSession))
// New York Session (08:30-17:00 EST)
nySession = input.session("0830-1700", "NY Session")
inNYSession = not na(time(timeframe.period, nySession))
// Asian Session (00:00-09:00 GMT)
asianSession = input.session("0000-0900", "Asian Session")
inAsianSession = not na(time(timeframe.period, asianSession))
// Session overlap (London + NY)
sessionOverlap = inLondonSession and inNYSession
Session characteristics:
London Session: High volume, major currency pairs active, trend establishment
NY Session: Highest volume, US markets active, major moves occur
Asian Session: Lower volume, range-bound often, JPY pairs active
London/NY Overlap: Highest volume period, most volatile, best liquidity
The indicator can optionally display session boxes as background colors (disabled by default to reduce clutter).
2. Volume Distribution Analysis
Volume distribution shows where volume concentrates within price ranges:
// Calculate volume at different price levels
volumeAtPrice = array.new_float()
// For each price level in session range
for i = sessionLow to sessionHigh by tickSize
volumeAtLevel = sum of volume where price traded at level i
array.push(volumeAtPrice, volumeAtLevel)
// Identify Point of Control (POC) - price level with most volume
poc = price level with maximum volume
// Identify Value Area (VA) - price range containing 70% of volume
valueAreaHigh = upper bound of 70% volume
valueAreaLow = lower bound of 70% volume
Volume Distribution concepts:
Point of Control (POC): Price level with highest volume - strong support/resistance
Value Area High (VAH): Upper bound of 70% volume distribution
Value Area Low (VAL): Lower bound of 70% volume distribution
High Volume Nodes: Price levels with significant volume - support/resistance zones
Low Volume Nodes: Price levels with little volume - price moves through quickly
The indicator plots volume distribution as a histogram or profile showing where institutional volume concentrated during the session.
3. Session-Specific VWAP
VWAP resets at the start of each session:
// Session VWAP calculation
var float sessionVWAP = na
var float cumulativeTPV = 0.0 // Typical Price * Volume
var float cumulativeVol = 0.0
if session_start
cumulativeTPV := 0.0
cumulativeVol := 0.0
typicalPrice = (high + low + close) / 3
cumulativeTPV := cumulativeTPV + (typicalPrice * volume)
cumulativeVol := cumulativeVol + volume
sessionVWAP = cumulativeTPV / cumulativeVol
Session VWAP significance:
Institutional traders use VWAP as execution benchmark
Price above session VWAP = buyers in control during session
Price below session VWAP = sellers in control during session
VWAP acts as dynamic support/resistance within session
Distance from VWAP indicates overextension
The indicator plots session VWAP with dynamic coloring based on price position.
4. Volume Momentum Analysis
Volume momentum tracks institutional accumulation/distribution:
// Volume moving average
volumeMA = ta.sma(volume, 20)
// Volume classification
highVolume = volume > volumeMA * 1.5
veryHighVolume = volume > volumeMA * 2.0
climaxVolume = volume > volumeMA * 3.0
// Volume trend
volumeRising = volume > volume and volume > volume
volumeFalling = volume < volume and volume < volume
// Accumulation/Distribution
accumulation = close > open and highVolume and volumeRising
distribution = close < open and highVolume and volumeRising
// Volume momentum indicator
volumeMomentum = (volume - volumeMA) / volumeMA * 100
Volume Momentum signals:
Rising Volume + Up Close: Accumulation - bullish
Rising Volume + Down Close: Distribution - bearish
Climax Volume: Potential exhaustion or strong institutional move
Declining Volume: Lack of institutional interest
Volume Momentum > 50%: Very strong institutional participation
The indicator plots volume bars with color coding based on momentum and direction.
5. Session High/Low Tracking
Session highs and lows become important reference levels:
// Track current session high/low
var float currentSessionHigh = na
var float currentSessionLow = na
if session_start
currentSessionHigh := high
currentSessionLow := low
else
currentSessionHigh := math.max(currentSessionHigh, high)
currentSessionLow := math.min(currentSessionLow, low)
// Previous session levels
prevSessionHigh = currentSessionHigh
prevSessionLow = currentSessionLow
Session High/Low significance:
Current session high/low show intraday range
Previous session levels act as support/resistance
Breaks above previous session high = bullish continuation
Breaks below previous session low = bearish continuation
Session range size indicates volatility and institutional activity
The indicator plots only CURRENT session high/low (2 lines instead of 6) to keep chart clean. Previous session levels can be toggled on if needed.
Example showing session VWAP, volume distribution, and session high/low levels
Volume Distribution Dashboard
The dashboard (bottom-right position) displays:
Current Session: London/NY/Asian/Overlap
Session VWAP: Current VWAP value
Price vs VWAP: Distance from VWAP in %
POC: Point of Control price level
Value Area: VAH and VAL levels
Volume Status: High/Normal/Low relative to average
Volume Momentum: Rising/Falling/Climax
Session Range: High - Low distance
Accumulation/Distribution: Current phase
Visual Elements
Session Boxes: Optional background colors for each session (default: OFF)
Session VWAP: Dynamic line with color based on price position
Session High/Low: Horizontal lines for current session (2 lines only)
Volume Bars: Color-coded based on momentum and direction
Volume Distribution Profile: Histogram showing volume at price levels
POC Line: Horizontal line at Point of Control
Value Area: Shaded zone between VAH and VAL
Accumulation/Distribution Markers: Labels for strong volume phases
Dashboard: Bottom-right table with session and volume metrics
Chart demonstrating session VWAP, volume bars, and dashboard
How Components Work Together
The mashup reveals session-based institutional flow:
Session Trading Sequence:
1. Session Opens: New session begins (London/NY/Asian)
2. VWAP Establishes: Session VWAP forms as volume enters
3. Volume Distribution: Institutions create volume at key levels (POC, Value Area)
4. Session Range: High and low established through institutional activity
5. Volume Momentum: Accumulation or distribution phase identified
6. Session Close: Levels become reference for next session
Example: London session opens, price trades above session VWAP with rising volume (accumulation). Volume distribution shows POC forming at 1.2500 level. Session high reaches 1.2550. NY session opens, price respects London session high and VWAP, continues higher with climax volume. Dashboard shows strong accumulation with volume momentum +75%.
Input Parameters
Session Settings:
London Session: Time range (default: 0300-1200)
NY Session: Time range (default: 0830-1700)
Asian Session: Time range (default: 0000-0900)
Show Session Boxes: Toggle background colors (default: OFF)
Highlight Overlap: Emphasize London/NY overlap (default: enabled)
VWAP Settings:
Show Session VWAP: Toggle VWAP line (default: enabled)
VWAP Reset: Session, Daily, Weekly (default: Session)
VWAP Bands: Optional standard deviation bands (default: disabled)
Distance Alert: Alert when price moves X% from VWAP (default: 2%)
Volume Settings:
Volume MA Length: Period for volume average (default: 20)
High Volume Threshold: Multiplier for high volume (default: 1.5x)
Climax Volume Threshold: Multiplier for climax (default: 3.0x)
Show Volume Bars: Color-coded volume bars (default: enabled)
Show Distribution Profile: Volume at price histogram (default: enabled)
Session Levels:
Show Current Session H/L: Toggle current session levels (default: enabled)
Show Previous Session H/L: Toggle previous session levels (default: disabled)
Show POC: Toggle Point of Control line (default: enabled)
Show Value Area: Toggle VAH/VAL zone (default: enabled)
Display Options:
Show Dashboard: Toggle metrics table (default: enabled)
Dashboard Position: Bottom-right, top-right, etc. (default: bottom-right)
Color Theme: Choose color scheme
Transparency: Adjust visual element transparency
How to Use This Indicator
Step 1: Identify Active Session
Check dashboard to see which session is active. Focus trading during London and NY sessions for highest volume and best opportunities.
Step 2: Monitor Session VWAP
Use session VWAP as directional bias. Price above VWAP = bullish bias, below = bearish bias. VWAP often acts as support/resistance.
Step 3: Check Volume Distribution
Identify POC and Value Area. These levels often provide strong support/resistance. Price tends to return to POC (fair value).
Step 4: Assess Volume Momentum
Check if volume is rising (accumulation/distribution) or falling (lack of interest). Climax volume often marks important turning points.
Step 5: Use Session High/Low
Current session high/low define intraday range. Breaks above/below these levels signal potential breakout moves.
Step 6: Watch for Session Transitions
Session opens and closes often bring volatility. London open and NY open are particularly important for major moves.
Best Practices
Use on 5-minute to 1-hour timeframes for optimal session analysis
London/NY overlap (08:30-12:00 EST) offers highest volume and best opportunities
Session VWAP acts as magnet - price often returns to it
POC from previous session often becomes support/resistance in current session
Climax volume at session high/low often marks reversal points
Accumulation during Asian session often leads to breakout during London open
Value Area breaks signal strong directional moves
Previous session high/low become key levels for current session
Combine session analysis with other technical tools for best results
Indicator Limitations
Session times are fixed and may not account for daylight saving time changes
Volume distribution requires sufficient data within session to be meaningful
VWAP can be less relevant in very volatile or trending markets
Session high/low can be broken multiple times in volatile conditions
Lower timeframes may show choppy session transitions
Volume data quality varies across different markets and brokers
Asian session analysis less reliable due to lower volume
Requires understanding of session-based trading concepts
Visual elements can clutter chart if all options enabled
Technical Implementation
Built with Pine Script v6 using:
Session detection using time() function with session strings
Session-specific VWAP calculation with reset logic
Volume distribution profiling with POC and Value Area calculation
Volume momentum tracking with MA comparison
Session high/low tracking with persistent variables
Accumulation/distribution detection using volume and price
Dynamic dashboard with real-time session metrics
Optional session boxes with transparency control
Color-coded volume bars based on momentum
The code is fully open-source and can be modified to adjust session times, volume thresholds, and visual preferences.
Originality Statement
This indicator is original in its comprehensive session and volume integration approach. While individual components (session identification, VWAP, volume distribution, volume momentum, session high/low) are established concepts, this mashup is justified because:
It combines session-based analysis with volume distribution profiling
Session-specific VWAP provides more relevant institutional benchmark than daily VWAP
Integration of volume momentum with session context reveals accumulation/distribution phases
Simplified visual presentation (current session H/L only) reduces clutter
Dashboard presents complex session and volume data clearly
Focus on institutional trading sessions (London/NY) aligns with volume reality
Each component contributes unique information: Session identification shows when institutions are active, Volume Distribution reveals where they're trading, VWAP shows their average price, Volume Momentum shows their intent, and Session High/Low marks their range. The mashup's value lies in presenting these complementary session-based perspectives simultaneously, allowing traders to understand how institutional volume flows through different global trading sessions.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Session-based analysis and volume distribution are analytical tools that analyze past data. They do not predict future price movement or guarantee that institutional traders are active at identified levels. Market conditions change, and session patterns that worked historically may not work in the future.
VWAP and volume distribution levels can fail to provide support/resistance. Session highs and lows can be broken without leading to sustained moves. Volume momentum can change rapidly. Past session behavior does not guarantee future session behavior.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Indicator

Luminous Market Breadth Pulse [Pineify]Luminous Market Breadth Pulse — Dual-Factor Breadth & Volume Oscillator
The Luminous Market Breadth Pulse is a market internals oscillator that fuses advance-decline breadth with up/down volume flow into a single, easy-to-read histogram. Rather than relying on price action of a single instrument, this indicator looks beneath the surface of the market to gauge the true health of participation across all listed stocks on the NYSE or NASDAQ. It answers a question that price alone cannot: Are the majority of stocks — and the majority of capital — moving in the same direction?
Key Features
Combines two independent breadth dimensions (advance-decline ratio and up/down volume ratio) into one unified oscillator.
Gradient-colored histogram that visually intensifies as market conviction strengthens.
Built-in signal line (WMA) for crossover-based entry and exit timing.
Supports both NYSE and NASDAQ breadth data with a single toggle.
Four ready-to-use alert conditions for bullish/bearish crossovers and zero-line transitions.
How It Works
The indicator is built on two normalized ratios, each scaled to a –100 to +100 range:
Advance-Decline Ratio — Calculated as (Advancing Issues – Declining Issues) / (Advancing + Declining) × 100. This captures the net directional bias of individual stocks. A reading near +100 means nearly every stock is advancing; near –100, nearly every stock is declining.
Up/Down Volume Ratio — Calculated as (Up Volume – Down Volume) / (Up Volume + Down Volume) × 100. This measures whether capital is flowing into advancing stocks or declining stocks. It adds a critical volume-confirmation layer that pure issue counts miss.
Raw Pulse — The simple average of the two ratios above. Equal weighting ensures that neither breadth nor volume dominates the reading, giving a balanced composite view.
Smoothed Pulse (EMA) — The raw pulse is smoothed with an Exponential Moving Average controlled by the "Pulse Length" input. EMA was chosen because it reacts quickly to shifts in market internals while still filtering single-day noise.
Signal Line (WMA) — A Weighted Moving Average of the smoothed pulse. WMA places more emphasis on recent values than SMA, making it a responsive yet stable reference for crossover signals.
How Multiple Indicators Work Together
The core design philosophy is confirmation through independent data streams . Advance-decline data tells you how many stocks are participating in a move, while up/down volume data tells you how much capital is behind that participation. A rally where many stocks advance but volume is weak scores lower than a rally where both breadth and volume confirm strength. By averaging these two dimensions, the Luminous Pulse filters out misleading signals that either metric alone might produce — for example, a narrow large-cap rally that lifts volume but leaves most issues flat, or a broad advance on thin volume that lacks institutional conviction.
The EMA-smoothed pulse and WMA signal line form a dual-speed system similar in concept to MACD, but applied to market internals rather than price. When the faster pulse crosses above the slower signal, it suggests broadening participation and increasing volume commitment — an early sign of sustainable momentum. The reverse crossover flags deteriorating internals before price may reflect it.
Trading Ideas and Insights
Crossover entries — A bullish signal fires when the pulse crosses above its signal line, indicating improving breadth and volume. A bearish signal fires on the opposite crossover. These work well as confirmation filters alongside price-based setups.
Zero-line regime filter — When the pulse is above zero, market internals favor the bulls; below zero, the bears. Use this as a trend filter: only take long setups when the pulse is positive, and short setups when negative.
Divergence analysis — If the index makes a new high but the Luminous Pulse prints a lower high, internal participation is weakening — a classic breadth divergence that often precedes corrections.
Gradient intensity — The histogram color transparency reflects conviction strength. Deep, vivid bars signal strong consensus; faded bars warn of indecision even if the reading is technically bullish or bearish.
Unique Aspects
Unlike single-factor breadth indicators (e.g., a standalone Advance-Decline Line or McClellan Oscillator), this tool merges issue-count breadth with volume-weighted breadth into one normalized score, reducing false signals from either dimension alone.
The gradient-mapped histogram provides an instant visual gauge of conviction without requiring additional overlays or secondary panels.
All breadth data is pulled on a daily timeframe regardless of your chart's resolution, ensuring consistent readings and avoiding intraday noise artifacts that can distort breadth calculations on lower timeframes.
How to Use
Add the indicator to any chart. It works independently of the charted symbol since it reads exchange-level breadth data.
Select your preferred exchange (NYSE or NASDAQ) in the settings.
Adjust Pulse Length for sensitivity — lower values react faster to shifts in market internals; higher values produce smoother, more deliberate signals.
Adjust Signal Smoothing to control how quickly the signal line tracks the pulse. A shorter smoothing period generates more frequent crossovers; a longer one filters out minor fluctuations.
Use the built-in alert conditions to receive notifications for bullish/bearish crossovers and zero-line transitions without watching the chart.
Customization
Exchange — Toggle between NYSE and NASDAQ to analyze the breadth of your preferred market.
Pulse Length — Controls the EMA period applied to the raw pulse. Default is 10.
Signal Smoothing — Controls the WMA period for the signal line. Default is 5.
Colors — Fully customizable bullish, bearish, and signal line colors to match any chart theme.
Conclusion
The Luminous Market Breadth Pulse gives traders a window into the internal engine of the market. By combining advance-decline breadth with volume flow and presenting the result as a gradient-colored oscillator with a built-in signal line, it offers a concise yet powerful tool for gauging market health, timing entries, and spotting divergences — all from a single indicator panel.
Indicator

Smart Money Tracker [JOAT]Smart Money Tracker
Introduction
The Smart Money Tracker is an open-source indicator that combines institutional order flow concepts including Fair Value Gaps (FVG), Order Blocks (OB), Breaker Blocks, Liquidity Sweeps, Market Structure Breaks, and Displacement patterns. This mashup creates a comprehensive Smart Money Concepts (SMC) analysis system designed to identify where institutional traders are positioning themselves and how they manipulate price to accumulate or distribute positions.
The indicator addresses a fundamental market reality: institutional traders with large capital cannot simply buy or sell at market prices without moving the market against themselves. They must use sophisticated techniques including liquidity sweeps, gap creation, and order block manipulation. By tracking these institutional footprints simultaneously, this tool helps retail traders align with smart money rather than becoming their liquidity.
Chart showing FVG zones, Order Blocks, liquidity sweeps, and market structure on 15M timeframe
Why This Mashup Exists
This indicator combines six Smart Money Concepts that reveal different aspects of institutional behavior:
Fair Value Gaps (FVG): Inefficient price delivery zones where institutions moved price quickly
Order Blocks (OB): Last opposite-direction move before impulse, showing accumulation/distribution
Breaker Blocks: Failed Order Blocks that signal potential trend reversal
Liquidity Sweeps: Stop hunts where institutions trigger retail stops before real move
Market Structure: Break of Structure (BOS) and Change of Character (CHoCH) patterns
Displacement: Strong institutional moves with high volume and large candles
Each concept reveals different institutional tactics: FVGs show where they moved fast, Order Blocks show where they accumulated, Breaker Blocks show failed accumulation, Liquidity Sweeps show stop hunts, Market Structure shows control shifts, and Displacement shows strong directional intent. Together, they create a complete picture of institutional order flow that no single concept can provide.
The mashup is justified because these concepts work together in institutional trading sequences: institutions sweep liquidity, create FVGs during displacement, leave Order Blocks at accumulation zones, and break market structure when taking control. Tracking all simultaneously reveals the complete institutional playbook.
Core Components Explained
1. Fair Value Gap (FVG) Detection
FVGs occur when price moves so quickly that it leaves an unfilled gap:
// Bullish FVG: Current low > high from 2 bars ago
bullishFVG = low > high and close > high
fvgTop = low
fvgBottom = high
fvgSize = ((fvgTop - fvgBottom) / fvgBottom) * 100
// Bearish FVG: Current high < low from 2 bars ago
bearishFVG = high < low and close < low
fvgTop = low
fvgBottom = high
fvgSize = ((fvgTop - fvgBottom) / fvgBottom) * 100
FVG significance:
Represents inefficient price delivery - institutions moved too fast
Price often returns to "fill" these gaps before continuing
Larger FVGs (> 0.5%) are more significant
FVGs act as support/resistance zones
Multiple unfilled FVGs suggest strong directional intent
The indicator draws boxes for FVGs and tracks when they get "mitigated" (price returns to fill them). Timeframe-adaptive limits prevent clutter (fewer boxes on higher timeframes).
2. Order Block Identification
Order Blocks mark where institutions accumulated or distributed positions:
// Bullish Order Block
// Two consecutive bearish candles + strong bullish candle with high volume
bullishOB = close < open and
close < open and
close > open and
volume > volumeMA * 1.5
obHigh = high
obLow = low
// Bearish Order Block
// Two consecutive bullish candles + strong bearish candle with high volume
bearishOB = close > open and
close > open and
close < open and
volume > volumeMA * 1.5
Order Block characteristics:
Last opposite-direction move before strong impulse
Represents institutional accumulation (bullish OB) or distribution (bearish OB)
Often provides support/resistance on retests
Volume confirmation ensures institutional participation
Stronger OBs have larger candles and higher volume
The indicator draws solid boxes for Order Blocks and tracks their strength based on volume and candle size. Timeframe-adaptive filtering ensures only significant OBs are displayed.
3. Breaker Block Detection
Breaker Blocks are failed Order Blocks that signal potential reversals:
// Track last bullish and bearish Order Block levels
var float lastBullOBHigh = na
var float lastBearOBLow = na
if bullishOB
lastBullOBHigh := high
if bearishOB
lastBearOBLow := low
// Breaker Bull: Price breaks above failed bearish OB
breakerBull = not na(lastBearOBLow) and
close > lastBearOBLow and
close <= lastBearOBLow
// Breaker Bear: Price breaks below failed bullish OB
breakerBear = not na(lastBullOBHigh) and
close < lastBullOBHigh and
close >= lastBullOBHigh
Breaker Block significance:
Failed Order Blocks often become strong support/resistance in opposite direction
Indicate institutional position reversal
High-probability reversal zones when combined with other SMC signals
Often mark major trend changes
The indicator marks Breaker Blocks with "BB" labels and tracks them as potential reversal zones.
4. Liquidity Sweep Analysis
Liquidity Sweeps identify stop hunts before real moves:
lookbackBars = 20
// Recent highs and lows (liquidity pools)
recentHigh = ta.highest(high, lookbackBars)
recentLow = ta.lowest(low, lookbackBars)
// Liquidity Sweep High (stop hunt above recent high)
liquiditySweepHigh = high > recentHigh and
close < recentHigh and
volume > volumeMA * 1.5
// Liquidity Sweep Low (stop hunt below recent low)
liquiditySweepLow = low < recentLow and
close > recentLow and
volume > volumeMA * 1.5
// Strong sweeps have higher volume
strongSweep = volume > volumeMA * 2.5
Liquidity Sweep characteristics:
Price briefly exceeds recent high/low to trigger stops
Closes back inside range - "fake breakout"
High volume confirms institutional participation
Often precedes strong moves in opposite direction
"Strong" sweeps (very high volume) are more reliable
The indicator places "LIQ" and "STRONG LIQ" labels precisely at sweep tips (above bars for high sweeps, below bars for low sweeps) with timeframe-adaptive spacing to prevent overlap.
5. Market Structure Analysis
Market structure tracks control shifts between buyers and sellers:
// Break of Structure (BOS)
// Price breaks beyond previous swing high/low in trend direction
bullishBOS = close > ta.highest(high , 20) and trend == bullish
bearishBOS = close < ta.lowest(low , 20) and trend == bearish
// Change of Character (CHoCH)
// Price breaks structure against trend - potential reversal
bullishCHoCH = close > ta.highest(high , 20) and trend == bearish
bearishCHoCH = close < ta.lowest(low , 20) and trend == bullish
Market Structure significance:
BOS confirms trend continuation
CHoCH signals potential trend reversal
Helps identify when institutional control shifts
Provides context for other SMC signals
The indicator marks BOS and CHoCH with labels and uses them to determine overall market bias.
6. Displacement Detection
Displacement identifies strong institutional moves:
atr = ta.atr(14)
// Displacement: Large candle (> 2x ATR) with climax volume
displacement = math.abs(close - open) > atr * 2 and
volume > volumeMA * 3.0
bullishDisplacement = displacement and close > open
bearishDisplacement = displacement and close < open
Displacement characteristics:
Very large candles relative to ATR
Climax volume (> 3x average)
Indicates strong institutional directional intent
Often creates FVGs
Signals potential trend acceleration
The indicator marks displacement with "DISP" labels and uses them to identify high-conviction institutional moves.
Example showing all SMC concepts: FVGs, Order Blocks, Breaker Blocks, and liquidity sweeps
Timeframe-Adaptive System
The indicator automatically adjusts based on timeframe to prevent clutter:
// Higher timeframes (2H+): Fewer boxes, larger minimum sizes
if timeframe >= 120 minutes:
maxFVGs = 12
maxOBs = 10
minFVGSize = 0.5%
minOBSize = 0.8%
labelSpacing = 15 bars
// Medium timeframes (1H): Moderate filtering
else if timeframe >= 60 minutes:
maxFVGs = 15
maxOBs = 12
minFVGSize = 0.4%
minOBSize = 0.6%
labelSpacing = 12 bars
// Lower timeframes (15M): More boxes, smaller minimum sizes
else:
maxFVGs = 20-25
maxOBs = 15-20
minFVGSize = 0.3%
minOBSize = 0.4%
labelSpacing = 8-10 bars
This ensures the indicator remains useful across all timeframes without overwhelming the chart.
SMC Confluence Dashboard
The dashboard (top-right position) displays:
Market Bias: Bullish/Bearish/Neutral based on structure
Active FVGs: Count of unfilled Fair Value Gaps
Active OBs: Count of untested Order Blocks
Recent Sweeps: Liquidity sweeps in last 50 bars
Structure: Last BOS or CHoCH type
Displacement: Recent displacement direction
SMC Score: Overall confluence (0-10)
SMC Score calculation:
SMC Score Components:
- Significant FVG present: +2 points
- Strong Order Block present: +2 points
- Breaker Block active: +1 point
- Recent liquidity sweep: +2 points
- Displacement in direction: +3 points
Total: 0-10 points
Visual Elements
FVG Boxes: Green (bullish) and red (bearish) boxes, removed when mitigated
Order Block Boxes: Solid green/red boxes with strength-based transparency
Breaker Block Labels: "BB" markers at breaker zones
Liquidity Sweep Labels: "LIQ" and "STRONG LIQ" at sweep tips
Displacement Labels: "DISP" markers on displacement candles
Structure Labels: "BOS" and "CHoCH" at structure breaks
Mitigation Markers: Small circles when FVGs get filled
Dashboard: Top-right table with SMC metrics
How Components Work Together
The mashup reveals institutional trading sequences:
Sequence 1 - Accumulation:
1. Liquidity Sweep triggers retail stops
2. Order Block forms as institutions accumulate
3. Displacement occurs as institutions push price
4. FVG created during fast move
5. BOS confirms trend direction
Sequence 2 - Reversal:
1. Multiple liquidity sweeps fail to extend trend
2. Order Block fails, becomes Breaker Block
3. CHoCH signals control shift
4. Opposite-direction displacement
5. New trend structure forms
Example: Price sweeps below recent lows (liquidity sweep), then strongly reverses with high volume (displacement), leaving a bullish FVG. A bullish Order Block forms at the reversal zone. Price breaks above previous structure (BOS). SMC Score reaches 9/10, signaling strong bullish institutional setup.
Input Parameters
FVG Settings:
Show FVGs: Toggle FVG boxes (default: enabled)
Min FVG Size: Minimum gap size % (default: 0.3%)
Max FVG Boxes: Limit displayed boxes (default: timeframe-adaptive)
Show Mitigation: Mark when FVGs get filled (default: enabled)
Order Block Settings:
Show Order Blocks: Toggle OB boxes (default: enabled)
Min OB Strength: Minimum volume multiplier (default: 1.5x)
Max OB Boxes: Limit displayed boxes (default: timeframe-adaptive)
OB Lookback: Bars to track OBs (default: 100)
Liquidity Settings:
Show Liquidity Sweeps: Toggle sweep labels (default: enabled)
Lookback Bars: Period for liquidity pools (default: 20)
Strong Sweep Threshold: Volume multiplier (default: 2.5x)
Label Spacing: Minimum bars between labels (default: timeframe-adaptive)
Structure Settings:
Show Structure: Toggle BOS/CHoCH labels (default: enabled)
Show Breaker Blocks: Toggle BB labels (default: enabled)
Show Displacement: Toggle DISP labels (default: enabled)
Structure Sensitivity: Swing detection period (default: 20)
Display Options:
Show Dashboard: Toggle SMC dashboard (default: enabled)
Timeframe Adaptive: Auto-adjust limits (default: enabled)
Remove Extensions: Don't extend boxes right (default: enabled)
Color Theme: Choose color scheme
How to Use This Indicator
Step 1: Identify Market Structure
Check for recent BOS or CHoCH. BOS suggests trend continuation, CHoCH suggests potential reversal.
Step 2: Look for Liquidity Sweeps
Liquidity sweeps often precede strong moves in opposite direction. "STRONG LIQ" sweeps are particularly significant.
Step 3: Identify Order Blocks
Look for Order Blocks in the direction of intended trade. OBs often provide high-probability entry zones on retests.
Step 4: Check for FVGs
Unfilled FVGs act as magnets - price often returns to fill them. Can be used for entry targets or profit-taking zones.
Step 5: Watch for Displacement
Displacement signals strong institutional intent. When displacement occurs from an Order Block, it confirms the zone's validity.
Step 6: Monitor Breaker Blocks
Failed Order Blocks (Breaker Blocks) often mark major reversals. These are high-probability reversal zones.
Step 7: Review SMC Score
Check dashboard SMC Score. Scores above 7 indicate strong institutional confluence.
Best Practices
Use on 15-minute to 4-hour timeframes for optimal SMC signal quality
Liquidity sweeps followed by displacement are extremely high-probability setups
Order Block retests with FVG confluence provide excellent risk:reward entries
Wait for price to return to Order Blocks rather than chasing displacement
Multiple unfilled FVGs in same direction suggest strong institutional intent
Breaker Blocks combined with CHoCH signal major trend reversals
Higher timeframe SMC signals are more reliable than lower timeframe
Use SMC Score as filter - focus on setups with 7+ score
Combine with traditional support/resistance for additional confirmation
Indicator Limitations
Not all FVGs get filled - some remain unfilled in strong trends
Order Blocks don't always provide support/resistance on retest
Liquidity sweeps can be followed by additional sweeps (multiple stop hunts)
Timeframe-adaptive filtering may hide some valid signals
Requires understanding of Smart Money Concepts for effective use
Visual elements can clutter chart even with adaptive limits
SMC concepts work best in trending markets, less effective in ranges
Institutional behavior patterns can change over time
No SMC system eliminates false signals entirely
Technical Implementation
Built with Pine Script v6 using:
Box management system with automatic cleanup
Timeframe-adaptive limits and filtering
Anti-overlap logic for all labels with dynamic spacing
FVG mitigation tracking with visual markers
Order Block strength calculation based on volume and size
Liquidity pool identification with sweep detection
Market structure tracking with BOS/CHoCH logic
Displacement detection using ATR and volume
Real-time SMC confluence scoring
Comprehensive dashboard with all SMC metrics
The code is fully open-source and can be modified to adjust thresholds, visual preferences, and filtering criteria.
Originality Statement
This indicator is original in its comprehensive SMC integration approach. While individual concepts (FVG, Order Blocks, Breaker Blocks, Liquidity Sweeps, Market Structure, Displacement) are established Smart Money Concepts, this mashup is justified because:
It tracks all major SMC concepts simultaneously in one indicator
Timeframe-adaptive system prevents clutter while maintaining functionality
Anti-overlap logic ensures clean visual presentation
SMC confluence scoring quantifies institutional setup quality
Integration reveals complete institutional trading sequences
Enhanced visual elements (precise label positioning, mitigation markers) improve usability
Each SMC concept reveals different institutional behavior: FVGs show fast moves, Order Blocks show accumulation, Breaker Blocks show failed accumulation, Liquidity Sweeps show stop hunts, Market Structure shows control shifts, and Displacement shows strong intent. The mashup's value lies in presenting these complementary institutional footprints simultaneously, allowing traders to identify complete institutional trading sequences rather than isolated signals.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Smart Money Concepts are analytical frameworks based on observations of institutional trading patterns. They do not guarantee that institutions are actually trading at identified zones, nor do they predict future institutional behavior. Market conditions change, and patterns that worked historically may not work in the future.
The SMC Score is a mathematical calculation based on current market structure, not a prediction of future price movement. High SMC scores do not ensure profitable trades. Order Blocks, FVGs, and other SMC zones can fail to provide support/resistance. Liquidity sweeps can be followed by additional sweeps.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Advanced Divergence Hunter [JOAT]Advanced Divergence Hunter
Introduction
The Advanced Divergence Hunter is an open-source multi-oscillator indicator that simultaneously tracks divergences across six different momentum indicators: RSI, MACD, Stochastic RSI, CCI, MFI, and Williams %R. This mashup creates a comprehensive divergence detection system designed to identify momentum exhaustion and potential reversals by analyzing when multiple oscillators simultaneously show divergence from price action.
The indicator addresses a critical limitation of single-oscillator divergence detection: false signals. By requiring confluence across multiple oscillators using different calculation methods, this tool significantly reduces false divergence signals and highlights only the most reliable momentum exhaustion patterns that occur when price and momentum fundamentally disconnect across multiple measurement frameworks.
Chart showing multiple divergence signals across oscillators with dashboard on 1H timeframe
Why This Mashup Exists
This indicator combines six oscillators that detect divergences using fundamentally different methodologies:
RSI: Momentum oscillator based on average gains vs losses
MACD: Trend-following momentum using EMA convergence/divergence
Stochastic RSI: Stochastic calculation applied to RSI for enhanced sensitivity
CCI (Commodity Channel Index): Measures deviation from statistical mean
MFI (Money Flow Index): Volume-weighted RSI showing buying/selling pressure
Williams %R: Momentum indicator measuring overbought/oversold using highest high/lowest low
Each oscillator responds to different market dynamics: RSI tracks momentum speed, MACD shows trend strength changes, Stochastic RSI catches early shifts, CCI identifies statistical extremes, MFI incorporates volume, and Williams %R uses price extremes. When multiple oscillators show divergence simultaneously, it indicates genuine momentum exhaustion rather than noise from a single calculation method.
The mashup is justified because these oscillators use distinct mathematical approaches (rate of change, moving average convergence, stochastic, statistical deviation, volume-weighted, price extremes) that respond to different aspects of price movement. Confluence across multiple methods provides significantly higher reliability than any single divergence signal.
Example showing all six oscillators with divergence markers and alignment indicators
Core Components Explained
1. RSI Divergence Detection
Standard RSI calculation with pivot-based divergence logic:
rsi = ta.rsi(close, 14)
// Identify swing points
pivotHigh = ta.pivothigh(rsi, 5, 5)
pivotLow = ta.pivotlow(rsi, 5, 5)
// Regular Bullish Divergence
// Price: Lower Low, RSI: Higher Low
bullDiv = priceLow < prevPriceLow AND rsiLow > prevRSILow
// Regular Bearish Divergence
// Price: Higher High, RSI: Lower High
bearDiv = priceHigh > prevPriceHigh AND rsiHigh < prevRSIHigh
2. MACD Histogram Divergence
MACD histogram divergences often lead price divergences:
= ta.macd(close, 12, 26, 9)
// Histogram divergence detection
// Bullish: Price LL, Histogram HL
// Bearish: Price HH, Histogram LH
The indicator plots MACD histogram with enhanced visualization and tracks divergences separately from RSI.
3. Stochastic RSI Divergence
More sensitive than regular RSI, catches early momentum shifts:
stochRSI = ta.stoch(rsi, rsi, rsi, 14)
// K and D line divergences
// Often diverges before regular RSI
Stochastic RSI K and D lines are plotted, and divergences on both lines are tracked independently.
4. CCI Divergence Detection
CCI measures price deviation from statistical mean:
cci = ta.cci(close, 20)
// CCI divergences indicate statistical exhaustion
// Bullish: Price LL, CCI HL
// Bearish: Price HH, CCI LH
CCI divergences are particularly reliable at extreme levels (> +100 or < -100).
5. MFI Divergence (Volume-Weighted)
MFI incorporates volume, making divergences more significant:
// Calculate typical price
typicalPrice = (high + low + close) / 3
// Money flow with volume
rawMoneyFlow = typicalPrice * volume
// MFI calculation
mfi = 100 - (100 / (1 + positiveFlow / negativeFlow))
// Volume divergences often lead price
// Bullish: Price LL, MFI HL (buying pressure increasing)
// Bearish: Price HH, MFI LH (selling pressure increasing)
MFI divergences are weighted more heavily in the confluence system because they incorporate volume.
6. Williams %R Divergence
Williams %R uses highest high and lowest low:
williamsR = -100 * (ta.highest(high, 14) - close) / (ta.highest(high, 14) - ta.lowest(low, 14))
// Divergences at extreme levels (-80 to -100 or -20 to 0)
// Bullish: Price LL, Williams %R HL
// Bearish: Price HH, Williams %R LH
Williams %R divergences are most reliable when oscillator is in extreme zones.
Divergence Confluence System
The indicator tracks divergences across all six oscillators and calculates confluence:
Divergence Confluence Score:
- Single oscillator divergence: 1 point
- Two oscillators: 2 points
- Three oscillators: 4 points
- Four oscillators: 7 points
- Five oscillators: 11 points
- All six oscillators: 15 points (MEGA divergence)
Divergence classification:
Weak Divergence: 1-2 oscillators (score 1-2)
Moderate Divergence: 3 oscillators (score 4)
Strong Divergence: 4 oscillators (score 7)
Very Strong Divergence: 5 oscillators (score 11)
MEGA Divergence: All 6 oscillators (score 15)
The dashboard displays which oscillators are showing divergence and the total confluence score.
Oscillator Alignment Analysis
Beyond divergences, the indicator tracks oscillator alignment:
Alignment Score:
- RSI in healthy range (40-60 bull, 60-40 bear): +1
- MACD histogram direction: +1
- Stochastic RSI position: +1
- CCI direction: +1
- MFI level: +1
- Williams %R position: +1
Total Alignment: 0-6 points
Alignment interpretation:
5-6 aligned: Strong momentum consensus
3-4 aligned: Moderate momentum
0-2 aligned: Weak or conflicting momentum
Enhanced Dashboard System
The indicator features an 11-row dashboard showing:
Row 1: Overall momentum direction (BULL/BEAR/NEUTRAL)
Row 2: Divergence confluence score with color coding
Row 3: RSI value and divergence status
Row 4: MACD histogram status
Row 5: Stochastic RSI K value
Row 6: CCI value and status
Row 7: MFI value and divergence status
Row 8: Williams %R value
Row 9: Momentum strength (0-100)
Row 10: Oscillator alignment (X/6 aligned)
Row 11: Active divergences count
Dashboard showing divergence confluence with individual oscillator breakdown
Visual Elements
Oscillator Lines: All six oscillators plotted with distinct colors
Divergence Labels: "DIV" markers at divergence points, sized by confluence
Confluence Markers: Large diamond shapes for MEGA divergences (6/6)
Background Zones: Color-coded backgrounds for extreme conditions
Overbought/Oversold Lines: Reference levels for each oscillator
Zero/Midpoint Lines: Centerline references
Histogram Bars: MACD histogram with gradient coloring
Dashboard: Comprehensive table with all oscillator readings
How Components Work Together
The mashup creates layered divergence analysis:
Layer 1 - Individual Detection: Each oscillator independently detects divergences
Layer 2 - Confluence Calculation: System counts how many oscillators show divergence
Layer 3 - Weighting: Volume-based divergences (MFI) weighted more heavily
Layer 4 - Alignment Check: Verifies overall oscillator consensus
Layer 5 - Extreme Zones: Identifies when divergences occur at statistical extremes
Layer 6 - Signal Generation: Produces graded signals based on confluence strength
Example scenario: Price makes higher high, but RSI, MACD, Stochastic RSI, and MFI all make lower highs (4/6 divergence). CCI and Williams %R are in extreme overbought zones. Confluence score is 7 (Strong Divergence), and dashboard shows 4 active divergences. This signals high-probability bearish reversal setup.
Input Parameters
Oscillator Settings:
RSI Length: Period for RSI (default: 14)
MACD Settings: Fast 12, Slow 26, Signal 9
Stochastic RSI Length: Period for Stoch RSI (default: 14)
CCI Length: Period for CCI (default: 20)
MFI Length: Period for MFI (default: 14)
Williams %R Length: Period for Williams %R (default: 14)
Divergence Settings:
Pivot Lookback: Bars for pivot detection (default: 5)
Min Confluence: Minimum oscillators for signal (default: 3)
Show All Divergences: Display single-oscillator divergences (default: disabled)
Show Only Strong: Display only 4+ confluence (default: enabled)
Display Options:
Show Dashboard: Toggle dashboard (default: enabled)
Show Oscillators: Toggle oscillator plots (default: enabled)
Show Background Zones: Toggle extreme zone coloring (default: enabled)
Dashboard Position: Top-right, bottom-right, etc.
How to Use This Indicator
Step 1: Monitor Divergence Confluence
Watch the dashboard divergence score. Wait for 3+ oscillators showing divergence (score 4+) before considering reversal trades.
Step 2: Check Oscillator Extremes
Divergences are most reliable when oscillators are in extreme zones (RSI > 70 or < 30, MFI > 80 or < 20, etc.).
Step 3: Verify Alignment
Check oscillator alignment score. Low alignment (0-2) with high divergence confluence suggests strong reversal potential.
Step 4: Identify MEGA Divergences
When all 6 oscillators show divergence (MEGA), it signals extremely high probability reversal setup. These are rare but very reliable.
Step 5: Confirm with Price Action
Wait for price action confirmation (reversal candlestick patterns, trendline breaks) before entering trades based on divergences.
Step 6: Use for Exit Signals
If holding trend-following position and strong divergence appears, consider taking profits or tightening stops.
Best Practices
Use on 15-minute to 4-hour timeframes for optimal divergence reliability
Wait for 3+ oscillator confluence before acting on divergence signals
MEGA divergences (6/6) are rare but extremely reliable - don't ignore them
MFI divergences are particularly significant because they incorporate volume
Divergences in strong trends often lead to pullbacks, not full reversals
Combine with support/resistance levels for precise entry timing
Hidden divergences signal trend continuation, regular divergences signal reversal
Multiple consecutive divergences increase reversal probability
Use oscillator alignment to gauge overall momentum health
Indicator Limitations
Divergences can persist for extended periods before reversal occurs
Strong trends can continue despite multiple oscillator divergences
Pivot-based detection means divergences are confirmed with lag
False divergences can occur in choppy, ranging markets
MEGA divergences are rare - waiting only for these may miss opportunities
Oscillator calculations vary in sensitivity - some may diverge prematurely
Requires understanding of each oscillator's characteristics
No divergence system eliminates false signals entirely
Performance varies across different markets and volatility regimes
Technical Implementation
Built with Pine Script v6 using:
Six independent oscillator calculations
Pivot-based divergence detection for each oscillator
Confluence scoring algorithm with weighted components
Oscillator alignment tracking system
Enhanced 11-row dashboard with real-time updates
Dynamic background zones for extreme conditions
Anti-overlap logic for divergence labels
Gradient coloring for MACD histogram
The code is fully open-source and can be modified to adjust oscillator parameters, confluence thresholds, and visual preferences.
Originality Statement
This indicator is original in its multi-oscillator divergence confluence approach. While individual oscillators (RSI, MACD, Stochastic RSI, CCI, MFI, Williams %R) are established tools, this mashup is justified because:
It tracks divergences across six oscillators using fundamentally different calculations
The confluence scoring system quantifies divergence strength across multiple methods
Integration of volume-weighted divergence (MFI) with price-based oscillators
Oscillator alignment analysis provides momentum consensus measurement
Enhanced dashboard presents complex multi-oscillator data clearly
MEGA divergence detection identifies extremely rare, high-probability setups
Each oscillator contributes unique divergence information: RSI shows momentum speed divergence, MACD shows trend strength divergence, Stochastic RSI catches early divergences, CCI shows statistical divergence, MFI shows volume-weighted divergence, and Williams %R shows price extreme divergence. The mashup's value lies in identifying when multiple independent calculation methods simultaneously show momentum exhaustion, significantly reducing false signals.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Divergence indicators are analytical tools that identify potential momentum exhaustion, not guarantees of reversals. Divergences can persist for extended periods, and strong trends can continue despite multiple divergence signals. Past divergence performance does not guarantee future results.
The confluence score is a mathematical calculation based on current oscillator readings, not a prediction of future price movement. High confluence scores do not ensure profitable trades. Market conditions change, and divergence patterns that worked historically may not work in the future.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Indicator Configuration Forecasting [LuxAlgo]The Indicator Configuration Forecasting tool identifies historical market regimes that share a similar technical configuration to the current market and projects future price action based on those historical outcomes. By encoding multiple technical indicators into a state vector and employing a K-Nearest Neighbors (KNN) search, the script provides a probabilistic forecast including a median path and confidence intervals.
🔶 USAGE
The indicator works by "memorizing" the state of various user-selected technical indicators at every bar. When the current bar's configuration matches or closely resembles a previous historical state, the script records how the price moved in the subsequent N bars from that point in time.
🔹 Forecast Interpretation
Median Forecast (Dashed Gray): Represents the 50th percentile (median) of all matched historical outcomes. This is the central tendency of the forecast.
Upper Bound (Dashed Green): Represents the 75th percentile of historical outcomes, suggesting a bullish boundary for the projected move.
Lower Bound (Dashed Red): Represents the 25th percentile of historical outcomes, suggesting a bearish boundary for the projected move.
Match Labels: Small labels appearing on the historical price action indicate exactly where the most similar configurations were found in the past.
🔹 Configuration Strategy
Users can toggle various indicators to define what constitutes a "similar" market state. For example, if only "SMA Cross" and "Supertrend" are enabled, the script will look for historical periods where the trend relationship and SMA positioning were identical to the current bar, regardless of RSI or MACD values.
🔶 DETAILS
The script utilizes a state-encoding methodology to calculate distances between the current market environment and the past. Each enabled indicator is converted into a discrete value (e.g., 1 for bullish, -1 for bearish, 0 for neutral). These values form a vector for the current bar.
The algorithm then scans through the "Historical Lookback" period to find the "Top K" neighbors—the points in history where the vector distance to the current state is minimized. To ensure variety in the forecast, the script includes logic to prevent overlapping matches, ensuring that the selected historical points are distinct events.
Once the matches are identified, the script calculates the percentage returns for the specified "Forecast Horizon (N)" and projects those returns onto the current price to generate the visual forecast.
🔶 SETTINGS
🔹 Parameters
Top K Neighbors: The number of similar historical configurations to include in the forecast calculation.
Forecast Horizon (N): How many bars into the future the forecast should extend.
Historical Lookback: The maximum number of historical bars the script will search through to find matches.
🔹 Indicator Configuration
RSI/SMA/Supertrend/MACD/ADX/etc.: Toggle switches to include or exclude specific technical conditions from the similarity search.
RSI: Looks for similar overbought (>70) or oversold (<30) states.
SMA Cross: Looks for similar Fast/Slow SMA relationships.
Supertrend: Matches the current direction of the Supertrend.
MACD: Matches the relationship between the MACD Line and Signal Line.
🔹 Visibility & Style
Show Individual Match Paths: When enabled, draws the actual historical price paths from the match points directly on the current chart for visual comparison.
Median/Upper/Lower Colors: Customizes the colors of the forecast lines and the shaded confidence intervals.
Dashboard: Toggles the information panel showing the number of matches found and forecast confidence.
Indicator

Multi-Timeframe Strength Scanner [JOAT]Multi-Timeframe Strength Scanner
Introduction
The Multi-Timeframe Strength Scanner is an open-source indicator that combines higher timeframe trend analysis with current timeframe momentum indicators to create a comprehensive market strength assessment system. This mashup integrates ADX (Average Directional Index), Donchian Channels, VWAP (Volume Weighted Average Price), RSI divergence detection, and multi-timeframe EMA analysis into a unified scanner that identifies when trend strength aligns across multiple timeframes.
The indicator addresses a critical trading challenge: signals that look strong on one timeframe often fail because higher timeframes are moving in the opposite direction. By analyzing 15-minute, 1-hour, and 4-hour timeframes simultaneously while monitoring current timeframe momentum, this tool helps traders avoid counter-trend trades and identify high-probability setups where multiple timeframes align.
Chart showing multi-timeframe alignment dashboard and strength indicators on 15M timeframe
Why This Mashup Exists
This indicator combines five analytical frameworks that address different aspects of trend strength:
ADX Analysis: Measures trend strength regardless of direction using directional movement
Donchian Channels: Identifies breakouts and trend continuation using price extremes
VWAP: Shows institutional average price and volume-weighted fair value
RSI Divergence: Detects momentum exhaustion at current timeframe swing points
Multi-Timeframe EMAs: Confirms trend direction across 15M, 1H, and 4H timeframes
Each component serves a specific purpose: ADX quantifies trend strength, Donchian Channels identify breakout momentum, VWAP reveals institutional positioning, RSI divergences warn of reversals, and multi-timeframe EMAs ensure directional alignment. Together, they create a strength scanner that filters out weak, counter-trend setups and highlights only those with multi-timeframe confirmation.
The mashup is justified because these components use fundamentally different data (directional movement, price extremes, volume-weighted averages, momentum oscillators, moving averages) that respond to different market conditions. When they align, it indicates genuine trend strength rather than temporary momentum.
Core Components Explained
1. ADX Trend Strength System
ADX (Average Directional Index) measures trend strength on a scale of 0-100:
= ta.dmi(adxLength, adxLength)
// Trend strength classification
strongTrend = adx > adxThreshold // Default: 20
veryStrongTrend = adx > 40
extremeTrend = adx > 60
// Direction determination
bullishTrend = plus > minus
bearishTrend = minus > plus
ADX interpretation:
ADX < 20: Weak trend or ranging market - avoid trend-following strategies
ADX 20-40: Moderate trend strength - standard trend-following viable
ADX 40-60: Strong trend - high-probability trend continuation
ADX > 60: Extreme trend - potential exhaustion or very strong momentum
The indicator plots ADX as a line with color coding:
Green: Strong bullish trend (ADX > 20, +DI > -DI)
Red: Strong bearish trend (ADX > 20, -DI > +DI)
Gray: Weak trend or ranging (ADX < 20)
2. Donchian Channel Breakout System
Donchian Channels track the highest high and lowest low over a specified period:
donchianLength = 20 // Configurable
upperChannel = ta.highest(high, donchianLength)
lowerChannel = ta.lowest(low, donchianLength)
midChannel = (upperChannel + lowerChannel) / 2
Breakout signals:
Bullish Breakout: Close above upper channel = new 20-bar high
Bearish Breakout: Close below lower channel = new 20-bar low
Channel Position: Price near upper channel = bullish strength, near lower = bearish strength
The indicator uses Donchian breakouts to confirm trend strength. When price breaks out of the channel with strong ADX, it signals high-momentum trend continuation.
3. VWAP Analysis
VWAP (Volume Weighted Average Price) calculates the average price weighted by volume:
vwap = ta.vwap(hlc3)
// Position analysis
aboveVWAP = close > vwap // Bullish positioning
belowVWAP = close < vwap // Bearish positioning
// Distance from VWAP
vwapDistance = ((close - vwap) / vwap) * 100
VWAP significance:
Institutional traders use VWAP as benchmark for execution quality
Price above VWAP = buyers in control, institutions paying premium
Price below VWAP = sellers in control, institutions getting discount
Large distance from VWAP = potential mean reversion opportunity
VWAP acts as dynamic support/resistance level
The indicator plots VWAP with dynamic coloring based on price position and uses it for trend confirmation.
4. RSI Divergence Detection
The indicator detects divergences using pivot-based analysis:
rsi = ta.rsi(close, 14)
// Identify swing points
pivotHigh = ta.pivothigh(rsi, 5, 5)
pivotLow = ta.pivotlow(rsi, 5, 5)
// Compare current pivot with previous pivot
bullishDivergence = price makes lower low AND rsi makes higher low
bearishDivergence = price makes higher high AND rsi makes lower high
Divergence types:
Regular Bullish: Price LL, RSI HL - momentum improving, potential reversal up
Regular Bearish: Price HH, RSI LH - momentum deteriorating, potential reversal down
Hidden Bullish: Price HL, RSI LL - trend continuation signal in uptrend
Hidden Bearish: Price LH, RSI HH - trend continuation signal in downtrend
Divergences are marked with "DIV" labels and used to warn of potential trend exhaustion or continuation.
5. Multi-Timeframe EMA Analysis
The indicator analyzes trend direction across three higher timeframes:
// Request higher timeframe data
htf15mEMA = request.security(syminfo.tickerid, "15", ta.ema(close, 21))
htf1hEMA = request.security(syminfo.tickerid, "60", ta.ema(close, 21))
htf4hEMA = request.security(syminfo.tickerid, "240", ta.ema(close, 21))
// Determine trend direction
htf15mBullish = close > htf15mEMA
htf1hBullish = close > htf1hEMA
htf4hBullish = close > htf4hEMA
// Count aligned timeframes
bullishCount = (htf15mBullish ? 1 : 0) + (htf1hBullish ? 1 : 0) + (htf4hBullish ? 1 : 0)
bearishCount = (!htf15mBullish ? 1 : 0) + (!htf1hBullish ? 1 : 0) + (!htf4hBullish ? 1 : 0)
Alignment classification:
STRONG BULL: All 3 timeframes bullish (3/3 alignment)
BULL: 2 out of 3 timeframes bullish
MIXED: Timeframes conflicting (1-1-1 or 2-1 split)
BEAR: 2 out of 3 timeframes bearish
STRONG BEAR: All 3 timeframes bearish (3/3 alignment)
Example showing multi-timeframe alignment dashboard with all three timeframes bullish
Strength Scoring System
The indicator calculates a comprehensive strength score (0-100) by evaluating:
Strength Score Components:
- ADX Strength: Up to 25 points (ADX > 40 = 25, ADX > 20 = 15, ADX < 20 = 0)
- ADX Direction: Up to 15 points (+DI > -DI = 15 for bull, -DI > +DI = 15 for bear)
- Donchian Position: Up to 15 points (breakout = 15, near channel = 10, mid-channel = 5)
- VWAP Position: Up to 15 points (above VWAP = 15 for bull, below = 15 for bear)
- MTF Alignment: Up to 20 points (3/3 = 20, 2/3 = 13, 1/3 = 7)
- RSI Level: Up to 10 points (healthy range = 10, extreme = 5, divergence = -5)
Score interpretation:
80-100: Extremely strong trend - high-probability continuation
60-79: Strong trend - favorable for trend-following
40-59: Moderate trend - selective trend trades
20-39: Weak trend - caution, potential reversal
0-19: Very weak or counter-trend - avoid trend-following
The dashboard displays the strength score with color coding and individual component breakdown.
Visual Elements
ADX Line: Main trend strength indicator with dynamic coloring
+DI/-DI Lines: Directional movement indicators
ADX Threshold: Horizontal line at 20 (configurable)
Donchian Channels: Upper, middle, and lower channel lines
VWAP Line: Volume-weighted average price with dynamic coloring
Divergence Labels: "DIV" markers at RSI divergence points
Strength Bars: Background coloring based on strength score
Dashboard: Comprehensive table showing:
- Current strength score
- ADX value and direction
- Donchian position
- VWAP position
- MTF alignment (15M, 1H, 4H status)
- RSI level
- Overall trend classification
Chart showing strength dashboard with component breakdown and visual indicators
How Components Work Together
The mashup creates a layered strength analysis:
Layer 1 - Trend Strength: ADX quantifies how strong the trend is
Layer 2 - Breakout Momentum: Donchian Channels identify momentum surges
Layer 3 - Institutional Positioning: VWAP shows where smart money is positioned
Layer 4 - Momentum Health: RSI divergences warn of exhaustion
Layer 5 - Multi-Timeframe Confirmation: HTF EMAs ensure directional alignment
Layer 6 - Synthesis: Strength score combines all factors into actionable metric
Example scenario: ADX is 45 (Layer 1), price breaks above Donchian upper channel (Layer 2), trading above VWAP (Layer 3), no RSI divergence (Layer 4), and all three higher timeframes are bullish (Layer 5). The strength score reaches 90 (Layer 6), signaling extremely strong bullish trend with high continuation probability.
Input Parameters
ADX Settings:
ADX Length: Period for ADX calculation (default: 14)
ADX Threshold: Minimum ADX for strong trend (default: 20)
Show +DI/-DI: Toggle directional indicators (default: enabled)
Donchian Settings:
Donchian Length: Period for channel calculation (default: 20)
Show Channels: Toggle channel display (default: enabled)
Breakout Sensitivity: Threshold for breakout signals (default: close beyond channel)
VWAP Settings:
Show VWAP: Toggle VWAP line (default: enabled)
VWAP Reset: Session, Week, Month, or Never (default: Daily)
Distance Alert: Alert when price moves X% from VWAP (default: 2%)
RSI Settings:
RSI Length: Period for RSI calculation (default: 14)
Show Divergences: Toggle divergence markers (default: enabled)
Pivot Lookback: Bars for pivot detection (default: 5)
Multi-Timeframe Settings:
HTF 1: First higher timeframe (default: 15 minutes)
HTF 2: Second higher timeframe (default: 1 hour)
HTF 3: Third higher timeframe (default: 4 hours)
EMA Length: Period for HTF EMAs (default: 21)
Min Alignment: Minimum timeframes aligned for signal (default: 2/3)
Display Options:
Show Dashboard: Toggle strength score table (default: enabled)
Show Strength Bars: Toggle background coloring (default: enabled)
Dashboard Position: Top-right, top-left, bottom-right, bottom-left
Color Theme: Choose between multiple color schemes
How to Use This Indicator
Step 1: Check Multi-Timeframe Alignment
Review the dashboard MTF section. Look for 2/3 or 3/3 alignment in your intended trade direction. Avoid trades when timeframes are mixed or opposing.
Step 2: Verify ADX Strength
Ensure ADX is above 20 (preferably above 30) for trend-following trades. ADX below 20 suggests ranging market where trend strategies underperform.
Step 3: Confirm Donchian Position
Check if price is near or breaking through Donchian channels. Breakouts with strong ADX signal high-momentum moves.
Step 4: Assess VWAP Position
For long trades, prefer price above VWAP. For short trades, prefer price below VWAP. Large distances from VWAP may indicate overextension.
Step 5: Check for Divergences
Look for RSI divergence warnings. If divergence appears with extreme strength score, consider taking profits or tightening stops.
Step 6: Review Strength Score
Use the overall strength score as final filter. Scores above 70 indicate strong trend conditions favorable for trend-following. Scores below 40 suggest caution.
Best Practices
Use on 5-minute to 1-hour timeframes for optimal multi-timeframe analysis
Wait for 2/3 or 3/3 MTF alignment before entering trend trades
Strong ADX (> 30) with MTF alignment produces highest-probability setups
Donchian breakouts with ADX > 25 often lead to sustained moves
VWAP acts as dynamic support/resistance - use for entry refinement
RSI divergences in strong trends often lead to pullbacks, not reversals
Strength score above 80 suggests strong trend continuation potential
Avoid trading when strength score is below 40 unless counter-trend trading
Combine with price action and key levels for precise entries
Indicator Limitations
ADX is lagging indicator - trend strength confirmed after move has started
Donchian breakouts can produce false signals in choppy markets
VWAP resets daily, may not reflect longer-term institutional positioning
Multi-timeframe analysis requires sufficient data history
Strength score is mathematical calculation, not prediction of future movement
Strong trends can reverse suddenly despite high strength scores
Divergences can persist for extended periods in strong trends
Higher timeframe data may repaint on lower timeframes
Requires understanding of trend analysis concepts for effective use
Technical Implementation
Built with Pine Script v6 using:
DMI/ADX calculation with directional indicators
Donchian Channel calculation with breakout detection
VWAP calculation with session reset options
Pivot-based RSI divergence detection
request.security() for multi-timeframe EMA analysis
Comprehensive strength scoring algorithm
Dynamic dashboard with component breakdown
Background coloring based on strength levels
The code is fully open-source and can be modified to adjust timeframes, thresholds, and scoring weights.
Originality Statement
This indicator is original in its multi-timeframe strength integration approach. While individual components (ADX, Donchian Channels, VWAP, RSI divergence, EMAs) are established tools, this mashup is justified because:
It combines trend strength measurement with multi-timeframe directional confirmation
The strength scoring system quantifies trend quality across multiple dimensions
Multi-timeframe analysis prevents counter-trend trades on lower timeframes
Integration of volume-weighted analysis (VWAP) with momentum indicators
Divergence detection provides early warning within trend strength context
Comprehensive dashboard presents complex multi-timeframe data clearly
Each component contributes unique information: ADX measures trend strength, Donchian identifies breakout momentum, VWAP shows institutional positioning, RSI divergences warn of exhaustion, and MTF EMAs ensure alignment. The mashup's value lies in filtering out weak, counter-trend setups and highlighting only those with genuine multi-timeframe strength confirmation.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Trend strength indicators are lagging tools that confirm trends after they've begun. Strong trends can reverse suddenly, and high strength scores do not guarantee trend continuation. Multi-timeframe analysis does not eliminate the risk of losses.
The strength score is a mathematical calculation based on current market data, not a prediction of future price movement. Past trend strength does not guarantee future performance. Market conditions change, and trends that appear strong can reverse without warning.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Indicator

Harmonic Confluence Wave Detector [JOAT]Harmonic Confluence Wave Detector
Introduction
The Harmonic Confluence Wave Detector is an open-source oscillator-based indicator that combines WaveTrend, Money Flow Index (MFI), RSI, MACD, and Stochastic RSI into a unified momentum analysis system. This mashup creates a multi-layered oscillator framework designed to identify momentum shifts, overbought/oversold conditions, and divergence patterns across multiple timeframes and calculation methods.
The indicator addresses a common trading challenge: single oscillators can give conflicting or premature signals. By synthesizing five different momentum calculations that use distinct mathematical approaches, this tool provides confluence-based signals that occur when multiple momentum indicators align, significantly reducing false signals compared to using any single oscillator alone.
Chart showing WaveTrend oscillator, MACD histogram, and multi-signal system on 1H timeframe
Why This Mashup Exists
This indicator combines five oscillators that complement each other through different calculation methodologies:
WaveTrend: Smoothed momentum oscillator based on price deviation from exponential moving average
Money Flow Index (MFI): Volume-weighted RSI showing buying/selling pressure
RSI: Classic momentum oscillator measuring speed and magnitude of price changes
MACD: Trend-following momentum indicator showing relationship between two EMAs
Stochastic RSI: Stochastic calculation applied to RSI for enhanced sensitivity
Each oscillator has unique strengths: WaveTrend excels at identifying wave-like momentum cycles, MFI incorporates volume for institutional flow analysis, RSI provides reliable overbought/oversold readings, MACD shows trend strength and direction, and Stochastic RSI catches early momentum shifts. Together, they create a comprehensive momentum picture that no single oscillator can provide.
The mashup is justified because these oscillators use fundamentally different calculations (price-based, volume-weighted, moving average convergence, stochastic) that respond to different market conditions. When they align, it indicates genuine momentum shift rather than noise.
Core Components Explained
1. WaveTrend Oscillator (Primary Signal Generator)
WaveTrend is the primary oscillator, calculated using this methodology:
// Calculate exponential average of HLC3
esa = ta.ema(hlc3, channelLength)
// Calculate deviation
d = ta.ema(abs(hlc3 - esa), channelLength)
// Calculate channel index
ci = (hlc3 - esa) / (0.015 * d)
// Apply smoothing to create WaveTrend 1
wt1 = ta.ema(ci, averageLength)
// Create WaveTrend 2 as simple moving average of WT1
wt2 = ta.sma(wt1, 4)
WaveTrend oscillates around zero, with:
Values above +60: Overbought zone
Values above +80: Extreme overbought
Values below -60: Oversold zone
Values below -80: Extreme oversold
Crossovers between WT1 and WT2: Momentum shift signals
The indicator plots WT1 and WT2 as lines with dynamic coloring based on momentum direction and strength.
2. Money Flow Index (MFI) - Volume-Weighted Momentum
MFI calculation incorporates both price and volume:
// Calculate typical price
typicalPrice = (high + low + close) / 3
// Calculate raw money flow
rawMoneyFlow = typicalPrice * volume
// Separate positive and negative money flow
positiveFlow = close > close ? rawMoneyFlow : 0
negativeFlow = close < close ? rawMoneyFlow : 0
// Sum over MFI period
positiveSum = sum(positiveFlow, mfiLength)
negativeSum = sum(negativeFlow, mfiLength)
// Calculate MFI
mfi = 100 - (100 / (1 + positiveSum / negativeSum))
MFI ranges from 0-100, with readings above 80 indicating buying pressure and below 20 indicating selling pressure. The indicator plots MFI as a line and uses it for confluence scoring.
3. RSI - Classic Momentum Oscillator
Standard RSI calculation over 14 periods (configurable):
RSI > 70: Overbought
RSI < 30: Oversold
RSI > 65 with other bearish signals: Potential reversal
RSI < 35 with other bullish signals: Potential reversal
RSI provides reliable baseline momentum readings and is used for divergence detection.
4. MACD - Trend Momentum Indicator
MACD uses standard 12/26/9 settings:
= ta.macd(close, 12, 26, 9)
The indicator displays MACD histogram with enhanced width (linewidth 8) for visibility. Histogram color changes based on:
Green: Positive and increasing (bullish momentum)
Light green: Positive but decreasing (weakening bulls)
Red: Negative and decreasing (bearish momentum)
Light red: Negative but increasing (weakening bears)
MACD histogram provides visual confirmation of momentum strength and direction.
5. Stochastic RSI - Enhanced Sensitivity
Stochastic calculation applied to RSI values:
stochRSI = ta.stoch(rsi, rsi, rsi, 14)
Stochastic RSI oscillates between 0-100 and is more sensitive than regular RSI, catching momentum shifts earlier. The indicator plots both K and D lines for crossover analysis.
Example showing all oscillators with divergence markers and signal labels
Multi-Signal System
The indicator generates six tiers of signals based on confluence strength:
BUY Signals:
BUY: WT1 crosses above WT2 in oversold zone (WT1 < -40)
STRONG BUY: BUY + volume above average + MACD histogram positive
MEGA BUY: STRONG BUY + WT1 < -60 (extreme oversold) + RSI < 35
ULTRA BUY: MEGA BUY + MFI < 30 + Stoch RSI oversold + bullish divergence
SELL Signals:
SELL: WT1 crosses below WT2 in overbought zone (WT1 > 40)
STRONG SELL: SELL + volume above average + MACD histogram negative
MEGA SELL: STRONG SELL + WT1 > 60 (extreme overbought) + RSI > 65
ULTRA SELL: MEGA SELL + MFI > 70 + Stoch RSI overbought + bearish divergence
Signal labels appear on chart with size proportional to signal strength (tiny for BUY/SELL, normal for ULTRA).
Divergence Detection System
The indicator detects divergences across multiple oscillators:
RSI Divergence:
Bullish: Price makes lower low, RSI makes higher low
Bearish: Price makes higher high, RSI makes lower high
WaveTrend Divergence:
Bullish: Price makes lower low, WT1 makes higher low
Bearish: Price makes higher high, WT1 makes lower high
MACD Divergence:
Bullish: Price makes lower low, MACD histogram makes higher low
Bearish: Price makes higher high, MACD histogram makes lower high
Divergences are marked with bright orange/yellow "D" labels (color.rgb(255, 200, 0)) with black text for maximum visibility. When multiple oscillators show divergence simultaneously, it signals strong momentum exhaustion and potential reversal.
Confluence Scoring System
The indicator calculates a real-time confluence score (0-100) by evaluating:
Confluence Components:
- WaveTrend Position: Up to 25 points (extreme zones add more weight)
- WaveTrend Momentum: Up to 15 points (WT1-WT2 relationship)
- RSI Level: Up to 15 points (extreme readings add weight)
- MFI Level: Up to 15 points (volume pressure confirmation)
- MACD Histogram: Up to 15 points (trend momentum)
- Stochastic RSI: Up to 10 points (early momentum detection)
- Divergence Presence: Up to 5 points (any divergence detected)
The dashboard displays the current confluence score with color coding:
Green (80-100): Strong bullish confluence
Light green (60-79): Moderate bullish confluence
Yellow (40-59): Neutral/mixed signals
Light red (20-39): Moderate bearish confluence
Red (0-19): Strong bearish confluence
Visual Elements
WaveTrend Lines: WT1 (blue) and WT2 (orange) with dynamic coloring
Overbought/Oversold Zones: Horizontal lines at +60/-60 and +80/-80
Zero Line: Reference line at 0
MACD Histogram: Large bars (linewidth 8) with gradient coloring
MFI Line: Purple line showing volume-weighted momentum
RSI Line: Green line with overbought/oversold reference levels
Stochastic RSI: K (blue) and D (red) lines
Signal Labels: BUY/SELL markers with size based on signal strength
Divergence Labels: Bright orange "D" markers at divergence points
Dashboard: Top-right table showing confluence score and oscillator readings
Chart demonstrating signal hierarchy from BUY to ULTRA BUY with divergence markers
How Components Work Together
The mashup creates a layered momentum analysis:
Layer 1 - Primary Momentum: WaveTrend identifies wave cycles and crossover signals
Layer 2 - Volume Confirmation: MFI validates moves with volume-weighted pressure
Layer 3 - Baseline Momentum: RSI provides reliable overbought/oversold context
Layer 4 - Trend Strength: MACD histogram shows underlying trend momentum
Layer 5 - Early Detection: Stochastic RSI catches momentum shifts before other oscillators
Layer 6 - Exhaustion Signals: Divergences across oscillators indicate momentum exhaustion
Example scenario: WT1 crosses above WT2 in oversold zone (Layer 1), MFI shows buying pressure increasing (Layer 2), RSI is below 35 (Layer 3), MACD histogram turns positive (Layer 4), Stochastic RSI crosses up (Layer 5), and RSI shows bullish divergence (Layer 6). This generates an ULTRA BUY signal with 90+ confluence score.
Input Parameters
WaveTrend Settings:
Channel Length: Period for EMA calculation (default: 10)
Average Length: Smoothing period for WT1 (default: 21)
Overbought Level: Upper threshold (default: 60)
Oversold Level: Lower threshold (default: -60)
Extreme OB Level: Extreme upper threshold (default: 80)
Extreme OS Level: Extreme lower threshold (default: -80)
Oscillator Settings:
RSI Length: Period for RSI calculation (default: 14)
MFI Length: Period for MFI calculation (default: 14)
MACD Fast: Fast EMA period (default: 12)
MACD Slow: Slow EMA period (default: 26)
MACD Signal: Signal line period (default: 9)
Stochastic RSI Length: Period for Stoch RSI (default: 14)
Signal Settings:
Show Signals: Toggle signal labels (default: enabled)
Show Divergences: Toggle divergence markers (default: enabled)
Volume Confirmation: Require volume for STRONG signals (default: enabled)
Min Confluence for Signals: Minimum score to display signals (default: 60)
Display Options:
Show Dashboard: Toggle confluence score table (default: enabled)
Show MACD Histogram: Toggle MACD display (default: enabled)
Show MFI Line: Toggle MFI display (default: enabled)
Show RSI Line: Toggle RSI display (default: enabled)
Show Stochastic RSI: Toggle Stoch RSI display (default: enabled)
Color Theme: Choose between multiple color schemes
How to Use This Indicator
Step 1: Monitor WaveTrend Oscillator
Watch for WT1/WT2 crossovers in extreme zones. Crossovers in oversold zone (< -60) suggest bullish reversals, crossovers in overbought zone (> 60) suggest bearish reversals.
Step 2: Check Confluence Score
Review the dashboard. Scores above 70 indicate strong momentum alignment. Higher scores generally produce more reliable signals.
Step 3: Identify Signal Strength
Pay attention to signal labels. ULTRA signals have highest probability but occur less frequently. STRONG signals offer good balance between frequency and reliability.
Step 4: Look for Divergences
Divergence markers indicate momentum exhaustion. When divergences appear with extreme oscillator readings, reversal probability increases significantly.
Step 5: Confirm with MACD Histogram
Check MACD histogram direction and strength. Large histogram bars confirm strong momentum, shrinking bars suggest momentum loss.
Step 6: Validate with Volume (MFI)
Ensure MFI supports the move. Bullish signals with rising MFI are stronger, bearish signals with falling MFI are stronger.
Best Practices
Use on 15-minute to 4-hour timeframes for optimal signal quality
Wait for STRONG or MEGA signals rather than acting on every BUY/SELL
Divergences work best when combined with extreme oscillator readings
Multiple oscillator divergences (RSI + WT + MACD) are most reliable
Use confluence score as filter - avoid signals below 60 score
MACD histogram size indicates momentum strength - larger bars = stronger moves
MFI divergence from price often precedes reversals (volume leads price)
Combine with price action and support/resistance for best results
Indicator Limitations
Oscillators can remain overbought/oversold longer than expected in strong trends
Divergences can persist for multiple bars before reversal occurs
Multiple signals in choppy markets can lead to whipsaws
Confluence score is mathematical calculation, not prediction of future movement
ULTRA signals are rare - waiting only for these may miss opportunities
Volume data quality varies across markets and can affect MFI reliability
Stochastic RSI is very sensitive and can generate premature signals
No indicator combination eliminates false signals entirely
Requires understanding of oscillator behavior for effective interpretation
Technical Implementation
Built with Pine Script v6 using:
Custom WaveTrend calculation with dual-line system
Proper MFI formula with volume-weighted money flow
Multi-oscillator divergence detection with pivot analysis
Confluence scoring algorithm with weighted components
Enhanced MACD histogram visualization (linewidth 8)
Dynamic color gradients for momentum visualization
Anti-overlap logic for signal labels
Real-time dashboard with oscillator readings
The code is fully open-source and can be modified to adjust oscillator weights, signal thresholds, and visual preferences.
Originality Statement
This indicator is original in its multi-oscillator integration approach. While individual components (WaveTrend, MFI, RSI, MACD, Stochastic RSI) are established oscillators, this mashup is justified because:
It combines five oscillators using fundamentally different calculation methods
The tiered signal system (BUY to ULTRA) provides graduated confidence levels
Multi-oscillator divergence detection catches momentum exhaustion across different timeframes
Confluence scoring quantifies momentum alignment across all oscillators
Volume integration through MFI adds institutional flow perspective
Enhanced visualization (large MACD histogram, bright divergence markers) improves usability
Each oscillator contributes unique information: WaveTrend provides wave-cycle analysis, MFI incorporates volume, RSI offers reliable baseline, MACD shows trend strength, and Stochastic RSI catches early shifts. The mashup's value lies in identifying when these different momentum calculations align, significantly reducing false signals compared to any single oscillator.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Oscillator-based indicators are lagging tools that analyze past price data. They do not predict future price movement. Overbought conditions can persist in strong uptrends, and oversold conditions can persist in strong downtrends. Divergences can continue for extended periods before reversals occur.
The confluence score is a mathematical calculation, not a guarantee of trade success. High confluence scores do not ensure profitable trades. Past signal performance does not guarantee future results. Market conditions change, and oscillator behavior varies across different market regimes.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Liquidity Confluence TerminalZero-Lag Liquidity Confluence System is a multi-timeframe trend alignment and execution planning indicator designed to highlight high-probability trade opportunities when higher timeframe structure agrees. The script evaluates Daily, Weekly, and Monthly candle bias to determine full directional confluence, only allowing signals when all three timeframes are aligned. A zero-lag EMA model provides responsive trend detection while minimizing delay, acting as the primary trigger mechanism. In addition, the system dynamically identifies volume-backed liquidity breakouts to establish adaptive supply and demand levels, which are then used for intelligent stop placement. When confluence and trigger conditions align, the indicator automatically generates a structured trade plan, including entry, stop loss, and take profit levels based on a configurable risk-to-reward ratio. A real-time dashboard displays higher timeframe bias, while visual glow and background cues emphasize alignment states. This tool is built for traders who prioritize structure, confirmation, and disciplined risk management over reactive signal chasing. Indicator

Precision Pivot Confluence Engine [JOAT]Precision Pivot Confluence Engine
Introduction
The Precision Pivot Confluence Engine is an open-source technical indicator that combines Central Pivot Range (CPR) analysis with Smart Money Concepts (SMC), multi-oscillator divergence detection, and institutional order flow patterns. This mashup integrates multiple proven methodologies into a unified confluence system designed to identify high-probability trading zones where institutional and retail liquidity intersect.
The indicator is built for traders who understand that no single signal provides consistent edge, but multiple confirming factors working together can significantly improve trade selection. By synthesizing CPR levels, Fair Value Gaps, Order Blocks, liquidity sweeps, and divergence patterns, this tool helps identify structural market inflection points.
Chart showing CPR levels, FVG zones, Order Blocks, and divergence signals on 4H timeframe
Why This Mashup Exists
This indicator combines five distinct analytical frameworks that complement each other:
CPR Analysis: Identifies key pivot levels where institutional algorithms and retail traders make decisions
Smart Money Concepts: Tracks Fair Value Gaps, Order Blocks, and Breaker Blocks showing institutional positioning
Divergence Detection: Uses RSI, MACD, and Stochastic RSI to identify momentum exhaustion
Liquidity Analysis: Detects liquidity sweeps where stop hunts occur before reversals
Volume Confirmation: Validates moves with volume analysis and delta calculations
Each component addresses a different aspect of market structure. CPR provides static reference levels, SMC reveals dynamic institutional behavior, divergences show momentum shifts, liquidity sweeps identify stop hunts, and volume confirms genuine moves versus noise. Together, they create a multi-dimensional view of market conditions.
Core Components Explained
1. Enhanced CPR System
The Central Pivot Range system calculates Daily and Weekly pivot levels using the formula:
Pivot = (High + Low + Close) / 3
BC (Bottom Central) = (High + Low) / 2
TC (Top Central) = (Pivot - BC) + Pivot
The indicator analyzes CPR width to determine market regime:
Narrow CPR (width < 0.5%): Indicates compression and potential breakout conditions
Wide CPR (width > 1.5%): Suggests ranging market with less directional conviction
Price position relative to CPR: Above both Daily and Weekly pivots = bullish structure, below = bearish structure
CPR levels act as magnetic zones where price tends to react. The indicator tracks distance from pivots to identify overextension and mean reversion opportunities.
2. Smart Money Concepts Integration
Fair Value Gaps (FVG):
Bullish FVG occurs when current low > high from 2 bars ago, leaving an unfilled gap
Bearish FVG occurs when current high < low from 2 bars ago
The indicator calculates FVG size as percentage of price and filters for significant gaps (> 0.3%) to avoid noise. FVGs represent inefficient price delivery where institutions moved price quickly, often returning to fill these gaps later.
Order Blocks (OB):
Bullish OB: Two consecutive bearish candles followed by strong bullish candle with high volume
Bearish OB: Two consecutive bullish candles followed by strong bearish candle with high volume
Order Blocks mark the last opposite-direction move before a strong impulse, indicating where institutions accumulated or distributed positions.
Breaker Blocks:
Failed Order Blocks that get violated become Breaker Blocks, signaling potential trend reversal. The indicator tracks the last bullish and bearish OB levels and alerts when price breaks through them.
Liquidity Sweeps:
The indicator identifies when price briefly exceeds recent highs/lows (20-bar lookback) but closes back inside the range. These "stop hunts" often precede reversals as institutions trigger retail stops before moving price in the intended direction.
Example showing FVG zones, Order Blocks, and liquidity sweep markers
3. Multi-Oscillator Divergence System
The indicator simultaneously tracks divergences across three oscillators:
RSI Divergence:
Bullish: Price makes lower low, RSI makes higher low (momentum improving despite price weakness)
Bearish: Price makes higher high, RSI makes lower high (momentum deteriorating despite price strength)
MACD Divergence:
Tracks histogram divergences using the same pivot-based logic
Stochastic RSI Divergence:
More sensitive than RSI, catches early momentum shifts
The indicator uses a 5-bar pivot lookback to identify swing highs/lows and compares current pivots with previous pivots to detect divergences. When multiple oscillators show divergence simultaneously, it signals strong momentum exhaustion.
4. Volume Analysis Engine
Volume MA Comparison: Identifies high volume (> 1.5x MA) and climax volume (> 3x MA)
Volume Delta: Cumulative difference between buying volume (green candles) and selling volume (red candles)
Delta Trend: Compares current delta to 20-period MA to identify institutional accumulation or distribution
Volume Confirmation: Validates bullish moves with high volume + rising delta, bearish moves with high volume + falling delta
5. Confluence Scoring System
The indicator calculates a real-time confluence score (0-100) by weighting each component:
Confluence Score Components:
- CPR Position: Up to 15 points (bullish above pivots, bearish below)
- SMC Signals: Up to 10 points (FVG + OB + Breaker + Liquidity Sweeps)
- Divergence: Up to 10 points (single oscillator = 5, multiple = 10)
- Volume: Up to 10 points (confirmed volume = 7, climax = additional 3)
- Trend Alignment: Up to 5 points (price vs key MAs)
Scores above 70 indicate strong confluence for potential trades. The dashboard displays individual component scores for transparency.
Visual Elements
CPR Lines: Daily Pivot (yellow), TC/BC (yellow transparent), Weekly Pivot (yellow circles)
FVG Boxes: Green boxes for bullish FVGs, red boxes for bearish FVGs
Order Block Boxes: Solid green/red boxes marking institutional zones
Breaker Block Labels: "BB" markers when Order Blocks fail
Liquidity Sweep Labels: "LIQ" and "STRONG LIQ" positioned at sweep tips
Divergence Labels: "D" markers at divergence pivot points
Dashboard: Top-right table showing confluence score and component breakdown
How Components Work Together
The mashup creates a layered analysis approach:
Layer 1 - Structure: CPR levels define key zones where reactions are likely
Layer 2 - Institutional Behavior: SMC concepts show where smart money is positioned
Layer 3 - Momentum: Divergences indicate when current trend is losing steam
Layer 4 - Confirmation: Volume validates whether moves are genuine or false
Layer 5 - Synthesis: Confluence score combines all factors into actionable signal
Example scenario: Price approaches Daily Pivot (Layer 1) where a bullish Order Block exists (Layer 2), RSI shows bullish divergence (Layer 3), and volume delta is rising (Layer 4). The confluence score jumps to 85 (Layer 5), signaling high-probability long setup.
Input Parameters
CPR Settings:
Show Daily CPR: Toggle daily pivot levels (default: enabled)
Show Weekly CPR: Toggle weekly pivot levels (default: enabled)
CPR Width Threshold: Defines narrow vs wide CPR (default: 0.5% / 1.5%)
Smart Money Concepts:
Show FVG: Display Fair Value Gap boxes (default: enabled)
Show Order Blocks: Display Order Block boxes (default: enabled)
Show Breaker Blocks: Display Breaker Block labels (default: enabled)
Show Liquidity Sweeps: Display liquidity sweep markers (default: enabled)
FVG Min Size: Minimum gap size to display (default: 0.3%)
Lookback Bars: Bars to scan for liquidity levels (default: 20)
Divergence Detection:
Show Divergences: Toggle divergence labels (default: enabled)
RSI Length: Period for RSI calculation (default: 14)
Pivot Lookback: Bars for pivot detection (default: 5)
Volume Analysis:
Show Volume Analysis: Toggle volume indicators (default: enabled)
Volume MA Length: Period for volume moving average (default: 20)
High Volume Multiplier: Threshold for high volume (default: 1.5x)
Climax Volume Multiplier: Threshold for climax volume (default: 3.0x)
Display Options:
Show Dashboard: Toggle confluence score table (default: enabled)
Max FVG Boxes: Limit displayed FVG boxes (default: 20)
Max OB Boxes: Limit displayed Order Block boxes (default: 15)
Label Spacing: Minimum bars between labels to prevent overlap (default: 10-15)
How to Use This Indicator
Step 1: Identify Market Structure
Check CPR position and width. Narrow CPR suggests breakout potential, wide CPR suggests range-bound conditions.
Step 2: Look for SMC Confluence
Identify FVGs, Order Blocks, and recent liquidity sweeps. These zones often provide high-probability entry areas.
Step 3: Check for Divergences
Look for divergence labels at swing points. Multiple oscillator divergences increase signal strength.
Step 4: Confirm with Volume
Ensure volume supports the move. Rising delta + high volume confirms bullish moves, falling delta + high volume confirms bearish moves.
Step 5: Review Confluence Score
Check the dashboard. Scores above 70 indicate strong confluence. Individual component scores show which factors are contributing.
Step 6: Wait for Price Action Confirmation
The indicator identifies zones and conditions, but wait for price action confirmation (candlestick patterns, breakouts, etc.) before entering trades.
Best Practices
Use on 15-minute to 4-hour timeframes for optimal signal quality
Combine with proper risk management - indicator shows zones, not exact entries
Pay attention to confluence score - higher scores generally indicate better setups
Watch for FVG fills and Order Block retests as entry triggers
Liquidity sweeps followed by reversal often provide excellent risk:reward entries
Divergences work best when combined with SMC zones or CPR levels
Volume confirmation is critical - avoid low-volume signals
Indicator Limitations
Does not provide exact entry/exit signals - requires trader interpretation
Can generate false signals in choppy, low-volume conditions
Multiple visual elements may clutter chart - adjust display settings as needed
Divergences can persist longer than expected - price can continue trending despite divergence
FVGs and Order Blocks don't always get retested - not every zone provides entry opportunity
Confluence score is a guide, not a guarantee - high scores can still result in losing trades
Requires understanding of SMC concepts and CPR analysis for effective use
Performance varies across different markets and timeframes
Technical Implementation
Built with Pine Script v6 using:
Custom CPR calculations with width analysis
Box and label management with anti-overlap logic
Persistent variables for tracking Order Blocks and Breaker Blocks
Pivot-based divergence detection across multiple oscillators
Volume delta calculation with cumulative tracking
Real-time confluence scoring system
Dynamic dashboard with component breakdown
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its integration approach. While individual components (CPR, FVG, Order Blocks, RSI divergence, volume analysis) are established concepts, this mashup is justified because:
It synthesizes five distinct methodologies that address different market aspects
The confluence scoring system provides quantitative measurement of setup quality
Anti-overlap logic and timeframe-adaptive filtering reduce visual clutter
Component integration creates layered analysis not available in individual indicators
The combination helps identify zones where multiple institutional and technical factors align
Each component contributes unique information: CPR provides static structure, SMC reveals dynamic institutional behavior, divergences show momentum shifts, liquidity analysis identifies stop hunts, and volume confirms genuine moves. The mashup's value lies in presenting these complementary perspectives simultaneously with a unified scoring system.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Technical indicators are tools for analysis, not crystal balls. Past performance and backtested results do not guarantee future performance. Market conditions change, and strategies that worked historically may not work in the future.
The confluence score is a mathematical calculation based on current market data, not a prediction of future price movement. High confluence scores do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Volume Weighted Trend [QuantAlgo]🟢 Overview
The Volume Weighted Trend indicator identifies statistically significant trend changes by combining volume-weighted price analysis with volatility-based breakout bands. It calculates a Volume Weighted Moving Average (VWMA) as the central trend baseline, then creates dynamic upper and lower bands using Average True Range (ATR) multipliers to define normal volatility boundaries. When price breaks above the upper band or below the lower band, it signals a confirmed trend change, helping traders and investors identify directional shifts driven by both volume-weighted momentum and volatility expansion across different timeframes and markets.
🟢 How It Works
The indicator's core methodology lies in its dual-layer approach combining volume weighting with volatility filtering, where trend changes require both price direction and statistical significance:
vwma_basis = ta.vwma(close, vwma_length)
atr_value = ta.atr(vwma_length)
upper_band = vwma_basis + atr_value * atr_multiplier
lower_band = vwma_basis - atr_value * atr_multiplier
First, the script calculates the Volume Weighted Moving Average to establish a trend baseline that gives greater weight to periods with higher trading volume, ensuring the trend line reflects significant participation and genuine market conviction rather than low-volume noise.
Then, it measures the Average True Range over the same period to quantify current market volatility:
atr_value = ta.atr(vwma_length)
Next, dynamic volatility bands are constructed by adding and subtracting ATR-based buffers from the VWMA baseline, creating adaptive boundaries that expand during volatile conditions and contract during calm periods:
upper_band = vwma_basis + atr_value * atr_multiplier
lower_band = vwma_basis - atr_value * atr_multiplier
The trend state is then determined through breakout logic that requires price to exceed these volatility-adjusted boundaries:
if close > upper_band
trend_direction := 1
else if close < lower_band
trend_direction := -1
Finally, trend change detection identifies transitions between bullish and bearish states:
trend_turned_bullish = trend_direction == 1 and trend_direction != 1
trend_turned_bearish = trend_direction == -1 and trend_direction != -1
This creates a robust trend-following system that only signals directional changes when price makes statistically significant moves beyond normal volatility bounds, with volume weighting ensuring the trend reflects meaningful market activity rather than thin-volume spikes.
🟢 Signal Interpretation
▶ Bullish Trend (Price Above Upper Band): When price closes above the upper volatility band, the indicator switches to bullish mode with green/bullish coloring throughout all visual elements = Confirmed uptrend signal for trend-following long positions. The trend remains bullish until price breaks below the lower band, allowing traders to stay positioned during sustained upward momentum without premature exits on minor pullbacks within the band range.
▶ Bearish Trend (Price Below Lower Band): When price closes below the lower volatility band, the indicator switches to bearish mode with red/bearish coloring throughout all visual elements = Confirmed downtrend signal for trend-following short positions or long exit signals. The trend remains bearish until price breaks above the upper band, enabling traders to maintain directional bias through corrective moves that stay within the band boundaries.
▶ Neutral Zone (Price Between Bands): When price trades between the upper and lower volatility bands, the indicator maintains its previous trend direction = Continuation of existing trend during consolidation or normal volatility retracements. This design prevents whipsaws during sideways action by requiring price to make a significant move beyond opposite-side bands to trigger trend reversal, rather than flip-flopping on minor crosses of the VWMA center line.
🟢 Features
▶ Preconfigured Presets: Three optimized parameter sets for different trading approaches and timeframes. "Default" provides balanced trend detection for swing trading on 4-hour and daily charts, filtering noise effectively while capturing meaningful trend changes. "Fast Response" delivers quicker trend signals for intraday trading on 5-minute to 1-hour charts, with tighter bands triggering earlier on breakouts for active traders who can monitor positions closely. "Smooth Trend" focuses on major trend changes for position trading on daily to weekly timeframes, with wider bands filtering out minor fluctuations to identify only primary directional shifts.
▶ Built-in Alerts: Three alert conditions enable automated monitoring of trend changes without constant chart watching. "Bullish Trend Signal" triggers when the indicator switches to bullish mode after price breaks above the upper band, alerting for potential long entries. "Bearish Trend Signal" activates when the indicator switches to bearish mode after price breaks below the lower band, signaling potential short entries or long exits. "Trend Direction Changed" provides a combined alert for any trend transition regardless of direction, allowing traders to monitor both bullish and bearish opportunities with a single alert setup.
▶ Visual Customization: Six color presets (Classic, Aqua, Cosmic, Cyber, Neon, plus Custom) accommodate different chart backgrounds and aesthetic preferences, with coordinated bullish and bearish color schemes applied across all indicator elements. Optional neon glow effect creates layered visual emphasis around the central VWMA line with three overlapping plots at different transparencies, making the trend line more prominent and easier to track (ideal for charts with multiple indicators where visual distinction is important). Optional volatility ribbons display gradient fills between the VWMA and band boundaries, providing visual context for price position relative to breakout thresholds with adjustable band transparency (0-100%) to control prominence. Optional bar coloring tints price bars with trend-appropriate colors during bullish and bearish periods, enabling instant visual confirmation of trend state across multiple timeframes without switching between chart and indicator panels.
Indicator

Relative Valuation Oscillator [QuantAlgo]🟢 Overview
The Relative Valuation Oscillator identifies statistical price deviations from fair value using logarithmic price analysis and standard deviation bands. It calculates how far current price has deviated from its mean on a logarithmic scale, normalized by volatility, to generate a centered oscillator that highlights periods when price is statistically stretched above or below its historical average, helping traders identify potential mean reversion opportunities and extreme valuation conditions across different timeframes and markets.
🟢 How It Works
The indicator's core methodology lies in its statistical approach to price valuation, where deviations are measured using logarithmic returns and normalized by standard deviation:
log_price = math.log(close)
mean_log_price = ta.sma(log_price, lookback_period)
standard_deviation = ta.stdev(log_price, lookback_period)
valuation_score = (log_price - mean_log_price) / standard_deviation
First, the script converts price to logarithmic form to account for percentage-based price movements rather than absolute dollar changes, ensuring the indicator works consistently across different price levels and asset classes.
Then, it calculates the mean log price over the specified lookback period to establish a baseline fair value reference:
mean_log_price = ta.sma(log_price, lookback_period)
Next, standard deviation measurement quantifies the typical volatility of log price around this mean, providing a statistical framework for defining normal versus extreme price behavior:
standard_deviation = ta.stdev(log_price, lookback_period)
The valuation score is then derived by measuring how many standard deviations the current log price sits from its mean, creating a normalized oscillator that fluctuates around zero:
valuation_score = (log_price - mean_log_price) / standard_deviation
Finally, threshold-based signal detection identifies extreme conditions when the valuation score exceeds user-defined standard deviation multiples:
is_overvalued = valuation_score > threshold_mult
is_undervalued = valuation_score < -threshold_mult
This creates a statistical mean reversion system that identifies when price has deviated significantly from its historical average on a volatility-adjusted basis, providing traders with objective measurements of relative over or undervaluation.
🟢 Signal Interpretation
▶ Undervalued Zone (Below Negative Threshold): Oscillator falling below the negative threshold line indicates price has deviated significantly below its statistical mean = Potential long/buy opportunities for mean reversion strategies
▶ Overvalued Zone (Above Positive Threshold): Oscillator rising above the positive threshold line indicates price has deviated significantly above its statistical mean = Potential short/sell or profit-taking opportunities
▶ Fair Value Range (Between Thresholds): Oscillator remaining between positive and negative threshold lines indicates price is trading within normal statistical bounds. Within this range, the zero line acts as a directional filter: oscillator above zero but below the upper threshold suggests bullish trend/momentum with price trading above its statistical mean = Trend-following long positions can be maintained; oscillator below zero but above the lower threshold suggests bearish trend/momentum with price trading below its statistical mean = Trend-following short positions can be maintained. The oscillator can remain in these directional zones during sustained trends until mean reversion occurs, signaled by crosses back toward zero or transitions to the opposite extreme threshold.
▶ Zero Line Crosses: Oscillator crossing above zero indicates transition from below-average to above-average valuation, confirming shift to bullish momentum = Potential trend-following long entry; crossing below zero indicates transition from above-average to below-average valuation, confirming shift to bearish momentum = Potential trend-following short entry or long exit. These crosses can signal both the start of directional trends and early mean reversion from extreme conditions.
🟢 Features
▶ Preconfigured Presets: Three optimized parameter sets for different trading approaches and timeframes. "Default" provides balanced sensitivity for swing trading on 4-hour and daily charts, generating signals at statistically significant deviations. "Fast Response" delivers more frequent signals for intraday trading on 5-minute to 1-hour charts, reacting quickly to short-term deviations with increased signal frequency. "Smooth Trend" focuses on major extremes for position trading on daily to weekly timeframes, filtering noise to identify only the most significant statistical outliers.
▶ Built-in Alerts: Five alert conditions enable automated monitoring of valuation extremes and transitions. "Overvalued Threshold Crossed" triggers when the oscillator crosses above the positive threshold, signaling potential overvaluation. "Undervalued Threshold Crossed" activates when the oscillator crosses below the negative threshold, signaling potential undervaluation. "Crossed Above Fair Value (0)" and "Crossed Below Fair Value (0)" provide alerts for zero line transitions, indicating shifts between above-average and below-average valuation. "Any Extreme Valuation" offers a combined alert for any threshold breach regardless of direction, allowing traders to monitor both extremes with a single alert setup.
▶ Color Customization: Six visual themes (Classic, Aqua, Cosmic, Cyber, Neon, plus Custom) accommodate different chart backgrounds and visual preferences, with distinct colors for overvalued, undervalued, and fair value conditions. Optional background highlighting with adjustable transparency (0-100%) tints the main chart background during extreme valuation periods, providing immediate visual context without requiring continuous oscillator monitoring. Optional overlay signals display small circle markers directly on the price chart above bars during overvaluation and below bars during undervaluation, allowing correlation of statistical extremes with specific price levels and candlestick patterns.
Indicator
