ICT Fair Value Gap Detector [Eˣ]⚡ Fair Value Gap Detector
Overview
The Fair Value Gap Detector automatically identifies price imbalances on your charts - the inefficiencies left behind when price moves too quickly. This indicator reveals where price is likely to return for "rebalancing", based on ICT (Inner Circle Trader) concepts of market efficiency.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 What This Indicator Does
Detects Fair Value Gaps:
• 🟢 Bullish FVG - Gap left below during aggressive upward move
• 🔴 Bearish FVG - Gap left above during aggressive downward move
• Automatically identifies 3-candle price inefficiencies
• Works on all timeframes and instruments
Smart Fill Tracking:
• Full Fill - Price completely fills the gap
• 50% Fill - Price fills half the gap (critical level)
• Partial Fill - Price touches gap edge
• Real-time fill percentage tracking
• Auto-removes filled gaps (optional)
Professional Features:
• Active Gap Highlighting - Shows nearest unfilled gap
• Distance Calculator - Displays how far price is from gaps
• Market Bias - Analysis based on gap balance
• Size Filtering - Minimum gap size to avoid noise
• Visual Clarity - Clean boxes with color-coding
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 Understanding Fair Value Gaps
What Are Fair Value Gaps?
Fair Value Gaps (FVGs), also known as imbalances or inefficiencies, are zones where price moved so quickly that normal trading didn't occur. They represent:
• Price Imbalance - One-sided aggressive buying or selling
• Unfair Pricing - Some participants didn't get to trade at these levels
• Market Inefficiency - Supply/demand equilibrium was disrupted
• Rebalancing Zones - Price often returns to "fill" these gaps
The ICT Concept:
Markets constantly seek equilibrium (fair value). When price moves too fast:
1. It leaves gaps where normal trading didn't happen
2. These gaps represent unfair/inefficient pricing
3. Market has a tendency to return and "rebalance"
4. Smart money knows this and trades the fills
Why FVGs Work:
• Unfilled Orders - Traders who missed the move have pending orders in the gap
• Algorithmic Trading - Algos programmed to exploit inefficiencies
• Market Psychology - Traders notice gaps and place orders there
• Institutional Behavior - Smart money uses gaps for entries/exits
FVG vs Regular Gaps:
• Regular Gaps - Occur at market open, between daily closes
• Fair Value Gaps - Occur intraday, between 3 consecutive candles
• FVGs happen more frequently and on all timeframes
• FVGs are more tradeable for intraday/swing traders
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🟢 Bullish Fair Value Gaps Explained
How They Form:
Bullish FVG requires 3 candles:
1. Candle 1 - Any candle (sets the high reference)
2. Candle 2 - Strong bullish candle (aggressive buying)
3. Candle 3 - Continuation candle
The Gap: Candle 3's LOW is above Candle 1's HIGH = Gap left unfilled
Visual Example:
```
Candle 3: Low at $105 ──────────┐
│ ← GAP (Bullish FVG)
Candle 2: Strong bullish │
│
Candle 1: High at $100 ──────────┘
```
What It Means:
• Price jumped from $100 to $105+ so fast, no trading occurred in between
• This $100-$105 zone is "unfair" - buyers/sellers didn't get to trade there
• Market may return to this zone to "rebalance"
• When price returns, it often acts as support
Trading Bullish FVGs:
Strategy:
• Wait for price to retrace down into the bullish FVG (green box)
• Look for rejection/bounce from the gap zone
• Enter long when price respects the FVG as support
• Stop loss: Below the FVG
• Target: Previous high or opposite FVG
Best Entry Points:
• 50% Fill: Price enters middle of gap (highest probability)
• Full Fill: Price touches bottom of gap (aggressive entry)
• Tap & Reject: Price quickly enters and exits gap (strong signal)
Example Trade:
• Bullish FVG forms: $50,000 - $50,500 (500 point gap)
• Price rallies to $52,000 then retraces
• Price drops to $50,250 (50% of gap filled)
• Bullish reversal candle appears
• Enter long at $50,500, stop at $49,800
• Target: $52,000+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔴 Bearish Fair Value Gaps Explained
How They Form:
Bearish FVG requires 3 candles:
1. Candle 1 - Any candle (sets the low reference)
2. Candle 2 - Strong bearish candle (aggressive selling)
3. Candle 3 - Continuation candle
The Gap: Candle 3's HIGH is below Candle 1's LOW = Gap left unfilled
Visual Example:
```
Candle 1: Low at $100 ───────────┐
│ ← GAP (Bearish FVG)
Candle 2: Strong bearish │
│
Candle 3: High at $95 ───────────┘
```
What It Means:
• Price dropped from $100 to $95 so fast, no trading occurred in between
• This $95-$100 zone is "unfair" - buyers/sellers didn't get to trade there
• Market may return to this zone to "rebalance"
• When price returns, it often acts as resistance
Trading Bearish FVGs:
Strategy:
• Wait for price to retrace up into the bearish FVG (red box)
• Look for rejection/reversal from the gap zone
• Enter short when price respects the FVG as resistance
• Stop loss: Above the FVG
• Target: Previous low or opposite FVG
Best Entry Points:
• 50% Fill: Price enters middle of gap (highest probability)
• Full Fill: Price touches top of gap (aggressive entry)
• Tap & Reject: Price quickly enters and exits gap (strong signal)
Example Trade:
• Bearish FVG forms: $48,000 - $48,500 (500 point gap)
• Price drops to $46,000 then retraces
• Price rallies to $48,250 (50% of gap filled)
• Bearish reversal candle appears
• Enter short at $48,000, stop at $48,700
• Target: $46,000-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 How To Use This Indicator
Strategy 1: FVG Rebalancing (Classic)
Best For: Swing trading, reversal trading
Timeframes: 15min, 1H, 4H
Win Rate: 65-75%
Entry Rules:
1. Identify unfilled FVG (bright color, not gray)
2. Wait for price to return to the gap
3. Best entry: 50% fill of the gap
4. Look for reversal confirmation:
• Bullish FVG: Pin bar, engulfing, hammer
• Bearish FVG: Shooting star, bearish engulfing
5. Enter when price bounces/rejects from FVG
6. Stop: Beyond opposite side of FVG
7. Target: 2-3R or previous high/low
Why It Works: 70%+ of FVGs get filled, and 60%+ show reaction
Strategy 2: FVG + Order Block Confluence
Best For: High-probability setups
Timeframes: 1H, 4H
Win Rate: 75-85%
Entry Rules:
1. Find FVG that overlaps with Order Block
2. This creates a "super zone" of confluence
3. Wait for price to return to this zone
4. Enter on first touch of confluence zone
5. Stop: Beyond the confluence zone
6. Target: 3-4R
Why It Works: Double institutional concepts = highest probability
Strategy 3: Multi-Timeframe FVG
Best For: Position trading, major moves
Timeframes: Combine Daily + 4H or 4H + 1H
Win Rate: 70-80%
Entry Rules:
1. Identify large FVG on higher timeframe (Daily/4H)
2. Wait for price to enter this HTF FVG
3. Switch to lower timeframe (4H/1H)
4. Look for LTF FVG within HTF FVG in same direction
5. Trade the LTF FVG fill
6. Stop: Below LTF FVG
7. Target: Exit HTF FVG or beyond
Why It Works: Timeframe alignment = institutional consensus
Strategy 4: FVG Rejection Trade
Best For: Quick scalps, day trading
Timeframes: 5min, 15min
Win Rate: 60-70%
Entry Rules:
1. Price enters FVG zone
2. Immediate rejection (strong reversal candle)
3. Enter on close of rejection candle
4. Tight stop beyond FVG
5. Quick target: 1-2R
Why It Works: Strong rejection = institutional defense of level
Strategy 5: FVG-to-FVG Trading
Best For: Momentum trading
Timeframes: 15min, 1H
Win Rate: 55-65%
Entry Rules:
1. Identify bullish FVG below and bearish FVG above
2. Enter long at bullish FVG, target bearish FVG
3. Or enter short at bearish FVG, target bullish FVG
4. Price often moves from one imbalance to another
5. Stop: Beyond trading FVG
6. Target: Opposite FVG
Why It Works: Price rebalances from one inefficiency to another
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ Settings Explained
Display Settings
Show Bullish/Bearish FVG
• Toggle each type on/off independently
• Customize colors for each FVG type
• Default: Green (bullish), Red (bearish)
• Tip: Use colors that contrast with your chart
Max FVG to Display (Default: 20)
• Limits how many gaps are shown at once
• Lower (10-15): Cleaner chart, recent gaps only
• Higher (30-50): More historical context
• Recommended: 15-25 for most trading
Show FVG Labels (Default: ON)
• Displays "FVG+" and "FVG-" text on gaps
• Shows 🎯 on active (nearest) gap
• Shows fill percentage (e.g., "FVG+ 35%")
• Turn OFF for minimal appearance
• Recommended: Keep ON for clarity
Extend Gaps (bars) (Default: 50)
• How far to extend gap boxes to the right
• Lower (20-30): Shorter boxes
• Higher (100+): Longer boxes, easier to see
• Gaps auto-extend until filled or limit reached
• Recommended: 40-60 bars
Filters
Min Gap Size % (Default: 0.05)
• Minimum gap size as percentage of price
• Filters out tiny, insignificant gaps
• Crypto: 0.05-0.15% (high volatility)
• Forex: 0.03-0.10% (moderate volatility)
• Stocks: 0.05-0.20% (varies by stock)
• Indices: 0.05-0.15%
• Adjust based on instrument's average move
Show Filled Gaps (Default: OFF)
• When ON: Shows gray boxes for filled gaps
• When OFF: Gaps disappear after mitigation
• Use ON: For learning and backtesting
• Use OFF: For clean, active trading view
Advanced Settings
Auto-Detect Mitigation (Default: ON)
• Automatically tracks when gaps are filled
• Updates fill percentage in real-time
• Marks gaps as "mitigated" when filled
• Recommended: Keep ON
Mitigation Type (Default: Full)
• Full: Gap considered filled when price closes through entire gap
• 50%: Gap considered filled at 50% (critical level)
• Partial: Gap considered filled on first touch
• For learning: Use "Full"
• For aggressive trading: Use "50%"
• For conservative trading: Use "Partial"
Highlight Nearest Gap (Default: ON)
• Highlights the closest unfilled gap to current price
• Active gap shown with 🎯 emoji and brighter color
• Helps focus on most relevant opportunity
• Recommended: Keep ON
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📱 Info Panel Guide
Bullish FVG Count
• Number of active (unfilled) bullish fair value gaps
• Higher number = More potential support zones below
• Multiple bullish FVGs = Strong rebalancing demand
Bearish FVG Count
• Number of active (unfilled) bearish fair value gaps
• Higher number = More potential resistance zones above
• Multiple bearish FVGs = Strong rebalancing supply
Bias Indicator
• ⬆ Bullish: More bullish FVGs than bearish
• ⬇ Bearish: More bearish FVGs than bullish
• ↔ Neutral: Equal FVGs on both sides
• Market tends to fill nearby gaps first
Target Indicator
• Shows nearest unfilled gap and distance
• Example: "Bull FVG -1.25%" = Bullish gap is 1.25% below price
• Example: "Bear FVG +0.85%" = Bearish gap is 0.85% above price
• Watch for price to reach these targets
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📱 Alert Setup
This indicator includes 4 alert types:
1. Price Entering Bullish FVG
• Fires when price drops into a bullish gap
• Action: Watch for bounce/reversal
• High-probability long setup developing
2. Price Entering Bearish FVG
• Fires when price rallies into a bearish gap
• Action: Watch for rejection/reversal
• High-probability short setup developing
3. New Bullish FVG Detected
• Fires when a new bullish gap forms
• Action: Mark zone for future fill
• New rebalancing target below identified
4. New Bearish FVG Detected
• Fires when a new bearish gap forms
• Action: Mark zone for future fill
• New rebalancing target above identified
To Set Up Alerts:
1. Click "Alert" button (clock icon)
2. Select "Fair Value Gap Detector"
3. Choose your alert condition
4. Configure notification method
5. Click "Create"
Pro Tip: Set "Price Entering" alerts to catch fills in real-time
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💎 Pro Tips & Best Practices
✅ DO:
• Wait for 50% fill - Middle of gap has highest win rate (65-70%)
• Use confirmation - Don't trade just because price touched gap
• Combine with structure - FVG + support/resistance = high probability
• Trade first fill - Unfilled gaps have better success rate than refilled
• Respect full fills - Once fully filled, gap is less reliable
• Use multiple timeframes - HTF FVGs are stronger than LTF
• Check session timing - FVGs work best during London/NY sessions
• Follow the bias - More bullish FVGs = favor longs
⚠️ DON'T:
• Don't blindly fade gaps - Wait for price action confirmation
• Don't ignore momentum - Strong trends can blow through FVGs
• Don't trade every gap - Quality over quantity
• Don't assume all gaps fill - About 70-80% fill, 20-30% don't
• Don't use tight stops - Allow room for wick into gap
• Don't overtrade - Wait for confluence and confirmation
• Don't fight trends - Best FVG trades are with higher TF trend
• Don't ignore fill percentage - 50% is often the sweet spot
🎯 Best Timeframes:
• Scalpers: 1min, 5min (many gaps, quick fills)
• Day Traders: 5min, 15min, 1H (balanced)
• Swing Traders: 1H, 4H, Daily (larger, more reliable gaps)
• Position Traders: 4H, Daily, Weekly (major imbalances)
🔥 Best Instruments:
• Excellent: BTC, ETH, ES, NQ, Forex majors (clean price action)
• Good: Gold, Oil, Major indices, Large-cap stocks
• Moderate: Altcoins, small-cap stocks (more noise)
• Best Markets: Trending markets with clear swings
⏰ Best Times for FVG Trading:
• London Session: High volume = reliable gap fills
• NY Session: Strong moves create quality gaps
• London-NY Overlap: Best time for gap creation and fills
• Asian Session: Lower probability, wait for London
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎓 Advanced FVG Concepts
FVG Mitigation Levels
Understanding fill percentages:
• 0-25% Fill: Gap barely touched, often continues without fill
• 25-50% Fill: Partial rebalancing, may reverse here
• 50% Fill: CRITICAL LEVEL - Highest probability reversal zone
• 50-75% Fill: Deep rebalancing, strong reversal likely
• 75-100% Fill: Full rebalancing, gap's purpose fulfilled
Why 50% Matters: Market seeks equilibrium, and 50% represents perfect balance
FVG Inversions
When price breaks through a gap completely:
• Bullish FVG that's broken becomes bearish (support → resistance)
• Bearish FVG that's broken becomes bullish (resistance → support)
• Inverted gaps are weaker than fresh gaps
• Trading: Can fade the inverted gap but with caution
FVG Confluence Zones
Multiple FVGs at similar level:
• Creates "super gap" or confluence zone
• Much higher probability of reaction
• Wider zone for entries (more room for stops)
• Often aligns with other institutional concepts
FVG + Order Block Combo
When FVG overlaps with Order Block:
• Double institutional concept
• Extremely high probability setup (75-85% win rate)
• Price drawn to fill gap AND test order block
• Use tight stops, generous targets (3-5R possible)
Nested FVGs (Multi-Timeframe)
Small FVG inside larger FVG:
• Daily FVG contains 4H FVG contains 1H FVG
• Trade the smallest FVG in direction of larger ones
• Highest probability when all aligned
• Progressive targets: Fill small → medium → large gaps
FVG Exhaustion
When price creates multiple FVGs in same direction:
• Indicates strong momentum/impulsive move
• Each gap represents acceleration
• Last gap often signals exhaustion
• Watch for reversal after filling final gap
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Common FVG Patterns
Pattern 1: The Perfect Rebalance
• FVG forms during strong move
• Price continues 100+ pips
• Clean return to 50% of gap
• Immediate reversal
• Textbook setup, 70%+ win rate
Pattern 2: The Double Fill
• Price partially fills gap (25%)
• Weak reaction, continues
• Returns again for deeper fill (75%)
• Strong reversal on second fill
• Second fill often better entry
Pattern 3: The Blow-Through
• Price approaches gap
• Completely ignores it, no reaction
• Keeps going in same direction
• Sign of very strong momentum
Pattern 4: The Magnet Effect
• Price slowly grinds toward gap
• Accelerates as it gets close
• Quickly fills and reverses
• Common in ranging markets
Pattern 5: The False Fill
• Price wicks into gap briefly
• Immediately reverses without filling
• "Stop hunt" or liquidity grab
• Gap remains unfilled
• Often precedes strong move
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 What Makes This Different?
Unlike basic gap indicators, Fair Value Gap Detector:
• ICT Methodology - Based on proven institutional concepts
• Real-Time Fill Tracking - Shows percentage filled as it happens
• 3 Mitigation Types - Full, 50%, Partial for different strategies
• Active Gap Highlighting - Shows most relevant opportunity
• Smart Filtering - Minimum size to avoid noise
• Visual Clarity - Clean, professional appearance
• Auto-Management - Removes filled gaps automatically
• Distance Tracking - Know exactly where price needs to go
Based On Professional Concepts:
• ICT Fair Value Gap theory
• Market efficiency principles
• Price rebalancing dynamics
• Institutional order flow analysis
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 FVG Statistics & Probabilities
Based on ICT concepts and trader observations:
Gap Fill Rates:
• 70-80% of FVGs get filled eventually
• 60-70% show some reaction when filled
• 50% fill level has ~65% reversal rate
• Full fills have ~55% reversal rate
Timeframe Reliability:
• Daily FVGs: ~75-85% fill rate, strongest reactions
• 4H FVGs: ~70-80% fill rate, strong reactions
• 1H FVGs: ~65-75% fill rate, good reactions
• 15min FVGs: ~60-70% fill rate, moderate reactions
• 5min FVGs: ~55-65% fill rate, weaker reactions
Best Practices:
• First touch of gap = 65-70% win rate
• 50% fill = 65% win rate
• FVG + Order Block = 75-85% win rate
• Multi-timeframe aligned FVG = 70-80% win rate
• FVG in trending market = 60-70% win rate
Common Failures:
• Strong momentum blows through gaps (20-30% of time)
• Gaps in low-volume periods less reliable
• Very small gaps (<0.05%) often ignored
• Counter-trend gaps have lower success rate
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🙏 If You Find This Helpful
• ⭐ Leave your feedback
• 💬 Share your experience in the comments
• 🔔 Follow for updates and new tools
Questions about Fair Value Gaps? Feel free to ask in the comments.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Version History
• v1.0 - Initial release with 3-candle FVG detection and real-time fill tracking
Indicateurs et stratégies
ssdv%Are you tired of drawing random boxes on your chart that don’t actually correlate to price?
This indicator solves that. It’s a Session-Based Standard Deviation Percentage Calculator designed to show you where price has actually reacted—and where it’s statistically likely to react again.
Just select the session you’re trading as Session 1 and the previous session as Session -1. The script automatically builds a live data pool from those sessions, calculates the true standard-deviation-based percentage levels, and dynamically adjusts as new data comes in.
The result?
Clean, adaptive reversal zones grounded in real volatility, not guesswork—so you can finally stop drawing boxes and start trading price with precision.
RSI 14 Cross Up SMA(14) With Volume FiltersUpgrade previous script to show crossover volume strength
RV − IV Spread Alert (SPY vs VIX)Realized vs Implied Volatility Spread (RV − IV) for the S&P 500 / SPY.
Plots the daily difference between 30-day realized volatility (SPY) and implied volatility (VIX) in basis points.
Key insight from the research: when the spread turns and stays above ≈ +50 bps, forward returns historically degrade and volatility of returns rises sharply — a useful early-warning regime flag.
Features:
- Clean daily plot of RV − IV in bps
- Horizontal lines at 0, −50 bps and +50 bps
- Red background when spread > +50 bps
- Built-in alert condition that fires once per bar close when spread closes above +50 bps
- Optional “all-clear” alert when it drops back below
Use on SPY or ES1! daily chart. Perfect for anyone wanting a simple notification when the market enters the “risk-on” volatility regime highlighted by Machina Quanta and the original Bali & Hovakimian (2007) paper.
Price Forecast - Future price Ichimoku ATR RSI Kumo It predicts
Future price (projected close)
future high-low (ATR projection)
Ichimoku Future Span overlay
alerts "future price above/below threshold".
Ichimoku Kumo Projection (Leading Span A & B). Senkou Span A (Future A) Senkou Span B (Future B).
ATR Projection Channel (ATR Bands/Volatility Forecast).
Linear regression forecast for +1 bar.
Multi timeframe
RSI+Kumo filter for clearer signals.
SMAs TimePortalPlots 5× SMAs from 3 different timeframes - plus current chart timeframe
Plots 2× VWAPs with bands.
Meant for personal use, but maybe you can find it useful too.
Disclaimer: Beware I might update this with big changes in the future.
Long Term Holder Supply 155 DayThe “Long Term Holder Supply 155 Day” indicator is designed to bring on-chain inspired long-term analysis directly into chart-based technical trading.
The concept comes from the idea of Long-Term Holder (LTH) Supply, frequently used in Bitcoin on-chain analytics to identify price zones where long-term holders accumulated coins. These areas tend to act as strong support and resistance because long-term holders historically accumulate during undervaluation phases and distribute during overheated cycles.
What makes this script original
Unlike traditional moving averages or basic Donchian channels, this indicator combines both concepts using the same 155-day window, creating a unified model that visually represents:
The average long-term holder cost basis (via SMA 155).
The range of supply and demand zones historically defined by price extremes (via Donchian 155).
A trend-reactive color system that makes interpretation intuitive and immediate.
This dual-structure is not commonly found in standard TradingView scripts and is inspired by on-chain research methodology adapted for chart traders.
How it works
1. SMA 155 (LTH Mean Price)
Represents the long-term holder cost basis proxy.
Turns green when price is above it (market strength above holder basis).
Turns red when price is below it (market trading at a discount relative to long-term holders).
This allows traders to quickly identify whether Bitcoin is in a LTH profit or LTH loss environment — a critical on-chain concept.
2. Donchian Channel 155 (LTH Supply Range)
Upper Band (Green): Highest high of the last 155 days — interpreted as the upper bound of LTH supply/resistance.
Lower Band (Red): Lowest low of the last 155 days — interpreted as the lower bound of LTH accumulation/support.
This creates a long-term structural range showing where long-term holders were historically more likely to buy (lower band) or distribute (upper band).
How to use it
Bullish conditions:
Price breaks above the SMA 155.
Price begins approaching or breaking the upper Donchian band → signs of macro strength and potential long-term breakout.
Bearish conditions:
Price drops below SMA 155 (LTH basis lost).
Price moves toward the lower Donchian band → zone where long-term holders historically accumulate during deep value phases.
Sideways Accumulation:
Price oscillates inside the Donchian bands while hugging the SMA 155 → potential long-term consolidation before trend reversal.
Who this indicator is for
Long-term Bitcoin analysts
Swing traders
Investors tracking macro cycles
Traders who want lightweight on-chain logic without needing blockchain datasets
Core methodology behind the script
The indicator is built around:
SMA 155 → represents long-term average cost basis
Donchian 155 → long-term supply/demand range
Color-based trend confirmation → chart-based interpretation of on-chain behavior
This combination brings an on-chain inspired long-term model into pure price action, making it usable even by traders without access to blockchain data.
Market Structure Shift (MSS) [Sword & Shield]MARKET STRUCTURE SHIFT (MSS)
A clean and focused indicator for identifying Market Structure Shifts in price action.
════════════════════════════════════════════════════════════════════════════════
WHAT IS MARKET STRUCTURE SHIFT (MSS)?
════════════════════════════════════════════════════════════════════════════════
A Market Structure Shift occurs when price breaks a significant swing high or swing low,
indicating a potential change in market direction. This indicator automatically detects
and plots these key levels.
BULLISH MSS: Price breaks above a previous swing high
BEARISH MSS: Price breaks below a previous swing low
════════════════════════════════════════════════════════════════════════════════
FEATURES
════════════════════════════════════════════════════════════════════════════════
CLEAN DISPLAY
- Shows only the last 2 MSS by default (1 bullish + 1 bearish)
- Keeps charts clean and focused on recent structure
- Automatically removes old MSS when new ones appear
CUSTOMIZABLE DETECTION
- Adjustable swing detection (left/right bars)
- Choose break confirmation method (Close or Wick)
- Fixed-length lines (no infinite extension by default)
SMART FILTERING
- Only plots one MSS per direction until opposite MSS occurs
- Prevents duplicate signals in the same direction
- Clear visual distinction between bullish (blue) and bearish (red)
CLEAN LABELS
- Text labels positioned above lines
- No background tooltips for cleaner appearance
- Color-matched to their respective MSS lines
════════════════════════════════════════════════════════════════════════════════
SETTINGS
════════════════════════════════════════════════════════════════════════════════
SWING DETECTION
- Swing Left Bars (default: 2)
- Swing Right Bars (default: 2)
- Higher values = more significant swings detected
BREAK CONFIRMATION
- Close: MSS confirmed when candle closes beyond level
- Wick: MSS confirmed when wick touches beyond level
DISPLAY OPTIONS
- Show Only Last 2 MSS: ON by default (keeps chart clean)
- Extend lines to the right: OFF by default (fixed-length lines)
- Line bars (when not extended): 50 bars (customizable)
════════════════════════════════════════════════════════════════════════════════
HOW IT WORKS
════════════════════════════════════════════════════════════════════════════════
DETECTION LOGIC
1. Identifies swing highs and swing lows using pivot detection
2. Monitors price action for breaks of these levels
3. Confirms break based on selected method (Close or Wick)
4. Plots MSS line at the broken level
FILTERING LOGIC
- Only one MSS per direction is allowed consecutively
- Example: If bullish MSS appears, no new bullish MSS until bearish MSS occurs
- This prevents multiple signals in trending markets
DISPLAY LOGIC
- When "Show Only Last 2 MSS" is enabled:
• Only the most recent bullish MSS is shown
• Only the most recent bearish MSS is shown
• Old MSS are automatically deleted when new ones appear
- When disabled: All historical MSS remain visible
════════════════════════════════════════════════════════════════════════════════
USAGE EXAMPLES
════════════════════════════════════════════════════════════════════════════════
FOR TREND IDENTIFICATION
- Bullish MSS = Potential uptrend beginning
- Bearish MSS = Potential downtrend beginning
- Use in conjunction with other indicators for confirmation
FOR ENTRY SIGNALS
- Wait for MSS to confirm trend change
- Enter on pullback to MSS level
- Use MSS as support/resistance
FOR SCALPING (Lower Timeframes)
- Swing Left/Right Bars: 2-3 (more sensitive)
- Break Confirmation: Close (more reliable)
- Show Only Last 2 MSS: ON (cleaner charts)
FOR SWING TRADING (Higher Timeframes)
- Swing Left/Right Bars: 5-10 (more significant swings)
- Break Confirmation: Close (avoid false breaks)
- Show Only Last 2 MSS: ON or OFF based on preference
════════════════════════════════════════════════════════════════════════════════
VISUAL DESIGN
════════════════════════════════════════════════════════════════════════════════
LINES
- Dashed style for easy identification
- Blue for bullish MSS
- Red for bearish MSS
- Fixed length (50 bars default) for cleaner appearance
LABELS
- "MSS" text positioned above each line
- No background for clean display
- Color-matched to line color
- Small size to avoid chart clutter
════════════════════════════════════════════════════════════════════════════════
CREDITS & LICENSE
════════════════════════════════════════════════════════════════════════════════
© Sword & Shield
This Pine Script code is subject to the terms of the Mozilla Public License 2.0
mozilla.org
Vassago & Tesla Ex-Machina 197 45 21 [Hakan Yorganci]Vassago & Tesla Ex-Machina 197 45 21
"Any sufficiently advanced technology is indistinguishable from magic." — Arthur C. Clarke
🌑 The Genesis: Algorithmic Esotericism
This script is not merely a technical indicator; it is a digital artifact born from the convergence of Software Engineering and Hermetic Tradition.
As a developer and researcher dedicated to "Technomancy"—the study of applying esoteric logic to computational systems—I designed this algorithm using a custom, experimental programming environment I am currently developing. My goal was to move beyond standard, arbitrary financial inputs (like the default 200 SMA or 14 RSI) and instead derive parameters based on Universal Harmonics and Historical Archetypes.
This indicator, Ex-Machina, is the result of that transmutation. It applies ancient numeric precision to modern market chaos.
🔢 Decoding the Protocol: 197 - 45 - 21
Why these specific numbers? They were not chosen randomly; they were calculated through specific harmonic reductions to filter out market noise.
1. The Harmonic Trend (Tesla Protocol)
* The Logic: Standard analysis uses the 200-period Moving Average simply out of habit. However, applying Nikola Tesla’s 3-6-9 vibrational principles, the engine reduced the period to 197.
* The Numerology: 1+9+7 = 17 \rightarrow 1+7 = \mathbf{8}. In esoteric numerology, 8 represents infinite power, authority, and financial flow. This creates a baseline that aligns more organically with market accumulation than the static 200.
2. The Hidden Dip (Solomonic Sight)
* The Archetype: Based on the attributes of Vassago, the archetype of discovering "hidden things," the algorithm identified 45 as the precise threshold for a "Sniper Entry."
* The Function: Unlike the standard 30 RSI, this level identifies the exact moment a correction matures within a bullish trend—catching the dip before the crowd returns.
3. The Prophetic Vision
* The Logic: Using the Fibonacci Sequence, the indicator projects the support line 21 bars into the future.
* The Utility: This allows you to visualize where the support will be, granting you foresight before price action arrives.
⚖️ The Dual Mode Engine: Sealed vs. Living
Respecting the user's will, I have engineered this script as a Hybrid System. You can choose how the "spirit" of the code interacts with the market via the settings menu.
1. The Sealed Ritual (Default - Unchecked)
* Philosophy: "Trust in the Constants."
* Behavior: Strictly adheres to the 197 SMA and 45 RSI.
* Visual: Displays a Blue Trend Line.
* Best For: Traders who value stability, long-term trends, and the unyielding nature of harmonic mathematics.
2. The Living Spirit (Adaptive Mode - Checked)
* Philosophy: "As the market breathes, so does the code."
* Behavior:
* Transmutation: The trend line shifts from a Simple Moving Average (SMA) to an Exponential Moving Average (EMA 197) for faster reaction.
* Adaptive Volatility: The RSI entry level (45) becomes dynamic. It expands and contracts based on ATR (Average True Range). In high volatility, it demands a deeper dip to trigger a signal, protecting you from fake-outs.
* Visual: Displays a Fuchsia (Pink) Trend Line.
* Best For: Volatile markets (Crypto/Forex) and traders who want the algorithm to "sense" the fear and greed in the air.
⚙️ How to Trade
* Timeframe: Optimized for 4H (The Builder) and 1D (The Architect).
* The Signal: Wait for the "EX-MACHINA ENTRY" label. This signal manifests ONLY when:
* Price is holding above the 197 Harmonic Trend.
* Momentum crosses the Optimized Threshold (45 or Adaptive).
* Trend Strength is confirmed via ADX.
Author's Note:
I built this tool for those who understand that code is the modern spellbook. Use it wisely, risk responsibly, and let the harmonics guide your entries.
— Hakan Yorganci
Technomancer & Full Stack Developer
Wheel Strategy SMAsPlots the 200 SMA and 50 SMA- For CSP, look for a strike price that is at or just below teh 200 sma
Madrid Ribbon with ST/TEMA Filter + Hourly Trend
Madrid Moving Average Ribbon with SuperTrend/TEMA Filter + Hourly Trend Open Line
This advanced technical indicator combines three powerful trading tools into one comprehensive system for identifying trend direction, momentum, and key support/resistance levels.
📊 What's Included:
1. Madrid Moving Average Ribbon (18 EMAs/SMAs)
Displays 18 configurable moving averages (5-100 periods) creating a visual "ribbon" effect
Color-coded system: LIME (strong bullish), GREEN (bullish), MAROON (weak bearish), RED (strong bearish), GRAY (neutral/filtered)
Choose between Exponential (EMA) or Simple (SMA) moving averages
The ribbon helps identify trend strength, direction, and potential reversals
2. SuperTrend/TEMA Filter System
Zero-lag Triple Exponential Moving Average (TEMA) for fast trend detection
SuperTrend indicator using ATR-based volatility bands
Combined filter logic: Only displays ribbon colors when BOTH SuperTrend AND TEMA confirm the trend direction
Reduces false signals and whipsaw during choppy market conditions
Fully customizable parameters (Fast/Slow TEMA periods, ATR multiplier, MA length)
Can be toggled ON/OFF to see unfiltered Madrid Ribbon
3. Hourly Trend Open Line
Plots the opening price of your selected higher timeframe (default: 1-hour)
Acts as dynamic support/resistance and trend bias indicator
Background coloring: Green when price is above the line (bullish bias), Red when below (bearish bias)
Customizable timeframe from 1-minute to Daily
Great for multi-timeframe analysis and confirming trade direction
🎯 How to Use:
Trend Following: Enter long when ribbon turns LIME/GREEN, enter short when MAROON/RED
Trend Confirmation: Use the Hourly Trend Open Line to confirm direction - trade longs above the line, shorts below
Filter Noise: Enable SuperTrend/TEMA filter to remove low-probability setups in ranging markets
Exit Signals: Watch for ribbon color changes or price crossing the Hourly Trend Open Line
⚡ Alert System:
Filtered Buy Signal: When trend changes to bullish (confirmed by both SuperTrend and TEMA)
Filtered Sell Signal: When trend changes to bearish (confirmed by both SuperTrend and TEMA)
Filtered Trend Change: Any trend direction change
⚙️ Customization Options:
Toggle SuperTrend/TEMA filter on/off
Adjust TEMA periods (Fast: 22, Slow: 144 default)
Modify SuperTrend settings (ATR multiplier, MA length)
Change Hourly Trend timeframe
Customize all colors and line widths
Choose EMA or SMA for ribbon calculation
💡 Best Practices:
Works on all timeframes and instruments
Use higher timeframe Trend Open Line for swing trading
Combine with volume analysis for confirmation
Best suited for trending markets; consider disabling in tight ranges
Test settings on your specific instrument for optimal performance
📝 Note: This indicator requires the 'loxx/loxxexpandedsourcetypes/4' library for TEMA calculations.
This indicator is ideal for traders who want a comprehensive, all-in-one solution for trend identification, momentum analysis, and multi-timeframe confluence.
**MACD + RSI + MFI by IspatialResources – Multi-Tool Indicator**
This indicator is a **multi-functional technical analysis tool** that combines the following professional oscillators into a single panel:
* ✅ **Customizable MACD**
* ✅ **Advanced RSI with Moving Average and Bollinger Bands**
* ✅ **Money Flow Index (MFI)**
* ✅ **Module-based enable/disable system**
* ✅ **Fully configurable alerts**
It is designed to help identify **overbought and oversold conditions, trend strength, and momentum shifts**, improving market reading across multiple assets.
---
### 🔹 INCLUDED MODULES
**1️⃣ MACD**
* Fast and slow moving average settings
* Selectable MA type (SMA / EMA)
* Dynamic histogram
* Momentum change alerts
**2️⃣ Advanced RSI**
* Classic RSI with dynamic levels
* Moving average applied to RSI
* Optional **Bollinger Bands on RSI**
* Visual overbought and oversold signals
* Extreme condition alerts
**3️⃣ MFI (Money Flow Index)**
* Buying and selling pressure detection
* Overbought and oversold zones
* Ideal for volume and strength analysis
---
### 🔹 SUPPORTED MARKETS
This indicator can be used on:
* 📈 Cryptocurrencies
* 📊 Stock Indices
* 💱 Forex
* 📉 Stocks
It works on **all timeframes**: intraday, swing trading, and long-term analysis.
---
### 🔹 HOW TO USE IT
* Enable or disable each module from the settings panel.
* Use the **RSI with bands** to detect extreme zones.
* Confirm potential entries with the **MACD**.
* Filter false signals with the **MFI**.
* Combine it with market structure, support, and resistance.
---
### ⚠️ RISK DISCLAIMER
This indicator is **for educational and technical analysis purposes only**.
**It does not constitute financial advice and does not guarantee results.**
Trading involves risk, and each user is responsible for their own decisions.
---
### 👤 AUTHOR
Created by **Ismael** as a personal tool for market analysis and study.
---
🚀 If you find this indicator useful, feel free to support it with a “like” for future updates.
Opening Range ICT 3-Bar FVG + Engulfing Signals (Overlay)Beta testing
open range break out and retest of FVG.
Still working on making it accurate so bear with me
Liquidations (TV Source / Manual / Proxy) Cruz Pro Stack + Liquidations (TV Source / Manual / Proxy) is a high-confluence crypto trading indicator built to merge reversal detection, volatility timing, structure confirmation, and liquidation pressure into one clean decision engine.
This script combines five pro-grade components:
1) RSI Divergence (Regular + Hidden)
Detects early momentum shifts at tops and bottoms to anticipate reversals before price fully reacts.
2) BBWP (Bollinger Band Width Percentile)
Identifies volatility compression and expansion cycles to time breakout conditions and avoid low-quality chop.
3) Market Structure (BOS / CHOCH proxy)
Confirms trend continuation or change-of-character using swing breaks for more reliable directional bias.
4) Liquidations Layer (3 Modes)
Adds liquidation-driven context for where price is likely to squeeze or flush next:
TV Source: Use TradingView’s built-in Liquidations plot when available.
Manual Totals: Paste 12h/24h/48h long/short totals for higher-level regime bias.
Proxy (Volume Shock): A fallback approximation for spot charts using volume + candle direction.
The script automatically converts your chart timeframe into rolling 12/24/48-hour windows, then computes a weighted liquidation bias and a spike detector to flag potential exhaustion moves.
5) Confluence Score + Signals
A simple scoring engine highlights high-probability setups when multiple factors align.
Signals are printed only when divergence + structure + volatility context agree with liquidation pressure.
How to use
Best on BTC/ETH perps across 15m–4H.
For maximum accuracy:
Add TradingView’s Liquidations indicator (if your exchange/symbol supports it).
Set Liquidations Mode = TV Source.
Select the Liquidations plot as the source.
If that plot can’t be selected, switch to Proxy or Manual Totals.
What this indicator is designed to improve
Earlier reversal recognition
Cleaner breakout timing
Structure-confirmed entries
Better risk management around liquidation-driven moves
Fewer low-quality trades during dead volatility
6M Low Net Change Detector (Label Last Bar) PB6M Low Net Change Detector (Label Last Bar) PB for POC script
Alert candle Bull/BearThis simple indicator allows you to be notified if the candle closes long or short, according to your timeframe.
GOLD 5m Buy/Sell Pro//@version=5
indicator("GOLD 5m Buy/Sell Pro", overlay = true, timeframe = "5", timeframe_gaps = true)
Regular Volume Indicator with 30-Day Average PointsRegular Volume Indicator with past 30-days average lines.
If the day's trading volume is more than that, it will have a dot pop out.
IDX Sector Monitor - RRG
// ═══════════════════════════════════════════════════════════════════════════════
// IDX SECTOR MONITOR - RRG EDITION
// ═══════════════════════════════════════════════════════════════════════════════
// Track Indonesian stock sectors with Relative Rotation Graph (RRG) analysis.
//
// Features:
// • Custom sector indices (equal-weighted)
// • Multi-timeframe performance (1D, 1W, 1M, etc.)
// • RRG status vs IHSG/LQ45 benchmark
//
// RRG Quadrants:
// 💚 Leading - Outperforming, strong momentum (BUY zone)
// 💛 Weakening - Still strong but slowing down (TAKE PROFIT)
// 💙 Improving - Weak but gaining momentum (WATCHLIST)
// ❤️ Lagging - Underperforming, avoid (SELL zone)
//
// ═══════════════════════════════════════════════════════════════════════════════
Manual Zones SafeUse cases:
Support and resistance levels
Supply and demand zones
Price action areas for manual trading strategies
Magic Moving AveragesThis indicator plots up to three adaptive “Magic MAs” plus a weighted combo line, with optional traditional SMAs for comparison.
Instead of averaging only closes, each Magic MA:
looks at the midpoints of highs/lows and opens/closes
decides whether recent behaviour favours the highs or the lows
builds a series of either highs or lows, then smooths it over your chosen length
You can run:
Short / Medium / Long Magic MAs
A weighted combo line (using 1–10 weights)
Optional traditional short/long SMAs on close
How I use it:
Price above the combo line → bullish bias
Price below the combo line → bearish bias
Short/medium/long Magic MAs together → dynamic support/resistance and trend structure
Traditional SMAs on for comparison with “classic” moving average behaviour
Inputs:
Magic MA lengths control how reactive vs smooth each regime is
Weights (1–10) let you emphasise short, medium or long regimes in the combo
This is a free / educational version of the Magic MAs.
It’s not financial advice – always manage your own risk.
Trading Session IL7 Session-Based Intraday Momentum IndicatorOverview
This indicator is designed to support discretionary traders by highlighting intraday momentum phases based on price behavior and trading session context.
It is intended as a confirmation tool and not as a standalone trading system or automated strategy.
Core Concept
The script combines multiple market observations, including:
- Directional price behavior within the current timeframe
- Structural consistency in recent price movement
- Session-based filtering to focus on periods with higher activity and liquidity
Signals are only displayed when internal conditions align, helping traders avoid low-quality setups during sideways or low-momentum market phases.
How to Use
This indicator should be used to confirm existing trade ideas rather than generate trades on its own.
It can help traders:
- Identify periods where momentum is more likely to continue
- Filter out trades during unfavorable market conditions
- Align intraday execution with higher-timeframe bias
Best results are achieved when used alongside key price levels, higher-timeframe structure and proper risk management.
Limitations
This indicator does not predict future price movements.
Signals may change during active candles.
Market conditions may reduce effectiveness during extremely low volatility periods.
Language Notice
The indicator’s user interface labels are displayed in German.
This English description is provided first to comply with TradingView community script publishing rules.






















