Prev HL Labels + TF Filter + INTRADAY Alerts OnlyWhat it does
Displays the previous candle’s High and Low prices as two price labels plotted near the previous bar (one above the high, one below the low).
Triggers intraday alerts only when price breaks above the previous high or breaks below the previous low.
Lets you choose which timeframes the script is allowed to run on (labels + alerts), via a timeframe filter.
Candlestick analysis
NY Levels - Ultra StableDescription: NY Daily Open Levels (Current Day Only)
This high-precision indicator automatically plots the key opening price levels for the New York session, specifically designed for ICT and SMC traders. Unlike standard period-based indicators, this script is optimized for visual clarity and clutter-free charting.
Price Levels - Only TodayThis high-precision indicator automatically plots the key opening price levels for the New York session, specifically designed for ICT and SMC traders. Unlike standard period-based indicators, this script is optimized for visual clarity and clutter-free charting.
LSDE Zones PRO v2 - Smart Money Concepts - MSS - FVG - OB═══════════════════════════════════════════════════════════
LSDE ZONES PRO v2 - INVITE ONLY
Advanced Smart Money Concepts Indicator
═══════════════════════════════════════════════════════════
📊 OVERVIEW
LSDE Zones PRO v2 is a comprehensive technical analysis tool designed to help traders identify key institutional trading patterns and market structure elements. This indicator visualizes Smart Money Concepts (SMC) to assist in making informed trading decisions.
⚠️ DISCLAIMER: This indicator is for educational and informational purposes only. It does not provide trading signals or investment advice. All trading decisions should be made based on your own analysis and risk management.
═══════════════════════════════════════════════════════════
✨ KEY FEATURES
🔄 MARKET STRUCTURE ANALYSIS
- Market Structure Shift (MSS) detection with multi-bar confirmation
- Break of Structure (BOS) identification
- Trend direction visualization
- Customizable structure period (5-50 bars)
- Volume confirmation option
📦 FAIR VALUE GAPS (FVG)
- Automatic imbalance detection between candles
- Visual gap highlighting with transparent boxes
- 50% midpoint levels for precision entries
- Auto-mitigation tracking when price fills the gap
- Minimum gap size filtering (% based)
- Optional volume confirmation
- Extend and display limit controls
🎯 ORDER BLOCKS (OB)
- Institutional demand/supply zone identification
- Last opposite candle before strong moves
- Visual zone boxes with 50% levels
- Multi-condition validation (body size, volume, momentum)
- Automatic invalidation tracking
- Customizable lookback and extension periods
💥 BREAKER BLOCKS
- Failed order block detection
- Polarity change visualization
- Automatic breaker creation when OB breaks
- Extended validity periods
- Color-coded for direction
⚡ DISPLACEMENT DETECTION
- Strong momentum candle identification
- Body size and volume validation
- Useful for trend initiation signals
- Customizable multiplier (1.5x - 5x)
🌊 LIQUIDITY ANALYSIS
- Dynamic high/low liquidity zones
- Equal high/low detection
- Liquidity sweep identification
- Visual sweep alerts with labels
- Customizable lookback period (5-100 bars)
💰 PREMIUM/DISCOUNT ZONES
- Dynamic price range analysis
- 100%, 75%, 50%, 25%, 0% level plotting
- Multiple anchor options: Daily, Weekly, Session
- Color-coded zone fills
- Equilibrium (50%) midpoint
- Useful for entry timing and bias determination
📅 PREVIOUS DAY HIGH/LOW (PDH/PDL)
- Automatic daily level tracking
- Visual line plotting
- Price labels at levels
- Useful for key support/resistance
🕐 SESSION ANALYSIS
- London Session (03:00-12:00)
- New York Session (08:30-17:00)
- Asian Session (20:00-03:00)
- Session high/low tracking
- Visual background coloring
- Session labels with flags
- Optional session filter for all detections
📊 STATISTICS DASHBOARD
Real-time information display:
- Current trend direction
- Premium/Discount zone status
- Active session
- PDH/PDL levels
- Today's high/low
- Active FVG count
- Active OB count
- Daily range percentage
- Volume status (High/Normal)
🔔 COMPREHENSIVE ALERTS
- Liquidity sweep detection
- Market structure shifts
- Fair value gap creation
- Order block formation
- Breaker block activation
- Displacement detection
- Customizable alert frequency
═══════════════════════════════════════════════════════════
⚙️ CUSTOMIZATION OPTIONS
All features are fully customizable:
- Toggle individual features on/off
- Adjustable lookback periods
- Extension bar controls
- Color customization
- Size filters and thresholds
- Volume confirmation toggles
- Session time settings
- Alert preferences
═══════════════════════════════════════════════════════════
🎨 VISUAL DESIGN
- Clean, professional interface
- Color-coded elements for easy identification
- Transparent overlays to maintain chart clarity
- 50% midpoint levels on all zones (yellow dotted lines)
- Emoji indicators for quick recognition
- Session backgrounds with minimal opacity
- Top-right statistics table
═══════════════════════════════════════════════════════════
📈 BEST PRACTICES
Recommended Settings by Trading Style:
SCALPING (1m-5m):
- Liquidity Lookback: 15
- Structure Period: 7
- FVG/OB Extend: 10 bars
- Session Filter: Enabled
DAY TRADING (15m-1H):
- Liquidity Lookback: 20
- Structure Period: 10
- FVG/OB Extend: 20 bars
- Session Filter: Enabled
SWING TRADING (4H-D):
- Liquidity Lookback: 50
- Structure Period: 20
- FVG/OB Extend: 50 bars
- P/D Anchor: Weekly
═══════════════════════════════════════════════════════════
🎯 RECOMMENDED INSTRUMENTS
Works best on:
- Forex Major Pairs (EURUSD, GBPUSD, USDJPY, etc.)
- Indices (US30, NAS100, SPX500)
- Cryptocurrency (BTCUSD, ETHUSD)
- High liquidity instruments
May be less effective on:
- Low volume stocks
- Exotic pairs
- Highly choppy markets
═══════════════════════════════════════════════════════════
⚡ PERFORMANCE & OPTIMIZATION
- Efficient array management with automatic cleanup
- Maximum display limits to prevent chart lag
- Optimized drawing frequency
- Memory-efficient object handling
- Smooth performance on all timeframes
- No repainting (all calculations use confirmed bars)
═══════════════════════════════════════════════════════════
📚 EDUCATIONAL PURPOSE
This indicator is built on Smart Money Concepts including:
- Market structure theory
- Institutional order flow
- Supply and demand dynamics
- Liquidity concepts
- Fair value analysis
Users are encouraged to:
- Study SMC principles thoroughly
- Practice on demo accounts first
- Combine with proper risk management
- Use alongside other analysis methods
- Never rely solely on indicators
═══════════════════════════════════════════════════════════
⚠️ IMPORTANT DISCLAIMERS
1. NOT FINANCIAL ADVICE: This indicator does not provide buy/sell signals or investment recommendations. It is a visual tool for technical analysis only.
2. PAST PERFORMANCE: Historical patterns do not guarantee future results. Always conduct your own analysis.
3. RISK WARNING: Trading involves substantial risk of loss. Only trade with capital you can afford to lose.
4. EDUCATION FIRST: Learn Smart Money Concepts thoroughly before using this tool in live trading.
5. NO GUARANTEE: No indicator is 100% accurate. This tool is meant to assist analysis, not replace it.
6. DEMO TESTING: Always test strategies on demo accounts before live implementation.
7. PERSONAL RESPONSIBILITY: All trading decisions and their outcomes are your own responsibility.
═══════════════════════════════════════════════════════════
🔐 INVITE-ONLY ACCESS
This indicator is published as invite-only to ensure proper user education and responsible usage. Access is granted to users who:
- Understand Smart Money Concepts
- Have proper risk management practices
- Commit to using the tool responsibly
- Will not redistribute or share access
═══════════════════════════════════════════════════════════
📞 SUPPORT & UPDATES
- Regular updates and improvements
- Bug fixes and optimization
- Feature requests considered
- Active support for invited users
═══════════════════════════════════════════════════════════
🏆 VERSION INFORMATION
Current Version: 2.0
Release Date: January 2025
Pine Script Version: v5
Previous versions are deprecated. Always use the latest version for best performance and features.
═══════════════════════════════════════════════════════════
📖 CREDITS & ACKNOWLEDGMENTS
- Based on Smart Money Concepts (SMC)
- Inspired by institutional trading principles
- Community feedback incorporated
- Open to suggestions for improvement
═══════════════════════════════════════════════════════════
🙏 THANK YOU
Thank you for your interest in LSDE Zones PRO v2. Please use it responsibly and always prioritize proper education and risk management in your trading journey.
Remember: The best indicator is knowledge, discipline, and proper risk management.
Happy Trading! 📈
═══════════════════════════════════════════════════════════
BTC Arbitrage Detector套利检测器 — 技术原理与 Webhook 实时监控指南
许可证:Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
作者:加密社
适用市场:加密货币(如 BTC/USDT)、外汇(如 EUR/USD)
一、核心目标
本指标旨在实时监测同一交易品种在多个交易所或经纪商之间的价格极差(Price Spread),并通过统计方法识别当前价差是否处于“异常”状态。当价差显著扩大时,可能意味着存在套利机会、流动性断裂或数据源异常,用户可据此采取相应操作。
二、关键技术原理
1. 多源数据聚合
指标通过 request.security() 函数并行请求多个交易所的实时价格与成交量数据。例如,当图表品种为 BTCUSD 且类型为 crypto 时,自动从以下 19 家交易所获取数据:
BITSTAMP, COINBASE, BINANCE, KRAKEN, OKX, BYBIT, KUCOIN, MEXC, BITGET...
对于外汇品种(如 EURUSD),则切换至 OANDA, PEPPERSTONE, IBKR, SAXO 等 13 家外汇经纪商。
注意:若某交易所不支持该品种(如 GEMINI 无 ETH/BTC),系统会自动忽略无效符号(ignore_invalid_symbol = true),确保脚本稳定运行。
2. 价差计算与滑动窗口
价差定义:在每个 K 线周期,取所有有效交易所的最新价格,计算其最大值与最小值之差(即 range())。
历史窗口:默认使用最近 1000 根 K 线的价差序列(可通过输入参数调整),构成动态参考分布。用户也可启用“完整数据集”以使用全部历史数据(需注意资源限制)。
3. 百分位分级机制
对当前价差在其历史分布中的位置进行百分位排名(percentrank),并按以下阈值划分等级:
异常(Unusual):> 98% 分位(默认)
高(High):> 75% 分位
典型(Typical):> 25% 分位
低(Low):≤ 25% 分位
该分级基于非参数统计,无需假设价差服从正态分布,适应性强。
4. 自适应平滑算法(AMA)
为减少噪声干扰,指标提供两种平滑选项:
固定 EMA:对原始价差序列应用指数移动平均(默认周期 9)
自适应移动平均(AMA):将当前价差的百分位排名作为“效率比率”(Efficiency Ratio),动态调整平滑系数。当价差突变(高百分位)时响应更快,平稳期则更平滑。
5. 交互式仪表盘
仪表盘展示每家交易所的:
最新价格 / 成交量
平均价格 / 成交量(基于用户设定的平均周期,默认 20)
可选显示与主图资产的绝对差值(如 Binance 价格比主图高 $ 120)
支持按任意列升序/降序排序,快速定位最高/最低报价源
三、如何利用 Webhook 实现异常价差实时告警
TradingView 的 Alert + Webhook 功能可将指标信号推送至外部服务(如 Telegram、Discord、自建服务器),实现 7×24 小时监控。
步骤 1:修改脚本,添加 Alert 条件
原脚本为纯指标(indicator),不支持 alertcondition()。需在脚本末尾添加以下代码:
// 在脚本最后添加(calc_bars_count 行之后)
var float spreadPercentRank = na
spreadPercentRank := spreads.percentrank(spreads.size() - 1)
// 定义异常价差条件(例如 >98% 分位)
unusualCondition = spreadPercentRank > unusualPercentilInput
// 创建告警条件
alertcondition(unusualCondition, title="异常价差触发", message="【{{ticker}}】出现异常跨交易所价差!当前百分位:{{plot0}}%,价差:{{plot1}}")
注意:{{plot0}} 和 {{plot1}} 会自动替换为第一个和第二个 plot() 的当前值(即 spreadPercentRank 和 currentSpread)。
步骤 2:在 TradingView 创建告警
打开图表,加载修改后的指标
点击指标名称 → “添加告警”(Add Alert)
触发条件选择 “异常价差触发”
在“操作”中选择 Webhook URL
填入你的 Webhook 地址(例如:https://your-server.com/arbitrage-alert)
勾选 “仅当条件首次为真时触发”(避免重复通知)
保存
Arbitrage Detector — Technical Principles and Webhook Real-Time Monitoring Guide
License: Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
Author: Crypto Community
Applicable Markets: Cryptocurrencies (e.g., BTC/USDT), Forex (e.g., EUR/USD)
1. Core Objective
This indicator is designed to monitor the price spread—the difference between the highest and lowest quoted prices—of the same trading instrument across multiple exchanges or brokers in real time. Using statistical methods, it evaluates whether the current spread falls into an "anomalous" regime. A significantly widened spread may signal potential arbitrage opportunities, liquidity fragmentation, or data feed anomalies, enabling users to take timely action.
2. Key Technical Principles
2.1 Multi-Source Data Aggregation
The script uses Pine Script’s request.security() function to fetch real-time price and volume data from multiple venues simultaneously. For example:
When the chart symbol is BTCUSD and its type is crypto, the script automatically pulls data from 19 major cryptocurrency exchanges:
BITSTAMP, COINBASE, BINANCE, KRAKEN, OKX, BYBIT, KUCOIN, MEXC, BITGET, GEMINI, CRYPTOCOM, WHITEBIT, BTSE, HTX, GATE, etc.
For forex pairs like EURUSD, it switches to 13 leading brokers:
OANDA, PEPPERSTONE, IBKR, SAXO, TICKMILL, FXCM, FOREX.COM, CAPITAL.COM, etc.
Note: If a venue does not support the symbol (e.g., GEMINI lacks ETH/BTC), the script safely skips it using ignore_invalid_symbol = true, ensuring robust execution.
2.2 Spread Calculation and Sliding Window
Spread Definition: At each confirmed bar, the script collects all valid latest prices and computes their range (max – min).
Historical Reference Window: By default, it maintains a rolling window of the last 1,000 spread values to form a dynamic empirical distribution. Users can adjust this length or enable “Full Dataset” mode to use all available historical data (subject to TradingView’s runtime limits).
2.3 Percentile-Based Classification
The current spread is ranked against its historical distribution using percentrank(). It is then classified into one of four tiers based on user-defined thresholds:
Unusual: >98th percentile (default)
High: >75th percentile
Typical: >25th percentile
Low: ≤25th percentile
This non-parametric approach makes no assumptions about the underlying distribution of spreads, offering strong adaptability across volatile and stable market regimes.
2.4 Adaptive Smoothing Algorithm (AMA)
To reduce noise while preserving responsiveness, two smoothing options are provided:
Fixed EMA: Applies a standard exponential moving average (default period: 9) to the raw spread series.
Adaptive Moving Average (AMA): Uses the current spread’s percentile rank as an “efficiency ratio” to dynamically adjust the smoothing factor. During sharp divergences (high percentile), the AMA reacts quickly; during calm periods, it becomes smoother.
2.5 Interactive Dashboard
The on-chart dashboard displays, for each venue:
Latest price and volume
Average price and volume (over a user-defined lookback period, default: 20 bars)
Optional absolute delta vs. the chart’s primary symbol (e.g., “Binance price is $ 120 higher than chart”)
Sortable columns (ascending/descending) by price or volume to instantly identify outliers
3. Setting Up Webhook Alerts for Real-Time Anomaly Notifications
TradingView’s Alert + Webhook system allows you to push signals to external services (e.g., Telegram, Discord, or a custom server) for 24/7 monitoring.
Step 1: Modify the Script to Add Alert Conditions
Since the original script is declared as an indicator(), it cannot trigger alerts by default. Append the following code at the end of the script (after the calc_bars_count line):
pinescript
编辑
// Add at the very end of the script
var float spreadPercentRank = na
spreadPercentRank := spreads.percentrank(spreads.size() - 1)
// Define alert condition: spread exceeds "Unusual" threshold
bool unusualCondition = spreadPercentRank > unusualPercentilInput
// Create alert condition with dynamic message
alertcondition(unusualCondition, title="Unusual Spread Detected",
message="【{{ticker}}】Unusual cross-exchange spread detected! Percentile: {{plot0}}%, Spread: {{plot1}}")
Note: {{plot0}} and {{plot1}} will be replaced at runtime with the values of the first and second plot() calls in the script—corresponding to spreadPercentRank and currentSpread, respectively.
Step 2: Create an Alert in TradingView
Apply the modified indicator to your chart.
Click the indicator name in the legend → “Add Alert”.
Under Condition, select “Unusual Spread Detected”.
In the Actions section, choose “Webhook URL”.
Enter your webhook endpoint (e.g., your-server.com).
Check “Once Per Bar” or “Once Per Condition” to avoid repeated notifications.
Save the alert.
SMC M5 Entry PRO (MTF Trend + TP/SL)//====================== ALERTS ======================//
alertcondition(bullBOS and useBOS, "BUY BOS", "Bullish BOS detected")
alertcondition(bearBOS and useBOS, "SELL BOS", "Bearish BOS detected")
alertcondition(bullCHOCH and useCHOCH, "BUY CHOCH", "Bullish CHOCH detected")
alertcondition(bearCHOCH and useCHOCH, "SELL CHOCH", "Bearish CHOCH detected")
Professional Clean BTC ChartInstitutional Price Structure is a clean, price-focused charting tool designed to provide traders with a clear and distraction-free view of market structure, trend context, and key reference levels.
The indicator replaces default candles with neutral grayscale price bars to reduce visual noise and improve readability during high-volatility conditions. Trend direction is defined using a fast and slow exponential moving average, offering immediate context without lag-heavy complexity.
A session-based VWAP is included as a core institutional benchmark, allowing traders to quickly assess mean reversion, premium/discount zones, and intraday bias. Daily high and low levels are plotted automatically to highlight key liquidity boundaries and reaction zones commonly respected by professional participants.
This tool is intentionally minimalist—free of oscillators and signals—to support discretionary decision-making, execution precision, and price-action-based strategies across intraday and swing timeframes.
Trend Matrix Open Interest EnhancedOpen interest happy
he provided materials offer a technical guide on enhancing trading efficiency through specific technical indicators and visual data workflows. One source emphasises the importance of streamlined infographic designs to better illustrate complex processes with clear examples. The primary content focuses on a VWAP strategy for Bitcoin, specifically highlighting the utility of standard deviation bands as pivot points for high-frequency scalping. The presenter explains how to integrate Volume Bubble Pro to identify market absorption and reward, allowing traders to distinguish between winning and losing participants. By combining these volume-based tools, the author demonstrates how to execute aggressive entries and manage risk through precise sniper setups. Ultimately, the sources aim to provide a practical fram
PnL Candles/Line & Stats (Long & Short)I was enthusiastic to see how a PnL (Profit & Loss) candle looks, so I created this indicator to analyze trade performance for any other indicator. It visualizes PnL using candles and lines, making it easy to track individual trades and understand their outcomes.
How to Use:
In the indicator you want to analyze, define your entry and exit conditions as numeric series (1 or 0):
Longcondition = ? 1 : 0
LongExitcondition = ? 1 : 0
plot(Longcondition, title="Long Condition")
plot(LongExitcondition, title="Long Exit Condition")
Shortcondition = ? 1 : 0
ShortExitcondition = ? 1 : 0
plot(Shortcondition, title="Short Condition")
plot(ShortExitcondition, title="Short Exit Condition")
Provide these series as inputs in the PnL indicator:
Longcondition → Long trade entry trigger
LongExitcondition → Long trade exit trigger
Shortcondition → Short trade entry trigger
ShortExitcondition → Short trade exit trigger
Use the date/time filter to focus on specific periods.
Toggle Show Long Trades and/or Show Short Trades to display only the trades you want to analyze.
Features:
Visualizes PnL for each trade via candles and hidden lines.
Tracks key statistics: total trades, win rate, MAE (Maximum Adverse Excursion), MFE (Maximum Favorable Excursion), cumulative PnL.
Calculates historically suggested stop-loss levels (educational purposes only).
Summarizes metrics in a table with separate sections for Long and Short trades.
Note:
This tool is for educational purposes only. Stop-loss levels and trade statistics are illustrative, not trading recommendations. Users must perform their own analysis and risk management. The developer is not responsible for any gains or losses from using this indicator.
[X342] Structure & Entry Structure & Entry — SMC Toolkit
OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Structure & Entry is a Smart Money Concepts (SMC) indicator that identifies market structure, order blocks, and optimal trade entry zones based on institutional trading principles.
METHODOLOGY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The indicator implements core ICT/SMC concepts:
1. Market Structure Analysis
- Swing High/Low detection using pivot logic
- Market Structure Break (MSB) identification
- Bullish MSB: Price breaks above previous swing high
- Bearish MSB: Price breaks below previous swing low
- Tracks current market bias (bullish/bearish)
2. Order Block Detection
- Bullish OB: Last bearish candle before bullish MSB
- Bearish OB: Last bullish candle before bearish MSB
- Order blocks represent institutional entry zones
- Auto-extends to current bar
- Removed when mitigated (price passes through)
3. Optimal Trade Entry (OTE)
- Fibonacci retracement zone (0.618-0.786)
- Calculated from last swing high to swing low
- Adjusts direction based on current bias
- Premium zone for entry in direction of bias
WHY SMC?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Smart Money Concepts focus on identifying where institutions are likely to enter the market. Order blocks and OTE zones represent high-probability areas where large players accumulate or distribute positions.
FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Dual language support (English / Türkçe)
✓ Auto MSB detection and labeling
✓ Dynamic Order Block zones
✓ OTE Fibonacci zones
✓ Mitigation tracking (Wick or Close)
✓ Market bias panel
✓ Comprehensive alerts
VISUAL ELEMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Swing Points: Small circles at pivot highs/lows
• MSB Labels: "MSB ↑" or "MSB ↓" at structure breaks
• Order Blocks: Colored boxes at detected OB zones
- Green boxes: Bullish OBs (demand zones)
- Red boxes: Bearish OBs (supply zones)
• OTE Zone: Purple dashed box at Fibonacci retracement
SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Structure:
- Swing Length: Bars for pivot detection (default: 5)
- Show MSB: Toggle structure break labels
- Show Swing Points: Toggle pivot markers
Order Block:
- Show Order Blocks: Toggle OB zones
- OB Lookback: Bars to search for OB candle (default: 10)
- Max OB Count: Maximum active OBs (default: 5)
- Mitigation Type: Wick or Close-based removal
OTE:
- Show OTE Zone: Toggle Fibonacci zone
- OTE Upper: Upper boundary (default: 0.786)
- OTE Lower: Lower boundary (default: 0.618)
INFO PANEL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Displays:
- Current market bias (BULL/BEAR)
- Last MSB price level
- Active Order Block count
ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Bullish MSB: Structure break to the upside
• Bearish MSB: Structure break to the downside
• Bullish OB Formed: New demand zone created
• Bearish OB Formed: New supply zone created
TRADING APPLICATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Wait for MSB to confirm direction
2. Look for price to retrace to OTE zone
3. Enter when price reacts at Order Block within OTE
4. Place stop beyond the Order Block
5. Target: Previous swing high/low or liquidity levels
BEST PRACTICES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Use higher timeframe for bias, lower for entry
- Fresh (untested) Order Blocks are stronger
- OTE + OB confluence = high probability setup
- Combine with Liquidity Hunter for targets
- Respect the current bias until new MSB
2026 Model2026 Model
OVERVIEW
This Pine Script indicator is a comprehensive trading tool designed for identifying key market structure patterns, session-based trading opportunities, and higher timeframe context. It combines multiple trading concepts including Fair Value Gaps (FVGs), Turtle Soup patterns, Smart Money Technique (SMT) divergence, and session-based analysis.
CORE FEATURES
1. SESSION/KILLZONE DETECTION
What It Does:
- Identifies and highlights major trading sessions based on New York time (EDT/EST)
- Displays session labels that change color: light green for the current session, grey for past sessions
- Shows background shading for active sessions
Sessions Tracked:
- Asia Session: 8:00 PM - 12:00 AM NY time
- London AM: 2:00 AM - 5:00 AM NY time
- NY AM: 9:30 AM - 11:00 AM NY time
- NY PM: 1:30 PM - 4:00 PM NY time
How It Works:
- Uses timezone conversion to check if current time falls within each session range
- Creates labels at the start of each session
- Updates label colors every bar to highlight the active session
- Labels are positioned at a consistent Y-level (aligned with HTF boundary lines)
Killzone Status:
- Active during 1:00 AM - 12:59 PM NY time
- Displayed in the dashboard table
2. DAILY BIAS CALCULATION
What It Does:
- Determines market bias based on the relationship between the last two completed daily candles
- Only calculates on weekdays (Monday-Friday) for traditional markets
- Works 24/7 for crypto markets
Bias Logic:
- Bullish:
* Previous day's high exceeded the day before's high AND close was above previous day's high
* OR previous day's low was below the day before's low BUT close recovered above the day before's low
- Bearish:
* Previous day's low was below the day before's low AND close was below previous day's low
* OR previous day's high exceeded the day before's high BUT close fell below the day before's high
How It Works:
- Compares wicks and closes of the last two completed daily candles
- Persists the last weekday bias on weekends
- Displayed in the dashboard table
3. FAIR VALUE GAPS (FVGs)
What It Does:
- Identifies price gaps where liquidity was skipped
- Draws boxes on the chart showing potential retracement zones
- Uses adaptive thresholds that adjust to market volatility
FVG Types:
- Bullish FVG: Gap between candle 1's low and candle 2's high (price jumped up)
- Bearish FVG: Gap between candle 1's high and candle 2's low (price jumped down)
Threshold Modes:
1. ATR-based (Default): Automatically adapts to asset volatility
- Calculates threshold as: (ATR / Close Price) × 100 × Multiplier
- More sensitive for volatile assets, less sensitive for stable ones
2. Auto: Uses cumulative average of price changes
3. Manual: Fixed percentage threshold (e.g., 0.01%)
How It Works:
- Only detects FVGs on confirmed (closed) bars
- Requires the middle candle's percentage change to exceed the threshold
- Extends FVG boxes 15 bars forward
- Limits to 50 FVG boxes to prevent memory issues
Settings:
- Threshold multiplier (default: 1.0) - lower = more FVGs detected
- Minimum threshold override - ensures minimum quality
- ATR length for volatility calculation
4. HIGHER TIMEFRAME (HTF) CANDLE OVERLAY
What It Does:
- Displays the last 3-5 completed HTF candles on the right side of the chart
- Shows HTF context without cluttering the main chart
- Supports 1H, 4H, Daily, Weekly, and Monthly timeframes
Features:
- Candle Display: Shows completed HTF candles with proper wicks and bodies
- Boundary Lines: Optional vertical lines on the main chart marking HTF candle boundaries
- Labels: Optional time/day/month labels under each candle
- SMT Integration: Draws SMT lines connecting swing points on the overlay candles
- Turtle Soup Integration: Shows TS levels as horizontal lines on overlay candles
How It Works:
- Fetches HTF data using request.security() with lookahead_off to get only confirmed candles
- Positions candles to the right of the current chart using future bar indices
- Calculates boundary high/low from all visible candles for consistent line heights
- Only displays when chart timeframe ≤ HTF timeframe
Settings:
- HTF timeframe selection (1H, 4H, 1D, 1W, 1M)
- Number of candles to display (3, 4, or 5)
- Toggle boundary lines and labels
5. TURTLE SOUP PATTERN DETECTION
What It Does:
- Identifies false breakouts followed by reversals
- Draws horizontal lines at the price level that was broken and then reversed
- Works on multiple timeframes (15min, 1H, 4H)
Pattern Definition:
- Bullish Turtle Soup:
* Candle breaks below previous candle's low (wick goes lower)
* BUT closes above the previous candle's low
* Indicates a false breakdown, potential reversal up
- Bearish Turtle Soup:
* Candle breaks above previous candle's high (wick goes higher)
* BUT closes below the previous candle's high
* Indicates a false breakout, potential reversal down
Threshold System:
- ATR-based (Default): Adapts to volatility
- Converts ATR to PIPs: (ATR × Multiplier) / Pip Size
- Only triggers if the initial candle meets minimum size requirement
- Fixed PIPs: Uses a fixed minimum candle size in PIPs
How It Works:
- Checks patterns when HTF candles complete
- Finds the exact swing high/low time within the HTF candle (on lower timeframes)
- Finds when price broke through that level in the reversal candle
- Draws horizontal line from swing point to break point
- Tracks patterns for HTF overlay display
Settings:
- Timeframe selection (15min, 1H, 4H)
- Threshold mode (Fixed PIPs or ATR-based)
- ATR multiplier (default: 0.4)
- Minimum PIPs (for fixed mode)
6. SMART MONEY TECHNIQUE (SMT) / DIVERGENCE
What It Does:
- Detects divergence between correlated trading pairs
- Draws lines connecting swing points when one pair shows Turtle Soup but the other doesn't
- Only works on 4H timeframe and lower
SMT Logic:
- Bullish SMT:
* Correlated pair has bullish Turtle Soup (reversed upward)
* Current pair does NOT have bullish Turtle Soup
* Current pair stayed within previous candle's range (true divergence)
* Draws line connecting swing lows
- Bearish SMT:
* Correlated pair has bearish Turtle Soup (reversed downward)
* Current pair does NOT have bearish Turtle Soup
* Current pair stayed within previous candle's range (true divergence)
* Draws line connecting swing highs
Correlated Pairs:
- ES ↔ NQ (futures)
- SPX ↔ YM (indices)
- BTC ↔ ETH (crypto)
- GBPUSD ↔ EURUSD (forex)
- XAU ↔ XAG (metals)
How It Works:
- Fetches 4H Turtle Soup status for both current and correlated pair
- Checks if current pair showed true divergence (stayed in range)
- On lower timeframes, finds actual swing points within 4H candles
- Draws line connecting the two swing points
- Only triggers on new 4H bar close to avoid duplicates
- Displays on both main chart and HTF overlay
Settings:
- Toggle SMT display on/off
7. DASHBOARD TABLE
What It Does:
- Displays key market information in a table at the bottom-right corner
- Updates in real-time as market conditions change
Information Shown:
1. Killzone: Y/N - Whether currently in active trading hours (1 AM - 12:59 PM NY)
2. Daily Bias: Bullish/Bearish/N/A - Market direction from daily candle analysis
3. 4H Turtle Soup: Bullish/Bearish/No - Most recent 4H TS pattern (within last 5 candles)
4. 4H SMT: Bullish/Bearish/No - Most recent 4H SMT divergence (within last 5 candles)
How It Works:
- Checks arrays of TS and SMT occurrences
- Finds the most recent pattern within the last 5 completed 4H candles
- Updates only on the last bar to optimize performance
HOW IT ALL WORKS TOGETHER
Workflow Example:
1. Session Context: The indicator identifies you're in NY AM session (9:30-11 AM), highlights it in green
2. Daily Bias: Shows "Bullish" from yesterday's price action
3. HTF Overlay: Displays last 5 completed 4H candles on the right, showing higher timeframe structure
4. Turtle Soup: Detects a bearish TS on 4H - price broke above previous high but closed below it
5. SMT: If correlated pair (e.g., NQ) had bullish TS but current pair (ES) didn't, draws SMT line
6. FVGs: Identifies gaps in price that may get filled
7. Dashboard: Summarizes all this information in one place
Key Design Principles:
1. Adaptive Thresholds: Both FVG and Turtle Soup use ATR-based thresholds that adjust to volatility
2. Multi-Timeframe: Works across different chart timeframes while maintaining HTF context
3. Visual Clarity: Current session highlighted in green, past sessions in grey
4. Memory Management: Limits arrays to prevent performance issues
5. Confirmed Data Only: Uses lookahead_off to ensure only completed candles are analyzed
Best Practices for Use:
1. Timeframe Selection: Use lower timeframes (5m, 15m) for entries, but always check HTF overlay for context
2. Session Awareness: Trade during active killzones when liquidity is highest
3. Daily Bias: Align trades with daily bias for higher probability
4. Turtle Soup: Look for TS patterns at key support/resistance levels
5. SMT Divergence: Use SMT to identify when one pair is leading/diverging from correlated pair
6. FVG Fills: Watch for price to return and fill FVG gaps
TECHNICAL DETAILS
Performance Optimizations:
- Limits arrays to 50 elements (FVGs, TS, SMT)
- Only updates dashboard on last bar
- Clears and redraws HTF overlay each bar to prevent duplicates
- Uses efficient time-based lookups for swing point detection
Timezone Handling:
- All sessions use New York time (America/New_York)
- Handles EDT/EST automatically
- Daily bias uses exchange timezone for daily candles
Symbol Support:
- Works with forex, futures, stocks, crypto
- Automatically detects JPY pairs for correct pip calculation (0.01 vs 0.0001)
- Handles 24/7 markets (crypto) vs traditional market hours
SETTINGS SUMMARY
Display Settings:
- Show FVGs
- Show HTF Candle Overlay
- Show Session Times
- Turtle Soup Threshold Mode (Fixed PIPs / ATR-based)
- Turtle Soup ATR Multiplier
- ATR Length
FVG Settings:
- FVG Threshold Mode (Auto / Manual / ATR-based)
- FVG Threshold Multiplier
- FVG Manual Threshold (%)
- Minimum Threshold Override (%)
- FVG ATR Length
HTF Candle Overlay:
- HTF Overlay Timeframe (1H, 4H, 1D, 1W, 1M)
- Number of Candles (3, 4, 5)
- Show HTF Candle Boundaries
- Show HTF Candle Labels
HTF Turtle Soup Settings:
- Show HTF Turtle Soup
- Turtle Soup Timeframe (15, 60, 240)
- Lookback Candles
SMT Settings:
- Show SMT
This indicator is designed to provide a comprehensive view of market structure, combining multiple trading concepts into a unified tool for better trading decisions.
PIP HUNTERS Target MarkerHelp you guys find LQ targets on GOLD/NAS
any help setting up let me know. i just delete the line
Tesseract 3.0Tesseract 3.0 is a multi-purpose ICT/SMC indicator built to make intraday market context obvious at a glance. It highlights key liquidity and imbalance areas, structure shifts, and important reference levels so you can align execution with where the market is likely to react. The goal is a clean, decision-support overlay that reduces chart noise while keeping the most actionable information visible.
BitoAlliance DivergenceThis indicator can select to use three divergence signals: MACD, RSI, and AO,
and display them above and below the candlestick chart.
VJS B&S SignalA Buy and Sell Signal Indicator is a technical analysis tool designed to help traders identify potential entry and exit points in the market. It works by analyzing price action, volume, and/or momentum using mathematical formulas to generate signals that suggest when buying or selling pressure may be increasing. These signals are often based on indicators such as moving averages, RSI, MACD, or trend structure, and they aim to reduce emotional decision-making by providing objective, rule-based guidance.
However, buy and sell signals should not be used in isolation. Market conditions such as trend strength, volatility, and key support and resistance levels play a crucial role in determining signal reliability. A signal that works well in a trending market may fail during consolidation or low-volume periods. For this reason, experienced traders typically combine signal indicators with higher-timeframe analysis, risk management rules, and confirmation tools to improve accuracy and consistency over time.
HOANO A.I PRO [B2]Link indicator : t.me
------------------------------------
HOANO A.I PRO is a special upgrade compared to the previous HOANO A.I PRO version.
HOANO A.I PRO is a custom-built indicator developed by an individual. eloped exclusively for private (invite-only) use. It is designed specifically for analysis and testing purposes
This indicator is not intended for public distribution and may only be applied to charts with the author’s explicit permission. No guarantees or assurances of profit are provided. The indicator is offered “as is” and is intended solely for educational and reference purposes.
If you would like to request access, please contact the author directly
TTC Open Lines v1This liquidity-based key level indicator displays previous highs and lows from the daily, weekly, monthly, quarterly, and yearly charts. These price levels serve as important reference points in the trading of any market or financial instrument.
They also represent high-probability reaction zones, making them ideal areas to look for trades using simple confirmation patterns.
Each level plays a crucial role in determining whether the market is likely to continue its current trend or reverse direction. I like to think of these levels as two magnets — they can either attract price or push it away.
You might wonder how two opposing behaviors can both be useful. The key is to remain directionally neutral and develop your own set of rules to identify when price is more likely to react by being drawn toward these areas or rejected from them.
I have my own rules for this, and you can develop a framework that fits your own trading style as well.
Custom Trading Strategy (1H)Overview: This indicator is a technical tool designed for the 1-Hour timeframe (1H).
It combines Trend following with Momentum to filter false signals.
The strategy only triggers a signal when three classic indicators align perfectly.
How it Works? The script plots a green "N" label when the following 4 conditions are met simultaneously:
MACD: Both MACD Line and Signal Line must be above Zero (Bullish Territory).
MACD Crossover: A bullish crossover occurred either on the current bar or the previous bar.
SMA: Simple Moving Average (5) crosses over SMA (20).
RSI: Relative Strength Index is above 50 (Positive Momentum).
Features:
Clean Chart: Calculates SMAs and Stop Loss levels in the background without cluttering the chart with lines.
Only the signal label "N" is displayed.
Filtering: Filters out weak signals by requiring RSI > 50 and MACD > 0 confirmation.
FVG SMC Real Combat ProOverview
FVG SMC Real Combat Pro is a professional-grade trading indicator specifically optimized for high-volatility assets like Gold (XAU) and Silver (XAG). By integrating Fair Value Gaps (FVG) with Smart Money Concepts (SMC) and Multi-Timeframe (MTF) Trend Filtering, this tool identifies high-probability institutional order flow zones.
Key Capabilities
Asset-Specific Logic: Pre-configured EMA and ATR filters tailored for the unique volatility of Silver and Gold.
MTF Trend Alignment: Automatically syncs with the 1H timeframe to ensure your entries are always aligned with the higher-timeframe narrative.
Dynamic Zone Management: Draws FVG boxes in real-time. Zones that are mitigated or breached are automatically marked as "INVALID" to keep your charts clutter-free.
Professional Dashboard: A sleek, real-time UI provides:
Current Bias: Bullish, Bearish, or Neutral.
Entry Points: Aggressive (Edge) and Conservative (Consequent Encroachment/Midpoint).
Smart SL/TP: Automated risk-reward calculations based on ATR and swing structures.
How to Use
Check the Bias: Look for the "🚀 BULLISH" or "📉 BEARISH" status on the dashboard.
Monitor the Zone: Wait for the price to retrace into the highlighted FVG box (Status: "🔥 IN ZONE").
Execute: Utilize the provided CE (50% Midpoint) for optimized entries and follow the Stop Loss levels for disciplined risk management.
核心概述
FVG SMC Real Combat Pro 是一款專為黃金 (XAU) 與 白銀 (XAG) 等高波動資產設計的專業級指標。本工具結合了價格行為中的合理價值缺口 (FVG) 與 聰明錢概念 (SMC),並導入多時框 (MTF) 趨勢過濾,旨在捕捉機構級別的訂單流區間。
核心功能
商品專屬邏輯: 針對金、銀不同的波動率,內建優化過的 EMA 趨勢長度與 ATR 缺口判定參數。
MTF 趨勢對齊: 自動串接 1 小時圖表趨勢,確保您的操作始終與大週期方向一致。
動態區間管理: 即時繪製 FVG 區間。當區間被突破或回測完成時,系統會自動標註為「失效」,保持圖表簡潔清晰。
專業數據面板: 提供直觀的實時 UI:
Bias (建議方向): 顯示看多、看空或觀望。
精準點位: 提供激進進場位與保守進場位 (CE/中軸)。
智慧止損盈: 基於 ATR 與波動結構自動計算科學的止損與目標價 (TP1/TP2)。
操作指南
確認方向: 觀察面板中的方向標籤(🚀 看多 / 📉 看空)。
等待回測: 等待價格回調至 FVG 區間(面板狀態顯示「🔥 區間內」)。
執行計畫: 參考面板給出的 CE (中軸) 或 Entry (邊緣) 進行操作,並嚴格執行建議的 Stop Loss 點位。
重要聲明 (Disclaimer)
Non-Repainting: This indicator does NOT repaint. All signals are calculated based on closed candles. (本指標絕不重繪,所有訊號基於收盤價計算。)
Risk Warning: Past performance is not indicative of future results. Trading involves significant risk. (過去績效不代表未來獲利,交易存在風險。)
ICT Internal Levels [Amaan] 🔷 OVERVIEW
The ICT Internal Levels is a comprehensive institutional analysis suite designed to bridge the gap between subjective price action and objective algorithmic logic. This script automates the detection of core ICT pillars—Liquidity, Time, and Displacement—into a single, high-performance interface.
🧠 The Core Engine
Unlike standard support/resistance indicators, this script uses a dynamic state-tracking system to identify institutional interest zones. It manages historical levels using memory-efficient User-Defined Types (UDTs) and arrays, ensuring that only the most relevant "unswept" liquidity remains on your chart.
🛠 Key Features
• Auto IFVG Checklist: A real-time confluence engine that "grades" market conditions from C to A+ by cross-verifying Liquidity Sweeps, Midnight Open Bias, and HTF Delivery.
• SMT Divergence Engine: A dual-mode detector (Adjacent & Structural) that identifies cracks in correlation between correlated assets (e.g., NQ/ES) with built-in dynamic invalidation.
• Algorithmic Macros: Six fully customizable time-anchored sessions (New York local time) that highlight the specific "killzones" where institutional volatility is highest.
• Internal Liquidity Scanner: A multi-timeframe scanner for Equal Highs (EQH) and Equal Lows (EQL) that identifies the "Draw on Liquidity" across 1m to 15m charts.
• Institutional Bias Framework: Automatically anchors the Midnight Opening Price to determine Daily Equilibrium (Discount vs. Premium arrays).
📈 Why Use This Script?
This tool is built for the "Smarter Trader." It removes the guesswork from ICT concepts by providing:
1. Objectivity: Know exactly when a setup has enough confluence via the automated Checklist.
2. Clarity: Clear visual distinction between Major and Minor liquidity levels.
3. Risk Management: Automated "Breakeven" logic prompts you when the stop-run phase is likely complete.
📝 Technical Implementation
This version is optimized for speed and accuracy. It features zero repainting on the checklist and SMT components by utilizing closed-candle verification. The UI is fully customizable, allowing you to tailor the dashboard to your specific trading style.
🟢 Advanced BSL & SSL Liquidity Engine
The core of this script is a sophisticated tracking system for Buyside Liquidity (BSL) and Sellside Liquidity (SSL). In institutional trading (ICT), these aren't just highs and lows; they are "Liquidity Pools" where retail stop-losses (buy/sell stops) are clustered, acting as magnets for the market algorithm.
1. The Logic of "Parent Swings"
Unlike basic indicators that mark every fractal high/low, this script uses a Swing Strength filter. It only identifies levels after they have been confirmed by a specific number of bars on either side (lookback/lookforward). This ensures the levels represent significant structural points where true "Smart Money" liquidity resides.
2. Major vs. Minor Classification (The Volatility Filter)
The script includes an intelligent classification system based on the Major Level Threshold %:
• The Calculation: Once a pivot is formed, the script measures the displacement away from that level.
• The Depth: If price expands by more than \bm{X\%} (e.g., 0.5%) after forming a high, it is labeled a "Major BSL".
This tells the trader that this level protected a significant move, making the liquidity sitting above it even more valuable to the algorithm.
3. Proximity Logic: Relatively Equal Highs/Lows (REQH/REQL)
The script features an internal "Proximity Scan." It automatically evaluates the distance between active liquidity levels:
• Logic: If two BSL levels are within a defined price threshold (\bm{REQ\_THRESHOLD}), the script identifies them as Relatively Equal Highs.
• Trading Insight: In ICT concepts, equal highs/lows are "engineered liquidity." The market is much more likely to run through these levels aggressively because there is a double layer of stops resting there.
4. Automated Level Management & Mitigation
To prevent "chart clutter," the script uses Custom Types and Arrays to manage levels dynamically:
• Mitigation (The Purge): As soon as price trades through a level, it is considered "mitigated" or "purged."
• Traded-Through Memory: You can toggle a setting to keep these levels visible. If enabled, the script stops extending the line and reduces its opacity (e.g., to 25%), leaving a "ghost level" on the chart. These often act as S/R Flips or support/resistance zones in future sessions.
📝 Logic behind it
• Methodology: The script utilizes the method keyword in Pine Script v6 to create clean, object-oriented code for level deletion and updates.
• Performance: By using array.unshift() and array.remove(), the script maintains a FIFO (First-In-First-Out) queue. This ensures that even on high-volatility days, the script never exceeds the 500-line drawing limit, maintaining smooth chart performance.
• Coordinate Precision: Lines are pinned using bar_index , ensuring that the line starts at the exact wick peak, providing pixel-perfect accuracy for liquidity analysis.
🟢 Institutional Macro Sessions
In the ICT methodology, Time is the primary filter. Price levels only become significant when they are reached at specific times of the day. This script automates the detection of Algorithmic Macros—tight 20-to-30-minute windows where the "Interbank Price Delivery Algorithm" (IPDA) is programmed to execute specific volatility injections.
1. Algorithmic Directives
During these highlighted windows, the market is not moving randomly. The algorithm is usually "called" to perform one of three tasks:
• Liquidity Purge: A quick run to stop out retail traders at a previous High (BSL) or Low (SSL).
• Rebalancing: Returning to a Fair Value Gap (FVG) or "Imbalance" to seek equilibrium.
• Expansion: Moving rapidly from an internal range toward a higher-timeframe target.
2. The 6 Tracked Macros
Your script identifies the most vital institutional windows for the New York session:
• AM Macro 1 (08:50 – 09:10): Often used for "Setting the Stage" or manipulation before the Equities Open.
• AM Macro 2 (09:50 – 10:10): A high-probability execution window often coinciding with the "Silver Bullet" setup.
• AM Macro 3 (10:50 – 11:10): Frequently marks the "Trend Continuation" or the start of a midday reversal.
• Lunch Macro (11:50 – 12:10): Algorithmic rebalancing before the PM session.
• PM Macro (13:10 – 13:40): The kick-off for the afternoon trend and London Close volatility.
• Last Hour Macro (15:15 – 15:45): The final algorithmic rebalancing before the New York "MOC" (Market On Close) orders.
3. Behind the Logic: Timezone Synchronization
A major technical challenge in Pine Script is ensuring time-boxes align correctly regardless of the user's local clock
• The Solution: This script utilizes a Timezone Shift parameter combined with the timestamp() function.
• Logic: It anchors the calculation to the chart’s syminfo.timezone and then offsets it to match New York Local Time.
This ensures that even if you are trading from London, Tokyo, or Dubai, the "09:50 Macro" will always plot exactly when the New York algorithms become active.
🟢 Multi-Timeframe Liquidity Scanner (EQH/EQL)
One of the most powerful features of V2 is the Stable Deep Scan Logic. Unlike basic fractal indicators, this script doesn't just mark any two similar peaks; it performs a rigorous historical audit of the price action.
The "Unswept" Logic
The table is powered by a custom function, check_liquidity_deep(), which executes a two-stage verification:
1. Detection: It scans a lookback window (default 300 bars) to find price points that are mathematically equal.
2. Verification: Once a level is found, the script runs a secondary loop to ensure that no intervening candle has breached (swept) that level. If a higher high has occurred between the level formation and the current bar, the level is discarded as "invalid/purged."
Data Visualization
The scanner requests this deep-scan data via request.security() for the 1m, 2m, 3m, 4m, 5m, and 15m timeframes simultaneously.
• EQH (Green/Red): Indicates a "Ceiling" of liquidity waiting to be raided.
• EQL (Red/Green): Indicates a "Floor" of sell-side liquidity.
• Both: Alerts the trader to a "bracketed" market, often preceding a high-volatility expansion.
• Memory Management: By using var array structures for SMT lines and labels, the script avoids the "Maximum Objects" limit often hit by lower-quality scripts.
• Optimization: The check_liquidity_deep function is designed to only trigger its heaviest calculations on the barstate.islast, ensuring your chart remains fluid and responsive even with multiple timeframes active.
• Coordinate Precision: The script uses xloc.bar_time for Macro lines to ensure they remain pinned to the correct NYC time regardless of the user's local computer clock or daylight savings shifts.
🟢 The Auto IFVG Checklist
The Auto IFVG Checklist in this script is a real-time confluence engine. It doesn't just display labels; it executes complex multi-timeframe scans and state-checks to verify if an institutional setup is currently active.
1. 🛡️ Liq Sweep (Liquidity Sweep)
Code Logic: high > high and close < high (for Bearish) or low < low and close > low (for Bullish).
• How it works: Your code identifies "Wick Manipulations." It flags a sweep when price breaches a previous candle's extremity but fails to hold that level on the close.
• Persistence: It uses swept_p with a ta.barssince lookback of 5 bars, meaning the "fuel" from the sweep remains valid for 5 candles after it occurs.
2. ⚡ Momentum (Midnight Open Bias)Orderflow Code Logic: midnightOpen = na anchored at hour == 0 and minute == 0.
• How it works: The script establishes a "True Day Open."
• IOF Bullish: Price is currently below Midnight Open (accumulating in a discount).
• IOF Bearish: Price is currently above Midnight Open (distributing in a premium).
• The Checklist Role: The Momentum check confirms if you are trading on the correct side of the "Power of 3" (Accumulation/Manipulation/Distribution).
3. 🎯 Clear DOL (Draw on Liquidity)
Code Logic: iof_bullish ? close < ta.vwap : close > ta.vwap.
• How it works: It uses VWAP (Volume Weighted Average Price) as the standard for algorithmic equilibrium.
• The Objective: If the bias is bullish, the script looks for price to be below VWAP, indicating the "Draw" is toward a higher premium or internal liquidity pool. It ensures the trade has room to "breathe" before hitting equilibrium.
4. 🔄 HTF iFVG (Higher Timeframe Inversion FVG)
Code Logic: f_scan_tf(tf) using request.security.
• How it works: This is the most complex part of the indicator. It scans the 1m, 2m, 3m, 4m, and 5m timeframes for "Inversion."
• The "Inversion" Event: It checks if price has closed completely through a Fair Value Gap (inv_b or inv_s). In your script, if a gap on any of these five timeframes is inverted, it signals a high-probability "Change in State of Delivery."
5. 🚢 HTF Delivery (Higher Timeframe Narrative)
Code Logic: f_scan_tf scanning 15m, 30m, 1H, and 4H.
• How it works: The script checks if price is currently interacting with an institutional zone on much higher timeframes.
• Priority: It uses a hierarchical "if-else" chain. If a 4H zone is found, it overrides the 1H; if a 1H is found, it overrides the 15m. This ensures the Checklist always displays the most significant timeframe currently "delivering" price.
6. ⚖️ Breakeven (The Risk-Off Trigger)
Code Logic: beR = ta.barssince(swept) < 10.
• How it works: This is a time-based risk management filter.
• The Logic: If a Liquidity Sweep occurred within the last 10 bars and the trade is moving, the script flags "Breakeven." It alerts the trader that the "Stop Run" phase should be over, and it is time to move the stop loss to the entry to ensure a risk-free trade.
📊 The Mathematical Rating System
The final "RATING" cell in the table is the result of a weighted boolean check:
• A+: Requires all 5 confluences (Sweep, Momentum, iFVG, Delivery, and DOL).
• A: Requires Sweep, Momentum, iFVG, and DOL.
• B+: Only requires the intraday pillars (Sweep, Momentum, and iFVG).
• C: Only requires an iFVG presence.
🟢 SMT Divergence Engine
The SMT engine in this script acts as a "crack in correlation" detector. It monitors the relationship between current chart and a Comparison Symbol (e.g., NQ vs. ES) to identify institutional accumulation or distribution that isn't visible on a single chart.
1. Dual-Mode Detection
This feature implements two distinct types of SMT to capture both aggressive and structural shifts:
• Adjacent Wick SMT: This is "Micro-SMT." It compares the current candle's wick to the previous candle's wick. If the main symbol makes a Higher High but the correlated symbol does not, it flags an immediate divergence.
• Structural Pivot SMT: This is "Macro-SMT." It uses three different lookback lengths (Primary, Secondary, and Tertiary) to find divergences across major market swings.
2. Dynamic Invalidation Logic (The "Mended Crack")
A common issue with SMT indicators is that they stay on the chart forever. Your code solves this with a Reference Price Check:
• The Logic: When a divergence is found, the script stores the correlated symbol’s high/low in an array (adj_up_comp_refs).
• The Invalidation: If the correlated symbol eventually "catches up" and breaks that stored reference price, the "crack" is considered mended. The script then executes a while loop to purge the lines and labels from the chart automatically.
3. Advanced Memory Management (Array-Based)
This allows the script to track multiple concurrent SMTs. If three different divergences happen in a row, the script can display and manage all of them independently without hitting TradingView's drawing limits or "forgetting" old levels.
4. Triple-Length Pivot Analysis
By using three different pivot lengths (3, 5, and 8), the SMT engine filters "Market Noise":
• Tertiary (3): For scalpers looking for quick entries.
• Primary (5): For standard intraday trend changes.
• Secondary (8): For major structural shifts and daily bias reversals.
5. Algorithmic Correlation Mapping
The script uses fixnan(ta.pivothigh(...)) to ensure that the SMT lines are pinned exactly to the historical pivots, even if the comparison symbol has gaps in its data. This ensures that the "slope" of the SMT line is mathematically accurate, providing a clear visual of the divergence.
⚒️How to use ICT Internal Levels
Step 1: Establish the "Daily Anchor" (Midnight Open)
Before looking for trades, identify your bias using the Midnight Opening Price.
• Look at the Momentum section of your Checklist.
• If the script says "BULL" (price is below Midnight Open), you are in a Discount and should only look for Longs.
• If it says "BEAR" (price is above Midnight Open), you are in a Premium and should only look for Shorts.
Step 2: Identify the "Draw" (EQH/EQL & BSL/SSL)
Now, find out where the market is likely to go.
• The Scanner: Check the Multi-TF EQH/EQL Table. If you see "EQH" across multiple timeframes (1m, 5m, 15m), that is a high-probability Draw on Liquidity (DOL).
• The Levels: Look for the Major BSL/SSL lines. These are your "Targets." The market will likely seek these pools of money before reversing.
Step 3: Wait for the "Time Window" (Macros)
Don't trade in the "dead zones." Wait for price to enter a Macro Session (the highlighted vertical zones).
• Institutional volatility is most consistent during these windows (e.g., 09:50–10:10 AM).
• The Goal: You want to see price reach your "Draw" (from Step 2) during this time window.
Step 4: Confirm the "Crack" (SMT Divergence)
As price approaches a BSL or SSL level within a Macro window, look for an SMT label.
• If the asset you are trading (e.g., NQ) sweeps a high, but the comparison symbol (e.g., ES) does not, the SMT engine will plot a line.
• This confirms that "Smart Money" is actively distributing, and a reversal is imminent.
Step 5: The "Entry Signal" (HTF iFVG)
Wait for the Change in State of Delivery.
• Look for an iFVG (Inversion Fair Value Gap) to form on the 1m or 5m chart.
• When price closes through a gap, the HTF IFVG item on your Checklist will turn green. This is your "Green Light" to enter the market.
Step 6: Final Audit (The Checklist Grade)
Before clicking "Buy" or "Sell," look at the RATING in the bottom corner of the checklist.
• A+ / A: Execute with full confidence. All pillars (Time, Price, SMT, and HTF) are aligned.
• B+: High probability, but perhaps you are trading outside of a Macro or against the HTF Delivery. Use smaller risk.
• C: Avoid this setup; it is likely a trap or a low-probability scalp.
Step 7: Risk Management (Breakeven)
Once you are in the trade:
• Monitor the Breakeven status on the checklist.
• Once it switches to "YES" (usually after 10 bars or a significant move), move your Stop Loss to your entry price. You now have a "Risk-Free" trade.
⚠️ Risk Disclaimer
The ICT Internal Levels V2 is an educational tool for market analysis and does not provide financial advice or guaranteed "buy/sell" signals. Trading involves significant risk, and you may lose some or all of your invested capital.
No Guarantees: Past performance does not guarantee future results. While this script uses advanced logic to identify confluences, all market analysis involves probability, not certainty.
User Responsibility: The author is not liable for any financial losses resulting from the use of this indicator. You are solely responsible for your trading decisions and should always use proper risk management. Use this script to supplement your own manual analysis—never rely on an indicator alone for execution.
Auto Decision Box LITEAuto Decision Box LITE
Simple educational indicator that visualizes consolidation "decision boxes" on a higher timeframe after impulse moves.
Features:
- Draws orange high/low box lines with fill based on ATR impulse and balance bars
- Optional RTH session filter (9–11 AM ET by default)
- Basic crossover/crossunder labels when price breaks the box (green up / red down)
- Daily disclaimer label
This is a structure-only tool — no signals, no filters, no trading logic. Use it to manually identify potential zones on stocks, futures, forex, etc.
For educational purposes only. Not financial advice. Always do your own research and manage risk.






















