Engulfing Pattern Detector + Optional Filters Description
This indicator highlights bullish and bearish engulfing candle patterns with optional confirmation filters for volume, momentum, and volatility.
It is designed as a technical analysis and educational tool, allowing users to study price behavior across different markets and timeframes.
Why This Indicator Is Different
Many engulfing indicators mark every textbook pattern, which can result in excessive chart noise.
This script adds optional filters that allow users to focus on engulfing candles occurring under more relevant market conditions, such as increased activity, directional momentum, or sufficient volatility.
All filters are fully optional and disabled by default, so users can start with pure price-action patterns and progressively add context based on their analysis style.
Key Features
Bullish & bearish engulfing pattern detection
Optional volume, RSI, MACD, and ATR filters
Higher-timeframe momentum context
Customizable inputs for flexibility
Visual chart markers and optional alerts
Inputs Overview
Engulfing body size and ratio settings
Volume confirmation options
Higher-timeframe RSI & MACD settings
ATR-based volatility filter
All filters are disabled by default and can be enabled as needed.
How to Use
Add the indicator to your chart
Observe raw engulfing patterns
Enable filters for additional context
Use alongside other technical analysis tools
**Disclaimer**
This indicator is provided strictly for educational and informational purposes. It does not constitute financial, investment, trading, or other professional advice.
All calculations, visualizations, and signals produced by this indicator are derived solely from historical price data. No representation is made that the indicator can predict future market behavior or outcomes. Any interpretations drawn from its output are the sole responsibility of the user.
Trading and investing involve substantial risk, including the possible loss of all or more than the initial capital. Market conditions can change rapidly, and past market behavior, patterns, or indicator performance do not guarantee similar results in the future.
The informational markers, alerts, dashboard readings, and histogram values generated by this indicator are not trade recommendations and should not be used as the sole basis for making trading decisions. Users are encouraged to combine this tool with their own analysis, risk management, and confirmation methods.
The author assumes no responsibility or liability for any trading decisions, losses, or damages resulting directly or indirectly from the use of this indicator. By using this script, you acknowledge that you are solely responsible for your trading decisions and outcomes.
Use at your own risk.
Priceaction
Consolidated Technical ScorecardConsolidated Technical Scorecard (CTS)
The Consolidated Technical Scorecard (CTS) is a structured trend-strength and leadership-quality framework designed to help traders quickly assess whether a stock or index is displaying characteristics of a high-quality up-trend, a constructive developing phase, or a weak / high-risk environment.
Rather than relying on a single indicator or signal, CTS consolidates information from trend structure, momentum conditions, and multi-timeframe alignment into a unified visual scorecard panel on the chart. The goal is to give traders a clear, objective snapshot of where the instrument currently stands in the broader trend hierarchy.
What CTS Helps You Identify
Whether price action reflects true leadership behavior or just short-term strength
When a stock is trending cleanly vs. transitioning / weakening
The quality and durability of the current trend phase
When conditions shift from constructive → strong or strong → vulnerable
A quick, at-a-glance assessment instead of reading multiple indicators manually
CTS is particularly useful for:
> momentum traders
> trend-followers
> position traders
> portfolio screening and strength filtering
> leadership-based stock selection
How the Score Works (High-Level Overview)
CTS evaluates price behaviour across three key pillars:
Trend Structure & Leadership Characteristics
- evaluates whether price structure is consistent with strong trend behaviour
Momentum & Regime Quality
- checks whether momentum supports the prevailing trend environment
Multi-Timeframe Confirmation & Alignment
- validates whether strength is supported across higher-timeframe conditions
Each pillar contributes to an overall 16-point composite score, which is then expressed as a percentage “CTS Strength” reading and a corresponding qualitative verdict (such as High-Quality Up-Trend or Constructive / Watch).
Internal scoring rules and calculation details are proprietary and intentionally abstracted to preserve the design philosophy and intellectual property of the framework.
Scorecard Output Panel
The on-chart panel displays:
> Trend Score
> Momentum Score
> Multi-TF Confirmation Score
> CTS Strength (%)
> Verdict label summarising the current state
Score cell backgrounds use hierarchical colour-grading to provide instant visual context for strength vs. risk conditions. The panel can be positioned or resized via settings, and includes a Light / Dark text-theme option for visibility on any chart background.
Customisation & Display Controls
The CTS Scorecard includes several user-configurable display options to improve usability across different chart layouts and backgrounds:
> Table Positioning - The panel can be placed anywhere on the chart (top-right, top-left, bottom-right, centre positions, etc.) based on user preference.
> Font Size Adjustment - Users can choose from multiple font-size presets to improve readability across different screen sizes and resolutions.
> Light / Dark Mode Text Theme - The indicator includes a selectable text-theme option to ensure optimal visibility on both light and dark chart backgrounds, while retaining consistent scorecard styling.
These controls allow the scorecard to adapt to different workspace setups without affecting the underlying model or scoring behaviour.
Important Notes
> CTS is not a buy/sell signal generator
> It is a trend-assessment and confirmation tool
> It is most effective when combined with:
- price action analysis
- risk management
- broader market context
> Like any analytical model, it should support decision-making — not replace it
> The CTS Scorecard is intentionally designed to work only on the Daily timeframe. When applied on other timeframes, the indicator displays a notice prompting users to switch back to Daily mode.
Best Use Cases
Identify potential leadership-grade stocks
Filter out weak or low-quality trend setups
Avoid participation during deteriorating phases
Track how trend quality evolves over time
Strength-based watchlist and screening workflows
Credits & Philosophy
CTS is built around a price-first, evidence-based trading approach, influenced by institutional trend-following principles and leadership-quality frameworks used by professional momentum and position traders.
The emphasis is on clarity, alignment, discipline, and trend quality over noise.
www.alphasndeltas.in
Precision Structure Pro [BOSWaves]Precision Structure Pro - Multi-Tier Market Structure Execution with HTF Trend Alignment
Overview
Precision Structure Pro is a market analysis system designed to provide traders with structural understanding of price action. The system operates on the principle that markets follow observable patterns that can be systematically identified and interpreted. Precision Structure Pro combines adaptive indicators, dynamic visualizations, and customizable alerts to support both trend-following and contrarian strategies. Each feature translates technical concepts into actionable, on-chart insights, allowing traders to make informed decisions without information overload. The system emphasizes clarity, precision, and adaptability, enabling users to interpret market behavior in real time with risk-aware, disciplined trading practices.
Structural Analysis Engine
At the core of Precision Structure Pro lies the Structural Analysis Engine, a sophisticated framework designed to detect meaningful shifts in market structure with minimal lag and maximum reliability. Traditional swing-based systems merely connect price highs and lows, often generating false signals during periods of noise or minor retracement. Precision Structure Pro's engine goes deeper, analyzing market momentum, volatility, and price clusters to distinguish between genuine structural breaks and minor fluctuations.
The engine employs a configurable lookback period ranging from 5 to 50 bars, allowing traders to calibrate sensitivity based on their preferred timeframe and trading style. Shorter periods produce more frequent signals suitable for scalping and intraday trading, while longer periods generate fewer but more significant structural markers ideal for swing and position trading. This adaptability ensures the system remains relevant across all trading methodologies.
Break of Structure (BOS) Detection
Break of Structure (BOS) signals are provided whenever price decisively moves beyond a previous swing high or low, highlighting potential continuation setups. The system offers two confirmation methodologies: body-based confirmation, which requires candle closes beyond structural levels for conservative validation, and wick-based confirmation, which triggers on price touches for more aggressive entry opportunities. This dual-option approach allows traders to align the tool's sensitivity with their risk tolerance and market conditions.
Use Case 1: Trend Continuation Trading
A trader identifies a pullback within an established uptrend. The dashboard confirms higher timeframe alignment remains bullish despite the short-term retracement. When price breaks back above the pullback structure, the system generates a BOS signal and activates the trade dashboard with entry, stop-loss, and three profit targets. As targets are hit sequentially, the trader takes partial profits while trailing the remainder, combining systematic risk management with the flexibility to capture extended moves.
Change of Character (CHoCH) Recognition
Change of Character (CHoCH) alerts indicate early reversal opportunities, marking the transition from trending to counter-trend behavior before it becomes evident to the naked eye. CHoCH signals emerge when price breaks a structural level counter to the established trend direction, providing advance warning of potential trend exhaustion or reversal. These signals are particularly valuable for identifying market turning points that precede traditional reversal indicators, offering traders strategic positioning advantages for both exits and counter-trend entries.
By combining BOS and CHoCH signals, traders can identify both continuation and reversal scenarios, enabling them to adapt strategies to shifting market conditions without relying solely on lagging indicators. The engine maintains a persistent memory of structural levels, tracking which pivots remain relevant and which have been invalidated by price action, ensuring that only significant structural events generate signals while noise is systematically filtered.
Use Case 2: Counter-Trend Reversal Trading
During an established trend, price breaks structure in the opposite direction, triggering a CHoCH signal. The candles begin changing color to reflect the structural shift. However, the dashboard shows the higher timeframe remains in the original trend direction, alerting the trader to timeframe conflict. This prompts tighter profit management focused on early targets rather than extended holds, as the setup represents a counter-trend opportunity requiring tactical rather than strategic positioning.
Multi-Timeframe Integration
Multi-timeframe integration within the Structural Analysis Engine provides an additional layer of context that dramatically enhances signal reliability. For instance, a BOS signal on a lower timeframe gains significantly more weight when aligned with the trend observed on a higher timeframe. This hierarchical approach allows traders to confirm signals against broader market trends, reducing exposure to false breakouts and enhancing confidence in entries and exits.
The system continuously monitors a user-selected higher timeframe - configurable to any interval from minutes to weekly charts - and compares its structural trend against current timeframe signals. When lower timeframe BOS or CHoCH events align with higher timeframe directional bias, the system validates these as premium opportunities. The on-chart dashboard displays real-time higher timeframe trend status, showing whether the broader context is bullish, bearish, or neutral, providing traders with instant situational awareness without requiring manual chart switching.
Hierarchical Confirmation and Filtering
Traders can enable higher timeframe alignment requirements, which filters out signals that conflict with the dominant trend on larger timeframes. This filtering mechanism significantly reduces false signals during counter-trend noise while preserving high-probability setups that ride institutional momentum. The result is a trading system that respects market hierarchy, acknowledging that larger timeframe structures exert gravitational influence on smaller timeframe movements, and positioning traders on the right side of dominant flows.
The engine is designed to be highly adaptive, factoring in price volatility and recent momentum to filter out noise while emphasizing meaningful structural changes. The result is a system that not only identifies key market turning points but does so in a way that is sensitive to context, volatility, and timeframe alignment, creating a comprehensive structural narrative that evolves with market conditions.
Volatility-Adaptive Stop-Loss Calculation
Managing risk is as important as identifying opportunities, and Precision Structure Pro addresses this through its Volatility-Adaptive Trade Management system. Unlike static stop-loss levels that fail to account for changing market conditions, this system calculates dynamic stop-loss points based on volatility measurements and market structure. The system employs an analysis window that captures current market movement characteristics and serves as the foundation for all risk calculations.
The system employs a multi-layered calculation methodology. First, it establishes a base distance by applying a user-configurable volatility multiplier (0.5 - 5.0x, default 2.0x) to the measured market volatility. This base distance is then scaled by a stop-loss multiplier (0.1-5.0R, default 1.2R) to determine final stop placement. In high-volatility environments - such as during major news events or market opens - stops are adjusted wider to avoid premature exits from normal price oscillation, while in calm, low-volatility periods, stops tighten to prevent unnecessary exposure and improve capital efficiency.
Tiered Take-Profit System
Take-profit levels are tiered into three distinct targets, each calculated as a ratio of the stop-loss distance. The first target typically sits at 0.8R (80% of the risk distance), providing a conservative profit-taking opportunity that's frequently achieved. The second target extends to 1.6R, capturing intermediate moves while maintaining realistic probability. The third target reaches for 2.8R or beyond, designed to capture extended trend moves and maximize profit potential when momentum continues. These ratios are fully customizable, allowing traders to adapt the system to their profit-taking preferences and market characteristics.
This tiered approach enables traders to lock in profits progressively, reducing psychological pressure while allowing portions of positions to capture larger moves. Traders can take partial profits at early targets and move stops to breakeven to create risk-free positions, while letting remaining size run toward final targets or trailing stops. This partial exit strategy dramatically improves trading psychology by removing the binary pressure of all-or-nothing exits, while maintaining exposure to extended moves that generate outsized returns.
Visual Trade Mapping
Visual representations of dynamic levels are overlaid on the chart with sophisticated rendering techniques. Each level features a multi-layer glow effect - a translucent outer layer for ambient visibility, a semi-transparent middle layer for depth, and a solid core line marking precise price levels. Entry levels appear in bright white, stop-loss zones in vibrant red with danger shading, and take-profit levels in neon green with success-themed styling. Risk and reward zones are represented by translucent boxes that span from entry to stop (risk) and entry to final target (reward), providing immediate visual assessment of trade quality without manual calculation.
Dynamic Status Labels
Labels accompany each level, displaying precise price values and status indicators. Take-profit labels show "PENDING" status until price reaches them, at which point they dynamically update to "HIT" with altered styling to celebrate achievement. Stop-loss labels remain prominent throughout the trade, maintaining awareness of maximum risk. This comprehensive visual mapping ensures traders understand trade structure at a glance, facilitating faster decision-making and reducing cognitive load during active trading sessions.
Intelligent Position Sizing Calculator
Position sizing translates risk percentage into actual trade size. Precision Structure Pro includes a position sizing calculator that performs this computation automatically, eliminating manual calculation errors that can lead to over-leverage or inefficient capital utilization.
The calculator employs a standardized formula that works across all asset classes: Position Size equals Account Size multiplied by Risk Percentage, divided by Stop Distance. This calculation automatically accounts for varying instrument characteristics - whether trading cryptocurrencies with multiple decimal places, forex pairs with pip-based measurements, stocks with dollar-based stops, or futures with point-based movements.
Position Sizing Configuration
Traders configure two key parameters: total account size (their available trading capital) and risk percentage per trade (typically 1-2% for conservative risk management). When a trade signal generates, the system instantly calculates the exact number of units, shares, contracts, or coins to trade based on the automatically-determined stop distance. This calculation appears directly in the on-chart dashboard, displaying both the dollar amount at risk and the precise position size.
This functionality ensures consistent risk across all trades - whether stop distance is narrow or wide, position size adjusts to maintain identical dollar risk. It eliminates execution delays caused by manual calculation and prevents common position sizing errors that plague discretionary traders. The position sizing display can be toggled on or off based on user preference.
On-Chart Dashboard Overview
Information overload impairs decision-making, particularly during fast-moving market conditions. Precision Structure Pro's on-chart dashboard consolidates critical market information into a single, scannable interface that provides situational awareness without requiring navigation between multiple indicators or charts.
The dashboard features a hierarchical information architecture designed for rapid comprehension. At the top, a bold status header announces trade state - LONG ACTIVE or SHORT ACTIVE - with color-coded backgrounds matching trade direction. This visual confirmation prevents confusion about current exposure, particularly when managing multiple positions across different instruments.
Dashboard Components
The higher timeframe status section displays the broader market context, showing whether the selected higher timeframe is BULLISH, BEARISH, or NEUTRAL with corresponding color coding. This provides instant confirmation that current trade direction aligns with dominant market structure, or warns when taking counter-trend positions that require tighter management.
The core metrics section presents trade fundamentals in clean, organized rows: direction confirmation, precise entry price, stop-loss level with distance percentage, and three take-profit targets each showing status (PENDING or HIT), price level, and percentage gain from entry. Visual separators organize these sections, creating clear information boundaries that facilitate quick scanning during time-sensitive decisions.
When position sizing display is enabled, the bottom section shows calculated risk amount in dollars and exact position size in trading units. This eliminates the cognitive step of mental calculation, allowing traders to execute positions immediately with confidence in their risk management.
Dashboard Customization
The dashboard supports four positioning options - top-right, top-left, bottom-right, or bottom-left - allowing traders to anchor it in their preferred location based on personal workflow and chart layout. Importantly, the dashboard only appears when an active trade exists, preventing chart clutter during pure analysis phases when no positions are held. This adaptive visibility ensures the interface remains clean and focused, presenting information only when relevant.
Dynamic Candle Coloring
Technical precision means little if the information isn't immediately digestible. Precision Structure Pro employs sophisticated visualization techniques to transform complex structural data into intuitive visual language that communicates market state at a glance.
The system implements dynamic candle coloring that reflects current structural trend. When market structure is bullish - characterized by BOS signals breaking upward - candles render in cyan tones, creating a visual flow that reinforces upward momentum. When structure turns bearish, candles shift to magenta, immediately communicating downward pressure. During transitional or consolidative periods when structure is unclear, candles display in neutral gray, signaling caution and the absence of clear directional bias. This color-coded system allows traders to interpret market character without analyzing individual price bars, dramatically accelerating pattern recognition.
Structural Level Visualization
Structural break events are marked with multi-layered horizontal lines that employ sophisticated rendering techniques. Each structural level features three layers: a wide, highly transparent outer glow creating ambient visibility, a medium-width semi-transparent middle layer adding dimensional depth, and a solid, precise core line marking the exact price level. This gradient effect makes critical levels stand out prominently even on cluttered charts, while maintaining visual elegance and professional aesthetics.
Professional Label System
Labels accompany each structural event with clean, professional text. BOS events are marked simply as "BOS," while CHoCH events receive distinctive "CHoCH" labeling. These labels are positioned intelligently using volatility-based offsets - appearing above price highs for bearish breaks and below price lows for bullish breaks - ensuring they float in whitespace rather than obscuring candles or overlapping with price action. The system limits the number of simultaneously visible labels (configurable from 1 - 10, default 3) to prevent chart clutter, automatically removing the oldest labels as new signals emerge.
Signal Alerts
Real-time monitoring of multiple charts across various timeframes is impractical for discretionary traders. Precision Structure Pro's alert system helps traders track critical market events, even when away from their trading stations.
The system provides distinct alerts for each signal type. Bullish and bearish Break of Structure alerts fire when upward or downward BOS events occur, with alert messages including current entry price and ticker symbol for context. Bullish and bearish Change of Character alerts notify traders of potential reversals, providing warning to either exit existing positions or prepare counter-trend entries. A generic "New Trade Signal" alert triggers on any valid BOS or CHoCH event, useful for traders monitoring multiple instruments simultaneously.
Trade Management Alerts
Trade management alerts operate independently from signal alerts. Take Profit 1, 2, and 3 alerts fire when price reaches each respective target level, prompting traders to execute their planned partial exit strategy. The Stop Loss Hit alert provides critical notification when trades fail, enabling rapid response to adverse movements and preventing extended drawdowns from unmonitored positions.
The system incorporates intelligent alert tracking to prevent notification spam. Each alert type fires once per event - when a profit target is hit, for example, the system sends a single notification rather than repeatedly alerting as price fluctuates around the level. Alert states reset when new trade signals generate, ensuring fresh monitoring for each position.
Alert Delivery
Alerts route through TradingView's native alert infrastructure, providing multiple delivery options. Traders can receive pop-up notifications during active monitoring, email alerts for remote tracking, mobile push notifications through the TradingView app. This provides flexibility for traders to remain connected to market developments regardless of their physical location or monitoring capabilities.
Design Philosophy
Precision Structure Pro emphasizes clarity, adaptability, and risk-aware execution. Every feature - from structural analysis to dynamic visualizations and customizable alerts - is intended to provide insight, not guarantees. Markets are inherently uncertain, and no indicator can predict future price movements with certainty. Rather than promoting false confidence, the toolkit is designed to enhance situational awareness, improve pattern recognition, and streamline execution of sound trading strategies.
Traders are encouraged to integrate toolkit outputs with personal judgment, broader market context, and sound risk management principles. The system excels at identifying structural patterns and managing trade logistics, but ultimate decision authority rests with the trader. This approach fosters a disciplined, systematic mindset that prioritizes high-probability setups, multi-timeframe confluence, and methodical execution over reactive, emotion-driven trading.
Trading Psychology Benefits
The progressive profit-taking system embedded in the tiered take-profit structure addresses a critical psychological challenge: the tension between capturing large moves and avoiding profit give-backs. By systematically reducing position size at early targets while maintaining exposure to extended moves, traders experience regular positive reinforcement that reduces emotional stress and prevents premature exits. This psychological framework promotes patience and discipline, allowing traders to let winners run without the paralyzing fear of watching profits disappear.
Similarly, the volatility-adaptive stop-loss system prevents two common psychological traps: using stops that are too tight (leading to death by a thousand cuts from repeated small losses) and using stops that are too wide (resulting in catastrophic losses that damage both capital and confidence). By anchoring stop distance to current volatility, the system ensures stops are neither arbitrary nor divorced from market reality, promoting acceptance of losses as normal cost of business rather than personal failures.
Final Notes
Precision Structure Pro provides a layered, multi-dimensional perspective of the market, helping traders interpret price action with confidence, refine strategies, and improve trade quality over time. Its combination of adaptive signals, visual clarity, and comprehensive dashboarding creates a system that is both functional and intuitive, enabling both novice and experienced traders to operate efficiently in complex markets. The system supports trader judgment by providing the structural foundation upon which trading decisions are built.
Practical Use & Context
Precision Structure Pro performs best in markets exhibiting clear structural formation with meaningful momentum shifts at key levels. In highly compressed or low-liquidity environments where price drifts without conviction, structural signals may be sparse or unreliable. During extended consolidation with minimal directional variance, the system may generate fewer actionable signals as formation events fail to meet validation thresholds.
The system identifies structural breaks and generates complete trade setups including entry levels, stop-loss placement, and tiered profit targets. For optimal results, traders may choose to combine these signals with additional confirmation tools or filters based on their individual trading methodology and risk tolerance.
Risk Disclaimer
Precision Structure Pro is designed for educational and informational purposes only. Past performance does not guarantee future results. Trading involves substantial risk of loss and is not suitable for all investors. Traders should employ proper risk management, never risk more than they can afford to lose, and consider all outputs as advisory information requiring independent verification. All trading decisions should be made with full awareness of market uncertainty and personal risk tolerance. No indicator or system can guarantee profitable trades, and users accept full responsibility for their trading outcomes.
KINETIC GOLD NQ Velocity Breakout [Ash_TheTrader]🚀 Stop Guessing. Start Scalping with Physics.
Introducing the KINETIC GOLD NQ ⚡ VELOCITY BREAKOUT System
Author: Ash_TheTrader
Assets: Gold (XAUUSD), Nasdaq (US100), Bitcoin (BTC)
Style: High-Frequency Scalping (M1/M5)
---
🛑 The Problem: Why Most Indicators Fail
You’ve been there. The RSI says "Oversold," so you buy. But price keeps crashing. The Moving Average crosses over, so you enter. But the trend is already over.
Why? Because those indicators are lagging . They tell you what happened 10 candles ago.
⚡ The Solution: The "Physics" of Price
Markets move like objects in the real world. They have Velocity (Speed) and Momentum (Mass).
The Kinetic Velocity Breakout (KMB) system doesn't look at "Overbought" or "Oversold." It looks for FORCE .
It answers one simple question: Is the market moving fast enough to pay me?
---
🧠 The 4 "Smart Logic" Features
1. The Velocity Speedometer 🏎️
Most candles are "noise." This system ignores them. It uses a Normalized Volatility Engine to detect when price hits "WARP SPEED".
• Blue: Slow (Cruising). Don't touch.
• Yellow: Accelerating. Get ready.
• Red: WARP SPEED. Institutional money is entering.
2. The 1.5x Impulse Rule 💥
The algorithm strictly enforces the "1.5x Law." A signal ONLY fires if the breakout candle is 1.5 times larger than the average of the last 3 candles.
• Result? No more fakeouts. We only trade real expansions.
3. "Smart Mode" AI Dashboard 🖥️
A heads-up display (HUD) lives on your chart, auto-detecting your trading environment:
• Auto-Session: Tells you if you are in London, New York, or Asia.
• Risk Mode: Shows if you are using "Aggressive" or "Normal" logic.
• Status: Gives you a text readout like "READY ⚡" or "WAIT..."
4. Auto-Pilot Risk Management 🛡️
Scalping is fast. You don't have time to calculate Pips.
• The script draws the lines for you.
• As soon as a "ROCKET" signal appears, a Green TP Line (2x Reward) and Red SL Line appear instantly.
---
🎮 How to Trade: The 3-Step "Kinetic" Strategy
This strategy is designed for Gold (XAUUSD) and Nasdaq (US100) on the 5-Minute Timeframe .
Step 1: The "Yellow" Warning ⚠️
Watch the Smart Structure Lines (Dashed Lines).
• If the candles turn Yellow or the Dashboard says "FAST" , wake up.
• This means pressure is building against a key level.
Step 2: The "Warp" Trigger 🚀
Wait for a Confirmed Breakout . You are looking for:
1. A candle closes OUTSIDE the dashed structure line.
2. The candle color is NEON CYAN (Bullish) or NEON MAGENTA (Bearish).
3. The Signal Label appears: "ROCKET" (Buy) or "DROP" (Sell).
👉 Rule: No Label? No Trade. The 1.5x Logic saves you from bad trades.
Step 3: The Execution 💰
1. Enter at the close of the signal candle.
2. Stop Loss: Place it exactly on the Red Line provided by the indicator.
3. Take Profit: Place it on the Green Line .
4. Walk away. Let the physics work.
---
⚙️ Customizing Your Style
The script comes with two built-in "Personalities":
🛡️ Normal Scalper (Default)
• Best for: New traders, Funded Accounts.
• Logic: Waits for strong confirmation. High Win Rate.
• Risk: 1:2 Risk/Reward.
⚠️ QuickScalper (Aggressive)
• Best for: Gold M1, Volatility Hunters.
• Logic: Enters earlier on 1.2x Impulse. More signals, faster exits.
• Risk: 1:1.5 Risk/Reward (Grab the cash and go).
---
👇 Get the Code
Search for: KINETIC ⚡ in the TradingView library.
"Markets are physics. Trade the Velocity, not the noise." — Ash_TheTrader
Ghost Scalp Protocol By [@Ash_TheTrader]👻 GHOST SCALP PROTOCOL
💀 Stop Getting Trapped. Start Tracking the Banks.
Most retail traders lose because they enter exactly where institutions are exiting. They get caught in "Stop Hunts" and "Fake-Outs."
The Ghost Scalp Protocol is not just an indicator; it is a complete institutional trading system designed for M1 & M5 Scalpers . It combines Smart Money Concepts (SMC) with a Physics-Based Momentum Engine (p=mv) to detect high-probability reversals.
⚛️ THE LOGIC: 3-STAGE CONFIRMATION
This algorithm does not rely on lagging indicators. It uses a 3-step "Protocol" to validate every trade:
1. THE GHOST TRAP (Liquidity Sweeps)
The script automatically draws "Ghost Lines" at key Swing Highs/Lows where retail Stop Losses are hiding. It waits for price to sweep these levels.
The Signal: A Neon Skull (☠️) appears only if price aggressively rejects the level with high volume. This is the "Turtle Soup" pattern.
2. THE PHYSICS ENGINE (p = mv)
Momentum is not just price speed; it is Mass (Volume) x Velocity (Range) . The dashboard calculates the "Force" of every candle.
The Signal: An Arrow (⬆/⬇) appears when momentum surges 5x above the average. This confirms the banks are pushing the move.
3. BANK BIAS (Elasticity Filter)
Markets move like a rubber band. The script calculates a hidden "Fair Value" baseline to create a trading Bias. It only looks for Shorts in PREMIUM (Shorting) zones and Longs in DISCOUNT (Accumulating) zones.
📊 THE SMART DASHBOARD (HUD)
A futuristic, non-intrusive Heads-Up Display keeps you focused on the data that matters:
• 🏦 BANK BIAS: Tells you if Institutions are likely Accumulating or Shorting .
• 📈 HTF TREND: Automatically checks the 1-Hour Trend . Don't fight the tide.
• 🚀 MOMENTUM: Real-time Physics calculation. Green Text = Acceleration, Red Text = Deceleration.
• 🌍 SESSION: Shows active Bank Sessions (Tokyo, London, NY). It flashes ⚠️ OVERLAP ALERT (Gold) when London & New York are open simultaneously.
🔥 STRATEGY: HOW TO TRADE
Use this checklist to execute high-probability scalps:
📉 SHORT SETUP (SELL)
1. Liquidity: Wait for price to break above a Red Ghost Line (Sweep Highs).
2. Signal: Wait for the Pink Skull ☠️ (Trap Detected).
3. Confluence: Dashboard Bias says "SHORTING" and HTF Trend is "BEARISH."
4. Entry: On the Close of the Skull candle.
5. Stop Loss: Just above the wick swing high.
📈 LONG SETUP (BUY)
1. Liquidity: Wait for price to break below a Blue Ghost Line (Sweep Lows).
2. Signal: Wait for the Blue Skull ☠️ (Trap Detected).
3. Confluence: Dashboard Bias says "ACCUMULATING" and HTF Trend is "BULLISH."
4. Entry: On the Close of the Skull candle.
5. Stop Loss: Just below the wick swing low.
🏆 RECOMMENDED PAIRS & TIMEFRAMES
• ⚡ Best Timeframes: M1 (Sniper) and M5 (Standard Scalping).
• 💎 Best Assets: Gold (XAUUSD), Nasdaq (US100), Bitcoin (BTCUSD), and Volatile Forex Pairs (GBPUSD).
🛠️ SETTINGS & CUSTOMIZATION
• Surge Factor: Default is 5.0x for high-conviction signals. Lower to 3.0 for more frequency.
• Smart Sessions: Automatically converts to New York Time (EST) regardless of your location.
• Visuals: Designed with "Ghost Glow" technology—97% transparent backgrounds that look classy and don't clutter your chart.
"The Ghost Algo sees what you can't."
~ Ash_TheTrader
Market Entropy [Alpha Extract]A sophisticated information theory-based market analysis system that measures price randomness and structural order using Shannon entropy calculations across price, returns, and volume distributions. Utilizing adaptive percentile-based thresholds and multi-timeframe confirmation, this indicator delivers institutional-grade regime classification distinguishing between structured trending conditions and chaotic ranging environments. The system's composite entropy framework combined with dynamic gradient visualization and MTF alignment validation provides comprehensive market state assessment for optimal strategy selection and risk management.
🔶 Advanced Shannon Entropy Engine
Implements pure information theory methodology using histogram distribution analysis with configurable bin counts to calculate normalized entropy values for price, returns, and volume metrics. The system constructs probability distributions from rolling windows, applies logarithmic entropy calculations, and normalizes against theoretical maximum entropy to produce 0-1 bounded measurements of market randomness and predictability.
float entropy = 0.0
float total = float(len)
for i = 0 to bins - 1
float count = array.get(bin_counts, i)
if count > 0
float prob = count / total
entropy -= prob * math.log(prob) / math.log(2)
float max_entropy = math.log(bins) / math.log(2)
result := entropy / max_entropy
🔶 Adaptive Percentile Threshold System
Features intelligent threshold determination using rolling percentile calculations over configurable calibration periods to establish structure and chaos zones that adapt to changing market characteristics. The system calculates lower percentile for structure threshold (ordered markets) and upper percentile for chaos threshold (random markets), enabling regime classification that adjusts automatically to market evolution.
🔶 Multi-Timeframe Alignment Framework
Implements comprehensive MTF entropy analysis retrieving composite entropy from three configurable higher timeframes with alignment validation logic. The system calculates divergence between current timeframe entropy and higher timeframe values, generating confirmation signals only when all timeframes exhibit entropy agreement within tolerance bands for enhanced signal reliability.
🔶 Three-Regime Classification Engine
Provides sophisticated market state determination classifying conditions as structure (entropy below lower threshold), chaos (entropy above upper threshold), or neutral (entropy between thresholds) with regime strength measurement. The system tracks regime transitions and calculates conviction scores based on distance from thresholds, enabling nuanced assessment of market order versus randomness.
🔶 Composite Entropy Architecture
Combines three distinct entropy measurements weighted by relevance to create unified market randomness metric with exponential smoothing for stability. The system applies 40% weight to price entropy (distribution shape), 35% to return entropy (movement patterns), and 25% to volume entropy (participation randomness), capturing comprehensive market microstructure information.
🔶 Dynamic Gradient Visualization System
Features advanced color blending engine that transitions between primary and secondary colors based on entropy momentum intensity with glow effects for conviction emphasis. The system calculates entropy rate of change, normalizes against recent extremes, and applies smooth color interpolation from secondary to primary hues as momentum intensifies, creating intuitive visual representation of regime strength.
🔶 Intelligent Zone Fill Architecture
Implements multi-layer gradient fills within structure and chaos zones that intensify as entropy moves deeper into extremes, providing immediate visual feedback on regime conviction. The system creates three-tier gradient levels at 33%, 66%, and 100% penetration into zones with progressively lower transparency, emphasizing extreme entropy conditions requiring attention.
🔶 Momentum-Based Divergence Detection
Generates entry signals when entropy crosses below bull divergence level or above bear divergence level, identifying potential regime transitions before price confirmation. The system monitors entropy momentum direction during threshold crossings and validates with MTF alignment, producing high-probability reversal signals at entropy extremes.
🔶 Normalized Display Framework
Provides 0-100 scaled visualization using adaptive min-max normalization calculated from percentile analysis, ensuring consistent visual interpretation across different market conditions and instruments. The system transforms raw composite entropy into normalized space with dynamic thresholds, enabling cross-market and cross-timeframe entropy comparison.
🔶 Regime Strength Measurement
Calculates conviction scores measuring depth of entropy penetration into structure or chaos zones relative to historical ranges, quantifying how definitively current conditions favor trending versus ranging strategies. The system produces 0-1 strength values that modulate visual intensity and can inform position sizing or strategy allocation decisions.
🔶 Performance Optimization Framework
Utilizes efficient array operations with optimized histogram calculations and configurable lookback limits to balance accuracy with computational efficiency. The system includes intelligent caching of percentile calculations and streamlined probability summations for smooth real-time entropy updates across extended historical periods.
🔶 Why Choose Market Entropy ?
This indicator delivers sophisticated market regime analysis through pure information theory methodology measuring actual randomness versus structure in price behavior. Unlike traditional volatility or trend indicators that measure price movement characteristics, Market Entropy quantifies the fundamental predictability of market conditions using Shannon entropy calculations. The system's composite approach combining price, return, and volume distributions with adaptive thresholds, MTF confirmation, and gradient visualization makes it essential for traders seeking objective regime classification to optimize strategy selection. Low entropy (structure zone) indicates ordered, trending conditions favorable for directional strategies, while high entropy (chaos zone) signals random, ranging markets better suited for mean reversion or reduced exposure. The indicator excels at identifying regime transitions before they become obvious in price action across cryptocurrency, forex, and equity markets.
CUSUM Volatility BreakoutCUSUM Volatility Breakout A statistical trend-detection and volatility-breakout indicator that identifies subtle momentum shifts earlier than traditional tools.
OVERVIEW
The CUSUM control chart is a statistical tool designed to detect small, gradual shifts from a target value. In trading, it helps identify the early stages of a trend, giving traders a heads-up before momentum becomes obvious on standard price charts. By spotting these subtle movements, the CUSUM Volatility Breakout indicator (CUSUM VB) can highlight potential breakout opportunities earlier than traditional indicators. In other words, a statistical trend detection & breakout indicator.
Copyright © 2025 CoinOperator
HOW IT WORKS
CUSUM VB uses a combination of differenced price series, volume normalization, and dynamic control limits:
CUSUM Principle: Tracks cumulative deviations of price from a zero reference. Signals occur when cumulative deviations exceed a control limit shown on the chart and clears any enabled filters.
Adaptive Volatility: H adjusts automatically based on short- vs long-term ATR ratios, allowing faster detection during volatile periods and reduced false signals in calm markets.
Volume Weighting (optional): Amplifies price CUSUM values during high-volume bars to prioritize market participation strength.
ATR Confirmation (optional): Ensures breakouts are accompanied by expanded volatility.
Bollinger Band Squeeze Integration (optional): Confirms trend breakouts by detecting volatility contraction and release shown on the chart as triangles.
Signals:
Arrows on the price chart mark the bars where trades are actually filled, based on conditions detected on the prior signal bar.
Long Entry: Confirmed positive CUSUM breach (price & volume) with BB breakout (signal bar).
Short Entry: Confirmed negative CUSUM breach (price & volume) with BB breakout (signal bar).
Exit Signals: Triggered automatically by opposite-side signals.
Alerts, when created, fire on the bars where fills occur.
CHART COMPONENTS
CUSUM Upper Price (CU Price) and CUSUM Lower Price (CL Price) are green/red circles for confirmed signals.
● Rapid upward accumulation of CU Price indicates a developing bullish trend.
● Rapid downward accumulation of CL Price indicates a developing bearish trend.
Decision/Control limits (UCL/LCL, red)
Zero line (reference for the differenced price series baseline)
Optional BB triangles and volume CUSUM
SETUP AND CONFIGURATION
Differenced Price Series
Differenced Price Length and Lag
Increase differencing lag or window length → Increases variance of residuals → Wider control limits (UCL/LCL) → Slower to trigger.
Decrease lag or window → Tighter limits, more responsive to short-term regime shifts.
CUSUM Parameters
Volume-Weighted CUSUM
NOTE : Uses price length if 'Confirm Price with Volume' is disabled, otherwise will use volume length.
Amplifies CUSUM price responses during high-volume bars and reduces them during low-volume bars. This links trend detection to market participation strength.
Volume-Weighted CUSUM doesn’t replace price confirmation with volume; it modulates it by volume intensity, amplifying price signals when participation is strong and suppressing them when weak.
Recommended when analyzing assets with consistent volume patterns (e.g., stocks, major futures).
Disable for low-liquidity or irregular-volume instruments (e.g., crypto pairs, small-cap stocks).
ATR Confirmation
Enable this feature to confirm CUSUM signals only when price deviations are accompanied by higher-than-normal volatility. The indicator compares current ATR to a smoothed ATR to detect volatility expansion. This helps distinguish true breakouts from low-volatility noise and reduces false signals during quiet periods.
Adjust the ATR lookback length, smoothing length, and expansion factor to control sensitivity. Rule of thumb:
ATR Length ≈ 0.5 × differenced price length to 1.5 × differenced price length gives balanced sensitivity.
ATR Smoothing 5–10 bars.
ATR Expansion 5% to 50%.
CUSUM Input Mode
Select how CUSUM processes differenced price and log-normalized volume — either directly (Txfrm Data) or as deviations from a short-term EMA baseline (Residuals):
Txfrm Data = transformed input: differenced price & log-normalized volume as input for CUSUM (larger swings, more frequent control limit breaches)
Residuals = deviation from short-term EMA baseline (smaller swings, fewer control limit breaches, but higher signal quality).
Residual EMA Length: Defines how quickly the residual baseline adapts to recent differenced price moves. Shorter = more reactive; longer = smoother baseline. Keep EMA length moderate; over-smoothing can distort timing.
Control Sensitivity (K)
Increase K → Less sensitive → CUSUM accumulates slower → Fewer signals, captures only major trends.
Decrease K → More sensitive → CUSUM accumulates faster → More signals, captures minor swings too.
Reset Mode : Method of resetting CUSUM values.
Immediate Reset: Reset both immediately after any signal breach. Traditional SPC.
Opposite-Side Reset: Reset only the opposite side when a valid signal fires. Best for ongoing trend tracking.
Decay Reset: Gradually reduce CUSUM values toward zero with a decay factor each bar. Maintains trend memory but allows slow “forgetting.”
Threshold Reset: Reset only if CUSUM returns below a small threshold (10 % of H). Filters noise without full wipe.
No Reset / Continuous: Never reset; instead track running totals. Long-term cumulative bias measurement.
Conflict Handling : Method of handling conflicting signals.
Ignore Both: Discards both when overlap occurs.
Prioritize Latest: Chooses the direction implied by the most recent close.
Prioritize Stronger: Compares absolute magnitudes of CU Price vs CL Price.
Average Resolve: Looks at the difference; small overlap → ignore, otherwise pick direction by sign.
Sequential Confirm: Requires N consecutive same-direction signals before confirmation.
Volume Parameters (Optional)
Amplification Factor
Adjusts volume sensitivity and effectively rescales the log series of volume to a comparable magnitude with price changes.
Since price and volume are normalized in a compatible way, the amplification factor is used instead of independent K and H values for volume.
Bollinger Bands (Optional)
Lookback Synchronization
BB Lookback (for CUSUM): Number of bars that define a window for the BB signal to look back for the CUSUM signal.
CUSUM Lookback (for BB): Number of bars that define a window for the CUSUM signal to look back for the BB signal.
Both can be enabled for stricter alignment.
Relationship Between K, H, ARL₀ and ARL₁
H (max) is usually the only H you need to adjust. With everything else being constant, increasing either K or H (max) generally increases both ARL₀ and ARL₁ : higher thresholds reduce false alarms but slow detection, and lower thresholds do the opposite.
Increase Min Target ARL ratio →
ARL₀ increases (safer, fewer false alarms)
ARL₁ decreases or stays small (faster detection)
Control limits slightly expand to achieve separation
Strategy becomes more selective and stable
Decrease Min Target ARL ratio →
ARL₀ decreases (more false alarms tolerated)
ARL₁ increases (slower detection tolerated)
Control limits tighten
Strategy becomes more sensitive but lower quality
The ARL Ratio of ARL₀ / ARL₁ is typically between 3 and 8. This implies you want your ARL₀ (false-alarm interval) ≈ 'Min Target ARL ratio' × differenced price length window.
Example:
"Min Target ARL ratio = 4.0"
⇒ implies you want your ARL₀ (false-alarm interval) ≈ 4 × differenced price length.
Assume price length = 50 (typical differencing window).
ARL ratio = 4.0 → target ARL = 4 × 50 = 200 bars.
● On a 6-hour chart (≈4 bars/day) → ~50 days between expected false alarms (on average).
● On a daily chart → ~200 trading days between false alarms (very conservative).
ARL ratio = 8.0 → target ARL = 400 bars → twice as infrequent signals vs ratio=4.
ARL ratio = 2.0 → target ARL = 100 bars → about half the inter-signal interval.
Another way to think about it: probability of a false alarm on any bar ≈ 1 / target ARL. If you want ~1% of bars producing alarms, target ARL ≈ 100.
QUICK START
Start with the defaults.
Set price series → length/order/lag
Configure CUSUM thresholds → K, H min/max
1. Adjust the price differencing lag/window.
2. Verify that it captures real price inflection points without overreacting to bar noise.
Enable optional filters → Volume, ATR, BB
The optional Bollinger Bands squeeze usually works best if used with CUSUM Input Mode = Txfrm Data.
Monitor CUSUM chart → CU Price, CL Price, thresholds, zero line
Act on signals → data window / chart triangles
Adjust sensitivity → H (max), K, lengths
Monitor ARL ratio and CUSUM behavior for fine-tuning
Note : When you’ve finalized the length, lag, and order of the Price Difference, as well as the Ln(Vol) Series of “Confirm Price with Volume” if enabled, then pass both through the Augmented Dickey–Fuller (ADF) mean reversion test to ensure they are stationary, i.e., mean reverting. You can find a ready-made indicator for such use at . Many thanks to tbtkg for this indicator.
SUMMARY
CUSUM VB combines CUSUM statistical control, volatility-adaptive thresholds, volume weighting, and optional BB breakout confirmation to provide robust, actionable signals across a wide variety of trading instruments.
Why traders use it : Fast detection of shifts, reduced false alarms, versatile across markets.
Ideal for : Futures (continuous contracts), forex, crypto, stocks, ETFs, and commodity/index CFDs, especially where:
● Price and volume data exist
● Breakouts and volatility shifts are tradable
● There’s enough liquidity for meaningful signals
Visualization : Upper/lower CUSUM circles, UCL/LCL thresholds, optional highlight traded background, optional volume and BB overlays on the chart, optional entry/exit labels on the price chart, as well as entry/exit signals in the data window.
Alerts : For entry/exit labels when trades are actually filled.
CUSUM VB is designed for traders who want statistically grounded trend detection with configurable sensitivity, visual clarity, and multi-market versatility.
DISCLAIMER
This software and documentation are provided “as is” without any warranties of any kind, express or implied. CoinOperator assumes no responsibility or liability for any errors, omissions, or losses arising from the use or interpretation of this software or its outputs. Trading and investing carry inherent risks, and users are solely responsible for their own decisions and results.
Footprint.Pro [Elykia]OVERVIEW
The Footprint Pro is a comprehensive Order Flow and Footprint analysis tool designed to visualize buying and selling pressure inside each candlestick. Unlike standard charts that only show OHLC (Open, High, Low, Close), this script uses a proprietary Reconstruction Engine to reveal the internal volume distribution, allowing traders to see the interaction between aggressive buyers (Ask) and sellers (Bid) at every price level.
METHODOLOGY & DATA PRECISION
To achieve high-definition Order Flow without external data feeds, this script is designed to be applied on a 1-second (1s) chart timeframe .
Reconstruction Engine: It harvests granular 1-second data to mathematically reconstruct and draw Footprint candles for higher timeframes (from 1 Minute up to 15 Minutes).
Why 1-second? By processing 1-second intervals, the script captures the exact price levels where volume was traded with very high precision. This allows for the creation of accurate Volume Profiles and Delta calculations inside the candle, creating a granular view impossible to achieve with standard timeframe data.
CALCULATION MODES & STYLES
The script processes this data using distinct algorithms and visualization styles to adapt to different market conditions.
Timeframe Mode: Reconstructs standard time-based footprints (e.g., viewing M5 candles while remaining on the 1s chart).
Simulated Range Bars: Uses a custom volatility algorithm to ignore time and close bars based on pure price movement.
Why use Range Mode? Unlike time-based charts, Range bars filter out "noise" during low volatility (choppy markets) and clarify market structure, allowing traders to see pure price action and volume distribution without the distortion of time.
VISUALIZATION TOOLS: HISTOGRAM, HEATMAP & POC
Profile Style (Histogram): Instead of raw numbers, the script draws a volume profile inside the candle. This offers an instant visual reading to spot if volume is "heavy" at the bottom (support) or top (resistance).
Heatmap (Dynamic Coloring):
Function: The script dynamically adjusts the opacity (transparency) of each histogram bar based on Delta intensity relative to surrounding volumes. Levels with strong aggression appear opaque and vivid, while low activity zones remain transparent.
Trader Benefit: This creates an immediate visual hierarchy. The trader's eye automatically ignores noise to focus only on "Hot Spots" where the real battle between buyers and sellers is taking place.
POC (Point of Control): Indicates the exact price level where maximum volume was traded. Its position is crucial: a POC at the top of a wick indicates buyers were trapped (weakness/rejection).
Show Data (Dashboard): Displays real-time Total Volume, Delta, and candle size to qualify volatility (e.g., distinguishing an anecdotal move from a real institutional impulse).
MAJOR SYNERGY: MULTI-TIMEFRAME SMT & FOOTPRINT
The script integrates an SMT (Smart Money Technique) engine that works in synergy with the Footprint to offer a comprehensive "Macro & Micro" approach.
1. The SMT Engine (The Structural Alert)
The module performs a background scan on 4 distinct timeframes simultaneously (e.g., 30s, 1m, 2m, 5m).
Logic: It continuously compares the Pivots (Highs/Lows) of the current asset against a correlated comparison asset (e.g., NQ vs ES or EURUSD vs DXY).
Signal: If Asset A makes a Higher High while Asset B makes a Lower High on ANY of the 4 monitored timeframes, a specific divergence label is plotted.
Interest: It is an early warning signal indicating an institutional intention of reversal or exhaustion, often before price visibly turns.
2. Interaction with Footprint (The Confirmation)
An SMT divergence alone can be early. Combining it with Footprint offers surgical timing:
Context: SMT warns that correlations are breaking and the move is running out of steam.
Trigger: The trader then waits for the Footprint to display a Rejection Setup or Absorption at this SMT level.
Result: This avoids entering too early and confirms that real orders (Micro-structure) validate the structural thesis (Macro).
SMART ASSISTANT: REAL-TIME CONTEXT
To assist traders, a logic engine analyzes the last 5-10 reconstructed candles to detect actor psychology:
Liquidity Sweeps (Turtle Soup):
Function: Price breaks a recent high/low to trigger stops, then immediately reintegrates.
Trader Benefit: Allows identification of false breakouts and taking the counter-party (Reversal) with an excellent risk/reward ratio, once liquidity is captured.
Absorption (Iceberg Orders):
Function: Massive volume traded without price progression (Strong Delta but small candle).
Trader Benefit: Signals a "Wall" of passive limit orders. The trader knows not to bet against this wall (protection) or can enter in the direction of the defense.
Traps (Delta Divergence):
Function: Divergence between candle color and its Delta (e.g., Red Candle with massive Green Delta).
Trader Benefit: Indicates aggressive participants are "trapped" (underwater). The trader profits from their pain (Pain Trade) when these trapped traders have to liquidate positions.
THE 6 ALGORITHMIC SETUPS (TRIANGLES & MARKERS)
The script monitors every tick to generate 6 specific signals, reducing trader mental fatigue:
Setup 1: Rejection (Validated Rejection)
Signal: Large wick + Delta confirming rejection.
Interest: Filters profit-taking to keep only real counter-trend aggression.
Setup 2: Exhaustion
Signal: Sharp volume drop at high/low + POC at extreme.
Interest: Indicates end of a healthy trend (no one left to push price).
Setup 3: Failed Aggression
Signal: Explosive volume (>2x avg) but price stalls.
Interest: Sign of institutional hand blocking the market (Absorption). Powerful reversal signal.
Setup 4: Trap
Signal: Strict divergence between candle color and cumulative Delta.
Interest: Exploiting the "Squeeze" of trapped traders.
Setup 5: Stacked Imbalances (The Wall)
Signal: 3 consecutive price levels with buy/sell imbalance > 300%.
Interest: Materializes a very strong Support/Resistance zone (displayed by a box). If price tests this zone again, it's a high-probability bounce opportunity.
Setup 6: Absorption Pattern (Zero Prints / Block)
Signal: Presence of "Zeros" in footprint (lack of liquidity) vs large volume (block).
Interest: Fine microstructure detection often indicating immediate stop of current move.
VWAP INTEGRATION & COMBINED STRATEGY
The script calculates and plots an anchored VWAP (Volume Weighted Average Price), based on the reconstructed data.
Interest of VWAP (The "Fair Value"): The VWAP is the absolute reference for institutional algorithms. It represents the average price paid by all participants during the session. If price is above, the trend is bullish (buyers in control); below, it is bearish. It often acts as an invisible dynamic support/resistance.
VWAP + Footprint Interaction (Context + Trigger): The VWAP provides the level of intervention and the Footprint provides the confirmation via volume.
Instead of trading every Footprint signal randomly, the trader uses VWAP as a probability filter:
1. In uptrend: Ignore sell signals. Wait for price to pull back to VWAP.
2. Confirmation: At that precise moment, look at the Footprint.
Concrete Trade Example (The "Defensive Bounce"):
Scenario: Price is in uptrend and corrects to touch the VWAP line.
What Footprint must show: Look for an Absorption or Failed Aggression Setup. For example, aggressive sellers attack the VWAP (very negative Delta, big red volume), but price refuses to close below VWAP (rejection wick or green candle).
The Order: This is the signal that institutions are defending their average price (passive buy limits absorbing sells). The trader buys with a short stop below the absorption wick, aligning with "Big Players".
AUTHOR'S INSTRUCTIONS
IMPORTANT: CONFIGURATION REQUIRED
This script uses a granular reconstruction engine. To work correctly, you MUST set your chart timeframe to 1 second (1s) .
Step-by-Step Setup:
Open your chart and select the 1-second (1s) timeframe.
Hide the original candles: Right-click on the chart, Settings, Symbol, uncheck the "Body", "Borders", and "Wick". This removes the clutter of the 1s bars so you can see the reconstructed Footprint clearly.
Add the indicator to the chart.
The script loads with a default 1-minute configuration. You can change to Range Bars or other timeframes in the Settings.
DISCLAIMER
This tool is for informational and educational purposes only. It does not constitute financial advice or a signal service. Past performance of the detected patterns (SMT, Imbalances...) does not guarantee future results. Trading involves a high level of risk.
ACCESS
This is an invite-only script. To obtain access, please use the link provided in the Signature field below.
V-Max: Tactical Clock & Price (Master Fit)Overview
The V-Max Tactical Clock & Price is a high-visibility utility dashboard engineered for precision execution in global financial markets. It serves as a "Physical Timezone Navigator," providing real-time price tracking and synchronized local time display directly on the chart. This ensures traders can align their execution with specific market openings and closing volatility regardless of the exchange's default timezone.
Core Technical Logic & Features
This script focuses on the physics of time-alignment and visual stability:
Physical Time Calibration Engine: Unlike standard UI clocks, this script employs a millisecond-level compensation engine using the formula: $timenow + (tz\_offset \times 60 \times 60 \times 1000)$. This allows for precise synchronization with any global market (e.g., London, New York, or Asia sessions).
Momentum-Driven Price Rendering: The price display utilizes conditional coloring logic ($close \ge open ? up\_col : dn\_col$) to provide immediate visual feedback on the current bar's momentum.
High-Identifiability UI (Master Fit): Leverages the table.new titan rendering engine with size.huge font specifications for the price. This ensures critical data remains readable even on small mobile screens or high-density multi-chart layouts.
Anti-Flicker Monospaced Formatting: Employs font.family_monospace to ensure strict numerical alignment, preventing visual flickering or "jumping" during periods of extreme market volatility.
How to Use
Timezone Setup: Enter your local GMT offset (e.g., +8 for Taiwan/Singapore, -5 for New York) in the settings.
Visual Customization: Adjust the dashboard position (default: Bottom Left) and background aesthetics to fit your professional trading workspace.
產品概述
V-Max 戰術時鐘與價格顯示器是一款為全球市場設計的高辨識度工具。它作為一個實時的「全球時區導航儀」,在圖表上直接提供實時價格追蹤與同步化的本地時間顯示,確保交易者能精確對齊各國市場開盤瞬間的波動。
核心技術邏輯與功能物理時間校準引擎:採用毫秒級時間補償運算,公式為:$timenow + (tz\_offset \times 60 \times 60 \times 1000)$。這讓交易者能精確校準全球任一交易所的本地時間。
動能價格渲染:價格顯示具備即時漲跌變色邏輯,提供直觀的即時盤感反饋。
特大字體 UI (Master Fit):採用 size.huge 字體規格顯示價格,確保在移動端或複雜多圖表布局下依然清晰易讀。
防閃爍等寬格式:使用等寬字體確保數字在劇烈波動時不會產生視覺跳動,維持高度的讀數穩定性。
Access & Support
This script is published as a Free Public Utility in the TradingView Library. Disclaimer: For educational purposes only. Past performance does not guarantee future results.
Disclaimer: This script is for technical analysis and educational purposes only. It does not provide financial advice.
Fresh Order Blocks v1.4.1Multi Timeframe Fresh Order Blocks v1.4.1 with settings
by Mahdi BML | Cryptomentor | mahdibml.com
HTF Candles on Lower Timeframes (Manual OHLC)Hi everyone, this indicator is designed to plot higher timeframes candles on the chart. Here are the details:
The data is built directly from OHLC values at specific time intervals, instead of using request.security.
It supports 1H / 2H / 4H / 8H / 1D higher timeframes, and can be viewed on lower timeframes such as 5m / 10m / 15m / 30m.
The main idea behind this chart is to serve as a foundation for building other indicators that need to operate on higher timeframes while still being visualized on lower timeframes.
Feel free to share your feedback or ideas for improvement in the comments below.
V-Max L1: Strategic Horizon & Trend NavigatorV-Max L1: Strategic Horizon & Trend Navigator
Overview The Strategic Horizon & Trend Navigator (V-Max L1) is a comprehensive trend-following system designed to synthesize macro market inertia with localized momentum. It serves as a visual navigation tool, filtering out high-frequency noise to identify high-probability trend regimes and structural shifts.
Core Technical Logic This script integrates several multi-layered components to provide a unified trend-analysis framework, justifying its invite-only access:
Institutional Trend Boundary: The system utilizes an integrated Vegas Tunnel logic (200/233 EMA) as the core structural filter. This defines the institutional trend bias, effectively distinguishing between bullish and bearish market regimes.
Proprietary Momentum Integration: A multi-length RSI algorithm is employed to detect momentum extremes. The logic calculates exhaustion and acceleration phases, visualized through specific color-coded status signals (Yellow/Pink) to highlight potential overextended conditions.
Volume-Price Ignition Engine: The script monitors for volume-price divergence, specifically flagging "Ignition Candles" where the relative volume exceeds 1.5x the rolling average. This identifies areas of high institutional activity and potential trend initiation.
Signal Stabilization (MTF Logic): To minimize signal flickering on lower timeframes, the script incorporates MTF (Multi-Timeframe) confirmation protocols. This ensures that localized signals are only validated when they align with higher-order structural shifts.
How to Use
Background Trend Bias: Visualizes the macro regime. Neutral/Gray backgrounds indicate a bullish structural bias, while Dark Red highlights bearish dominance.
Launch & Momentum Signals: "Long/Short" labels appear when short-term moving average dynamics synchronize with specific RSI momentum thresholds.
Top/Bottom Reversal Markers: Based on long-cycle RSI extremes, these markers help identify potential cyclical exhaustion for strategic profit-taking or reversal preparation.
產品概述 V-Max L1 戰略地圖是一款綜合性趨勢導航系統,旨在將宏觀市場慣性與局部動能相結合。它作為一種視覺化導航工具,能有效過濾高頻雜訊,幫助交易者識別高勝率的趨勢狀態與結構性轉變。
核心技術邏輯 本腳本整合了多個層次的研究組件,形成統一的趨勢分析框架:
機構級趨勢分水嶺: 系統整合了維加斯通道 (200/233 EMA) 邏輯作為核心結構濾網。這定義了機構級的趨勢偏好,有效區分多頭與空頭的結構性狀態。
專有動能整合: 採用多長度 RSI 算法檢測動能極限。該邏輯計算動能的疲勞與加速階段,透過顏色訊號(黃燈/粉燈)標註潛在的過熱狀態。
量價點火引擎: 腳本監控量價背離,特別標註相對成交量超過 1.5 倍滾動平均值的「點火 K 線」。這有助於識別高強度的機構參與及趨勢啟動區域。
訊號平滑處理 (MTF 邏輯): 為減少低時區的訊號閃爍,腳本整合了多時區 (MTF) 確認協議,確保局部訊號與高階結構位階保持一致。
Access & Authorization This is an Invite-Only script. Please refer to my TradingView Profile Signature for instructions on how to request access and authorization.
Disclaimer: This script is for technical analysis and educational purposes only. Trading involves risk.
Quant-Action Pro: Triple Confluence EngineQuant-Action Pro: Triple Confluence Engine
Systematic Framework for Structural Price Action Analysis
Quant-Action Pro is a high-performance analytical engine designed to synchronize institutional liquidity flow with market geometry. Instead of traditional "signals," this framework identifies Structural States where three independent algorithmic layers align, providing a objective roadmap for the current price action context.
1. Core Algorithmic Matrix
The engine operates by monitoring the interaction between price and three proprietary logic layers:
A. Institutional Flow Node (SP2L) —
Logic: Monitors "Passive Liquidity Absorption" at the 20-period EMA.
Function: Identifies zones where institutional buyers/sellers are defending the trend's equilibrium. This is not a simple touch; it requires a validated "Touch-and-Hold" sequence.
B. Structural Flip Scanner (BTB) —
Logic: Detects the transition from old supply to new demand (S/R Flip).
Function: Uses a 3-phase Break-Test-Break verification to confirm that a structural breakout is backed by volume, reducing the risk of "Fake-outs."
C. Liquidity Compression Monitor (Micro Map) —
Logic: Statistical range-contraction analysis (Volatility Squeeze).
Function: Signals a High-Density State where price is coiling for an expansion move.
2. The Golden State: Triple Confluence Logic
The GOLD label represents the "Apex" of this engine. It is triggered only when the SP2L, BTB, and Micro Map layers synchronize on a single candle. In structural terms, this means:
Trend Defense (SP2L) is active.
Structural Breakout (BTB) is confirmed.
Volatility Expansion (MM) is imminent.
This Triple-Layer filtering ensures that Golden Signals only appear during periods of maximum market conviction.
3. Professional Implementation (Structural View)
MTF Trend Matrix: A built-in dashboard provides a 1H, 4H, and 1D diagnosis to ensure local setups align with the Macro Trend.
Smart Invalidation (Adaptive Trendlines): The engine draws dynamic geometry to define the current "Structural Floor/Ceiling." A decisive close beyond these lines acts as a clear Invalidation Point for the current thesis.
Mean Reversion: The system uses the 200-EMA as the primary directional filter, defining whether the market is in a "Bullish Expansion" or "Bearish Correction" state.
⚠️ Risk Disclaimer
Trading financial instruments involves significant risk. Quant-Action Pro is an educational tool designed for research and structural analysis. It does not provide financial advice. Past performance is not indicative of future results. Always use strict risk management.
Liquidity Sweeps [Kodexius]Liquidity Sweeps is a price action indicator built to visualize and react to common “stop run” behavior around recent swing highs and swing lows. It continuously detects pivot-based liquidity levels (recent resistance and support), extends them forward in time, and then classifies the interaction when price probes beyond a level but fails to hold through it.
The script focuses on two outcomes:
Buy-Side Liquidity Sweep (BSL): price takes liquidity above a recent swing high (high breaks above the level) but closes back at or below the level.
Sell-Side Liquidity Sweep (SSL): price takes liquidity below a recent swing low (low breaks below the level) but closes back at or above the level.
To support real trading workflows, it keeps charts readable by limiting active levels, offers clean styling options, and optionally filters sweep signals using relative volume (RVOL) so you can require participation before a sweep is considered valid.
🔹 Features
🔸 Pivot-Based Liquidity Level Detection (Swing Highs and Swing Lows)
The indicator uses a user-defined Pivot Length to identify confirmed swing points:
Pivot Highs become resistance liquidity levels (buy-side liquidity above highs).
Pivot Lows become support liquidity levels (sell-side liquidity below lows).
Each detected level is drawn as a horizontal line and automatically extended to the current bar until it is swept or broken.
🔸 Automatic Level Management (De-Cluttering)
To prevent chart overload, the script stores levels in internal arrays and enforces Maximum Active Levels:
When new levels are added and the limit is exceeded, the oldest level is removed.
This keeps only the most relevant, recent liquidity zones visible.
🔸 Clear Sweep Classification (BSL and SSL)
The sweep logic is intentionally strict and practical:
- BSL Sweep triggers when the bar’s high is above resistance but the close is back below or at resistance.
- SSL Sweep triggers when the bar’s low is below support but the close is back above or at support.
This models the “probe and reject” behavior typical of liquidity grabs.
🔸 Optional Volume Confirmation Using RVOL
When Enable Volume Filter is turned on, sweeps are only valid if the current bar’s volume is strong relative to the last 20 bars:
The script computes a 20-period volume average.
You can require volume to exceed the average by a chosen Volume Multiplier (example: 1.5 means 150% of the average).
If the filter is disabled, sweeps are evaluated purely on price conditions.
🔸 Sweep Labels and Level Highlighting
On a valid sweep:
A label is printed on the sweep bar:
- ▼ BSL for buy-side liquidity sweeps (yellow)
- ▲ SSL for sell-side liquidity sweeps (blue)
The swept level is highlighted by drawing an additional colored line over the swept range.
The script also prints the bar’s RVOL percentage near the midpoint of the swept line segment:
- BSL volume text is placed above the line midpoint
- SSL volume text is placed below the line midpoint
This makes it easy to see whether a sweep was low-effort or supported by strong participation.
🔸 Styling Controls
You can fully tailor the visual output:
Resistance and support line colors
Line style selection: Solid, Dotted, Dashed
Toggle sweep labels on or off
🔸 Alerts
The indicator exposes alert conditions for both sweep types and also fires explicit alert messages once per bar close when a sweep is confirmed:
- Buy Liquidity Sweep (BSL)
- Sell Liquidity Sweep (SSL)
🔹 Calculations
1) Pivot High / Pivot Low Detection
float ph = ta.pivothigh(high, pivotPeriodInput, pivotPeriodInput)
float pl = ta.pivotlow(low, pivotPeriodInput, pivotPeriodInput)
Interpretation:
A pivot is only confirmed after pivotPeriodInput bars have passed.
Once confirmed, the level is anchored at the pivot bar and then extended forward.
2) Creating and Storing Liquidity Levels
New Resistance (Pivot High):
if not na(ph)
line newL = line.new(bar_index , ph, bar_index, ph,
color = resistanceColorInput, width = 1, style = getLineStyle(lineStyleInput))
resistanceLevels.push(LiquidityLevel.new(ph, bar_index , newL))
if resistanceLevels.size() > maxLinesInput
(resistanceLevels.shift()).delete()
New Support (Pivot Low):
if not na(pl)
line newL = line.new(bar_index , pl, bar_index, pl,
color = supportColorInput, width = 1, style = getLineStyle(lineStyleInput))
supportLevels.push(LiquidityLevel.new(pl, bar_index , newL))
if supportLevels.size() > maxLinesInput
(supportLevels.shift()).delete()
This enforces the “Maximum Active Levels” limit by deleting the oldest stored level when the cap is exceeded.
3) Relative Volume (RVOL) and Volume Filter
float volAvg = ta.sma(volume, 20)
float volRelative = (volume / volAvg) * 100
bool isVolStrong = not useVolFilterInput or (volume > volAvg * volMultiplierInput)
volRelative expresses the sweep bar’s volume as a percentage of the last 20-bar average.
If the filter is enabled, a sweep is valid only when isVolStrong is true.
4) Sweep Conditions (Core Logic)
Buy-Side Liquidity Sweep (Resistance Sweep)
A resistance level is considered swept when price trades above it but closes back at or below it.
bool priceSwept = high > lvl.price and close <= lvl.price
bool broken = close > lvl.price
priceSwept captures the “probe and reject” behavior.
broken invalidates the level if price closes above it.
The confirmation and cleanup flow:
if priceSwept and isVolStrong
buySweepOccurred := true
if showLabelsInput
label.new(bar_index, high, "▼ BSL",
style = label.style_label_down, color = #00000000,
textcolor = C_SWEEP_BUY, size = size.small)
line.new(lvl.startBar, lvl.price, bar_index, lvl.price, color = C_SWEEP_BUY, width = 1)
int midX = math.round((lvl.startBar + bar_index) / 2)
label.new(midX, lvl.price, str.tostring(volRelative, "#") + "% VOL",
color = #00000000, textcolor = color.new(C_SWEEP_BUY, 20),
style = label.style_label_down, size = size.tiny)
resistanceLevels.remove(i).delete()
else if broken
resistanceLevels.remove(i).delete()
Sell-Side Liquidity Sweep (Support Sweep)
A support level is considered swept when price trades below it but closes back at or above it.
bool priceSwept = low < lvl.price and close >= lvl.price
bool broken = close < lvl.price
The confirmation and cleanup flow:
if priceSwept and isVolStrong
sellSweepOccurred := true
if showLabelsInput
label.new(bar_index, low, "▲ SSL",
style = label.style_label_up, color = #00000000,
textcolor = C_SWEEP_SELL, size = size.small)
line.new(lvl.startBar, lvl.price, bar_index, lvl.price, color = C_SWEEP_SELL, width = 1)
int midX = math.round((lvl.startBar + bar_index) / 2)
label.new(midX, lvl.price, str.tostring(volRelative, "#") + "% VOL",
color = #00000000, textcolor = color.new(C_SWEEP_SELL, 20),
style = label.style_label_up, size = size.tiny)
supportLevels.remove(i).delete()
else if broken
supportLevels.remove(i).delete()
5) Level Extension to Current Bar
method update(LiquidityLevel this) =>
line.set_x2(this.lineObj, bar_index)
This keeps each active liquidity level extended to the current candle until it is swept or decisively broken.
6) Alerts
alertcondition(buySweepOccurred, "Buy Liquidity Sweep", "BSL Swept!")
alertcondition(sellSweepOccurred, "Sell Liquidity Sweep", "SSL Swept!")
if buySweepOccurred
alert("Kodexius BSL Sweep: " + str.tostring(close), alert.freq_once_per_bar_close)
if sellSweepOccurred
alert("Kodexius SSL Sweep: " + str.tostring(close), alert.freq_once_per_bar_close)
Market State Intelligence [Interakktive]Market State Intelligence (MSI) is a diagnostic market-context indicator that reveals how the market is behaving — not where price "should" go.
MSI does not generate buy/sell signals. Instead, it classifies market conditions into clear behavioural regimes by continuously measuring:
- DRIVE (directional effort)
- OPPOSITION (absorption / resistance)
- STABILITY (structural persistence)
MSI is designed to answer three practical questions:
- What state is the market in right now?
- Is energy building, releasing, or decaying?
- Is participation aligned with price, or opposing it?
█ WHAT MSI DOES
MSI operates as a real-time regime classification engine that processes each closed bar through three independent measurement systems:
DRIVE — Directional Effort (0–100)
- Displacement efficiency (net progress vs total path)
- Range expansion quality (actual range vs expected ATR range)
- Body dominance (body vs candle range)
OPPOSITION — Absorption / Resistance (0–100)
- Wick pressure (rejection relative to attempt)
- Effort–result gap (high effort, low progress)
- Reversal density (counter-moves frequency)
STABILITY — Persistence (0–100)
- Condition persistence (how long conditions hold)
- Variance score (flip frequency)
- Follow-through consistency (reaction continuity)
These three forces feed a deterministic classifier with hysteresis (anti-flicker) to identify five regimes:
COMPRESSION — low drive, low opposition, higher stability (pressure building, direction unclear)
EXPANSION — high drive, low opposition (directional energy release)
TREND — medium-high drive, higher stability, low-medium opposition (healthy continuation)
DISTRIBUTION — medium drive, high opposition (effort absorbed; progress blocked)
TRANSITION — rapidly rising opposition, low stability (regime breakdown / uncertainty)
█ WHAT MSI DOES NOT DO
- No buy/sell signals, entries/exits, or performance claims
- No prediction of future direction
- No repainting: calculations use closed-bar data only
MSI is a market state layer intended to support your execution framework.
█ VISUAL SYSTEM
MSI uses a layered visual grammar designed to remain readable on live charts:
Regime Ribbon
A thin horizontal band showing the current regime via colour. Ribbon opacity reflects regime confidence (stronger confidence = more visible).
Pressure Envelope (core visual)
A soft corridor around price that expands with Drive and becomes more visible as Opposition increases. This visualises "pressure thickness" around current action (not a volatility band for entries).
Structural Memory
Faint background stains appear where regimes previously failed (e.g., expansion collapsing into absorption). These are behavioural context zones showing where market intention was rejected — not support/resistance.
Regime Change Markers (optional)
Subtle labels appear when regimes transition after confirmation. Useful for replay and education.
Effort Halo (optional)
Candle highlighting when Opposition materially exceeds Drive, indicating absorption/inefficiency.
█ HUD PANEL
The HUD displays:
- Current regime name + colour indicator
- A context gate showing whether conditions are aligned with long-bias or short-bias context (not an entry/exit system)
█ REGIME LEGEND
When enabled, displays:
- A one-line definition of the current regime
- Live Drive / Opposition / Stability values for interpretation
█ TIME-TO-DECISION METER
A visual pressure gauge that tends to fill during Compression (energy building) and drain during Expansion (energy releasing). It is a state-tracking meter, not a timing tool.
█ SETTINGS
MSI — Settings
- Preset Mode: Scalper / Swing / Position
- Analysis Mode (Minimal): ON = subtle visuals, OFF = full intensity
- Regime Ribbon, Structural Memory, HUD Panel, Time-to-Decision Meter, Effort Halo
MSI — Visual Options
- Show Regime Changes: Labels when regime transitions occur
- Show Regime Legend: Definition and live values display
- Panel Position: Move the entire panel anywhere on chart
MSI — Advanced (Tuning)
- Sensitivity (0.5–2.0)
- Smoothing (0.5–2.0)
- Memory Decay (0.5–2.0)
- Visual Intensity (Low / Medium / High)
█ PRESETS EXPLAINED
Scalper
Higher sensitivity + lower smoothing + faster memory decay. Best for 1m–15m monitoring.
Swing (default)
Balanced behaviour. Best for 15m–4H analysis.
Position
Lower sensitivity + higher smoothing + slower memory decay. Best for 4H–1D macro context.
█ STRUCTURAL MEMORY
When a regime fails (example: Expansion → Distribution), MSI creates a memory imprint:
- Fixed stain window (preset dependent)
- Strength decays over time
- Limited to a maximum number of imprints to reduce chart clutter
These zones represent behavioural rejection, not levels.
█ SUITABLE MARKETS
MSI is designed for Forex, Crypto, Indices, Stocks, and Commodities.
Works from intraday to Daily, with particularly strong readability on 15m–4H.
█ DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice, trading recommendations, or solicitation. Trading involves substantial risk. Always use proper risk management and make independent decisions.
Hybrid Smart Money Concepts [MarkitTick]💡This indicator provides a comprehensive technical analysis system that combines Market Structure concepts (Smart Money Concepts) with advanced Gap Analysis and a statistical Stress Model. It is designed to help traders identify trend direction, structural pivot points, potential reversal zones (Order Blocks), significant price gaps, and moments of market exhaustion.
Unlike standard ZigZag or Fractal indicators, this script integrates volume, trend maturity, and statistical volatility (Z-Score) to contextually classify price action. By overlaying these elements with a robust Market Structure engine—which identifies Change of Character (CHoCH) and Order Blocks—the tool provides a confluent view of price action.
It automates the detection of institutional footprints, allowing traders to see the structural trend, momentum drivers, and potential exhaustion points simultaneously.
● METHODOLOGY
The script operates on three distinct but complementary logic engines:
• Gap Analysis Engine
This module detects gaps between the previous high/low and the current open. It classifies them into three specific types based on volume and structural context:
Breakaway Gaps: Identified when a gap creates a breakout above a recent Pivot High or below a Pivot Low. This signals the start of a potential new trend.
Exhaustion Gaps: Identified when a gap occurs with high relative volume and meets the Trend Maturity criteria. This often signals the end of a trend.
Runaway Gaps: Standard continuation gaps that occur within a trend.
• Market Structure Engine
Swings and CHoCH: The script uses a left-and-right bar lookback to identify Pivot Highs and Lows. A Change of Character (CHoCH) is plotted when price closes beyond the most recent major pivot.
Order Blocks (OB): Upon a continuation of the trend, the script scans backward to find the extreme candle (the origin of the move) and highlights this zone as an Order Block.
Dynamic Cleanup: Gaps and Order Blocks are automatically removed (mitigated) when price aggressively crosses through their levels.
• Exhaustion & Stress Model
This statistical engine measures market "Stress" by analyzing the impact of price range relative to volume (True Range / Volume).
Calculation: It calculates a Z-Score (Standard Deviation) of this impact.
Logic: When the Z-Score exceeds a specific threshold (Sigma), it indicates a statistical anomaly or "Stress."
Signal: If high stress occurs while price is significantly above the trend baseline, it signals "Buyer Exhaustion." Conversely, high stress below the baseline signals "Seller Exhaustion."
● VISUALS & LEGEND
Before trading, you need to know what the indicator is drawing on your chart:
• Change of Character (CHoCH)
Green Dashed Line: Indicates a Bullish reversal.
Red Dashed Line: Indicates a Bearish reversal.
• Order Blocks (OB)
Green Boxes: Bullish support zones (Buy interest).
Red Boxes: Bearish resistance zones (Sell interest).
Note: Invalidated boxes are automatically deleted.
• Gaps
Blue Box (Breakaway): Strong momentum gap starting a new trend.
Orange Box (Runaway): Continuation gap.
Red Box (Exhaustion): Warning signal; trend may be ending.
• Stress Model Signals
Label "BE" (Red): Buyer Exhaustion. Suggests the bullish move is overextended relative to volume participation.
Label "SE" (Green): Seller Exhaustion. Suggests the bearish move is overextended.
● TRADING STRATEGY
You can use a "Pullback, Continuation & Exhaustion" strategy with this indicator.
• Scenario A: Long Setup (Buying)
Trend Change: Look for a CHoCH label with a Green Dashed Line.
Entry Zone: Look for a Green Order Block (OB) to form.
Confirmation: A Breakaway Gap (Blue) validates the breakout.
Entry: Enter Long when price pulls back into the Green OB.
Exit Warning: If a "BE" (Buyer Exhaustion) label appears, consider tightening stops or taking profit.
• Scenario B: Short Setup (Selling)
Trend Change: Look for a CHoCH label with a Red Dashed Line.
Entry Zone: Look for a Red Order Block (OB) to form.
Confirmation: A Breakaway Gap downwards validates the move.
Entry: Enter Short when price rallies back into the Red OB.
Exit Warning: If an "SE" (Seller Exhaustion) label appears, consider tightening stops or taking profit.
● SETTINGS
• Date Range Filter
Use Date Filter: Toggle time-based filtering.
Start Date: Timestamp to begin calculations.
• Gap Analysis
Min Gap Size: Minimum points required to register a gap.
Logic Inputs: Configures lookback periods and volume multipliers for gap classification.
Visuals: Customize colors for Breakaway, Runaway, and Exhaustion gaps.
• Market Structure
Swing Detection Length: Lookback period for pivot points.
Show CHoCH: Toggle for Change of Character labels.
Show Order Blocks: Toggle for OB boxes.
• Exhaustion & Stress Model
Trend Filter Length: Baseline length for determining trend direction (EMA).
Statistical Lookback: Length for the Z-Score calculation.
Stress Threshold (Sigma): The standard deviation requirement to trigger an exhaustion signal (Default: 2.0).
● DISCLAIMER
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
[uPaSKaL] Adaptive Swing StructureOverview :
Adaptive Swing Structure identifies and labels swing structure using HH / HL / LH / LL and can optionally draw wave connectors between successive swing points.
The goal is to provide a clean, practical view of market structure that remains readable across different market conditions.
Instead of relying only on a classic fixed-window pivot scan (left/right bars), this indicator uses an adaptive swing-detection approach designed to better match how traders visually interpret legs and structure.
Why this approach (vs. a simple pivot scan)?
Classic pivot scans (e.g., “pivot high/low with left/right bars”) are simple and widely used, but they often have practical limitations:
They depend heavily on a fixed window size (too sensitive in chop, too slow in trends)
They can mark pivots that are locally valid but not always representative of the broader leg
They may produce frequent structure changes during ranges, reducing readability
What you get with this indicator
A more stable swing structure view that adapts to price movement
Cleaner HH / HL / LH / LL labeling for context and decision-making
Optional wave connectors to visually follow the swing path
Visual comparison:
The screenshots below illustrate the difference in how structure can appear when using a classic pivot scan versus Adaptive Swing Structure.
Classic Pivot Points (High / Low):
Adaptive Swing Structure (This Indicator):
How to read the labels
This indicator labels swing structure using the standard notation:
HH = Higher High
HL = Higher Low
LH = Lower High
LL = Lower Low
How to interpret Wave Lines
When enabled, wave lines connect successive swing points to help you visually track the current swing path and structural transitions.
Inputs guide
Tracer Line Len
Main sensitivity control. Adjust this to fit the instrument and timeframe.
Higher values → fewer swing points, smoother structure (macro view)
Lower values → more swing points, more detail (micro view)
Show Wick (High / Low) Line
Shows the wick-based tracer (visual reference).
More sensitive to extremes and wick behavior
Useful when wicks matter (liquidity spikes / stop-runs)
Show Body (Open / Close) Line
Shows the body-based tracer (visual reference).
Filters wick noise and often looks smoother
Useful when you prefer structure based on candle bodies
Show Slope Flip Labels
Shows small markers that highlight swing turning moments (study/verification).
Helpful for understanding where structure updates
Optional and can be disabled for a cleaner chart
Wave Labels (WICK)
Shows HH/HL/LH/LL labels using wick-based swings.
More responsive to wick extremes
Wave Lines (WICK)
Connects wick-based swing points with wave lines.
Improves visual continuity of swings
Wave Labels (BODY)
Shows HH/HL/LH/LL labels using body-based swings.
Typically smoother and less sensitive to wick spikes
Wave Lines (BODY)
Connects body-based swing points with wave lines.
Cleaner wave path for body-based structure
Max Wave Labels Kept (per Wick / Body)
Limits the number of labels kept on the chart (older ones are removed first).
Reduces clutter
Helps maintain performance
Max Wave Lines Kept (per Wick / Body)
Limits the number of wave lines kept on the chart (older ones are removed first).
Keeps the chart readable
Helps maintain performance
History Window (map size / scan clamp)
Performance / stability control for how much recent history is considered.
Higher values → more history considered, higher CPU usage
Lower values → lighter execution, structure limited to more recent swings
Usage / Tuning
1) Find “your number” for each market
There is no universal best setting. The optimal Tracer Line Len depends on:
Instrument volatility
Your trading timeframe
Whether you want micro structure or macro structure
2) Build a simple baseline
Choose your chart timeframe (e.g., 4H).
Start with a moderate Len (e.g., 10–30).
Increase or decrease Len until the swing structure matches how you would manually map it.
3) Practical “timeframe scaling” intuition
You can use Len to “zoom out” or “zoom in” structure without changing your chart timeframe.
Example on 4H :
If Len = 20 produces the swing structure you want for 4H decisions, keep it as your baseline.
If you increase it to something like Len = 120 , the structure becomes much smoother and swing points appear less frequently.
This means:
4H with a smaller Len → focuses on 4H-level swings (more detail).
4H with a much larger Len → filters many local swings and highlights broader legs (more “higher-timeframe-like” context).
This is not a strict mathematical replacement for switching timeframes, but it is a practical and effective way to compress or expand structure density on the same chart.
4) Wick vs Body (which one to choose?)
WICK : Choose when extreme wicks matter to your reading of structure.
BODY : Choose when you want smoother structure and less sensitivity to wick spikes.
5) Suggested workflow for active traders
Use one preset for local structure (entries / short-term decisions).
Use a second preset with a larger Len for higher-level context (major swings / directional bias).
Price Action ICT SMC - Crypto Lidya (Lite)Price Action • ICT • SMC — Crypto Lidya (Lite)
Short title: PA Lite — Crypto Lidya
ONE CHART. ONE FLOW. TEXTBOOK PA + ICT + SMC.
This is not “more drawings”. It’s a structured, rule-based framework that merges:
Market Structure + Liquidity + Confirmation → into a single decision flow.
Core textbook sequence:
Liquidity → (IDM) → Displacement → CHoCH / BOS → Return to PD / OB / FVG / BPR
Built for traders who want clean context, multi-timeframe discipline, and professional-grade confluence
without turning the chart into a mess.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT YOU GET (HIGHLIGHTS)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Market Structure engine: CHoCH + BOS with configurable confirmation logic
- Liquidity context: EQH/EQL sweeps + deterministic “linking” to structure breaks
- HTF Bias (Regime Filter): optional direction gating for cleaner, textbook alignment
- TF Bias Table (Multi-TF dashboard): “at-a-glance” bias stacking with reasons
- PD Range (Premium/Discount): dealing-range alignment filter (OB / FVG or both)
- Displacement filter: impulse-quality confirmation (Body% / ATR / Close-position)
- Killzones / Sessions: time-window validation (London / NY AM / NY PM)
- FVG + BPR: imbalance mapping + balanced range overlap logic
- OB / BB engine: source models, refinement, quality filters, strength scoring, overlap pruning
- Alerts + Webhook-ready output: Human / JSON format, HTF gate, cooldown controls
“Structure + Liquidity + Confirmation in one workflow (no clutter).”
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
QUICK START (RECOMMENDED FLOW)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1) Performance
- Set Lookback Window (bars) to match your chart speed/history needs.
- View when “Lookback Window (bars)” is increased (with “Limit to Nearest” OFF / all zones visible).
- View when “Lookback Window (bars)” is decreased (with “Limit to Nearest” OFF / all zones visible).
2) Regime & Multi-TF Context (ICT)
- Enable HTF Bias if you want direction filtering.
- Use TF Bias Table to verify alignment across your chosen timeframes.
3) Timing Filter (Optional)
- Enable Killzones / Sessions to focus on high-liquidity delivery windows.
4) Confirmation Quality
- Enable Displacement filter to reduce range noise / weak breaks.
5) Structure Execution (SMC)
- Use CHoCH / BOS for the “break confirmation” layer.
- Use Buffers / Confirm Modes for stricter or faster validation.
6) Zones & Returns
- Use PD Range to validate where setups “should” form (Premium/Discount).
- Map FVG / BPR and OB / BB for return-to-zone models.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MODULES (TEXTBOOK EXPLANATION)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1) HTF BIAS (REGIME FILTER)
HTF Bias acts as your directional framework (macro context).
When enabled, signals can be suppressed if they conflict with the HTF direction.
Two professional ways to define bias (you choose via Trend Mode):
A) Swing Structure Bias (HH/HL – LH/LL) — “stable”
- Uptrend requires HH + HL confirmation
- Downtrend requires LL + LH confirmation
- Best when you want fewer, higher-quality flips
B) Legacy / Break of Extreme — “faster”
- Bias can flip as soon as a new pivot breaks the last major extreme
- Best for aggressive / fast markets (but can be noisier)
2) TF BIAS TABLE (MULTI-TIMEFRAME DASHBOARD)
The TF Bias Table is built for disciplined multi-timeframe execution:
- Answers “Are higher TFs aligned?” in seconds
- Helps you avoid taking LTF triggers against HTF context
- Can show reasoning text (optional) to keep the logic transparent
Bias calculation options (Table Bias Mode):
- Swing Structure Bias (HH/HL – LH/LL): more stable, flips later
- Structure-Scope Bias (msStructScope aligned): follows your chosen structure scope and flips faster
Hybrid rule is deterministic:
External dominates; if External is not ready, fallback to Internal.
Provisional Bias (UI only, optional):
- If pivots are not fully confirmed, the table can display a provisional bias based on HTF candle direction
- UI only (does not change signals)
3) PD RANGE (PREMIUM / DISCOUNT)
PD Range defines where price is “dealing” relative to its midpoint (50%):
- Bullish context → Discount is preferred
- Bearish context → Premium is preferred
You can apply PD filtering to:
- OB + FVG (default), OB only, or FVG only
Optional strict mode:
- Require the level/zone to remain fully inside the dealing range (more textbook)
“Discount buys / Premium sells with a clear dealing range reference.”
4) DISPLACEMENT (IMPULSE CONFIRMATION)
Displacement filter keeps breaks “honest”.
CHoCH/BOS confirms only if the break candle shows real intent:
- Body dominance (Body% rule)
- Volatility expansion (ATR multiple rule)
- Close position in break direction (optional strictness)
This is designed to reduce fake breaks in ranges and thin-liquidity periods.
“Impulse-quality break passes; weak range poke fails.”
5) KILLZONES / SESSIONS (TIME-WINDOW VALIDATION)
Session gating is a professional timing filter:
- Validate structure breaks/sweeps only inside enabled windows
- Focus execution during high-liquidity delivery hours (London / NY AM / NY PM)
“Cleaner signals when you trade only the active delivery windows.”
- Normal vs Killzone:
6) MARKET STRUCTURE (CHoCH / BOS)
CHoCH (Change of Character):
- Signals a character shift by breaking a key protected point (optionally)
BOS (Break of Structure):
- Confirms continuation breaks in the current structure direction
Confirmation controls:
- Close / Wick / Body / combined modes
- Optional buffers (Ticks or Percent) to reduce micro-noise
Optional Protected Swing Mode:
- Uses protected HL/LH as reference (closer to classic SMC)
7) LIQUIDITY (EQH/EQL SWEEPS + LINKING)
Liquidity sweeps identify stop-runs / grabs around equal highs/lows:
- Wick Only: faster tagging
- Wick + Close Back: more textbook (grab + rejection)
Link Window (bars) ties a sweep to the next CHoCH/BOS:
- Smaller window = stricter context
- Larger window = more permissive linking
8) FVG + BPR (IMBALANCE & REBALANCE)
FVG (Fair Value Gap):
- Shows active imbalances and mitigation behavior
- Optional size filter (Percent / ATR / Ticks / Absolute)
BPR (Balanced Price Range):
- Overlap zone formed by Bull FVG + Bear FVG
- Used as a confluence zone for rebalance and continuation models
9) OB / BB (ZONES)
Order Blocks (OB):
- Anchored to BOS/CHoCH breaks or derived from displacement candles (source mode)
- Refinement modes: Body / Wick / Mean Threshold
- Optional quality filter (Balanced / Strict, etc.)
- Strength scoring + confluence bonuses (FVG overlap, liquidity context)
- Overlap pruning keeps the chart clean and relevant
Breaker Blocks (BB):
- Derived from invalidated OBs
- Can show inherited strength % (optional)
- Cleanup options preserve performance without deleting open zones
10) ALERTS (REALTIME / WEBHOOK)
- Enable Alerts: master switch
- Choose Human or JSON message format
- Optional gates: HTF Bias alignment, cooldown (anti-spam)
TradingView setup tip:
Use alert condition = “Any alert() function call” for full detail messages.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
LITE / COMMUNITY ROADMAP (IMPORTANT)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This is the free Lite / Community release.
To keep this project sustainable and continue improving it for the community:
- This Lite edition is planned to become limited to 3 symbols in a future update (e.g., BTC / ETH / SOL).
- The full, unrestricted version (all symbols + advanced upgrades) will be released separately as the PRO edition.
You’ll always see clear release notes before major changes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCLAIMERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Educational / analytical tool only. Not financial advice.
- No guarantees. Always manage risk.
- “ICT / SMC” terminology is used as a category reference to commonly known concepts.
This script is not affiliated with any third-party educator or brand.
Inducement [Kodexius]Inducement is a market structure overlay indicator designed to help you contextualize liquidity driven pullbacks inside an established structural trend. Rather than treating every sweep or wick as equal, it frames “inducement” as a selective event that tends to appear after structure has shifted and price is engineering a retracement to attract late participants, clear nearby liquidity, and create fuel for continuation.
At a high level, the script separates price action into two layers:
External (macro) structure to define meaningful swing points and detect structural shifts (Break of Structure).
Internal (micro) structure to locate the more subtle swing levels that are commonly targeted during retracements.
Once a valid structural break establishes directional context, the indicator looks for a characteristic internal level raid that occurs without invalidating the broader structure (i.e., structure remains “protected”). When that raid is followed by evidence of intent/continuation (displacement style behavior), the event is marked as an inducement and plotted directly on the chart.
The result is a clean, rules based way to highlight high probability “pullback bait” zones helping you distinguish between random noise and a retracement that is more consistent with structured continuation behavior.
🔹 Features
🔸 Dual Layer Swing Engine (Internal vs External)
Internal and external swing detection work together to separate micro structure from macro structure. Internal swings capture nearer term pivot behavior, while external swings define the larger structural framework. Sensitivity can be tuned through swing length inputs, and historical depth can be managed to keep the chart clean and performance stable.
🔸 Break of Structure (BOS) Context Filter
BOS acts as a context gate that defines the active directional regime. Rather than generating signals in isolation, inducement evaluation is tied to structural context, enabling cleaner interpretation of “what matters now” versus what is simply historical noise.
🔸 Structure Protection (Invalidation Awareness)
A key differentiator is the emphasis on structure staying intact. Inducement candidates are only considered while the relevant macro framework remains protected. This helps filter out pullback like events that are actually part of a reversal or breakdown sequence, keeping attention aligned with continuation friendly conditions.
🔸 Inducement Detection With Optional Sweep Strictness
Inducements are derived from internal levels that form around post break retracement behavior levels that are commonly “targeted” during pullbacks. You can choose a stricter interpretation (e.g., close confirmation) for stronger validation, or a more permissive interpretation if you prefer to capture wick based raids while still requiring follow through behavior.
🔸 Intent / Displacement Confirmation (Volatility Aware)
To reduce false positives from shallow noise, the script incorporates a volatility aware confirmation layer. This helps ensure the marked event is not just a minor sweep, but is followed by behavior more consistent with directional commitment improving selectivity across different assets and market conditions.
🔸 Clean On Chart Visualization (BOS + IDM Levels)
The overlay is designed to be readable and practical: BOS levels are presented clearly, and inducements are marked with distinct level styling and labeling (bullish vs bearish). The visual output aims to support fast decision making without overwhelming the chart.
Bullish IDM:
Bearish IDM:
🔸 Chart Hygiene Controls (Limit Visible History)
You can limit how many historical inducements remain visible to prevent clutter especially helpful on lower timeframes or long sessions. This keeps focus on the most relevant, recent structural narrative.
🔸 Designed for Confluence Based Trading Workflows
This indicator is best used as a context + trigger assistant, not a standalone entry system. It integrates naturally with higher timeframe bias, session logic, supply/demand mapping, execution models, and risk planning providing structure aligned pullback references you can combine with your own confirmations.
SMC Post-Analysis Lab [PhenLabs]📊 SMC Post-Analysis Lab
Version: PineScript™ v6
📌 Description
The SMC Post-Analysis Lab is a dedicated hindsight analysis tool built for traders who want to understand what really happened during any historical trading period. Unlike forward-looking indicators, this tool lets you scroll back through time and instantly receive algorithmic classification of market states using Smart Money Concepts methodology.
Whether you’re reviewing a losing trade, studying a successful session, or building your pattern recognition skills, this indicator provides immediate context. The expansion-aware algorithm processes price action within your selected window and outputs clear, actionable classifications ranging from Parabolic Expansion to Consolidation Inducements.
Stop relying on subjective post-trade analysis. Let the algorithm objectively tell you whether institutional players were accumulating, distributing, or running inducements during your trades.
🚀 Points of Innovation
First indicator specifically designed for SMC-based post-trade review rather than live signal generation
Dual-mode analysis system allowing both dynamic scrollback and precise date selection
Expansion-aware classification algorithm that weighs range position against net displacement
Real-time efficiency metrics calculating directional quality of price movement
Integrated visual FVG detection within the analysis window only
Interactive table with clickable date range adjustment via chart interface
🔧 Core Components
Pivot Detection Engine: Uses configurable pivot length to identify significant swing highs and lows for structure break detection
Window Calculator: Determines active analysis zone based on either bar offset or timestamp boundaries
Data Aggregator: Tracks window open, high, low, close and counts bullish/bearish structure break events
State Classification Algorithm: Applies hierarchical logic to determine market state from six possible classifications
Visual Renderer: Draws structure breaks, FVG boxes, and window highlighting within the active zone
🔥 Key Features
Sliding Window Mode: Use the Scroll Back slider to dynamically move your analysis zone backwards through history bar-by-bar
Date Range Mode: Select specific start and end timestamps for precise session or trade review
Six Market State Classifications: Parabolic Expansion (Bull/Bear), Bullish/Bearish Order Flow, Accumulation/Distribution Reversal, and Consolidation/Inducement
Range Position Percentile: See exactly where price closed relative to the window’s high-low range as a percentage
Bull/Bear Event Counter: Quantified count of structure breaks in each direction during the analysis period
Efficiency Calculation: Net move divided by total range reveals trending quality versus chop
🎨 Visualization
Blue Window Highlight: Active analysis zone is clearly marked with blue background shading on the chart
Structure Break Lines: Dashed lines appear at each bullish or bearish structure break within the window
FVG Boxes: Fair Value Gaps automatically render as semi-transparent boxes in bullish or bearish colors
Dashboard Table: Top-right positioned table displays State, Analysis description, and Metrics in real-time
Color-Coded States: Each classification uses distinct coloring for immediate visual recognition
Interactive Tip Row: Optional help text guides users on clicking the table to adjust date range
📖 Usage Guidelines
General Configuration
Analysis Mode: Default is Sliding Window. Choose Date Range for specific timestamp analysis.
Sliding Window Settings
Scroll Back (Bars): Default 0. Increase to move window backwards into history.
Window Width (Bars): Default 100. Range 20-50 for scalping, 100+ for swing analysis.
Date Range Settings
Start Date: Select the beginning timestamp for your analysis period.
End Date: Select the ending timestamp for your analysis period.
Visual Settings
Show Help Tip: Default true. Toggle to hide instructional row in dashboard.
Bullish Color: Default teal. Customize for bullish elements.
Bearish Color: Default red. Customize for bearish elements.
SMC Parameters
Pivot Length: Default 5. Lower values (3-5) catch minor breaks. Higher values (10+) focus on major swings.
✅ Best Use Cases
Post-trade review to understand why entries succeeded or failed
Session analysis to identify institutional activity patterns
Trade journaling with objective algorithmic classifications
Pattern recognition training through historical scrollback
Identifying whether stop hunts were inducements or legitimate breaks
Comparing your real-time read versus what the algorithm detected
⚠️ Limitations
Designed for historical analysis only, not live trade signals
Classification accuracy depends on appropriate pivot length for the timeframe
FVG detection uses simple gap logic without mitigation tracking
State classification is based on window data only, not broader context
Requires manual scrolling or date input to review different periods
💡 What Makes This Unique
Purpose-Built for Review: Unlike most indicators focused on live signals, this is designed specifically for post-trade analysis
Expansion-Aware Logic: Algorithm weighs both position in range AND directional efficiency for accurate state detection
Interactive Date Control: Click the dashboard table to reveal draggable anchors for window adjustment directly on chart
🔬 How It Works
1. Window Definition:
User selects either Sliding Window or Date Range mode
System calculates which bars fall within the active analysis zone
Active zone receives blue background highlighting
2. Data Collection:
Algorithm captures window open, running high, running low, and current close
Structure breaks are detected when price crosses above last pivot high or below last pivot low
Bullish and bearish events are counted separately
3. State Classification:
Range Position calculates where close sits as percentage of high-low range
Efficiency calculates net move divided by total range
Hierarchical logic applies priority rules from Parabolic states down to Consolidation
4. Output Rendering:
Dashboard table updates with State title, Analysis description, and Metrics
Visual elements render within window only to keep chart clean
Colors reflect bullish, bearish, or neutral classification
💡 Note:
This indicator is intended for educational and review purposes. Use it to develop your understanding of Smart Money Concepts by analyzing what institutional order flow looked like during historical periods. Combine insights with your own analysis methodology for best results.
NCAT Supply & Demand Zones (BoS + Retest Fade)NCAT for TradingView draws Supply and Demand zones based on a simple Break of Structure (BoS) approach using pivot highs/lows.
When a bullish BoS occurs, it searches back for the most recent qualifying bearish “base candle” and creates a Demand zone.
When a bearish BoS occurs, it searches back for the most recent qualifying bullish “base candle” and creates a Supply zone.
Core logic
Structure (BoS): detected when price closes beyond the last pivot high/low.
Base candle selection: searches back a configurable number of bars and requires a minimum candle body size.
Zone source: draw zone from Wick (high/low) or Open (open + wick boundary depending on zone type).
Zone behavior: zones extend to the right, can fade on retests, and optionally delete when broken by a close beyond the distal line.
Inputs
Session filter (optional): only create new zones during a user-defined session/timezone.
Pivot length: controls pivot detection sensitivity.
Search back / Min body points: controls base candle qualification.
Extend / Max zones / Fade controls: manage performance and chart clutter.
Midline: optional 50% level visualization.
Notes
This is an educational tool and does not predict market direction.
Different symbols have different “point” conventions; adjust “Min body size (points)” accordingly.
Created by: Fernando Fortini
Price Action High 2 + Risk/Reward VisualizerIntroduction: Price Action High 2 (Bull Flag) Setup
This script identifies the High 2 (H2) setup, a staple price action pattern popularized by Al Brooks. The High 2 is a high-probability continuation pattern designed to catch the resumption of a bull trend after a two-legged pullback (a "complex" bull flag).
In a strong uptrend, the first attempt to end a pullback often fails (High 1). The High 2 represents the second, and usually more reliable, attempt by bulls to take control, often forming a "double bottom" structure within the flag.
How the Logic Works
The indicator follows a strict state-machine logic to ensure the pattern is valid:
Trend Confirmation: The script filters for an established uptrend where price is above a rising EMA (adjustable in settings).
Pullback Identification: It looks for a sequence of bars making lower highs.
High 1 (H1): The first bar in the correction that breaks above the high of the prior bar.
The Second Leg: The script then waits for the price to again fail to break a high, confirming a second leg of the pullback.
High 2 (H2): The signal is triggered when a bar breaks the high of the previous bar for the second time.
Key Features
Signal Bar Quality Filter: Not all High 2s are equal. This script includes a filter ensuring the signal bar closes in the upper portion of its range (bullish conviction) to avoid "weak" breakouts.
Automated Risk/Reward Visualizer: Upon a signal, the script automatically projects a Stop Loss (at the signal bar low) and a Take Profit level based on a customizable R:R ratio.
Clean Visuals: Labeled "H2" markers and dashed trend lines keep the chart uncluttered.
How to Trade It
Entry: Place a buy-stop order 1 tick above the High 2 signal bar.
Stop Loss: Traditionally placed below the low of the signal bar or the most recent swing low.
Target: Common targets include a 1:2 Risk/Reward ratio or the previous major swing high.
Settings Guide
EMA Length: Adjust this to match your timeframe (e.g., 20 for intraday, 50 for daily).
Min Close %: Set this to 50% or higher to ensure you only take trades where the bulls finished the bar strong.
Risk:Reward Ratio: Customize your profit targets to align with your personal trading plan.
Liquidity Void and Repair EngineLiquidity Void & Repair Engine
OVERVIEW
The Liquidity Void & Repair Engine is a high-fidelity institutional order flow tool designed to identify and track "Market Imbalances" or "Fair Value Gaps" (FVG). Unlike standard gap indicators that clutter the chart with every minor price jump, this engine uses Volatility-Adjusted Range Mapping to isolate high-conviction voids where price moved so rapidly that liquidity was left "unfilled."
The standout feature of this tool is its Active Repair Logic. The engine doesn't just draw static boxes; it monitors price action in real-time to determine when an imbalance has been "healed" by subsequent trading volume, providing a dynamic look at where the market has "unfinished business."
TECHNICAL LOGIC & ORIGINALITY
This script is published Open Source to contribute to the Pine Script community’s understanding of dynamic object management and order flow visualization.
ATR-Relative Filtering: To ensure only significant voids are plotted, the script uses a user-defined ATR (Average True Range) multiplier. This filters out market noise and focuses on institutional "impulse" moves.
Dynamic Box Management: Utilizing the Pine Script box array system, the script manages memory efficiently by updating existing objects rather than creating redundant ones.
The "Repair" Algorithm: The script tracks the high and low of every active void. When price action fully traverses the coordinates of a void, the script "seals" the box, visually marking the moment of liquidity equilibrium.
HOW TO USE
1. Identifying the "Magnet" (The Void)
When price moves aggressively, it leaves a "hole" in the auction.
Bullish Voids (Green): These represent areas where price surged so fast that buyers may still have unfilled orders sitting below. These act as Magnets for pullbacks.
Bearish Voids (Red): These represent areas where price plummeted, leaving a vacuum of selling pressure. These act as Magnets for relief rallies.
2. Trading the "Repair" Process
The Engine tracks how the market "repairs" these holes:
Partial Fill: If price enters a box but doesn't cross it, the "Magnet" is still active.
Full Repair: When a box is "sealed" (stops extending right), it indicates the imbalance is gone. If price "Seals" a green box and then bounces, it confirms the zone as Valid Institutional Support.
3. Confluence with the Trend
Continuation: In a strong uptrend, look for price to drop into a Green Bullish Void and find support. This is often the "Golden Entry" for trend followers.
Reversal Confirmation: If price ignores a Red Bearish Void and blasts right through it (sealing it instantly), it signals a massive shift in market regime and extreme bullish conviction.
USER SETTINGS
Lookback Period: How far back the engine searches for un-repaired gaps.
Min Gap Size (ATR %): Increase this to see only the "Major" institutional gaps; decrease it for a more granular intraday look.
Visual Styles: Fully customizable colors and transparency to match any chart theme (Dark/Light).
NOTES & DISCLAIMER
This script is a visualization of historical price imbalances and is intended for educational purposes only. It does not provide trade signals, entry/exit points, or financial advice. All trading involves risk.






















