Initial Balance Ultimate High/LowThis indicator plots the definitive session high and low established during the initial balance formation within the first hour following the New York Stock Exchange open, as well as the 25%, 50%, and 75% retracement levels of the total initial balance range
Candlestick analysis
Elite Entry Source [ACE]This indicator provides a comprehensive overlay for trend identification and signal execution. Users should follow the primary trend line color for market bias—green for bullish and purple for bearish. High-probability entry and exit points are marked by clear "Buy" and "Sell" labels directly on the candles. For maximum accuracy, always cross-reference the on-chart signals with the bottom-right Multi-Timeframe (MTF) dashboard to ensure the local move aligns with higher-order trends.
Sami_nuvem_emasThis cloud shows the EMAs; when it's a sell, it turns red, and when it's a buy, it turns green, showing buy and sell signals. Be careful, as the script is just an indicator; it will cause losses if used for automated trading."
[ahDirtCuhzzz]ICT Sessions_Asia and London Focused- I turn the days background off
- I only toggle Asia & London session
- I adjust Asia to 1900 -- 2200
- I turn off weekly/monthly lines
- I added labels to midnight and 830 open with the ability to change colors on the label/text.
Weekly Open LinesIndicator marks the weekly open (UK GMT) and plots across the week.
Reports statistics on occurrence of returns to the open price.
Only works on the daily time-frame.
EMA Touch True Engulfing### Overview
This script is a premium technical analysis tool that combines **Multi-EMA Touch Alerts** with a highly strict **"True Engulfing"** price action filter.
Unlike standard engulfing indicators that only look at the candle body, this version requires the current candle to engulf the **entire range (including wicks)** of the previous candle. This ensures you only see the most powerful reversal signals near key dynamic support and resistance.
### Key Features
* **Strict "True Engulfing" Logic**: Signals only appear when the current candle's body completely swallows the previous candle's High and Low.
* **4-Layer EMA Setup**: Tracks 4 customizable EMAs (Default: 10, 20, 40, 80) for trend context.
* **Minimalist Visuals**: Uses the Japanese character **"包"** (meaning "Engulf") for a clean, non-intrusive chart layout.
* **Green Label**: High-probability Bullish Engulfing.
* **Red Label**: High-probability Bearish Engulfing.
* **Combo Alerts**: Built-in alert conditions for EMA touches, True Engulfing patterns, and a "Combo Alert" for when both happen simultaneously.
### How to Trade
1. **Trend Context**: Identify the primary trend using the EMAs.
2. **The Retest**: Wait for the price to pull back to an EMA.
3. **The Confirmation**: Look for the **"包"** label. This indicates that the market has completely rejected the EMA level by overpowering the previous candle's entire range.
JD Moon - Intraday Boxကျွန်တော် JD Moon ပါ၊
ဒီ Box Indicator က Intraday Trader တွေအတွက် အချိန်ကုန်သက်သာအောင် တကူးတက ဆွဲစရာမလိုအောင် Price Action သမားတွေအတွက် အသုံးလိုတဲ့အရာမို့ ဖန်တီးထားတာပါ၊ အရမ်း ရိုးရှင်းပြီး အရမ်း အသုံးဝင်ပါတယ်။ တစ်ရက်အတွင်း စျေးနှုန်းအရွေ့ကို စောင့်ကြည့်ဖို့ပါ။ အထူးသဖြင့်ကျွန်တော့်အတွက် ဖန်တီးထားတာဖြစ်ပြီး လိုအပ်သူတွေ ကျွန်တော့်လို Chart တိုင်းမှာ လှိုင်းဆွဲဖို့ ငပျင်းလေးတွေ ယူသုံးနိုင်ပါတယ်။
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.
FVG + Close + Manip)This indicator identifies confirmed Fair Value Gaps (FVGs) using a three-candle structure and plots them on the chart as bullish or bearish zones.
FVGs remain active until they are fully filled, either by wick or by candle body (user-selectable).
Candles are highlighted only when they are manipulative (selectable logic: Base, Base + Break, or Displacement) and react correctly to an active FVG: bullish candles close with the body above a bullish FVG, and bearish candles close with the body below a bearish FVG.
The script is non-repainting and fully customizable in terms of colors, borders, and methodology.
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")
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






















