Target Ladder Pro - MTF ATR + HIT ConfirmationTarget Ladder Pro is a volatility-based target framework that plots multi-timeframe ATR-derived upper and lower reference levels on the price chart and can optionally print HIT confirmations when a defined ATR target is reached.
This script is designed to provide structured volatility context (reach zones, range framing, and objective “target reached” tagging). It does not predict price direction, does not guarantee outcomes, and is not intended as a standalone signal generator.
What This Script Displays
1) Multi-Timeframe ATR Target Ladder (1H / 4H / 1D / 1W)
For each enabled timeframe, the script calculates ATR using higher-timeframe data via request.security() (no lookahead), then plots:
Upper level: Base + ATR × Multiplier
Lower level: Base − ATR × Multiplier
The “Base” can be set to:
the current chart price (for immediate relevance), or
the timeframe’s own close (for a strict MTF reference)
Each timeframe’s upper and lower levels are drawn as price-chart lines.
Last-Bar Target Balloons (per timeframe)
On the last bar, the script prints balloon labels for each timeframe’s upper and lower level. Horizontal x-offsets are configurable per timeframe to keep stacked labels readable.
2) ATR Target + Deviation Bands (Context Layer)
A separate ATR target module calculates a single ATR reference level for the current bar based on candle direction (up/down close relative to the prior close). It also optionally plots:
a mean line (moving average), and
up to four standard-deviation bands (mean ± N × deviation)
These bands provide statistical range context around price.
Target / HIT Labels (per bar)
When enabled:
a Target label marks the computed ATR target level
a HIT label appears when price reaches that target on the same bar (high/low touch rule)
An optional filter can require that the ATR target is inside the first deviation band before printing a HIT label, reducing HIT labels during extended conditions.
Label history can be limited to the most recent N labels or allowed to persist (with a safety cap).
How to Use
Enable the timeframes you want to display (e.g., 1H / 4H / 1D / 1W).
Adjust ATR length and multipliers per timeframe to match the asset’s volatility profile.
Choose whether MTF ladder levels are anchored to current price or the timeframe’s own close.
Use the ladder levels as volatility reach reference zones above and below price.
Use Target/HIT labels as objective “condition occurred” markers for review and journaling.
Notes and Limitations
ATR levels are volatility references, not forecasts or guarantees.
Targets may be reached frequently in high-volatility regimes and rarely in compressed markets.
HIT labels indicate that a defined volatility condition occurred; they do not imply reversal or continuation on their own.
This script is provided for informational and educational purposes only and does not constitute financial advice.
Candlestick analysis
EMA Touch & Color-Filtered Engulfing「前の足が陰線であること」という重要なフィルターが加わり、ついにロジックが完成しましたね!
TradingViewのコミュニティで高い評価を得るための、専門的かつ分かりやすい**「完全版・英語説明文」**を作成しました。そのままコピーして投稿にお使いください。
Title
EMA Touch & Color-Filtered Engulfing
Description
🚀 Overview
This indicator is a professional-grade price action tool designed for high-probability trend-following entries. It combines 4-layer Exponential Moving Averages (EMA) with a Strict Color-Filtered Engulfing logic.
The script is optimized to find moments where the market sentiment completely shifts—confirmed by price breaking through the previous candle's extreme levels (Highs/Lows) while reversing the candle color.
💎 Key Features
Strict Color-Filtered Logic:
Bullish (Long): A Green candle must engulf a Red candle’s High. This confirms that buyers have completely overpowered the previous sellers.
Bearish (Short): A Red candle must engulf a Green candle’s Low. This confirms that sellers have completely overtaken the previous buyers.
High-Break / Low-Break Confirmation: Unlike standard body-only engulfing patterns, this script requires the current close to break the previous candle's wick extremes, ensuring stronger momentum.
4-Layer EMA Structure: Default settings (10, 20, 40, 80) help you visualize dynamic support and resistance zones instantly.
Minimalist Visuals:
The Japanese character "包" (Engulf) marks high-conviction signals.
Small dots indicate precise EMA Touch moments.
📈 How to Trade with This Script
Trend Alignment: Identify the trend direction using the 4 EMA lines.
The Retest: Wait for the price to pull back and touch an EMA line (look for the dot).
The Confirmation: Execute when the "包" signal appears. This indicates that the trend is resuming with enough force to swallow the previous counter-trend candle's range.
🔔 Integrated Alerts
You can set alerts for:
EMA Touches: Be notified the moment price hits your key levels.
Engulfing Signals: Catch momentum shifts as they happen.
Combo Signals (Recommended): Receive an alert only when a "True Engulfing" occurs on an EMA touch—the highest probability setup.
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.
SMART MONEY SMT+BOS+ENTRYThis advanced trading indicator combines Smart Money Theory (SMT) and Break of Structure (BOS) analysis with synchronized multi-asset monitoring. The core concept identifies institutional activity by detecting discrepancies between correlated assets, revealing potential accumulation zones and reversal points before they become apparent to retail traders.
Key Features
Smart Money Detection:
Real-time divergence analysis between two selected assets (e.g., BTC/ETH, Gold/Silver, Currency pairs)
Identification of institutional accumulation/distribution patterns
Trend confirmation through structural sweeps and momentum shifts
Structural Analysis:
Break of Structure (BOS) detection with multi-factor confirmation
ATR-based candle size filtering to eliminate false breakouts
Clear structural shift identification with visual confirmation
Risk-Managed Execution:
Dual entry modes: Immediate (on BOS close) or Retest (on pullback to level)
Automated stop-loss placement at last structural extreme
Dynamic take-profit calculation based on user-defined risk/reward ratio
Support for long-only, short-only, or bidirectional trading strategies
Visual Interface
Colored arrows signaling buy/sell opportunities at optimal entry points
Real-time stop-loss and take-profit level visualization
SMT divergence markers above/below price action
Structural level indicators for clear market context
Configuration Options
Asset Pair Selection - Primary and secondary symbols for comparative analysis
Trading Direction - Long, Short, or Both directions
Swing Sensitivity - Adjustable pivot point detection period
Risk/Reward Ratio - Customizable profit targets relative to risk
BOS Confirmation Filter - Minimum candle body size requirement via ATR percentage
Optimal Application
Best performance on correlated assets (crypto pairs, commodities, indices)
Effective across multiple timeframes (M15 for entries, H4/D1 for context)
Combines well with volume profile and order flow analysis
Suitable for both discretionary and systematic trading approaches
Technical Advantages
Dual-asset synchronization for early signal detection
Multi-layer filtering system reducing false positives
Integrated risk management with visual guidance
Customizable sensitivity for different market conditions
Русская версия
Индикатор Smart Money Theory (SMT) + Break of Structure (BOS)
Обзор
Этот продвинутый торговый индикатор объединяет анализ Smart Money Theory (SMT) и Break of Structure (BOS) с синхронизированным мониторингом нескольких активов. Основная концепция выявляет активность институциональных игроков путем обнаружения расхождений между коррелирующими активами, показывая зоны накопления и точки разворота до того, как они становятся очевидными для розничных трейдеров.
Ключевые возможности
Детекция "умных денег":
Анализ дивергенций в реальном времени между двумя выбранными активами
Выявление паттернов накопления/распределения институциональными участниками
Подтверждение тренда через структурные сдвиги и изменения импульса
Структурный анализ:
Обнаружение Break of Structure (BOS) с многофакторным подтверждением
Фильтрация по размеру свечи на основе ATR для устранения ложных пробоев
Четкая идентификация структурных сдвигов с визуальным подтверждением
Управление рисками:
Два режима входа: Немедленный (при закрытии BOS) или Ретест (при откате к уровню)
Автоматическое размещение стоп-лосса на последнем структурном экстремуме
Динамический расчет тейк-профита на основе заданного риск-риворда
Поддержка лонг-стратегий, шорт-стратегий или обоих направлений
Визуальный интерфейс
Цветные стрелки, сигнализирующие о точках входа на покупку/продажу
Визуализация уровней стоп-лосса и тейк-профита в реальном времени
Маркеры SMT-дивергенций над/под ценовым действием
Индикаторы структурных уровней для четкого контекста рынка
Настройки
Выбор пары активов - Основной и вторичный символы для сравнительного анализа
Направление торговли - Лонг, Шорт или Оба направления
Чувствительность свингов - Настраиваемый период детекции точек разворота
Коэффициент риск/вознаграждение - Настраиваемые цели по прибыли относительно риска
Фильтр подтверждения BOS - Минимальный размер тела свечи в процентах от ATR
Оптимальное применение
Наилучшие результаты на коррелирующих активах (криптопары, товары, индексы)
Эффективен на различных таймфреймах (M15 для входов, H4/D1 для контекста)
Хорошо сочетается с анализом Volume Profile и ордерного потока
Подходит как для дискреционного, так и для системного трейдинга
Технические преимущества
Синхронизация двух активов для раннего обнаружения сигналов
Многоуровневая система фильтрации, снижающая ложные срабатывания
Интегрированное управление рисками с визуальным сопровождением
Настраиваемая чувствительность под разные рыночные условия
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.
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! 📈
═══════════════════════════════════════════════════════════
ICT Professional OB HunterICT Professional OB Hunter
A professional-grade Order Block mapping tool designed for traders following Smart Money Concepts to track institutional order flow and significant market structures.
This tool identifies validated Order Blocks with Break of Structure confirmation, filtering out market noise and focusing only on high-probability levels where institutional participation is evident.
How It Works
The script operates without repainting, using historical swing highs and lows as reference points rather than future data. Three core criteria must be satisfied before an Order Block is drawn:
Strong Candle Formation: The candle must have a significant body (no dojis), exceeding the ATR threshold—indicating genuine institutional participation rather than indecision.
Displacement: Following the Order Block candle, price must move with momentum exceeding 1.5x the ATR. This captures true "market shifting" moves while ignoring slow, low-volume price action.
Break of Structure: Price must definitively break the previous swing high or low to confirm momentum before the Order Block is validated and drawn.
What You See on the Chart
Thick Blue Lines: Bullish Order Blocks representing demand zones where price historically finds support and reacts upward.
Thick Orange Lines: Bearish Order Blocks representing supply zones that act as resistance.
Yellow Boxes: OTE (Optimal Trade Entry) zones between the 50% and 61.8% retracement levels of the Order Block—ICT's preferred fib confluence area for precision entries.
Dashed Lines: Breaker Blocks indicating former Order Blocks that have been violated by price and now act as reverse levels or "mitigated" areas.
Key Differences from Standard Tools
Most available Order Block indicators mark every red or green candle indiscriminately, creating excessive noise and poor trading opportunities. This code implements a displacement filter to capture only structures formed after significant, volume-backed institutional moves. It contains no future reference or repainting logic—all decisions finalize strictly on bar close based on confirmed historical data.
Settings
Displacement Lookback (2-5 bars): Determines how many subsequent bars to analyze for momentum confirmation after the initial Order Block candle. Three bars provides the optimal balance between responsiveness and confirmation.
ATR Multiplier (0.5+): Sets the sensitivity for displacement detection. A value of 1.5 works well for Gold (XAU/USD). Lower values generate more Order Blocks but decrease quality and reliability.
Mitigation Zones: Toggle the display of OTE (Optimal Trade Entry) boxes on or off.
Usage Recommendations
This indicator is not a standalone buy/sell signal generator—it marks zones where institutional capital is likely positioned.
Recommended approach:
Apply to 15-minute or 1-hour charts, particularly during the New York session (14:30-17:00 EST) when institutional volume peaks.
Wait for price to reach the confluence of the Blue Line and Yellow OTE box.
The setup invalidates if price closes below the OTE zone boundary.
When Orange lines transition to dashed (Breaker Block), recognize that former support has become resistance; adjust position management accordingly.
Risk Warning
This is a statistical model based on historical price behavior, not a "holy grail" solution. Market conditions change, particularly during high-volatility macroeconomic news events (FOMC, CPI, NFP), where Order Blocks may fail. Always employ stop-loss protection and integrate this tool as one component of a comprehensive risk management strategy rather than relying on it exclusively.
Written in Pine Script v6 utilizing array structures for efficient real-time line updates and optimized for performance even on older hardware configurations.
Developer Note: Historical backtest analysis indicates that BOS-validated Order Blocks, particularly in Gold (XAU/USD) and major indices, demonstrate improved win rates when combined with disciplined entry criteria and proper risk management. However, the market retains ultimate authority—respect price action above all indicators.
Price LevelsDescription: Price Levels (NY Openings)
This indicator automatically plots key price levels based on the most significant opening times of the New York session. It is an essential tool for ICT (Inner Circle Trader) or SMC (Smart Money Concepts) traders who rely on specific "Kill Zones" and time-based liquidity.
Litronix Liquidity BlocksLitronix Liquidity Blocks is a session-based market structure indicator designed to highlight high-liquidity periods where institutional activity is most likely to occur.
The indicator plots price-anchored liquidity blocks based on key intraday sessions, automatically capturing each session’s high and low range and displaying it directly on the chart. All blocks are fully synchronized with price and time, ensuring precise interaction when navigating the chart.
Included Liquidity Blocks:
Asian Block – Asian session range
EU Block – Frankfurt liquidity window
NY Kill Block – High-volatility manipulation window
NY Block – New York session range
Lunch Block – Low-liquidity consolidation period
Key Features:
Session-based liquidity ranges (High / Low)
Price-anchored blocks that move precisely with the chart
Fully customizable session times and colors
Optional session labels
Clean, non-repainting logic
Optimized for intraday and scalping strategies
Best Use Cases:
Liquidity sweeps and stop-hunt detection
ICT / Smart Money Concepts
Intraday bias and session transitions
Scalping and day trading
Litronix Liquidity Blocks is built for traders who focus on where liquidity is taken, not where price is going.
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")
SIDDAMRAJU2Open the indicator Settings (Click the Gear icon).
Look for the "Target Line Settings" group.
You can now pick any Color you want, change the Style to Solid/Dotted/Dashed, and make the line Thicker or Thinner.
Would you like me to...
Add "Risk to Reward" (RR) Ratio to the table? Since we know the Stop Loss distance and the Target distance, I can calculate the exact Ratio (e.g., "1:2.5") and display it in the dashboard so you know if the trade is worth taking.
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.
FxShare - CC ReversalVery simple , but very grounded, strict and pure math+statistics -based algo:
Based on candle count and reverse .
You can set how many candles (and their body shape) you count in a row before the retracement and market overstretch happens. It also has an EMA filter if you wish for even stronger but more rare signals.
Use it, break it, improve it.
Fear Greed RangesFear Greed Ranges Indicator: A Practical Guide to Market Sentiment Analysis
Introduction: Understanding Market Psychology
The "Fear Greed Ranges" indicator is a specialized technical analysis tool designed to visualize market sentiment through the lens of the Relative Strength Index (RSI). Unlike traditional RSI displays that show only a line graph, this indicator transforms raw RSI data into intuitive, color-coded zones that immediately signal whether markets are driven by fear, greed, or balanced sentiment. By providing this visual context, it helps traders identify potential turning points and manage risk more effectively.
Rational Integration: Why RSI Forms the Core
The indicator's foundation rests on the well-established RSI oscillator, chosen for several compelling reasons. First, RSI has stood the test of time since its development by J. Welles Wilder Jr. in 1978, with decades of empirical validation across various asset classes. Second, its mathematical construction—comparing the magnitude of recent gains to recent losses—directly measures momentum, which often precedes price reversals at extremes. Third, RSI's bounded nature (0-100 range) makes it ideal for creating clearly defined zones without subjective interpretation.
The integration transforms this numerical oscillator into a spatial visualization system. Rather than simply reading RSI values, traders can immediately perceive market conditions through color psychology: red triggers caution, green suggests opportunity, and yellow indicates neutrality. This multi-sensory approach reduces cognitive load during fast-moving markets and helps overcome confirmation bias that might occur when interpreting raw numbers.
Component Synergy: How the System Works Together
The indicator comprises three interconnected layers that create a unified analytical framework:
Core Calculation Layer: The traditional RSI calculation processes price data using the specified period length (default 14 periods). This generates the fundamental sentiment metric that drives all subsequent visualizations. The RSI calculation serves as the "brain" of the indicator, continuously analyzing market momentum.
Sentiment Classification Layer: This layer applies threshold logic to categorize each RSI reading into one of three emotional states. Readings above 70 are classified as "Greed" (market potentially overbought), below 30 as "Fear" (market potentially oversold), and between 30-70 as "Neutral" (balanced market conditions). These thresholds are based on the conventional RSI interpretation framework that has been widely adopted in technical analysis.
Visual Translation Layer: The most innovative aspect transforms numerical classifications into immediate visual cues. The colored ribbon area creates a "sentiment atmosphere" around price action, while the background tint provides subtle contextual framing. Horizontal reference lines at 30, 50, and 70 offer precise anchoring points, and the floating label provides real-time status updates. These elements work in concert: the ribbon shows sentiment intensity, the background provides persistent context, and the reference lines offer precise measurement points.
Practical Application: How to Use the Indicator Effectively
For optimal results, traders should incorporate this tool into a comprehensive analysis framework:
Initial Setup: Apply the indicator to any financial chart (stocks, forex, cryptocurrencies, etc.) using the default 14-period setting for general purposes. For shorter timeframes, consider reducing the period to 10; for longer-term analysis, increase to 20-25 periods.
Signal Interpretation:
When the ribbon turns red and the background tints crimson, exercise caution with new long positions and consider profit-taking on existing holdings.
Green zones may indicate accumulation opportunities, particularly if accompanied by bullish divergence (price making lower lows while RSI makes higher lows).
Yellow areas suggest normal market fluctuation where trend-following strategies may be more appropriate than reversal anticipation.
Confirmation Protocol: Always wait for additional confirmation before acting on extreme readings. For greed zone signals, look for bearish candlestick patterns, resistance at key price levels, or decreasing volume. For fear zone signals, watch for bullish reversal patterns, support levels holding, or increasing volume on down moves.
Timeframe Harmony: Analyze multiple timeframes simultaneously. A greed signal on a daily chart carries more weight than one on a 15-minute chart. Look for alignment across timeframes for higher-probability setups.
Alert Utilization: Enable the built-in alert system to receive notifications when sentiment zones change, ensuring you never miss potential opportunities or risk scenarios.
Original Contribution: What Sets This Indicator Apart
While RSI indicators are ubiquitous, the "Fear Greed Ranges" implementation offers several distinctive advantages:
Cognitive Efficiency: By converting numerical data into immediate visual perception, the indicator reduces the mental processing required to assess market conditions. Traders can glance at a chart and instantly understand the sentiment landscape without calculating or interpreting raw values.
Contextual Persistence: The colored background maintains a subtle but constant reminder of the prevailing sentiment, preventing the common pitfall of overlooking extreme conditions that might develop gradually.
Dual-Layer Communication: The system operates on both conscious (reference lines, labels) and subconscious (color psychology) levels, engaging multiple cognitive pathways for more reliable signal recognition.
Integrated Risk Framework: By explicitly naming emotional extremes ("Fear" and "Greed"), the indicator constantly reminds traders of the psychological forces driving markets, encouraging more disciplined decision-making.
Important Considerations and Limitations
No technical indicator guarantees future performance, and this tool should form only one component of a comprehensive trading strategy. Several critical factors require attention:
Market Context Matters: During strong trending markets, RSI can remain in extreme zones for extended periods without immediate reversal. In such conditions, the indicator signals strength rather than imminent reversal.
Volatility Adjustments: Highly volatile instruments may generate frequent zone changes that could lead to overtrading if not filtered appropriately.
Complementary Tools: This indicator works best when combined with price action analysis, volume studies, support/resistance levels, and fundamental factors where applicable.
Personal Adaptation: Traders should backtest the indicator on their preferred markets and timeframes to understand its characteristics before live implementation, potentially adjusting the RSI period or zone thresholds to match specific instrument behaviors.
The "Fear Greed Ranges" indicator serves as a visual translator of market psychology, converting mathematical momentum readings into intuitive emotional landscapes. By making RSI interpretation more immediate and accessible, it helps traders maintain objectivity during emotionally charged market conditions and supports more disciplined execution of their trading strategies. Remember that successful trading involves risk management, continuous learning, and adapting tools to your individual approach—this indicator provides one lens through which to view the markets, not a complete trading system in itself.
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






















