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!
Timeframe
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.
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.
HTF Candles with PVSRA Volume Coloring (PCS Series)This indicator displays higher timeframe (HTF) candles using a PVSRA-inspired color model that blends price and volume strength, allowing traders to visualize higher-timeframe activity directly on lower-timeframe charts without switching screens.
OVERVIEW
This script visualizes higher-timeframe (HTF) candles directly on lower-timeframe charts using a custom PVSRA (Price, Volume & Support/Resistance Analysis) color model.
Unlike standard HTF indicators, it aggregates real-time OHLC and volume data bar-by-bar and dynamically draws synthetic HTF candles that update as the higher-timeframe bar evolves.
This allows traders to interpret momentum, trend continuation, and volume pressure from broader market structures without switching charts.
INTEGRATION LOGIC
This script merges higher-timeframe candle projection with PVSRA volume analysis to provide a single, multi-timeframe momentum view.
The HTF structure reveals directional context, while PVSRA coloring exposes the underlying strength of buying and selling pressure.
By combining both, traders can see when a higher-timeframe candle is building with strong or weak volume, enabling more informed intraday decisions than either tool could offer alone.
HOW IT WORKS
Aggregates price data : Groups lower-timeframe bars to calculate higher-timeframe Open, High, Low, Close, and total Volume.
Applies PVSRA logic : Compares each HTF candle’s volume to the average of the last 10 bars:
• >200% of average = strong activity
• >150% of average = moderate activity
• ≤150% = normal activity
Assigns colors :
• Green/Blue = bullish high-volume
• Red/Fuchsia = bearish high-volume
• White/Gray = neutral or low-volume moves
Draws dynamic outlines : Outlines update live while the current HTF candle is forming.
Supports symbol override : Calculations can use another instrument for correlation analysis.
This multi-timeframe aggregation avoids repainting issues in request.security() and ensures accurate real-time HTF representation.
FEATURES
Dual HTF Display : Visualize two higher timeframes simultaneously (e.g., 4H and 1D).
Dynamic PVSRA Coloring : Volume-weighted candle colors reveal bullish or bearish dominance.
Customizable Layout : Adjust candle width, spacing, offset, and color schemes.
Candle Outlines : Highlight the forming HTF candle to monitor developing structure.
Symbol Override : Display HTF candles from another instrument for cross-analysis.
SETTINGS
HTF 1 & HTF 2 : enable/disable, set timeframes, choose label colors, show/hide outlines.
Number of Candles : choose how many HTF candles to plot (1–10).
Offset Position : distance to the right of the current price where HTF candles begin.
Spacing & Width : adjust separation and scaling of candle groups.
Show Wicks/Borders : toggle wick and border visibility.
PVSRA Colors : enable or disable volume-based coloring.
Symbol Override : use a secondary ticker for HTF data if desired.
USAGE TIPS
Set the indicator’s visual order to “Bring to front.”
Always choose HTFs higher than your active chart timeframe.
Use PVSRA colors to identify strong momentum and potential reversals.
Adjust candle spacing and width for your chart layout.
Outlines are not shown on chart timeframes below 5 minutes.
TRADING STRATEGY
Strategy Overview : Combine HTF structure and PVSRA volume signals to
• Identify zones of high institutional activity and potential reversals.
• Wait for confirmation through consolidation or a pullback to key levels.
• Trade in alignment with dominant higher-timeframe structure rather than chasing volatility.
Setup :
• Chart timeframe: lower (5m, 15m, 1H)
• HTF 1: 4H or 1D
• HTF 2: 1D or 1W
• PVSRA Colors: enabled
• Outlines: enabled
Entry Concept :
High-volume candles (green or red) often indicate market-maker activity , such zones often reflect liquidity absorption by larger players and are not necessarily ideal entry points.
Wait for the next consolidation or pullback toward a support or resistance level before acting.
Bullish scenario :
• After a high-volume or rejection candle near a low, price consolidates and forms a higher low.
• Enter long only when structure confirms strength above support.
Bearish scenario :
• After a high-volume or rejection candle near a top, price consolidates and forms a lower high.
• Enter short once resistance holds and momentum weakens.
Exit Guidelines :
• Exit when next HTF candle shifts in color or momentum fades.
• Exit if price structure breaks opposite to your trade direction.
• Always use stop-loss and take-profit levels.
Additional Tips :
• Never enter directly on strong green/red high-volume candles, these are usually areas of institutional absorption.
• Wait for market structure confirmation and volume normalization.
• Combine with RSI, moving averages, or support/resistance for timing.
• Avoid trading when HTF candles are mixed or low-volume (unclear bias).
• Outlines hidden below 5m charts.
Risk Management :
• Use stop-loss and take-profit on all positions.
• Limit risk to 1–2% per trade.
• Adjust position size for volatility.
FINAL NOTES
This script helps traders synchronize lower-timeframe execution with higher-timeframe momentum and volume dynamics.
Test it on demo before live use, and adjust settings to fit your trading style.
DISCLAIMER
This script is for educational purposes only and does not constitute financial advice.
SUPPORT & UPDATES
Future improvements may include alert conditions and additional visualization modes. Feedback is welcome in the comments section.
CREDITS & LICENSE
Created by @seoco — open source for community learning.
Licensed under Mozilla Public License 2.0 .
HTF CandlesThis Indicator allows you to display up to 10 higher timeframe candles.
One of them will always be the currently last candle (realtime candle if session is active). So if you choose to display only one candle it will be the current HTF candle. If you choose to display more than 1 candle it will be the current HTF candle plus the number of total candles minus one as historic candles (maximum 9 historic candles).
The goal is to simplify HTF analysis without the need to switch timeframes and detect HTF candle patterns while seeing the lower timeframe develop in realtime.
This is especially useful if you trade concepts like liquidity grabs/sweeps or any candle stick patterns and you want to utilize lower timeframe entries to maximize your risk to reward.
Setting Explanation
General Settings
# of Bars: Choose how many HTF candles you want to be displayed (maximum is 10).
Timeframe: Choose the timeframe that you want to be displayed.
Offset: Put in the number of bars you want to shift the HTF candles to the right (minimum is 0 which will result in a shift 3 bars to the right, to separate it from the current LTF candle). This way you can as well see 2 higher timeframes by applying the indicator twice to your chart and just shifting one timeframe so far to the right that it does not overlap the first HTF.
HTF Lines
Mark Start Of HTF Candles: If checked this will display lines according to the start of your HTF candles.
HTF Label
Show HTF Label: If checked you will see a label above the plotted HTF candles that tells you which timeframe it is.
Automatic Label Positioning: If checked your HTF Label will be 1 ATR above the highest HTF bar. This avoids putting in an absolute number which can be useful if you trade assets with vastly different prices (for example a 10 point distance will not sufficiently separate the label from the candles if trading BTC whereas a 100/500 point difference would put the label out of your screen if trading MNQ). By using the ATR the label will automatically be efficiently separated from the candles but not to far away.
Appearance
Body: Choose fill color for your bullish (left) and bearish (right) HTF candles.
Wick: Choose Wick/Border color for your HTF candles.
HTF Line: Choose color and line style for your HTF Lines (marking the start of a new HTF candle)
Label Position: Adjust the vertical distance of the label in regard to the highest high of the displayed HTF candles (This will be full points, not ticks, and is only used whenever "Automatic Label Positioning" is deselected).
Label Size: Adjust the font size of your HTF label.
Advanced Chandelier Exit with S/R [Alpha Extract]Advanced Chandelier Exit with S/R is a precision-crafted trailing stop and market structure detection system that fuses advanced Chandelier Exit logic with intelligent, multi-timeframe support and resistance tracking. This indicator delivers adaptive trend detection, volatility-aware exit positioning, and real-time structural mapping in a clean, responsive format. By combining directional filtering, pivot zone detection, and customizable styling, Advanced Chandelier Exit with S/R is designed to give traders reliable context, strong risk management, and visually intuitive confirmation signals across all timeframes and asset classes.
🔶 Adaptive Trailing Stop Architecture
At the core of Advanced Chandelier Exit with S/R is a refined Chandelier Exit mechanism that dynamically calculates trailing stops based on recent highs and lows, ATR volatility, and trend sensitivity. The system features directional memory, anchoring the stop to maintain position until a confirmed trend break occurs. This method prevents premature flips and keeps the trade aligned with sustained momentum.
longStop := close > longStop ? math.max(longStop, longStop ) : longStop
shortStop := close < shortStop ? math.min(shortStop, shortStop ) : shortStop
🔶 Volatility-Weighted Filtering
To reduce noise and improve reaction quality, Advanced Chandelier Exit with S/R includes an optional volatility normalization filter. This system adjusts ATR output based on how elevated it is relative to its own average, effectively down-weighting erratic price moves while maintaining responsiveness in directional phases.
volatilityFilter = enableVolatilityFilter ? ta.sma(baseATR, length) / baseATR : 1.0
atr = mult * baseATR * sensitivity * volatilityFilter
🔶 Trend Strength-Aware State Transitions
Trend flips in Advanced Chandelier Exit with S/R are not based solely on price crossing the stop level. Instead, the system includes a momentum-derived trend strength filter that validates the legitimacy of directional shifts. This guards against weak reversals and gives stronger confidence in breakout moves.
priceChange = math.abs(close - close )
avgPriceChange = ta.sma(priceChange, length)
trendStrength = math.min(priceChange / avgPriceChange * 100, 200)
🔶 Multi-Timeframe Support & Resistance Zones
Advanced Chandelier Exit with S/R embeds a sophisticated pivot-based structure mapping engine that automatically identifies significant price reaction levels and tracks their validity over time. It filters redundant zones, removes invalidated levels, and renders real-time support and resistance overlays based on market structure.
if isUniqueLevel(ph, resistanceLevels)
array.unshift(resistanceLevels, ph)
if isUniqueLevel(pl, supportLevels)
array.unshift(supportLevels, pl)
🔶 Dynamic Visual Encoding
The indicator uses strength-scaled fills, customizable colors, and line styling to convey directional bias with clarity. Color opacity intensifies as trend strength increases, offering intuitive context at a glance. Dynamic background fills mark trend states, while S/R zones are rendered with user-defined transparency for clean integration.
🔶 Signal Detection and Alerts
Directional signals are generated upon confirmed flips between long and short regimes, validated by stop crosses and strength filters. Additionally, the indicator provides S/R breakout alerts, identifying when price breaks through a key structural level.
🔶 Performance and Customization Optimizations
Advanced Chandelier Exit with S/R is built with modularity and efficiency in mind. It supports full customization of stop logic, volatility sensitivity, structural lookback, S/R zone filtering, and visual display. The use of array-based data structures for S/R levels ensures consistent performance even across high-activity assets and longer lookback periods.
Advanced Chandelier Exit with S/R represents the next evolution in trailing stop and structure-aware trading tools. By blending the proven logic of the Chandelier Exit system with intelligent trend strength filters and robust S/R detection, it becomes more than just a stop indicator—it becomes a complete trade management companion. Traders benefit from fewer false flips, clearer directional bias, and precise structural overlays that reinforce both breakout and reversal strategies. Whether used for swing entries, intraday positioning, or zone-based re-entries, Advanced Chandelier Exit with S/R empowers traders with responsive, intelligent logic that adapts to market conditions without compromise.
CISD & OB [BLAZ]Version 1.0 – Published October 2025: Initial release
1. Overview & Purpose
The CISD & OB indicator identifies and plots Order Blocks (OB) and Changes in State of Delivery (CISD) on price charts using a strict rule-based approach designed to highlight structural turning points and continuation zones in price action. It automatically detects these formations when price creates confirmed swing highs or lows, followed by opposing directional moves that break predefined structural levels.
Detection logic is consistently applied across all market conditions, allowing the indicator to identify areas where notable price reactions or liquidity shifts have occurred. These levels are plotted as horizontal lines on the chart and are updated in real time to reflect the latest structural developments, helping traders visualise potential reversal or continuation zones.
The methodology used in this indicator represents the author's specific approach to Order Block and CISD identification, incorporating custom criteria for swing validation and confirmation logic that differ from standard implementations. Detection operates entirely mechanically, without discretionary intervention, to ensure consistency and objectivity across use cases. This indicator functions on all standard timeframes and supports multiple asset classes, including Forex, Stocks, Cryptocurrencies, Futures, and Commodities.
The indicator is unique in its ability to apply detection logic to a custom timeframe, enabling multi-timeframe structural analysis without switching charts. Let’s begin by explaining key terminologies based on the author’s perception to aid in understanding the functionality of the indicator.
2. Order Block (OB)
An Order Block is identified when price creates a swing high or swing low followed by a directional move that closes beyond the open of the opposing candle(s) structure.
2.1. For bearish Order Blocks:
Price must form a confirmed swing high (higher than surrounding candles).
A subsequent bearish candle must close below the open of the bullish candle(s) that created the swing high.
2.2. For bullish Order Blocks:
Price must form a confirmed swing low (lower than surrounding candles).
A subsequent bullish candle must close above the open of the bearish candle(s) that created the swing low.
The indicator only validates Order Blocks where the structural formation meets minimum swing criteria and the confirming move demonstrates sufficient momentum beyond the identified level.
3. Change in State of Delivery (CISD)
A CISD occurs when a valid Order Block forms in the opposite direction to the previously confirmed Order Block, indicating a potential shift in market structure.
3.1. Formation criteria:
A bullish CISD forms when a valid bullish Order Block is detected after the most recent confirmed structure was a bearish Order Block.
A bearish CISD forms when a valid bearish Order Block is detected after the most recent confirmed structure was a bullish Order Block.
Each CISD represents the first opposing Order Block in a sequence, distinguishing it from continuation Order Blocks that follow in the same direction.
The indicator tracks the sequence of Order Block formations to automatically classify each new structure as either a CISD (directional change) or continuation Order Block based on the preceding confirmed structure.
4. Detection Logic & Visual Management
The indicator continuously scans price action in real time, validating only those patterns that meet predefined technical thresholds. Once a structure is confirmed, it is plotted as a horizontal line extending from the origin candle’s open to the confirming close.
To maintain chart clarity, the script integrates automatic display management, limiting the number of plotted lines according to user-defined settings. Independent styling options are available for bullish and bearish structures, including colour, width, and line thickness. CISD and OB structures are styled separately to provide a clear distinction between reversal and continuation events.
Developing structures appear as dotted potential horizontal lines until they are validated, at which point they transition to solid lines. The indicator also allows users to restrict visibility of plotted lines above a selected timeframe, ensuring that higher timeframe charts remain clean and readable.
If configuration settings conflict, such as incompatible timeframe or visibility filters, the indicator displays on-chart warning messages to guide users in adjusting their setup appropriately.
The indicator supports multi-timeframe plotting capability, allowing structures identified on higher timeframes to be visualised directly on the active lower timeframe chart. This feature allows traders to observe how market structures align across multiple timeframes, providing greater confirmation of overall trend direction, reinforcing analytical confidence through cross‑timeframe confluence, and ensuring short‑term decisions remain aligned with the prevailing market context.
Traders can configure alerts to receive notifications when new CISD or OB structures are confirmed. Alerts are fully customisable via the indicator input settings and can be defined by direction (bullish/bearish) and pattern type (OB or CISD).
5. Usage Instructions
5.1. Alert Setup:
Enable "Set Alert?" toggle in indicator settings.
Configure alert preferences for specific pattern types.
On the chart, click the three dots menu beside the indicator's name or press Alt + A.
Select "Add Alert" and click “Create” to activate the alert.
Alerts trigger when new patterns are confirmed.
5.2. Display Controls:
Use "Bullish Lines" and "Bearish Lines" toggles to show/hide patterns by direction.
Adjust line quantity settings (1-25) to control how many patterns display simultaneously.
Enable “Timeframe” to apply detection logic to a higher timeframe of choice, displaying CISD and OB patterns directly on the active chart.
5.3. Visibility Filter:
Use “Show below” to limit indicator visibility to specific timeframes. When enabled, the indicator hides automatically on any timeframe equal to or higher than the selected setting.
5.4. Appearance Customisation:
Toggle “CISD” or “OB” on/off to show or hide individual pattern types.
Modify colours and line widths independently for bullish and bearish structures.
The “Show potential line” option displays developing patterns as dotted horizontal lines until confirmed.
5.5. Warning Message:
Enable “Show warning messages” to display on‑chart guidance for conflicting or invalid configurations.
Choose the preferred message box position and colour styling for readability.
6. Protected Logic & Original Design
This indicator has been developed from the ground up using proprietary algorithms and a custom structural classification logic derived from original research into Order Block and CISD identification methods. The internal mechanics, including real-time pre-confirmation logic, multi-timeframe adaptation, directional classification sequencing, and automated display management, are not based on any publicly available script or third-party resource.
7. Disclaimer
This indicator is provided for educational and analytical purposes only. It does not constitute financial advice, investment recommendations, or trading signals. All trading and investment decisions remain solely the responsibility of the user.
Trading financial instruments involves substantial risk of loss. Past performance of any trading methodology or indicator does not guarantee future results. Users should conduct their own research and consider consulting with qualified financial professionals before making trading decisions.
The indicator's pattern detection is based on technical analysis principles and should be used as part of a comprehensive trading approach. No trading tool can guarantee profitable outcomes or eliminate market risk.
By using this indicator, users acknowledge they understand these risks and accept full responsibility for their trading decisions and outcomes.
Force of Strategy (FoS, Multi TF/TA, Backtest, Alerts)Introducing the FoS Trading System
A comprehensive and innovative solution designed for both novice and experienced traders to enhance their intraday trading.
The basic idea of creating this script is to stay profitable in any market
Key Features:
There are over 25 no-repaint strategies for generating buy and sell signals to choose from
10 symbols for simultaneous trading
Webhook alerts in TTA format (tradingview to anywhere) pre-configured to send messages for trading cross-margin futures on major Crypto Exchanges: Binance, Bitget, BingX, Bybit, GateIO and OKX
A unique automated "Strategy switcher" feature for backtesting and live trading—not just a specific strategy, but the logic behind choosing a trading one or another strategy based on backtesting data obtained in real time
Advanced risk management options and backtest result metrics
Higher Timeframe filters (Technical Rating, ADX, Volatility) and ability for check backtest results with 9 main higher timeframes
Buy and sell signals are generated using TradingView Technical Ratings, indicators with adaptive length algorithms and various classic indicators with standard settings to avoid overfitting
Next, I will describe in detail what this script does and what settings it operates with:
"All Strategies" off
- In the global settings block, as shown in the main chart screenshot, you select how long the script will perform backtests in days, with a limitation on the number of bars for calculations. This limitation is necessary to maintain an acceptable calculation speed. You also choose which two higher timeframes we will use for signal and filters when confirming the opening of trades
- With "All Strategies" off - as in the example on the main chart screenshot, trading is carried out by strategy #1 on 10 selected tickers simultaneously. By default, I selected the 9 top-capitalized cryptocurrencies on the Bitget exchange and the chart symbol. You can change that choice of 9 non chart opened instruments and # strategy for each them
- The first row in the table 1 shows some of the main choosen script settings, in attached example: initial capital 20$, leverage 50L, 20 backtest days, 3$ is invest in one deal, 60m - is chart timeframe, next 60m is higher timeframe 1 and last 90m is higher timeframe 2. In first column you see shortened to 5 characters ticker names
- The exchange name in the second row determines the alert messages format
I've attached another example of trading with setting "All strategies" off in the image below. In this example, trading 10 standard symbols on an hourly timeframe, 2 coins from 10: 1000SATS and DOGE have generated a profit of over $65 over the past 20 days using strategy #4
Can you browse a wide range of trading instruments and select the 10 best strategies and settings for future trading? Of course, trading is what this script is do!
The parameters in the table 1 mean the following:
TR - count of closed trading deals
WR - Winning Rate, PF - Profit Factor
MDD - Max Draw Down for all calculated time from initial capital
R$ - trading profit result in usd
The parameters in the table 2 is just more metrics for chart symbol:
PT - result in usd Per one Trade
PW - result Per Win, PL - result Per Lose
ROI - Rate of Investments
SR - Sharpe Ratio, MR - CalMAR ration
Tx - Commision Fee in Usd
R$ - trading profit result in usd again
Table 2 separate trade results of backtesting for longs and shorts. In first column you see how many USD were invested in one trade, taking into account possible position splitting (will be discussed in more detail in the risk management section)
Settings:
"All Strategies" on, "Check Last" off
When "All Strategies" is active, trading changed from 10 symbols and one strategy to all strategies and one chart symbol. If option "Check Last" is inactive you will see backtest results for each of strategy in backtest setting days. This is useful, for example, if you want to see backtest results under different settings over a long period of time for calibrating risk management or entry rules
"All Strategies" on, "Check Last" on
- If "All Strategies" and "Check Last" is active trading will occur on the chart symbol only for those strategies that meet the criteria of the settings block for the enabled "All Strategies" option. For example your criteria is: for last 5 trades for all strategies, open next trade only on strategy which reached ROI 25% and WinRate 50%. When strategy with this setting criteria receive Buy or Sell Signal this trade will be opened, and when trade will be close "check last" will repeat. This feature i called "Strategy switcher"
-In Table 1 if strategy meet criteria you will see "Ok" label, if strategy meet criteria and have maximum from other reached ROI they labeled "Best". Chart strategy labeled "Chart", Chart and Ok labels in one time is "Chart+", "Chart" and "Best" is labeled "Best+"
- The color in the first column of table 1 indicates that the strategy is currently in an open position: green means an open long position, red means an open short position.
In picture bellow you will see good example for trading with check results for last 10 trades, and make desicion for trading when criteries 0.25 ROI and WinRate 50% reached for Top 2 by ROI strategies from all list of them. This example of trading logic in last 20 days (include periods when strategy don't arise 10 trades) give a profit $30+. At the bottom of the screen, you can see Labels with the numbers of the strategies that opened the trades. In this example, trades were primarily opened using strategy number 2, and the second most effective strategy after the 20-day backtest was strategy number 9
Who can promise you'll make a profit of $30 in the next 20 days with a drawdown of no more than $8 from the initial $20 with invest in one trade just 2.7$? No one. But this script guarantees that in the future it will repeat the same logic of switching trading strategies that brought profit over the last 20 days
Risk management options
- When a buy or sell trade is opened, you'll see three lines on the chart: a red stop-loss line (SL), a green take-profit line (TP), and a blue line representing the entry price. The trade will be closed if the high price or low price reaches the line TP or SL (no wait for bar close) and alert will be triggered once per bar when script recalculates
- Several options are available to control the behavior of SL/TP lines, such as stop-loss by percentage, ATR, or Highest High (HH) and Lowest Low (LL). Take Profit can be in percent, ATR or in Risk Reward ratio. There some Trailing Stop with start trail trigger options, like ATR, percent or HH / LL
- Additionally, in risk managment settings a function has been implemented for adding a position when the breakeven level expressed in the current ROI is reached for opened trade (splitting position). The position is added within the bar.
- Webhook alerts in TTA format with message contained next info : Buy / Sell or adding Quantity, Leverage, SL price, TP price and close trade
Keep in mind if the stop-loss changed when adding a position, the stop-loss will not be able to be higher than the current bar's low price, regardless of your settings, as backtest trades do not use intra-bar data, in this situation SL will be correct at next bar (but alert message don't be sended twice). And please note that this script does not have an option to simultaneously open trades in different directions. Only 1 trade can be opened for 1 trading instrument at a time
Backtest Engine
Backtest is a very important part of this script. Here describe how its calculate:
- Profit or Loss is USD: close trade price * open trade quantity - open trade price * open trade quantity - open trade quantity * (open trade price + close trade price)/2 * commision fee
Possible slippage or alert sending delay needed to be include in commission % which you will set in risk managment settings block, default settings is 0.15% (0,06% for open, 0,06% for close and 0,03% for possible slippage or additional fees)
- Maximum Draw Down: Drawdown = (peak - current equity) / peak * 100 ;
Drawdown > maxDrawdown ? maxDrawdown = Drawdown
- ROI: profit result in USD / sum of all positions margin
- CalMAR Ratio: ROI / (-MaxDrawDown)
- Sharpe Ratio: ROI / standard deviation for (Sum of all Profits and Loses) / (Sum of all Position Margins)
This description was added because in metrics i don't use parameters like "The risk-free rate of return". Keep in mind how exactly this script calculate profit and perfomance when adjusting key criteria in the strategy switching parameters block of script settings
Strategies itself
For trading, you can enable or disable various Higher Timeframes Filters (ADX, volatility, technical rating).
With filters enabled, trades will only open when the setting parameters are reached
- Strategy number 1, 2 and 3: is Higher Timeframe TradingView Technical Ratings itself, 1 is summary total rating, 2 is oscillators and 3 is moving averages. When TR filter cross filter levels trade will be open at chart bar close. By Default on chart you see Summary Technical Rating oscillator, but here the options for change it to Oscillator TR or Moving Average TR
- Strategy number 4, 5 and 6: is Chart TimeFrame TR. Trades will open when its values (Summary, Oscillators and Moving Averages) reached setting buy sell level
- Strategy number 7, 8 and 9: is Alternative buy sell logic for Chart TimeFrame TR, trades will open when counting rising or falling values will be reached
- Strategies with number from 10 to 18: is chosen by user adaptive moving averages and oscillators indicators. There in settings you will see many different adaptive length algorithms for trading and different types of moving averages and oscillators. In tooltips in settings you will find very more information, and in settings you will see list of all indicators and algorithms (more than 30 variations). All adaptive strategies have their options in settings for calibrating and plotting
- Strategies with number from 19: its can't be chosen or calibarted, this is needed for avoid overfitting, i try to found mostly time worked strategies and use its with standard settings. In future it's possible to changing current or adding additional strategies. At the time of publication this script uses: Dynamic Swing HH LL (19), Composite indicator (20), %R Exhausting with different signals (21,22,23), Pivot Point SuperTrend (24), Ichimoku Cloud (25), TSI (26), Fib Level RSI (27). I don't plot classic strategies in this script
Let me explain, the value of this script is not in the strategies it includes, but in how exactly it collects the results of their work, how it filters the opening of trades, what risk management it applies and what strategy switching logic it performs. The system itself that you are now reading about represents the main value of this script
Finally if you get access for this script
- You will see many other not described options and possibilities like Kelly position or list of settings for adaptive strategies, also i added many usefull tooltips in script settings
Happy trading, and stay tuned for updates!
DISCLAIMER: No sharing, copying, reselling, modifying, or any other forms of use are authorized for this script, and the information published with them. This script is strictly for individual use. No one know future and Investments are always made at your own risk. I am not responsible for any losses you may incur. Please before investment make sure that chosen logic is enaugh profitable on virtual demo account.
Fair Value Gap / iVFG / Imbalance / MTF SuiteDescription
This indicator detects Fair Value Gaps (FVGs) and Imbalances across up to 10 user-selected timeframes and manages them with precise retest handling and clean visualization options.
What’s unique
3-candle FVG detection per timeframe (no lookahead).
Retest handling: on the first touch the touched edge snaps to the retest wick and the zone recolors (fresh → retested).
Right-side projection limits to avoid endless extensions.
Deterministic multi-TF overlay: HTF zones are computed independently (lookahead off) and drawn in a stable, priority-based order.
iFVG / parked zones: optionally convert a filled gap into an iFVG (parked/blue) instead of deleting/greying it.
Optional Imbalance Add-on (3-candle), with split halves + 50% midline.
How it works (technical)
FVG logic (3 candles):
Bullish when low > high (gap up); Bearish when high < low (gap down).
The created box spans the untraded range of candle B and starts at time .
Retest behavior:
On the first wick-touch, the nearest boundary adapts to the wick extreme. If enabled, the box recolors to a “retested” palette.
Projection:
Boxes extend to the right; optional bar limit constrains length.
Display limits:
FIFO pruning per direction keeps only the newest N boxes; iFVG/grey pools can share or use separate limits.
Imbalance Add-on (optional):
Classic 3-candle imbalance; draws upper/lower halves and an optional 50% midline.
No lookahead / confirmation:
Calculations run with barmerge.lookahead_off; detection finalizes on bar close (repaint-free on close).
How to use
Treat fresh gaps as potential reaction zones or confluence with liquidity / structure.
Use retested gaps for continuation or rejection logic.
Limit right-projection and visible count to keep charts readable on lower TFs.
Combine with your own execution rules (entries, stops, partials).
Key settings
General: adjust/recolor on retest, right-side limit (bars).
Display Limits: max visible per direction; separate iFVG cap if desired.
Visuals: filled vs. outline, transparency, TF labels (auto or custom), label alignment.
Theme: presets (Pegasus Classic, Icefire, Solarized, Heatmap, Pastel, Monochrome) or Custom colors.
Timeframes: enable up to 10 TF slots (e.g., M1/M5/M15/H1/H4/D1…).
Add-on — Imbalance: enable/disable, midline on/off, filled/outline, colors.
Alerts
New Bullish FVG
New Bearish FVG
Add-on: New Bullish Imbalance
Add-on: New Bearish Imbalance
Notes & limitations
FVG detection is confirmed on bar close; intrabar retest recolor can occur as price interacts.
Historical rendering depends on chart history & session settings.
Many TFs + large box counts can be heavy; use projection limits and display caps for performance.
This tool does not generate trade signals; it visualizes inefficiencies for discretionary or rules-based workflows.
Disclaimer
For educational and informational purposes only. Not financial advice.
Access / Support: Invite-only. For access or assistance, please DM.






















