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 Indicador

Smart Money Engine [WillyAlgoTrader]Smart Money Engine (SME) is a comprehensive overlay indicator that automates the core elements of Smart Money Concepts (SMC) analysis: multi-layer market structure detection (BOS / CHoCH), order block identification with strength grading, fair value gap tracking with fill monitoring, inverse FVG generation, and auto-anchored Fibonacci retracement — all in a single, unified tool.
Rather than stacking five separate indicators on your chart — one for structure, one for OBs, one for FVGs, one for IFVGs, and one for Fibonacci — SME integrates these components so they share a common structural context. Order blocks are created at actual structure break points, FVGs are filtered against volatility, IFVGs are born from filled FVGs, and the Fibonacci grid automatically anchors to the current strong high and strong low. Every component is aware of the others, producing a cleaner and more logically consistent chart than layering independent tools.
🔍 WHAT MAKES IT ORIGINAL
1. Dual-layer structure detection (Swing + Internal). The indicator runs two independent pivot-based structure engines simultaneously. The Swing layer (configurable length, default 10) captures major market structure — the higher-timeframe trend. The Internal layer (shorter length, default 5) captures minor structure shifts within the swing trend. Both label BOS (Break of Structure — continuation) and CHoCH (Change of Character — reversal) independently. This dual-layer approach lets you see whether an internal CHoCH is happening against or with the swing trend — a key distinction in SMC methodology that single-layer tools miss.
2. Order Blocks with contextual grading (A / B / C). OBs are not placed at arbitrary candles. They are created only when a swing-level BOS or CHoCH occurs — the script walks back from the break to find the last opposite-colored candle (the institutional candle that initiated the move). Each OB is then graded:
— Grade A : OB overlaps with an FVG and has a volume spike (highest confluence)
— Grade B : OB has one confluence factor (volume spike OR FVG overlap)
— Grade C : basic OB without additional confluence
Grading helps you prioritize which zones to trade from. OBs extend until mitigated (user choice: close-based or wick-based mitigation), and each OB displays a Consequent Encroachment (CE) midline — the 50% level that often acts as the reaction point within the block.
3. Fair Value Gaps with ATR auto-filter and fill tracking. FVGs are detected using the classic three-candle gap method (current low > high two bars ago for bullish, inverse for bearish). A built-in ATR filter (enabled by default) suppresses FVGs smaller than 0.5× ATR, removing the micro-gaps that clutter charts on lower timeframes. Each FVG extends until fully filled, displays a CE midline, and is automatically removed once price closes through the gap.
4. Inverse FVG (IFVG) generation. When an FVG is fully filled by price, it doesn't just disappear — it transforms into an Inverse FVG with flipped bias. A filled bullish FVG becomes a bearish IFVG (potential resistance); a filled bearish FVG becomes a bullish IFVG (potential support). This captures the SMC concept that once institutional imbalance is filled, the zone can flip polarity. IFVGs are displayed with distinct dashed borders and tracked until mitigated by a close through their zone.
5. Auto-anchored Fibonacci retracement. The Fibonacci grid automatically spans from the current Strong High to Strong Low — the trailing extremes of the active swing structure. When a new BOS/CHoCH shifts the structure, the anchor points update and the grid repositions. The OTE (Optimal Trade Entry) zone between 0.5 and 0.618 is highlighted, giving you an immediate visual reference for the premium/discount equilibrium.
6. Strong / Weak High and Low levels. After each structural break, the indicator identifies the trailing high and low as either "Strong" or "Weak" based on their position relative to the current trend direction. In a bullish swing, the low that initiated the trend is the Strong Low (protected) and the high is the Weak High (target). These levels are extended forward as dashed lines, providing clear reference for where the trend is protected and where it is vulnerable.
⚙️ HOW IT WORKS
Structure detection:
Swing pivots are identified using ta.pivothigh() and ta.pivotlow() with the configured lookback length. The script maintains the most recent swing high and swing low. When price closes above the previous swing high (confirmed bar close, no mid-bar signals), it registers a bullish break. If the prior trend was bearish, this is labeled CHoCH (reversal); if bullish, it is labeled BOS (continuation). The same logic applies in reverse for bearish breaks. Internal structure uses an identical algorithm with a shorter lookback, and its labels are drawn with dashed lines and lighter opacity to visually distinguish them from swing-level events.
Order Block detection:
When a swing-level break is confirmed, the script scans backward (up to 30 bars) from the pivot that was broken to find the last candle with opposite polarity — the candle whose body direction opposes the break direction. The full range (high to low) of that candle becomes the OB zone. A volume spike check (volume > 1.5× 20-period SMA) adds confluence for grading. OBs extend right until the mitigation condition is met.
FVG detection:
On every confirmed bar, the script checks whether the current bar's low exceeds the high of two bars ago (bullish FVG) or the current high is below the low of two bars ago (bearish FVG). If the gap size passes the ATR filter, an FVG box is created. The box extends right each bar. If price fills the gap completely (low touches the bottom of a bullish FVG, or high touches the top of a bearish FVG), the FVG is removed and — if IFVG mode is enabled — queued for conversion to an Inverse FVG.
HTF trend filter:
An optional higher-timeframe EMA(50) filter provides directional bias. The HTF data is fetched using request.security() with confirmed-bar referencing ( + lookahead_on pattern) to prevent repainting. When enabled, the dashboard displays the HTF bias, and the confluence can factor into OB grading.
Anti-repaint compliance:
All structure breaks, OB creation, and FVG detection require barstate.isconfirmed — signals fire only after the bar closes. The HTF filter uses the standard non-repainting security call pattern. No future data is accessed.
📖 HOW TO USE
Reading the chart:
— HH / HL / LH / LL labels at swing points classify the market structure
— Solid horizontal lines with BOS or CHoCH labels = swing-level structure breaks
— Dashed lines with BOS/CHoCH = internal (minor) structure breaks
— Colored boxes = Order Blocks (green-tinted = bullish, red-tinted = bearish)
— Letter labels (A/B/C) on OBs = strength grade
— Dotted midline inside OBs = Consequent Encroachment (CE)
— Blue-tinted boxes = bullish FVGs; orange-tinted = bearish FVGs
— Dashed-border boxes labeled IFVG = Inverse Fair Value Gaps
— Dotted horizontal Fibonacci lines with OTE zone highlight = auto retracement grid
— Dashed trailing lines labeled "Strong High/Low" or "Weak High/Low" = structural extremes
Suggested workflow:
— Identify the swing trend direction from BOS/CHoCH labels and Strong/Weak levels
— Check if internal structure aligns with or diverges from swing structure
— Look for entry opportunities at Order Blocks (prioritize Grade A/B) within the Fibonacci OTE zone
— Use FVGs as additional confluence — a bullish OB that overlaps a bullish FVG is a higher-probability zone
— Monitor IFVGs for polarity-flipped zones that may act as new support/resistance
— Use the dashboard to track active OB/FVG/IFVG counts and HTF bias alignment
Timeframe guidance:
— Scalping (1–5min): Swing Length 5–7, Internal 3, increase Max OBs/FVGs for more zones
— Intraday (15min–1H): Swing Length 8–12, Internal 5, default settings work well
— Swing (4H–Daily): Swing Length 15–25, Internal 7–10, reduce Max OBs to keep chart clean
— Use the HTF filter with 1 step up (e.g. 1H chart → 4H HTF, 4H chart → D HTF)
⚙️ KEY SETTINGS REFERENCE
— Swing Detection Length (default 10): lookback for major structure pivots
— Internal Structure Length (default 5): lookback for minor structure pivots (should be < Swing Length)
— OB Mitigation (default Wick): "Close" = OB removed on close through zone; "Wick" = removed on any touch
— Show OB Grade (default On): display A/B/C strength classification on OBs
— Show OB Midline (default On): display CE (50%) line inside order blocks
— Auto-Filter Small FVGs (default On): suppress FVGs smaller than 0.5× ATR
— Max Visible OBs / FVGs / IFVGs (default 5 each): cap on displayed zones to manage chart clutter
— Show Inverse FVGs (default Off): enable IFVG generation from filled FVGs
— Show Fibonacci Retracement (default On): auto-anchored grid with OTE zone highlight
— HTF Trend Filter (default Off): set a higher timeframe for directional bias via EMA(50)
— Volume Confirmation (default On): add confluence when volume > 1.5× average (auto-disabled on forex)
📊 Dashboard
The info panel (adjustable to any chart corner) displays in real time:
— Swing trend direction (Bullish / Bearish)
— Internal trend direction
— Fibonacci range (Strong High — Strong Low)
— Count of active OBs, FVGs, and IFVGs
— HTF bias (if enabled)
— Current timeframe and indicator version
⚠️ IMPORTANT NOTES
— This indicator does not repaint. All signals and zone creations require bar-close confirmation. The HTF filter uses the standard + lookahead_on non-repainting pattern.
— SME is a structural analysis and zone-mapping tool — it identifies where institutional activity likely occurred, but it does not generate explicit buy/sell signals. Trade decisions should incorporate your own entry triggers, risk management, and additional confluence.
— Past structure patterns and zone reactions do not guarantee future price behavior.
— Performance may vary across instruments and timeframes. Lower timeframes produce more zones and structure shifts; use the ATR filter and Max Visible caps to manage noise.
— The indicator works across all asset classes. Volume-based features (OB grading) are automatically adjusted on instruments without volume data. Indicador

