LockedEye MTF CRT Map SentinelOverview
This script provides a structured multi-timeframe display of market conditions.
It summarizes key elements from M1 up to D1 using five components:
- CRT (Continuation/Reversal Trigger)
- MA6 micro-trend filter
- Candle-close direction
- MA250 macro trend filter
- Sentiment percentage computed from the above signals
The panel is designed to present information at a glance, allowing traders to understand how different timeframes align or disagree.
The purpose is not to merge random indicators. Each row uses a specific rule-based calculation that contributes to an integrated multi-timeframe read. The focus is on market structure, micro-trend, and directional pressure as expressed across several intervals.
How the Script Works
The script does not rely on external indicators. All calculations are performed internally through candle relationships, moving averages, MTF requests, and simple classification logic.
1. CRT Logic (Continuation and Reversal)
CRT identifies two types of behavior in each timeframe:
Continuation: The current candle closes outside the previous candle’s high or low.
Reversal after a sweep: Price takes the previous high or low but closes back inside the range.
A close outside the previous range suggests continuation.
A sweep followed by a close back inside suggests a shift in pressure or reversal .
The CRT row labels these conditions as Bull, Bear, or Wait.
2. MA6 Micro-Trend
The script uses a 6-period simple moving average to understand immediate trend pressure.
Close and open both above the MA6 = Bull
Close and open both below the MA6 = Bear
Mixed = Wait
This gives a quick view of short-term momentum without repainting.
3. Candle-Close Direction
This uses a simple comparison:
Close > Open = Bull
Close < Open = Bear
Equal = Neutral
It is a raw directional signal without interpretation.
4. MA250 Macro Filter
The script applies a 250-period MA to understand the broader trend.
Break above the MA250 = BR (BullRun)
Break below the MA250 = BC(BearCrash)
Inside range = Neutral
This acts as a long-term directional filter .
5. Sentiment Computation
The script aggregates CRT, MA6, and Candle-Close across all timeframes.
Each timeframe contributes a value.
The script then calculates the percentage of bull, bear, and neutral signals.
A short text summary explains whether signals are aligned or mixed.
How to Use the Panel
Multi-Timeframe Alignment
The panel is most useful when interpreting how lower and higher timeframes behave together:
When many timeframes show the same direction, it reflects stronger alignment.
When timeframes disagree, market conditions are more mixed or range-bound.
Users can watch for shifts when multiple rows turn from mixed to aligned.
Trend-Following Context
If higher timeframes (H2–D1) show consistent directional readings in CRT, MA6, and MA250, users may treat that as broader structural context.
Lower timeframes (M1–M15) can then be used to observe pullbacks or shifts within that larger trend.
Counter-Trend Context
If higher timeframes show one direction but lower timeframes show the opposite, this may indicate short-term reactions or pullbacks.
The script does not assume these reactions will continue; it only shows the multi-frame condition so users can decide how to interpret it.
Liquidity Sweep Context
CRT will classify moments when price takes a previous high or low and re-enters the range.
This is included so users can detect areas where the market moves beyond a level and immediately rejects it.
Alerts
The script includes alert conditions for:
CRT Bull or Bear flips on the chart’s timeframe
Multi-timeframe consensus reaching a user-defined threshold
Users can create alerts through the TradingView alert menu once the indicator is added to the chart.
Note:
The script includes a non-repaint mode for alert stability. This mode ensures only confirmed candle closes are used in calculations.
Chart Use
The script displays a fixed panel on the chart.
Users may select the panel’s position to avoid covering price action.
Users are advised to publish with a clean chart where only this script is active, unless pairing is required for explanation.
Toggles:
Close Candle(Non Repaint)
Monitor: BTCUSD along w RSI
Monitor 2: Any Coin
Flip M1-D1
Fast CRT
Final Notes
This script does not forecast future price movement and does not claim accuracy, profitability, or performance results.
It is a diagnostic tool that organizes real-time price behavior across multiple timeframes.
Users should apply their own judgment and risk management.
Marketstructure
Market Range OracleMarket Range Oracle is an advanced volatility-adaptive projection tool designed to help traders anticipate future price behaviour, identify probabilistic ranges, and understand how markets historically expand or contract from the price open.
📊 By analysing historical bar-to-bar performance, ATR-filtered volatility, and fast-RSI momentum, the indicator creates a complete forward-looking range map for any timeframe.
📈 What Market Range Oracle Does
Calculates Expected Price Movement From the Open for any selected timeframe, the indicator measures thousands of past bars (or your chosen lookback) to determine:
Average % Gain
Average % Loss
Max Adjusted Gain (ATR-filtered projected peaks)
Max Adjusted Loss (ATR-filtered projected troughs)
Rate of green and red candle closes in the selected lookback period
Projected price levels for all of the above
These projections are then plotted directly on the chart or drawn as offset lines with detailed labels, all the colours, text size, show/hide elements are customisable from the indicator dashboard.
🧠 How does work and how to use it
The indicator computes projections across three independent timeframes:
Plots Timeframe — where visual projection bands are drawn
Lines & Labels Timeframe — creates separate-TF projection levels & labels
Forecast Timeframe — allows forward bar forecasting for the next candle
Forecast projections (when enabled) can be used to show the next future candle of any timeframe.
Example 1: Plots Timeframe set to current timeframe and the Forecast Timeframe option to the same timeframe, this will show an adaptive range moving with the price for current timeframe.
Example 2 : Find the potential Future range long term, the current timeframe is an weekly and we set the Forecast Timeframe to 2 weeks, as want to see potential top and bottom range for the next 2 weeks
Example 3 : Scalping with Market Range Oracle - Set the Bands to current timeframe and set the Projections lines and labels to a higher timeframe (in our case 15 minutes and a 4h)
⚡ Momentum Overlay (Fast RSI Hybrid)
A fast-RSI (RSI-2) colour code system measures short-term momentum and the top and bottom of the ranges display momentum.
Also the middle RSI 50 value equivalent EMA shows directional bias visualized with colour-shifting dashed line on the chart to help traders with clear trend direction.
🔔 Built-In Alert System
Alerts trigger on Price-Level Events and on momentum shift:
Price reaches projected Avg Loss
Price reaches projected Max Gain
Price reaches projected Max Loss
Midpoint Cross Events
Price crosses above mid-range
Price crosses below mid-range
Fast RSI bullish momentum
Fast RSI bearish momentum
Fast RSI strong bullish spike
Fast RSI strong bearish spike
🧩 Market Range Oracle is ideal for scalping, day-trading, swing trading, and position traders.
💬 Notes
Market Range Oracle does not predict future price — it projects statistically probable ranges based on historical behaviour and volatility. It is a decision-support tool to help traders navigate expected expansion from the open.
Smart Money Concepts [Riz]Smart Money Concepts is a comprehensive technical analysis tool for identifying institutional trading patterns and market structure. This indicator combines Smart Money Concepts (SMC), ICT methodology, and Wyckoff principles into one professional tool.
✨ KEY FEATURES
📊 VOLUMETRIC ORDER BLOCKS
• Visual representation of supply/demand zones with volume distribution
• Horizontal volume bars showing buy/sell composition inside each Order Block
• Automatic mitigation tracking
• Breaker Block detection (invalidated OBs acting as reversal zones)
• Strength rating system: ★ Weak, ★★ Medium, ★★★ Strong
• ATR-based size filtering to show only significant zones
📈 MARKET STRUCTURE DETECTION
• Break of Structure (BOS) and Change of Character (CHoCH) identification
• Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), Lower Lows (LL) labels
• Internal structure pivots (iH/iL) for intraday analysis
• Auto-adjusting swing length based on timeframe
• Configurable confirmation methods (Close vs Wick-based)
💎 FAIR VALUE GAPS (FVG)
• Automatic detection of bullish and bearish imbalances
• Configurable mitigation percentage (default 50%)
• Visual tracking until gaps are filled
• Separate color schemes for clarity
💧 LIQUIDITY ANALYSIS
• Buy Side Liquidity (BSL) identification at swing highs
• Sell Side Liquidity (SSL) identification at swing lows
• Automatic sweep detection with visual confirmation
• Real-time alerts when liquidity is taken
⚖️ PREMIUM & DISCOUNT ZONES
• Dynamic range calculation based on configurable lookback period
• Equilibrium (EQ) level identification
• Previous Day High (PDH) and Previous Day Low (PDL) levels
• Helps identify favorable entry zones
📊 REAL-TIME DASHBOARD
• Live statistics on all detected patterns
• Active Order Blocks and FVGs count
• BOS/CHoCH occurrence tracking
• Liquidity sweep counters
• Recent market activity indicators
• Current trend bias display
• Fully customizable position and size
⚙️ CUSTOMIZATION OPTIONS
All aspects are fully customizable:
• Swing Length (1-50 bars) with auto-adjust for timeframe
• Max Active Order Blocks (10-100)
• Volume bar position (Left/Right) with mirror option
• Volume bar width percentage (10-50%)
• ATR size filter for Order Blocks
• Strength rating method (Touches/Age/Distance/Volume/Combined)
• All colors and transparency levels
• Dashboard position (9 locations available)
• Comprehensive alert system for all events
🎓 HOW IT WORKS
ORDER BLOCKS: Identified at the last candle before a Break of Structure. These represent institutional supply and demand zones. Volume is estimated based on candle characteristics and displayed as horizontal bars.
MARKET STRUCTURE: Tracks pivot highs and lows to determine if price is making Higher Highs/Higher Lows (bullish structure) or Lower Highs/Lower Lows (bearish structure). BOS indicates trend continuation, while CHoCH signals potential trend reversal.
LIQUIDITY: Swing highs represent Buy Side Liquidity where short positions have their stop losses. Swing lows represent Sell Side Liquidity where long positions have stop losses. The indicator tracks when these levels are "swept" by price.
FAIR VALUE GAPS: Three-candle patterns where the current candle's range doesn't overlap with the candle two bars ago, creating price imbalances that often get filled later.
📚 BEST PRACTICES
• Use on all timeframes - Auto-adjust feature optimizes settings automatically
• Look for confluence - Best setups occur when multiple concepts align (e.g., Order Block + liquidity sweep + discount zone)
• Consider risk/reward - Use Premium/Discount zones to identify favorable entry areas
• Respect market context - Order Blocks in the direction of overall trend tend to be more reliable
• Volume matters - Higher volume percentages in the expected direction may indicate stronger zones
⚠️ IMPORTANT NOTES
EDUCATIONAL TOOL: This indicator is designed for analysis and education, not as trading signals or investment advice.
VOLUME ESTIMATION: Buy/sell volume distribution is estimated based on candle characteristics since true buy/sell volume data is not available in Pine Script.
NO GUARANTEES: Past performance is not indicative of future results. All trading involves substantial risk.
RISK MANAGEMENT: Always use proper risk management and seek additional confirmation before making trading decisions.
OBJECT LIMITS: On very fast timeframes (1m, 5m) in highly volatile markets, the indicator may approach Pine Script's 500-object limit. Reduce max OBs/FVGs in settings if needed.
🔧 TECHNICAL SPECIFICATIONS
• Pine Script Version: v6
• Indicator Type: Overlay (displays on price chart)
• Maximum Objects: Optimized to stay within Pine Script limits
• Performance: Efficient rendering with configurable history management
• Updates: Real-time on every bar close
📖 METHODOLOGY
This indicator combines concepts from:
• Inner Circle Trader (ICT) methodology
• Smart Money Concepts (SMC) framework
• Wyckoff market analysis principles
• Order flow and volume spread analysis
⚖️ DISCLAIMER
This indicator is for educational and informational purposes only. It is not financial advice. Trading financial instruments carries substantial risk and may not be suitable for all investors. Past performance is not indicative of future results. Always conduct your own research and consult with a licensed financial advisor before making any investment decisions. The author assumes no responsibility for any losses incurred from using this indicator.
Swing High-Low Line ConnectorSwing High-Low Line Connector is a simple and intuitive tool that automatically detects swing highs and swing lows using fractal-style pivot logic and connects them with clean, continuous lines. This indicator helps traders visualize market structure, trend shifts, and swing-based support/resistance levels at a glance.
The script identifies each confirmed swing point based on a user-defined lookback window (left/right bars). When a new swing is confirmed, the indicator updates the previous leg or creates a new one, effectively drawing the classic “zigzag-style” connections used in discretionary trading and price-action analysis.
A dynamic tail extension is included to show the most recent swing extending toward the current price. By default, the tail follows a ZigZag-style logic—extending upward after a swing low and downward after a swing high—but users can also anchor it to Close, High, Low, or HL2.
Features
Automatic detection of swing highs and swing lows
Clean line connections between swings (similar to discretionary market-structure mapping)
Proper consolidation handling: weaker highs/lows are ignored
Optional ZigZag-style dynamic tail extension
Fully customizable lookback window, line color, and line width
Works on any market and timeframe
Use Cases
Identifying market structure (HH, HL, LH, LL)
Visualizing trend transitions
Spotting breakout levels and swing-based support/resistance
Aiding discretionary swing trading, trend following, or pattern recognition
This indicator keeps the logic simple and visual—ideal for traders who prefer clean chart structure without unnecessary noise.
Breakouts & Pullbacks [Trendoscope®]🎲 Breakouts & Pullbacks - All-Time High Breakout Analyzer
Probability-Based Post-Breakout Behavior Statistics | Real-Time Pullback & Runup Tracker
A professional-grade Pine Script v6 indicator designed specifically for analyzing the historical and real-time behavior of price after strong All-Time High (ATH) breakouts. It automatically detects significant ATH breakouts (with configurable minimum gap), measures the depth and duration of pullbacks, the speed of recovery, and the subsequent run-up strength — then turns all this data into easy-to-read statistical probabilities and percentile ranks.
Perfect for swing traders, breakout traders, and anyone who wants objective, data-driven insight into questions like:
“How deep do pullbacks usually get after a strong ATH breakout?”
“How many bars does it typically take to recover the breakout level?”
“What is the median run-up after recovery?”
“Where is the current pullback or run-up relative to historical ones?”
🎲 Core Concept & Methodology
Indicator is more suitable for indices or index ETFs that generally trade in all-time highs however subjected to regular pullbacks, recovery and runups.
For every qualified ATH breakout, the script identifies 4 distinct phases:
Breakout Point – The exact bar where price closes above the previous ATH after at least Minimum Gap bars.
Pullback Phase – From breakout candle high → lowest low before price recovers back above the breakout level.
Recovery Phase – From the pullback low → the bar where price first trades back above the original breakout price.
Post-Recovery Run-up Phase – From the recovery point → current price (or highest high achieved so far).
Each completed cycle is stored permanently and used to build a growing statistical database unique to the loaded chart and timeframe.
🎲 Visual Elements
Yellow polyline triangle connecting Previous ATH / Pullback point(start), New ATH Breakout point (end), Recovery point (lowest pullback price), and extends to recent ATH price.
Small green label at the pullback low showing detailed tooltip on hover with all measured values
Clean, color-coded statistics table in the top-right corner (visible only on the last bar)
Powerful Statistics Table – The Heart of the Indicator
The table constantly compares the current situation against all past qualified breakouts and shows details about pullbacks, and runups that help us calculate the probability of next pullback, recovery or runup.
🎲 Settings & Inputs
Minimum Gap
The minimum number of bars that must pass between breaking a new ATH and the previous one.
Higher values = stricter filter → only the strongest, cleanest breakouts are counted.
Lower values = more data points (useful on lower timeframes or very trending instruments).
Recommendation:
Daily charts: 30–50
4H charts: 40–80
1H charts: 100–200
🎲 How to Use It in Practice
This indicator helps investors to understand when to be bullish, bearish or cautious and anticipate regular pullbacks, recovery of markets using quantitative methods.
The indicator does not generate buy/sell signals. However, helps traders set expectations and anticipate market movements based on past behavior.
Breakdown Sniper [Riz]Breakdown Sniper is a complete structural-based price-action system designed to identify and validate three major setups
1. Failed Breakdowns (FBD)
2. Breakouts / Breakdowns (BO)
3. Back-Tests (BT)
The script analyzes swing structure, undercuts, reclaim behavior, channel bias, support/resistance levels, and a multi-layer confluence engine to highlight high-quality long/short signals.
It also includes trade management, target projections, trailing logic, risk models, and an optional dashboard for clarity.
Core Concepts Behind the System
1. Pivot Structure & New Low/High Logic
Breakdown Sniper continuously detects pivot highs and lows using user-defined left/right bars.
These pivots are used to determine
⦁ Recent structural lows/highs
⦁ Undercuts (for failed breakdowns)
⦁ Structural breaks (for FBO/BO setups)
This provides the foundation for all three setup types.
2. Failed Breakdown (FBD) Detection
The primary logic of the script is to detect failed breakdowns, which follow this sequence:
1. Identify an initial pivot low
2. Price undercuts that low
3. Price reclaims the level by a specified number of points
4. Optional: new higher low print confirming strength
5. Once confirmed, the script calculates:
⦁ Entry trigger price
⦁ Stop placement (multiple options: below undercut, below initial low, ATR-based, fixed)
⦁ Three profit targets based on risk multiples
The reverse logic is applied for failed breakouts (FBO).
3. Breakouts & Breakdowns (BO)
The system also captures momentum breakouts/breakdowns defined by:
⦁ Price breaking major support/resistance
⦁ Bar-level strength (close vs range)
⦁ ATR-based expansion
⦁ Holding above/below breakout level for a user-defined number of bars
If confirmed, the script projects T1/T2/T3 targets and stop placement automatically.
4. Back-test Setups (BT)
After a confirmed breakout/breakdown, the script monitors for a return to the breakout level, within a percentage tolerance.
If a clean retest occurs:
⦁ A BT Long or BT Short setup is generated
⦁ Risk and target calculations are performed automatically
This allows identifying continuation setups after strong breaks.
Channel & Levels System (Support/Resistance Engine)
The script builds a hybrid S/R and environment model using:
⦁ Regression channel OR
⦁ Donchian, Keltner, Bollinger channels (user-selectable)
The channel provides:
⦁ Upper/Lower boundaries
⦁ Midline
⦁ Trend bias based on slope
Additionally, a multi-touch support/resistance detector clusters pivot-based levels and scores them by:
⦁ Touch count
⦁ Recency
⦁ Age
⦁ Whether they classify as major levels
This explains where reversals and breakouts are most likely.
Confluence Engine
Every Long/Short signal receives a 0–100 score derived from:
⦁ Market structure: HH/HL or LL/LH
⦁ Trend filter (EMA-based)
⦁ Volatility conditions (ATR range requirements)
⦁ Session bias (Asian / London / New York / Overlap)
⦁ Volume expansion
⦁ Higher-timeframe trend (optional)
⦁ Location inside channel
⦁ Distance to nearest S/R
⦁ Setup-type priority (FBD/BO/BT)
Users can require a minimum score before a signal becomes valid.
Trade Management Logic
Once a trade triggers, the indicator handles:
⦁ Entry execution confirmation
⦁ Stop loss tracking
⦁ Three independent profit targets
⦁ Optional scale-ins
⦁ ATR-based trailing stop
⦁ Risk calculations
⦁ Real-time PnL monitoring
The script does not execute live trades — it only visualizes management levels for analysis.
Visual Components
Breakdown Sniper plots:
⦁ Channels & fills
⦁ Auto-detected S/R levels
⦁ Pivot highs/lows
⦁ Buy/Sell markers
⦁ Entry/Stop/Targets
⦁ Trade dashboard (optional)
⦁ Equity curve (optional)
Everything is toggle-based for clean charting.
How To Use the Indicator
Recommended Use-Case
⦁ Futures (ES/NQ/CL/RTY)
⦁ Indices
⦁ Crypto
⦁ FX
Works well on:
⦁ 5m / 15m / 1H
Signals do not repaint because pivots and reclaim sequences require bar completion.
Basic Usage Steps
1. Enable the setups you want to trade: FBD, BO, BT
2. Optionally turn on filters:
⦁ Trend filter
⦁ Volatility filter
⦁ Market structure filter
⦁ MTF trend filter
3. Wait for a valid long/short signal with sufficient confluence
4. Follow the plotted entry level, stop, and targets
5. Use the dashboard to monitor performance of each setup type
Important Notes
This is a structural/price-action tool, not a prediction model
No guarantee of profitability is provided
The indicator is educational and analytical
Always use independent confirmation and risk management
Disclaimer
This script is for education and analysis. It does not provide financial advice. Markets involve risk. Past behavior of any pattern or study does not imply future results. You are responsible for your own decisions.
VWAP TrendSignalVWAP TrendSignal
VWAP (Volume-Weighted Average Price) is the market’s true fair value — the benchmark institutions use to see when price is balanced, extended, or trending with real intent.
Price often snaps back when it moves too far (mean reversion), and only shows genuine strength when it holds above or below VWAP.
VWAP TrendSignal makes this insight effortless by color-coding VWAP direction:
Yellow = VWAP rising → bullish pressure
Red = VWAP falling → bearish pressure
No bands. No noise. Just pure directional clarity.
Anchor VWAP to the Session, Week, Month, Quarter, or Year, and tailor the Slope Smoothing Filter to your timeframe:
1–2 smoothing → fast & reactive (1–5m scalping)
3–5 smoothing → clean & stable (5–15m intraday)
6–10 smoothing → slow flips (1H–4H swings)
10–15 smoothing → macro bias only (Daily/Weekly)
The line adapts to how you trade.
How to Use It
Mean Reversion
When price stretches far from VWAP, expect pullbacks or snapbacks.
Trend Direction
Yellow supports long bias, red supports short bias.
Simple, reliable, instantly visible.
Balance Zones
Price sitting near VWAP = compression, buildup, or chop.
A perfect signal to wait or prepare for a breakout.
Why It Works
VWAP TrendSignal distills institutional logic into a clean, single-line tool.
It shows fair value, trend slope, and balance all at once — making your chart clearer and your decisions faster.
Once you get used to reading it, trading without it feels blind.
Market Structure Volume Time Velocity ProfileThis is the Market Structure Volume Time Velocity Profile (MSVTVP). It combines event-based profiling with advanced metrics like Time and Velocity (Flow Rate). Instead of fixed time periods, profiles are anchored to critical market events (Swings, Structure Breaks, Delta Breaks), giving you a precise view of value development during specific market phases.
## The 3 Dimensions of the Market
Unlike standard tools that only show Volume, MSVTVP allows you
to switch between three critical metrics:
1. **VOLUME Profile (The "Where"):**
* Shows standard acceptance. High volume nodes (HVN)
are magnets for price.
2. **TIME Profile (The "How Long"):**
* Similar to TPO, it measures how long price spent at each
level.
* **High Time:** True acceptance and fair value.
* **Low Time:** Rejection or rapid movement.
3. **VELOCITY Profile (The "How Fast"):**
* Measures the **speed of trading** (Contracts per Second).
This reveals the hidden intent of market participants.
* **High Velocity (Fast Flow):** Aggression. Initiative
buyers/sellers are hitting market orders rapidly. Often
seen at breakouts or in liquidity vacu.
* **Low Velocity (Slow Flow):** Absorption. Massive passive
limit orders are slowing price down despite high volume.
Often seen at major reversals ("hitting a brick wall").
Key Features:
1. **Event-Based Profile Anchoring:** The indicator starts a new
profile based on one of three user-selected events
('Profile Anchor'):
- **Swing:** A new profile begins when the 'impulse baseline'
(derived from intra-bar delta) changes. This baseline
adjusts when a new **price pivot** is confirmed: When a
price **high** forms, the baseline moves to the **lower**
of its previous level or the peak delta (max of
delta O/C) at the pivot. When a price **low** forms, it
moves to the **higher** of its previous level or the
trough delta (min of delta O/C) at the pivot.
- **Structure:** A new profile begins immediately on the bar
that *confirms* a market structure break (e.g., a new HH
or LL, based on a sequence of price pivots).
- **Delta:** A new profile begins immediately on the bar
that *confirms* a break in the *cumulative delta's*
market structure (e.g., a new HH or LL in the delta).
Both 'Swing' and 'Delta' anchors are derived from the same
**continuous (non-resetting) Cumulative Volume Profile Delta (CVPD)**,
which is built from the intra-bar statistical analysis.
2. **Statistical Profile Engine:** For each bar in the anchored
period, the indicator builds a volume profile on a lower
'Intra-Bar Timeframe'. Instead of simple tick counting, it
uses advanced statistical models:
- **Allocation ('Allot model'):** 'PDF' (Probability Density
Function) distributes volume proportionally across the
bar's range based on an assumed statistical model
(e.g., T4-Skew). 'Classic' assigns all volume to
the close.
- **Buy/Sell Split ('Volume Estimator'):** 'Dynamic'
applies a model that analyzes candle wicks and
recent trend to estimate buy/sell pressure. 'Classic'
classifies all volume based on the candle color.
3. **Visualization & Lag:** The indicator plots the final
profile (as a polygon) and the developing statistical
lines (POC, VA, VWAP, StdDev).
- **Note on Lag:** All anchor events require `Pivot Right Bars`
for confirmation.
- In 'Structure' and 'Delta' mode, the developing lines
(POC, VA, etc.) are plotted using a **non-repainting**
method (showing the value from `pivRi` bars ago).
- In 'Swing' mode, the profile is plotted **retroactively**,
starting *from the bar where the pivot occurred*. The
developing lines are also plotted with this full
`pivRi` lag to align with the past data.
4. **Flexible Display Modes:** The finalized profile can be displayed
in three ways: 'Up/Down' (buy vs. sell), 'Total' (combined
volume), and 'Delta' (net difference).
5. **Dynamic Row Sizing:** Includes an option ('Rows per Percent')
to automatically adjust the number of profile rows (buckets)
based on the profile's price range.
6. **Integrated Alerts:** Includes 13 alerts that trigger for:
- A new profile reset ('Profile was resetted').
- Price crossing any of the 6 developing levels (POC,
VA High/Low, VWAP, StdDev High/Low).
- **Alert Lag Assumption:** In 'Swing' mode, alerts are
delayed to match the retroactively plotted lines.
In 'Structure' and 'Delta' modes, alerts fire in
**real-time** based on the *current price* crossing
the *current (repainting)* value of the metric, which
may **differ from the non-repainting plotted line.**
**Caution: Real-Time Data Behavior (Intra-Bar Repainting)**
This indicator uses high-resolution intra-bar data. As a result, the
values on the **current, unclosed bar** (the real-time bar) will
update dynamically as new intra-bar data arrives. This includes
the values used for real-time alerts in 'Structure' and
'Delta' modes.
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
Screener (ILPAC) [AlgoAlpha]🟠 OVERVIEW
This script is a powerful multi-symbol scanner designed to work as a companion to the "Institutional Liquidity & PA Concepts" (ILPAC) indicator. It allows you to monitor the key price action and liquidity signals from the ILPAC suite across a watchlist of up to 18 assets, all from a single dashboard. The primary goal of this tool is to provide a high-level market overview, enabling you to efficiently spot assets that are showing strong structural trends, interacting with key liquidity zones, or exhibiting signs of FOMO-driven volatility.
Instead of switching between dozens of charts, you can use this screener to quickly filter for assets that meet your specific trading criteria based on the advanced concepts of market structure, liquidity analysis, trend lines, and market sentiment.
🟠 CONCEPTS
The screener is built upon the core analytical engine of the "Institutional Liquidity & PA Concepts" indicator. It applies the proprietary algorithms of the ILPAC indicator to each symbol in your watchlist and presents the results in an easy-to-digest table. The concepts are combined to create a holistic view of the market.
Each column in the table is a window into a specific trading concept:
Market Structure: This is the foundation of price action analysis. The screener identifies the current market trend (bullish or bearish) by tracking swing highs and lows. It also flags critical events like a Break of Structure (BOS), which signals trend continuation, and a Change of Character (CHoCH), which suggests a potential trend reversal.
Liquidity Analysis: The screener analyzes order flow to determine where significant liquidity is resting. The "Liquidity Bias" column shows the net direction of this pressure, while the "Liquidity Event" column alerts you when price interacts with these key zones, either by forming a new one or mitigating an old one.
Trend Lines: This concept automates the classic technical analysis technique of drawing trend lines. The screener identifies significant swing points to form trend lines and then monitors them, alerting you to potential trend continuations or breakouts.
FOMO Bubbles: This concept measures crowd psychology by identifying sudden spikes in volume and price movement that are characteristic of "Fear of Missing Out." These signals can help identify potential trend exhaustion points or the start of a speculative rally.
By presenting these distinct but interconnected concepts together, the screener provides a multi-faceted view that allows traders to build a strong, confluence-based trading thesis.
🟠 FEATURES
This screener organizes a vast amount of data into a simple, color-coded table. Here is a breakdown of each column and the values you can expect to see:
Asset: Displays the ticker symbol for the asset being analyzed.
Market Structure: Shows the dominant trend based on swing highs and lows.
Bull: The asset is in a structural uptrend (making higher highs and higher lows).
Bear: The asset is in a structural downtrend (making lower highs and lower lows).
Detecting: The trend is neutral or a clear structure has not yet been established.
Structure Event: Flags the most recent significant market structure event.
Bull CHoCH: A bullish Change of Character, signaling a potential shift from a downtrend to an uptrend.
Bear CHoCH: A bearish Change of Character, signaling a potential shift from an uptrend to a downtrend.
Bull BOS: A bullish Break of Structure, confirming the continuation of an uptrend.
Bear BOS: A bearish Break of Structure, confirming the continuation of a downtrend.
–: No significant event has occurred recently.
Latest Swing Label: Identifies the most recently confirmed swing point.
HH: Higher High.
HL: Higher Low.
LH: Lower High.
LL: Lower Low.
–: No new swing point has been confirmed.
Liquidity Bias: Measures the net direction of liquidity and its relative strength.
▲ : A bullish liquidity bias, where the number indicates the strength.
▼ : A bearish liquidity bias, where the number indicates the strength.
Balanced: Liquidity is relatively balanced between buyers and sellers.
Liquidity Event: Indicates recent interactions with key liquidity zones.
New▲: A new bullish liquidity zone has just formed.
New▼: A new bearish liquidity zone has just formed.
Mit▲: Price has just tested (mitigated) a key bullish liquidity zone.
Mit▼: Price has just tested (mitigated) a key bearish liquidity zone.
–: No recent interaction.
Trend Line: Displays the status of automatically drawn trend lines.
Break▲: Price has broken above a key bearish trend line.
Break▼: Price has broken below a key bullish trend line.
Bull TL: Price is respecting an active bullish trend line.
Bear TL: Price is respecting an active bearish trend line.
–: No significant trend line is currently active.
FOMO: Detects sentiment-driven price moves of varying intensity.
Big▲/Med▲/Small▲: A bullish FOMO bubble has been detected (large, medium, or small).
Big▼/Med▼/Small▼: A bearish FOMO bubble has been detected (large, medium, or small).
–: No FOMO activity detected.
🟠 USAGE
The primary way to use this screener is to quickly scan your watchlist for assets that exhibit a confluence of bullish or bearish signals, which can significantly improve the probability of a trade.
1. Setup and Configuration:
Add the screener to your chart.
Open the settings and populate the "Watchlist" section with the symbols you want to track.
Fine-tune the input settings for each component (Market Structure, Liquidity, etc.) to match your preferred trading style. These settings will apply to all symbols in the table.
2. Interpreting the Columns for Trading Decisions:
Market Structure Columns: Use the first three structure columns to define your trading bias. For a high-probability long setup, you would look for an asset with a "Bull" structure, a recent "Bull BOS" event, and a "HL" as the latest swing point. This confirms the uptrend is healthy and ongoing.
Liquidity Columns: These are crucial for identifying key price levels. A strong "Liquidity Bias" can confirm your directional bias. A "Mit▲" (mitigation) event at a support level can be a powerful entry trigger, as it shows that institutional buy orders are defending that zone.
Trend Line Column: This is ideal for breakout traders. A "Break▲" signal can serve as an excellent entry confirmation, especially if the overall "Market Structure" is already "Bull".
FOMO Column: This column is best used for identifying potential exhaustion points. For instance, if you are in a long trade and a "Big▲" FOMO signal appears after a strong rally, it could be a sign that the move is overextended and it's a good time to consider taking profits.
Платный скрипт
SuperTrend Dual RMAOverview
The SuperTrend Dual RMA is a hybrid volatility-based trend-following system that merges two Relative Moving Averages (RMAs) with an Average True Range (ATR)–anchored SuperTrend framework. The primary purpose of this indicator is to offer a smoother and more reliable depiction of directional bias while maintaining sensitivity to price volatility and market volume.
Traditional SuperTrend implementations typically rely on a single moving average and a fixed volatility envelope. This dual RMA structure introduces an adaptive central tendency line that reacts proportionally to both price and volume, allowing for more nuanced identification of trend reversals and continuation patterns.
**Core Concept**
The indicator is built around two key principles — smoothing and volatility adaptation.
1. **Smoothing:** The use of two separate RMAs with configurable lengths creates a dynamic equilibrium between short-term responsiveness and long-term stability. The first RMA captures near-term directional shifts, while the second provides broader market context. The average of both becomes the foundation of the SuperTrend bands.
2. **Volatility Adaptation:** The ATR multiplier and period define the distance between upper and lower bands relative to recent volatility. This ensures that the SuperTrend line remains flexible across varying market conditions — expanding during high volatility and contracting during calm phases.
**Calculation Steps**
* The indicator first computes two volume-weighted RMAs based on the typical price (`hlc3`) multiplied by trading volume.
* Each RMA is normalized by the smoothed volume to maintain proportional weighting.
* These two RMAs are averaged to produce a “basis line” that reflects the current market consensus price.
* The ATR is calculated over a user-defined period, then multiplied by a volatility factor (ATR multiplier).
* The resulting ATR value defines dynamic upper and lower thresholds around the basis line.
* Trend direction is determined by price closing behavior relative to these thresholds:
* When the closing price exceeds the upper band, the trend is considered bullish.
* When it drops below the lower band, the trend turns bearish.
* If price remains within the bands, the prior trend direction is maintained for consistency.
**Visual Structure**
The SuperTrend Dual RMA provides multiple layers of visual feedback for enhanced interpretation:
* Two distinct RMA lines (short and long) are plotted with complementary colors for contrast and clarity.
* A soft fill between the RMA lines highlights the interaction between short- and medium-term momentum.
* The ATR-based SuperTrend bands are drawn above and below the basis, with adaptive coloring that corresponds to the prevailing trend direction.
* Bar colors automatically adjust to reflect bullish or bearish bias, making it easy to identify trend shifts without relying solely on crossovers.
* Optional triangle markers appear below or above bars to signal potential buy or sell opportunities based on crossover logic.
**Signals and Alerts**
The indicator provides real-time crossover detection:
* **Buy Signal:** Triggered when the closing price moves above the SuperTrend line, confirming potential bullish continuation or reversal.
* **Sell Signal:** Triggered when the closing price drops below the SuperTrend line, indicating possible bearish momentum or reversal.
Both conditions have built-in `alertcondition()` functions, allowing users to set automated alerts for trading or monitoring purposes. This enables integration with TradingView’s alert system for push notifications, emails, or webhook connections.
**Usage Guidelines**
* **Trend Identification:** Use the color-coded trend line and bar color as a visual guide to the current directional bias.
* **Entry and Exit Timing:** Consider entering trades when a new crossover alert appears, preferably in the direction of the overall higher-timeframe trend.
* **Parameter Tuning:** Adjust the RMA lengths and ATR parameters based on asset volatility. Shorter RMA and ATR settings provide faster reactions, suitable for intraday or high-frequency trading, while longer configurations better fit swing or position strategies.
* **Risk Management:** Because the SuperTrend inherently acts as a dynamic stop level, traders can use the opposite band or SuperTrend line as a trailing stop or exit signal.
**Practical Applications**
* Trend confirmation in multi-timeframe strategies.
* Adaptive trailing stop placement using the lower or upper band.
* Visual comparison of volume-weighted price movement against volatility envelopes.
* Integration into algorithmic trading systems as a signal filter or trend bias component.
* Identification of overextended conditions when price significantly diverges from the SuperTrend basis.
**Originality and Advantages**
The SuperTrend Dual RMA differentiates itself from conventional SuperTrend scripts through three innovative design choices:
1. **Dual Volume-Weighted RMAs:** By incorporating two RMAs weighted by trading volume, the indicator accounts for liquidity dynamics, producing smoother and more reliable averages compared to price-only calculations.
2. **Anchored SuperTrend Framework:** The SuperTrend bands are not derived from a fixed source (such as a single close or median price) but from a blended RMA basis, making them more adaptable to varying market behaviors.
3. **Integrated Multi-Layer Visualization:** The inclusion of filled regions between RMAs, dynamic band coloring, and bar tinting enhances readability and analytical depth without overwhelming the chart.
These improvements collectively create a more balanced and data-rich representation of market structure, offering a higher degree of analytical precision. It’s suitable for traders seeking both discretionary and systematic use, as the indicator’s logic is transparent and compatible with alert-based or automated workflows.
**Summary**
The SuperTrend Dual RMA is a refined evolution of the classic SuperTrend, optimized for traders who value smoother directional tracking and more intelligent volatility adaptation. It blends two time-sensitive, volume-aware moving averages with an ATR-derived volatility system to deliver reliable, actionable trend information. Its visual design, adaptive responsiveness, and integrated alert functionality make it a complete solution for identifying and managing trends across multiple asset classes and timeframes.
Top Finder & Dip Hunter [BackQuant]Top Finder & Dip Hunter
A practical tool to map where price is statistically most likely to exhaust or mean-revert. It builds objective support for dips and resistance for tops from multiple methodologies, then filters raw touches with volume, momentum, trend, and price-action context to surface higher-quality reversal opportunities.
What this does
Draws a Dip Support line and a Top Resistance line using the method you select, or a blended hybrid.
Evaluates each touch/penetration against Quality Filters and assigns a 0–100 composite score.
Prints clean DIP and TOP signals only when depth/extension and quality pass your thresholds.
Optionally annotates the chart with the computed quality score at signal time.
Why it’s useful
Objectivity: Converts vague “looks extended” into rules, reduces discretion creep.
Signal hygiene: Filters raw touches using trend, volume, momentum, and candle structure to avoid obvious traps.
Adaptable regimes: Switch methods, sensitivity, and lookbacks to match choppy vs trending conditions.
How support and resistance are built
Pick one per side, or use “Hybrid.”
Dynamic: Anchors to the extreme of a lookback window, padded by recent ATR, so buffers expand in volatile periods and contract when calm.
Fibonacci: Uses the 0.618/0.786 retracement pair inside the current swing window to target common reaction zones.
Volatility: Uses a moving-average basis with standard-deviation bands to capture statistically stretched moves.
Volume-Weighted: Centers off VWAP and penalizes deviations using dispersion of price around VWAP, helpful on intraday instruments.
Hybrid: A weighted average of the above to smooth out single-method biases.
When a touch becomes a signal
Depth/extension test:
Dips must penetrate their support by at least Min Dip Depth % .
Tops must extend above resistance by at least Min Top Rise % .
Quality Score gate: The composite must clear Min Quality Score . Components:
Trend alignment: Favor dips in bullish regimes and tops in bearish regimes using EMAs and RSI.
Volume confirmation: Reward expansion or spikes versus a 20-period baseline.
RSI context: Prefer oversold for dips, overbought for tops.
Momentum shift: Look for short-term momentum turning in the expected direction.
Candle structure: Reward hammer/shooting-star style responses at the level.
How to use it
Pick your regime:
Range/chop, small caps, mean-revert intraday → Volatility or Volume Weighted .
Cleaner swings/trends → Dynamic or Fibonacci .
Unsure or mixed conditions → Hybrid .
Set windows: Start with Lookback = 50 for both sides. Increase in higher timeframes or slow assets, decrease for fast scalps.
Tune sensitivity: Raise Dip/Top Sensitivity to widen buffers and reduce noise. Lower to be more aggressive.
Gate with quality: Begin with Min Quality Score = 60 . Push to 70–80 for cleaner swing entries, relax to 50–60 for scalps.
Act on first prints: The script only fires on new qualified events. Use the score label to prioritize A-setups.
Typical workflows
Intraday futures/crypto: Volume-Weighted or Volatility methods for both sides, higher Sensitivity , require Volume Filter and Momentum Filter on. Look for DIP during opening drive exhaustion and TOP near late-session fatigue.
Swing equities/FX: Dynamic or Fibonacci with moderate sensitivity. Keep Trend Filter on to only take dips above the 200-EMA and tops below it.
Countertrend scouts: Lower Min Dip Depth % / Min Top Rise % slightly, but raise Min Quality Score to compensate.
Reading the chart
Lines: “Dip Support” and “Top Resistance” are the current actionable rails, lightly smoothed to reduce flicker.
Signals: “DIP” prints below bars when a qualified dip appears, “TOP” prints above for qualified tops.
Scores: Optional labels show the composite at signal time. Favor higher numbers, especially when aligned with higher-timeframe trend.
Background hints: Light highlights mark raw touches meeting depth/extension, even if they fail quality. Treat these as early warnings.
Tuning tips
If you get too many false DIP signals in downtrends, raise Min Dip Depth % and keep Trend Filter on.
If tops appear late in squeezes, lower Top Sensitivity slightly or switch top side to Fibonacci .
On assets with erratic volume, prefer Volatility or Dynamic methods and down-weight the Volume Filter .
For strict systems, increase Min Quality Score and require both Volume and Momentum filters.
What this is not
It is not a blind reversal signal. It’s a structured context tool. Combine with your risk plan and higher-timeframe map.
It is not a guarantee of mean reversion. In strong trends, expect fewer, higher-score opportunities and respect invalidation quickly.
Suggested presets
Scalp preset: Lookback 30–40, Sensitivity 1.2–1.5, Quality ≥ 55, Volume & Momentum filters ON.
Swing preset: Lookback 75–100, Sensitivity 1.0–1.2, Quality ≥ 70, Trend & Volume filters ON.
Chop preset: Volatility/Volume-Weighted methods, Quality ≥ 60, Momentum filter ON, RSI emphasis.
Input quick reference
Dip/Top Method: Choose the model for each side or “Hybrid” to blend.
Lookback: Swing window the levels are built from.
Sensitivity: Scales volatility padding around levels.
Min Dip Depth % / Min Top Rise %: Minimum breach/extension to qualify.
Quality Filters: Trend, Volume, Momentum toggles, plus Min Quality Score gate.
Visuals: Colors and whether to print score labels.
Best practices
Map higher-timeframe trend first, then act on lower-timeframe DIP/TOP in the trend’s favor.
Use the score as triage. Skip mediocre prints into news or at session open unless score is exceptional.
Pre-define stop placement relative to the level you used. If a DIP fails, exit on loss of structure rather than waiting for the next print.
Bottom line: Top Finder & Dip Hunter codifies where reversals are most defensible and only flags the ones with supportive context. Tune the method and filters to your market, then let the score keep your playbook disciplined.
Smart Money Flow Index (SMFI) - Advanced SMC [PhenLabs]📊Smart Money Flow Index (SMFI)
Version: PineScript™v6
📌Description
The Smart Money Flow Index (SMFI) is an advanced Smart Money Concepts implementation that tracks institutional trading behavior through multi-dimensional analysis. This comprehensive indicator combines volume-validated Order Block detection, Fair Value Gap identification with auto-mitigation tracking, dynamic Liquidity Zone mapping, and Break of Structure/Change of Character detection into a unified system.
Unlike basic SMC indicators, SMFI employs a proprietary scoring algorithm that weighs five critical factors: Order Block strength (validated by volume), Fair Value Gap size and recency, proximity to Liquidity Zones, market structure alignment (BOS/CHoCH), and multi-timeframe confluence. This produces a Smart Money Score (0-100) where readings above 70 represent optimal institutional setup conditions.
🚀Points of Innovation
Volume-Validated Order Block Detection – Only displays Order Blocks when formation candle exceeds customizable volume multiplier (default 1.5x average), filtering weak zones and highlighting true institutional accumulation/distribution
Auto-Mitigation Tracking System – Fair Value Gaps and Order Blocks automatically update status when price mitigates them, with visual distinction between active and filled zones preventing trades on dead levels
Proprietary Smart Money Score Algorithm – Combines weighted factors (OB strength 25%, FVG proximity 20%, Liquidity 20%, Structure 20%, MTF 15%) into single 0-100 confidence rating updating in real-time
ATR-Based Adaptive Calculations – All distance measurements use 14-period Average True Range ensuring consistent function across any instrument, timeframe, or volatility regime without manual recalibration
Dynamic Age Filtering – Automatically removes liquidity levels and FVGs older than configurable thresholds preventing chart clutter while maintaining relevant levels
Multi-Timeframe Confluence Integration – Analyzes higher timeframe bias with customizable multipliers (2-10x) and incorporates HTF trend direction into Smart Money Score for institutional alignment
🔧Core Components
Order Block Engine – Detects institutional supply/demand zones using characteristic patterns (down-move-then-strong-up for bullish, up-move-then-strong-down for bearish) with minimum volume threshold validation, tracks mitigation when price closes through zones
Fair Value Gap Scanner – Identifies price imbalances where current candle's low/high leaves gap with two-candle-prior high/low, filters by minimum size percentage, monitors 50% fill for mitigation status
Liquidity Zone Mapper – Uses pivot high/low detection with configurable lookback to mark swing points where stop losses cluster, extends horizontal lines to visualize sweep targets, manages lifecycle through age-based removal
Market Structure Analyzer – Tracks pivot progression to identify trend through higher-highs/higher-lows (bullish) or lower-highs/lower-lows (bearish), detects Break of Structure and Change of Character for trend/reversal confirmation
Scoring Calculation Engine – Evaluates proximity to nearest Order Blocks using ATR-normalized distance, assesses FVG recency and distance, calculates liquidity proximity with age weighting, combines structure bias and MTF trend into smoothed final score
🔥Key Features
Customizable Display Limits – Control maximum Order Blocks (1-10), Liquidity Zones (1-10), and FVG age (10-200 bars) to maintain clean charts focused on most relevant institutional levels
Gradient Strength Visualization – All zones render with transparency-adjustable coloring where stronger/newer zones appear more solid and weaker/older zones fade progressively providing instant visual hierarchy
Educational Label System – Optional labels identify each zone type (Bullish OB, Bearish OB, Bullish FVG, Bearish FVG, BOS) with color-coded text helping traders learn SMC concepts through practical application
Real-Time Smart Money Score Dashboard – Top-right table displays current score (0-100) with color coding (green >70, yellow 30-70, red <30) plus trend arrow for at-a-glance confidence assessment
Comprehensive Alert Suite – Configurable notifications for Order Block formation, Fair Value Gap detection, Break of Structure events, Change of Character signals, and high Smart Money Score readings (>70)
Buy/Sell Signal Integration – Automatically plots triangle markers when Smart Money Score exceeds 70 with aligned market structure and fresh Order Block detection providing clear entry signals
🎨Visualization
Order Block Boxes – Shaded rectangles extend from formation bar spanning high-to-low of institutional candle, bullish zones in green, bearish in red, with customizable transparency (80-98%)
Fair Value Gap Zones – Rectangular areas marking imbalances, active FVGs display in bright colors with adjustable transparency, mitigated FVGs switch to gray preventing trades on filled zones
Liquidity Level Lines – Dashed horizontal lines extend from pivot creation points, swing highs in bearish color (short targets above), swing lows in bullish color (long targets below), opacity decreases with age
Structure Labels – "BOS" labels appear above/below price when Break of Structure confirmed, colored by direction (green bullish, red bearish), positioned at 1% beyond highs/lows for visibility
Educational Info Panel – Bottom-right table explains key terminology (OB, FVG, BOS, CHoCH) and score interpretation (>70 high probability) with semi-transparent background for readability
📖Usage Guidelines
General Settings
Show Order Blocks – Default: On, toggles visibility of institutional supply/demand zones, disable when focusing solely on FVGs or Liquidity
Show Fair Value Gaps – Default: On, controls FVG zone display including active and mitigated imbalances
Show Liquidity Zones – Default: On, manages liquidity line visibility, disable on lower timeframes to reduce clutter
Show Market Structure – Default: On, toggles BOS/CHoCH label display
Show Smart Money Score – Default: On, controls score dashboard visibility
Order Block Settings
OB Lookback Period – Default: 20, Range: 5-100, controls bars scanned for Order Block patterns, lower values detect recent activity, higher values find older blocks
Min Volume Multiplier – Default: 1.5, Range: 1.0-5.0, sets minimum volume threshold as multiple of 20-period average, higher values (2.0+) filter for strongest institutional candles
Max Order Blocks to Display – Default: 3, Range: 1-10, limits simultaneous Order Blocks shown, lower settings (1-3) maintain focus on most recent zones
Fair Value Gap Settings
Min FVG Size (%) – Default: 0.3, Range: 0.1-2.0, defines minimum gap size as percentage of close price, lower values detect micro-imbalances, higher values focus on significant gaps
Max FVG Age (bars) – Default: 50, Range: 10-200, removes FVGs older than specified bars, lower settings (10-30) for scalping, higher (100-200) for swing trading
Show FVG Mitigation – Default: On, displays filled FVGs in gray providing visual history, disable to show only active untouched imbalances
Liquidity Zone Settings
Liquidity Lookback – Default: 50, Range: 20-200, sets pivot detection period for swing highs/lows, lower values (20-50) mark shorter-term liquidity, higher (100-200) identify major swings
Max Liquidity Age (bars) – Default: 100, Range: 20-500, removes liquidity lines older than specified bars, adjust based on timeframe
Liquidity Sensitivity – Default: 0.5, Range: 0.1-1.0, controls pivot detection sensitivity, lower values mark only major swings, higher values identify minor swings
Max Liquidity Zones to Display – Default: 3, Range: 1-10, limits total liquidity levels shown maintaining chart clarity
Market Structure Settings
Pivot Length – Default: 5, Range: 3-15, defines bars to left/right for pivot validation, lower values (3-5) create sensitive structure breaks, higher (10-15) filter for major shifts
Min Structure Move (%) – Default: 1.0, Range: 0.1-5.0, sets minimum percentage move required between pivots to confirm structure change
Multi-Timeframe Settings
Enable MTF Analysis – Default: On, activates higher timeframe trend analysis incorporation into Smart Money Score
Higher Timeframe Multiplier – Default: 4, Range: 2-10, multiplies current timeframe to determine analysis timeframe (4x on 15min = 1hour)
Visual Settings
Bullish Color – Default: Green (#089981), sets color for bullish Order Blocks, FVGs, and structure elements
Bearish Color – Default: Red (#f23645), defines color for bearish elements
Neutral Color – Default: Gray (#787b86), controls color of mitigated zones and neutral elements
Show Educational Labels – Default: On, displays text labels on zones identifying type (OB, FVG, BOS), disable once familiar with patterns
Order Block Transparency – Default: 92, Range: 80-98, controls Order Block box transparency
FVG Transparency – Default: 92, Range: 80-98, sets Fair Value Gap zone transparency independently from Order Blocks
Alert Settings
Alert on Order Block Formation – Default: On, triggers notification when new volume-validated Order Block detected
Alert on FVG Formation – Default: On, sends alert when Fair Value Gap appears enabling quick response to imbalances
Alert on Break of Structure – Default: On, notifies when BOS or CHoCH confirmed
Alert on High Smart Money Score – Default: On, alerts when Smart Money Score crosses above 70 threshold indicating high-probability setup
✅Best Use Cases
Order Block Retest Entries – After Break of Structure, wait for price retrace into fresh bullish Order Block with Smart Money Score >70, enter long on zone reaction targeting next liquidity level
Fair Value Gap Retracement Trading – When price creates FVG during strong move then retraces, enter as price approaches unfilled gap expecting institutional orders to continue trend
Liquidity Sweep Reversals – Monitor price approaching swing high/low liquidity zones against prevailing Smart Money Score trend, after stop hunt sweep watch for rejection into premium Order Block/FVG
Multi-Timeframe Confluence Setups – Identify alignment when current timeframe Order Block coincides with higher timeframe FVG plus MTF analysis showing matching trend bias
Break of Structure Continuations – After BOS confirms trend direction, trade pullbacks to nearest Order Block or FVG in direction of structure break using Smart Money Score >70 as entry filter
Change of Character Reversal Plays – When CHoCH detected indicating potential reversal, look for Smart Money Score pivot with opposing Order Block formation then enter on structure confirmation
⚠️Limitations
Lagging Pivot Calculations – Pivot-based features (Liquidity Zones, Market Structure) require bars to right of pivot for confirmation, meaning these elements identify levels retrospectively with delay equal to lookback period
Whipsaw in Ranging Markets – During choppy conditions, Order Blocks fail frequently and structure breaks produce false signals as Smart Money Score fluctuates without clear institutional bias, best used in trending markets
Volume Data Dependency – Order Block volume validation requires accurate volume data which may be incomplete on Forex pairs or limited in crypto exchange feeds
Subjectivity in Scoring Weights – Proprietary 25-20-20-20-15 weighting reflects general institutional behavior but may not optimize for specific instruments or market regimes, user cannot adjust factor weights
Visual Complexity on Lower Timeframes – Sub-hour timeframes generate excessive zones creating cluttered charts, requires aggressive display limit reduction and higher minimum thresholds
No Fundamental Integration – Indicator analyzes purely technical price action and volume without incorporating economic events, news catalysts, or fundamental shifts that override technical levels
💡What Makes This Unique
Unified SMC Ecosystem – Unlike indicators displaying Order Blocks OR FVGs OR Liquidity separately, SMFI combines all three institutional concepts plus market structure into single cohesive system
Proprietary Confidence Scoring – Rather than manual setup assessment, automated Smart Money Score quantifies probability by weighting five institutional dimensions into actionable 0-100 rating
Volume-Filtered Quality – Eliminates weak Order Blocks forming without institutional volume confirmation, ensuring displayed zones represent genuine accumulation/distribution
Adaptive Lifecycle Management – Automatically updates mitigation status and removes aged zones preventing trades on dead levels through continuous validity and age monitoring
Educational Integration – Built-in tooltips, labeled zones, and reference panel make indicator functional for both learning Smart Money Concepts and executing strategies
🔬How It Works
Order Block Detection – Scans for patterns where strong directional move follows counter-move creating last down-candle before rally (bullish OB) or last up-candle before sell-off (bearish OB), validates formations only when candle exhibits volume exceeding configurable multiple (default 1.5x) of 20-bar average volume
Fair Value Gap Identification – Compares current candle’s high/low against two-candles-prior low/high to detect price imbalances, calculates gap size as percentage of close and filters micro-gaps below minimum threshold (default 0.3%), monitors whether subsequent price fills 50% triggering mitigation status
Liquidity Zone Mapping – Employs pivot detection using configurable lookback (default 50 bars) to identify swing highs/lows where retail stops cluster, extends horizontal reference lines from pivot creation and applies age-based filtering to remove stale zones
Market Structure Analysis – Tracks pivot progression using structure-specific lookback (default 5 bars) to determine trend, confirms uptrend when new pivot high exceeds previous by minimum move percentage, detects Break of Structure when price breaks recent pivot level, flags Change of Character for potential reversals
Multi-Timeframe Confluence – When enabled, requests security data from higher timeframe (current TF × HTF multiplier, default 4x), compares HTF close against HTF 20-period MA to determine bias, contributes ±50 points to score ensuring alignment with institutional positioning on superior timeframe
Smart Money Score Calculation – Evaluates Order Block component via ATR-normalized distance producing max 100-point contribution weighted at 25%, assesses FVG factor through age penalty and distance at 20% weight, calculates Liquidity proximity at 20%, incorporates structure bias (±50-100 points) at 20%, adds MTF component at 15%, applies 3-period smoothing to reduce volatility
Visual Rendering and Lifecycle – Draws Order Block boxes, Fair Value Gap rectangles with color coding (green/red active, gray mitigated), extends liquidity dashed lines with fade-by-age opacity, plots BOS labels, displays Smart Money Score dashboard, continuously updates checking mitigation conditions and removing elements exceeding age/display limits
💡Note:
The Smart Money Flow Index combines multiple Smart Money Concepts into unified institutional order flow analysis. For optimal results, use the Smart Money Score as confluence filter rather than standalone entry signal – scores above 70 indicate high-probability setups but should be combined with risk management, higher timeframe bias, and market regime understanding.
Fair Value Levels H4 — Institutional Balance ZonesDescription:
This indicator automatically plots the Fair Value (50%) of every 4-hour candle, highlighting the institutional balance zones in price.
Each level represents the midpoint between the high and low of the H4 block — a common area where price seeks equilibrium before continuing its trend.
📌 Main Features:
• Displays all historical H4 Fair Values automatically.
• Option to extend lines infinitely or only until the next H4 block.
• Real-time Fair Value line for the current H4 candle.
• Fully customizable colors, widths, and number of displayed levels.
• Works on any market (indices, forex, gold, crypto, stocks).
⚙️ Use Cases:
• Identify institutional balance points within market structure.
• Validate premium/discount areas in Smart Money Concepts (SMC).
• Confluence tool for price action and structure-based strategies.
💡 Recommended for: traders focusing on institutional concepts, market structure, or equilibrium zones.
Structure Pro by MurshidfxInspired by the 'mentfx Structure' indicator created by Anton (mentfx) on TradingView,
## Overview
Structure Pro tracks market structure by maintaining an adaptive dealing range and its midpoint. Swing highs and lows become structural boundaries, and the script responds to confirmed breakouts by recalculating the active range. Labels highlight the latest trend flip so the chart stays readable while the range evolves.
## Core Logic
- Detects swing highs/lows using a configurable pivot strength and promotes confirmed pivots to structural levels.
- Applies a percentage buffer to decide when price truly breaks structure; once triggered, the opposite boundary is recalculated with an anchor search that looks back through historical bars.
- Computes equilibrium as the midpoint between the current structural high and low so you can gauge premium versus discount zones.
- Emits a single BULL or BEAR label when the trend state changes, keeping only the most recent signal on the chart.
## How to Use
1. Open a clean chart and apply only this script.
2. Select a swing strength that matches the scale you want to monitor (lower values for responsive intraday swings, higher values for broader moves).
3. Tune the structure sensitivity percentage if you prefer tighter or looser confirmation before declaring a breakout.
4. Track DRH/DRL for the current dealing range, use the equilibrium line as a mean-reversion guide, and look to the BULL/BEAR label for structure confirmation.
5. Combine the levels with your own execution, risk, and position rules—this script does not manage orders.
## Inputs
- Swing Point Strength: bars required on both sides to confirm a pivot.
- Structure Break Sensitivity: percentage buffer applied to the range before calling a breakout.
- Dealing Range display: toggles for visibility, line width/color, label text, and label size.
- Equilibrium display: line style, width, and color controls.
- Trend Signals: enable/disable labels, adjust text size, and pick label colors.
## Notes
- Designed for live structure tracking; the script relies on confirmed pivots and does not peek into future data.
- Built to be chart-agnostic for standard candles; non-standard chart types can distort the measurements.
- Published open-source so traders can review and verify the implementation details.
Order Blocks & Market Structure (SMC)# Order Blocks & Market Structure (SMC)
## 📊 Overview
A Smart Money Concepts indicator that identifies institutional order blocks (OB), market structure breaks (MSB), and breaker blocks (BB) with volume-based strength analysis. Designed for traders seeking to identify institutional accumulation/distribution zones and market structure shifts.
## 🎯 Originality Statement
This indicator combines multiple analytical approaches into a unified system:
- **Multi-level OB strength classification** using volume spike detection and body ratio analysis (OB/OB+/OB++)
- **Automatic lifecycle tracking** that converts invalidated Order Blocks to Breaker Blocks with polarity reversal
- **Volume context integration** showing buyer/seller dominance percentage at block formation
- **Dynamic zone extension** that updates OB boundaries until price interaction or invalidation
- **Delayed touch alerts** (5-bar minimum) to filter premature retest signals
Unlike simple order block scripts that only mark zones, this tool provides strength assessment, volume analysis, and intelligent state management throughout the block lifecycle.
## ⚙️ Technical Methodology
**Market Structure Detection:**
Uses pivot-based swing point analysis to identify trend changes. When price closes above a pivot high (bullish MSB) or below a pivot low (bearish MSB), the structure is marked with horizontal reference lines.
**Order Block Identification:**
Searches the specified lookback period for the lowest low (bullish MSB) or highest high (bearish MSB). When a strong directional candle is found (opposite color to trend direction), its range becomes an OB zone.
**Strength Analysis:**
- Compares candle volume against 20-period SMA with configurable multiplier (1.2-3.0x)
- Calculates body-to-range ratio to assess candle strength (0.4-0.8 threshold)
- Assigns strength levels: Standard (no conditions), Strong (one condition), Premium (both conditions)
**Breaker Block Conversion:**
When price closes completely through an OB zone (bullish OB broken downward or bearish OB broken upward), the zone automatically converts to BB with reversed polarity and color.
## 📋 Features
**Market Structure (MSB):**
- Detects bullish and bearish structure breaks
- Configurable swing length (5-50 bars)
- Visual markers with horizontal lines
**Order Blocks (OB):**
- Three strength tiers: OB (standard), OB+ (strong), OB++ (premium)
- Volume percentage display (buyer vs seller dominance)
- Dynamic zone extension until invalidation
**Breaker Blocks (BB):**
- Automatic conversion from failed OBs
- Polarity tracking (bullish ↔ bearish)
- Fixed zones after conversion
## 🔧 Settings Documentation
**Market Structure Group:**
*Show Market Structure* - Enable/disable MSB detection and line drawing
- Default: ON
- When OFF: No structure lines or labels appear
*MSB Labels* - Display text labels at structure break points
- Default: ON
- Labels show "MSB" at the break candle
*Swing Length* - Lookback period for pivot point detection
- Range: 5-50 bars
- Default: 10
- Higher values = longer-term structure, fewer signals
- Lower values = short-term structure, more signals
*Bull Color* - Color for bullish elements (MSB, bullish OB, bullish BB)
- Default: #089981 (green)
*Bear Color* - Color for bearish elements (MSB, bearish OB, bearish BB)
- Default: #f23645 (red)
**Order Block Group:**
*Order Blocks* - Enable/disable OB detection and zone drawing
- Default: ON
- When OFF: No boxes appear (MSB lines still show if enabled)
*OB Strength* - Enable multi-level strength classification
- Default: ON
- When ON: Labels show OB/OB+/OB++ based on analysis
- When OFF: All zones labeled simply as "OB"
*Volume %* - Display buyer/seller volume percentage
- Default: ON
- Shows "X% Buy" or "X% Sell" inside zones
- Calculated over 10 bars from zone formation
*OB Lookback* - How many bars to search for OB candle
- Range: 5-30 bars
- Default: 10
- Searches for lowest low (bullish) or highest high (bearish) within this range
*Vol Threshold* - Minimum volume multiplier for strength upgrade
- Range: 1.2-3.0x
- Default: 1.5x
- Volume must exceed (20-period SMA × threshold) for OB+ or OB++
*Body Ratio* - Minimum body-to-range ratio for strength upgrade
- Range: 0.4-0.8
- Default: 0.6
- Candle body must be at least this proportion of total range for OB+ or OB++
## 📖 How to Use
**For Trend Following:**
1. Wait for MSB in your desired direction
2. OB forms in the breakout area (the institutional entry zone)
3. Price may immediately continue or pull back to retest OB
4. Enter on OB retest with "OB Touch" alert (after 5+ bars from creation)
5. Higher strength OB (OB+, OB++) indicates stronger institutional activity
**For Reversal Trading:**
1. Identify Breaker Blocks (former OBs that failed)
2. BB represents potential reversal zone with opposite polarity
3. Wait for MSB in BB direction for confirmation
4. Enter on pullback to BB zone
**Volume Analysis:**
- 70%+ Buy/Sell dominance = strong institutional bias
- 60-70% = moderate bias
- 50-60% = weak bias, use caution
**Optimal Conditions:**
- Works best on trending markets (4H, Daily, Weekly timeframes)
- Less effective in tight ranges or low-volume periods
- Major pairs/assets with good liquidity recommended
## 🔔 Alert Conditions (8 Types)
The indicator provides the following alerts:
1. **Bullish MSB** - Upward market structure break detected
2. **Bearish MSB** - Downward market structure break detected
3. **Bullish OB Created** - New bullish order block formed
4. **Bearish OB Created** - New bearish order block formed
5. **Bullish BB Created** - Bearish OB converted to bullish BB
6. **Bearish BB Created** - Bullish OB converted to bearish BB
7. **Bullish OB Touch** - Price revisited bullish OB (minimum 5 bars after creation)
8. **Bearish OB Touch** - Price revisited bearish OB (minimum 5 bars after creation)
Touch alerts include a 5-bar delay to avoid alerting on immediate continuation moves.
## ⚠️ Limitations & Risk Disclosure
**Known Limitations:**
- MSB signals can produce whipsaws in ranging or choppy markets
- Not all OB touches result in successful trades
- OB zones may be tested multiple times before activation
- Volume data may be unavailable or unreliable on some instruments/exchanges
- Strength analysis requires sufficient volume history
- Historical repainting: OB zones extend dynamically as price interacts with them
**Risk Considerations:**
This indicator is designed for educational and analytical purposes. It identifies potential institutional zones but does not predict price movement. Past identification of zones does not guarantee future trading success. OB and BB zones represent areas of interest, not guaranteed support/resistance. Always use proper risk management, combine with other analysis methods, and never risk more than you can afford to lose.
## 🎨 Visual Guide
**Colors & Symbols:**
- 🟢 Green boxes = Bullish Order Blocks / Bullish Breaker Blocks
- 🔴 Red boxes = Bearish Order Blocks / Bearish Breaker Blocks
- Horizontal lines = Market Structure Break levels
- "MSB" labels = Structure break points (above/below line)
- "OB" / "OB+" / "OB++" labels = Order Block strength (right side of box)
- "BB" labels = Breaker Block (converted from OB)
- "X% Buy/Sell" labels = Volume analysis (center of box)
**Box Behavior:**
- OB zones extend to the right as long as price interacts with them (not broken)
- When OB is invalidated, it stops extending and converts to BB
- BB zones remain fixed at their invalidation point
## 💡 Best Practices
- Focus on OB+ and OB++ zones for higher probability setups
- Confirm OB touches with price action (rejection wicks, engulfing patterns)
- Use multiple timeframe analysis (Daily OB + 4H entry)
- Avoid trading in the first 1-2 bars after OB creation (wait for touch alert)
- Consider volume % - avoid zones with <60% dominance
- Combine with other confluence factors (Fibonacci, support/resistance)
- Set realistic stop losses beyond the OB/BB zone
---
**Version:** 1.0
**Pine Script:** Version 6
**Category:** Smart Money Concepts, Order Flow, Market Structure
For questions or suggestions, use the TradingView comments section below.
Custom Horizontal Lines | Trade Symmetry📊 Custom Horizontal Lines
🔍 Overview
The Custom Horizontal Lines is a precision utility designed for traders who perform manual higher-timeframe analysis and want to preserve their marked price levels directly on the chart.
It doesn’t calculate or detect anything automatically — instead, it acts as your personal level memory, preserving your analyzed zones and reference prices throughout the session.
Ideal for traders who manually mark the High, Low, Open, Close, Mean Thresholds, and Quarter Levels of Order Blocks, Fair Value Gaps, Inversion Fair Value Gaps and Wicks before the trading day begins.
⚙️ Key Features
✅ Manual Level Entry — Input your analyzed price levels (OB, FVG, WICK,etc) directly into the indicator settings.
✅ Preserved Levels — Once entered, your lines stay visible and consistent — even after switching symbols, timeframes, or reloading the chart.
✅ Supports All Level Types — Store any kind of manually defined level: OB highs/lows, FVG boundaries, Wicks, Mean Thresholds, Quarter levels, or custom reference prices.
✅ Clean Visualization — Customize line color, style, and labels for easy visual organization.
✅ Session-Ready Workflow — Built for pre-market preparation — enter your HTF levels once, and trade around them all day.
✅ No Auto Calculations — 100% manual by design — ensuring only your analyzed levels are shown, exactly as you defined them.
💡 How to Use
Open the indicator’s settings and manually enter those price values.
The indicator will plot and preserve those exact levels on your chart.
Switch to your lower timeframe and observe how price reacts around them — without ever needing to redraw.
🎯 Why It’s Useful
Keeps your HTF levels organized and persistent across sessions.
Saves time by avoiding redrawing.
Fits perfectly into ICT / Smart Money trading workflows.
Ensures full manual control and precision over what’s displayed on your chart.
🧩 Ideal For
ICT and Smart Money traders
Institutional-style manual analysts
Traders marking Mean Thresholds, or Quarter Levels of OBs, FVGs, Wicks etc
Anyone who wants a clean, reliable way to preserve their manual analysis
Market Structure Volume ProfileThis indicator visualizes volume profiles that are dynamically anchored to market structure events, rather than fixed time intervals. It builds these profiles using high-resolution intra-bar data to provide a precise view of where value is established during critical market phases.
Key Features:
Event-Based Profile Anchoring: The indicator starts a new profile based on one of three user-selected events ('Profile Anchor'):
Swing: A new profile begins when the 'impulse baseline' (derived from intra-bar delta) changes. This baseline adjusts when a new price pivot is confirmed: When a price high forms, the baseline moves to the lower of its previous level or the peak delta (max of delta O/C) at the pivot. When a price low forms, it moves to the higher of its previous level or the trough delta (min of delta O/C) at the pivot.
Structure: A new profile begins immediately on the bar that confirms a market structure break (e.g., a new HH or LL, based on a sequence of price pivots).
Delta: A new profile begins immediately on the bar that confirms a break in the cumulative delta's market structure (e.g., a new HH or LL in the delta). Both 'Swing' and 'Delta' anchors are derived from the same continuous (non-resetting) Cumulative Volume Profile Delta (CVPD), which is built from the intra-bar statistical analysis.
Statistical Profile Engine: For each bar in the anchored period, the indicator builds a volume profile on a lower 'Intra-Bar Timeframe'. Instead of simple tick counting, it uses advanced statistical models:
Allocation ('Allot model'): 'PDF' (Probability Density Function) distributes volume proportionally across the bar's range based on an assumed statistical model (e.g., T4-Skew). 'Classic' assigns all volume to the close.
Buy/Sell Split ('Volume Estimator'): 'Dynamic' applies a model that analyzes candle wicks and recent trend to estimate buy/sell pressure. 'Classic' classifies all volume based on the candle color.
Visualization & Lag: The indicator plots the final profile (as a polygon) and the developing statistical lines (POC, VA, VWAP, StdDev).
Note on Lag: All anchor events require Pivot Right Bars for confirmation.
In 'Structure' and 'Delta' mode, the developing lines (POC, VA, etc.) are plotted using a non-repainting method (showing the value from pivRi bars ago).
In 'Swing' mode, the profile is plotted retroactively, starting from the bar where the pivot occurred. The developing lines are also plotted with this full pivRi lag to align with the past data.
Flexible Display Modes: The finalized profile can be displayed in three ways: 'Up/Down' (buy vs. sell), 'Total' (combined volume), and 'Delta' (net difference).
Dynamic Row Sizing: Includes an option ('Rows per Percent') to automatically adjust the number of profile rows (buckets) based on the profile's price range.
Integrated Alerts: Includes 13 alerts that trigger for:
A new profile reset ('Profile was resetted').
Price crossing any of the 6 developing levels (POC, VA High/Low, VWAP, StdDev High/Low).
Alert Lag Assumption: In 'Swing' mode, alerts are delayed to match the retroactively plotted lines. In 'Structure' and 'Delta' modes, alerts fire in real-time based on the current price crossing the current (repainting) value of the metric, which may differ from the non-repainting plotted line.
Caution: Real-Time Data Behavior (Intra-Bar Repainting) This indicator uses high-resolution intra-bar data. As a result, the values on the current, unclosed bar (the real-time bar) will update dynamically as new intra-bar data arrives. This includes the values used for real-time alerts in 'Structure' and 'Delta' modes.
DISCLAIMER
For Informational/Educational Use Only: This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, or trading advice, nor is it a recommendation to buy or sell any asset.
Use at Your Own Risk: All trading decisions you make based on the information or signals generated by this indicator are made solely at your own risk.
No Guarantee of Performance: Past performance is not an indicator of future results. The author makes no guarantee regarding the accuracy of the signals or future profitability.
No Liability: The author shall not be held liable for any financial losses or damages incurred directly or indirectly from the use of this indicator.
Signals Are Not Recommendations: The alerts and visual signals (e.g., crossovers) generated by this tool are not direct recommendations to buy or sell. They are technical observations for your own analysis and consideration.
LibPvotLibrary "LibPvot"
This is a library for advanced technical analysis, specializing
in two core areas: the detection of price-oscillator
divergences and the analysis of market structure. It provides
a back-end engine for signal detection and a toolkit for
indicator plotting.
Key Features:
1. **Complete Divergence Suite (Class A, B, C):** The engine detects
all three major types of divergences, providing a full spectrum of
analytical signals:
- **Regular (A):** For potential trend reversals.
- **Hidden (B):** For potential trend continuations.
- **Exaggerated (C):** For identifying weakness at double tops/bottoms.
2. **Advanced Signal Filtering:** The detection logic uses a
percentage-based price tolerance (`prcTol`). This feature
enables the practical detection of Exaggerated divergences
(which rarely occur at the exact same price) and creates a
"dead zone" to filter insignificant noise from triggering
Regular divergences.
3. **Pivot Synchronization:** A bar tolerance (`barTol`) is used
to reliably match price and oscillator pivots that do not
align perfectly on the same bar, preventing missed signals.
4. **Signal Invalidation Logic:** Features two built-in invalidation
rules:
- An optional `invalidate` parameter automatically terminates
active divergences if the price or the oscillator breaks
the level of the confirming pivot.
- The engine also discards 'half-pivots' (e.g., a price pivot)
if a corresponding oscillator pivot does not appear within
the `barTol` window.
5. **Stateful Plotting Helpers:** Provides helper functions
(`bullDivPos` and `bearDivPos`) that abstract away the
state management issues of visualizing persistent signals.
They generate gap-free, accurately anchored data series
ready to be used in `plotshape` functions, simplifying
indicator-side code.
6. **Rich Data Output:** The core detection functions (`bullDiv`, `bearDiv`)
return a comprehensive 9-field data tuple. This includes the
boolean flags for each divergence type and the precise
coordinates (price, oscillator value, bar index) of both the
starting and the confirming pivots.
7. **Market Structure & Trend Analysis:** Includes a
`marketStructure` function to automatically identify pivot
highs/lows, classify their relationship (HH, LH, LL, HL),
detect structure breaks, and determine the current trend
state (Up, Down, Neutral) based on pivot sequences.
---
**DISCLAIMER**
This library is provided "AS IS" and for informational and
educational purposes only. It does not constitute financial,
investment, or trading advice.
The author assumes no liability for any errors, inaccuracies,
or omissions in the code. Using this library to build
trading indicators or strategies is entirely at your own risk.
As a developer using this library, you are solely responsible
for the rigorous testing, validation, and performance of any
scripts you create based on these functions. The author shall
not be held liable for any financial losses incurred directly
or indirectly from the use of this library or any scripts
derived from it.
bullDiv(priceSrc, oscSrc, leftLen, rightLen, depth, barTol, prcTol, persist, invalidate)
Detects bullish divergences (Regular, Hidden, Exaggerated) based on pivot lows.
Parameters:
priceSrc (float) : series float Price series to check for pivots (e.g., `low`).
oscSrc (float) : series float Oscillator series to check for pivots.
leftLen (int) : series int Number of bars to the left of a pivot (default 5).
rightLen (int) : series int Number of bars to the right of a pivot (default 5).
depth (int) : series int Maximum number of stored pivot pairs to check against (default 2).
barTol (int) : series int Maximum bar distance allowed between the price pivot and the oscillator pivot (default 3).
prcTol (float) : series float The percentage tolerance for comparing pivot prices. Used to detect Exaggerated
divergences and filter out market noise (default 0.05%).
persist (bool) : series bool If `true` (default), the divergence flag stays active for the entire duration of the signal.
If `false`, it returns a single-bar pulse on detection.
invalidate (bool) : series bool If `true` (default), terminates an active divergence if price or oscillator break
below the confirming pivot low.
Returns: A tuple containing comprehensive data for a detected bullish divergence.
regBull series bool `true` if a Regular bullish divergence (Class A) is active.
hidBull series bool `true` if a Hidden bullish divergence (Class B) is active.
exgBull series bool `true` if an Exaggerated bullish divergence (Class C) is active.
initPivotPrc series float Price value of the initial (older) pivot low.
initPivotOsz series float Oscillator value of the initial pivot low.
initPivotBar series int Bar index of the initial pivot low.
lastPivotPrc series float Price value of the last (confirming) pivot low.
lastPivotOsz series float Oscillator value of the last pivot low.
lastPivotBar series int Bar index of the last pivot low.
bearDiv(priceSrc, oscSrc, leftLen, rightLen, depth, barTol, prcTol, persist, invalidate)
Detects bearish divergences (Regular, Hidden, Exaggerated) based on pivot highs.
Parameters:
priceSrc (float) : series float Price series to check for pivots (e.g., `high`).
oscSrc (float) : series float Oscillator series to check for pivots.
leftLen (int) : series int Number of bars to the left of a pivot (default 5).
rightLen (int) : series int Number of bars to the right of a pivot (default 5).
depth (int) : series int Maximum number of stored pivot pairs to check against (default 2).
barTol (int) : series int Maximum bar distance allowed between the price pivot and the oscillator pivot (default 3).
prcTol (float) : series float The percentage tolerance for comparing pivot prices. Used to detect Exaggerated
divergences and filter out market noise (default 0.05%).
persist (bool) : series bool If `true` (default), the divergence flag stays active for the entire duration of the signal.
If `false`, it returns a single-bar pulse on detection.
invalidate (bool) : series bool If `true` (default), terminates an active divergence if price or oscillator break
above the confirming pivot high.
Returns: A tuple containing comprehensive data for a detected bearish divergence.
regBear series bool `true` if a Regular bearish divergence (Class A) is active.
hidBear series bool `true` if a Hidden bearish divergence (Class B) is active.
exgBear series bool `true` if an Exaggerated bearish divergence (Class C) is active.
initPivotPrc series float Price value of the initial (older) pivot high.
initPivotOsz series float Oscillator value of the initial pivot high.
initPivotBar series int Bar index of the initial pivot high.
lastPivotPrc series float Price value of the last (confirming) pivot high.
lastPivotOsz series float Oscillator value of the last pivot high.
lastPivotBar series int Bar index of the last pivot high.
bullDivPos(regBull, hidBull, exgBull, rightLen, yPos)
Calculates the plottable data series for bullish divergences. It manages
the complex state of a persistent signal's plotting window to ensure
gap-free and accurately anchored visualization.
Parameters:
regBull (bool) : series bool The regular bullish divergence flag from `bullDiv`.
hidBull (bool) : series bool The hidden bullish divergence flag from `bullDiv`.
exgBull (bool) : series bool The exaggerated bullish divergence flag from `bullDiv`.
rightLen (int) : series int The same `rightLen` value used in `bullDiv` for correct timing.
yPos (float) : series float The series providing the base Y-coordinate for the shapes (e.g., `low`).
Returns: A tuple of three `series float` for plotting bullish divergences.
regBullPosY series float Contains the static anchor Y-value for Regular divergences where a shape should be plotted; `na` otherwise.
hidBullPosY series float Contains the static anchor Y-value for Hidden divergences where a shape should be plotted; `na` otherwise.
exgBullPosY series float Contains the static anchor Y-value for Exaggerated divergences where a shape should be plotted; `na` otherwise.
bearDivPos(regBear, hidBear, exgBear, rightLen, yPos)
Calculates the plottable data series for bearish divergences. It manages
the complex state of a persistent signal's plotting window to ensure
gap-free and accurately anchored visualization.
Parameters:
regBear (bool) : series bool The regular bearish divergence flag from `bearDiv`.
hidBear (bool) : series bool The hidden bearish divergence flag from `bearDiv`.
exgBear (bool) : series bool The exaggerated bearish divergence flag from `bearDiv`.
rightLen (int) : series int The same `rightLen` value used in `bearDiv` for correct timing.
yPos (float) : series float The series providing the base Y-coordinate for the shapes (e.g., `high`).
Returns: A tuple of three `series float` for plotting bearish divergences.
regBearPosY series float Contains the static anchor Y-value for Regular divergences where a shape should be plotted; `na` otherwise.
hidBearPosY series float Contains the static anchor Y-value for Hidden divergences where a shape should be plotted; `na` otherwise.
exgBearPosY series float Contains the static anchor Y-value for Exaggerated divergences where a shape should be plotted; `na` otherwise.
marketStructure(highSrc, lowSrc, leftLen, rightLen, srcTol)
Analyzes the market structure by identifying pivot points, classifying
their sequence (e.g., Higher Highs, Lower Lows), and determining the
prevailing trend state.
Parameters:
highSrc (float) : series float Price series for pivot high detection (e.g., `high`).
lowSrc (float) : series float Price series for pivot low detection (e.g., `low`).
leftLen (int) : series int Number of bars to the left of a pivot (default 5).
rightLen (int) : series int Number of bars to the right of a pivot (default 5).
srcTol (float) : series float Percentage tolerance to consider two pivots as 'equal' (default 0.05%).
Returns: A tuple containing detailed market structure information.
pivType series PivType The type of the most recently formed pivot (e.g., `hh`, `ll`).
lastPivHi series float The price level of the last confirmed pivot high.
lastPivLo series float The price level of the last confirmed pivot low.
lastPiv series float The price level of the last confirmed pivot (either high or low).
pivHiBroken series bool `true` if the price has broken above the last pivot high.
pivLoBroken series bool `true` if the price has broken below the last pivot low.
trendState series TrendState The current trend state (`up`, `down`, or `neutral`).
Advanced Time TechniqueAdvanced Time Technique (ATT)
The Advanced Time Technique (ATT) identifies mathematically significant price levels based on candle count sequences within higher timeframes. The indicator tracks specific numerical patterns to project potential reversal zones.
Calculation Methodology:
- Monitors candle cycles in user-selected higher timeframes (1H, 2H, 3H)
- Identifies key candle counts: 3, 11, 17, 29, 41, 47, 53, 59
- Projects these counts as visual markers on the current chart
- Uses pure price action without lagging indicators
Key Features:
- HTF Candle Boxes: Displays higher timeframe candle ranges as colored boxes
- ATT Circles: Places circular markers at specified candle counts
- Multi-timeframe Analysis: References 1-hour, 2-hour, or 3-hour timeframes
- Prediction Labels: Shows upcoming ATT levels within user-defined range
- Historical Display: Optional viewing of past ATT markers
Visual Components:
- Colored boxes representing HTF candle ranges (bullish/bearish)
- Circle markers positioned above/below bars based on candle color
- Optional numerical display on ATT circles
- Customizable colors and transparency settings
Trading Applications:
- Identifies potential reversal zones at mathematically significant intervals
- Highlights liquidity concentration areas
- Useful for intraday and scalp trading strategies
- Complements price action and market structure analysis
The indicator works by counting candles within the selected higher timeframe and marking specific numerical sequences where price reactions commonly occur.
Multi Pivot Trend [BigBeluga]🔵 OVERVIEW
The Multi Pivot Trend is an advanced market-structure-driven trend engine that evaluates trend strength by scanning multiple pivot breakouts simultaneously.
Instead of relying on a single swing length, it tracks breakouts across ten increasing pivot lengths — then averages their behavior to produce a smooth, reliable trend reading.
Mitigation logic (close, wick, or HL2 touches) controls how breakouts are confirmed, giving traders institutional-style flexibility similar to BOS/CHoCH validation rules.
This indicator not only colors candles based on trend strength, but also extends trend strength and volatility-scaled projection candles to show where trend pressure may expand next.
Pivot breakout lines and labels mark key changes, making the trend transitions extremely clear.
🔵 CONCEPTS
Market trend strength is reflected by multiple pivot breakouts, not just one.
The indicator analyzes ten pivot structures from smaller to larger swings.
Each bullish or bearish pivot breakout contributes to trend score.
Mitigation options (close / wick / HL2) imitate smart-money breakout confirmation logic.
Trend score is averaged and translated into colors and extension bars.
Neutral regime ≈ weak trend or transition zone (trend compression).
🔵 FEATURES
Multi-Pivot Engine — tracks 10 pivot-based trend signals simultaneously.
Mitigation Modes :
• Close — breakout requires candle close beyond pivot
• Wicks — breakout requires wick violation
• HL2 — breakout confirmed when average (H+L)/2 crosses level
Dynamic Color System :
• Blue → confirmed bullish rotation
• Red → confirmed bearish rotation
• Orange → neutral / transition state
Breakout Visualization — draws pivot breakout lines in real-time.
Trend Labels — prints trend %.
Trend Volatility-Scaled Extension Candles — ATR/trend strength based candle projections show momentum continuation strength.
Gradient Pivot Encoding — higher pivot lengths = deeper structure considered.
🔵 HOW TO USE
Use strong blue/red periods to follow dominant structural trend.
Watch for color transition into orange — possible trend change or consolidation.
Pivot breakout lines help validate structure shifts without clutter.
Wick mitigation catches aggressive liquidity-sweep based breaks.
Close/HL2 mitigation catches cleaner market structure rotations.
Extension bars visualize trend pressure — large extensions = strong push.
Best paired with volume or volatility confirmation tools.
🔵 CONCLUSION
The Multi Pivot Trend is a structural trend recognition system that blends multiple pivot breakouts into one clean trend score — with institutional-style mitigation logic and volatility-projected trend extensions.
It gives traders a powerful, visually intuitive way to track momentum, spot trend rotations early, and understand true structural flow beyond simple MA-based approaches.
Use it to stay aligned with the dominant swing direction while avoiding noise and false flips.
#1 Vishal Toora Buy/Sell Table#1 Vishal Toora Buy/Sell Table
A multi-range volume analysis tool that tracks Short, Medium, and Long-term volume activity directly from recent candles.
It calculates Buy and Sell volumes for each range, shows their Delta (difference), and generates a combined Signal (Buy / Sell / Neutral) based on all active ranges.
Each column and the Signal row can be switched ON/OFF for custom clarity.
🧠 What the Numbers Represent (Candle Connection)
Each number represents total volume from a group of candles:
The script looks back a certain number of candles in each range (e.g., 2–3 candles for Short, 10–20 for Medium, 50–100 for Long).
It measures how much volume occurred on bullish candles (Buy) vs bearish candles (Sell).
Buy Volume (Green Numbers):
Volume from candles where price closed higher than it opened → bullish pressure.
Sell Volume (Red Numbers):
Volume from candles where price closed lower than it opened → bearish pressure.
Delta (White or Yellow Numbers):
The difference between Buy and Sell volumes within that range.
Positive → More bullish volume.
Negative → More bearish volume.
Larger absolute values = stronger imbalance between buyers and sellers.
Signal Row:
Summarizes all ranges’ deltas:
🟢 Buy → majority of ranges show positive delta.
🔴 Sell → majority show negative delta.
⚪ Neutral → roughly balanced or mixed candle behavior.
🎯 In Simple Terms
Each number in the table is a summary of what recent candles did —
it converts multiple candles’ volume data into clean, readable signals,
so you instantly see who’s in control (buyers or sellers) across short, medium, and long perspectives.
© 2025 Vishal Toora — counting volumes so you don’t have to.
Buy or Sell... or just stare at the screen.
Making deltas speak louder than your ex. 💀
Disclaimer:
This indicator is for educational and informational purposes only.
It does not guarantee accuracy or performance.
You are solely responsible for your trading decisions.
AEON | Liquidity HunterA visual tool for identifying high-probability liquidity zones across multiple timeframes and sessions.
Overview
Liquidity Hunter is a multi-timeframe, all market tool designed to help traders visualise areas where price may be drawn in search of resting liquidity. These liquidity zones often align with swing highs and lows, session extremes, or significant higher-time-frame reference points.
Rather than producing entry or exit signals, this indicator aims to support market behaviour analysis and contextual awareness.
Core Functions
The indicator identifies potential liquidity areas using four optional methods:
1. Current Time Frame Analysis – Automatically locates swing highs and lows based on a customisable setting for sensitivity and lookback depth.
2. Higher Time Frame Analysis – Uses the same logic as above, but projects liquidity zones from a selected higher time frame (HTF).
3. Session Highs & Lows – Highlights the Asian, London, New York, or user-defined session extremes where liquidity commonly pools.
4. Time-Based Highs & Lows – Marks the final bar of any higher time frame (for example, the last H4 or D1 candle) to show potential liquidity reference points.
Each method can be enabled or disabled independently and visually customised, allowing traders to tailor the display to their preferred style and time frame.
How to Use
When applied, the indicator plots horizontal levels representing potential liquidity pools. These levels persist until price engages with or mitigates them, at which point users can opt to modify their visual style or delete them as preferred.
Adjusting the sensitivity of the current and higher time frame levels may reflect the market's likelihood of treating them as targets or reversal points.
Many traders combine these levels with concepts such as market structure shifts, displacement, or fair-value gaps to build a narrative around price behaviour.
Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice or a trade signal. Past performance or visual confluence does not guarantee future results.
---
About the Author
Created by a passionate developer focused on algorithmic and quantitative concepts.
Swing High/Low (Adaptive)Swing High/Low (Adaptive)
Overview
The Indicator is a pivot point detection tool that identifies swing highs and lows with invalidation tracking. The key differentiator of this indicator is its adaptive invalidation system . Most pivot indicators simply mark every detected pivot without considering whether subsequent price action has made earlier pivots less relevant.
How It Works
The indicator uses Pine Script's native ta.pivotlow() and ta.pivothigh() functions combined with custom logic to detect swing points. The adaptive algorithm evaluates each potential pivot against the following criteria:
For Low Pivots:
Confirms a new low pivot when it's the next expected pivot type in the swing sequence
If consecutive lows occur, only accepts a new low if it's lower than the previous low
Marks the previous low as invalidated when a stronger low is detected
For High Pivots:
Confirms a new high pivot when it's the next expected pivot type in the swing sequence
If consecutive highs occur, only accepts a new high if it's higher than the previous high
Marks the previous high as invalidated when a stronger high is detected
This approach ensures that the indicator maintains clean swing structure and automatically adjusts when price action creates stronger pivots, providing a more realistic view of support and resistance levels.
Settings
Pivot Settings:
Left Bars : Number of bars to the left required for pivot confirmation (default: 5)
Right Bars : Number of bars to the right required for pivot confirmation (default: 5)
Pivot Display Settings:
Toggle visibility for low and high pivots independently
Customizable colors for valid pivot markers
Low pivots marked with upward triangle (▲)
High pivots marked with downward triangle (▼)
Invalid Pivot Settings:
Optional display of invalidated pivots
Separate color customization for invalid low and high pivots
Helps visualize where market structure expectations changed
ZigZag Settings:
Toggle ZigZag line display on/off
Separate colors for upward and downward price swings
Adjustable line width
Use Cases
1. Market Structure Analysis
Identify key swing points to understand the current market structure and trend direction. The adaptive invalidation feature ensures you're always looking at the most relevant pivots.
2. Support and Resistance Identification
Use confirmed swing highs and lows as potential support and resistance levels for entry and exit planning.
3. Trend Confirmation
The ZigZag visualization helps confirm trends by showing the sequence of higher highs and higher lows (uptrend) or lower highs and lower lows (downtrend).
Disclaimer
This indicator is designed as a technical analysis tool and should be used in conjunction with other forms of analysis and proper risk management. Past performance does not guarantee future results, and traders should thoroughly test any strategy before implementing it with real capital.






















