Smart MTF S/R Levels[BullByte]
Smart MTF S/R Levels
Introduction & Motivation
Support and Resistance (S/R) levels are the backbone of technical analysis. However, most traders face two major challenges:
Manual S/R Marking: Drawing S/R levels by hand is time-consuming, subjective, and often inconsistent.
Multi-Timeframe Blind Spots: Key S/R levels from higher or lower timeframes are often missed, leading to surprise reversals or missed opportunities.
Smart MTF S/R Levels was created to solve these problems. It is a fully automated, multi-timeframe, multi-method S/R detection and visualization tool, designed to give traders a complete, objective, and actionable view of the market’s most important price zones.
What Makes This Indicator Unique?
Multi-Timeframe Analysis: Simultaneously analyzes up to three user-selected timeframes, ensuring you never miss a critical S/R level from any timeframe.
Multi-Method Confluence: Integrates several respected S/R detection methods—Swings, Pivots, Fibonacci, Order Blocks, and Volume Profile—into a single, unified system.
Zone Clustering: Automatically merges nearby levels into “zones” to reduce clutter and highlight areas of true market consensus.
Confluence Scoring: Each zone is scored by the number of methods and timeframes in agreement, helping you instantly spot the most significant S/R areas.
Reaction Counting: Tracks how many times price has recently interacted with each zone, providing a real-world measure of its importance.
Customizable Dashboard: A real-time, on-chart table summarizes all key S/R zones, their origins, confluence, and proximity to price.
Smart Alerts: Get notified when price approaches high-confluence zones, so you never miss a critical trading opportunity.
Why Should a Trader Use This?
Objectivity: Removes subjectivity from S/R analysis by using algorithmic detection and clustering.
Efficiency: Saves hours of manual charting and reduces analysis fatigue.
Comprehensiveness: Ensures you are always aware of the most relevant S/R zones, regardless of your trading timeframe.
Actionability: The dashboard and alerts make it easy to act on the most important levels, improving trade timing and risk management.
Adaptability: Works for all asset classes (stocks, forex, crypto, futures) and all trading styles (scalping, swing, position).
The Gap This Indicator Fills
Most S/R indicators focus on a single method or timeframe, leading to incomplete analysis. Manual S/R marking is error-prone and inconsistent. This indicator fills the gap by:
Automating S/R detection across multiple timeframes and methods
Objectively scoring and ranking zones by confluence and reaction
Presenting all this information in a clear, actionable dashboard
How Does It Work? (Technical Logic)
1. Level Detection
For each selected timeframe, the script detects S/R levels using:
SW (Swing High/Low): Recent price pivots where reversals occurred.
Pivot: Classic floor trader pivots (P, S1, R1).
Fib (Fibonacci): Key retracement levels (0.236, 0.382, 0.5, 0.618, 0.786) over the last 50 bars.
Bull OB / Bear OB: Institutional price zones based on bullish/bearish engulfing patterns.
VWAP / POC: Volume Weighted Average Price and Point of Control over the last 50 bars.
2. Level Clustering
Levels within a user-defined % distance are merged into a single “zone.”
Each zone records which methods and timeframes contributed to it.
3. Confluence & Reaction Scoring
Confluence: The number of unique methods/timeframes in agreement for a zone.
Reactions: The number of times price has touched or reversed at the zone in the recent past (user-defined lookback).
4. Filtering & Sorting
Only zones within a user-defined % of the current price are shown (to focus on actionable areas).
Zones can be sorted by confluence, reaction count, or proximity to price.
5. Visualization
Zones: Shaded boxes on the chart (green for support, red for resistance, blue for mixed).
Lines: Mark the exact level of each zone.
Labels: Show level, methods by timeframe (e.g., 15m (3 SW), 30m (1 VWAP)), and (if applicable) Fibonacci ratios.
Dashboard Table: Lists all nearby zones with full details.
6. Alerts
Optional alerts trigger when price approaches a zone with confluence above a user-set threshold.
Inputs & Customization (Explained for All Users)
Show Timeframe 1/2/3: Enable/disable analysis for each timeframe (e.g., 15m, 30m, 1h).
Show Swings/Pivots/Fibonacci/Order Blocks/Volume Profile: Select which S/R methods to include.
Show levels within X% of price: Only display zones near the current price (default: 3%).
How many swing highs/lows to show: Number of recent swings to include (default: 3).
Cluster levels within X%: Merge levels close together into a single zone (default: 0.25%).
Show Top N Zones: Limit the number of zones displayed (default: 8).
Bars to check for reactions: How far back to count price reactions (default: 100).
Sort Zones By: Choose how to rank zones in the dashboard (Confluence, Reactions, Distance).
Alert if Confluence >=: Set the minimum confluence score for alerts (default: 3).
Zone Box Width/Line Length/Label Offset: Control the appearance of zones and labels.
Dashboard Size/Location: Customize the dashboard table.
How to Read the Output
Shaded Boxes: Represent S/R zones. The color indicates type (green = support, red = resistance, blue = mixed).
Lines: Mark the precise level of each zone.
Labels: Show the level, methods by timeframe (e.g., 15m (3 SW), 30m (1 VWAP)), and (if applicable) Fibonacci ratios.
Dashboard Table: Columns include:
Level: Price of the zone
Methods (by TF): Which S/R methods and how many, per timeframe (see abbreviation key below)
Type: Support, Resistance, or Mixed
Confl.: Confluence score (higher = more significant)
React.: Number of recent price reactions
Dist %: Distance from current price (in %)
Abbreviations Used
SW = Swing High/Low (recent price pivots where reversals occurred)
Fib = Fibonacci Level (key retracement levels such as 0.236, 0.382, 0.5, 0.618, 0.786)
VWAP = Volume Weighted Average Price (price level weighted by volume)
POC = Point of Control (price level with the highest traded volume)
Bull OB = Bullish Order Block (institutional support zone from bullish price action)
Bear OB = Bearish Order Block (institutional resistance zone from bearish price action)
Pivot = Pivot Point (classic floor trader pivots: P, S1, R1)
These abbreviations appear in the dashboard and chart labels for clarity.
Example: How to Read the Dashboard and Labels (from the chart above)
Suppose you are trading BTCUSDT on a 15-minute chart. The dashboard at the top right shows several S/R zones, each with a breakdown of which timeframes and methods contributed to their detection:
Resistance zone at 119257.11:
The dashboard shows:
5m (1 SW), 15m (2 SW), 1h (3 SW)
This means the level 119257.11 was identified as a resistance zone by one swing high (SW) on the 5-minute timeframe, two swing highs on the 15-minute timeframe, and three swing highs on the 1-hour timeframe. The confluence score is 6 (total number of method/timeframe hits), and there has been 1 recent price reaction at this level. This suggests 119257.11 is a strong resistance zone, confirmed by multiple swing highs across all selected timeframes.
Mixed zone at 118767.97:
The dashboard shows:
5m (2 SW), 15m (2 SW)
This means the level 118767.97 was identified by two swing points on both the 5-minute and 15-minute timeframes. The confluence score is 4, and there have been 19 recent price reactions at this level, indicating it is a highly reactive zone.
Support zone at 117411.35:
The dashboard shows:
5m (2 SW), 1h (2 SW)
This means the level 117411.35 was identified as a support zone by two swing lows on the 5-minute timeframe and two swing lows on the 1-hour timeframe. The confluence score is 4, and there have been 2 recent price reactions at this level.
Mixed zone at 118291.45:
The dashboard shows:
15m (1 SW, 1 VWAP), 5m (1 VWAP), 1h (1 VWAP)
This means the level 118291.45 was identified by a swing and VWAP on the 15-minute timeframe, and by VWAP on both the 5-minute and 1-hour timeframes. The confluence score is 4, and there have been 12 recent price reactions at this level.
Support zone at 117103.10:
The dashboard shows:
15m (1 SW), 1h (1 SW)
This means the level 117103.10 was identified by a single swing low on both the 15-minute and 1-hour timeframes. The confluence score is 2, and there have been no recent price reactions at this level.
Resistance zone at 117899.33:
The dashboard shows:
5m (1 SW)
This means the level 117899.33 was identified by a single swing high on the 5-minute timeframe. The confluence score is 1, and there have been no recent price reactions at this level.
How to use this:
Zones with higher confluence (more methods and timeframes in agreement) and more recent reactions are generally more significant. For example, the resistance at 119257.11 is much stronger than the resistance at 117899.33, and the mixed zone at 118767.97 has shown the most recent price reactions, making it a key area to watch for potential reversals or breakouts.
Tip:
“SW” stands for Swing High/Low, and “VWAP” stands for Volume Weighted Average Price.
The format 15m (2 SW) means two swing points were detected on the 15-minute timeframe.
Best Practices & Recommendations
Use with Other Tools: This indicator is most powerful when combined with your own price action analysis and risk management.
Adjust Settings: Experiment with timeframes, clustering, and methods to suit your trading style and the asset’s volatility.
Watch for High Confluence: Zones with higher confluence and more reactions are generally more significant.
Limitations
No Future Prediction: The indicator does not predict future price movement; it highlights areas where price is statistically more likely to react.
Not a Standalone System: Should be used as part of a broader trading plan.
Historical Data: Reaction counts are based on historical price action and may not always repeat.
Disclaimer
This indicator is a technical analysis tool and does not constitute financial advice or a recommendation to buy or sell any asset. Trading involves risk, and past performance is not indicative of future results. Always use proper risk management and consult a financial advisor if needed.
Analisis Trend
[CRTT] SonicR & Wyckoff phases detectionA trend detection based on Wyckoff method to identify phases as trend of the market and using SonicR system to find entries.
Based on Wyckoff theory, we have around 5 phases: A, B, C, D, E...and the colors of SonicR Dragon bands (EMA34) are used to detect the phases. Red and Blue are 2 colors for downtrend / Green and Purple are uptrend.
With the Red and Green colors, we are in phase |B| or |D|.
With the Purple and Blue colors, we are in phase |D| or |E|.
After trend detection, we will use SonicR system to get the entries.
Open Short positions when price retest Dragon band (EMA34) then go down (confirmation).
Open Long posotions when price retest Dragon band (EMA34) then go up (confirmation).
Unified Signal EngineThis Pine Script titled "Unified Signal Engine" is a comprehensive multi-indicator trading tool designed to generate buy and sell signals based on the combined logic of five different technical indicators:
🔍 Core Components
PMO (Price Momentum Oscillator)
Uses double-smoothed rate of change to detect momentum shifts.
Buy signal: when PMO crosses above its signal line.
Average Force
Measures the strength of price movement within a range.
Buy signal: when the force is positive.
Dynamic Sentiment RSI
A sentiment-weighted RSI with smoothing and step rounding.
Buy signal: when sentiment RSI is above zero.
Adaptive Resonance Oscillator
Uses Hilbert Transform and adaptive RSI logic.
Buy signal: when RSI crossover occurs and RSI is above 50 (added filter for stronger confirmation).
Turbo Oscillator
Combines RSI, MFI, and Stochastic indicators with divergence detection and take-profit logic.
Buy signal: when oscillator conditions and reversal patterns align.
📈 Signal Logic
Buy Signal (long) is triggered when all selected indicators (based on user input toggles) align positively.
Sell Signal (short) is triggered when all selected indicators align negatively.
🔔 Alerts and Visuals
Plots triangle shapes below/above bars for buy/sell signals.
Alerts are configured for buy, sell, and combined conditions.
🧠 Customisation
Users can toggle each indicator on/off.
Includes smoothing, divergence detection, and visual styling options.
This script is ideal for traders looking to unify multiple momentum and sentiment indicators into a single decision engine, offering flexibility and layered confirmation for entries and exits.
Bronx Key LevelsThis indicator plots crucial high and low price levels from various trading sessions (Asia, London, New York) and key historical periods (Previous Day, Week, and Month) directly onto your chart.
It is designed for traders who use key liquidity levels for their analysis. The script features real-time tracking of highs and lows as they form within active sessions and can display historical levels for a configurable number of past days.
Users have extensive control over the visual presentation, including the ability to set a global style for all lines or customize each level's color, width, and line style individually. For a cleaner chart, the script includes a feature to automatically merge labels that overlap at the same price level. Additionally, it provides optional session boxes to visually highlight the duration of each trading session.
The script is also equipped with a comprehensive alert system that can notify you whenever the price touches one of the enabled key levels.
Impulse Alert - Demand (Buy) [Fixed]🔵 Impulse Alert – Demand (Buy)
This indicator is designed to detect high-probability Demand Zones based on impulsive bullish price action, helping traders get alerted only when it matters most.
🧠 Core Logic:
Scans the chart for 2 consecutive bullish impulsive candles with significant range (body size)
Also captures single large bullish impulse candles that often mark institutional buying
Marks the origin of the move as a potential Demand Zone
Sends alerts when such bullish setups form, allowing you to monitor charts passively
⚙️ Features:
✅ Alerts on impulsive move formations
✅ Detects both 2-candle and single-candle impulses
✅ Custom zone detection logic based on pip size and momentum
✅ Cleaner & smarter: removes distractions and avoids false signals
📌 Best Used For:
Smart Money / Supply & Demand traders
Identifying potential institutional buy zones
Executing trades with HTF confluence
Traders who want to get alerted without screen-watching
🔁 Suggested Strategy:
Set HTF directional bias (H1, H4, D1)
Use this indicator on LTF (1M–15M) for impulsive bullish entries
Wait for price to return to the marked zone for low-risk entries
💡 Pro Tip: Combine with your Supply Zone (Sell) indicator to track both sides of market structure and increase R:R
👤 Created by: Rohit Jadhav | YT/Insta/X - @GrowthByTrading
📬 Want updates, enhancements, or personal versions? Leave feedback or reach out through profile!
Impulse Alert - Supply (Sell) [Fixed]🟥 Supply Zone (Sell) – Institutional Order Block Detector
This custom indicator automatically detects valid Supply Zones (Sell Zones) based on Smart Money Concepts and institutional trading behavior.
🔍 How It Works:
Identifies strong bearish impulsive moves after price forms a potential Order Block
Valid supply zones are plotted after:
A valid rally–base–drop or drop–base–drop structure
A shift in structure or clear imbalance is detected
The zone is created from the last bullish candle before a strong bearish engulfing move
Zones remain on chart until price revisits and reacts
📊 Use Case:
Ideal for traders using Smart Money Concepts (SMC), Supply & Demand, or ICT-inspired strategies
Perfect for scalping, day trading, or swing setups
Designed for confluence with HTF bias and LTF execution
⚙️ Features:
Supply Zone auto-plotting
Customizable zone color and opacity
Alerts when price returns to the zone (retest entry opportunity)
🧠 Tip for Best Use:
Use in confluence with:
HTF Supply zones (manual or other indicator)
Market Structure breaks
Fair Value Gaps or Imbalance zones
Strong impulsive moves from HTF to LTF
🔁 Future Additions (Coming Soon):
Demand Zone detection
Zone strength rating system
Refined zone filters (volume, candle size, etc.)
Alerts for mitigation or invalidation
📌 Created by: Rohit Jadhav | Real-time market trader | YT/Insta - @GrowthByTrading
💬 Feedback? Drop a comment or connect via profile for updates and tutorials!
世界最强100倍杠杆ETF无敌完美交易系统 v3.0🔑 Core Features
Multi-Layer Technical Framework
EMA Cloud (8 Layers): ema_1 (Lightning) to ema_8 (Ultra-Long) for trend alignment.
Ichimoku Cloud: Tenkan/Kijun/Senkou spans with cloud-state detection (bull/bear/neutral).
Oscillators: RSI, Stochastic, Williams %R, CCI with adaptive thresholds.
Volatility Channels: Dual Bollinger Bands + Keltner Channel for "squeeze" detection.
Volume Analysis: VWAP, volume spikes/climax, and price-volume divergence.
AI-Powered Enhancements
Pattern Recognition: Detects 15+ candlestick patterns (e.g., Engulfing, Morning Star, Three Soldiers).
Adaptive Parameters: Adjusts RSI/MACD thresholds based on volatility.
Pattern Strength Scoring: Quantifies signal reliability (0–10 scale).
Risk Management System
Dynamic Position Sizing: Adjusts trade size using:
Win/loss streaks
Pattern strength
Volatility regimes
Smart Stops: Trailing stops with ATR-based distance + volatility scaling.
Drawdown/Heat Protection: Reduces exposure after consecutive losses.
Market Structure Tools
Support/Resistance: Dynamic pivots (5/10/20 periods).
Fibonacci Retracements: Auto-plots key levels (23.6%, 38.2%, 61.8%).
Trend Strength Meter: Scores trends from -1.0 (strong bear) to +1.0 (strong bull).
Time & Session Filters
Avoids news hours + sessions (Asian/European/US/Overlap).
📊 Visualization & Alerts
Plotting:
EMA cloud ribbons
Ichimoku cloud
Bollinger/Keltner bands
Fibonacci levels
Entry/exit markers (e.g., 🚀MEGA Long/💥MEGA Short)
Dashboard: Real-time table showing:
RSI/MACD/Volume grades
Position status (PnL %)
Risk score (A-F rating)
System total score (0-100%)
Alerts: Triggers for:
Mega entries/exits
Squeeze releases
Breakouts
"Perfect score" (90%+ conditions met)
⚙️ Key Innovations
20-Condition Confirmation: Requires confluence of EMA alignment, volatility expansion, volume spikes, pattern strength, and trend momentum for entries.
Self-Adjusting Logic: Parameters adapt to market regimes (e.g., high volatility tightens stops).
Institutional-Grade Risk Controls: Max risk/trade, min 5:1 risk-reward ratio, and max concurrent trades.
❗️ Critical Notes
Leverage Warning: Explicitly flagged for 100x leverage ETFs (high-risk).
Overkill?: Combines every major technical approach—may cause clutter. Best used on high-timeframe charts (1H+).
Pine Script Limits: max_boxes_count=500 avoids overcrowding; complex logic may slow performance.
💡 Ideal For: Experienced traders seeking a "all-in-one" system for volatile assets. Not recommended for beginners.
Let me know if you need help optimizing/modifying specific components! 🚀
NWE-cRSI-StochRSI增强反转信号 [2分钟专用]The NWE-cRSI-StochRSI Reversal System is a sophisticated trading indicator designed exclusively for 2-minute charts. It combines three powerful technical components—Nadaraya-Watson Envelope (NWE), Cyclical RSI (cRSI), and Stochastic RSI (StochRSI)—to identify high-probability reversal opportunities in fast-moving markets. This triple-confirmation system filters noise while capturing early reversal signals with precision.
NEO CLOUD + Kinetic Compass CombinedThis is a comprehensive technical analysis indicator combining three powerful trading systems:
📊 NEO CLOUD System:
- Trend identification system based on dual EMA range filters
- Provides dynamic cloud fill for intuitive trend direction and strength visualization
- Supports Fast/Normal/Slow trend length settings
- Fully customizable colors including cloud fill and signal arrows
🧭 KINETIC COMPASS System:
- Modified trend indicator based on EMA100 for high-precision trend tracking
- Dual-layer exit signal system to optimize exit timing
- Integrated EMA50/100/200 multi-timeframe confirmation
- Gradient fill effects for clear support/resistance visualization
- Independent control over buy/sell signals and exit signals display
📈 DUAL SUPERTREND System:
- Two independent Supertrend indicators with separate parameters
- Selective display control - show one, both, or neither
- Dynamic support/resistance lines that adapt to market volatility
- Adjustable transparency fill areas
🚀 Combined Features:
- MEGA Alerts: Super alerts triggered when multiple systems align
- Independent Switches: Each system can be enabled/disabled separately
- Color Customization: Full personalization of all visual elements
- Candle Coloring: Support for NEO or Kinetic candle coloring schemes
- Signal Filtering: Choose to show or hide various types of trading signals
💡 Usage Recommendations:
- Beginners: Start with single system, then combine after familiarization
- Trend Trading: Focus on NEO CLOUD direction and Kinetic trend lines
- Scalping: Use exit signals and Supertrend for precise entry/exit points
- Signal Confirmation: Wait for multiple system alignment for higher success rate
Average Daily Range in TicksPurpose: The ADR Ticks Indicator calculates and displays the average daily price range of a financial instrument, expressed in ticks, over a user-specified number of days. It provides traders with a measure of average daily volatility, which can be used for position sizing, setting stop-loss/take-profit levels, or assessing market activity.
Calculation: Computes the average daily range by taking the difference between the daily high and low prices, averaging this range over a customizable number of days, and converting the result into ticks (using the instrument's minimum tick size).
Customization: Includes a user input to adjust the number of days for the average calculation and a toggle to show/hide the ADR Ticks value in the table.
Risk Management: Helps traders estimate typical daily price movement to set appropriate stop-loss or take-profit levels.
Market Analysis: Offers insight into average daily volatility, useful for day traders or swing traders assessing whether a market is trending or ranging.
Technical Notes:
The indicator uses barstate.islast to update the table only on the last bar, reducing computational load and preventing overlap.
The script handles different chart timeframes by pulling daily data via request.security, making it robust across various instruments and timeframes.
52/26/13/4 High WeekThis is a tool to identify the 52-week high of a candlestick for use in breakout strategies. It can be used in conjunction with Pocket Pivot and EMA or Volume.
It is ideal for studying price behavior and trend following.
zavaUnni- Trendlines Pro & fibonacci Zones zavaUnni- Trendlines Pro & fibonacci Zones is a momentum-based trading tool that automatically detects pivot points to visualize real-time trendlines, zigzag structures, and Fibonacci retracement zones.
Key Features
1. Divergence-Based Pivot Detection
Utilizes popular momentum indicators like RSI, CCI, MACD CCI, OBV, etc.
Automatically detects significant highs/lows based on divergence signals
These pivot points are used to construct trendlines and calculate retracement zones
2. Automatic Fibonacci Retracement Zones
Draws Fibonacci levels such as 0.382, 0.618, and 0.786 from detected pivot highs/lows
Supports both initial fixed levels and dynamic updated zones based on live price action
Recalculates zones automatically when specific price conditions are met
3. Supertrend-Based Zigzag and Trendlines
detect real-time trend direction changes
Plots zigzag lines between significant pivot highs/lows
Automatically generates trendlines only when slope conditions are met (e.g., below -3° or above +1°)
Invalidates and resets trendlines if broken or the slope becomes too flat/steep
Settings Overview
Index
Selects the indicator (RSI, CCI, MACDcci, OBV, etc.) used for pivot detection
zigzag Length
Supertrend sensitivity period for direction changes
Fibonacci_bg
Toggle background color fill for Fibonacci zones
Fibonacci_label
Show labels for each Fibonacci level (23.6%, 38.2%, etc.)
Bull Trend Line Color
Color of upward trendlines
Bear Trend Line Color
Color of downward trendlines
zigzag_color
Color of the zigzag lines
Trend Range Detector (Zeiierman)█ Overview
Trend Range Detector (Zeiierman) is a market structure tool that identifies and tracks periods of price compression by forming adaptive range boxes based on volatility and price movement. When prices remain stable within a defined band, the script dynamically draws a range box; when prices break out of that structure, the box highlights the breakout in real-time.
By combining a volatility-based envelope with a custom weighted centerline, this tool filters out noise and isolates truly stable zones — providing a clean framework for traders who focus on accumulation, distribution, breakout anticipation, and reversion opportunities.
Whether you're range trading, spotting trend consolidations, or looking for volatility contractions before major moves, the Trend Range Detector gives you a mathematically adaptive, visually intuitive structure that maps the heartbeat of the market.
█ How It Works
⚪ Range Formation Engine
The core of this indicator revolves around two conditions:
Distance Filter: The maximum distance between all recent closes and a dynamic centerline must remain within a volatility envelope.
Volatility Envelope: Based on an ATR(2000) multiplied by a user-defined factor to account for broader market volatility trends.
If both conditions are satisfied over the most recent length bars, a range box is drawn to visually anchor the zone.
⚪ Dynamic Breakout Coloring
When price breaks out of the top or bottom of the active range box, the box color shifts in real-time:
Blue Boxes represent areas where price has remained within a defined volatility envelope over a sustained number of bars. These zones reflect stable, low-volatility periods, often associated with consolidation, equilibrium, or market indecision.
Green Boxes for bullish breakouts.
Red Boxes for bearish breakdowns.
This allows traders to visually spot transitions from consolidation to expansion phases without relying on lagging signals.
█ Why Use a Weighted Close Instead of SMA?
A standard Simple Moving Average (SMA) treats all past closes equally, which works well in theory, but not in dynamic, fast-shifting markets. In this script, we replace the traditional SMA with a speed-weighted average that reflects how aggressively the market has moved bar-to-bar.
⚪ Here's why it matters:
Bars with higher momentum (larger price differences between closes) are given more weight.
Slow, sideways candles (typical in noise or low volume) contribute less to the calculated centerline.
This method creates a more accurate snapshot of market behavior, especially during volatile phases. As a result, the indicator adapts to market conditions more effectively, helping traders identify real consolidation zones, not just average lines distorted by flat bars or noise.
█ How to Use
⚪ Range Detection
Boxes form only when price remains consistently close to the speed-weighted mean.
Helps identify sideways zones, consolidations, and low-volatility structures where price is “charging up.”
⚪ Breakout Confirmation
Once price exits the top or bottom boundary, the box immediately highlights the direction of the break.
Use this signal in conjunction with your own momentum, volume, or trend filters for higher-confidence trades.
█ Settings
Minimum Range Length: Number of candles required for a valid range to form.
Range Width Multiplier: Adjusts the envelope around the weighted average using ATR(2000).
Highlight Box Breaks: Enables real-time coloring of breakouts and breakdowns for immediate visual feedback.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Multi-Timeframe SMTSummery
The Multi-Timeframe SMT indicator is designed to identify and visualize Higher Timeframe (HTF) data on a Lower Timeframe (LTF) chart, allowing traders to see the broader market context without changing their current chart's resolution. It accurately draws pivots and SMT divergences from higher timeframes on the corresponding candles of your current lower timeframe chart.
Its core features include:
Multi-Timeframe Analysis: Configure and monitor pivots on up to four independent timeframes, from intraday to monthly.
Customizable Pivot Detection: Define the strength of pivots by adjusting the number of bars to the left and right.
SMT Divergence: Automatically identifies bullish and bearish SMT divergences by comparing the price action of the main chart symbol with a chosen correlated asset.
Early SMT Detection: A unique feature that monitors a lower "detection timeframe" to provide early warnings of potential SMT setups before they're confirmed on the main timeframe. Note that this early detection is only shown on timeframes equal to or lower than the "Detection timeframe" you have set.
Visual Cues & Alerts: Clear on-chart labels, lines, and fully customizable alerts notify you of confirmed pivots and SMT divergences, ensuring you don't miss key opportunities.
Important Nuance Regarding Pivot Label Display
Due to a self-imposed limit within this script's drawing management logic, the indicator might quickly reach its drawing capacity if you enable pivot crosses for multiple timeframes simultaneously. When this internal drawing limit is exceeded, the script is designed to automatically remove the oldest drawings to make space for new ones.
Therefore, to ensure optimal performance and visibility of the most recent and relevant pivots, it's highly recommended to only enable the "Show Pivot Crosses" option for one timeframe at a time. If you wish to view pivots for a different timeframe, simply disable the pivot crosses for the currently active timeframe and then enable them for your desired one. This approach prevents the rapid cycling and disappearance of pivot labels, providing a clearer and more stable visual experience.
In-Depth Explanation of the Logic
This script is built on two primary concepts: pivot points and Smart Money Technique (SMT) divergence. It systematically collects historical data on multiple timeframes, identifies pivots, and then compares them between two assets to find divergences.
Pivot Point Identification
A pivot is a turning point in the market. A pivot high is a candle that has a higher high than the candles to its immediate left and right. Conversely, a pivot low is a candle with a lower low than its neighbors.
How it Works in the Script:
The script tracks the highest high and lowest low for each period of the selected timeframe (e.g., for each 4-hour candle). When a new high-timeframe candle closes, it stores that high/low value and its bar index in an array. The checkForPivot() function then checks if a recently stored high or low qualifies as a pivot.
Key Inputs:
Left Strength (leftBars1): The number of candles to the left that must have a lower high (for a pivot high) or higher low (for a pivot low).
Right Strength (rightBars1): The number of candles to the right that must meet the same criteria.
For example, with Left Strength and Right Strength both set to 3, a pivot high is only confirmed when its high is greater than the highs of the 3 previous high-timeframe candles and the 3 subsequent high-timeframe candles. Increasing these values will identify more significant, longer-term pivots.
Smart Money Technique (SMT) Divergence
SMT Divergence is a concept popularized by The Inner Circle Trader (ICT). It occurs when two closely correlated assets fail to move in sync. For instance, if Asset A makes a higher high but Asset B fails to do so and instead makes a lower high, this creates a bearish SMT divergence. It suggests that the "smart money" may not be supporting the move in Asset A, signaling a potential reversal.
Bearish SMT: Main asset makes a higher high, while the correlated asset makes a lower high. This is a potential sell signal.
Bullish SMT: Main asset makes a lower low, while the correlated asset makes a higher low. This is a potential buy signal.
How it Works in the Script:
Data Request: For each timeframe, the script uses the request.security() function to fetch the high and low data for both the main chart symbol (syminfo.tickerid) and the chosen Comparison Asset.
Pivot Comparison: When a new pivot is confirmed on the main asset, the script checks if a corresponding pivot also formed on the comparison asset at the same time.
Divergence Check: It then compares the direction of the pivots. For a bearish SMT, it checks if the main asset's new pivot high is higher than its previous pivot high, while the comparison asset's new pivot high is lower than its previous one. The logic is reversed for bullish SMT.
Visualization: If a divergence is found, the script draws a red (bearish) or green (bullish) line connecting the two pivots on your chart and places an "SMT" label.
Early SMT Detection
This is a proactive feature designed to give you a heads-up. Waiting for a 4-hour or daily pivot to form can take a long time. The early detection system looks for SMT divergences on a much smaller, user-defined Detection timeframe (e.g., 15-minute).
How it Works in the Script:
Awaiting Setup: After a primary pivot (Pivot A) is formed on the main timeframe (e.g., a Daily pivot high), the script begins monitoring.
Intraday Monitoring: It then watches the Detection timeframe (e.g., 15-minute) for smaller intraday pivots.
Potential Divergence: It looks for an intraday pivot that forms a divergence against the primary Pivot A.
Watchline & Alert: When this "potential" divergence occurs, the script draws a dashed white line and triggers a "Potential SMT" alert. This isn't a confirmed SMT on the main timeframe yet, but it's a powerful early warning that one may be forming.
Drawing & Object Management
To keep the chart clean and prevent performance issues, the script manages its drawings (lines and labels) efficiently. It stores them in arrays and uses a drawing limit to automatically delete the oldest drawings as new ones are created, ensuring your TradingView remains responsive.
How to Use the Indicator
Configuration
Enable Timeframes: Use the checkboxes (Enable Timeframe 1, Enable Timeframe 2, etc.) to activate the timeframes you want to monitor. It's often best to start with one or two to keep the chart clean.
Select Timeframes: Choose the higher timeframes you want to analyze (e.g., 240 for 4-hour, D for Daily, W for Weekly).
Set Pivot Strength: The default of 3 for Left/Right strength is a good starting point. Increase it to find more significant market structure points or decrease it for more frequent, shorter-term pivots.
Configure SMT:
Check Enable SMT for the timeframes where you want to detect divergence.
Enter a Comparison Asset . This is crucial. Ensure the assets are correlated.
To use the early warning system, check Enable early SMT detection and select an appropriate Detection timeframe (e.g., 15 or 60 minutes for a Daily analysis).
Multi-Timeframe TrendTrend Analyze for All Timeframes and All Pairs – Indicator Description
This indicator is built to give traders a clear and comprehensive understanding of market direction across all timeframes and currency pairs. It starts with a full trend analysis that automatically scans multiple timeframes—from lower timeframes like M1 and M5 to higher ones such as H1, H4, D1, and beyond—providing a complete overview of whether the market is currently in an uptrend, downtrend, or sideways phase.
Unlike basic trend tools, this indicator intelligently detects the dominant trend using a combination of technical structures such as swing highs and lows and support & resistance zones (SNR). It gives traders a quick but in-depth snapshot of market strength and direction, helping to reduce confusion and increase confidence in decision-making.
One of the key features is its all-pairs compatibility. Whether you're trading major pairs, minor pairs, or exotic currencies, the indicator can analyze them all. There's no need to open charts one by one — this tool helps you save time by providing a consolidated trend view in a compact dashboard.
Key Features:
Multi-Timeframe Trend Scanner – Instantly analyze trends across different timeframes in one glance.
Dashboard Display – A compact panel on your chart showing trend status for each selected timeframe.
All Pair Compatibility – Works seamlessly with all forex pairs, including majors, minors, and exotics.
Adaptable to All Trading Styles – Suitable for scalping, intraday, swing, and even long-term trading.
This indicator is perfect for traders who use multi-timeframe analysis (MTFA) and want to spot high-probability entries based on confirmed trends. Whether you're a beginner looking for clarity or an experienced trader wanting to streamline your analysis, this tool is designed to help you stay one step ahead in the market
RSI Ichimoku-like (Subchart) tohungmcThe RSI Ichimoku-like (Subchart) indicator offers a novel approach to technical analysis by uniquely combining the Relative Strength Index (RSI) with the principles of the Ichimoku Kinko Hyo system. Unlike traditional Ichimoku, which is applied to price data, this indicator innovatively uses RSI values to construct Ichimoku components (Conversion Line, Base Line, Leading Span 1, Leading Span 2, and Cloud). Displayed on a separate subchart, it provides traders with a powerful tool to analyze momentum and trend dynamics in a single, intuitive view.
Unique Features
Innovative RSI-based Ichimoku System: By applying Ichimoku calculations to RSI instead of price, this indicator creates a momentum-driven trend analysis framework, offering a fresh perspective on market dynamics.
Cloud Visualization: The cloud (formed between Leading Span 1 and 2) highlights bullish (green) or bearish (red) momentum zones, helping traders identify trend strength and potential reversals.
Customizable Parameters: Adjust RSI and Ichimoku periods to suit various trading styles and timeframes.
Subchart Design: Keeps your price chart clean while providing a dedicated space for momentum and trend analysis.
Components
RSI Line: A 14-period RSI (customizable) plotted in blue, with overbought (70) and oversold (30) levels marked for quick reference.
Conversion Line: Average of the highest and lowest RSI over 9 periods, acting as a short-term momentum indicator.
Base Line: Average of the highest and lowest RSI over 26 periods, serving as a medium-term trend guide.
Leading Span 1: Average of Conversion and Base Lines, shifted forward 26 periods.
Leading Span 2: Average of the highest and lowest RSI over 52 periods, shifted forward 26 periods.
Cloud: The area between Leading Span 1 and 2, colored green (bullish) when Span 1 is above Span 2, and red (bearish) when Span 2 is above Span 1.
How to Use
Momentum Analysis:
Monitor the RSI line for overbought (>70) or oversold (<30) conditions to spot potential reversals.
A RSI crossing above 30 or below 70 can indicate shifts in momentum.
Trend Identification:
When the RSI is above the cloud and the cloud is green, it suggests bullish momentum.
When the RSI is below the cloud and the cloud is red, it indicates bearish momentum.
Crossovers:
RSI crossing above the Conversion or Base Line may signal bullish opportunities, especially if aligned with a green cloud.
RSI crossing below these lines may suggest bearish opportunities, particularly with a red cloud.
Cloud Breakouts:
A RSI breaking through the cloud can signal a potential trend change, with the cloud’s color indicating the direction.
Customization:
Adjust the RSI Period (default: 14), Conversion Line Period (default: 9), Base Line Period (default: 26), and Leading Span 2 Period (default: 52) to match your trading timeframe or strategy.
Settings
RSI Period: Default 14. Increase for smoother signals or decrease for higher sensitivity.
Conversion Line Period: Default 9. Adjust for short-term momentum sensitivity.
Base Line Period: Default 26. Modify for medium-term trend analysis.
Leading Span 2 Period: Default 52. Tune for long-term trend context.
Why Closed Source?
The unique methodology of applying Ichimoku calculations to RSI, combined with optimized subchart visualization, represents a proprietary approach to momentum and trend analysis. Protecting the source code ensures the integrity of this innovative concept while allowing traders worldwide to benefit from its functionality.
Notes
This indicator does not generate explicit Buy/Sell signals, giving traders flexibility to interpret signals based on their strategies.
Best used in conjunction with other technical tools (e.g., support/resistance, candlestick patterns) for confirmation.
Suitable for all timeframes, from intraday to long-term trading.
% / ATR Buy, Target, Stop + Overlay & P/L% / ATR Buy, Target, Stop + Overlay & P/L
This tool combines volatility‑based and fixed‑percentage trade planning into a single, on‑chart overlay—with built‑in profit‑and‑loss estimates. Toggle between ATR or percentage modes, plot your Buy, Target and Stop levels, and see the dollar gain or loss for a specified position size—all in one interactive table and chart display.
NOTE: To activate plotted lines, price labels, P/L rows and table values, enter a Buy Price greater than zero.
What It Does
Mode Toggle: Choose between “ATR” (volatility‑based) or “%” (fixed‑percentage) calculations.
Buy Price Input: Manually enter your entry price.
ATR Mode:
Target = Buy + (ATR × Target Multiplier)
Stop = Buy − (ATR × Stop Multiplier)
Percentage Mode:
Target = Buy × (1 + Target % / 100)
Stop = Buy × (1 – Stop % / 100)
P/L Estimates: Specify a dollar amount to “invest” at your Buy price, and the script calculates:
Gain ($): Profit if Target is hit
Loss ($): Cost if Stop is hit
Visual Overlay: Draws horizontal lines for Buy, Target and Stop, with optional price labels on the chart scale.
Interactive Table: Displays Buy, Target, Stop, ATR/timeframe info (in ATR mode), percentages (in % mode), and P/L rows.
Customization Options
Line Settings:
Choose color, style (solid/dashed/dotted), and width for Buy, Target, Stop lines.
Extend lines rightward only or in both directions.
Table Settings:
Position the table (top/bottom × left/right).
Toggle individual rows: Buy Price; Target (multiplier or %); Stop (multiplier or %); Target ATR %; Stop ATR %; ATR Time Frame; ATR Value; Gain ($); Loss ($).
Customize text colors for each row and background transparency.
General Inputs:
ATR length and optional ATR timeframe override (e.g. use daily ATR on an intraday chart).
Target/Stop multipliers or percentages.
Dollar Amount for P/L calculations.
How to Use It for Trading
Plan Your Entry: Enter your intended Buy Price and position size (dollar amount).
Select Mode: Toggle between ATR or % mode depending on whether you prefer volatility‑based or fixed offsets.
Assess R:R and P/L: Instantly see your Target, Stop levels, and potential profit or loss in dollars.
Visual Reference: Lines and price labels update in real time as you tweak inputs—ideal for live trading, backtesting or trade journaling.
Ideal For
Traders who want both volatility‑based and percentage‑based exit options in one tool
Those who need on‑chart P/L estimates based on position size
Swing and intraday traders focused on objective, rule‑based trade management
Anyone who uses ATR for adaptive stops/targets or fixed percentages for simpler exits
Momentum BandsMomentum Bands indicator-->technical tool that measures the rate of price change and surrounds this momentum with adaptive bands to highlight overbought and oversold zones. Unlike Bollinger Bands, which track price, these bands track momentum itself, offering a unique view of market strength and exhaustion points. At its core, it features a blue momentum line that calculates the rate of change over a set period, an upper red band marking dynamic resistance created by adding standard deviations to the momentum average, a lower green band marking dynamic support by subtracting standard deviations, and a gray middle line representing the average of momentum as a central anchor. When the momentum line touches or moves beyond the upper red band, it often signals that the market may be overbought and a pullback or reversal could follow; traders might lock in profits or watch for short setups. Conversely, when it drops below the lower green band, it can suggest an oversold market primed for a bounce, prompting traders to look for buying opportunities. If momentum remains between the bands, it typically indicates balanced conditions where waiting for stronger signals at the extremes is wise. The indicator can be used in contrarian strategies—buying near the lower band and selling near the upper—or in trend-following setups by waiting for momentum to return toward the centerline before entering trades. For stronger confirmation, traders often combine it with volume spikes, support and resistance analysis, or other trend tools, and it’s useful to check multiple timeframes to spot consistent patterns. Recommended settings vary: short-term traders might use a 7–10 period momentum with 14-period bands; medium-term traders might keep the default 14-period momentum and 20-period bands; while long-term analysis might use 21-period momentum and 50-period bands. Visually, background colors help spot extremes: red for strong overbought, green for strong oversold, and no color for normal markets, alongside reference lines at 70, 30, and 0 to guide traditional overbought, oversold, and neutral zones. Typical bullish signals include momentum rebounding from the lower band, crossing back above the middle after being oversold, or showing divergence where price makes new lows but momentum doesn’t. Bearish signals might appear when momentum hits the upper band and weakens, drops below the middle after being overbought, or price makes new highs while momentum fails to follow. The indicator tends to work best in mean-reverting or sideways markets rather than strong trends, where overbought and oversold conditions tend to repeat.
Binance Spot vs Perpetual Price index by BIGTAKER📌 Overview
This indicator calculates the premium (%) between Binance Perpetual Futures and Spot prices in real time and visualizes it as a column-style chart.
It automatically detects numeric prefixes in futures symbols—such as `1000PEPE`, `1MFLUX`, etc.—and applies the appropriate scaling factor to ensure accurate 1:1 price comparisons with corresponding spot pairs, without requiring manual configuration.
Rather than simply showing raw price differences, this tool highlights potential imbalances in supply and demand, helping to identify phases of market overheating or panic selling.
🔧 Component Breakdown
1. ✅ Auto Symbol Mapping & Prefix Scaling
Automatically identifies and processes common numeric prefixes (`1000`, `1M`, etc.) used in Binance perpetual futures symbols.
Example:
`1000PEPEUSDT.P` → Spot symbol: `PEPEUSDT`, Scaling factor: `1000`
This ensures precise alignment between futures and spot prices by adjusting the scale appropriately.
2. 📈 Premium Calculation Logic
Formula:
(Scaled Futures Price − Spot Price) / Spot Price × 100
Interpretation:
* Positive (+) → Futures are priced higher than spot: indicates possible long-side euphoria
* Negative (−) → Futures are priced lower than spot: indicates possible panic selling or oversold conditions
* Zero → Equilibrium between futures and spot pricing
3. 🎨 Visualization Style
* Rendered as column plots (bar chart) on each candle
* Color-coded based on premium polarity:
* 🟩 Positive premium: Light green (`#52ff7d`)
* 🟥 Negative premium: Light red (`#f56464`)
* ⬜ Neutral / NA: Gray
* A dashed horizontal line at 0% is included to indicate the neutral zone for quick visual reference
💡 Strategic Use Cases
| Market Behavior | Strategy / Interpretation |
| ----------------------------------------- | ------------------------------------------------------------------------ |
| 📈 Premium surging | Strong futures demand → Overheated longs (short setup) |
| 📉 Premium dropping | Aggressive selling in futures → Oversold signal (long setup) |
| 🔄 Near-zero premium | Balanced market → Wait and observe or reassess |
| 🧩 Combined with funding rate or OI delta | Enables multi-factor confirmation for short-term or mid-term signals |
🧠 Technical Advantages
* Fully automated scaling for prefixes like `1000`, `1M`, etc.
* Built-in error handling for inactive or missing symbols (`ignore_invalid_symbol=true`)
* Broad compatibility with Binance USDT Spot & Perpetual Futures markets
🔍 Target Use Cases & Examples
Compatible symbols:
`1000PEPEUSDT.P`, `DOGEUSDT.P`, `1MFLUXUSDT.P`, `ETHUSDT.P`, and most other Binance USDT-margined perpetual futures
Works seamlessly with:
* Binance Spot Market
* Binance Perpetual Futures Market
[Top] Trend Lines with Strength DetectionThe Auto Trend Lines with Strength Detection indicator automatically detects and draws dynamic support and resistance lines based on pivot highs and lows. These trend lines adapt to market structure in real time, increasing in opacity as they accumulate additional touches. Numbers are also printed above each line indicating the number of times that line has been tested and held.
Unlike most trend line indicators, this one does not consider a brief wick to have broken the line. Nor does it break the line if the current candle is testing it. The candle must fully close on the oppose side of a trend line for this indicator to remove that line.
On the chart above you can see that the current candle is in the process of breaking the two resistance lines. If the candle closes above the lines, they will be broken and removed from the chart. If it's not able to close above the resistance lines, they will remain intact and accumulate another touch point.
Key features include:
Pivot-based detection: Lines are drawn between valid swing points while filtering out intermediate price violations.
Strength visualization: Each time price comes into proximity with a trend line, the “touch count” is incremented and both the line and its label darken accordingly.
Break handling: Lines are automatically removed once the body of a candle closes beyond them, reducing clutter from broken levels.
Customization options: Users can adjust pivot sensitivity, maximum lines to retain, line styles, widths, and colors independently for support and resistance.
Pivot History: You can decide how far back you want the script to look for valid trends.
⸻
Potential Uses:
Identifying strong support/resistance zones: As trend lines accumulate touches, they become visually stronger, helping traders spot high-confluence levels.
Breakout and breakdown filtering: Detects and removes invalidated trend lines only after a full candle body breach, reducing false breakouts caused by wicks.
Trend structure analysis: Helps visualize emerging or weakening trends by observing how support/resistance lines evolve and how price interacts with them.
Strategy development: Can be used as a component in breakout, mean-reversion, or range-based trading systems.
Order-Flow Market StructureOrder-Flow Market Structure by The_Forex_Steward
A precision tool for visualizing internal shifts, swing structure, BOS events, Fibonacci levels, and multi-timeframe alerts.
What It Does
The Order-Flow Market Structure indicator intelligently tracks and visualizes price structure using higher timeframe candles. It automatically detects:
• Internal bullish and bearish structure shifts
• Swing highs and lows (HH, HL, LH, LL)
• Break of Structure (BoS) confirmations
• Fibonacci retracement levels from recent swing moves
• Real-time alerts across LTF, MTF, and HTF modes
It’s a complete tool for traders who follow Smart Money Concepts, ICT, or institutional price action strategies.
How It Works
• You select a Higher Timeframe (HTF) to set the structural context
• Internal shifts are identified using HTF candle closes
• The indicator scans for swing highs/lows after each internal shift
• Breaks of previous swing points confirm BoS and plot horizontal lines
• Zigzag lines visually connect structural points (swings and BoS)
• Fibonacci levels are drawn between the latest swings
• Alerts can be configured for structure shifts, BoS events, and fib level breaks
How to Use It
Set your preferred HTF (e.g., 1H while trading on 5-minute)
Enable Fibonacci levels to visualize retracement zones
Watch for:
• Bullish internal shifts → HL to HH
• Bearish internal shifts → LH to LL
• BOS → Breakout confirmation
Enable alerts to catch structural events in real-time
Adjust the "Safe History Offset" if working with long lookbacks or volatile assets
Who It's For
• Traders using Smart Money, ICT, or market structure-based systems
• Scalpers, day traders, and swing traders
• Anyone needing precise structural insight across multiple timeframes
Features
• BoS detection with custom line styles and width
• HH, HL, LH, LL label plotting
• Optional Fibonacci retracement zones
• Custom alerts for swing shifts and fib level breaks
• LTF, MTF, and HTF alert modes
Stay aligned with structure, trade with precision, and get alerted to key shifts in real time.
RSI, CCI, ADX Panel (Custom TF for Each)RSI, CCI, and ADX Combined – Multi-Timeframe, Fully Customizable Panel Indicator for TradingView
Overview
This Pine Script indicator integrates the Relative Strength Index (RSI), Commodity Channel Index (CCI), and Average Directional Index (ADX) into a single, clean panel for effortless technical analysis. Each indicator operates independently, with customizable length, smoothing, and time frame for maximum flexibility. Traders can now monitor momentum, trend strength, and overbought/oversold conditions across different time frames—all in one place.
Key Features
Independent Controls: Set length, smoothing (ADX), and time frame individually for each indicator via the settings panel.
Multi-Timeframe Support: Each oscillator (RSI, CCI, ADX) can be calculated on its own time frame, enabling nuanced inter-timeframe analysis.
Customizable Visualization: Adjust line color and thickness for each indicator to match your chart style.
Clean, Non-Overlay Display: All three indicators are plotted in a dedicated panel beneath the price chart, reducing clutter.
Reference Levels: Includes standard reference lines for oversold/overbought (RSI, CCI) and trend threshold (ADX) for quick visual cues.
Usage Ideas
Swing Trading: Compare short- and long-term momentum using different time frames for RSI, CCI, and ADX.
Trend Confirmation: Use ADX to filter RSI and CCI signals—only trade overbought/oversold conditions during strong trends.
Divergence Hunting: Spot divergences between time frames for early reversal signals.
Scalping: Set RSI and CCI to lower time frames for entry, while monitoring higher timeframe ADX for trend context.
How to Install
Paste the script into the Pine Editor on TradingView.
Add to chart. Adjust settings as desired.
Save as a template for quick reuse on any chart—all your custom settings will be preserved.
Customization
Edit lengths and time frames in the indicator’s settings dialog.
Toggle reference lines on/off as needed.
Fine-tune line appearance (color, thickness) for clarity.
Note:
This indicator does not provide automated buy/sell signals. It is a customizable analytical tool for manual or semi-automated trading. Use in combination with other technical or fundamental analysis for best results.
Combine Momentum, Trend, and Volatility—Seamlessly and Visually—With One Indicator.
Liquidity Trap Zones [PhenLabs]📊 Liquidity Trap Zones
Version: PineScript™ v6
📌 Description
The goal of the Liquidity Trap Zones indicator is to try and help traders identify areas where market liquidity appears abundant but is actually thin or artificial, helping traders avoid potential fake outs and false breakouts. This advanced indicator analyzes the relationship between price wicks and volume to detect “mirage” zones where large price movements occur on low volume, indicating potential liquidity traps.
By highlighting these deceptive zones on your charts, the indicator helps traders recognize where institutional players might be creating artificial liquidity to trap retail traders. This enables more informed decision-making and better risk management when approaching key price levels.
🚀 Points of Innovation
Mirage Score Algorithm: Proprietary calculation that normalizes wick size relative to volume and average bar size
Dynamic Zone Creation: Automatically generates gradient-filled zones at trap locations with ATR-based sizing
Intelligent Zone Management: Maintains clean charts by limiting displayed zones and auto-updating existing ones
Scale-Invariant Design: Works across all assets and timeframes with intelligent normalization
Real-Time Detection: Identifies trap zones as they form, not after the fact
Volume-Adjusted Analysis: Incorporates tick volume when available for more accurate detection
🔧 Core Components
Mirage Score Calculator: Analyzes the ratio of price wicks to volume, normalized by average bar size
ATR-Based Filter: Ensures only significant price movements are considered for trap zone creation
EMA Smoothing: Reduces noise in the mirage score for clearer signals
Gradient Zone Renderer: Creates visually distinct zones with multiple opacity levels for better visibility
🔥 Key Features
Real-Time Trap Detection: Identifies liquidity mirages as they develop during live trading
Dynamic Zone Sizing: Adjusts zone height based on current market volatility (ATR)
Smart Zone Management: Automatically maintains a clean chart by limiting the number of displayed zones
Customizable Sensitivity: Fine-tune detection parameters for different market conditions
Visual Clarity: Gradient-filled zones with distinct borders for easy identification
Status Line Display: Shows current mirage score and threshold for quick reference
🎨 Visualization
Gradient Trap Zones: Purple gradient boxes with darker centers indicating trap strength
Mirage Score Line: Orange line in status area showing current liquidity quality
Threshold Reference: Gray line showing your configured detection threshold
Extended Zone Display: Zones automatically extend forward as new bars form
📖 Usage Guidelines
Detection Settings
Smoothing Length (EMA) - Default: 10 - Range: 1-50 - Description: Controls responsiveness of mirage score. Lower values make detection more sensitive to recent price action
Mirage Threshold - Default: 5.0 - Range: 0.1-20.0 - Description: Score above this level triggers trap zone creation. Higher values reduce false positives but may miss subtle traps
Filter Settings
ATR Length for Range Filter - Default: 14 - Range: 1-50 - Description: Period for volatility calculation. Standard 14 works well for most timeframes
ATR Multiplier - Default: 1.0 - Range: 0.0-5.0 - Description: Minimum bar range as multiple of ATR. Higher values filter out smaller moves
Display Settings
Zone Height Multiplier - Default: 0.5 - Range: 0.1-2.0 - Description: Controls trap zone height relative to ATR. Adjust for visual preference
Max Trap Zones - Default: 5 - Range: 1-20 - Description: Maximum zones displayed before oldest are removed. Balance clarity vs. history
✅ Best Use Cases
Identifying potential fakeout levels before entering trades
Confirming support/resistance quality by checking for liquidity traps
Avoiding stop-loss placement in trap zones where sweeps are likely
Timing entries after trap zones are cleared
Scalping opportunities when price approaches known trap zones
⚠️ Limitations
Requires volume data - less effective on instruments without reliable volume
May generate false signals during news events or genuine volume spikes
Not a standalone system - combine with price action and other indicators
Zone creation is based on historical data - future price behavior not guaranteed
💡 What Makes This Unique
First indicator to specifically target liquidity mirages using wick-to-volume analysis
Proprietary normalization ensures consistent performance across all markets
Visual gradient design makes trap zones immediately recognizable
Combines multiple volatility and volume metrics for robust detection
🔬 How It Works
1. Wick Analysis: Calculates upper and lower wicks for each bar. Normalizes by average bar size to ensure scale independence
2. Mirage Score Calculation: Divides total wick size by volume to identify thin liquidity. Applies EMA smoothing to reduce noise. Scales result for optimal visibility
3. Zone Creation: Triggers when smoothed score crosses threshold. Creates gradient boxes centered on trap bar. Sizes zones based on current ATR for market-appropriate scaling
💡 Note: Liquidity Trap Zones works best when combined with traditional support/resistance analysis and volume profile indicators. The zones highlight areas of deceptive liquidity but should not be the sole factor in trading decisions. Always use proper risk management and confirm signals with price action.