Volume Weighted Average Price AdvancedVWAP (Advanced) with Multi‑Venue Aggregation and Historical Value Areas
Core: Anchored VWAP with configurable anchor (session/week/month/quarter/year/decade/century or corporate events), offset, and up to three standard-deviation bands.
Multi‑Venue Aggregation: Optionally pull price/volume from up to 5 additional exchanges/symbols (pair-matched by default). VWAP/σ are computed on the aggregated price*volume.
Value Area Blocks: Each completed anchor draws a block from the chosen basis (±1σ or ±2σ) or an optional percentile-based range (default 20–80%). Blocks project to the exact next anchor boundary, or you can extend them to the latest bar. Prior-period VWAP lines are shown inside the blocks.
Volume Gate: Optionally skip drawing prior blocks when the anchor’s aggregated volume is below a median/mean baseline times a multiplier.
HTF Context: Optional higher-timeframe VWAP overlay; can filter the current VWAP/bands so they only show when aligned with the HTF VWAP.
Venue Health: Label shows how many extra venues were included (non‑na) and median venue volume; flags divergence when primary volume is below venue median × threshold.
Alerts: Price in current value area (VWAP ±1σ) and price crossing the most recent prior VWAP.
Styling: Bands and fills are minimal; HTF VWAP is a distinct line; value-area blocks are shaded with prior VWAP lines inside.
Configure via the grouped inputs: VWAP Settings, Additional Exchange Sources, Historical Value Areas, HTF Context, and Bands Settings.
Multi
Trend Catcher - Divergences v2 - by Crypto_Dan_CroIf you want to get this indicator, contact me on
X handle: @crypto_dan_cro
What is Trend Catcher - Divergences v2?
It's advanced TradingView indicator designed to automatically detect and visualize divergences between price action and the RSI indicator, enhanced with smart filtering and visual strength analysis.
This tool helps traders identify potential trend reversals, continuation opportunities, and areas of weakening momentum with high clarity and precision.
Key Features
Automatic Detection of Divergences:
- Bullish divergence
- Bearish divergence
- Hidden bullish divergence
- Hidden bearish divergence
Overlap Prevention System
When bullish and bearish divergences occur in the same zone, the script intelligently prioritizes the stronger and more reliable signal to avoid confusion and clutter.
Visual Chart Rendering
Each divergence is displayed with:
- A line connecting key swing points
- A label showing: Divergence type, Active confirmation filter, Signal strength (Weak / Medium / Strong / Extreme)
Divergence Strength Heatmap
The indicator includes a Heatmap system that visually represents divergence strength using color intensity:
- Weak divergences appear lighter and more transparent
- Strong divergences appear bold and highly visible
Strength Classification Levels
Every divergence is categorized into one of four levels: Weak, Medium, Strong, Extreme
Confirmation Filters
- RSI + Trend Filter (recommended)
- RSI + MACD
- RSI + OBV
- MACD + Price Action
Multi-Timeframe Information Panels
ACTUAL DIVERGENCES
Displays currently active divergences across timeframes
LATEST DIVERGENCES
Shows the most recent divergence detected on each timeframe
Included timeframes:
15m, 30m, 1h, 4h, 8h, 12h, 1D, 3D, 1W, 1M
Ideal Use Cases
This indicator is perfect for:
- Swing trading
- Identifying reversal zones
- Momentum exhaustion detection
- Supporting price action strategies
- Trend confirmation and filtering
Trend Catcher – Divergences v2 provides a powerful yet clear approach to divergence trading by combining:
- Smart logic
- Visual clarity
- Strenght analysis
- Reliable filtering
It is built for traders who want precision, clarity, and confidence when trading divergences.
Crypto markets are volatile, if you choose to use this indicator for trading, you are doing it on your own. Crypto_dan_cro is not responsible for any profits or losses created by using this Indicator.
Stochastic Pro+ Suite📚 What Is the Stochastic Oscillator?
The stochastic oscillator is a momentum indicator comparing a security's closing price to its price range over a set number of periods. The %K line represents the raw stochastic value, while the %D line is a smoothed moving average of %K.
Stochastic helps identify:
Overbought and oversold conditions
Bullish and bearish crossovers
Momentum shifts before price reversals
It is widely used in both trending and ranging markets.
💡 What Makes This Suite Different?
This script supercharges the traditional stochastic with a multi-timeframe engine , divergence detection , and a highly customizable visual suite , including:
✅ Core Features:
- Multi-Timeframe (%K, %D, Spread): Pulls stochastic data from any higher timeframe for improved signal quality.
- Custom Overbought/Oversold Levels: Fully adjustable OB/OS thresholds (default: 80/20).
- %K-%D Spread Histogram: View the difference between %K and %D visually as a histogram.
- Color-coded Cross Highlights: Optional background shading for key crossover events in OB/OS zones (high probability reversal areas).
🔍 Divergence Detection (Optional):
- Bullish Divergence: Price makes lower lows while %K makes higher lows.
- Bearish Divergence: Price makes higher highs while %K makes lower highs.
- Customizable pivot lookbacks and range filters to control divergence strictness.
- Visual divergence labels plotted directly on the oscillator.
🎛️ Fully Toggleable Visuals:
Show/hide %K, %D, OB/OS lines, spread histogram, background highlight, and divergence — all via simple checkboxes.
🔔 Alerts:
Set alerts for both bullish and bearish divergences — ideal for swing, day, or trend reversal strategies.
⚙️ Use Cases
- Spot exhaustion in overbought/oversold zones
- Confirm or filter entries with divergence signals
- Monitor multiple timeframes without switching charts
- Use as a signal tool in confluence with price action or volume indicators
⚠️ Disclaimer
This tool is for educational and informational purposes only. It does not constitute financial advice, trading advice, or investment guidance. Always do your own research and consult a qualified financial advisor before making trading decisions.
IMS 4H Structural Framework (MA / Pivot / MTF Levels)IMS 4H Structural Framework (MA / Pivot / MTF Levels)
✅ SHORT, COMPLIANT DESCRIPTION (Invite-Only Safe)
Description:
This tool visualizes a 4H Institutional Market Structure (IMS) framework by combining three workflow components into a single structural map—MA-based bias shifts, pivot-derived 4H trendlines, and multi-timeframe (1H/45m) structural levels.
It does not generate signals or performance claims.
The framework is designed purely for visual, discretionary analysis of structural flow, risk context, and higher-timeframe alignment.
Core Components:
• 4H Bias Shift (MA): Highlights directional bias transitions.
• 4H Trendlines (Pivot-Based): Shows structural slopes and reaction zones.
• MTF Levels (1H & 45m): Adds micro-structure inside the 4H box for refinement.
• Caution Zones: Marks potential reaction areas near support/resistance or trendlines.
• Dashboard: Displays bias context and educational guidance only.
Intended Use:
For traders who analyze 4H structural flow and wish to visualize bias, context, and multi-timeframe alignment—not for automation or signals.
________________________________________
✅ SHORT, SAFE DISCLAIMER (Invite-Only Approved)
Disclaimer:
This tool is for educational and informational purposes only.
It does not provide trading signals, financial advice, or performance guarantees.
All decisions remain solely with the user.
LE ScannerGENERAL OVERVIEW:
The LE Scanner is a multi-ticker dashboard that scans up to 20 tickers in real time and displays their current trend, price, volume, and key level conditions directly on your chart. It tracks how each ticker interacts with both the Previous Day’s High/Low (PDH/PDL) and Pre-Market High/Low (PMH/PML) to determine whether price is breaking above, below, or remaining inside those levels. The indicator automatically classifies each ticker as Bullish, Bearish, or Neutral based on these break conditions.
This indicator was developed by Flux Charts in collaboration with Ellis Dillinger (Ellydtrades).
What is the purpose of the indicator?:
The LE Scanner helps traders keep track of up to 20 tickers at once without switching between charts. It puts all the key information in one place, including price, daily percentage change, volume, and how each ticker is reacting around the previous day’s and pre-market highs and lows. The layout is simple and easy to read, with progress bars that show where price is relative to those levels. The goal is to save time and make it easier to understand market strength and weakness across your watchlist.
What’s the theory behind the indicator?:
The LE Scanner is built around the idea that key levels define bias. The previous day’s high and low show where the market traded most actively during the prior session, and the pre-market range reveals how price behaved before the open. When a ticker breaks both the previous day’s high and the pre-market high, it shows that buyers are in control. When it breaks both the previous day’s low and the pre-market low, sellers are in control. If neither side has full control, the bias is seen as neutral.
LE SCANNER FEATURES:
Multi-Ticker Dashboard
Key Level Tracking
Trend Classification
Sorting
Customization
Multi-Ticker Dashboard:
The LE Scanner can monitor up to 20 tickers at the same time. Each ticker has its own row in the dashboard showing:
Ticker Name
Current Price
Volume
Daily % Change
PDH Break
PDL Break
PMH Break
PML Break
Trend (bullish, bearish, or neutral)
You can enable or disable each ticker individually, so if you only want to track 5 or 10 tickers, you can simply toggle the rest off. Each ticker input lets you type in any valid ticker that’s available on TradingView.
Ticker Name:
Shows the ticker you selected in your input settings
Current Price:
Displays the latest price of that ticker based on your chart’s selected timeframe.
Volume:
Tracks the total trading volume for the current session.
Daily % Change:
Measures how much price has moved since the previous session’s close.
The remaining elements of the dashboard are explained in full detail throughout the remaining sections of this write-up.
Key Level Tracking:
The core of the LE Scanner is its ability to track and visualize how price interacts with four key levels for every ticker:
Previous Day High (PDH)
Previous Day Low (PDL)
Pre-Market High (PMH)
Pre-Market Low (PML)
These levels are updated automatically and compared to the current market price for each ticker inputted into the indicator. They show you whether the market is staying inside yesterday’s range or expanding beyond it.
🔹Previous Day High (PDH) & Previous Day Low (PDL)
The Previous Day High (PDH) marks where price reached its highest point during the last full trading session, while the Previous Day Low (PDL) marks the lowest point. Together, they define the previous day’s range and help traders understand where price is trading relative to that prior structure.
When the current price of a user-selected ticker moves above the PDH, it signals that buyers are taking control and that the ticker is now trading above yesterday’s range. In the dashboard, this change triggers a 🟢 icon under the “PDH Break” column. Once the PDH Break is confirmed, the opposite PDL Break column for that same ticker becomes blank.
When the current price of the user-selected ticker moves below the PDL, it shows that sellers are taking control and that the ticker is trading below yesterday’s range. In the dashboard, this change triggers a 🔴 icon under the “PDL Break” column. Once the PDL Break is confirmed, the opposite PDH Break column for that same ticker becomes blank.
🔹 Pre-Market High (PMH) & Pre-Market Low (PML)
The Pre-Market High (PMH) and Pre-Market Low (PML) show where price reached its highest and lowest points before the main trading session begins. On most U.S. exchanges, the pre-market session is from 4:00 AM to 9:29 AM Eastern Standard Time (EST), just before the New York session opens at 9:30 AM EST. These levels are important because they reflect how traders positioned themselves during the early morning hours. Many traders use the pre-market session to react to overnight news. The PMH and PML outline that entire pre-market range, showing where buyers and sellers fought for control and where the early balance between the two sides was established before the market opens.
When the current price of a ticker moves above the Pre-Market High, it means buyers are in control and that price has pushed through the top of the pre-market range. In the dashboard, this triggers a 🟢 icon under the “PMH Break” column. Once this break is confirmed, the opposite PML Break column for that ticker becomes blank.
When the current price moves below the Pre-Market Low, it means sellers are in control and that price has fallen beneath the pre-market range. In the dashboard, this triggers a 🔴 icon under the “PML Break” column. Once a PML Break is confirmed, the opposite PMH Break column for that ticker becomes blank.
🔹Progress Bars
The LE Scanner indicator includes progress bars that show how far the current price is from key levels.
When price is between the Previous Day High (PDH) and Previous Day Low (PDL), the progress bar measures price’s distance relative to those two points.
When price is between the Pre-Market High (PMH) and Pre-Market Low (PML), the bar tracks how far price is from those pre-market boundaries.
The closer price gets to either side, the more the bar fills, giving you a quick visual sense of how close a breakout or breakdown might be. A bar that’s nearly full means price is approaching one of the levels, while a shorter bar means it’s still far away from it. By seeing this relationship directly in the dashboard, you can see which tickers are getting ready to test key levels without flipping through multiple charts.
🔹PDH Progress Bar
The PDH progress bar measures how close price is to breaking above the previous day’s high.
When the bar is nearly full, it means the current price is trading just below yesterday’s high.
When the bar is low or mostly empty, it means price is far from the PDH and trading near the middle or lower end of the previous day’s range.
Once price breaks above the PDH, the progress bar is replaced with a green confirmation icon in the PDH Break column.
🔹Previous Day Low (PDL) Progress Bar
The PDL progress bar measures how close price is to breaking below the previous day’s low.
When the bar is nearly full, it means the current price is trading just above yesterday’s low.
When the bar is low or mostly empty, it means price is far from the PDL and trading near the middle or upper end of the previous day’s range.
Once price breaks below the PDL, the progress bar is replaced with a red confirmation icon in the PDL Break column.
🔹Pre-Market High (PMH) Progress Bar
The PMH progress bar shows how close price is to breaking above the pre-market high.
When the bar is nearly full, it means the current price is trading just below the pre-market high.
When the bar is low or mostly empty, it means price is far from the PMH and trading near the middle or lower end of the pre-market range.
Once price breaks above the PMH, the progress bar is replaced with a green confirmation icon in the PMH Break column.
🔹Pre-Market Low (PML) Progress Bar
The PML progress bar shows how close price is to breaking below the pre-market low.
When the bar is nearly full, it means the current price is trading just above the pre-market low.
When the bar is low or mostly empty, it means price is far from the PML and trading near the middle or upper end of the pre-market range.
Once price breaks below the PML, the progress bar is replaced with a red confirmation icon in the PML Break column.
Trend Classification:
The LE Scanner automatically classifies each user-inputted ticker as bullish, bearish, or neutral based on how price is interacting with its key levels.
Each trend type follows a specific set of conditions and is displayed in its own column under Trend on the dashboard.
🔹 Bullish Trend
A bullish trend occurs when price has broken above both the Previous Day High (PDH) and the Pre-Market High (PMH). This shows that buyers are in full control and that the ticker is trading firmly above the prior session’s and pre-market range.
When this condition is met, the Trend column displays a green background with an upward-facing triangle icon (▲).
🔹 Bearish Trend
A bearish trend occurs when price has broken below both the Previous Day Low (PDL) and the Pre-Market Low (PML). This indicates that sellers are in control and that the ticker is trading firmly below the prior session’s and pre-market range.
When this happens, the Trend column switches to a red background with a downward-facing triangle icon (▼).
🔹 Neutral Trend
A neutral trend occurs when price is trading inside the range, meaning it hasn’t broken above the PDH/PMH or below the PDL/PML. This indicates that neither bulls nor bears has clear control, and the ticker is consolidating between the prior session’s and pre-market range.
When this condition is active, the Trend column appears with a warning sign icon (⚠️). This helps distinguish tickers that are still forming setups from those that have already shown decisive strength or weakness.
Sorting:
The LE Scanner includes a built-in sorting feature that lets you reorder the dashboard in either descending or ascending order based on one of four metrics:
% Change
Volume
Price
Trend
Sorting is handled directly in the indicator settings, where you can toggle “Sort By” and then select your preferred Sort By criteria and Order (Ascending or Descending). When enabled, the dashboard automatically repositions every ticker to match the selected sorting method.
🔹 % Change Sorting
When you sort by % Change, the dashboard ranks tickers based on their daily percentage movement relative to the previous session’s close.
If you choose descending order, the biggest gainers appear at the top.
If you choose ascending order, the biggest decliners appear at the top.
🔹 Volume Sorting
When you sort by Volume, the dashboard arranges tickers based on their total traded volume for the current session.
If you choose descending order, the highest-volume tickers appear at the top.
If you choose ascending order, the lowest-volume tickers appear at the top.
🔹 Price Sorting
When you sort by Price, the dashboard arranges tickers by their current market price.
If you choose descending order, the highest-priced tickers appear at the top.
If you choose ascending order, the lowest-priced tickers appear at the top.
🔹 Trend Sorting
When you sort by Trend, the dashboard organizes tickers based on their directional classification.
If you choose descending order, bullish tickers appear first, followed by neutral and bearish.
If you choose ascending order, bearish tickers appear first, followed by neutral and bullish.
Customization:
The LE Scanner includes several settings that let you customize how the dashboard appears on your chart. All visual and positional elements can be adjusted to fit your personal layout preferences.
🔹 Dashboard Position
You can move the dashboard anywhere on your chart using the “Table Position” setting. Options include:
Bottom-Center
Bottom-Left
Bottom-Right
Middle-Center
Middle-Left
Middle-Right
Top-Center
Top-Left
Top-Right
🔹 Dashboard Size
The dashboard size can be adjusted to be larger or smaller. Users can choose between the following options:
Tiny
Small
Normal
Large
Huge
🔹 Color Customization
All color elements in the dashboard are customizable. You can change the following:
Background Color
Border Color
Frame Color
Text Color
Bullish Trend Color
Bearish Trend Color
Important Notes:
Because the LE Scanner tracks multiple tickers and updates all data in real time, it performs several background calculations at once. On rare occasions, this can cause the following issue:
Computation Error:
Scanning up to 20 tickers at the same time requires multiple request.security() calls. This process is resource-intensive and can sometimes trigger a calculation timeout message in TradingView. If this occurs, simply force the indicator to refresh by changing one of its settings (for example, toggling a ticker off and back on) or by removing and re-adding the indicator to your chart.
Uniqueness:
The LE Scanner is unique because it combines real-time multi-ticker tracking, sortable data, and visual feedback into one tool. It can track up to 20 tickers simultaneously, automatically sort them by % change, volume, price, or trend. The built-in progress bars provide a clear visual of how close price is to breaking key levels, while the trend classification instantly shows whether each ticker is bullish, bearish, or neutral.
Multitimeframe Stochastic RSIIndicator is Combining 4 different timeframe Stochastic RSI and show buy signal when all of them are oversold and sell signal when all of them are overbought.
Default settings are set up for 15 minute timeframe:
K1 - 15M (period = 14)
K2 - 30M (period = 28)
K3 - 1H (period = 56)
K4 - 2H (period = 112)
It indicates top and bottoms of given period.
Its good to use as a confirmation indicator.
Feel free to comment and use it.
Greetings!
MCM By Inner Racers# MCM By Inner Racers - Multi-Timeframe Key Levels & Session Indicator
## 📊 Overview
**MCM (Multi-Timeframe Chart Mapping)** is a comprehensive trading indicator designed for professional traders who need clear visual representation of critical price levels, session ranges, and time-based market structure. This all-in-one tool eliminates chart clutter while providing essential information for ICT, SMC, and institutional trading methodologies.
---
## ✨ Key Features
### 📅 **Previous Daily Levels**
- **Previous Day High (PDH)** - Acts as key resistance/liquidity zone
- **Previous Day Low (PDL)** - Acts as key support/liquidity zone
- **Previous Day Mid (PDM)** - 50% equilibrium level for mean reversion trades
- **Daily Separators** - Vertical lines marking new trading days
### 📆 **Previous Weekly Levels**
- **Previous Week High (PWH)** - Major weekly resistance for swing trading
- **Previous Week Low (PWL)** - Major weekly support for swing trading
- **Previous Week Mid (PWM)** - Weekly equilibrium for higher timeframe bias
- **Weekly Separators** - Vertical lines marking new trading weeks
### 🌅 **True Day Opens (TDO)**
- Displays opening prices at **midnight NY time** for the past 1-10 days
- Each level labeled as "TDO D-0", "TDO D-1", "TDO D-2", etc.
- Critical for tracking institutional reference points and gap trading
- Respects true midnight opens (not session opens)
### 📍 **Weekly Opens**
- **Monday 00:00 Open** - True weekly open at Monday midnight NY time
- **Sunday 17:00 Open** - Forex market open (Sunday 5 PM NY time)
- Essential for understanding weekly bias and manipulation zones
### 🌏 **Trading Session Ranges**
Dynamic session boxes that track real-time high/low ranges:
- **Asian Session** (Default: 20:00-00:00 NY) -
- **London Session** (Default: 02:00-05:00 NY) -
- **New York Session** (Default: 07:00-16:00 NY) -
All session times are **fully customizable** in 15-minute increments.
---
## 🎯 Who Is This For?
✅ **ICT/SMC Traders** - Key levels for market structure, liquidity, and order flow
✅ **Session Traders** - Identifying killzones and optimal entry zones
✅ **Swing Traders** - Previous day/week levels as support/resistance
✅ **Multi-Timeframe Analysts** - Understanding price relationships across timeframes
✅ **Forex & Indices Traders** - NY time-based analysis for institutional moves
---
## 🎨 Full Customization
Every element is fully customizable:
- ✏️ **Colors** - Match your chart theme perfectly
- 📏 **Line Widths** - 1-5 pixels for visibility
- 🎭 **Line Styles** - Solid, Dashed, or Dotted
- 🏷️ **Labels** - Custom text and 5 size options (Tiny to Huge)
- ⏱️ **Session Times** - Adjust to your timezone or broker
- 📐 **Line Extension** - 20-500 bars forward projection
- 👁️ **Toggle Visibility** - Show/hide any feature independently
---
## 🔧 Technical Highlights
- Uses **request.security()** for accurate higher timeframe data
- Implements **lookahead=barmerge.lookahead_on** for non-repainting levels
- All times calculated in **America/New_York timezone** for consistency
- Efficient line management with proper deletion/recreation
- Maximum 500 lines supported for clean chart performance
- Session detection respects broker time differences
---
## 📖 How To Use
### **For Day Traders:**
1. Enable Daily Levels + True Day Opens for intraday structure
2. Use Session Ranges to identify high-probability trading windows
3. Watch for price reactions at PDH/PDL and TDO levels
### **For Swing Traders:**
1. Enable Weekly Levels for higher timeframe bias
2. Use PWH/PWL as major support/resistance zones
3. Monitor Weekly Opens for institutional reference points
### **For Multi-Timeframe Analysis:**
1. Combine Daily + Weekly levels for confluence zones
2. Use Mid levels (50%) for mean reversion opportunities
3. Align session ranges with higher timeframe structure
---
## ⚙️ Setup Tips
- **Timeframe:** Works on all timeframes (recommended: 1m to 1H for intraday)
- **Chart Type:** Overlay indicator - displays directly on price chart
- **Clean Charts:** Toggle off features you don't need for specific strategies
- **Labels:** Turn off labels for cleaner charts, turn on for reference
- **Line Extension:** Adjust based on your screen size and bar count
---
## 🚀 What Makes This Different?
Unlike basic support/resistance indicators, MCM provides:
- ✅ **True NY midnight opens** (not session opens)
- ✅ **Multiple day opens** tracking (not just previous day)
- ✅ **Dynamic session ranges** (not static boxes)
- ✅ **Both true weekly opens** (Monday 00:00 AND Sunday 17:00)
- ✅ **Fully customizable everything** (colors, styles, labels, times)
- ✅ **Non-repainting levels** using proper lookahead settings
- ✅ **All-in-one solution** (no need for multiple indicators)
---
## 📝 Notes
- All times are in **America/New_York timezone** for consistency with institutional trading
- Previous levels update at the start of each new day/week
- Session ranges are calculated dynamically during active sessions
- Lines extend forward for clear visual reference
- Works with any symbol: Forex, Indices, Crypto, Stocks
---
## 🏷️ Tags
`Multi-Timeframe` `Key Levels` `ICT` `Smart Money Concepts` `Sessions` `Previous Day High/Low` `Previous Week High/Low` `Support Resistance` `Institutional Trading` `Order Flow` `Liquidity` `Market Structure`
---
© Inner_Racers
For questions, suggestions, or feedback, please leave a comment below!
**⭐ If you find this indicator helpful, please give it a boost and share with fellow traders!**
Fair Value Gap Pro by Bifrost InstituteFair Value Gap Pro brings institutional-style FVGs to TradingView with the precision and controls traders actually need. It detects clean 3-candle gaps on any higher timeframe, projects them onto your active chart, and overlays precise buy/sell volume ratios so you can judge the quality of a gap at a glance. Everything is customizable—from colors and line styles to tag markers, and volume display—so the tool adapts to your workflow instead of the other way around.
🔭 Multi-Timeframe Engine
Higher Timeframe Detection: Choose any HTF (M5, H1, H4, D1, etc.) and view those gaps on any lower-TF chart
Smart Gap Detection: Strict 3-candle mode ensures only successive bars form gaps—automatically rejects weekend gaps and market closures
Configurable History: Scan back 1-500+ bars with intelligent processing
Extend Until Filled: Gaps dynamically extend forward until price fills them, or use fixed-width mode
Advanced Fill Logic: Fill Rules - Close only, wick only, or close/wick; Fill Depth: TouchAny (immediate edge touch) or TouchMid (requires 50% penetration)
TouchMid Margin: Fine-tune difficulty with -50% to +50% adjustment (e.g., -10% = easier fill at 40% depth)
Weekend Gap Protection: Prevents false fills from market gaps—only real price action counts
📊 HTF-Accurate Volumetrics
True HTF Volume: Uses higher timeframe bar data for accurate volume matching across all chart timeframes
Buy vs Sell Delta: Integrated volume analysis for every FVG shows institutional pressure
Display Formats: Decimal ratios, percentages, or raw values (with K/M/B suffixes)
Volume Modes: Bar Delta (fast & reliable, recommended), Tick Delta (optional, feed-dependent)
Clear "+" (buy) and "–" (sell) prefixes for instant reading
🎨 Fully Customizable Appearance
Color Control: Color pickers for Bullish/Bearish FVG fills & Filled state colors (different from active), Band lines, midlines, and text labels.
Formation and fill tag markers
Line Styling: Color & Width
🔔 Alerts
Toggle formation/fill alerts independently
🏷 Tags
Visual Tags: Show markers - Text / Icon per event type
Icon choices: Circle, Square, Diamond, Star, Up/Down Arrow
Independent colors for formation vs fill tags
Auto-remove "formed" tag when "filled" tag appears
Configurable size and positioning
🧩 Rendering & Fill Display
Triple-Band Display: Upper, mid, and lower boundary lines with configurable styles
Filled Rectangle: Semi-transparent fill between boundaries for clear visualization
Fill State Management: Hide filled gaps completely, or keep them visible with distinct "filled" colors.
"Use Filled Colours" option for easy state identification
Quality Filters: Minimum body size filter (in chart points) to exclude noise from low-volatility periods
⚙️ Quality-of-Life Features
Performance Optimized: Efficient HTF/LTF time mapping with binary search algorithms
Cross-Symbol Compatible: Robust handling across all symbols and data feeds
Sensible Defaults: Works beautifully out of the box—tweak only what you need
Minimal Chart Clutter: Designed to keep critical information visible without overwhelming your workspace
💡 Perfect For
Institutional gap traders who need precision and control
Multi-timeframe analysts requiring HTF context on LTF charts
Volume profile traders seeking buy/sell pressure confirmation
Traders who value clean, professional chart aesthetics
Anyone tired of indicators that force rigid workflows
Fair Value Gap Pro doesn't just show you gaps—it gives you the complete institutional picture with the flexibility to trade your way.
Multi-Timeframe RSI + MA - Santosh - BangaloreThis script has a combined 5 and 15 min RSI's together in one indicator. Created using AI.
Trap LineOverview
Trap Line is a higher-timeframe trend framework designed to define market regimes using smoothed weekly (1W) and three-week (3W) baselines. Price trading above the line reflects a bullish regime; price below the line reflects a bearish one. The goal is regime discipline—stay aligned with the dominant higher-timeframe direction and avoid late, emotional entries. All parameters are fixed to ensure consistent behavior across symbols.
Core logic (concepts, not full code)
• Computes a Hull-type moving average on 1W and 3W closes (with optional linear-regression pre-filtering) and projects them onto lower timeframes via interpolation.
• Produces a smooth, lag-reduced structural baseline that tracks the weekly trend path.
• Observing price vs. the baseline highlights potential trap zones—temporary breaches that often fail without a confirmed weekly close.
• The 3-Week Trap Line adds a macro confirmation layer and is hidden by default in the Style tab to keep charts clean.
Inputs
• Parameters (length, smoothing type, regression toggle, interpolation mode) are fixed to prevent overfitting and preserve repeatability.
How to read it
• Above the line => bullish regime.
• Below the line => bearish regime.
• A confirmed weekly close through the line suggests a regime transition.
• A weekly close above the line with a green candle supports bullish continuation; a weekly close below the line with a red candle supports bearish continuation.
• Intraweek deviations near the line are often noise and may fade.
Practical use cases
• Weekly bias filter for swing/position frameworks.
• Regime confirmation across related assets or sectors.
• Portfolio overlay: favor long exposure in bullish regimes; reduce risk in bearish regimes.
• Combine with volume or ATR-based tools to assess trend quality.
Best practices
• Wait for the weekly close before declaring regime flips.
• Avoid overreacting to intraweek moves around the baseline.
• Combine with structure analysis (HH/HL vs. LH/LL) and higher-timeframe S/R.
• Use standard time-based candles; avoid interpreting signals on Heikin Ashi, Renko, Kagi, Point & Figure, or Range charts.
Technical notes
• Built on locked higher-timeframe data (1W and 3W).
• Interpolation is used to render HTF structure smoothly on lower charts.
• Non-repainting : values finalize when the higher timeframe closes; lower-TF plotting is interpolated, not forward-looking.
Who it is for
• Traders who want a consistent, rules-based higher-timeframe bias filter.
• Systematic users who prefer fixed-parameter baselines for regime context.
Limitations & disclosures
• Closed-source; educational and analytical use only.
• Not financial advice. Markets involve risk; past performance does not guarantee future results.
Release notes
• Includes the 3-Week Trap Line (3W). It is hidden by default in the Style tab; enable it if you want an additional macro confirmation layer.
• Fixed-parameter design (no user-tweakable inputs) for consistent behavior across symbols.
• Non-repainting values finalize on 1W/3W candle close.
Originality & why closed-source
This is not a reimplementation of public open-source scripts. Trap Line uses a specific combination of higher-timeframe Hull smoothing, optional linear-regression pre-filtering, and lower-timeframe interpolation designed to expose trap zones (temporary regime breaches that often fail without a confirmed weekly close). The integration and thresholds are proprietary and tuned to retain weekly structure with reduced lag. The source is closed to protect this implementation.
Integration, not a mashup
Trap Line is a single, self-contained framework. It does not merely merge other indicators; its components are integrated to produce a unified higher-timeframe baseline (1W/3W) with a defined reading protocol (above/below line, weekly-close confirmation, optional candle-color confirmation).
Indicator, not a strategy
This publication provides an indicator overlay , not a trading strategy. It includes no backtests, position logic, performance claims, or risk assumptions. Use it as an analytical bias filter within your own risk management.
Comparison to common tools
Compared to standard MAs or SuperTrend-style bands, Trap Line prioritizes (1) higher-timeframe structure fidelity, (2) reduced lag via HMA-type smoothing, and (3) explicit weekly-close confirmation to avoid premature regime flips. The optional 3-Week line acts as a macro confirmation layer and is hidden by default in the Style tab.
Period Range AnalyzerThis indicator analyzes a specific periodic range, which can start from a fixed date or a defined lookback period. It draws percentage levels and colored zones between the highest and lowest price. It also displays a detailed information table, which shows the price's position within the range in "Trend" mode, and the relative strength of currency pairs in "Forex" mode. The current price position is also indicated by a label with a percentage value and the name of the corresponding zone.
User Guide
Calculation Method
This setting determines how the indicator defines the range used for the calculation.
Lookback Period: In this mode, the indicator uses the last N candles (the number can be specified in the "Lookback Period (bars)" field). The range (the highest and lowest price) is "floating," meaning it is recalculated with each new candle based on the last N candles.
Date Based: In this mode, the calculation starts from a fixed date and time you select. The indicator finds the opening price of the start date and continuously tracks the highest and lowest price from that point on. This mode is ideal for measuring performance from a specific event (e.g., start of a week/month/year, news).
Data Handling Note: If you select a date in "Date Based" mode for which no data is available on the current timeframe (e.g., switching to a very low timeframe), the indicator will automatically use the earliest available candle as the starting point. All calculations (Open, Max, Min, Range, Percentage, Change, Trend) are based on this actual start date.
Start Date & Time
This setting is only active in "Date Based" mode.
Here you can specify the fixed starting point for the calculation.
The specified time is in the Exchange timezone.
Important limitation: Due to TradingView platform limits, visual elements (levels, zones) are only drawn for a maximum of 250 candles back. If the set date is older than this, the calculation still applies to the entire period (from the set date), but the drawing only covers the last 250 candles. The table always displays accurate data for the entire period.
When switching to a higher timeframe, the range may restart from a slightly later bar due to TradingView's bar alignment. For best accuracy, set your timeframe first, then select the start date.
Table Mode
This setting controls what data the information table displays.
Trend: This is the default mode, which works on any symbol (stock, index, crypto, etc.). It displays information related to the trend and the range.
Forex: This is a special mode used to measure the strength of currency and crypto pairs. It only works on symbols with exactly 6 characters (e.g., "EURUSD", "BTCUSD"). It treats the first 3 characters as the base currency (e.g., EUR) and the last 3 as the quote currency (e.g., USD). If the symbol does not have 6 characters, the table will automatically display in "Trend" mode.
Trend
This trend determination operates based on the formation order of the high and low within the analyzed range:
Its switch is located in the “Table Additional Rows” menu.
Bullish: Indicated if the low was formed before the high (on different candles). Or if they formed on the same candle, it was a bullish candle.
Bearish: Indicated if the high was formed before the low (on different candles). Or if they formed on the same candle, it was a bearish candle.
Neutral: Indicated if the high and low formed on the same candle, and it was a "doji" candle (close = open).
Upper & Lower Threshold
These settings (Upper Threshold (%) and Lower Threshold (%) in the "Label Coloring" section) primarily determine the state (Bullish/Bearish/Neutral) of the top row of the table.
The logic is not based on the percentage change of the price movement, but on the current price's position within the range, where the bottom of the range is 0% and the top is 100%.
Upper Threshold (%): The percentage level (e.g., 60.0) above which the indicator considers the price position "Bullish" (or "Strong").
Lower Threshold (%): The percentage level (e.g., 40.0) below which the indicator considers the price position "Bearish" (or "Weak").
If the price is between the two (e.g., between 40% and 60%), the signal is Neutral.
Secondary function: These thresholds also control the color of the label next to the price, provided the "Dynamic Label Coloring" option is enabled.
Range Percentage Analyzer This indicator is a tool for analyzing the market range and trend. It calculates the extent of price movement between a specified starting point and the current price, displaying it as a percentage.
The calculation can be based on a fixed lookback period (e.g., the last 30 candles) or from a fixed start date. It also provides a clear table that shows the general trend in "Trend" mode, and the relative strength of the base and quote currencies of forex pairs (e.g., EURUSD) in "Forex" mode.
User Guide
Calculation Method
This setting determines how the indicator defines the starting point for the calculation.
Lookback Period: In this mode, the indicator uses the last N candles (the number can be specified in the "Lookback Period (bars)" field, maximum 250).
The starting point is "floating," meaning it shifts with each new candle. For example, with a setting of 30, the 30th candle from the current one will always be the starting point.
Date Based: In this mode, the calculation starts from a fixed date and time you select.
This mode is ideal for measuring performance from a specific event (e.g., news, start of a week/month).
Note: If you select a date in "Date Based" mode for which no data is available on the current timeframe (e.g., switching to a very low timeframe), the indicator will automatically use the earliest available candle as the starting point.
Start Date & Time
This setting is only active in "Date Based" mode.
Here you can specify the fixed starting point for the calculation.
The specified time is in the Exchange timezone.
Important limitation: Due to TradingView platform limits, visual elements (box, line) are only drawn for a maximum of 250 candles back.
If the set date is older than this, the calculation still applies to the entire period (from the set date), but the drawing only covers the last 250 candles.
When switching to a higher timeframe, the range may restart from a slightly later bar due to TradingView's bar alignment. For best accuracy, set your timeframe first, then select the start date.
Table Mode
This setting controls what data the information table displays.
Trend: This is the default mode, which works on any symbol (stock, index, crypto, etc.). It displays information related to the trend.
Forex: This is a special mode used to measure the strength of currency pairs.
It only works on symbols with exactly 6 characters (e.g., "EURUSD", "BTCUSD"). It treats the first 3 characters as the base currency (e.g., EUR) and the last 3 as the quote currency (e.g., USD).
If the symbol does not have 6 characters, the table will automatically display in "Trend" mode.
Extremes Trend Row
If this is enabled, the table displays an additional row that determines the trend based on the formation order of the high and low within the analyzed range.
The logic is as follows:
Bullish: Indicated if the low was formed before the high.
(Or if they formed on the same candle, which was a bullish candle).
Bearish: Indicated if the high was formed before the low.
(Or if they formed on the same candle, which was a bearish candle).
Neutral: Indicated if the high and low formed on the same candle, and it was a "doji" candle (close = open).
Upper & Lower Threshold
These settings control the logic for the "Change Trend" and "Forex Display" rows at the top of the table.
They determine when the total percentage change for the entire period is considered "Bullish/Strong", "Bearish/Weak", or "Neutral".
Upper Threshold (%): The percentage value (default 0.1%) above which the indicator considers the change "Bullish/Strong".
Lower Threshold (%): The percentage value (default -0.1%) below which the indicator considers the change "Bearish/Weak".
If the change is between the two, the signal is Neutral.
ZynAlgo Trend MiniZynAlgo Trend Mini — Multi-Timeframe Trend Scanner & Compact Table UI
What this indicator does
ZynAlgo Trend Dashboard Mini scans up to five user-selected timeframes and summarizes the trend state for each, using one of three signal modes: MA Cross, Price vs MA, or RSI. It then aggregates these per-timeframe signals into an Overall Trend line and optionally shows a score count (bull/bear/neutral). A compact table dashboard renders in the corner you choose, with multiple themes or fully custom colors.
How it works (conceptual)
1) Per-timeframe signal
Choose a Signal Mode for classification:
MA Cross — compares fast vs. slow MA. If % distance exceeds Neutral Zone %, it’s Bullish/Bearish; otherwise Neutral.
Price vs MA — compares price to a single MA; % deviation beyond Neutral Zone is Bullish/Bearish; within it is Neutral.
RSI — RSI above Bullish Level ⇒ Bullish; below Bearish Level ⇒ Bearish; between the two ⇒ Neutral.
Supported MA types: EMA/SMA/HMA/WMA; lengths and thresholds are user-defined.
2) Multi-timeframe aggregation
The script counts Bullish/Bearish/Neutral outcomes across enabled TFs, then sets Overall Trend by majority (ties → Neutral). Optional score text shows the counts.
3) Dashboard rendering
Three display modes: Detailed, Compact, Minimal. You can position the panel in common corners/center and toggle title, overall row, and score.
Inputs (with tooltip-style guidance)
⏰ Timeframes
Enable Timeframe 1–5 / Timeframe 1–5 — turn on specific TFs (e.g., 5 / 15 / 60 / 240 / D). Tip: “Only enabled TFs are counted in the overall trend.”
📊 Signal Settings
Signal Mode (MA Cross / Price vs MA / RSI) — “Pick how each TF is classified.”
MA Type / Fast MA Length / Slow MA Length — “Used by MA Cross and Price vs MA; shorter fast MA reacts quicker; longer slow MA smooths noise.”
RSI Length / Bullish Level / Bearish Level — “Used by RSI mode; levels define bullish/bearish thresholds.”
Neutral Zone % — “Dead-band around 0% for MA-based modes; inside the band = Neutral.”
🎨 Display
Display Mode (Detailed / Compact / Minimal) — “Switch between full rows, condensed line, or icon-only view.”
Position — “Choose a chart corner/center for the panel.”
Show Overall Trend / Show Score Count / Show Dashboard Title — “Toggle the overall line, counts, and title.”
📝 Text & Size
Dashboard Title / Text Size / Timeframe Text Size — “Set panel title and font sizes independently.”
🎨 Theme & Colors
Color Theme — presets: Dark Neon / Dark Professional / Light Modern / Light Classic / Cyberpunk / Matrix / Custom. Tip: “Pick a preset; choose Custom to define every color.”
Custom Colors (active when Theme=Custom) — border/background/header/row/text/title/TF label and bull/bear/neutral colors.
🧱 Border & Background
Border Width — “0 hides the frame; higher values increase panel emphasis.”
Alternate Row — “Subtle row striping for readability.” (enabled in code)
🔔 Alerts
Enable Alerts — “Master on/off for the four prebuilt alerts.”
Using the indicator (suggested workflow)
Choose timeframes (e.g., M5/M15/H1/H4/D1). Disable any you don’t want counted.
Select a signal model that fits your playbook (MA Cross, Price vs MA, or RSI), then set MA/RSI lengths and the Neutral Zone %.
Pick a display mode & position. Toggle Overall Trend, Score Count, and Title as needed.
Style with a theme (or Custom colors) for readability on your chart background.
(Optional) Alerts: enable and then create alerts for unanimous or majority trends (see list below).
Reading the dashboard
Per-TF cells/icons: color and text show the state (BULLISH / BEARISH / NEUTRAL).
Overall Trend row: majority summary with ▲ / ▼ / ● icon; optional score shows counts (Bull/Bear/Neutral).
Built-in alert conditions
All Timeframes Bullish — every enabled TF is Bullish (requires ≥3 enabled).
All Timeframes Bearish — every enabled TF is Bearish (requires ≥3 enabled).
Majority Bullish — majority Bullish and Overall Trend = Bullish.
Majority Bearish — majority Bearish and Overall Trend = Bearish.
Hidden plots for Overall/Bull/Bear counts are available for alert logic/custom uses.
Three interchangeable models in one panel (MA Cross, Price-Deviation, RSI) → one UI, multiple perspectives.
Flexible aggregation that adapts to enabled TFs only (disabled TFs are excluded cleanly).
Compact, themeable UI with Detailed/Compact/Minimal layouts and corner/center anchoring — designed for clarity on busy charts.
Bar-confirmed calculations via request.security (no forward-looking values used in the logic described).
Lightweight implementation (table rendering and per-bar updates gated on barstate.islast) to minimize overhead in common workflows.
🔶 RISK DISCLAIMER
Trading is risky & most day traders lose money. All content, tools, scripts, articles, & education provided by ZynAlgo are purely for informational & educational purposes only. Past performance does not guarantee future results.
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.
ZenAlgo - BoxerThis indicator plots multi-period Volume-Weighted Average Price (VWAP) ranges and deviation bands across several timeframes — specifically weekly, monthly, quarterly, semi-annual, and yearly. It is designed to visualize how price evolves relative to statistically weighted value areas within each period, based on both traded price and volume distribution.
Each timeframe layer is drawn independently, using its own cumulative VWAP and standard deviation calculation, and displayed as horizontal ranges aligned precisely with calendar periods. This structure allows the chart to show where price currently trades relative to past value zones and how each higher-timeframe VWAP acts as a dynamic reference for mean reversion or continuation.
Calculation Logic
1. Source and Base Inputs
The indicator uses the average of high, low, and close as its price source.
Stocks reset daily at session open.
2. VWAP and Deviation Computation
For each active timeframe, it accumulates the product of price and volume and divides it by cumulative volume, forming a continuously updated VWAP within that period.
The dispersion of price around VWAP is measured through a volume-weighted variance, converted to standard deviation.
These values form symmetrical bands around the VWAP (±1σ, ±2σ, etc.), describing the statistically typical price spread.
3. Range Drawing and Persistence
When a new period begins (e.g., a new week or month), the script finalizes the previous VWAP and deviation values, fixes them to time coordinates representing the full duration of that completed period, and draws corresponding lines or boxes across the entire range.
The user can control how many historical periods remain visible, ensuring performance and clarity even on high-frequency charts.
Each band can be toggled independently (for example ±1, ±2, ±3 deviations), and colors are adjustable per timeframe.
4. Adaptive Time Anchors
The start of each timeframe is aligned with calendar boundaries.
For stocks, the start time aligns with 9:30 New York time to coincide with market open for NYSE.
Each new anchor triggers a reset of cumulative data and creation of a new VWAP range.
5. Visualization Structure
The weekly layer is drawn first and can optionally display live VWAP bands extending backward for a user-defined number of weeks.
Monthly, quarterly, semi-annual, and yearly layers use the same computation principle but with independent accumulation windows.
The central VWAP line is dashed, while outer deviation levels are drawn as dotted or solid lines depending on their multiplier.
Boxes are rendered for key deviation intervals (e.g., ±2σ) to highlight broader value zones.
Interpretation
The VWAP represents the mean price weighted by traded volume for the given period.
Deviation bands describe statistically typical distance from that mean; outer bands mark less frequent extremes.
When price remains within ±1σ or ±2σ, it suggests balance around fair value.
Repeated touches or breaks beyond outer deviations indicate expansion or compression of volatility relative to prior periods.
Overlaps of VWAPs from multiple timeframes reveal multi-period confluence zones, useful for observing where long-term and short-term value agree or diverge.
Recommended Timeframes by Range Type
Weekly Range
Recommended timeframe: 30m to 12h
Suggested options: 30m, 1h, 2h, 3h, 4h, 6h, 8h, 12h
Using lower timeframes (like 5m) is technically possible, but higher ones provide smoother visualization and better readability.
Monthly Range
Recommended timeframe: 1h to 1D
Suggested options: 1h, 2h, 3h, 4h, 6h, 8h, 12h, 1D
Lower timeframes such as 30m may not display the full monthly range due to TradingView’s bar limits, so use higher TFs for complete coverage.
Quarterly Range
Recommended timeframe: 4h to 1W
Suggested options: 4h, 6h, 8h, 12h, 1D, 1W
Quarterly ranges benefit from higher timeframes to ensure that enough historical data is visible without exceeding chart limits.
Semi-Annual Range
Recommended timeframe: 12h to 1M
Suggested options: 12h, 1D, 1W, 1M
Lower timeframes would require too many bars to load a full six-month range; higher TFs offer a clearer overview.
Yearly Range
Recommended timeframe: 1D to 1M or higher
Suggested options: 1D, 1W, 1M
Yearly ranges often cannot display correctly on low timeframes (e.g. 1h) because of TradingView’s maximum bar limits — for instance, five years of 1h data exceeds 40,000 bars. Use higher TFs for accurate rendering.
Added Value Compared to Common Free VWAP Indicators
Incorporates five independent timeframes simultaneously (week, month, quarter, half-year, year) with exact calendar anchoring and timezone handling.
Calculates volume-weighted deviation for each layer, maintaining consistent statistical scale across assets.
Provides historical box persistence , allowing comparison of completed VWAP structures instead of only current running lines.
Enables selective visibility, bandwidth control, and precise visual differentiation through adjustable colors and line weights.
Limitations and Notes
The indicator does not generate trading signals. It is purely analytical and descriptive.
On very low timeframes or illiquid assets, deviation values may fluctuate if volume data is inconsistent.
Historical boxes are approximate in length for months with fewer than 31 days; this simplification has negligible effect on interpretation.
High visual density may occur when enabling many deviations or timeframes at once; users should limit visible history for performance.
Best Usage Practices
Apply on intraday charts (5–240 min) to study how price interacts with weekly or higher-timeframe VWAP zones.
Observe convergence of VWAPs from multiple periods to locate significant equilibrium levels.
Use outer deviations to frame potential exhaustion or re-entry zones rather than directional predictions.
Combine with independent volume- or structure-based analysis for context.
Multi-Period MTF RSI MomentumThis indicator gives multi-period and multi-timeframe RSI momentum.
There are three RSI indicators. Current, Lower and Higher timeframes.
The relative position of different time frame RSIs provide relative momentum indication. Lower timeframe RIS above Higher time frame indicate improving momentum.
If the RSI is above 55 then stay bullish, below 45 bearish and 45-55 is ranging.
There are many strategies you can trade. one is if the high of candle where RSI cross 55 is crossed then buy, or low of the RSI crossng below 45 is broken ten sell etc.
MTF Liquidity Levels Pro (D/W/M) [SmartFoxy]✅ SCRIPT DESCRIPTION (Premium MTF High-Low Levels)
Overview
This indicator automatically plots key High/Low levels across three major timeframes:
Daily (D) , Weekly (W) , and Monthly (M) .
It includes:
• Current period highs/lows (DH/DL, WH/WL, MH/ML);
• Previous period highs/lows (PDH/PDL, PWH/PWL, PMH/PML);
• Open levels (Day Open, Day True Open, Week Open, Month Open);
• Visual elements such as separators, period boxes, labels, and price markers;
• A fully customizable breakout alert system .
The indicator is designed for precise market structure analysis with a focus on liquidity, MTF mechanics, and clean price action.
________________________________________
How It Works
The script tracks historical High/Low levels on each timeframe and displays:
✅ Current High/Low Levels :
Daily;
Weekly;
Monthly.
✅ Previous High/Low levels from the previous day, week, and month:
PDH / PDL;
PWH / PWL;
PMH / PML.
You can select how many previous levels to display (1, 2, 3…).
✅ Open Levels:
Day Open;
Week Open;
Month Open.
Includes optional True Day Open with time offset.
✅ Visual Period Boxes highlighting each session (Day Box, Week Box, Month Box) to help identify intraday and intraperiod structure.
✅ Vertical Separators for the start of each day, week, and month.
✅ Customizable Labels & Price Markers with positions, sizes, and optional price display.
________________________________________
Alerts
A flexible alert module is built in:
✅ Breakout of Any Previous Level (D/W/M) •➤ Triggers when price breaks any previous High/Low:
PDH/PDL;
PWH/PWL;
PMH/PML.
✅ Breakout of Previous Level 1 (D/W/M) •➤ Triggers only for the closest previous levels:
PDH1/PDL1;
PWH1/PWL1;
PMH1/PML1.
✅ Custom Breakout •➤ Choose a specific level:
PDH / PDL;
PWH / PWL;
PMH / PML.
and select which level number (1, 2, 3…) the alert should track.
________________________________________
How to Use
Select which timeframes (D/W/M) to display.
Choose how many previous levels to plot.
Enable Open, Boxes, Separators, or Labels as needed.
Enable True Day Open with offset if required.
Activate Alerts and choose the breakout logic:
• All previous levels;
• Only the nearest level;
• Custom level selection.
Create an alert in TradingView using “Any alert() function call”.
________________________________________
Why This Indicator Is Useful
✅ Instantly reveals key High/Low liquidity zones across multiple timeframes
✅ Helps synchronize market structure across D/W/M levels
✅ Useful for identifying impulses, breakouts, reversals, and liquidity runs
✅ Highlights levels price frequently revisits
✅ Eliminates the need for additional MTF tools
✅ Alerts automate breakout detection for both intraday and swing traders
Suitable for all markets : Forex, Crypto, Indices, Stocks, Futures.
Fixed High Timeframe Moving AveragesFixed High Timeframe Moving Averages (W/D/4H)
Summary
This indicator plots essential, high-timeframe (HTF) Moving Averages onto your chart, **no matter which timeframe you are currently viewing**.
It is designed for traders who need multi-timeframe context at a glance. Stop switching charts to see where the 200-Week or 50-Day MA is—now you can see all critical HTF levels directly on your 5-minute (or any other) chart.
---
Who it’s for
Traders who rely on moving averages but like to work on lower chart timeframes while keeping higher timeframe context in sight. If you scalp on 1–15m yet want Weekly/Daily/4H MAs always visible, this is for you.
---
What it shows
Pinned (“fixed”) moving averages from higher timeframes—Weekly (20/100/200) , Daily (50/100/200/365) and 4H (200) —rendered on any chart timeframe. Your favorite HTF MAs stay on screen no matter what TF you’re currently analyzing.
---
Features
* **MA types:** SMA, EMA, VWMA, Hull.
* **Fully configurable:** toggle each line, set periods, colors, and thickness.
* **Two alert modes (see below):** intrabar vs confirmed HTF close.
* **Works on any symbol & chart TF** using `request.security` to fetch HTF data.
---
Alerts & Modes
This indicator solves the biggest problem with MTF alerts: false signals. You can choose one of two modes:
1. **Intrabar mode** — compares current chart price to the HTF MA. Triggers as soon as price crosses the HTF line; great for early signals but may update until the HTF bar closes.
2. **Confirmed mode** — checks HTF close vs HTF MA. Signals only on the higher-TF bar close; fewer false starts, no intrabar repainting on that TF.
Per-line *Cross Above / Cross Below* conditions are provided for all enabled MAs (e.g., “20W — Cross Above”, “365D — Cross Below”, etc.).
**How to use alerts:** add the script → “Create Alert” → pick any condition from the script’s list.
---
Why this helps
* Keeps Weekly/Daily structure visible while you execute on LTF.
* Classic anchors (e.g., 200D, 20W/100W/200W) are popular for trend bias, dynamic support/resistance, and pullback context.
* Lets you standardize MA references across all your lower-TF playbooks.
---
Notes on confirmation & repainting
* Intrabar signals can change until the higher-TF bar closes (that’s expected with multi-TF data).
* Confirmed mode waits for the HTF close—cleaner, but later. Choose what fits your workflow.
---
Quick setup
1. Pick `MA Type` (SMA/EMA/VWMA/Hull).
2. Enable the HTF lines you want (Weekly 20/100/200; Daily 50/100/200/365; 4H 200).
3. Choose `Alert Mode` (Intrabar vs Confirmed).
4. Style colors/widths to taste and set alerts on the lines you care about.
---
Good practice
* Combine HTF MAs with price action (swings, structure, liquidity grabs) rather than using them in isolation.
* Always validate signals in your execution TF and use a risk plan tailored to volatility.
* Protect your capital: position sizing, stops, and disciplined risk management matter more than any single line on the chart.
---
Disclaimer
For educational/informational purposes only; not financial advice. Trading involves risk—manage it responsibly.
Previous D/W/M HLOCHey traders,
Here's a simple Multi-Timeframe indicator that essentially turns time and price into a box. It'll take the previous high, low, opening price, or closing price from one of the three timeframes of your choice (day, week, or month). For whatever reason I can't get the opening price to function consistently so if you find improvements feel free to let me know, this will help traders who prefer to use opening price over closing price.
Naturally this form of charting is classical and nature and some key figures you could use to study its usage are
- Richard W. Schabacker (1930s)
- Edwards & Magee (1948)
- Peter Brandt
- Stacey Burke (more on the intraday side - typically our preference)
It's usage put plainly:
- Quantifying Accumulation or Distribution
- Revealing Energy Build-Up (Compression)
- Framing Breakouts and False Breakouts
- Structuring Time
- Identifying opportunities to trade a daily, weekly, or monthly range.
Stealth Liquidation Heatmap V6.4Stealth Liquidation Heatmap v6.4
Overview
A chart-native liquidity map that infers potential liquidity zones directly from price action on a selected higher timeframe (HTF). No external liquidation feeds are used. Boxes are time-anchored to HTF candles, extend to the right on lower timeframes, and turn gray once swept.
How it works (high level)
The core engine is multi-oscillator: an EMA-differential (MACD-style) momentum line with its smoothing line, assisted by auxiliary volatility/momentum filters. Triggers are evaluated on confirmed HTF closes to avoid intra-bar noise.
When aligned momentum conditions occur on the Signal TF:
• a bullish zone anchors slightly below the HTF candle’s low,
• a bearish zone anchors slightly above the HTF candle’s high.
Boxes use xloc=bar_time (anchored to the HTF candle’s timestamp) so levels line up cleanly on lower-timeframe charts. Box height is user-selectable (High–Low, Body |C–O|, or custom % of price). Right-extension length is measured in bars of the current chart timeframe.
Sweep logic & visuals
A zone is marked “swept” (turns gray) when a selected mode is met:
• Any touch inside the box, or
• Wick touching the outer edge (default), or
• Close beyond the edge.
Options include arm delay, freeze after sweep, show/hide swept zones, and age-based fading for clarity.
Presets
• Aggressive — momentum-only with higher sensitivity (more zones).
• Normal — momentum-only with balanced sensitivity (additional smoothing/thresholding to reduce noise).
• Conservative — momentum-only with stricter filtering (fewer zones).
How to use
Best viewed on 5–15m charts with a 4h or 1D Signal TF. Treat zones as areas where liquidity may cluster or be swept; combine with your own TA and risk management. Height/sweep/extension/fade controls help tailor visuals to instrument volatility.
Screenshot example:
Notes & limitations
This tool does not access real liquidation/OI feeds; it infers liquidity behavior algorithmically from price-based momentum structure. Because evaluations are anchored to HTF closes, new triggers finalize after the source HTF bar closes. Right-extension is measured in bars of the current chart timeframe. Visual/educational use only; not financial advice.
Quantum Market Harmonics [QMH]# Quantum Market Harmonics - TradingView Script Description
## 📊 OVERVIEW
Quantum Market Harmonics (QMH) is a comprehensive multi-dimensional trading indicator that combines four independent analytical frameworks to generate high-probability trading signals with quantifiable confidence scores. Unlike simple indicator combinations that display multiple tools side-by-side, QMH synthesizes temporal analysis, inter-market correlations, behavioral psychology, and statistical probabilities into a unified confidence scoring system that requires agreement across all dimensions before generating a confirmed signal.
---
## 🎯 WHAT MAKES THIS SCRIPT ORIGINAL
### The Core Innovation: Weighted Confidence Scoring
Most indicators provide binary signals (buy/sell) or display multiple indicators separately, leaving traders to interpret conflicting information. QMH's originality lies in its weighted confidence scoring system that:
1. **Combines Four Independent Methods** - Each framework (described below) operates independently and contributes points to an overall confidence score
2. **Requires Multi-Dimensional Agreement** - Signals only fire when multiple frameworks align, dramatically reducing false positives
3. **Quantifies Signal Strength** - Every signal includes a numerical confidence rating (0-100%), allowing traders to filter by quality
4. **Adapts to Market Conditions** - Different market regimes activate different component combinations
### Why This Combination is Useful
Traditional approaches suffer from:
- **Single-dimension bias**: RSI shows oversold, but trend is still down
- **Conflicting signals**: MACD says buy, but volume is weak
- **No prioritization**: All signals treated equally regardless of strength
QMH solves these problems by requiring multiple independent confirmations and weighting each component's contribution to the final signal. This multi-dimensional approach mirrors how professional traders analyze markets - not relying on one indicator, but waiting for multiple pieces of evidence to align.
---
## 🔬 THE FOUR ANALYTICAL FRAMEWORKS
### 1. Temporal Fractal Resonance (TFR)
**What It Does:**
Analyzes trend alignment across four different timeframes simultaneously (15-minute, 1-hour, 4-hour, and daily) to identify periods of multi-timeframe synchronization.
**How It Works:**
- Uses `request.security()` with `lookahead=barmerge.lookahead_off` to retrieve confirmed price data from each timeframe
- Calculates "fractal strength" for each timeframe using this formula:
```
Fractal Strength = (Rate of Change / Standard Deviation) × 100
```
This creates a momentum-to-volatility ratio that measures trend strength relative to noise
- Computes a Resonance Index when all four timeframes show the same directional bias
- The index averages the absolute strength values when all timeframes align
**Why This Method:**
Fractal Market Hypothesis suggests that price patterns repeat across different time scales. When trends align from short-term (15m) to long-term (Daily), the probability of trend continuation increases substantially. The momentum/volatility ratio filters out low-conviction moves where volatility dominates direction.
**Contribution to Confidence Score:**
- TFR Bullish = +25 points
- TFR Bearish = +25 points (to bearish confidence)
- No alignment = 0 points
---
### 2. Cross-Asset Quantum Entanglement (CAQE)
**What It Does:**
Analyzes correlation patterns between the current asset and three reference markets (Bitcoin, US Dollar Index, and Volatility Index) to identify both normal correlation behavior and anomalous breakdowns that often precede significant moves.
**How It Works:**
- Retrieves price data from BTC (BINANCE:BTCUSDT), DXY (TVC:DXY), and VIX (TVC:VIX) using confirmed bars
- Calculates Pearson correlation coefficient between the main asset and each reference:
```
Correlation = Covariance(X,Y) / (StdDev(X) × StdDev(Y))
```
- Computes an Intermarket Pressure Index by weighting each reference asset's momentum by its correlation strength:
```
Pressure = (Corr₁ × ROC₁ + Corr₂ × ROC₂ + Corr₃ × ROC₃) / 3
```
- Detects "correlation breakdowns" when average correlation drops below 0.3
**Why This Method:**
Markets don't operate in isolation. Inter-market analysis (developed by John Murphy) recognizes that:
- Crypto assets often correlate with Bitcoin
- Risk assets inversely correlate with VIX (fear gauge)
- Dollar strength affects commodity and crypto prices
When these normal correlations break down, it signals potential regime changes. The term "quantum" reflects the interconnected nature of these relationships - like quantum entanglement where distant particles influence each other.
**Contribution to Confidence Score:**
- CAQE Bullish (positive pressure, stable correlations) = +25 points
- CAQE Bearish (negative pressure, stable correlations) = +25 points (to bearish)
- Correlation breakdown = Warning marker (potential reversal zone)
---
### 3. Adaptive Market Psychology Matrix (AMPM)
**What It Does:**
Classifies the current market emotional state into six distinct categories by analyzing the interaction between momentum (RSI), volume behavior, and volatility acceleration (ATR change).
**How It Works:**
The system evaluates three metrics:
1. **RSI (14-period)**: Measures overbought/oversold conditions
2. **Volume Analysis**: Compares current volume to 20-period average
3. **ATR Rate of Change**: Detects volatility acceleration
Based on these inputs, the market is classified into:
- **Euphoria**: RSI > 80, volume spike present, volatility rising (extreme bullish emotion)
- **Greed**: RSI > 70, normal volume (moderate bullish emotion)
- **Neutral**: RSI 40-60, declining volatility (balanced state)
- **Fear**: RSI 40-60, low volatility (uncertainty without panic)
- **Panic**: RSI < 30, volume spike present, volatility rising (extreme bearish emotion)
- **Despair**: RSI < 20, normal volume (capitulation phase)
**Why This Method:**
Behavioral finance principles (Kahneman, Tversky) show that markets follow predictable emotional cycles. Extreme psychological states often mark reversal points because:
- At Euphoria/Greed peaks, everyone bullish has already bought (no buyers left)
- At Panic/Despair bottoms, everyone bearish has already sold (no sellers left)
AMPM provides contrarian signals at these extremes while respecting trends during Fear and Greed intermediate states.
**Contribution to Confidence Score:**
- Psychology Bullish (Panic/Despair + RSI < 35) = +15 points
- Psychology Bearish (Euphoria/Greed + RSI > 65) = +15 points
- Neutral states = 0 points
---
### 4. Time-Decay Probability Zones (TDPZ)
**What It Does:**
Creates dynamic support and resistance zones based on statistical probability distributions that adapt to changing market volatility, similar to Bollinger Bands but with enhancements for trend environments.
**How It Works:**
- Calculates a 20-period Simple Moving Average as the basis line
- Computes standard deviation of price over the same period
- Creates four probability zones:
- **Extreme Upper**: Basis + 2.5 standard deviations (≈99% probability boundary)
- **Upper Zone**: Basis + 1.5 standard deviations
- **Lower Zone**: Basis - 1.5 standard deviations
- **Extreme Lower**: Basis - 2.5 standard deviations (≈99% probability boundary)
- Dynamically adjusts zone width based on ATR (Average True Range):
```
Adjusted Upper = Upper Zone + (ATR × adjustment_factor)
Adjusted Lower = Lower Zone - (ATR × adjustment_factor)
```
- The adjustment factor increases during high volatility, widening the zones
**Why This Method:**
Traditional support/resistance levels are static and don't account for volatility regimes. TDPZ zones are probability-based and mean-reverting:
- Price has ≈99% probability of staying within extreme zones in normal conditions
- Touches to extreme zones represent statistical outliers (high-probability reversal opportunities)
- Zone expansion/contraction reflects volatility regime changes
- ATR adjustment prevents false signals during unusual volatility
The "time-decay" concept refers to mean reversion - the further price moves from the basis, the higher the probability of eventual return.
**Contribution to Confidence Score:**
- Price in Lower Extreme Zone = +15 points (bullish reversal probability)
- Price in Upper Extreme Zone = +15 points (bearish reversal probability)
- Price near basis = 0 points
---
## 🎯 HOW THE CONFIDENCE SCORING SYSTEM WORKS
### Signal Generation Formula
QMH calculates separate Bullish and Bearish confidence scores each bar:
**Bullish Confidence (0-100%):**
```
Base Score: 20 points
+ TFR Bullish: 25 points (if all 4 timeframes aligned bullish)
+ CAQE Bullish: 25 points (if intermarket pressure positive)
+ AMPM Bullish: 15 points (if Panic/Despair contrarian signal)
+ TDPZ Bullish: 15 points (if price in lower probability zones)
─────────
Maximum Possible: 100 points
```
**Bearish Confidence (0-100%):**
```
Base Score: 20 points
+ TFR Bearish: 25 points (if all 4 timeframes aligned bearish)
+ CAQE Bearish: 25 points (if intermarket pressure negative)
+ AMPM Bearish: 15 points (if Euphoria/Greed contrarian signal)
+ TDPZ Bearish: 15 points (if price in upper probability zones)
─────────
Maximum Possible: 100 points
```
### Confirmed Signal Requirements
A **QBUY** (Quantum Buy) signal generates when:
1. Bullish Confidence ≥ User-defined threshold (default 60%)
2. Bullish Confidence > Bearish Confidence
3. No active sell signal present
A **QSELL** (Quantum Sell) signal generates when:
1. Bearish Confidence ≥ User-defined threshold (default 60%)
2. Bearish Confidence > Bullish Confidence
3. No active buy signal present
### Why This Approach Is Different
**Example Comparison:**
Traditional RSI Strategy:
- RSI < 30 → Buy signal
- Result: May buy into falling knife if trend remains bearish
QMH Approach:
- RSI < 30 → Psychology shows Panic (+15 points)
- But requires additional confirmation:
- Are all timeframes also showing bullish reversal? (+25 points)
- Is intermarket pressure turning positive? (+25 points)
- Is price at a statistical extreme? (+15 points)
- Only when total ≥ 60 points does a QBUY signal fire
This multi-layer confirmation dramatically reduces false signals while maintaining sensitivity to genuine opportunities.
---
## 🚫 NO REPAINT GUARANTEE
**QMH is designed to be 100% repaint-free**, which is critical for honest backtesting and reliable live trading.
### Technical Implementation:
1. **All Multi-Timeframe Data Uses Confirmed Bars**
```pinescript
tf1_close = request.security(syminfo.tickerid, "15", close , lookahead=barmerge.lookahead_off)
```
Using `close ` instead of `close ` ensures we only reference the previous confirmed bar, not the current forming bar.
2. **Lookahead Prevention**
```pinescript
lookahead=barmerge.lookahead_off
```
This parameter prevents the function from accessing future data that wouldn't be available in real-time.
3. **Signal Timing**
Signals appear on the bar AFTER all conditions are met, not retroactively on the bar where conditions first appeared.
### What This Means for Users:
- **Backtest Accuracy**: Historical signals match exactly what you would have seen in real-time
- **No Disappearing Signals**: Once a signal appears, it stays (though price may move against it)
- **Honest Performance**: Results reflect true predictive power, not hindsight optimization
- **Live Trading Reliability**: Alerts fire at the same time signals appear on the chart
The dashboard displays "✓ NO REPAINT" to confirm this guarantee.
---
## 📖 HOW TO USE THIS INDICATOR
### Basic Trading Strategy
**For Trend Followers:**
1. **Wait for Signal Confirmation**
- QBUY label appears below a bar = Confirmed bullish entry opportunity
- QSELL label appears above a bar = Confirmed bearish entry opportunity
2. **Check Confidence Score**
- 60-70%: Moderate confidence (consider smaller position size)
- 70-85%: High confidence (standard position size)
- 85-100%: Very high confidence (consider larger position size)
3. **Enter Trade**
- Long entry: Market or limit order near signal bar
- Short entry: Market or limit order near signal bar
4. **Set Targets Using Probability Zones**
- Long trades: Target the adjusted upper zone (lime line)
- Short trades: Target the adjusted lower zone (red line)
- Alternatively, target the basis line (yellow) for conservative exits
5. **Set Stop Loss**
- Long trades: Below recent swing low minus 1 ATR
- Short trades: Above recent swing high plus 1 ATR
**For Mean Reversion Traders:**
1. **Wait for Extreme Zones**
- Price touches extreme lower zone (dotted red line below)
- Price touches extreme upper zone (dotted lime line above)
2. **Confirm with Psychology**
- At lower extreme: Look for Panic or Despair state
- At upper extreme: Look for Euphoria or Greed state
3. **Wait for Confidence Build**
- Monitor dashboard until confidence exceeds threshold
- Requires patience - extreme touches don't always reverse immediately
4. **Enter Reversal**
- Target: Return to basis line (yellow SMA 20)
- Stop: Beyond the extreme zone
**For Position Traders (Longer Timeframes):**
1. **Use Daily Timeframe**
- Set chart to daily for longer-term signals
- Signals will be less frequent but higher quality
2. **Require High Confidence**
- Filter setting: Min Confidence Score 80%+
- Only take the strongest multi-dimensional setups
3. **Confirm with Resonance Background**
- Green tinted background = All timeframes bullish aligned
- Red tinted background = All timeframes bearish aligned
- Only enter when background tint matches signal direction
4. **Hold for Major Targets**
- Long trades: Hold until extreme upper zone or opposite signal
- Short trades: Hold until extreme lower zone or opposite signal
---
## 📊 DASHBOARD INTERPRETATION
The QMH Dashboard (top-right corner) provides real-time market analysis across all four dimensions:
### Dashboard Elements:
1. **✓ NO REPAINT**
- Green confirmation that signals don't repaint
- Always visible to remind users of signal integrity
2. **SIGNAL: BULL/BEAR XX%**
- Shows dominant direction (whichever confidence is higher)
- Displays current confidence percentage
- Background color intensity reflects confidence level
3. **Psychology: **
- Current market emotional state
- Color coded:
- Orange = Euphoria (extreme bullish emotion)
- Yellow = Greed (moderate bullish emotion)
- Gray = Neutral (balanced state)
- Purple = Fear (uncertainty)
- Red = Panic (extreme bearish emotion)
- Dark red = Despair (capitulation)
4. **Resonance: **
- Multi-timeframe alignment strength
- Positive = All timeframes bullish aligned
- Negative = All timeframes bearish aligned
- Near zero = Timeframes not synchronized
- Emoji indicator: 🔥 (bullish resonance) ❄️ (bearish resonance)
5. **Intermarket: **
- Cross-asset pressure measurement
- Positive = BTC/DXY/VIX correlations supporting upside
- Negative = Correlations supporting downside
- Warning ⚠️ if correlation breakdown detected
6. **RSI: **
- Current RSI(14) reading
- Background colors: Red (>70 overbought), Green (<30 oversold)
- Status: OB (overbought), OS (oversold), or • (neutral)
7. **Status: READY BUY / READY SELL / WAIT**
- Quick trade readiness indicator
- READY BUY: Confidence ≥ threshold, bias bullish
- READY SELL: Confidence ≥ threshold, bias bearish
- WAIT: Confidence below threshold
### How to Use Dashboard:
**Before Entering a Trade:**
- Verify Status shows READY (not WAIT)
- Check that Resonance matches signal direction
- Confirm Psychology isn't contradicting (e.g., buying during Euphoria)
- Note Intermarket value - breakdowns (⚠️) suggest caution
**During a Trade:**
- Monitor Psychology shifts (e.g., from Fear to Greed in a long)
- Watch for Resonance changes that could signal exit
- Check for Intermarket breakdown warnings
---
## ⚙️ CUSTOMIZATION SETTINGS
### TFR Settings (Temporal Fractal Resonance)
- **Enable/Disable**: Turn TFR analysis on/off
- **Fractal Sensitivity** (5-50, default 14):
- Lower values = More responsive to short-term changes
- Higher values = More stable, slower to react
- Recommendation: 14 for balanced, 7 for scalping, 21 for position trading
### CAQE Settings (Cross-Asset Quantum Entanglement)
- **Enable/Disable**: Turn CAQE analysis on/off
- **Asset 1** (default BTC): Reference asset for correlation analysis
- **Asset 2** (default DXY): Second reference asset
- **Asset 3** (default VIX): Third reference asset
- **Correlation Length** (10-100, default 20):
- Lower values = More sensitive to recent correlation changes
- Higher values = More stable correlation measurements
- Recommendation: 20 for most assets, 50 for less volatile markets
### Psychology Settings (Adaptive Market Psychology Matrix)
- **Enable/Disable**: Turn AMPM analysis on/off
- **Volume Spike Threshold** (1.0-5.0x, default 2.0):
- Lower values = Detect smaller volume increases as spikes
- Higher values = Only flag major volume surges
- Recommendation: 2.0 for stocks, 1.5 for crypto
### Probability Settings (Time-Decay Probability Zones)
- **Enable/Disable**: Turn TDPZ visualization on/off
- **Probability Lookback** (20-200, default 50):
- Lower values = Zones adapt faster to recent price action
- Higher values = Zones based on longer statistical history
- Recommendation: 50 for most uses, 100 for position trading
### Filter Settings
- **Min Confidence Score** (40-95%, default 60%):
- Lower threshold = More signals, more false positives
- Higher threshold = Fewer signals, higher quality
- Recommendation: 60% for active trading, 75% for selective trading
### Visual Settings
- **Show Entry Signals**: Toggle QBUY/QSELL labels on chart
- **Show Probability Zones**: Toggle zone visualization
- **Show Psychology State**: Toggle dashboard display
---
## 🔔 ALERT CONFIGURATION
QMH includes four alert conditions that can be configured via TradingView's alert system:
### Available Alerts:
1. **Quantum Buy Signal**
- Fires when: Confirmed QBUY signal generates
- Message includes: Confidence percentage
- Use for: Entry notifications
2. **Quantum Sell Signal**
- Fires when: Confirmed QSELL signal generates
- Message includes: Confidence percentage
- Use for: Entry notifications or exit warnings
3. **Market Panic**
- Fires when: Psychology state reaches Panic
- Use for: Contrarian opportunity alerts
4. **Market Euphoria**
- Fires when: Psychology state reaches Euphoria
- Use for: Reversal warning alerts
### How to Set Alerts:
1. Right-click on chart → "Add Alert"
2. Condition: Select "Quantum Market Harmonics"
3. Choose alert type from dropdown
4. Configure expiration, frequency, and notification method
5. Create alert
**Recommendation**: Set alerts for Quantum Buy/Sell signals with "Once Per Bar Close" frequency to avoid intra-bar false triggers.
---
## 💡 BEST PRACTICES
### For All Users:
1. **Backtest First**
- Test on your specific market and timeframe before live trading
- Different assets may perform better with different confidence thresholds
- Verify that the No Repaint guarantee works as described
2. **Paper Trade**
- Practice with signals on a demo account first
- Understand typical signal frequency for your timeframe
- Get comfortable with the dashboard interpretation
3. **Risk Management**
- Never risk more than 1-2% of capital per trade
- Use proper stop losses (not just mental stops)
- Position size based on confidence score (larger size at higher confidence)
4. **Consider Context**
- QMH signals work best in clear trends or at extremes
- During tight consolidation, false signals increase
- Major news events can invalidate technical signals
### Optimal Use Cases:
**QMH Works Best When:**
- ✅ Markets are trending (up or down)
- ✅ Volatility is normal to elevated
- ✅ Price reaches probability zone extremes
- ✅ Multiple timeframes align
- ✅ Clear inter-market relationships exist
**QMH Is Less Effective When:**
- ❌ Extremely low volatility (zones contract too much)
- ❌ Sideways choppy markets (conflicting timeframes)
- ❌ Flash crashes or news events (correlations break down)
- ❌ Very illiquid assets (irregular price action)
### Session Considerations:
- **24/7 Markets (Crypto)**: Works on all sessions, but signals may be more reliable during high-volume periods (US/European trading hours)
- **Forex**: Best during London/New York overlap when volume is highest
- **Stocks**: Most reliable during regular trading hours (not pre-market/after-hours)
---
## ⚠️ LIMITATIONS AND RISKS
### This Indicator Cannot:
- **Predict Black Swan Events**: Sudden unexpected events invalidate technical analysis
- **Guarantee Profits**: No indicator is 100% accurate; losses will occur
- **Replace Risk Management**: Always use stop losses and proper position sizing
- **Account for Fundamental Changes**: Company news, economic data, etc. can override technical signals
- **Work in All Market Conditions**: Less effective during extreme low volatility or major news events
### Known Limitations:
1. **Multi-Timeframe Lag**: Uses confirmed bars (`close `), so signals appear one bar after conditions met
2. **Correlation Dependency**: CAQE requires sufficient history; may be less reliable on newly listed assets
3. **Computational Load**: Multiple `request.security()` calls may cause slower performance on older devices
4. **Repaint of Dashboard**: Dashboard updates every bar (by design), but signals themselves don't repaint
### Risk Warnings:
- Past performance doesn't guarantee future results
- Backtesting results may not reflect actual trading results due to slippage, commissions, and execution delays
- Different markets and timeframes may produce different results
- The indicator should be used as a tool, not as a standalone trading system
- Always combine with your own analysis, risk management, and trading plan
---
## 🎓 EDUCATIONAL CONCEPTS
This indicator synthesizes several established financial theories and technical analysis concepts:
### Academic Foundations:
1. **Fractal Market Hypothesis** (Edgar Peters)
- Markets exhibit self-similar patterns across time scales
- Implemented via multi-timeframe resonance analysis
2. **Behavioral Finance** (Kahneman & Tversky)
- Investor psychology drives market inefficiencies
- Implemented via market psychology state classification
3. **Intermarket Analysis** (John Murphy)
- Asset classes correlate and influence each other predictably
- Implemented via cross-asset correlation monitoring
4. **Mean Reversion** (Statistical Arbitrage)
- Prices tend to revert to statistical norms
- Implemented via probability zones and standard deviation bands
5. **Multi-Timeframe Analysis** (Technical Analysis Standard)
- Higher timeframe trends dominate lower timeframe noise
- Implemented via fractal resonance scoring
### Learning Resources:
To better understand the concepts behind QMH:
- Read "Intermarket Analysis" by John Murphy (for CAQE concepts)
- Study "Thinking, Fast and Slow" by Daniel Kahneman (for psychology concepts)
- Review "Fractal Market Analysis" by Edgar Peters (for TFR concepts)
- Learn about Bollinger Bands (for TDPZ foundation)
---
## 🔄 VERSION HISTORY AND UPDATES
**Current Version: 1.0**
This is the initial public release. Future updates will be published using TradingView's Update feature (not as separate publications). Planned improvements may include:
- Additional reference assets for CAQE
- Optional machine learning-based weight optimization
- Customizable psychology state definitions
- Alternative probability zone calculations
- Performance metrics tracking
Check the "Updates" tab on the script page for version history.
---
## 📞 SUPPORT AND FEEDBACK
### How to Get Help:
1. **Read This Description First**: Most questions are answered in the detailed sections above
2. **Check Comments**: Other users may have asked similar questions
3. **Post Comments**: For general questions visible to the community
4. **Use TradingView Messaging**: For private inquiries (if available)
### Providing Useful Feedback:
When reporting issues or suggesting improvements:
- Specify your asset, timeframe, and settings
- Include a screenshot if relevant
- Describe expected vs. actual behavior
- Check if issue persists with default settings
### Continuous Improvement:
This indicator will evolve based on user feedback and market testing. Constructive suggestions for improvements are always welcome.
---
## ⚖️ DISCLAIMER
This indicator is provided for **educational and informational purposes only**. It does **not constitute financial advice, investment advice, trading advice, or any other type of advice**.
**Important Disclaimers:**
- You should **not** rely solely on this indicator to make trading decisions
- Always conduct your own research and due diligence
- Past performance is not indicative of future results
- Trading and investing involve substantial risk of loss
- Only trade with capital you can afford to lose
- Consider consulting with a licensed financial advisor before trading
- The author is not responsible for any trading losses incurred using this indicator
**By using this indicator, you acknowledge:**
- You understand the risks of trading
- You take full responsibility for your trading decisions
- You will use proper risk management techniques
- You will not hold the author liable for any losses
---
## 🙏 ACKNOWLEDGMENTS
This indicator builds upon the collective knowledge of the technical analysis and trading community. While the specific implementation and combination are original, the underlying concepts draw from:
- The Pine Script community on TradingView
- Academic research in behavioral finance and market microstructure
- Classical technical analysis methods developed over decades
- Open-source indicators that demonstrate best practices in Pine Script coding
Special thanks to TradingView for providing the platform and Pine Script language that make indicators like this possible.
---
## 📚 ADDITIONAL RESOURCES
**Pine Script Documentation:**
- Official Pine Script Manual: www.tradingview.com
**Related Concepts to Study:**
- Multi-timeframe analysis techniques
- Correlation analysis in financial markets
- Behavioral finance principles
- Mean reversion strategies
- Bollinger Bands methodology
**Recommended TradingView Tools:**
- Strategy Tester: To backtest signal performance
- Bar Replay: To see how signals develop in real-time
- Alert System: To receive notifications of new signals
---
**Thank you for using Quantum Market Harmonics. Trade safely and responsibly.**
VWAP Composites📊 VWAP Composite - Advanced Multi-Period Volume Weighted Average Price Indicator
═══════════════════════════════════════════════════════════════════
🎯 OVERVIEW
VWAP Composite is an advanced volume-weighted average price (VWAP) indicator that goes beyond traditional single-period VWAP calculations by offering composite multi-period analysis and unprecedented customization. This indicator solves a common problem traders face: traditional VWAP resets at arbitrary intervals (session start, day, week), but significant price action and volume accumulation often spans multiple periods. VWAP Composite allows you to anchor VWAP calculations to any timeframe—or combine multiple periods into a single composite VWAP—giving you a true representation of average price weighted by volume across the exact periods that matter to your analysis.
═══════════════════════════════════════════════════════════════════
⚙️ HOW IT WORKS - CALCULATION METHODOLOGY
📌 CORE VWAP CALCULATION
The indicator calculates VWAP using the standard volume-weighted formula:
• Typical Price = (High + Low + Close) / 3
• VWAP = Σ(Typical Price × Volume) / Σ(Volume)
This calculation is performed across user-defined time periods, ensuring each bar's contribution to the average is proportional to its trading volume.
📌 STANDARD DEVIATION BANDS
The indicator calculates volume-weighted standard deviation to measure price dispersion around the VWAP:
• Variance = Σ / Σ(Volume)
• Standard Deviation = √Variance
• Upper Band = VWAP + (StdDev × Multiplier)
• Lower Band = VWAP - (StdDev × Multiplier)
These bands help identify overbought/oversold conditions relative to the volume-weighted mean, with high-volume price excursions having greater impact on band width than low-volume moves.
📌 COMPOSITE PERIOD METHODOLOGY (Auto Mode)
Unlike traditional VWAP that resets at fixed intervals, Auto Mode creates composite VWAPs by combining the current period with N previous periods:
• Period Span = 1: Current period only (standard VWAP behavior)
• Period Span = 2: Current period + 1 previous period combined
• Period Span = 3: Current period + 2 previous periods combined
• And so on...
Example: A 3-period Weekly composite VWAP calculates from the start of 2 weeks ago through the current week's end, creating a single VWAP that represents 21 days of continuous price and volume data. This provides context about where price stands relative to the volume-weighted average over multiple weeks, not just the current week.
═══════════════════════════════════════════════════════════════════
🔧 KEY FEATURES & ORIGINALITY
✅ DUAL OPERATING MODES
1️⃣ MANUAL MODE (5 Independent VWAPs)
Define up to 5 separate VWAP calculations with custom start/end times:
• Perfect for anchoring VWAP to specific events (earnings, Fed announcements, major reversals)
• Each VWAP has independent color settings for lines and deviation band backgrounds
• Individual control over calculation extension and visual extension (explained below)
• Useful for tracking multiple institutional accumulation/distribution zones simultaneously
2️⃣ AUTO MODE (Composite Period VWAP)
Automatically calculates VWAP across combined time periods:
• Supported periods: Daily, Weekly, Monthly, Quarterly, Yearly
• Configurable period span (1-20 periods)
• Always up-to-date, recalculates on each new bar
• Ideal for systematic analysis across consistent timeframes
✅ DUAL EXTENSION SYSTEM (Manual Mode Innovation)
Most VWAP indicators only offer "on/off" for extending calculations. This indicator provides two distinct extension options:
🔹 EXTEND CALCULATION TO CURRENT BAR
When enabled, continues including new bars in the VWAP calculation after the defined end time. The VWAP value updates dynamically as new volume enters the market.
Use case: You anchored VWAP to a major low 3 weeks ago. You want the VWAP to continue evolving with new volume data to track ongoing institutional positioning.
🔹 EXTEND VISUAL LINE ONLY
When enabled (and calculation extension is disabled), projects the "frozen" VWAP value forward as a reference line. The VWAP value remains fixed at what it was at the end time, but the line and deviation bands visually extend to current price.
Use case: You want to see how price is behaving relative to the VWAP that existed at a specific point in time (e.g., "Where is price now vs. the 5-day VWAP that existed at last Friday's close?").
This dual system gives you unprecedented control over whether you're tracking a "living" VWAP that incorporates new data or using historical VWAP levels as static reference points.
✅ CUSTOMIZABLE STANDARD DEVIATION BANDS
• Adjustable multiplier (0.1 to 5.0)
• Independent background colors with opacity control for each VWAP
• Dashed band lines for easy visual distinction from main VWAP
• Bands extend when visual extension is enabled, maintaining zone visibility
✅ COMPREHENSIVE LABELING SYSTEM
Each VWAP displays:
• Current VWAP value
• Upper deviation band value (High)
• Lower deviation band value (Low)
• Extension status indicator (Calc Extended / Visual Extended)
• Color-coded for quick identification
═══════════════════════════════════════════════════════════════════
📖 HOW TO USE THIS INDICATOR
🎯 SCENARIO 1: EVENT-ANCHORED VWAP (Manual Mode)
Use case: A stock gaps down 15% on earnings and you want to track where institutions are positioning during the recovery.
Setup:
1. Switch to Manual Mode
2. Enable VWAP 1
3. Set Start Time to the earnings gap bar
4. Set End Time to current time (or leave far in future)
5. Enable "Extend Calculation to Current Bar"
6. Watch how price respects the VWAP as a dynamic support/resistance
Interpretation:
• Price above VWAP = buyers in control since the event
• Price testing VWAP from above = potential support
• Volume-weighted standard deviation bands show normal price range
• Price outside bands = potential exhaustion/mean reversion setup
🎯 SCENARIO 2: MULTI-WEEK INSTITUTIONAL ACCUMULATION ZONE (Auto Mode)
Use case: You trade swing setups and want to identify where institutions have been accumulating over the past 3 weeks.
Setup:
1. Switch to Auto Mode
2. Select "Weekly" period type
3. Set Period Span to 3
4. Enable standard deviation bands
Interpretation:
• 3-week composite VWAP shows the true average institutional entry
• Price bouncing off VWAP repeatedly = strong support (institutions defending their average)
• Price breaking below VWAP on high volume = potential distribution
• Deviation bands contracting = consolidation; expanding = volatility increase
🎯 SCENARIO 3: COMPARING MULTIPLE TIME HORIZONS (Manual Mode)
Use case: You want to see short-term vs medium-term vs long-term VWAP alignments.
Setup:
1. Switch to Manual Mode
2. VWAP 1: Last 5 trading days (blue)
3. VWAP 2: Last 10 trading days (orange)
4. VWAP 3: Last 20 trading days (purple)
5. Enable "Extend Calculation" for all
6. Set different background colors for visual separation
Interpretation:
• All VWAPs aligned upward = strong trend across all timeframes
• Price between VWAPs = finding equilibrium between different trader timeframes
• Short-term VWAP crossing long-term VWAP = momentum shift
• Price rejecting at higher-timeframe VWAP = that timeframe's traders defending their average
🎯 SCENARIO 4: HISTORICAL VWAP REFERENCE LEVELS (Manual Mode)
Use case: You want to see where the 1-month VWAP was at each month-end as static reference levels.
Setup:
1. Switch to Manual Mode
2. VWAP 1: Set to last month's start/end dates
3. VWAP 2: Set to 2 months ago start/end dates
4. VWAP 3: Set to 3 months ago start/end dates
5. Disable "Extend Calculation"
6. Enable "Extend Visual Line Only"
Interpretation:
• Each VWAP represents the volume-weighted average for that complete month
• These become static support/resistance levels
• Price returning to old monthly VWAPs = institutional memory/gap fill behavior
• Useful for identifying longer-term value areas
═══════════════════════════════════════════════════════════════════
🎨 CUSTOMIZATION OPTIONS
GENERAL SETTINGS
• Show/hide labels
• Line style: Solid, Dashed, or Dotted
• Standard deviation multiplier (impacts band width)
• Toggle standard deviation bands on/off
MANUAL MODE (Per VWAP)
• Custom start and end times
• Line color picker
• Background color picker (with transparency control)
• Extend calculation option
• Extend visual option
• Show/hide individual VWAPs
AUTO MODE
• Period type selection (Daily/Weekly/Monthly/Quarterly/Yearly)
• Period span (1-20 periods)
• Line color
• Background color (with transparency control)
═══════════════════════════════════════════════════════════════════
💡 TRADING APPLICATIONS
✓ Mean Reversion: Use deviation bands to identify stretched prices likely to return to VWAP
✓ Trend Confirmation: Price sustained above VWAP = bullish bias; below = bearish bias
✓ Support/Resistance: VWAP often acts as dynamic S/R, especially on higher volume periods
✓ Institutional Positioning: Multi-day/week VWAPs show where large players have established positions
✓ Entry Timing: Wait for pullbacks to VWAP in trending markets
✓ Stop Placement: Use VWAP ± standard deviation as volatility-adjusted stop levels
✓ Breakout Confirmation: Breakouts from consolidation with price reclaiming VWAP = stronger signal
✓ Multi-Timeframe Analysis: Compare short vs long-period VWAPs to gauge momentum alignment
═══════════════════════════════════════════════════════════════════
⚠️ IMPORTANT NOTES
• The indicator redraws on each bar to maintain accurate visual representation (uses `barstate.islast`)
• Maximum lookback is limited to 5000 bars for performance optimization
• Time range calculations work across all timeframes but are most effective on intraday to daily charts
• Standard deviation bands assume volume-weighted distribution; extreme events may violate assumptions
• Auto mode always calculates to current bar; use Manual mode for fixed historical periods
═══════════════════════════════════════════════════════════════════
This indicator is open-source. Feel free to examine the code, learn from it, and adapt it to your needs.
SMC FVG/IFVG (Multi-TF x 4) [ZAUTEC]SMC FVG/IFVG (Multi-TF x 4): Multi-Timeframe Fair Value Gap with Inversed FVG Detection
This powerful Pine Script indicator is designed to help traders identify, track, and manage Fair Value Gaps (FVGs) and their respective Inversed Fair Value Gaps (IFVGs) across up to four different timeframes simultaneously.
Key Features
Multi-Timeframe Analysis (4x): Analyze and display FVGs from four distinct timeframes alongside your current chart, offering a comprehensive view of market imbalances across various scales.
Fair Value Gap (FVG) Detection: Automatically identifies classic three-candle FVGs (market inefficiencies).
Customizable FVG Length: Set how many bars the FVG boxes should initially extend for.
Minimum Gap Size: Filter out minor, insignificant gaps using a tick-based minimum size threshold.
Optional Box Extension: Dynamically extend FVG boxes to the current bar index or use a fixed extension for a cleaner chart.
Inversed FVG (IFVG) Logic: Detects a high-probability reversal pattern where a previously filled FVG zone is immediately followed by the formation of a new, opposite FVG within or adjacent to the same area. This confirms the old FVG has "flipped roles" (e.g., from support to resistance).
Lookback Period: Defines how long the indicator searches for a corresponding FVG breach to confirm the IFVG.
IFVG Minimum Size: Customizable minimum size threshold for the IFVG.
Dynamic Box Management:
Automatic Fill Deletion: FVGs are automatically removed from the chart when price action fully trades through the gap, signifying the imbalance has been "filled."
IFVG Tracking: IFVGs are tracked and removed from the chart after the configurable lookback period.
Full Customization: Control the visibility, colors, border styles (solid, dashed, dotted), and width for FVG, Bearish FVG, Bullish FVG, and IFVG boxes independently for each of the four timeframes.
How to Use
Select Timeframes: Choose up to four desired timeframes in the settings (e.g., "15" for 15-minute, "4H" for 4-hour, "D" for Daily). Leave the field empty to use the chart's current timeframe.
Toggle Visibility: Use the Show FVG and Show IFVG toggles to focus on the imbalances you wish to see.
Adjust Extension: Set Extend Boxes to bar index to true to keep all open FVG boxes drawn all the way to the current live price bar.
Interpret the Gaps:
FVG (Bullish/Bearish): Potential areas for price to return to and find support/resistance.
IFVG (Inverse FVG): Stronger signals that a previous zone of imbalance has been violated and is likely to act as a significant flip zone for future price movements.
This indicator is an essential tool for traders utilizing concepts like ICT (Inner Circle Trader) and SMC (Smart Money Concepts), providing a clear visual representation of market structure and liquidity voids.






