Adaptive Pivot Structure [WillyAlgoTrader]Adaptive Pivot Structure (APS) is an overlay indicator that maps market structure in real time by detecting swing pivots, classifying structural breaks (BOS / CHoCH), tracking missed reversal levels, and projecting a dynamic Fibonacci grid between the last confirmed pivot and the live forming extreme.
Most pivot-based tools plot swing points with a fixed delay and leave the trader to interpret structure manually. APS automates the full workflow: it detects pivots, grades their strength against ATR, identifies whether the structure is continuing (BOS) or reversing (CHoCH), keeps track of levels that price skipped over, and stretches a Fibonacci retracement grid that updates bar-by-bar as the current swing extends — giving you an always-current picture of where price sits within the swing.
🔍 WHAT MAKES IT ORIGINAL
APS combines five analytical layers into a single coherent overlay that would otherwise require multiple separate indicators:
1. ATR-graded pivot detection. Every swing high and low is measured against the current ATR to classify it as Strong (swing > 1.5× ATR) or Weak. You can filter the display to show only strong pivots, only weak ones, or all — allowing you to strip noise on lower timeframes while keeping full detail on higher ones.
2. Automated BOS / CHoCH classification. The indicator continuously compares each new pivot high to the previous pivot high, and each new pivot low to the previous pivot low. When a higher high forms in an existing uptrend, the script labels it as a Break of Structure (BOS ↑) — trend continuation. When a higher high forms after a downtrend, it labels a Change of Character (CHoCH ↑) — potential reversal. The same logic applies in reverse for bearish breaks. This removes the subjectivity of manually drawing and labeling structure shifts.
3. Missed reversal tracking. When two consecutive pivots form on the same side (e.g. two pivot highs without an intervening pivot low), the "missed" pivot low between them is flagged with a ◇ marker and extended as a dotted horizontal level until price breaks it. These missed levels often act as hidden support/resistance that conventional pivot tools ignore entirely.
4. Live (potential) pivot tracking. Instead of waiting for full confirmation (which inherently lags by N bars), APS tracks the running extreme since the last confirmed pivot and plots it in real time as a "potential next pivot" with a dashed zigzag extension. This gives you immediate visual feedback on how far the current swing has traveled and where the Fibonacci grid is anchored — without pretending the pivot is confirmed.
5. Dynamic Fibonacci grid. A full Fibonacci retracement (0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0 — with optional 1.272 and 1.618 extensions) is drawn between the last confirmed pivot and the live pivot. The grid redraws every bar as the live extreme moves, so the retracement levels always reflect the current swing range. The OTE (Optimal Trade Entry) zones at 0.236–0.382 and 0.618–0.786 are highlighted with a fill to make them easy to spot at a glance.
⚙️ HOW IT WORKS
Pivot detection:
Pivots are identified using ta.pivothigh() and ta.pivotlow() with a user-defined lookback (Pivot Length). A pivot high is confirmed when the bar has N lower highs on both sides; a pivot low when the bar has N higher lows on both sides. This means confirmed pivots appear with a delay of N bars — this is inherent to the standard pivot detection algorithm.
Strength grading:
Once a pivot is detected, the script measures the absolute price distance from the previous pivot to the current one. If this distance exceeds 1.5× the current ATR value, the pivot is classified as "Strong"; otherwise "Weak." A minimum swing size filter (Min Swing Size, expressed as an ATR multiple) lets you suppress insignificant swings entirely.
Structure logic:
The indicator maintains a running structure direction variable. When a new pivot high exceeds the previous pivot high and the current structure is already bullish, it triggers a BOS ↑. If the structure was bearish, it triggers a CHoCH ↑ (reversal). Mirror logic applies for lows. This follows standard Smart Money Concepts methodology.
Missed pivot logic:
Between any two consecutive same-side pivots, the indicator records the highest high or lowest low that occurred in the gap. This "missed" extreme is marked and extended as a horizontal level. The level is automatically removed from the chart when price closes through it — keeping only active levels visible.
Live pivot:
After each confirmed pivot, the script starts tracking the running high (if expecting a pivot high next) or running low (if expecting a pivot low). This value updates every bar and serves as one anchor of the Fibonacci grid. A "▲?" or "▼?" label and a dashed line show where this potential pivot currently sits.
Fibonacci grid:
The retracement is calculated between the lower and upper anchor of the current swing (using the confirmed pivot on one side and the live extreme on the other). All seven standard ratios are drawn as horizontal lines from the earlier pivot's bar index to 5 bars into the future. The 0.5 and 0.618 levels are drawn thicker and in a highlight color for emphasis.
⚠️ REPAINTING BEHAVIOR — IMPORTANT
This indicator is designed as a live analysis tool , not a backtesting signal generator. The following elements will change on the current bar:
— The Live Pivot marker moves as the running extreme updates
— The Fibonacci grid redraws as the live anchor moves
— BOS/CHoCH labels based on pivots inherit the standard pivot detection delay
Confirmed pivots themselves do not repaint — once a bar is no longer within the pivot lookback window, its pivot status is final. The alert system includes a "Confirmed Only" toggle (on by default) that restricts alerts to bar-close events, ensuring no repainting alerts reach your trading bot.
📖 HOW TO USE
Reading the chart:
— ▲ / ▽ labels at swing lows = confirmed pivot lows (filled = Strong, outline = Weak)
— ▼ / △ labels at swing highs = confirmed pivot highs (filled = Strong, outline = Weak)
— ◇ markers = missed reversals (cyan for missed lows, orange for missed highs)
— Dotted horizontal lines from ◇ markers = active missed levels (auto-removed when broken)
— "BOS ↑/↓" yellow labels = Break of Structure (trend continuation)
— "CHoCH ↑/↓" green/red labels = Change of Character (potential reversal)
— Purple dashed line with "▲?" or "▼?" = live potential pivot (updates every bar)
— Fibonacci lines with OTE zone fills = dynamic retracement grid
Suggested workflow:
— Use CHoCH labels as early warning of trend reversals — then look for entries in the Fibonacci discount/premium zones
— Use BOS labels to confirm trend continuation — look for pullback entries at 0.618–0.786 retracement
— Watch the dashboard's "Fib Zone" readout: Discount (below 38.2%) favors buys, Premium (above 61.8%) favors sells, Equilibrium suggests waiting
— Missed reversal levels act as hidden S/R — watch for reactions when price revisits them
Timeframe guidance:
— Scalping (1–5min): Pivot Length 3–5, Min Swing 0.5 ATR, Strong Only filter
— Intraday (15min–1H): Pivot Length 5–10, default settings
— Swing (4H–Daily): Pivot Length 10–20, show all strengths for full context
⚙️ KEY SETTINGS REFERENCE
— Pivot Length (default 5): bars left/right for pivot detection — lower = faster but noisier
— ATR Length (default 14): period for strength grading and minimum swing filter
— Min Swing Size (default 0.0): minimum swing as ATR multiple — increase to filter small moves
— Pivot Strength Filter (default All): show All / Strong Only / Weak Only
— Max Active Levels (default 10): maximum missed-reversal horizontal lines displayed
— Show Live Pivot (default On): toggle the real-time potential pivot tracker
— Show Fibonacci Grid (default On): toggle the dynamic retracement overlay
— Show Extensions (default Off): add 1.272 and 1.618 extension levels
— Show Fib Zone Fill (default On): highlight OTE zones (0.236–0.382 and 0.618–0.786)
— Alerts: Confirmed Only (default On): restrict alerts to bar-close confirmation — recommended for bots
📊 Dashboard
The info panel (adjustable to any chart corner) displays:
— Current market structure (Bullish / Bearish / Ranging)
— Last confirmed pivot type and price
— Live pivot direction and price
— Number of active missed-reversal levels
— Last PH and PL values
— Fib Zone classification (Premium / Discount / Equilibrium) with percentage
— Current timeframe and indicator version
⚠️ DISCLAIMER
— This tool is intended for live chart analysis and structure mapping — it is not a standalone entry/exit signal system.
— The live pivot and Fibonacci grid are designed to repaint by nature — they track the forming swing in real time. Do not use them for backtesting.
— Past pivot patterns and structure shifts do not guarantee future price behavior.
— Always combine structural analysis with proper risk management and additional confluence. Indicador

Estratégia

Indicador

Indicador

Indicador

MTF Trend Panel [Dow/SMC]■ 概要
複数の時間足(マルチタイムフレーム:MTF)のトレンド方向をひとつのチャート上で一目で確認できるパネル型インジケーターです。トレンドの判定基準として、「ダウ理論(Dow)」と「スマートマネーコンセプト(SMC)」の2種類のロジックからお好みのものを選択できます。
■ 主な特徴
2種類のトレンド判定ロジック:
Dow(ダウ理論モード): 直近2つのピボットハイ(高値)とピボットロー(安値)を比較し、高値・安値の切り上げで「上昇トレンド」、切り下げで「下降トレンド」と判定します。
SMC(スマートマネーコンセプトモード): ローソク足の終値が直近のピボットハイ、またはピボットローをブレイク(BOS / CHoCH)した方向に基づいてトレンドを判定します。
最大6つの時間足を監視:
月足、週足、日足、4時間足、1時間足、15分足など、監視したい時間足を最大6つまで任意に設定可能です。
カスタマイズ可能なUI:
パネルの表示位置(四隅)や、文字のサイズをチャート環境に合わせて自由に変更できます。
■ 設定項目
判定ロジック設定: ロジックの切り替え(Dow / SMC)、ピボット判定に用いる左右のバー数(Left/Right Bars)
タイムフレーム設定: パネルに表示する6つの時間足(Timeframe 1 ~ 6)
パネル設定: 表示位置(Top Right, Bottom Leftなど)、文字サイズ
----------------------------------------------------------------------------------------
■ Overview
This indicator provides a multi-timeframe (MTF) panel that allows you to check the current trend direction across up to 6 different timeframes at a glance. You can seamlessly switch between two distinct logic modes for trend detection: Dow Theory and Smart Money Concepts (SMC).
■ Key Features
Two Trend Detection Logics:
Dow Mode: Uses classic Dow Theory. It compares the last two Pivot Highs and Pivot Lows. An uptrend is identified by higher highs and higher lows, while a downtrend is identified by lower highs and lower lows.
SMC Mode: Based on Smart Money Concepts. The trend is determined by the closing price breaking the most recent Pivot High or Pivot Low (BOS / CHoCH).
Monitor Up to 6 Timeframes:
Fully customizable. You can set up to 6 timeframes to monitor simultaneously (e.g., 1M, 1W, D, 4H, 1H, 15m).
Customizable UI:
Easily adjust the panel's position on the chart (top-right, bottom-left, etc.) and text size to fit your trading setup.
■ Settings
Logic Settings: Choose between 'Dow' and 'SMC'. Adjust Left/Right bars for Pivot calculations.
Timeframe Settings: Select 6 specific timeframes to display on the panel.
Panel Settings: Select screen position and text size. Indicador

Liquidity Radar# Liquidity Radar
## Overview
Liquidity Radar is a Smart Money Concepts (SMC) indicator that visualizes where institutional liquidity rests in the market. It combines automatic market structure detection (BOS & CHoCH), a thermal liquidity heatmap, dynamic order blocks, and fair value gaps into a single, performance-optimized overlay.
**Free & Open Source** — no invite-only access, no paywall. Full source code, fully transparent.
## The Concept: Why Liquidity Matters
In institutional trading, **liquidity pools** form above swing highs and below swing lows — these are clusters of stop-loss orders from retail traders. Smart money targets these pools to fill large positions. Understanding where liquidity rests gives you an edge in anticipating price movements:
- **Swing High Liquidity** — Stop-losses from short sellers sit above swing highs
- **Swing Low Liquidity** — Stop-losses from long buyers sit below swing lows
- **Liquidity Sweeps** — When price takes out a swing level to grab these stops, it often reverses
The indicator automates the detection and visualization of these key levels.
## Core Features
### 1. Thermal Liquidity Heatmap
The signature feature. Liquidity zones appear at every confirmed swing high and swing low with a thermal color gradient:
- **Fresh zones** — Warm colors (orange/yellow) indicate high relevance
- **Aging zones** — Cool colors (purple/blue) indicate decreasing relevance as time passes
- **Volume-weighted intensity** — Zones formed on high-volume bars appear more intense
- **Auto-cleanup** — Zones fade out over a configurable decay period and are removed when price sweeps through them
### 2. Market Structure Detection (BOS & CHoCH)
Automatic swing high/low detection using pivot-based logic:
- **BOS (Break of Structure)** — Price breaks a prior swing level in the trend direction (continuation). Shown as dashed lines.
- **CHoCH (Change of Character)** — Price breaks a prior swing level against the trend (potential reversal). Shown as solid lines with thicker width.
- Color-coded: Cyan/Teal = bullish, Magenta/Pink = bearish
### 3. Dynamic Order Blocks
Institutional supply and demand zones rendered as semi-transparent boxes:
- **Bullish OB** — The last bearish candle before a strong bullish move (at swing lows)
- **Bearish OB** — The last bullish candle before a strong bearish move (at swing highs)
- Configurable mitigation threshold — controls how much price must penetrate the block before it is considered mitigated
- Auto-removed when price closes through the block
### 4. Fair Value Gaps (FVG)
Three-candle inefficiency detection:
- Bullish FVG: Gap between candle 1's low and candle 3's high
- Bearish FVG: Gap between candle 1's high and candle 3's low
- ATR-based noise filter removes insignificant gaps
- Auto-removed when price fills the gap
- Default: OFF (toggle on in settings)
### 5. Premium / Discount Zones
Based on the current swing range:
- **Premium Zone** (upper half) — Light red background
- **Discount Zone** (lower half) — Light green background
- **Equilibrium Line** (50%) — Dashed amber line
- Default: OFF (toggle on in settings)
## Dashboard
A compact, dark-themed info panel displaying:
- **Trend** — Current market direction (Bullish / Bearish / Neutral)
- **Structure** — Last detected structure signal (BOS or CHoCH)
- **Liq. Heat** — How many liquidity zones are near the current price (High / Medium / Low)
- **Volume** — Above or below 20-period average
- **Momentum** — RSI(14) status (Overbought / Neutral / Oversold)
- **Next Zone** — Nearest liquidity zone with price level and distance in percent
## Auto-Timeframe Adaptation
All parameters automatically adjust to your chart timeframe:
| Timeframe | Swing Lookback | Heatmap Decay |
|-----------|---------------|---------------|
| 1-5 min | 6 | 100 bars |
| 15 min | 10 | 80 bars |
| 30 min | 12 | 80 bars |
| 1 Hour | 15 | 60 bars |
| 4 Hour | 22 | 50 bars |
| Daily | 35 | 40 bars |
| Weekly+ | 50 | 30 bars |
You can switch to manual mode for full control.
## Alert Types (7)
1. Bullish BOS — Break of Structure confirmed (continuation up)
2. Bearish BOS — Break of Structure confirmed (continuation down)
3. Bullish CHoCH — Change of Character detected (potential reversal up)
4. Bearish CHoCH — Change of Character detected (potential reversal down)
5. Bullish Liquidity Sweep — Swing high liquidity taken
6. Bearish Liquidity Sweep — Swing low liquidity taken
7. Price Entering Order Block — Price enters a bullish or bearish OB zone
## Settings
**Market Structure:**
- Show BOS / CHoCH (on/off)
- Auto Swing Lookback (on/off)
- Manual Swing Lookback (3-100)
- BOS / CHoCH line styles and width
**Liquidity Heatmap:**
- Show Heatmap (on/off)
- Auto Decay Period (on/off)
- Manual Decay (10-500 bars)
- Zone Width (ATR multiplier)
- Volume-Weighted Intensity (on/off)
- Max Active Zones (4-20)
**Order Blocks:**
- Show Order Blocks (on/off)
- Max OBs per Side (1-6)
- Mitigation Threshold (0.0-1.0)
**Fair Value Gaps:**
- Show FVGs (on/off, default OFF)
- Min FVG Size (ATR multiplier)
- Max Active FVGs (2-15)
- FVG Extend (bars)
**Premium / Discount:**
- Show Zones (on/off, default OFF)
- Zone Transparency
**Dashboard:**
- Show Dashboard (on/off)
- Position (Top Right / Top Left / Bottom Right / Bottom Left)
- Size (Tiny / Small / Normal)
**Visual Settings:**
- All 5 colors fully customizable
- Watermark (on/off)
## Non-Repainting
All signals are calculated on confirmed (closed) bars only. Pivot detection inherently requires N bars of confirmation on each side. BOS/CHoCH signals fire on the bar where the break occurs, after the swing point is already confirmed. What you see is what happened — no hindsight bias.
## Works On
- Crypto (BTC, ETH, SOL, ...)
- Forex (EUR/USD, GBP/JPY, ...)
- Stocks (AAPL, TSLA, NVDA, ...)
- Futures & Indices (NQ, ES, SPX, ...)
- Any timeframe from 1 minute to Monthly
## Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. Always do your own research and manage your risk. Past performance does not guarantee future results. Trading involves substantial risk of loss. Indicador

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 Indicador

Diamond V5 : Institutional SMC & Liquidity EngineDiamond V5: Ultimate Institutional SMC & Liquidity Engine
Diamond V5 is a high-precision trading framework designed for professional traders who follow SMC (Smart Money Concepts) and ICT methodologies. Unlike standard indicators, Diamond V5 is a complete structural engine that identifies where liquidity is resting and how institutional players are moving the market.
🚀 Key Features:
Auto-Market Detection: Smart algorithms that automatically adjust parameters (Sweep tolerance, confirmations) based on whether you are trading Gold, Forex, or Indices.
Advanced Structure Engine: Real-time mapping of BOS (Break of Structure) and CHoCH (Change of Character) with body-close confirmation.
Liquidity Clustering: Detects Equal Highs/Lows (EQH/EQL) with dynamic tolerance, identifying high-probability liquidity pools.
PD Array Filter: Integrated Premium/Discount logic to ensure you only Buy in Discount and Sell in Premium zones.
Institutional Confirmation: Combined Displacement, Fair Value Gaps (FVG), and Volume Spikes to filter out fakeouts.
Pro Dashboard: A comprehensive HUD showing HTF Trend, LTF Structure, Pricing status, and Killzone activity at a glance.
🛠 How to Trade (The Strategy):
Context: Ensure HTF Trend and Internal Structure are aligned (Green/Red Dashboard).
Setup: Wait for a Liquidity Sweep (Orange Diamond) in a Premium/Discount zone.
Trigger: Look for the BUY/SELL label which appears after a displacement candle creates a new FVG.
Target: Aim for the "Weak High/Low" target lines or use the dynamic 1:2 RR TP line.
📈 Optimized For:
Forex: EURUSD, GBPUSD, USDJPY (15m/1h)
Indices: NAS100, US30, SPX500 (1m/5m - NY Killzone)
Commodities: XAUUSD / GOLD (5m/15m)
توضیحات فارسی:
اندیکاتور Diamond V5 یک موتور معاملاتی پیشرفته مبتنی بر سبک اسمارت مانی (SMC) است. این ابزار با شناسایی خودکار ساختار بازار (BOS/CHoCH) و شکار نقدینگی (Liquidity Sweeps)، دقیقترین نقاط ورود در جهت روند اصلی را نمایش میدهد.
ویژگیهای برتر:
تشخیص خودکار نوع بازار (فارکس، طلا، شاخصها).
فیلتر قیمت منصفانه (ترید فقط در نواحی ارزان یا گران).
شناسایی نقدینگیهای مجتمع (Equal Highs/Lows).
ترسیم خودکار باکسهای FVG برای تایید ورود پول هوشمند.
داشبورد مدیریتی کامل برای بررسی همزمانی چندین فاکتور تحلیلی. Indicador

Smart Money Concepts AI - AdaptiveSmart Money Concepts AI scores every Fair Value Gap and Order Block with a 5-factor quality engine so you can instantly see which zones are worth trading and which are noise.
◈ How It Works
This indicator detects three core Smart Money / ICT concepts and layers an AI scoring system on top.
Market Structure tracks swing highs and lows to identify Break of Structure (BOS) and Change of Character (CHoCH). BOS means the trend is continuing. CHoCH means it may be reversing. The indicator automatically classifies each break and draws labeled lines on your chart. CHoCH lines are solid and thicker since they're the more significant events. BOS lines are dashed. Both can be toggled independently.
Fair Value Gaps (FVGs) are 3-candle imbalances where price moved so fast it left a gap. The indicator detects these automatically and draws scored boxes on the chart. Each FVG gets a quality score from 0 to 100. Higher-scored zones appear more vivid; lower-scored zones fade out. When price fills the gap (mitigation), the box turns dashed.
Order Blocks (OBs) are the last opposite candle before a structural break. They represent institutional accumulation or distribution. When a bullish CHoCH/BOS fires, the indicator looks back for the last bearish candle near the swing low and marks it as a demand zone. Bearish OBs work in reverse. Each OB is scored by displacement strength, volume, and trend alignment.
◈ The AI Scoring Engine
Every zone gets a 0-100 quality score based on 5 factors:
For FVGs:
Gap Size vs ATR: sweet spot is 0.3x to 1.5x ATR. Too small = noise, too big = likely fills fast
Displacement Strength: body-to-range ratio of the middle candle. Full-body candles = institutional conviction
Volume: displacement candle volume vs 20-period average
Trend Alignment: does the FVG direction match the EMA trend?
Structure Alignment: does it align with the current BOS/CHoCH direction?
For Order Blocks:
OB Size: tighter zones (0.3-1.0 ATR) score higher for precision
Post-OB Displacement: how far price moved after leaving the OB. Bigger moves = stronger institutional interest
Volume, Trend, and Structure: same alignment checks as FVGs
The score directly controls visual opacity. High-scoring zones are vivid and prominent, low-scoring zones are subtle and transparent. You can filter to "High Only" to hide zones scoring below 50.
◈ Signals
Signals fire when price enters a scored FVG zone with structural and trend alignment. If a scored Order Block overlaps the FVG, the score increases further.
★ Bright signals = high confluence (score ≥ 70 default). FVG + OB overlap + structure + trend all confirm.
○ Dim signals = moderate confluence (score ≥ 50). The setup exists but not all factors align perfectly.
By default, only ★ bright signals are shown to keep the chart clean. You can enable dim signals in settings if you want to see every zone touch. A configurable cooldown (default 10 bars) prevents signal spam.
All signals are non-repainting. They only appear on confirmed bar closes.
◈ How to Read the Dashboard
SMC AI ◈: header
Structure: current direction (▲ BULLISH / ▼ BEARISH / — RANGING) with bias label
Trend(50): whether the EMA trend agrees with structure (✓ ALIGNED = go / ✗ COUNTER = caution)
Best FVG: quality score of the highest-rated active FVG in the current direction, with visual bar
Best OB: quality score of the highest-rated active Order Block, with visual bar
Signal: last signal state (★ LONG / ○ SHORT / — WAITING) with the actual entry score
Zones: count of active bull/bear FVGs and OBs on chart
The Signal row shows the actual score from when the signal fired, so it always matches the label on the chart.
◈ Recommended Settings
Forex (EUR/USD, GBP/JPY) 1H to 4H: Swing Length 5, ATR 14, Trend EMA 50, Signal Cooldown 10
Forex scalping 15min: Swing Length 3, ATR 10, Trend EMA 34, Signal Cooldown 5
Crypto (BTC, ETH) 1H to 4H: Swing Length 5, ATR 14, Trend EMA 50, Signal Cooldown 10
Gold / Commodities 4H to Daily: Swing Length 7, ATR 14, Trend EMA 50, Signal Cooldown 15
Indices (NAS100, SPX500) 15min to 1H: Swing Length 3 to 5, ATR 10, Trend EMA 34, Signal Cooldown 8
For aggressive setups: Lower Min Signal Score to 40, enable dim signals, show more FVGs (8 to 10)
For conservative setups: Raise Min Signal Score to 70, filter FVGs to "High Only", increase cooldown
◈ Key Features
✓ Non-repainting: all signals confirmed on bar close
✓ AI zone scoring: 5-factor quality engine, 0-100 per zone
✓ Visual hierarchy: opacity reflects score, you instantly see what matters
✓ Mitigation tracking: filled FVGs and broken OBs fade automatically
✓ Rich tooltips: hover any signal for full breakdown
✓ 9 alert conditions: BOS, CHoCH, bull/bear signals, AI-confirmed signals
✓ Signal clutter control: cooldown + dim toggle keeps charts clean
✓ Fully customizable: colors, zone counts, thresholds, all adjustable
✓ 100% original code: not derived from any existing script
◈ What This Is NOT
This is not a "paint arrows and win" indicator. SMC/ICT trading requires understanding context. Where is structure pointing? Which zones are institutionally significant? Is the trend aligned? This indicator helps you answer those questions faster by scoring every zone objectively.
Always use proper risk management. Past performance does not guarantee future results.
Happy trading. Indicador

Indicador

Market Structure Signals | ProjectSyndicateMarket Structure Signals automatically detects Break of Structure (BOS) and Change of Character (CHoCH) patterns using pivot-based swing analysis, generates clean entry levels with ADR10-calibrated TP1/TP2/SL zones, and provides a professional performance dashboard tracking win rates and trade history for data-driven strategy optimization.
Core Features
• 📊 Pivot-Based Market Structure Detection — Automatically identifies swing highs/lows using customizable lookback period (5-100 bars) to detect institutional order flow shifts and trend reversals.
• ⚡ BOS (Break of Structure) Signals — Triggers when price breaks previous swing high/low in trend direction, indicating continuation of smart money positioning.
• 🔄 CHoCH (Change of Character) Signals — Detects when breakout reverses previous trend direction, signaling potential trend exhaustion or reversal setup.
• 🎨 Clean Visual Presentation — Horizontal breakout lines with large BOS/CHoCH labels at breakout levels, color-coded for bullish (teal #21c997) and bearish (purple #cc24e2) setups.
• 📏 ADR10-Based TP/SL Calculation — Uses 10-day Average Daily Range (ADR10) percentage-based targets for consistent, volatility-adjusted risk management across all instruments and timeframes.
• 🎯 Dual Take Profit Levels — TP1 (default 20% of ADR10) and TP2 (default 30% of ADR10) with clean rectangular zones and price labels for clear profit targets.
• 🛡️ Stop Loss Zones — SL level (default 20% of ADR10) plotted as clean rectangular zone below entry for longs, above entry for shorts.
• 📦 Clean Zone Visualization — Rectangular boxes with customizable transparency (default 85% fill, 50% border) extend from entry bar to current bar for active trades.
• 🚫 No Position Sizing Clutter — Entry labels show clean price levels only, no quantity calculations or risk percentages cluttering the chart.
Professional Performance Dashboard
• 📈 Real-Time Statistics Panel — Top-right dashboard displays Total Signals, Closed Trades, TP1 Wins, TP2 Wins, and SL Losses with color-coded values.
• 🎯 Win Rate Metrics — Shows TP1 Win Rate (trades hitting at least TP1), TP2 Win Rate (trades reaching TP2), and Overall Win Rate (any TP hit).
• 📜 Last 10 Trades History — Color-coded trade results (TP2=teal, TP1=green, SL/Reversal=red) for quick performance review.
• 🔧 Adjustable Text Size — Dashboard text size setting (Tiny/Small/Normal/Large/Huge) for optimal visibility on any screen size or resolution.
• ✅ Mathematically Accurate — TP2 win rate always ≤ TP1 win rate (since TP2 is further), Overall win rate = TP1 win rate (any TP hit counts as win).
• 🔄 Dynamic Updates — Statistics recalculate automatically when you adjust TP/SL percentage settings to show historical performance with new parameters.
⚙️ Customization Options
Market Structure Settings
• Market Structure Lookback (5-100, default 25) — Number of candles for pivot high/low detection, lower = more sensitive, higher = major swings only.
• BOS Confirmation (Close/Wick) — Use candle close or wick for breakout confirmation, Close = conservative, Wick = aggressive entries.
• Show CHoCH Labels (true/false) — Toggle Change of Character labels on/off, disable for cleaner chart with BOS signals only.
TP/SL Settings (ADR10-Based)
• TP1 % of ADR10 (default 20%) — First target distance as percentage of 10-day Average Daily Range, adjust based on instrument volatility.
• TP2 % of ADR10 (default 30%) — Second target distance as percentage of ADR10, typically 1.5-2x TP1 for optimal risk:reward.
• SL % of ADR10 (default 20%) — Stop loss distance as percentage of ADR10, keeps risk consistent with market volatility.
🔔 How to Setup Alerts
Market Structure Signals includes built-in alert conditions for TradingView's native alert system:
Step-by-Step Alert Setup:
1.Add Indicator to Chart — Apply "Market Structure Signals" to your chart with desired settings.
2.Open Alerts Panel — Click the Alert icon (bell) in top toolbar or press Alt + A (Windows) / Option + A (Mac).
3.Create Alert — Click "Create Alert" button (+ icon).
4.Select Condition — In "Condition" dropdown, select "Market Structure Signals" and choose:
•"Bullish BOS/CHoCH" — Alert when bullish breakout detected
•"Bearish BOS/CHoCH" — Alert when bearish breakout detected
5.Configure Alert Options:
•Alert Name: e.g., "XAUUSD M30 - Bullish BOS"
•Frequency: "Once Per Bar Close" (recommended) or "Only Once"
•Expiration: Set alert duration or leave open-ended
6.Notification Settings: Enable desired notification methods:
•📱 Push notifications to TradingView mobile app
•📧 Email notifications
•🔊 Sound alerts in browser
•🪝 Webhook URL for third-party integrations
7.Save Alert — Click "Create" to activate alert.
Alert Best Practices:
• Use "Once Per Bar Close" frequency to avoid false alerts during bar formation.
• Set separate alerts for bullish and bearish signals on each timeframe you trade.
• Test alerts on demo/paper trading before live use to verify settings.
• Combine with price action confirmation before entering trades.
📈 Supported Markets & Instruments
✅ Gold (XAUUSD) — Excellent performance on M30/H1/H4 with ADR10-based targets perfectly suited for gold volatility.
✅ Forex Pairs — EUR/USD, GBP/USD, USD/JPY, AUD/USD, NZD/USD, and all major/minor pairs.
✅ Cryptocurrencies — BTC/USD, ETH/USD, and all crypto pairs (adjust ADR10 percentages for higher volatility).
✅ Stock Indices — ES (S&P 500), NQ (Nasdaq), YM (Dow Jones), RTY (Russell 2000).
✅ Individual Stocks — Large-cap stocks with sufficient liquidity and daily range.
✅ Commodities — Oil (CL), Natural Gas (NG), Silver (XAGUSD), Copper.
⏰ Recommended Timeframes
Optimal Performance:
• M10-M15 — Scalping and intraday setups, higher signal frequency, verify dashboard win rates before use.
• M30-H1 — Best balance of signal quality and frequency, recommended starting point for most traders.
Important Notes:
• Always verify recent performance using the dashboard before trading new timeframes.
• Lower timeframes (M5-M10) may produce more signals but require tighter risk management.
• Higher timeframes (H4-D1) produce fewer but more reliable structural breaks.
• ADR10-based targets automatically adapt to each timeframe's volatility characteristics.
How to Use This Indicator
Trading Workflow:
1.Apply to Chart — Add "Market Structure Signals" to your preferred instrument and timeframe (start with M30/H1).
2.Review Dashboard — Check win rates and recent trade history to assess current market structure quality and strategy performance.
3.Wait for Signal — BOS label appears when price breaks previous swing high/low, CHoCH when breakout reverses trend.
4.Confirm Entry — Use price action, candlestick patterns, or your trading system to confirm entry at breakout level.
5.Manage Trade — TP1/TP2 zones show profit targets, SL zone shows stop loss, adjust position size based on your risk tolerance.
6.Monitor Performance — Track results in dashboard, adjust TP/SL percentages if needed based on win rate data.
Strategy Tips:
• Focus on BOS signals in trending markets for continuation setups.
• Watch for CHoCH signals at key support/resistance for reversal opportunities.
• Combine with volume analysis, order flow, or momentum indicators for confirmation.
• Use higher timeframe structure (H4/D1) to filter lower timeframe signals (M30/H1).
• Adjust ADR10 percentages based on instrument: Gold 20-30%, Forex 15-25%, Crypto 30-50%.
🎯 Why This Indicator is Unique
• ✅ Volatility-adaptive targets vs fixed-pip targets
• ✅ Clean professional dashboard vs cluttered multi-panel stats
• ✅ Mathematically accurate win rates vs inflated performance metrics
• ✅ No position sizing clutter vs quantity/risk calculations on every label
• ✅ Customizable text size for any screen vs tiny unreadable text
• ✅ Built from scratch vs copy-paste indicator code
⚠️ IMPORTANT DISCLAIMERS
Educational Purpose Only
This indicator is designed for educational purposes only to help traders understand Smart Money Concepts (SMC), market structure analysis, and Break of Structure (BOS) / Change of Character (CHoCH) detection methodologies. It is NOT financial advice and should NOT be used as a standalone trading system.
Past Performance Warning
Past results are not a guarantee of future performance. Historical win rates, trade statistics, and dashboard metrics shown in backtesting or past chart data do not predict or guarantee future trading outcomes. Market conditions change, volatility fluctuates, and what worked historically may not work in current or future markets.
Risk Disclosure
Trading financial instruments involves substantial risk of loss and is not suitable for all investors. You should carefully consider your investment objectives, level of experience, and risk appetite before trading. Never trade with money you cannot afford to lose. Indicador

[TehThomas] - Aligned Timeframe Fair Value Gaps█ OVERVIEW
This indicator automatically detects and displays Fair Value Gaps (FVGs) from higher timeframes on your current chart, following ICT (Inner Circle Trader) methodology. It intelligently selects the optimal higher timeframe based on your current chart timeframe and tracks both filled and unfilled gaps with full visual customization, including dynamic shrinking gaps and midline references.
█ KEY FEATURES
✓ Automatic Timeframe Alignment
- Intelligently selects higher timeframe based on current chart (1min→15min, 5min→1H, 1H→Daily, etc.)
- Uses confirmed/closed HTF bars only for reliable gap detection
- Displays timeframe label on each FVG box for clarity
✓ Dynamic Gap Management
- Optional dynamic (shrinking) gaps that contract as price fills them partially
- Automatic removal when gaps are fully filled by price
- Tracks up to 200 historical FVGs with intelligent visibility management
✓ Advanced Display Controls
- Show only unfilled gaps (reduces chart clutter)
- Configurable box extension length into future bars
- Optional midline display with customizable style (solid/dashed/dotted)
- Fully customizable colors for bullish/bearish gaps, borders, and labels
█ HOW IT WORKS
The indicator monitors the aligned higher timeframe and detects three-candle patterns where price creates an imbalance, areas where aggressive buying or selling left gaps that were never properly filled. When a bullish FVG forms (gap between HTF bar lows and highs), it indicates rapid upward price movement that skipped price levels, creating a zone where price may return to seek "fair value". Bearish FVGs work inversely, forming during aggressive downward moves.
The indicator places boxes starting from where the gap actually formed (2 HTF bars ago) and extends them forward. As new bars form, it continuously checks if price has entered or filled each gap. In dynamic mode, gaps shrink in real-time as price partially fills them. The visibility system ensures only the most recent unfilled gaps are displayed, keeping your chart clean while maintaining historical data.
█ SETTINGS
Boxes Group:
- Extend boxes: Number of bars to project gaps into the future (default: 20)
- Min Gap Size (%): Minimum percentage size to filter small/noise gaps (default: 0%)
- Dynamic (shrinking) gaps: Enable gaps to shrink as price fills them partially
- Max Unfilled Gaps to Display: Limit visible unfilled gaps on chart (default: 10)
- Max FVGs in History: Total gaps stored in memory for tracking (50-200, affects performance)
Colors Group:
- Bullish Gap Color: Fill color for bullish FVGs
- Bearish Gap Color: Fill color for bearish FVGs
- Gap Border Color: Border color for all gap boxes
Midline Group:
- Show Midline: Display 50% level line through each gap
- Midline Color: Color of the midline
- Midline Style: Visual style (Solid/Dashed/Dotted)
Label Group:
- Show FVG Label: Display timeframe label on each gap box
- Label Text Color: Color of label text
- Label Size: Text size (Tiny/Small/Normal/Large)
█ HOW TO USE
1. Apply to any timeframe - The indicator automatically selects the appropriate higher timeframe for analysis
2. Identify imbalance zones - FVG boxes show areas where price moved too quickly, creating inefficiency that often acts as a magnet for future price action
3. Use for retracement entries - Wait for price to return to an unfilled FVG after a Break of Structure (BOS) or Market Structure Shift (MSS) for high-probability entry zones
4. Watch midlines - The 50% level of each gap often provides the strongest reaction point
5. Monitor gap filling - When gaps are filled, they signal that the imbalance has been resolved; dynamic mode shows partial fills in real-time
█ TRADING STRATEGY EXAMPLES
Trend Continuation Strategy:
After a strong bullish move creates multiple bullish FVGs, wait for price to retrace into the nearest unfilled FVG, then enter long positions expecting continuation. The FVG acts as a support zone where institutional buyers may re-enter.
Confluence Trading:
Combine FVGs with other ICT concepts like Order Blocks, liquidity grabs, or Premium/Discount zones. The strongest setups occur when an FVG aligns with multiple confluence factors, increasing probability of successful retracement entries.
Breakout Confirmation:
After a Break of Structure, look for price to return to the FVG created during the breakout candle. This retest provides a lower-risk entry point with clear invalidation levels (below/above the gap).
█ IDEAL FOR
- ICT (Inner Circle Trader) methodology practitioners
- Smart Money Concepts (SMC) traders seeking institutional footprints
- Multi-timeframe analysis traders who want higher timeframe context on lower timeframe charts
- Price action traders focusing on supply-demand imbalances
- Swing and intraday traders seeking high-probability retracement zones
- Traders who value clean, organized chart visualization with controlled gap display
█ TECHNICAL SPECIFICATIONS
- Pine Script Version: 6
- Chart Type: Overlay indicator
- Maximum Boxes: 500
- Maximum Lines: 500 (for midlines)
- Lookback Period: 2000 bars
- HTF Data: Uses confirmed/closed bars with lookahead to avoid repainting
- Memory Management: Stores up to 200 historical FVGs with intelligent visibility control
- Update Frequency: Real-time gap tracking and dynamic adjustment on every bar
█ NOTES & DISCLAIMERS
- FVGs represent areas of price imbalance, not guaranteed reversal or continuation zones
- Higher timeframe gaps may take significant time to be filled or may never fill in strong trending markets
- Dynamic gaps provide visual feedback but increase computational load; disable for better performance on slower devices
- Max history setting affects performance: higher values enable more unfilled gaps but require more processing power
- This indicator works best when combined with proper market structure analysis, liquidity concepts, and risk management
- Past performance of FVG fills does not guarantee future results
- Always use appropriate position sizing and stop losses when trading FVG retracements
Indicador

Indicador

Market Structure Dashboard | Flux ChartsGENERAL OVERVIEW
Market Structure Dashboard is a multi-timeframe market structure analysis indicator. It combines EMA trend detection, swing high/low tracking, market structure labels, Order Block detection, Fair Value Gap detection, liquidity sweep detection, volume analysis, volatility analysis, trading sessions, ICT killzones, a weighted trend bias system, and HTF levels into one unified dashboard. Each component is calculated independently across up to 7 configurable timeframes and displayed together in a single organized view.
(Screenshot: Full dashboard overview - all sections visible)
(Screenshot: Dashboard on a busy chart showing OB/FVG boxes, swing labels, HTF lines)
WHAT IS THE THEORY BEHIND THIS INDICATOR?
The core idea is that a trade setup becomes more reliable when multiple timeframes agree on direction. A bullish signal on a 5-minute chart carries more weight when the 15-minute, 1-hour, and daily timeframes also show bullish conditions. Analyzing each timeframe separately is both time-consuming and prone to error. The Market Structure Dashboard automates this process by calculating key metrics across all enabled timeframes and presenting them side by side.
The indicator draws from two established trading methodologies. Smart Money Concepts (SMC) focuses on identifying institutional footprints in price action through patterns like Order Blocks, Fair Value Gaps, and liquidity sweeps. Inner Circle Trader (ICT) methodology emphasizes time-based analysis through specific trading windows called killzones and the importance of previous day, week, and month highs and lows.
Rather than treating these concepts in isolation, the dashboard organizes them into a layered framework. Structure shows where the market has been. Zones show where it may react. Sessions and killzones show when activity tends to increase. The trend bias system combines all factors into a single weighted score, giving traders a quick read on overall market sentiment across timeframes.
The purpose of the Market Structure Dashboard is to present the current market activity across multiple timeframes and how these conditions relate to earlier market structure, volume, and timing.
(Screenshot: Multi-timeframe confluence example - all TFs showing bearish alignment)
(Screenshot: Multi-timeframe disagreement example - mixed signals across TFs)
MARKET STRUCTURE DASHBOARD FEATURES
The Market Structure Dashboard indicator includes 14 main features:
EMA Trend Detection
Swing High/Low Tracking
Market Structure Labels (HH/HL/LH/LL)
Order Block Detection
Fair Value Gap Detection
Liquidity Sweep & Reclaim Detection
Volume Analysis
Volatility Analysis
Trading Sessions
ICT Killzones
Trend Bias System
HTF Levels (PDH/L, PWH/L, PMH/L)
Visual Overlays
Dashboard Customization
Each component operates independently while sharing the same underlying market structure logic. All features are calculated across up to 7 user-configurable timeframes and displayed in a unified dashboard. Detailed explanations for each component are provided in the sections that follow.
EMA TREND DETECTION
🔹 What is an EMA?
An Exponential Moving Average (EMA) is a type of moving average that gives more weight to recent price data. Unlike a Simple Moving Average that weights all prices equally, the EMA responds faster to recent price changes while still considering historical data. Traders use EMAs to identify trend direction and dynamic support/resistance levels.
When price trades above the EMA, the short-term trend is considered bullish. When price trades below the EMA, the short-term trend is considered bearish. The distance between price and EMA can indicate trend strength, with larger distances suggesting stronger momentum.
🔹 How the Indicator Uses EMA
The dashboard calculates a 9-period EMA (configurable) for each enabled timeframe. The EMA Trend column displays both direction and distance.
◇ Direction is shown with an up arrow (↑) when price is above EMA, or a down arrow (↓) when price is below EMA.
◇ Distance is displayed as percentage, price, or pips based on the Distance Display setting. For example, "+0.45% ↑" means price is 0.45% above the EMA on that timeframe.
◇ Color coding shows green when price is above EMA (bullish) and red when price is below EMA (bearish).
The EMA can optionally be plotted as a visual overlay on the chart. It can also be included as a factor in the Trend Bias calculation, where each timeframe's EMA direction contributes to the overall bias score.
(Screenshot: EMA column showing bearish readings - red, ↓)
SWING HIGH/LOW TRACKING
🔹 What are Swing Highs and Lows?
A swing high is a price peak where a candle's high is higher than the highs of surrounding candles. A swing low is a price trough where a candle's low is lower than the lows of surrounding candles. These points represent short-term reversals and define the boundaries of price movement.
Swing points are foundational to market structure analysis. Breaking a swing high suggests bullish momentum. Breaking a swing low suggests bearish momentum. The sequence of swing points creates market structure patterns that reveal trend direction.
🔹 How the Indicator Tracks Swing Highs/Lows?
The indicator detects swing points using a configurable Swing Length parameter (default: 5). A swing high is confirmed when a candle's high is higher than the specified number of candles on both sides. A swing low is confirmed when a candle's low is lower than the specified number of candles on both sides. This confirmation requirement means swing points are identified with a delay, ensuring they are valid pivots rather than temporary spikes. This same Swing Length setting is also used by Order Block detection and Market Structure labels, so adjusting it affects all three features.
◇ The Swing H/L column displays a visual position indicator showing where price sits within the current swing range. A dot moves along a bar between L (swing low) and H (swing high) to show exact position.
◇ When price breaks outside the range, arrows indicate the direction. An up arrow (↑) appears when price breaks above the swing high. A swing high break indicates that buyers have pushed price beyond the previous peak, suggesting bullish momentum and a potential continuation higher.
(Screenshot: Price above Swing High)
A down arrow (↓) appears when price breaks below the swing low. A swing low break indicates that sellers have pushed price beyond the previous trough, suggesting bearish momentum and a potential continuation lower
(Screenshot: Price breaks Swing Low)
When a liquidity sweep occurs (price breaks a level then reclaims it), special arrows appear: ⤴ for a swept and reclaimed low, ⤵ for a swept and reclaimed high. A swept and reclaimed swing means price broke beyond the level, likely triggering stop-loss orders resting beyond it, but then reversed back inside the range. This suggests the breakout was a false move and the opposite direction may follow. Liquidity sweeps are explained in detail in the Liquidity Sweep & Reclaim Detection section below.
◇ Color coding shows green when price is in the lower half of the range or breaks above the swing high, and red when price is in the upper half or breaks below the swing low.
(Screenshot)
◇ Tooltips provide additional context when hovering over any Swing H/L cell, such as "Price is nearing swing low on 15M" or "Price above swing high on 1H - swing high broken."
MARKET STRUCTURE LABELS (HH/HL/LH/LL)
🔹 What is Market Structure?
Market structure refers to the pattern of swing highs and swing lows that price creates over time. By comparing consecutive swing points, each new swing can be classified into one of four types.
◇ HH (Higher High): A swing high that is higher than the previous swing high, indicating bullish momentum.
◇ HL (Higher Low): A swing low that is higher than the previous swing low, indicating bullish momentum.
◇ LH (Lower High): A swing high that is lower than the previous swing high, indicating bearish momentum.
◇ LL (Lower Low): A swing low that is lower than the previous swing low, indicating bearish momentum.
(Screenshot: Bullish and Bearish Swing Points)
Bullish structure consists of HH and HL patterns, where price makes higher highs and higher lows. Bearish structure consists of LH and LL patterns, where price makes lower highs and lower lows. Mixed structure contains conflicting patterns and indicates consolidation or potential trend change.
🔹 How the Indicator Displays Market Structure
The Structure column shows the last three structure labels in sequence along with an overall bias arrow.
◇ "LL-LH-HL →" indicates mixed structure with no clear direction.
◇ "HH-HL-HH ↑" indicates bullish structure with higher highs and higher lows.
◇ "LH-LL-LH ↓" indicates bearish structure with lower highs and lower lows.
(Screenshot: Dashboard showing neutral, bearish and bullish indication across different timeframes)
The indicator tracks each new swing point as it forms, compares it to the previous swing of the same type, and assigns the appropriate label. Market Structure labels use the same Swing Length setting as Swing High/Low tracking, so both features stay synchronized. Structure bias is determined by the most recent high type and low type combined. If the last swing high was HH and the last swing low was HL, bias is bullish. If the last swing high was LH and the last swing low was LL, bias is bearish. Any other combination shows neutral.
Color coding shows green for bullish structure, red for bearish structure, and gray for mixed or neutral structure.
ORDER BLOCK DETECTION
🔹 What is an Order Block?
An Order Block is a concept from Smart Money analysis representing a candle or consolidation area where institutional orders may have been placed. In SMC methodology, Order Blocks are identified as the last opposing candle before a significant price move that breaks market structure.
◇ A Bullish Order Block is the last bearish candle before a rally that breaks a swing high. When price returns to this zone, it may find support.
◇ A Bearish Order Block is the last bullish candle before a drop that breaks a swing low. When price returns to this zone, it may find resistance.
Order Blocks are considered "mitigated" when price trades completely through them, suggesting the institutional orders have been filled.
🔹 How the Indicator Detects Order Blocks
The detection algorithm follows a specific sequence to identify valid Order Blocks.
◇ Step 1: The indicator tracks swing highs and swing lows using the configured Swing Length setting (shared with Swing High/Low tracking and Market Structure labels).
◇ Step 2: When price breaks above a swing high, the indicator identifies a bullish breakout. When price breaks below a swing low, it identifies a bearish breakout.
◇ Step 3: For a bullish Order Block, the indicator finds the candle with the lowest low between the broken swing high and the current bar. For a bearish Order Block, it finds the candle with the highest high between the broken swing low and the current bar.
◇ Step 4: The Order Block zone is created spanning from that candle's low to its high.
◇ Step 5: Mitigation is applied when price closes through the Order Block. Bullish OBs are mitigated when price closes below the zone. Bearish OBs are mitigated when price closes above the zone.
The Order Block column shows the nearest unmitigated Order Block for each timeframe. "IN BULL OB ↑" means price is currently inside a bullish Order Block. "BULL OB (5.4%) ↑" means the nearest OB is bullish and 5.5% away. "NONE" means no unmitigated Order Blocks exist on that timeframe.
(Screenshot: Nearest order block is Bull OB)
(Screenshot: Price in Bear OB)
FAIR VALUE GAP DETECTION
🔹What is a Fair Value Gap?
A Fair Value Gap (FVG), also called an imbalance, is a three-candle pattern where a gap exists between the first and third candle that the middle candle did not fill. This gap represents an area where price moved quickly, creating an imbalance in the market.
◇ A Bullish FVG forms when the first candle's high is lower than the third candle's low, creating an upward gap. When price returns to this gap, it may find support.
◇ A Bearish FVG forms when the first candle's low is higher than the third candle's high, creating a downward gap. When price returns to this gap, it may find resistance.
FVGs are considered mitigated when price wicks into the gap, filling the inefficiency.
🔹 How the Indicator Detects FVGs
The detection logic checks for the three-candle gap pattern with specific conditions.
◇ For a Bullish FVG, the current candle's low must be above the candle from three bars ago's high (gap exists), and the middle candle must be bullish (displacement candle).
◇ For a Bearish FVG, the current candle's high must be below the candle from three bars ago's low (gap exists), and the middle candle must be bearish (displacement candle).
◇ The FVG zone spans from the gap's bottom to its top.
◇ Mitigation occurs when price wicks below the gap bottom for bullish FVGs, or above the gap top for bearish FVGs. Note that FVG mitigation is more sensitive than Order Block mitigation.
FVGs only need a wick to touch them, while Order Blocks require a close through them.
The FVG column displays similarly to Order Blocks. "IN BULL FVG ↑" means price is inside a bullish Fair Value Gap. "BULL FVG (0.2%) ↑" means the nearest FVG is bullish and 0.2% away. "NONE" means no unmitigated FVGs exist on that timeframe.
(Screenshot: Price in Bull FVG)
(Screenshot: Bear FVG +3.4% away)
LIQUIDITY SWEEP & RECLAIM DETECTION
🔹 What is a Liquidity Sweep?
Liquidity refers to resting orders in the market, particularly stop-loss orders. Traders commonly place stops just beyond swing highs and swing lows, creating pools of liquidity at these levels. A liquidity sweep occurs when price breaks beyond a swing point, potentially triggering stops, but then reverses and closes back inside the range.
◇ A Bullish Liquidity Sweep occurs when price breaks below a swing low, then reverses and closes back above it. This pattern suggests potential buying interest after weak hands have been stopped out.
◇ A Bearish Liquidity Sweep occurs when price breaks above a swing high, then reverses and closes back below it. This pattern suggests potential selling interest after weak hands have been stopped out.
🔹 How the Indicator Detects Liquidity Sweeps
The indicator tracks whether each swing level has been broken and then reclaimed.
◇ A swing low is marked as broken when price trades below it. A swing high is marked as broken when price trades above it.
◇ A reclaim is detected when price closes back above a broken swing low (bullish) or back below a broken swing high (bearish).
◇ The break and reclaim flags reset when a new swing point forms, ensuring fresh detection for each level.
When a liquidity sweep is detected, the Swing H/L column displays special indicators. The ⤴ symbol indicates a bullish liquidity sweep where price swept the low and reclaimed. The ⤵ symbol indicates a bearish liquidity sweep where price swept the high and reclaimed. Tooltips provide additional context such as "Liquidity sweep - price swept swing low and reclaimed on 15M."
(Screenshot: Swing High Swept)
(Screenshot: Previous Month Low Swept)
VOLUME ANALYSIS
🔹 What is Volume Analysis?
Volume represents the number of shares, contracts, or units traded during a given period. High volume suggests strong interest and participation behind a price move. Low volume suggests weak interest and moves may lack follow-through. Comparing current volume to average volume helps identify unusual activity.
🔹 How the Indicator Analyzes Volume The dashboard calculates current volume as a percentage of its 20-period simple moving average.
◇ The Volume column displays a visual bar using filled and empty blocks to represent volume level relative to average.
◇ Volume states are classified as EXTREME (over 200% of average), HIGH (over 120%), NORMAL (over 80%), LOW (over 50%), or VERY LOW (50% or less).
(Screenshot: Extreme Volume)
◇ Color coding shows yellow for extreme volume, orange for high volume, and gray for normal, low, and very low.
◇ Tooltips show the exact percentage, such as "Volume is currently at 145% of average."
VOLATILITY ANALYSIS
🔹 What is Volatility?
Volatility measures how much price fluctuates over a given period. High volatility means large price swings. Low volatility means small price movements. The Average True Range (ATR) is a common volatility measure that calculates the average of true ranges over a period.
🔹 How the Indicator Measures Volatility
The dashboard calculates a 14-period ATR and compares it to its own 20-period average (configurable).
◇ The Volatility column displays the current state as HIGH (ATR over 130% of average), NORMAL (ATR between 70-130% of average), or LOW (ATR under 70% of average).
◇ Color coding shows red for high volatility, gray for normal, and green for low volatility.
◇ Tooltips provide context such as "Volatility is currently high" or "Volatility is currently low."
Low volatility often precedes significant moves, making it a useful setup indicator when combined with price at key levels.
(Screenshot: High Volatility)
TRADING SESSIONS
🔹 What are Trading Sessions?
Financial markets have varying activity levels throughout the day. Trading is typically divided into three major sessions based on which financial centers are open.
◇ Asian Session runs from 7:00 PM to 3:00 AM EST. It is characterized by generally lower volatility and ranging price action
◇ London Session runs from 3:00 AM to 12:00 PM EST. It is characterized by higher volatility and trending moves
◇ New York Session runs from 8:00 AM to 5:00 PM EST. It has high volatility especially during the London overlap from 8:00 AM to 12:00 PM EST, affecting USD pairs and all majors.
🔹 How the Indicator Displays Sessions
The Session column shows the current session name in the first row as ASIAN, LONDON, NEW YORK, or OFF HOURS (between sessions from 5:00 PM to 7:00 PM EST).
◇ The second row shows a progress bar that fills as the session advances, with each block representing approximately one hour.
◇ Sessions are color-coded as blue for Asian, green for London, orange for New York, and gray for off hours. These colors can be customized in the settings
◇ The indicator uses New York (EST) timezone for all session calculations and includes replay mode support.
(Asian Session and Killzone)
ICT KILLZONES
🔹 What are Killzones?
Killzones are specific time windows within each trading session when market activity tends to be higher. These windows are derived from ICT (Inner Circle Trader) methodology and represent times when significant moves are more likely to occur.
◇ Asian Killzone runs from 8:00 PM to 12:00 AM EST and often sets the initial range for the day.
◇ London Killzone runs from 2:00 AM to 5:00 AM EST and covers the London open when major moves are common.
◇ New York AM Killzone runs from 9:30 AM to 11:00 AM EST and covers the NYSE open, a high volume period.
◇ New York Lunch runs from 12:00 PM to 1:00 PM EST and typically has lower activity and consolidation.
◇ New York PM Killzone runs from 1:30 PM to 4:00 PM EST when afternoon continuation moves occur.
🔹 How the Indicator Displays Killzones
The Killzone column shows the current killzone in the first row as ASIAN KZ, LONDON KZ, NY AM KZ, NY LUNCH, NY PM KZ, or NO KILLZONE when outside all killzones.
◇ When outside a killzone, the second row shows a countdown to the next killzone, such as "NY AM KZ in 2h:15m."
◇ Killzones are color-coded as blue for Asian, green for London, orange for NY AM, gray for NY Lunch, and purple for NY PM. These colors can be customized in the settings
TREND BIAS SYSTEM
🔹 What is Trend Bias?
The Trend Bias System aggregates multiple factors across all enabled timeframes to produce a single directional bias score. Instead of analyzing each factor and timeframe separately, this system provides a weighted summary of overall market sentiment.
🔹 How the Indicator Calculates Trend Bias The calculation involves three components working together.
(Screenshot: BTC Bearish Trend)
◇ Factors determine what contributes to bias. Users can enable or disable Structure (market structure bias), Order Block (direction of nearest OB), FVG (direction of nearest FVG), EMA Trend (price position relative to EMA), and Swing Position (where price sits in the swing range). Each enabled factor contributes +1 for bullish, -1 for bearish, or 0 for neutral per timeframe.
◇ Weights determine how much each timeframe matters. Each timeframe has a configurable weight from 0 to 10. Default weights are 1 for 1M and 5M, 2 for 15M, 1H, and 4H, 3 for Daily, and 4 for Weekly. Higher weights mean that timeframe contributes more to the final score.
(Screenshot: Gold Bullish Trend)
◇ Score Calculation combines factors and weights. For each active timeframe, the sum of factor scores is multiplied by the timeframe's weight. The total score is the sum of all timeframe scores. The maximum possible score is the sum of each weight multiplied by the number of enabled factors. The bias percentage equals the total score divided by the maximum possible score, multiplied by 100.
◇ Bias Labels are assigned based on percentage. Over 50% shows BULLISH ↑. Between 20% and 50% shows LEAN BULL ↑. Between -20% and 20% shows NEUTRAL →. Between -50% and -20% shows LEAN BEAR ↓. Below -50% shows BEARISH ↓.
The Trend Bias column displays the bias label in the first row and the raw score in the second row, such as "+22/60" meaning 22 points out of 60 possible.
HTF LEVELS (PDH/L, PWH/L, PMH/L)
🔹 What are HTF Levels?
Higher Timeframe (HTF) Levels are significant price points from previous completed periods. These levels represent clear, objective reference points that many traders watch.
◇ PDH/PDL (Previous Day High/Low) are the high and low of the previous completed trading day and act as intraday support and resistance.
◇ PWH/PWL (Previous Week High/Low) are the high and low of the previous completed week and are significant levels for swing trading.
◇ PMH/PML (Previous Month High/Low) are the high and low of the previous completed month and are major levels for position trading.
🔹 How the Indicator Displays HTF Levels The HTF Levels Dashboard section (optional) shows a swing-style position bar for each enabled level, displaying where price sits within the previous day, week, or month range.
◇ The same liquidity sweep detection applies to HTF levels. If price sweeps PDL and reclaims, the ⤴ indicator appears.
(Screenshot: Previous Week Low Swept)
◇ Visual overlays can plot HTF level lines on the chart with customizable colors and line styles.
◇ When multiple levels are close together, labels automatically combine. For example, "PDH/PWH" appears when both levels are at similar prices, or "PDL/PWL/PML" when all three lows align.
(Screenshot: PWH/PMH labels combined when Previous Week Low and Previous Month Low align)
VISUAL OVERLAYS
Beyond the dashboard, the indicator offers optional visual overlays that plot directly on the price chart.
🔹 Order Block Zones
When enabled, Order Blocks appear as semi-transparent rectangular boxes. Green boxes represent bullish Order Blocks and red boxes represent bearish Order Blocks. Boxes span from the OB candle's low to its high and extend forward based on the Extend setting. Optional labels show "OB ↑" or "OB ↓" inside the zones.
🔹 FVG Zones
Fair Value Gaps appear as boxes with dashed borders to distinguish them from Order Blocks. Green dashed boxes represent bullish FVGs and red dashed boxes represent bearish FVGs. They share the same extend and label options as Order Blocks.
(Order Blocks & Fair Value Gaps)
🔹 Swing Labels
HH, HL, LH, and LL labels can be plotted directly at each swing point on the chart. Labels appear above swing highs and below swing lows. Green labels indicate bullish structure (HH, HL) and red labels indicate bearish structure (LH, LL). The Show Last setting controls how many labels appear.
🔹 Swing Lines
Horizontal lines can be drawn at the current swing high and swing low. A red line appears at the swing high and a green line at the swing low. Line styles are customizable as solid, dashed, or dotted.
(Swing Labels & Swing Lines)
🔹 HTF Level Lines
Horizontal lines can be plotted at Previous Day, Week, and Month highs and lows. Each level has a separate enable toggle with customizable colors and line styles. Labels auto-combine when levels are close together.
🔹 EMA Line
A standard EMA line can be plotted on the chart using the same EMA Length setting as the dashboard with customizable color.
DASHBOARD CUSTOMIZATION:
The dashboard is highly customizable to fit different trading styles and screen setups.
🔹Dashboard Position
Choose from 9 dashboard positions including top left, top center, top right, middle left, middle center, middle right, bottom left, bottom center, and bottom right.
🔹Dashboard Colors
Two color themes are available. Dark Mode has dark backgrounds with light text and is the default. Light Mode has light backgrounds with dark text.
🔹Column Toggles
Enable or disable individual columns in each dashboard section to show only the information needed. The Market Structure Dashboard section can toggle EMA Trend, Swing H/L, Structure, Order Block, and FVG columns. The Current Timeframe Dashboard section can toggle Volume, Swing H/L, and Volatility columns. The Market Context Dashboard section can toggle Session, Killzone, and Trend Bias columns. The HTF Levels Dashboard section can toggle PDH/L, PWH/L, and PMH/L levels.
🔹Color Settings
Customize colors for trend colors (bull, bear, neutral), session colors (Asian, London, NY), and killzone colors (Asian KZ, London KZ, NY AM, Lunch, PM).
🔹Distance Display
Choose how distances are shown. Percent shows values like "0.45%" and is the default. Price shows raw values like "45.50". Pips shows values like "45 pips" and is useful for forex.
SETTINGS:
🔹 Timeframes
Configure which timeframes are analyzed in the dashboard. Enable toggles turn each of the 7 timeframes on or off. Timeframe selection sets the specific timeframe for each slot (1M, 5M, 15M, 1H, 4H, D, W, M, or custom). Trend weight controls how much each timeframe contributes to the overall bias calculation (0-10), with higher values giving that timeframe more influence.
🔹 Market Structure Dashboard
Controls the main multi-timeframe dashboard section. The enable toggle turns the entire section on or off. Column toggles allow you to show or hide individual columns: EMA Trend, Swing H/L, Structure, Order Block, and FVG. Disabling columns you don't need reduces visual clutter and focuses the dashboard on the information most relevant to your trading style.
🔹 Current Timeframe Dashboard
Controls the current chart timeframe section that displays volume, swing position, and volatility data. The enable toggle turns the entire section on or off. Column toggles allow you to show or hide individual columns: Volume, Swing H/L, and Volatility.
🔹 Market Context Dashboard
Controls the market context section that displays session, killzone, and trend bias information. The enable toggle turns the entire section on or off. Column toggles allow you to show or hide individual columns: Session, Killzone, and Trend Bias.
🔹 HTF Levels Dashboard
Controls the higher timeframe levels section that displays previous day, week, and month high/low data. The enable toggle turns the entire section on or off. Level toggles allow you to show or hide individual levels: PDH/L, PWH/L, and PMH/L.
🔹 Trend Bias Settings
Controls which factors contribute to the trend bias calculation. Factor toggles allow you to include or exclude Structure, Order Block, FVG, EMA Trend, and Swing H/L from the bias score. Disabling factors you don't find relevant customizes how the overall bias is determined.
🔹 Visual Overlays
Controls what is plotted directly on the price chart. Order Blocks and FVGs each have an enable toggle, bull/bear colors, show last count (how many zones to display), extend bars (how far zones project forward), and labels toggle. Swing Labels have an enable toggle, bull/bear colors, and show last count. Swing Lines have an enable toggle, high/low colors, line style (solid, dashed, dotted), and extend bars. HTF Level Lines for Previous Day, Week, and Month highs/lows each have an enable toggle, colors, and line style, with a shared extend setting for all HTF lines. EMA has an enable toggle and color setting.
🔹 General Settings
Core indicator parameters. EMA Length sets the period for EMA calculation (default 9). Swing Length sets how many bars are required to confirm a pivot and is used for Swing Point detection, Order Block detection, and Market Structure labels (default 5). Volatility Lookback sets the period for ATR averaging (default 20). Distance Display controls how distances are shown: Percent, Price, or Pips. Dashboard Position sets where the dashboard appears on the chart (9 options). Dashboard Theme switches between Dark Mode and Light Mode. Color settings allow customization of trend colors (bull, bear, neutral), session colors (Asian, London, NY), and killzone colors (Asian KZ, London KZ, NY AM, Lunch, PM).
(Full Dashboard)
(Customized Display)
UNIQUENESS:
The Market Structure Dashboard focuses on multi-timeframe confluence by calculating and displaying the same analytical components across up to 7 timeframes simultaneously. Unlike indicators that show one timeframe at a time, each row in the dashboard represents a complete analysis of that timeframe's structure, zones, and trend state. This allows traders to observe alignment, disagreement, and transitions across timeframes within a single view.
The weighted Trend Bias System combines structure, zones, EMA, and swing position into a single score that accounts for timeframe importance. Higher timeframes can be weighted more heavily, reflecting their greater significance in establishing overall market direction.
The dashboard also integrates time-based context through session and killzone tracking, helping traders identify when market conditions align with historically active trading windows. All components coexist without overriding each other, providing a comprehensive framework for multi-timeframe market structure analysis. Indicador

Gold Breakout Trader⚙️ Gold short-term entries off M1 timeframe every 2 hours every day with SL/TP targets.
📦 2-Hour Breakout Structure: The indicator plots a new set of dynamic zones every two hours, providing a fresh breakout structure based on the most recent price action. This is the default setting and is designed for intraday trading.
🎯 Precision Entry & Exit Levels: A central gray box is plotted, with Buy Stop and Sell Stop lines automatically placed 2 USD away from its borders. This buffer creates a neutral zone and helps filter out noise.
💰 Pre-Defined Profit Targets: Three Take Profit TP zones are plotted for both long and short trades TP1, TP2, TP3. These zones are spaced apart, providing clear targets for managing trades.
⚙️ Fully Customizable Spacing: Every element is adjustable. You can change the buffer between the gray box and stop lines, the gap between the stop lines and the first TP zone, and the gaps between each subsequent TP zone.
🔔 M1 Breakout Alerts: The indicator includes a powerful alerts module that triggers when an M1 candle closes above the Buy Stop level or below the Sell Stop level. This provides real-time notifications for potential trade entries.
🎨 Clean Visuals & Clear Labels: The zones are color-coded teal for buy-side, red/purple for sell-side for instant recognition. The Buy Stop and Sell Stop labels are also colored to match their respective directions, ensuring zero confusion.
⚙️ Trading Strategy & Logic
This strategy is designed for precision and requires patience. The core idea is to wait for the market to confirm a breakout of the established 2-hour range before entering a trade.
📌 Entry Logic
1. 🕒 Wait for a New Zone: Allow the indicator to plot a new 2-hour structure. Do not trade old or expired zones.
2. 🔔 Set Your Alerts: In TradingView, create a new alert and select the indicator. For the condition, choose "Any alert() function call" and set it to trigger "Once Per Bar Close". This will notify you the moment a candle closes across a stop level.
3. 👀 Wait for the M1 Close: For a Long Buy Trade, wait for an M1 candle to close above the Buy Stop line. For a Short Sell Trade, wait for an M1 candle to close below the Sell Stop line.
4. ✅ Enter on Confirmation: Once you receive the alert and visually confirm the M1 candle has closed past the level, you can enter the trade.
🛑 Stop Loss SL Placement
The stop loss is designed to be tight and objective, providing a clear invalidation of the trade idea.
⬇️ For a Long Trade, the Stop Loss should be placed at the Sell Stop line the level on the opposite side of the gray box.
⬆️ For a Short Trade, the Stop Loss should be placed at the Buy Stop line.
🎯 Take Profit TP Strategy
The indicator provides three clear targets. How you use them depends on your trade management style.
🥇 TP1: The first level of resistance/support. This is an ideal target for taking partial profits and moving your stop loss to breakeven.
🥈 TP2 & TP3: Subsequent targets for scaling out of the position or for your final profit target.
⚠️ IMPORTANT NOTICE
This indicator and the accompanying strategy are provided for educational purposes only. Trading financial markets involves substantial risk, and past performance is not indicative of future results. The logic described is based on a specific set of rules and does not guarantee profit. Always conduct your own analysis and risk management before entering any trade. The creators are not responsible for any financial losses incurred.
Indicador

ICT Macro Clock - Real-Time + Alerts⏰ ICT Macro Clock - Real-Time Alert Indicator
What It Does
Real-time clock indicator with automatic visual alerts for ICT Macro time windows (xx:50 to xx:15). Designed for traders following Inner Circle Trader methodology and Smart Money Concepts.
Key Features
🔔 Macro Window Detection
Automatically detects ICT Macro periods: xx:50 to xx:15 (26 minutes)
Visual blinking alert alternates colors every second
Clock enlarges to huge size during active windows
TradingView alerts trigger at xx:50
⏰ Real-Time Clock
Displays current time in H:M format
Adjustable GMT offset for any timezone
Compatible with Bar Replay mode
Updates every second in real-time
🎨 Full Customization
9 screen positions (top/middle/bottom × left/center/right)
Custom colors for normal, blink, and macro text
Adjustable text sizes
Customizable macro text template using {start} and {end} placeholders
Optional table borders
📱 TradingView Alerts
Get notified when each Macro window starts
Configure alerts for app, email, sound, or webhook
24 alerts per day (one per hour)
ICT Macro Windows Explained
In ICT methodology, Macro windows are 26-minute periods when institutional algorithms are most active:
High probability for liquidity sweeps
Optimal timing for Fair Value Gap formations
Increased volatility and displacement moves
Smart Money order execution periods
Perfect for:
Silver Bullet setups
Order block activations
Killzone trading
News release alignment
Settings Overview
⚙️ General Settings
GMT offset, table position, text sizes, borders, alerts
📝 Text Settings
Macro text template, text alignment
🎨 Clock Colors
Normal display colors
Blink alert colors
Macro text colors
Usage
Add indicator to your chart
Set your GMT offset (e.g., -5 for NY, +0 for London)
Choose table position
Customize colors to match your theme
Enable TradingView alerts if desired
Watch for visual alerts at xx:50
Example Template Formats
{start} - {end} - Macro → 14:50 - 15:15 - Macro
🔔 ICT {start}-{end} → 🔔 ICT 14:50-15:15
Macro: {start} to {end} → Macro: 14:50 to 15:15
Technical Details
Pine Script v5
Optimized performance (uses var and barstate.islast)
Works on all timeframes and markets
No repainting
Bar Replay compatible
Perfect For
✅ ICT traders
✅ Smart Money Concepts followers
✅ Forex and futures traders
✅ Intraday scalpers
✅ Anyone tracking institutional timing
Note: This is a timing tool, not a trading signal. Always use proper risk management and combine with your own analysis.
If you find this helpful, please leave a rating and share with fellow ICT traders! 🚀 Indicador

Indicador

Entropy Divergence (No Repaint) [PhenLabs]📊 Entropy Divergence (No Repaint)
Version: PineScript™ v6
📌 Description
The Entropy Divergence Scalper (EDS) is a sophisticated trading indicator that applies information theory to market analysis. By calculating Shannon Entropy on price returns, it identifies periods when market behavior becomes more predictable and orderly—the ideal conditions for divergence-based trading.
Traditional divergence indicators generate signals regardless of market conditions, leading to many false signals during chaotic, high-entropy periods. EDS solves this by acting as an intelligent filter: it only triggers signals when entropy drops below your specified threshold, indicating that the market has entered a more structured, tradeable state.
This indicator is built with a strict non-repainting guarantee. All signals use barstate.isconfirmed and only appear after bar close, giving you reliable signals you can trust for live trading.
🚀 Points of Innovation
Shannon Entropy integration measures market randomness using information theory mathematics
Dual divergence engine detects both RSI and Volume divergences simultaneously
Entropy-filtered signals eliminate noise by only triggering in low-entropy (predictable) market conditions
100% non-repainting architecture ensures all signals are confirmed and historically accurate
Multi-layer confirmation combines entropy state, RSI divergence, and volume divergence for higher probability setups
Dynamic color visualization provides instant visual feedback on current market entropy state
🔧 Core Components
Shannon Entropy Calculator: Bins price returns into histograms and calculates entropy using H(X) = -Σ p(x) × log₂(p(x))
RSI Divergence Detector: Identifies when price makes lower lows while RSI makes higher lows (bullish) or price makes higher highs while RSI makes lower highs (bearish)
Volume Divergence Detector: Spots increasing volume interest at price lows (bullish) or decreasing conviction at price highs (bearish)
Pivot Detection System: Uses configurable lookback periods to identify and track price, RSI, and volume pivots
Signal Classification Engine: Labels signals as RSI, VOL, or RSI+VOL based on which divergences triggered
🔥 Key Features
Entropy Threshold Control: Set your preferred entropy level (default 2.5) to filter out signals during chaotic market periods
Configurable Smoothing: EMA smoothing on entropy values reduces noise while maintaining signal responsiveness
Flexible Pivot Detection: Adjust left/right lookback bars to tune sensitivity for different trading styles
Divergence Search Range: Control how far back the indicator looks for divergence patterns (20-200 bars)
Minimum Pivot Distance: Prevents false signals from pivots that are too close together
Complete Alert System: Four alert conditions for bullish signals, bearish signals, any signal, and low entropy zone entry
🎨 Visualization
Dynamic Entropy Line: Color gradient shifts from green (low entropy/tradeable) to orange (high entropy/chaotic)
Entropy Threshold Line: Dashed reference line shows your configured entropy threshold
Low Entropy Zone Fill: Background highlighting indicates when market is in tradeable low-entropy state
Scaled RSI Plot: RSI overlay scaled to fit the entropy pane for easy correlation analysis
Normalized Volume Bars: Volume displayed as columns normalized against 20-period average
Signal Labels: Clear LONG/SHORT labels with divergence type (RSI, VOL, or RSI+VOL)
Information Table: Real-time display of entropy value, state, RSI, and current signal status
📖 Usage Guidelines
Entropy Lookback Period — Default: 20, Range: 5-100 — Controls how many bars are used for entropy calculation; higher values provide smoother readings but slower response
Histogram Bins — Default: 10, Range: 5-50 — Number of bins for probability distribution; more bins provide finer granularity
Low Entropy Threshold — Default: 2.5, Range: 0.5-4.0 — Signals only trigger when entropy drops below this value; lower settings are more selective
Entropy Smoothing — Default: 3, Range: 1-10 — EMA smoothing applied to raw entropy values for noise reduction
RSI Length — Default: 14, Range: 5-50 — Standard RSI calculation period
Pivot Lookback Left — Default: 5, Range: 2-20 — Bars to the left for pivot detection
Pivot Lookback Right — Default: 2, Range: 1-10 — Bars to the right for pivot confirmation; lower values produce faster signals
Divergence Search Range — Default: 60, Range: 20-200 — Maximum bars to look back for divergence comparison
Min Bars Between Pivots — Default: 5, Range: 3-30 — Minimum distance between pivots for valid divergence detection
✅ Best Use Cases
Scalping during low-volatility consolidation periods when entropy drops and price becomes more predictable
Swing trade entry timing by waiting for divergence signals in low-entropy market conditions
Trend reversal identification when both RSI and Volume divergences align with low entropy readings
Multi-timeframe confirmation by checking entropy state on higher timeframes before taking signals
Filtering existing strategies by adding entropy as a confirmation layer to reduce false signals
⚠️ Limitations
Signals appear with a delay due to pivot confirmation requirements (pivotLookbackRight bars after pivot forms)
May generate fewer signals during strongly trending markets where entropy remains elevated
Entropy threshold requires optimization for different instruments and timeframes
Not designed for high-frequency trading due to bar-close confirmation requirement
Divergences can fail in extremely strong trends where momentum overwhelms the signal
💡 What Makes This Unique
First indicator to combine Shannon Entropy filtering with multi-factor divergence detection
Information theory approach provides mathematical foundation for identifying tradeable market states
Triple confirmation requirement (low entropy + divergence + bar close) significantly reduces false signals
Non-repainting guarantee makes it suitable for strategy backtesting and live trading
Open-source PineScript v6 code allows traders to understand and customize the methodology
🔬 How It Works
Step 1 — Entropy Calculation: The indicator calculates logarithmic returns, bins them into a histogram, and computes Shannon Entropy to measure market randomness
Step 2 — Entropy Filtering: When smoothed entropy drops below the threshold, the market is considered to be in a tradeable low-entropy state
Step 3 — Pivot Detection: The system continuously tracks price, RSI, and volume pivots using configurable lookback parameters
Step 4 — Divergence Analysis: When a new pivot is confirmed, the indicator compares it against previous pivots to detect bullish or bearish divergences
Step 5 — Signal Generation: A final signal only triggers when low entropy conditions coincide with a confirmed divergence pattern on a closed bar
💡 Note:
This indicator is designed for educational purposes and technical analysis. Always use proper risk management and never risk more than you can afford to lose. The non-repainting guarantee means signals will only appear after bar close—watch the indicator in real-time to verify this behavior. For optimal results, consider combining EDS signals with support/resistance levels and overall market context.
Indicador

Indicador

ICT Bias ProICT Bias Pro: Dashboard + First Hour Range & Session FVGs
This indicator is a comprehensive "Bias Builder" designed for traders who follow Inner Circle Trader (ICT) concepts. It combines a multi-timeframe trend dashboard with a specific intraday strategy derived from ICT's recent teaching: "How Do I Engage Markets When I Don't Have An Initial Bias?"
The tool is designed to help traders find confluence between the Macro trend (Daily/4H) and the Micro execution (15M/5M) during the New York AM Session.
Features & Methodology
1. Multi-Timeframe Bias Dashboard Located in the corner of your chart, this dashboard provides a quick "Traffic Light" view of the market structure across 4 key timeframes:
Daily & 4-Hour: Establishes the macro direction.
15-Min & 5-Min: Monitors intraday order flow.
Logic: Bias is determined by comparing price relative to the 20 EMA and checking for Market Structure alignment. Green = Bullish, Red = Bearish.
2. The "First Hour" Trading Range (No-Bias Strategy) Following ICT’s specific logic for days when bias is unclear, this tool automatically highlights the 9:30 AM – 10:30 AM (New York Time) trading range.
Range High & Low: Defining the volatility of the opening hour.
Equilibrium (50%): The "Line in the Sand." Price holding above the 50% signals bullish strength (Premium); price below signals bearish weakness (Discount).
Quadrants (25% & 75%): Deep discount/premium zones for precision entries.
3. Session-Specific Fair Value Gaps (FVG) The indicator automatically detects and draws Fair Value Gaps that form only within that critical first hour of trading.
Auto-Extension: Boxes extend to the right until price "mitigates" (fills) them.
Consequent Encroachment (C.E.): Automatically plots the 50% dashed line inside every FVG, a key institutional support/resistance level.
Smart Mitigation: Once a gap is filled, the box changes color (user-selectable) to indicate it is no longer an active magnet.
How to Use This Indicator
This tool is designed to identify Confluence:
Check the Dashboard: Look for alignment on the Daily and 4H timeframes (e.g., Both Green).
Wait for 10:30 AM EST: Allow the script to draw the First Hour Range.
Trade the Confluence:
Bullish Setup: If the Dashboard is Green, look for price to hold above the 50% Equilibrium of the First Hour Range. Look for entries inside Bullish FVGs that form near the 50% or 75% levels.
Bearish Setup: If the Dashboard is Red, look for price to reject the 50% Equilibrium and stay in the lower half. Target Bearish FVGs near the 50% or 25% levels.
Settings & Customization
Dashboard Toggle: Show or hide the table to keep charts clean.
Colors: Fully customizable colors for Range High/Low, FVGs (Bullish/Bearish), and Mitigated gaps.
Text Positioning: Adjust FVG labels (Left/Center/Right) to prevent visual clutter on candles.
Credits & Attribution
Concept: Inner Circle Trader (Michael Huddleston).
Core Strategy: Based on the video "How Do I Engage Markets When I Don't Have An Initial Bias?"
Disclaimer: This tool is for educational purposes only. Past performance is not indicative of future results. Indicador
