IFVGs [NINE]Overview
The IFVG Indicator is a precision-engineered tool designed to identify and display Inversion Fair Value Gaps (IFVGs), a powerful price action concept rooted in ICT (Inner Circle Trader) methodology. This indicator automatically detects when price closes through an existing Fair Value Gap, causing the zone to "invert" and flip its directional bias, signaling potential areas of institutional interest for future price reactions.
What is an Inversion Fair Value Gap?
A Fair Value Gap (FVG) is a three-candle pattern where a gap exists between the wicks of the first and third candles, representing an imbalance in price delivery. These zones often act as magnets for price to return and "fill" the inefficiency.
An Inversion Fair Value Gap (IFVG) occurs when price doesn't just tap into an FVG, it closes through it with a candle body. This "inversion" transforms the zone:
A Bullish FVG that gets closed through becomes a Bearish IFVG (potential resistance/supply zone)
A Bearish FVG that gets closed through becomes a Bullish IFVG (potential support/demand zone)
IFVGs represent areas where the market has shown its hand — institutional order flow has aggressively moved through a prior inefficiency, and the inverted zone now becomes a point of interest for potential reversals or continuations.
Key Features
Automatic IFVG Detection
The indicator continuously monitors for Fair Value Gaps and automatically converts them to IFVGs when price body closes through the zone. No manual identification required.
Multiple Display Styles
Choose from four distinct visualization modes to match your chart aesthetic:
Level — Clean, minimal single line at the IFVG extreme (top for bullish, bottom for bearish)
Normal — Filled zone with dashed borders and dot label
Minimalist — High/low boundary lines with connecting link
Classic — Filled box with 50% midline only
Full Customization
Independent colors for bullish and bearish IFVGs
Adjustable transparency for zone fills
Optional 50% midline (Consequent Encroachment level)
Flexible label styles: "IFVG" or "+/−" notation
Multiple label sizes: Tiny, Small, Normal, Large
Smart Extension Options
Extend to Current Bar — Zones dynamically extend as price progresses
Extend to Confirmation — Zones end at the bar where inversion occurred
Manual Offset — Fine-tune extension length in bars
Clustered IFVG Filter
Prevents chart clutter by ensuring only one IFVG per direction forms within a 5-bar cooldown period. When a single candle closes through multiple FVGs, only the first IFVG of that directional series is displayed — eliminating redundant signals and keeping your chart clean.
FVG Lookback Control
Limit which FVGs can become IFVGs based on their age. Options include 10, 50, 100, 200, or 300 bars. This filters out old, stale FVGs that may create less relevant inversions.
Session Time Filters
Optional time-based filtering allows you to focus on specific trading sessions:
Configurable session windows (e.g., 9:30 AM - 12:00 PM)
Support for two independent session filters
Multiple timezone options including New York, London, Tokyo, and more
Volume Imbalance Detection
Optionally include Volume Imbalances (VIs) — gaps between candle bodies rather than wicks — expanding the scope of detectable inefficiencies.
Invalidation Tracking
IFVGs are automatically invalidated when price closes back through the zone in the opposite direction, with optional display of invalidated zones.
How to Use
Entry Confirmation
IFVGs serve as areas for trade entries. When price returns to a confirmed IFVG:
Bullish IFVG — Look for long entries as price taps the zone from above
Bearish IFVG — Look for short entries as price taps the zone from below
Settings Reference
Inversion Fair Value Gaps
Show IFVGs? — Master toggle for IFVG display
Style — Level, Normal, Minimalist, or Classic
Transparency % — Zone fill opacity (0-100)
Historical Display — Maximum IFVGs to show per direction
Bullish/Bearish Colors — Independent color selection
Show Invalidated? — Display IFVGs that have been invalidated
Extend IFVGs? — Enable dynamic zone extension
Extension Mode — Current Bar or Confirmation
Manual Offset — Additional bars to extend
High/Low Lines — Show boundary lines (Minimalist style)
50% Midline — Show Consequent Encroachment level
Show Labels? — Display zone labels
Label Style — IFVG or +/− notation
FVG Lookback — Maximum age of FVGs that can invert
Clustered Filter — Prevent multiple same-direction IFVGs in quick succession
Volume Imbalances — Include body gaps in detection
Session Filters
Enable 1st/2nd Time Filter — Activate session filtering
Session Times — Define active trading windows
Timezone — Reference timezone for session calculations
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice, and nothing contained herein constitutes a recommendation, solicitation, or offer to buy or sell any securities, options, or other financial instruments.
Trading involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results. You should carefully consider your investment objectives, level of experience, and risk appetite before making any trading decisions.
The developer of this indicator makes no representations or warranties regarding the accuracy, completeness, or reliability of the information provided. You are solely responsible for your own trading decisions and any profits or losses that may result.
Always conduct your own research and consider seeking advice from a licensed financial professional before trading.
Cerca negli script per "fvg"
BORSA 321 - Care PackageOverview
Care Package is a complete higher-timeframe and intraday context tool designed to map out every important environmental factor on your chart: sessions, opening levels, gaps, market structure, order blocks, fair value gaps, volume imbalance and more.
It automatically plots:
Sessions / killzones (Asia, London, New York AM/Lunch/PM)
Key opening levels (00:00, 08:30, 09:30, 13:30)
Previous day AM/PM high–low ranges
New Day and New Week Opening Gaps (NDOG / NWOG)
RTH gap and RTH zone levels
Multi-timeframe Fair Value Gaps (up to 4)
Fractals and Order Blocks (with optional FVG confirmation)
Market structure (HH/HL/LL/LH, CHoCH, BOS)
Volume Imbalance zones with mitigation logic
All session logic runs on IANA time zones (like America/New_York), giving accurate sessions and market opens regardless of DST or broker feed.
Care Package serves as the full “context layer” for intraday execution charts.
What It Shows
1. Sessions / Killzones
The indicator automatically highlights:
Asia Session
London Session
New York AM
New York Lunch
New York PM
Each session displays:
A high–low range box
Labels for session high and session low
A midline showing the mean price
Optional forward extensions of session levels to the current bar
This cleanly outlines intraday phases for ICT/SMC execution.
2. Opening Price Levels
Key market open levels tracked:
00:00
08:30
09:30
13:30
For each open, the script draws:
A horizontal line at the opening price
A label showing time and price
An optional vertical line marking the opening bar
These opens often act as liquidity or reversal areas.
3. Previous Day AM/PM Levels
The script splits the prior day into:
Previous Day AM (first half)
Previous Day PM (second half)
Both provide:
PD AM High, PD AM Low
PD PM High, PD PM Low
Forward-projected levels
Labels for easy identification
Useful for navigating intraday targets and reaction zones.
4. Last N Days High/Low
Tracks a rolling daily range:
Each day’s High and Low
Labels containing the date
Forward extension into today’s price action
This shows where price sits relative to recent daily extremes.
5. New Day & New Week Opening Gaps (NDOG / NWOG)
The script automatically identifies:
NDOG (New Day Open Gap)
NWOG (New Week Open Gap)
Each gap includes:
A shaded zone between the two opens
Labels showing the gap type and date/week
Forward extension (optional)
Limiting the number of historical gaps (optional)
Critical for identifying unfilled imbalance zones across sessions and weeks.
6. RTH Gap & RTH Zone
You define RTH open/close times, and the indicator:
Detects RTH gaps
Draws a full zone based on direction
Plots subdivision lines (top, 75%, mid, 25%, bottom)
Extends the RTH Close reference line forward
Can extend old RTH zones automatically
Ideal for futures traders and equities.
7. Higher-Timeframe Fair Value Gaps (up to 4 TFs)
Supports up to four selectable FVG timeframes such as:
Chart timeframe
5m, 15m, 1H, 4H, 1D, 1W, 1M
Each FVG includes:
Top and bottom boundary
A midline (mean threshold)
Colored bullish or bearish fill
A label showing FVG + timeframe
Automatic cleanup when mitigated (close/wick based)
You get a clean and accurate HTF FVG map without clutter.
8. Fractals & Order Blocks
Fractals:
Standard or 5-bar fractals
Plotted as swing highs and lows
Order Blocks:
Bullish OB → down candle before up displacement
Bearish OB → up candle before down displacement
Optionally require OB to be near an FVG
Wick-based or body-based OB size
Forward-projected OB boxes
Auto-delete after mitigation
This keeps your OBs clean and execution-focused.
9. Market Structure (HH/HL/LL/LH, CHoCH, BOS)
The indicator automatically detects:
HH (Higher High)
HL (Higher Low)
LH (Lower High)
LL (Lower Low)
And also identifies:
CHoCH (Change of Character)
BOS (Break of Structure)
Each break includes:
A horizontal level at the break point
A color-coded label
Bullish (green) or bearish (red) styling
A complete market structure map is built automatically.
10. Volume Imbalances (VI)
Detects and displays:
Bullish VI (VI+)
Bearish VI (VI-)
Features:
Configurable colors
Custom label size
Max visible boxes
Extension until mitigation
Automatic mitigation detection (close or wick)
Highlight when price enters an active VI
Perfect for tracking aggressive buying/selling footprints.
11. Timezone & Date/Time Widget
Uses IANA timezones for:
Accurate session boundaries
Proper DST handling
Multi-market consistency
Also includes a small on-chart table showing:
Your timezone date/time
Exchange timezone date/time
Great for globally active traders.
12. Max Display Timeframe
To prevent clutter, the script disables visuals above a chosen timeframe.
If you exceed it:
A clean on-chart message appears
Tells you to lower your chart TF or adjust the Max Display TF
Keeps charts fast and clean
Key Inputs & Customization
Timezone (IANA format)
Max Display Timeframe
Session/Killzone toggles, colors, naming
Opening levels (00:00 / 08:30 / 09:30 / 13:30)
Previous Day AM/PM highs/lows
NDOG / NWOG gap settings
RTH gap settings
FVG batching (4 independent timeframes)
Fractal type
Order Block settings (range type, deletion, FVG filter)
Market structure settings
Volume Imbalance settings
Date/time widget settings
Everything is modular — turn features on/off individually.
How It Helps Traders
For Intraday Traders / Scalpers:
Session mapping for timing setups
Exact key opening prices
RTH gaps and internals
Precise daily AM/PM high–low context
HTF FVGs, OBs, VI zones for higher-timeframe bias
Real-time CHoCH/BOS for entry timing
For Swing Traders:
Daily/weekly context plotted automatically
NDOG, NWOG, RTH gap awareness
Macro structure levels
HTF FVGs and OBs for HTF targets
Ultimate SMC Dashboard — Pro v2.1 (ICT/SMC)
🔍 1. General Objective of the Script
This script is a complete visual and algorithmic SMC (Smart Money Concepts) analysis system that:
* Automatically identifies market structures (BOS / CHoCH / Liquidity Grab).
* Detects and dynamically maintains Fair Value Gaps (FVG) according to ICT methodology .
* Draws and tracks the evolution of Order Blocks (OB) and Breaker Blocks (BRK) .
* Calculates MACD / Volume divergences .
* Analyzes trend, volume, and buyer/seller dominance .
* Displays a clear and dynamic dashboard directly on the chart.
* Builds the foundation for reversal / continuation probability models .
---
⚙️ 2. Input Parameters
The script is highly configurable. Inputs are organized by sections:
Structure (ICT)
* Pivot left/right (swing length) → determines the swing size for HH/LL detection.
* OB lookback → number of candles to look back for an Order Block after a BOS.
* Show BOS / CHoCH / Liquidity Grab → enables or disables structural elements.
Imbalances (FVG)
* Enables the display of Fair Value Gaps .
* Manages minimum size, transparency, and **dynamic reduction** when partially filled.
* Limits the maximum number of FVGs displayed simultaneously.
Order Blocks / Breakers
* Enables Order Blocks and Breaker Blocks .
* Defines their colors, opacity , and dynamic behavior .
* Automatically removes outdated OBs exceeding the maximum limit.
Signal & Probabilities
* Sets the lookback period for structure calculation.
* Calculates average volume (MA) to detect dominance and momentum.
* Defines the probability threshold for signals (not yet visible in this snippet).
RSI / EMA / Divergences / Sentiment
* Prepares additional indicator modules, such as:
* MACD divergence detection
* RSI / EMA visualization
* Market sentiment and funding metrics
---
🧠 3. Market Structure Logic (ICT Core)
a. Pivot Detection
Uses ta.pivothigh and ta.pivotlow to detect Higher Highs (HH) and Lower Lows (LL) .
b. Break of Structure (BOS)
A BOS occurs when price breaks a validated swing high or low:
* bullBOS → bullish break.
* bearBOS → bearish break.
c. Change of Character (CHoCH)
A CHoCH is detected when BOS direction changes (e.g., a bullish BOS followed by a bearish BOS).
d. Liquidity Grab
Detection of liquidity sweeps :
* grabUp : wick above the last high, closing below.
* grabDown : wick below the last low, closing above.
All these signals feed into the main trend bias (Bull / Bear / Flat).
---
🧱 4. Fair Value Gaps (FVG)
The FVG logic strictly follows ICT principles :
* Bullish FVG: if `low > high `
* Bearish FVG: if `high < low `
Each FVG becomes a dynamic box :
* Shrinks in real time as price partially fills it.
* Automatically deletes itself once fully closed.
* Color and opacity depend on direction (green = bullish, red = bearish).
This is one of the most complex parts of the code, managing:
* Arrays of box objects (`array`)
* Real-time updates for every candle
* Automatic cleanup to prevent chart overload
---
🧱 5. Order Blocks (OB) and Breaker Blocks
An Order Block is generated:
* After a BOS,
* By identifying the last candle opposite to the trend before the break.
Examples:
* Bullish BOS → Bullish OB = last red candle before the breakout.
* Bearish BOS → Bearish OB = last green candle before the breakdown.
Each OB:
* Is visualized as a colored rectangle (cyan or orange).
* Becomes inactive once mitigated (touched).
* Is removed and converted into a Breaker Block if invalidated (opposite side broken).
The system uses arrays similar to FVGs to maintain visual cleanliness and chart efficiency .
---
📊 6. Volume and Dominance
The script computes:
* A moving average (SMA) of volume.
* Whether the current volume is abnormally high or low .
* Whether candles are buyer- or seller-dominant .
Simplified display:
* 🔥 High Volume
* 📉 Low Volume
* 🟩 Buyers Dominant
* 🟥 Sellers Dominant
* ⚪️ Neutral
---
🧩 7. Textual Dashboard
Text variables such as:
* `struct_txt` → displays BOS, CHoCH, Grab info
* `fvg_txt` → “🟢 Open” or “🔴 Close”
* `ob_txt` → “🟩 Open” or “🟥 Close”
These feed a visual dashboard (not yet displayed in this excerpt), summarizing the entire market state in real time.
---
💡 8. Summary
The script:
* Observes market structure (ICT) .
* Automatically draws institutional imbalance and interest zones (OB, FVG).
* Dynamically manages their evolution.
* Provides visual structural, volume, and sentiment signals .
* Builds a complete foundation for a professional ICT/SMC dashboard .
WorldCup Dashboard + Institutional Sessions© 2025 NewMeta™ — Educational use only.
# Full, Premium Description
## WorldCup Dashboard + Institutional Sessions
**A trade-ready, intraday framework that combines market structure, real flow, and institutional timing.**
This toolkit fuses **Institutional Sessions** with a **price–volume decision engine** so you can see *who is active*, *where value sits*, and *whether the drive is real*. You get: **CVD/Delta**, volume-weighted **Momentum**, **Aggression** spikes, **FVG (MTF)** with nearest side, **Daily Volume Profile (VAH/POC/VAL)**, **ATR regime**, a **24h position gauge**, classic **candle patterns**, IBH/IBL + **first-hour “true close”** lines, and a **10-vote confluence scoreboard**—all in one view.
---
## What’s inside (and how to trade it)
### 🌍 Institutional Sessions (Sydney • Tokyo • London • New York)
* Session boxes + a highlighted **first hour**.
* Plots the **true close** (first-hour close) as a running line with a label.
**Use:** Many desks anchor risk to this print. Above = bullish bias; below = bearish. **IBH/IBL** breaks during London/NY carry the most signal.
### 📊 CVD / Delta (Flow)
* Net buyer vs seller pressure with smooth trend state.
**Use:** **Rising CVD + acceptance above mid/POC** confirms continuation. Bearish price + rising CVD = caution (possible absorption).
### ⚡ Volume-Weighted Momentum
* Momentum adjusted by participation quality (volume).
**Use:** Momentum>MA and >0 → trend drive is “real”; <0 and falling → distribution risk.
### 🔥 Aggression Detector
* ROC × normalized volume × wick factor to flag **forceful** candles.
**Use:** On spikes, avoid fading blindly—wait for pullbacks into **aligned FVG** or for aggression to cool.
### 🟦🟪 Fair Value Gaps (with MTF)
* Detects up to 3 recent FVGs and marks the **nearest** side to price.
**Use:** Trend pullbacks into **bullish FVG** for longs; bounces into **bearish FVG** for shorts. Optional threshold to filter weak gaps.
### 🧭 24h Gauge (positioning)
* Shows current price across the 24h low⇢high with a mid reference.
**Use:** Above mid and pushing upper third = momentum continuation setups; below mid = sell the rips bias.
### 🧱 Daily Volume Profile (manual per day)
* **VAH / POC / VAL** derived from discretized rows.
**Use:** **POC below** supports longs; **POC above** caps rallies. Fade VAH/VAL in ranges; treat them as break/hold levels in trends.
### 📈 ATR Regime
* **ATR vs ATR-avg** with direction and regime flag (**HIGH / NORMAL / LOW**).
**Use:** HIGH ⇒ give trades room & favor trend following. LOW ⇒ fade edges, scale targets.
### 🕯️ Candle Patterns (contextual, not standalone)
* Engulfings, Morning/Evening Star, 3 Soldiers/Crows, Harami, Hammer/Shooting Star, Double Top/Bottom.
**Use:** Only with session + flow + momentum alignment.
### 🤝 Price–Volume Classification
* Labels each bar as **continuation**, **exhaustion**, **distribution**, or **healthy pullback**.
**Use:** Align continuation reads with trend; treat “Price↑ + Vol↓” as a caution flag.
### 🧪 Confluence Scoreboard & B/S Meter
* Ten elements vote: 🔵 bull, ⚪ neutral, 🟣 bear.
**Use:** Execution filter—take setups when the board’s skew matches your trade direction.
---
## Playbooks (actionable)
**Trend Pullback (Long)**
1. London/NY active, Momentum↑, CVD↑, price above 24h mid & POC.
2. Pullback into **nearest bullish FVG**.
3. Invalidate under FVG low or **true-close** line.
4. Targets: IBH → VAH → 24h high.
**Range Fade (Short)**
1. Asia/quiet regime, **Price↑ + Vol↓** into **VAH**, ATR low.
2. Nearest FVG bearish or scoreboard skew bearish.
3. Invalidate above VAH/IBH.
4. Targets: POC → VAL.
**News/Impulse**
Aggression spike? Don’t chase. Let it pull back into the aligned FVG; require CVD/Momentum agreement before entry.
---
## Alerts (included)
* **Bull/Bear Confluence ≥ 7/10**
* **Intraday Target Achieved** / **Daily Target Achieved**
* **Session True-Close Retests** (Sydney/Tokyo/London/NY)
*(Keep alerts “Once per bar” unless you specifically want intrabar triggers.)*
---
## Setup Tips
* **UTC**: Choose the reference that matches how you track sessions (default UTC+2).
* **Volume threshold**: 2.0× is a strong baseline; raise for noisy alts, lower for majors.
* **CVD smoothing**: 14–24 for scalps; 24–34 for slower markets.
* **ATR lengths**: Keep defaults unless your asset has a persistent regime shift.
---
## Why this framework?
Because **timing (sessions)**, **truth (flow)**, and **location (value/FVG)** together beat any single signal. You get *who is trading*, *how strong the push is*, and *where risk lives*—on one screen—so execution is faster and cleaner.
---
**Disclaimer**: Educational use only. Not financial advice. Markets are risky—backtest and size responsibly.
Multi-TF 👀### Multi-Timeframe Analysis (MTF-Analysis)
**Overview**
The Multi-Timeframe Analysis indicator is a powerful visualization tool designed for traders who incorporate multi-timeframe (MTF) strategies into their decision-making process. It overlays compact, customizable candle representations from up to four higher timeframes directly on your chart, positioned to the right of the last bar for quick reference. This allows you to monitor price action, momentum via EMAs, and key levels like Fair Value Gaps (FVGs) across multiple resolutions without switching charts. Built with efficiency in mind, it supports automatic timeframe detection, real-time updates, and a clean, non-intrusive design that enhances your trading workflow.
Ideal for day traders, swing traders, and scalpers, this indicator helps identify alignments between timeframes, spot potential reversals or continuations, and validate entries/exits based on higher-timeframe context. It leverages Pine Script v6 for smooth performance, with optimizations to handle up to 5000 bars back and extensive drawing limits.
**Key Features**
- **Multi-Timeframe Candle Display**: Renders recent candles (configurable from 5 to 100 per timeframe) from selected higher timeframes (e.g., 5m, 15m, 1H, 4H) as compact bars with customizable width, spacing, and padding. Bullish and bearish candles are color-coded for instant recognition.
- **Automatic Timeframe Adaptation**: When enabled, the indicator intelligently selects complementary timeframes based on your chart's resolution (e.g., on a 1m chart, it might show 5m, 15m, and 1H). Manual overrides are available for full control.
- **EMA Overlays**: Plots EMA9, EMA21, and EMA50 on each MTF section using a user-defined source (e.g., OHLC/4, close). EMAs can be dashed for clarity and enabled/disabled per timeframe, helping to gauge momentum and trend strength.
- **Fair Value Gaps (FVGs)**: Detects bullish (+FVG) and bearish (-FVG) gaps with a configurable lookback length (5-50 bars). Gaps are visualized as dotted boxes extending from the candle, highlighting potential support/resistance zones or imbalances.
- **Time Labels and Debugging**: Displays timestamp labels under every fourth candle for chronological context. A debug mode expands spacing and adds detailed labels (e.g., OHLC, volume, EMA values) for testing and verification.
- **Customization Options**: Extensive inputs for colors (bodies, wicks, EMAs, FVGs), label sizes/styles, and layout ensure seamless integration with your chart theme. Supports futures symbols with a time offset adjustment.
- **Performance Optimizations**: Uses arrays for efficient data management, clears drawings on realtime updates or timeframe changes, and limits buffer sizes to prevent overload.
**How to Use**
1. Add the indicator to your chart via TradingView's "Indicators" menu.
2. Configure timeframes: Enable/disable up to four TFs and set the number of candles to display. Use "Auto Timeframe" for smart defaults.
3. Adjust EMAs: Select the source type and toggle per TF to focus on relevant momentum signals (e.g., EMA9 crossovers for short-term trades).
4. Enable FVGs: Activate per TF and tweak the length to suit your market (shorter for volatile assets, longer for trends).
5. Fine-tune appearance: Modify padding, candle width, and colors to avoid clutter. Use debug mode during setup.
6. Interpret: Align your chart's price action with MTF candles—look for confluence in trends, FVGs filling as support/resistance, or EMA alignments for high-probability setups.
**Input Settings**
- **General**: Hour offset for time adjustments (useful for futures).
- **Timeframes**: Enable TFs 1-4, select resolutions (e.g., "5m"), and set candle counts. Auto mode simplifies this.
- **FVG/iFVG**: Toggle per TF, customize colors and detection length.
- **EMA**: Enable per TF, choose source, colors, and dashed style.
- **Candle Appearance**: Bull/bear colors for bodies/wicks, width/spacing/padding, label size/color.
- **Debug**: Expands view for detailed inspection.
**Notes**
- This indicator is non-repainting and updates in realtime, but performance may vary on lower timeframes with many candles—reduce counts if needed.
- FVGs are calculated locally on recent bars for efficiency; historical gaps beyond the buffer aren't shown.
- Compatible with all symbols, but best on volatile markets like forex, crypto, or indices.
- Feedback welcome—updates may include more MA types or advanced FVG filters.
Enhance your edge with multi-timeframe insights—try MTF-Analysis today!
MirPapa_Library_ICTLibrary "MirPapa_Library_ICT"
GetHTFoffsetToLTFoffset(_offset, _chartTf, _htfTf)
GetHTFoffsetToLTFoffset
@description Adjust an HTF offset to an LTF offset by calculating the ratio of timeframes.
Parameters:
_offset (int) : int The HTF bar offset (0 means current HTF bar).
_chartTf (string) : string The current chart’s timeframe (e.g., "5", "15", "1D").
_htfTf (string) : string The High Time Frame string (e.g., "60", "1D").
@return int The corresponding LTF bar index. Returns 0 if the result is negative.
IsConditionState(_type, _isBull, _level, _open, _close, _open1, _close1, _low1, _low2, _low3, _low4, _high1, _high2, _high3, _high4)
IsConditionState
@description Evaluate a condition state based on type for COB, FVG, or FOB.
Overloaded: first signature handles COB, second handles FVG/FOB.
Parameters:
_type (string) : string Condition type ("cob", "fvg", "fob").
_isBull (bool) : bool Direction flag: true for bullish, false for bearish.
_level (int) : int Swing level (only used for COB).
_open (float) : float Current bar open price (only for COB).
_close (float) : float Current bar close price (only for COB).
_open1 (float) : float Previous bar open price (only for COB).
_close1 (float) : float Previous bar close price (only for COB).
_low1 (float) : float Low 1 bar ago (only for COB).
_low2 (float) : float Low 2 bars ago (only for COB).
_low3 (float) : float Low 3 bars ago (only for COB).
_low4 (float) : float Low 4 bars ago (only for COB).
_high1 (float) : float High 1 bar ago (only for COB).
_high2 (float) : float High 2 bars ago (only for COB).
_high3 (float) : float High 3 bars ago (only for COB).
_high4 (float) : float High 4 bars ago (only for COB).
@return bool True if the specified condition is met, false otherwise.
IsConditionState(_type, _isBull, _pricePrev, _priceNow)
IsConditionState
@description Evaluate FVG or FOB condition based on price movement.
Parameters:
_type (string) : string Condition type ("fvg", "fob").
_isBull (bool) : bool Direction flag: true for bullish, false for bearish.
_pricePrev (float) : float Previous price (for FVG/FOB).
_priceNow (float) : float Current price (for FVG/FOB).
@return bool True if the specified condition is met, false otherwise.
IsSwingHighLow(_isBull, _level, _open, _close, _open1, _close1, _low1, _low2, _low3, _low4, _high1, _high2, _high3, _high4)
IsSwingHighLow
@description Public wrapper for isSwingHighLow.
Parameters:
_isBull (bool) : bool Direction flag: true for bullish, false for bearish.
_level (int) : int Swing level (1 or 2).
_open (float) : float Current bar open price.
_close (float) : float Current bar close price.
_open1 (float) : float Previous bar open price.
_close1 (float) : float Previous bar close price.
_low1 (float) : float Low 1 bar ago.
_low2 (float) : float Low 2 bars ago.
_low3 (float) : float Low 3 bars ago.
_low4 (float) : float Low 4 bars ago.
_high1 (float) : float High 1 bar ago.
_high2 (float) : float High 2 bars ago.
_high3 (float) : float High 3 bars ago.
_high4 (float) : float High 4 bars ago.
@return bool True if swing condition is met, false otherwise.
AddBox(_left, _right, _top, _bot, _xloc, _colorBG, _colorBD)
AddBox
@description Draw a rectangular box on the chart with specified coordinates and colors.
Parameters:
_left (int) : int Left bar index for the box.
_right (int) : int Right bar index for the box.
_top (float) : float Top price coordinate for the box.
_bot (float) : float Bottom price coordinate for the box.
_xloc (string) : string X-axis location type (e.g., xloc.bar_index).
_colorBG (color) : color Background color for the box.
_colorBD (color) : color Border color for the box.
@return box Returns the created box object.
Addline(_x, _y, _xloc, _color, _width)
Addline
@description Draw a vertical or horizontal line at specified coordinates.
Parameters:
_x (int) : int X-coordinate for start (bar index).
_y (int) : float Y-coordinate for start (price).
_xloc (string) : string X-axis location type (e.g., xloc.bar_index).
_color (color) : color Line color.
_width (int) : int Line width.
@return line Returns the created line object.
Addline(_x, _y, _xloc, _color, _width)
Parameters:
_x (int)
_y (float)
_xloc (string)
_color (color)
_width (int)
Addline(_x1, _y1, _x2, _y2, _xloc, _color, _width)
Parameters:
_x1 (int)
_y1 (int)
_x2 (int)
_y2 (int)
_xloc (string)
_color (color)
_width (int)
Addline(_x1, _y1, _x2, _y2, _xloc, _color, _width)
Parameters:
_x1 (int)
_y1 (int)
_x2 (int)
_y2 (float)
_xloc (string)
_color (color)
_width (int)
Addline(_x1, _y1, _x2, _y2, _xloc, _color, _width)
Parameters:
_x1 (int)
_y1 (float)
_x2 (int)
_y2 (int)
_xloc (string)
_color (color)
_width (int)
Addline(_x1, _y1, _x2, _y2, _xloc, _color, _width)
Parameters:
_x1 (int)
_y1 (float)
_x2 (int)
_y2 (float)
_xloc (string)
_color (color)
_width (int)
AddlineMid(_type, _left, _right, _top, _bot, _xloc, _color, _width)
AddlineMid
@description Draw a midline between top and bottom for FVG or FOB types.
Parameters:
_type (string) : string Type identifier: "fvg" or "fob".
_left (int) : int Left bar index for midline start.
_right (int) : int Right bar index for midline end.
_top (float) : float Top price of the region.
_bot (float) : float Bottom price of the region.
_xloc (string) : string X-axis location type (e.g., xloc.bar_index).
_color (color) : color Line color.
_width (int) : int Line width.
@return line or na Returns the created line or na if type is not recognized.
GetHtfFromLabel(_label)
GetHtfFromLabel
@description Convert a Korean HTF label into a Pine Script timeframe string via handler library.
Parameters:
_label (string) : string The Korean label (e.g., "5분", "1시간").
@return string Returns the corresponding Pine Script timeframe (e.g., "5", "60").
IsChartTFcomparisonHTF(_chartTf, _htfTf)
IsChartTFcomparisonHTF
@description Determine whether a given HTF is greater than or equal to the current chart timeframe.
Parameters:
_chartTf (string) : string Current chart timeframe (e.g., "5", "15", "1D").
_htfTf (string) : string HTF timeframe (e.g., "60", "1D").
@return bool True if HTF ≥ chartTF, false otherwise.
CreateBoxData(_type, _isBull, _useLine, _top, _bot, _xloc, _colorBG, _colorBD, _offset, _htfTf, htfBarIdx, _basePoint)
CreateBoxData
@description Create and draw a box and optional midline for given type and parameters. Returns success flag and BoxData.
Parameters:
_type (string) : string Type identifier: "fvg", "fob", "cob", or "sweep".
_isBull (bool) : bool Direction flag: true for bullish, false for bearish.
_useLine (bool) : bool Whether to draw a midline inside the box.
_top (float) : float Top price of the box region.
_bot (float) : float Bottom price of the box region.
_xloc (string) : string X-axis location type (e.g., xloc.bar_index).
_colorBG (color) : color Background color for the box.
_colorBD (color) : color Border color for the box.
_offset (int) : int HTF bar offset (0 means current HTF bar).
_htfTf (string) : string HTF timeframe string (e.g., "60", "1D").
htfBarIdx (int) : int HTF bar_index (passed from HTF request).
_basePoint (float) : float Base point for breakout checks.
@return tuple(bool, BoxData) Returns a boolean indicating success and the created BoxData struct.
ProcessBoxDatas(_datas, _useMidLine, _closeCount, _colorClose)
ProcessBoxDatas
@description Process an array of BoxData structs: extend, record volume, update stage, and finalize boxes.
Parameters:
_datas (array) : array Array of BoxData objects to process.
_useMidLine (bool) : bool Whether to update the midline endpoint.
_closeCount (int) : int Number of touches required to close the box.
_colorClose (color) : color Color to apply when a box closes.
@return void No return value; updates are in-place.
BoxData
Fields:
_isActive (series bool)
_isBull (series bool)
_box (series box)
_line (series line)
_basePoint (series float)
_boxTop (series float)
_boxBot (series float)
_stage (series int)
_isStay (series bool)
_volBuy (series float)
_volSell (series float)
_result (series string)
LineData
Fields:
_isActive (series bool)
_isBull (series bool)
_line (series line)
_basePoint (series float)
_stage (series int)
_isStay (series bool)
_result (series string)
ICT iFVG Detector and Alert [by ote618]Description
This script detects ICT - fair value gaps (FVG) formed by price gaps between Candle 1 and Candle 3, then monitors the next 5 candles for an inverse fair value gap (iFVG).
What It Detects
Bullish FVG: When Candle 1 high is below Candle 3 low (BISI)
Bearish FVG: When Candle 1 low is above Candle 3 high (SIBI)
Once an FVG is detected, the script checks the next 5 candles:
A Bullish FVG becomes a Bearish IFVG if price closes below Candle 1 high
A Bearish FVG becomes a Bullish IFVG if price closes above Candle 1 low
Only the first bar that validates the FVG triggers the transition to an IFVG.
Visual Output
A shaded rectangle is plotted to mark the original FVG zone (from Candle 1 to Candle 3)
Color-coded:
Red for Bearish IFVG (validated Bullish IG)
Green for Bullish IFVG (validated Bearish IG)
The rectangle extends from Candle 1 to the validating bar
Alerts
You can receive alerts when an FVG becomes an IFVG:
Configurable to fire only on selected timeframes (1m, 5m, 15m, 60m)
Alerts include the direction and the chart timeframe
Settings
Enable Alerts For Timeframe: Choose which timeframe(s) trigger alerts
This tool helps traders identify inverse FVGs (iFVG), a useful ICT concept.
Smart Stop-Loss (SSL)Smart Stop-Loss (SSL) Indicator
Overview
The Smart Stop-Loss (SSL) indicator is an advanced risk management tool designed to help traders set dynamic stop-loss levels based on market structure, volatility, and momentum. Unlike traditional fixed stop-loss methods, SSL adapts to changing market conditions, helping to avoid premature exits while protecting capital during true reversals.
Key Features
1. Volatility-Based Adjustments
- Uses Average True Range (ATR) to measure market volatility
- Automatically widens stop-loss during volatile periods and tightens during calm markets
- Customizable ATR multiplier (default: 1.5x) to adjust sensitivity
2. Market Structure Integration
- Identifies significant swing highs and lows to establish support/resistance levels
- Places stop-loss levels beyond these structural points to avoid common stop hunts
3. Fair Value Gap (FVG) Detection
- Identifies imbalances in order flow that often lead to strong directional moves
- Bullish FVG: A gap up where the current high is below previous low
- Bearish FVG: A gap down where the current low is above previous high
4. Smart Stop-Loss Tightening
- Automatically tightens stop-loss when FVGs are mitigated (filled)
- Uses RSI as a momentum filter to prevent premature adjustments
- Creates a trailing effect that locks in profits as trades move favorably
How to Use
For Long Positions:
1. **Entry**: Look for bullish FVG formations (green step line appears)
2. **Stop-Loss Placement**: Set your stop at or slightly below the green step line
3. **Stop Adjustment**: When price closes above the FVG zone and RSI > 50, the stop will automatically tighten
4. **Exit**: Exit the position when price closes below the green line or when your profit target is reached
For Short Positions:
1. **Entry**: Look for bearish FVG formations (red step line appears)
2. **Stop-Loss Placement**: Set your stop at or slightly above the red step line
3. **Stop Adjustment**: When price closes below the FVG zone and RSI < 50, the stop will automatically tighten
4. **Exit**: Exit the position when price closes above the red line or when your profit target is reached
Real-World Examples
Example 1: Trend Continuation
In an uptrend, when a bullish FVG appears, it often indicates institutional buying pressure. The SSL will place a stop below the swing low with an ATR buffer. As price continues upward and mitigates the FVG, the SSL tightens to protect profits while allowing the trend to continue.
Example 2: Avoiding Premature Exits
During normal market fluctuations, traditional fixed stops might get triggered too early. The SSL's adaptive nature accounts for volatility, keeping you in profitable trades longer by positioning stops beyond noise levels.
Example 3: Protecting Against Reversals
When a true reversal occurs, the momentum filter (RSI) will confirm the change in direction, allowing the SSL to maintain wider protection rather than prematurely tightening in a false move.
Tips for Best Results
1. **Timeframe Selection**: Works best on 1H, 4H and daily charts where market structure is more reliable
2. **Combine with Trend Analysis**: Use in conjunction with trend identification tools
3. **ATR Adjustment**: Increase the ATR multiplier for more volatile instruments
4. **Alert Setup**: Configure the built-in alerts to notify you when stop levels are breached
5. **Visual Confirmation**: The labels show exact stop values to help with order placement
Disclaimer
This indicator is provided for informational and educational purposes only. While it uses advanced techniques to determine potential stop-loss levels, no indicator can predict market movements with certainty. Always manage your risk appropriately and never risk more than you can afford to lose. Past performance is not indicative of future results. The developer of this indicator accepts no liability for trading losses incurred from its use. Always test thoroughly on demo accounts before using in live trading.
cd_mtg_CxThis indicator is designed to show discount / premium zones and price gaps (fvg) on the screen within a rule.
Overview:
As it is known, the price continues its movement with swings and uses some zones to continue or reverse its movement. Commonly used of these zones are named by different traders such as supply / demand, order block, suport/ resistance zone. And again, many traders prefer to be involved in the entry when the price determined with the help of market structure reaches the premium / discount zones.
Expectation from the indicator and how it works:
Identify areas where the price is likely to react.
Zones to be determined for this purpose:
1- Discount / premium zones
2- Mitigation zones with price retesting
3- Price gaps (FVG's)
How is it determined?
1- Tracks the price in the higher timeframe it is alignment with, when the price violates the previous candle in the new candle (high/low), the previous candle's zones between top/bottom - middle levels.
high - middle => premium zone
low - middle => discount zone
and displays it on the screen.
2- Mitigation zones: When the price retests the discount/premium zones, those zones appear on the screen by extending to the last bar and are named as mitigation zones in the indicator.
3- Price gaps (FVG's): It is shown on the screen with known rules and higher time frame option.
Zones where the price does not respect are deleted from the display.
Settings:
- HTF for mitigation zones : Alignment high time frame selection
- HTF for FVG zones : Alignment high time frame selection
- Show HTF boxes : Show / hide
- Show Mitigation zones : Show / hide
- Show Discount/Premium zones: Show / hide
- Show FVG zones : Show / hide
And colors….
Screenshots and example :
The 15m chart is open on the screen and I select the alignment time zone H4. I select the higher time zone H1 in FVGs.
Screenshot with Show HTF boxes and Show FVG zones selected:
With show discount / premium zones selected :
With show mitigation zones selected :
Final Word : When the price comes to our zone, we take action together with other confirmations.
Our expectation from the zones is to send the price back to the region it came from.
If it is not successful, we should plan a reverse transaction.
Cheerful trades...
-- Türkçe Açıklama
Bu indikatör, bir kural dahilinde ucuzluk / pahalılık bölgelerini ve fiyat boşluklarını (fvg) ekranda göstermek ve traderlara en uygun yerde işlem fırsatı sunmak üzere tasarlanmıştır.
Genel Bakış :
Bilindiği gibi fiyat hareketine salınımlarla devam eder ve hareketine devam etmek ya da tersine dönmek için bazı bölgeleri kullanır. Bu bölgelerin yaygın şekilde kullanılanları supply / demand, order block , support /resistance zone gibi farklı ekollerce adlandırılmıştır. Ve yine birçok trader market yapısı yardımla belirlediği fiyatın ucuzluk / pahalılık bölgelerine gelmesiyle işleme dahil olmayı tercih eder.
İndikatörden beklenti ve nasıl çalışır:
Beklenti; Fiyatın tepki alması muhtemel bölgeleri belirlemesidir.
Bu amaçla belirleyeceği bölgeler:
1- Ucuzluk / pahalılık bölgeleri
2- Fiyatın tekrar test etmesiyle “mitigasyon bölgeleri/mitige”
3- Fiyat boşlukları (FVG ler)
Nasıl belirler ?
1- Fiyatı uyumlu olduğu üst zaman diliminde takip eder, fiyat yeni mumda bir önceki mumu ihlal ettiğinde (high/low), önceki mumun tepe/dip - orta seviyeleri arasında kalan bölgeleri
high - middle => premium zone
low - middle => discount zone
olarak belirler ve ekranda gösterir.
2- Mitigasyon bölgesi: Fiyat ucuzluk/ pahalılık bölgeleri yeniden test ettiğinde, o bölgeler son bara uzatılarak ekranda görünür ve indikatörde ismi “mitigation zone” olarak geçer.
3- Fiyat boşlukları (FVG) : Bilinen kurallarla ve üst zaman dilimi seçeneğiyle ekranda gösterilir.
Fiyatın saygı göstermediği bölgeler ekrandan silinir.
Ayarlar:
- HTF for mitigation zones : Uyumlu üst zaman dilimi seçimi
- HTF for FVG zones : Uyumlu üst zaman dilimi seçimi
Gösterim ve renk seçenekleri.
Ekran görüntüleri ve örnek : (İngilizce kısımda)
Son söz : Fiyat bölgemize geldiğinde diğer konfirmelerle birlikte işlem alıyoruz.
Bölgelerden beklentimiz fiyatı geldiği bölgeye tekrar göndermesidir.
Eğer başarılı olamazsa tersi yönde işlem planlamalıyız.
Neşeli tradeler...
Flux Charts - PAT Automation💎 GENERAL OVERVIEW
The PAT Automation is a powerful and versatile tool designed to help traders rigorously test their trading strategies against historical market data. With an array of advanced settings, traders can fine-tune their strategies, assess performance, and identify key improvements before deploying in live trading environments. This backtester offers a wide range of configurable settings, explained within this write-up.
Features of the PAT Automation:
Step By Step : Configure your strategy step by step, which will allow you to have OR & AND logic in your strategies.
Highly Configurable : Offers multiple parameters for fine-tuning trade entry and exit conditions.
Multi-Timeframe Analysis : Allows traders to analyze multiple timeframes simultaneously for enhanced accuracy.
Provides advanced stop-loss, take-profit, and break-even settings.
Incorporates volume-based conditions, liquidity grabs , order blocks , market structures and fair value gaps for refined strategy execution.
🚩 UNIQUENESS
The PAT Automation stands out from conventional backtesting tools due to its unparalleled flexibility, precision, and advanced trading logic integration. Key factors that make it unique include:
✅ Comprehensive Strategy Customization – Unlike traditional backtesters that offer basic entry and exit conditions, PAT Automation provides a highly detailed parameter set, allowing traders to fine-tune their strategies with precision.
✅ Multi-Timeframe Price Action Features – This is the first-ever tool that allows traders to backtest price action with multi-timeframe features such as Fair Value Gaps (FVGs), Inversion Fair Value Gaps (IFVGs), Order Blocks & Breaker Blocks.
✅ Customizable Take-Profit Conditions – Offers various methods to set take-profit exits, including using core features from price action, and fixed exits like ATR, % change or price change, enabling traders to tailor their exit strategies to specific market behaviors.
✅ Customizable Stop-Loss Conditions – Provides several ways to set up stop losses, including using concepts from price action and trailing stops or fixed exits like ATR, % change or price change, allowing for dynamic risk management tailored to individual strategies.
✅ Integration of External Indicators – Allows the inclusion of other indicators or data sources from TradingView for creating strategy conditions, enabling traders to enhance their strategies with additional insights and data points.
By integrating these advanced features, PAT Automation ensures that traders can rigorously test and optimize their strategies with great accuracy and efficiency.
📌 HOW DOES IT WORK?
The first setting you will want to set it the pyramiding setting. This setting controls the number of simultaneous trades in the same direction allowed in the strategy. For example, if you set it to 1, only one trade can be active in any time, and the second trade will not be entered unless the first one is exited. If it is set to 2, the script will handle both of them at the same time. Note that you should enter the same value to this pyramiding setting, and the pyramiding setting in the "Properties" tab of the script for this to work.
For deep backtesting, you can set "Max Distance To Last Bar" to "Unlimited". If you encounter any memory issues, try decreasing this setting to a lower value.
You can enable and set a backtesting window that will limit the entries to between the start date & end date.
Then, you can enter your desired settings to Price Action features like FVGs, IFVGs, Order Blocks, Breaker Blocks, Liquidity Grabs, Market Structures, EQH & EQL and Volume Imbalances. You can also enable and set up to 3 timeframes, which you can use later on when customizing your strategies enter / exit conditions.
Entry Conditions
From the "Long Conditions" or the "Short Conditions" groups, you can set your position entry conditions. For settings like "initial capital" or "order size", you can open the "Properties" tab, where these are handled.
The PAT Automation can use the following conditions for entry conditions :
1. Order Block (OB)
Detection: Triggered when an Order Block forms or is detected
Retest: Triggered when price retests an Order Block. A retest is confirmed when a candle enters an Order Block and closes outside of it.
Retracement: Triggered when price touches an Order Block
Break: Triggered when an Order Block is invalidated by candle close or wick, depending on the user's input.
2. Breaker Block (BB)
Detection: Triggered when a Breaker Block forms or is detected
Retest: Triggered when price retests a Breaker Block. A retest is confirmed when a candle enters a Breaker Block and closes outside of it.
Retracement: Triggered when price touches a Breaker Block
Break: Triggered when a Breaker Block is invalidated by candle close or wick, depending on the user's input.
3. Fair Value Gap (FVG)
Detection: Triggered when an FVG forms or is detected
Retest: Triggered when price retests an FVG. A retest is confirmed when a candle enters an FVG and closes outside of it.
Retracement: Triggered when price touches an FVG
Break: Triggered when an FVG is invalidated by candle close or wick, depending on the user's input.
4. Inversion Fair Value Gap (IFVG)
Detection: Triggered when an IFVG forms or is detected
Retest: Triggered when price retests an IFVG. A retest is confirmed when a candle enters an IFVG and closes outside of it.
Retracement: Triggered when price touches an IFVG
Break: Triggered when an IFVG is invalidated by candle close or wick, depending on the user's input.
5. Break of Structure (BOS)
Detection: Triggered when a BOS forms or is detected
6. Change of Character (CHoCH)
Detection: Triggered when a CHoCH forms or is detected
7. Change of Character Plus (CHoCH+)
Detection: Triggered when a CHoCH+ forms or is detected
8. Volume Imbalance (VI)
Detection: Triggered when a Volume Imbalance forms or is detected
9. Equal High (EQH)
Detection: Triggered when an EQH is detected
10. Equal Low (EQL)
Detection: Triggered when an EQL is detected
11. Buyside Liquidity Grab
Detection: Triggered when a liquidity grab occurs at Buyside Liquidity (BSL).
12. Sellside Liquidity Grab
Detection: Triggered when a liquidity grab occurs at Sellside Liquidity (SSL).
🕒 TIMEFRAME CONDITIONS
The PAT Automation supports Multi-Timeframe (MTF) features, just like the Price Action Toolkit. When setting an entry condition, you can also choose the timeframe.
To set up MTF conditions, navigate to the 'Timeframes' section in the settings, select your desired timeframes, and enable them. You can choose up to three timeframes.
Once you've selected your timeframes, you can use them in your strategy. When setting long and short entry / exit conditions, you can choose from Timeframe 1, Timeframe 2, or Timeframe 3.
External Conditions
Users can use external indicators on the chart to set entry conditions.
The second dropdown in the external condition settings allows you to choose a conditional operator to compare external outputs. Available options include:
Less Than or Equal To: <=
Less Than: <
Equal To: =
Greater Than: >
Greater Than or Equal To: >=
The position entry conditions work like this ;
Each side has 5 Price Action conditions and 1 Source condition. Each condition can be enabled or disabled using the checkbox on the left side.
For Price Action Conditions, you can set a direction: "Any", "Bullish" or "Bearish".
Then a Price Action Feature, like "FVG" or "Order Block".
The last part of our constructed condition is the alert type, which you can select between "Detection", "Retest", "Retracement" or "Break".
Now you should have a constructed condition, which should look like "Bullish Order Block Retest".
You can select which timeframe should this condition work on from Timeframe 1, 2 or 3. If you select "Any Timeframe", the condition will work for all timeframes.
Lastly select the step of this condition from 1 to 6.
The Source Condition
The last condition on each side is a source condition that is different from the others. Using this condition, you can create your own logic using other indicators' outputs on your chart. For example, suppose that you have an EMA indicator in your chart. You can have the source condition to something like "EMA > high".
The Step System
Each condition has a step number, and conditions are in topological order based on them.
The conditions are executed step by step. This means the condition with step 2 cannot be executed before the condition with step 1 is executed.
Conditions with the same step numbers have "OR" logic. This means that if you have 2 conditions with step 3, the condition with step 4 can trigger after only one of the step 3 conditions is executed.
➕ OTHER ENTRY FEATURES
The PAT Automation allows traders to choose when to execute trades and when not to execute trades.
1. Only Take Trades
This setting lets users specify the time period when their strategy can open or execute trades.
2. Don't Take Trades
This setting lets users specify time periods when their strategy can't open or execute trades.
↩️ EXIT CONDITIONS
1. Exit on Opposite Signal
When enabled, a long position will close when short entry conditions are met, and a short position will close when long entry conditions are met.
2. Exit on Session End
When enabled, positions will be closed at the end of the trading session.
📈 TAKE PROFIT CONDITIONS
There are several methods available for setting take profit exits and conditions.
1. Entry Condition TP
Users can use entry conditions as triggers for take-profit exits. This setting can be found under the long and short exit conditions.
2. Fixed TP
Users can set a fixed TP for exits. This setting can be found under the long and short exit conditions. Users can choose between the following:
Price: This method triggers a TP exit when price reaches a specified level. For example, if you set the Price TP to 10 and buy NASDAQ:TSLA at $190, the trade will automatically exit when the price reaches $200 ($190 + $10).
Ticks: This method triggers a TP exit when price moves a specified number of ticks.
Percentage (%): This method triggers a TP exit when price moves a specified percentage.
ATR: This method triggers a TP exit based on a specified multiple of the Average True Range (ATR).
📉 STOP LOSS CONDITIONS
There are several methods available for setting stop-loss exits and conditions.
1. Entry Condition SL
Users can use entry conditions as triggers for stop-loss exits. This setting can be found under the long and short exit conditions.
2. Fixed SL
Users can set a fixed SL for exits. This setting can be found under the long and short exit conditions. Users can choose between the following:
Price: This method triggers a SL exit when price reaches a specified level. For example, if you set the Price SL to 10 and buy NASDAQ:TSLA at $200, the trade will automatically exit when the price reaches $190 ($200 - $10).
Ticks: This method triggers a SL exit when price moves a specified number of ticks.
Percentage (%): This method triggers a SL exit when price moves a specified percentage.
ATR: This method triggers a SL exit based on a specified multiple of the Average True Range (ATR).
3. Trailing Stop
An explanation & example for the trailing stop feature is present on the write-up within the next section.
Exit conditions have the same logic of constructing conditions like the entry ones. You can construct a Take-Profit Condition & a Stop-Loss Condition. Note that the Take-Profit condition will only work if the position is in profit, regardless of if it's triggered or not. The same applies for the Stop-Loss condition, meaning that it will only work if the position is in loss.
You can also set a Fixed TP & Fixed SL based on the price movement after the position is entered. You have options like "Price", "Ticks", "%", or "Average True Range". For example, you can set a Fixed TP like "5%", and the position will be entered once it moves 5% up in a long position.
Trailing Stop
For the Fixed SL, you also have a "Trailing" stop option, which you can set it's activation level as well. The Trailing stop activation level and it's value are expressed in ticks. Check this scenerio for an example :
We have a ticker with a tick value of $1. Our Trailing Stop is set to 10 ticks and activation level is set to 30 ticks.
We buy 1 contract when the price is $100.
When the price becomes $110, we are in $10 (10 ticks) profit and the trailing stop is now activated.
The current price our stop's on is $110 - $30 (30 ticks), which is the level of $80.
The trailing stop will only move if the price moves up the highest high the price has been after we entered the position.
Let's suppose that price moves up $40 right after our trailing stop is activated. The price will now be $150, and our trailing stop will sit on $150 - $30 (30 ticks) = $120.
If the price is down the $120 level, our stop loss will be triggered.
There is also a "Hard SL" option designed for a backup stop-loss when trailing stops are enabled. You can enable & set this option and if the price goes down before our trailing stop even activates, the position will be exited.
You can also move stop-loss to the break-even (entry price of the position) after a certain profit is achieved using the last setting of the exit conditions. Note that for this to work, you will need to have a Fixed SL set-up.
➕ OTHER EXIT FEATURES
1. Move Stop Loss to Breakeven
This setting allows the strategy to automatically move the SL to Breakeven (BE) when the position is in profit by a certain amount. Users can choose between the following:
Price: This method moves the SL to BE when price reaches a specified level.
Ticks: This method moves the SL to BE when price moves a specified number of ticks.
Percentage (%): This method moves the SL to BE when price moves a specified percentage.
ATR: This method moves the SL to BE when price moves a specified multiple of the Average True Range (ATR).
Example Entry Scenario
To give an example , check this scenario; out conditions are :
LONG CONDITIONS
Bullish Order Block Detection, Step 1
Bullish CHoCH Detection, Step 2
Bullish Volume Imbalance Detection, Step 2
Bullish IFVG Retest, Step 3
First, the strategy needs to detect a Bullish Order Block in order to start working.
After it's detected, now it's looking for either a CHoCH, or a Volume Imbalance to proceed to the next step, the reason for this is that they both have the same step number.
After one of them is detected, the strategy will consistently check all IFVGs for a retest. If the retest occurs, a long position will be entered.
⏰ ALERTS
This indicator uses TradingView's strategy alert system. All entries and exits will be sent as an alert if configured. It's possible to further customize these alerts to your liking. For more information check TradingView's strategy alert customization page: www.tradingview.com
⚙️ SETTINGS
1. Backtesting Settings
Pyramiding: Controls the number of simultaneous trades allowed in the strategy. This setting must have the same value that is entered on the script's properties tab on the settings pane.
Max Distance to Last Bar: Determines the depth of historical data used to prevent memory overload.
Enable Custom Backtesting Period: Restricts backtesting to a specific date range.
Start & End Time Configuration: Define precise start and end dates for historical analysis.
2. Fair Value Gaps Settings
Zone Invalidation: Select between "Wick" and "Close" invalidation.
Filtering: Choose between "Average Range" and "Volume Threshold".
FVG Sensitivity: Ranges from Extreme to Low to detect FVGs with varying strictness.
Allow Gaps: Enables analysis on tickers that have different open-close price gaps.
3. Inversion Fair Value Gaps Settings
Zone Invalidation: Choose between "Wick" and "Close".
4. Order Block Settings
Swing Length: Adjusts the minimum number of bars required for OB formation.
Zone Invalidation Method: Select between "Wick" and "Close".
5. Breaker Block Settings
Zone Invalidation: Set invalidation method as "Wick" or "Close".
6. Liquidity Grabs Settings
Pivot Length: Adjusts the number of bars used to detect liquidity grabs.
Wick-Body Ratio: Defines the proportion of wick-to-body size for liquidity grab detection.
7. Multi-Timeframe Analysis
Enable Up to Three Timeframes: Select and analyze trades across multiple timeframes.
8. Market Structures
Swing Length: Defines the number of bars required for structure shifts.
Includes BOS, CHoCH, CHoCH+ Detection.
9. Equal Highs & Lows
ATR Multiplier: Defines the sensitivity of equal highs/lows detection.
10. Volume Imbalances
Gap Size Sensitivity: Ranges from "Ultra" to "Low".
Disable Overnight Gaps: Filters out volume imbalances occurring due to overnight gaps.
11. Entry Conditions for Long & Short Trades
Multiple Conditions (1-6): Configure up to six independent conditions per trade direction.
Condition Types: Options include Detection, Retest, Retracement, and Break.
Timeframe Specification: Choose between "Any Timeframe", "Timeframe 1", "Timeframe 2", or "Timeframe 3".
Trade Execution Filters: Restrict trades within specific trading sessions.
12. Exit Conditions for Long & Short Trades
Exit on Opposite Signal: Automatically exit trades upon opposite trade conditions.
Exit on Session End: Closes all positions at the end of the trading session.
Multiple Take-Profit (TP) and Stop-Loss (SL) Configurations:
TP/SL based on % move, ATR, Ticks, or Fixed Price.
Hard SL option for additional risk control.
Move SL to BE (Break Even) after a certain profit threshold.
ICT HTF Liquidity Levels /w Alert [MsF]Japanese below / 日本語説明は英文の後にあります。
-------------------------
*This indicator is based on sbtnc's "HTF Liquidity Levels". It's a very cool indicator. thank you.
It has 3 functions: visualization of HTF liquidity (with alert), candle color change when displacement occurs, and MSB (market structure break) line display.
=== Function description ===
1. HTF liquidity (with alert)
Lines visualize the liquidity pools on the HTF bars. Alerts can be set for each TF's line.
Once the price reaches the line, the line is repaint.
To put it plainly, the old line disappears and a new line appears. The line that disappeared remains as a purged line. (It is also possible to hide the purged line with a parameter)
The alert will be triggered at the moment the line disappears. An alert will be issued when you touch the HTF's liquid pools where the loss is accumulated, so you can notice the stop hunting with the alert.
This alert is an original feature of this indicator.
The timeframe of the HTF can't modify. You can get Monthly, weekly, daily and H1 and H4.
Each timeframe displays the 3 most recent lines. By narrowing it down to 3, it is devised to make it easier to see visually. (This indicator original)
2. Displacement
Change the color display of the candlesticks when a bullish candle stick or bearish candle stick is attached. Furthermore, by enabling the "Require FVG" option, you can easily discover the FVG (Fair Value Gap). It is a very useful function for ICT trading.
3. MSB (market structure break)
Displays High/Low lines for the period specified by the parameter. It is useful for discovering BoS & CHoCH/MSS, which are important in ICT trading.
=== Parameter description ===
- HTF LIQUIDITY
- Daily … Daily line display settings (color, line width)
- Weekly … Weekly line display settings (color, line width)
- Monthly … Monthly line display settings (color, line width)
- INTRADAY LIQUIDITY
- 1H … 1H line display settings (color, line width)
- 4H … 4H line display settings (color, line width)
- PURGED LIQUIDITY … Display setting of the line once the candle reaches
- Show Purge Daily … Daily purged line display/non-display setting
- Show Purge Weekly … Weekly purged line display/non-display setting
- Show Purge Monthly … Monthly purged line display/non-display setting
- Show Purge 1H … 1H purged line display/non-display setting
- Show Purge 4H … 4H purged line display/non-display setting
- MARKET STRUCTURE BREAK - MBS
- Loopback … Period for searching High/Low
- DISPLACEMENT FOR FVG
- Require FVG … Draw only when FVG occurs
- Displacement Type … Displacement from open to close? or from high to low?
- Displacement Length … Period over which to calculate the standard deviation
- Displacement Strength … The larger the number, the stronger the displacement detected
-------------------------
このインジケータはsbtncさんの"HTF Liquidity Levels"をベースに作成しています。
上位足流動性の可視化(アラート付き)、変位発生時のローソク色変更、MSB(market structure break)ライン表示の3つの機能を有します。
<機能説明>
■上位足流動性の可視化
上位足の流動性の吹き溜まり(ストップが溜まっているところ)をラインで可視化します。ラインにはアラートを設定することが可能です。
一度価格がラインに到達するとそのラインは再描画されます。
平たく言うと、今までのラインが消えて新しいラインが出現する。という事です。
消えたラインはpurgeラインとして残ります。(パラメータでpurgeラインを非表示にすることも可能です)
アラートはラインが消える瞬間に発報します。上位足の損切り溜まってるところにタッチするとアラートを発報するので、アラートにてストップ狩りに気づくことができます。
このアラート発報については本インジケータオリジナルの機能となります。
表示可能な上位足のタイムフレームは固定です。月足、週足、日足およびH1とH4を表示することができます。
各タイムフレーム、直近から3つのラインを表示します。3つに絞ることで視覚的に見やすく工夫しています。(本インジケータオリジナル)
■変位発生時のローソク色変更
大きな陽線、陰線を付けた場合に、そのローソク足をカラー表示を変更します。
さらに"Require FVG"オプションを有効にすることで、FVG(Fair Value Gap)を容易に発見することができます。ICTトレードにを行うにあたり大変有用な機能となっています。
■MSB(market structure break)ライン表示
パラメータで指定した期間のHigh/Lowをライン表示します。ICTトレードで重要視しているBoS & CHoCH/MSSの発見に役立ちます。
<パラメータ説明>
- HTF LIQUIDITY
- Daily … 日足ライン表示設定(色、線幅)
- Weekly … 週足ライン表示設定(色、線幅)
- Monthly … 月足ライン表示設定(色、線幅)
- INTRADAY LIQUIDITY
- 1H … 1時間足ライン表示設定(色、線幅)
- 4H … 4時間足ライン表示設定(色、線幅)
- PURGED LIQUIDITY … 一度到達したラインの表示設定
- Show Purge Daily … 日足ライン表示/非表示設定
- Show Purge Weekly … 週足ライン表示/非表示設定
- Show Purge Monthly … 月足ライン表示/非表示設定
- Show Purge 1H … 1時間足ライン表示/非表示設定
- Show Purge 4H … 4時間足ライン表示/非表示設定
- MARKET STRUCTURE BREAK - MBS
- Loopback … High/Lowを探索する期間
- DISPLACEMENT FOR FVG
- Require FVG … FVG発生時のみ描画する
- Displacement Type … openからcloseまでの変位か?highからlowまでの変位か?
- Displacement Length … 標準偏差を計算する期間
- Displacement Strength … 変位の強さ(数字が大きいほど強い変位を検出)
Fair Value Gap Oscillator (Expo)█ Overview
The Fair Value Gap Oscillator (Expo) is an indicator based on the concept of Fair Value Gaps. It is a momentum indicator that helps traders identify mispricings in the market over time. The indicator also incorporates volume and volatility to increase its accuracy further. The indicator can be used in both trending and range-bound markets.
FVG occurs when there is an insufficient amount of buyers and sellers in the market for a particular asset. This can cause a sudden and large gap in the asset price, creating an imbalance in the price. This gap can be large enough to prevent traders from entering the market to take advantage of the price discrepancy. This, in turn, leads to a lack of liquidity and further price volatility.
█ How is the Fair Value Gap Oscialltor calculated?
The Fair Value Gap Oscillator is calculated by using historical Fair Value Gapa, volume, and volatility to determine if the market is trading at a discount or premium relative to its historical fair value. It is based on the idea that prices move in fair value cycles and that by looking at the oscillations of FVG data over time, traders can get a deeper insight into how imbalances impact the price over time.
█ Oscillator Trading
Oscillators are technical indicators that are used to measure momentum within a given market. These indicators measure the speed and magnitude of price movements. Traders use oscillators to identify potential entry and exit points in the market. They may look for overbought and oversold conditions, or they may look for divergence between the price of an asset and its oscillator. When these signals are identified, traders can then enter or exit positions accordingly.
█ How to use
It is a momentum indicator that helps traders identify mispricings in the market over time. In addition, the FVG Oscialltor can be used to identify overbought and oversold conditions in the market, as well as trends and leading trend changes.
Trending Indicator
The Fair Value Gap Oscillator can also be used to identify trends in the market. By tracking the FVG over time, investors can identify whether the market is trending up or down.
Leading Indicator
This indicator can be used to identify leading changes in the market’s momentum and price action. It will indicate beforehand when the momentum decreases and a potential trend change is about to come.
Divergences
Leading Indicators are great for identifying divergences. This Fair Value Gap Oscillator is a powerful yet simple tool to spot divergences in the market.
It is important to remember that the Fair Value Gap Oscillator is just one tool in your investment toolbox. It should be used in conjunction with other smart money concept indicators to identify excellent trading opportunities.
█ Indicator Features
Trend FVG
A Trend FVG feature is added to help Trend Traders get a long-term overview of the FVG trend. This feature can be used for the leading FVG calculation to get a predictive FVG trend.
Leading FVG Calculation
The leading calculation makes the Fair Value Gap oscillator sensitive to fair value changes and becomes more leading.
Trend Line
The Trend line feature is a combination of the leading and the long-term trend that can be used as trend confirmation.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
LVN Smart Liquidity📊 LVN SMART LIQUIDITY
═════════════════════════════════════════════════════════════
─────────────────────────────────────────────────────────────
🎯 OVERVIEW
LVN Smart Liquidity is an advanced Market Profile-based indicator that automatically identifies Low Volume Nodes (LVN) across multiple timeframes. Unlike traditional volume-based indicators, this tool uses TPO (Time Price Opportunity) calculations to detect price levels where minimal trading activity occurred, revealing potential breakout zones and rapid price movement areas.
These LVN zones often behave similarly to Fair Value Gaps (FVG) in Smart Money Concepts, representing "thin air" areas where price tends to move quickly with minimal resistance. The indicator provides dynamic zone management with an immunity period system to prevent premature zone closure.
─────────────────────────────────────────────────────────────
🔬 HOW IT WORKS
MARKET PROFILE TPO METHODOLOGY:
The indicator analyzes each higher timeframe period by:
1. Dividing the price range into 20 equal levels
2. Counting how many bars touched each level (TPO count)
3. Identifying levels with TPO counts below the threshold (default 30% of maximum)
4. Creating horizontal zones that extend until price touches them
MULTI-TIMEFRAME ANALYSIS:
• Supports up to 5 independent timeframes simultaneously
• Each timeframe generates its own LVN zones with unique colors
• Auto-timeframe mode adapts to your chart period
• Zones project from historical sessions onto current price action
SMART ZONE MANAGEMENT:
• Immunity Period: New zones are protected for N bars after creation (default 20)
• This prevents zones from disappearing immediately when price is already within them
• Zones extend right until price touches them, then stop extending
• Historical zones remain visible for reference (optional)
─────────────────────────────────────────────────────────────
💡 WHY LVN ZONES MATTER
Low Volume Nodes represent price levels where:
✓ Price spent minimal time (rejection zones)
✓ Few market participants were active
✓ Inefficient price discovery occurred
✓ Similar to Fair Value Gaps in ICT/SMC methodology
TRADING APPLICATIONS:
• Breakout Acceleration: Price moves rapidly through LVN zones
• Profit Targets: Place targets beyond LVN zones where momentum slows
• Stop Loss Placement: Avoid placing stops inside LVN zones (price likely to continue)
• Confluence with FVG: LVN zones often align with Fair Value Gaps
• Retest Opportunities: When price revisits LVN, expect quick moves
─────────────────────────────────────────────────────────────
⚙️ KEY FEATURES
TIMEFRAME FLEXIBILITY:
• 5 independent timeframe slots with enable/disable toggles
• Auto-mode intelligently selects higher timeframes
• Preset options: 5m, 15m, 30m, 1H, 2H, 4H, D, W, 2W, M, 3M, 6M, 12M
VISUAL CUSTOMIZATION:
• Individual color settings for each timeframe
• Adjustable box transparency and border width
• Toggle timeframe labels and period dates on/off
• Four text size options: tiny, small, normal, large
ADVANCED CONTROLS:
• LVN Threshold: 0-50% (default 30%) - lower = fewer, stronger zones
• Immunity Period: 0-50 bars (default 20) - prevents premature closure
• Show/Hide old boxes for clean chart appearance
• Maximum 500 boxes supported per timeframe
PROFESSIONAL DISPLAY:
• Zones show timeframe label (5m, 1H, D, etc.)
• Optional period dates (dd.MM-dd.MM format)
• Boxes extend right dynamically until price touch
• Clean visual hierarchy with bordered zones
─────────────────────────────────────────────────────────────
📈 HOW TO USE
SETUP:
1. Add indicator to chart
2. Enable desired timeframes (TF1, TF2, etc.)
3. Adjust LVN threshold based on your trading style:
• 20-25% = Very selective (only thinnest zones)
• 30-35% = Balanced (recommended for most markets)
• 40-50% = More zones (higher sensitivity)
INTERPRETATION:
• RED/DARK ZONES = Low trading activity occurred here
• Price tends to move THROUGH these zones quickly
• Similar behavior to Fair Value Gaps (FVG) in Smart Money theory
• Expect acceleration when price enters LVN zones
TRADING STRATEGIES:
1. BREAKOUT TRADING:
- Wait for price to approach LVN zone
- Enter when price breaks into the zone
- Expect rapid movement through the zone
- Target next support/resistance beyond LVN
2. CONFLUENCE ANALYSIS:
- Combine with other SMC concepts (Order Blocks, FVG, Liquidity)
- LVN + FVG overlap = high-probability acceleration zone
- Use higher timeframe LVN as directional bias
3. MULTI-TIMEFRAME:
- Daily LVN = major breakout zones
- 4H LVN = intraday momentum areas
- 15m LVN = scalping opportunities
─────────────────────────────────────────────────────────────
⚠️ IMPORTANT NOTES
WHAT THIS INDICATOR IS:
✓ Market Profile TPO-based LVN detector
✓ Multi-timeframe zone identification tool
✓ Visual representation of low trading activity areas
✓ Complementary to Smart Money Concepts (SMC/ICT)
WHAT THIS INDICATOR IS NOT:
✗ Not a standalone trading system
✗ Not a guaranteed profit generator
✗ Not financial advice
✗ Requires confirmation from price action and other tools
LIMITATIONS:
• Works best on liquid markets with reliable data
• Lower timeframes may produce excessive zones
• Requires understanding of Market Profile concepts
• Performance depends on proper threshold calibration
BEST PRACTICES:
• Start with 1-2 timeframes, add more as needed
• Use higher timeframes for swing trading
• Combine with support/resistance, trendlines, order blocks
• Backtest on your specific instrument before live trading
• Adjust immunity period based on market volatility
─────────────────────────────────────────────────────────────
🔧 SETTINGS GUIDE
TIMEFRAME GROUPS (1-5):
Each group contains:
• Enable toggle - Turn timeframe on/off
• Timeframe selector - Choose period or Auto
• Box color - Zone fill color
• Border color - Zone outline color
GENERAL SETTINGS:
• LVN Threshold (%) - Percentage of max TPO to qualify as LVN
• Show Old LVN Boxes - Keep historical zones visible
• Box Border Width - Visual thickness (1-4)
• Immunity Period - Protection bars for new zones
• Show Timeframe - Display TF label in boxes
• Show Period - Display date range in boxes
• Text Size - Label size adjustment
─────────────────────────────────────────────────────────────
📊 ORIGINALITY & UNIQUENESS
This indicator is original because:
1. TPO-BASED CALCULATION: Uses Market Profile Time-Price-Opportunity methodology instead of traditional volume analysis, making it work on all markets including those without real volume data (Forex, some indices).
2. IMMUNITY SYSTEM: Unique protection mechanism prevents zones from disappearing immediately when price is already within zone boundaries at creation time.
3. TRUE MULTI-TIMEFRAME: Independent calculation for each timeframe with separate zone management, not simple higher timeframe projection.
4. SMART ZONE LIFECYCLE: Zones dynamically extend until price touch, then become static historical references.
5. FVG-LIKE BEHAVIOR: Bridges traditional Market Profile analysis with modern Smart Money Concepts by identifying zones that behave similarly to Fair Value Gaps.
Unlike existing LVN indicators that rely on volume data, this tool uses time-based analysis, making it universal across all market types and compatible with brokers that don't provide accurate volume information.
─────────────────────────────────────────────────────────────
📚 TECHNICAL BACKGROUND
MARKET PROFILE THEORY:
Developed by J. Peter Steidlmayer in the 1980s, Market Profile analyzes market behavior by examining price and time relationships. Low Volume Nodes in traditional profile represent areas where market participants showed minimal interest.
TPO (TIME PRICE OPPORTUNITY):
Instead of counting volume, TPO counts how many time periods (bars) touched each price level. This approach:
• Works on all markets regardless of volume data quality
• Reflects actual time-based market acceptance/rejection
• Reveals psychological price levels through time distribution
CONNECTION TO SMART MONEY CONCEPTS:
Fair Value Gaps (FVG) in ICT methodology represent similar inefficiencies:
• Areas where price moved too quickly
• Imbalances in buying/selling pressure
• Zones that price may revisit or accelerate through
• LVN zones often overlap with FVG locations
─────────────────────────────────────────────────────────────
🎓 RECOMMENDED RESOURCES
To maximize this indicator's effectiveness, study:
• Market Profile fundamentals (TPO, POC, Value Area)
• Smart Money Concepts (FVG, Order Blocks, Liquidity)
• Multi-timeframe analysis techniques
• Volume Profile comparison (understand the difference)
COMPANION INDICATOR:
Consider using "HVN Smart Liquidity" (opposite concept) to identify both high and low volume zones for complete Market Profile analysis.
─────────────────────────────────────────────────────────────
💬 SUPPORT & FEEDBACK
Questions or suggestions? Feel free to comment below or send a private message.
If you find this indicator useful, please boost and share with other traders!
⚠️ DISCLAIMER: This indicator is for educational purposes only. Trading involves risk. Always do your own research and use proper risk management.
BORSA 321 - HTF Volume Delta Highlighter Overview
HTF Volume Delta Highlighter is a multi-timeframe tool that builds a compact higher-timeframe (HTF) candle panel on the right side of your chart and injects volume delta, fair value gaps (FVG) and volume imbalance (VI) directly into those candles.
Instead of constantly switching charts, you see:
Where buy vs sell volume is dominating on HTF
Which HTF candles left inefficiencies (FVG / VI)
Key open / high / low / close levels projected back onto your current timeframe
How much time is left for each HTF candle to close
All of this lives visually on your current chart, making it perfect for scalpers and intraday traders who rely on higher-timeframe context.
What It Shows
For up to six higher timeframes (default: 5m, 15m, 1H, 4H, 1D, 1W), the indicator plots:
1. HTF Candle Panel on the Right
Each HTF is drawn as a mini candle strip to the right of price.
You can control:
How many candles per HTF to display
Space between candles
Space between timeframes
Overall offset from current price
This creates a clean HTF “dashboard” without touching your main candles.
2. Volume Delta Inside Each HTF Candle
When delta mode is enabled:
Each HTF candle body is split into:
Buy volume segment (green)
Sell volume segment (red)
The split is proportional to cumulative buy vs sell volume across the entire HTF period.
Optionally, the delta value itself (buy volume − sell volume) is printed:
Positive delta inside the buy segment
Negative delta inside the sell segment
This gives a visual and numeric read of who is in control on that higher timeframe.
3. HTF Fair Value Gaps (FVG)
Within each HTF strip, the script detects and highlights fair value gaps:
Bullish FVG: shaded with a green tone, optionally labeled FVG+
Bearish FVG: shaded with a red tone, optionally labeled FVG-
A line is also drawn through the midpoint of the FVG zone.
These zones quickly show where price left inefficiencies on the higher timeframe that may act as magnets or reaction levels.
4. Volume Imbalance (VI) Zones
Between consecutive HTF candles, the script also marks volume imbalance zones:
Bullish VI zones shaded green (VI+)
Bearish VI zones shaded red (VI-)
These highlight thin or aggressively traded areas that often attract future interaction.
5. Trace Lines Back to Your Main Chart
From the most recent HTF candles, the indicator can project horizontal trace lines:
From Open, High, Low, Close of the monitored HTF candle
With separate styling for each (color, line style, width)
Optional price labels at the right edge for each level
You can choose whether these traces are anchored to the first selected timeframe or the last timeframe, giving you flexibility in what levels matter most.
6. Timeframe & Timer Labels
For each HTF strip, the indicator can show:
Timeframe label (e.g., 5m, 15m, 1H, 4H, 1D, 1W)
Countdown timer for the current HTF candle (time remaining until close)
Labels can appear at the top, bottom, or both ends of the HTF panel.
You can choose whether labels align across all HTFs or follow each strip’s own high/low.
7. Custom Daily Session Handling
For the daily timeframe, you can override the default daily open to match your session preference:
Midnight (standard calendar day)
08:30 New York time
09:30 New York time
The script then treats that custom time as the start of your “daily” candle — useful for traders who sync with cash session opens.
8. Day of Week Labels (For Daily)
On daily HTF candles, you can optionally print a day-of-week letter above the candle:
M, T, W, T, F, S, S
This gives a quick sense of where in the week the current candle sits.
Key Inputs & Customization
HTF 1–6 Enable & Timeframe
Turn each HTF strip on/off
Set timeframe (5m, 15m, 1H, 4H, 1D, 1W, etc.)
Choose how many candles per HTF to display
Max Sets
Limit how many HTFs are shown at once (e.g., only next 3 HTFs).
Styling
Body, border, and wick colors for bullish and bearish candles
Candle width, spacing, and panel offset
Label colors and sizes
Delta Settings
Toggle delta mode on/off
Toggle delta values text inside candles
Imbalance Settings
Toggle FVG on/off, with bullish/bearish colors, labels
Toggle Volume Imbalance on/off, with bullish/bearish colors, labels
Control label text size
Trace Settings
Turn trace lines on/off
Customize style, color, and thickness for O/H/L/C
Choose whether to anchor traces to the first or last timeframe
Label & Timer Settings
Enable/disable HTF labels and timers
Choose label position: Top / Bottom / Both
Alignment mode: Align all strips or Follow Candles
If the chosen HTF isn’t valid for the current chart (not a proper multiple or too low), the script will show a clear on-chart message telling you to increase your chart timeframe to match the selected HTF requirements.
How It Helps Traders
Scalpers & intraday traders can stay on their low timeframe (e.g., 1m / 3m / 5m) while still seeing:
Where HTF buy/sell volume is dominant
Which HTF candles left inefficiencies that may later act as magnets or rejection zones
The exact HTF O/H/L/C levels currently active
How much time remains before the HTF bar closes (key for timing entries around closes).
Swing traders can use it to track daily and weekly HTF structure and delta while drilling down to lower timeframes for precise execution.
Mars Mission ModelIdentifies Fair Value Gaps (FVGs) during the New York AM session (8-11 AM EST) that form outside Bollinger Bands, then tracks Previous Day High/Low liquidity sweeps to generate inverse FVG signals when conditions align.
What makes this unique:
This is NOT a standard FVG indicator. Uniquely combines session-specific FVG detection with Bollinger Band volatility filtering AND PDH/PDL liquidity sweep confirmation to generate inverse signals. This triple-filter confluence approach is an original methodology not found in existing indicators.
Core Logic:
Detects 3-candle Fair Value Gaps (where candle 1's high/low doesn't overlap with candle 3's low/high). When the middle candle closes beyond the Bollinger Bands during NY AM session, a green box marks the qualified FVG.
The indicator simultaneously tracks Previous Day High/Low levels and monitors for liquidity sweeps (price trading through these levels) during the NY AM session, marked with rocket emojis 🚀.
Inverse FVG Signals:
When a qualified FVG gets mitigated (price closes back through it) AND the corresponding PDH/PDL was already swept in that session, an inverse signal appears (alien emoji 👽):
Bullish FVG mitigated + PDH swept = Bearish inverse signal
Bearish FVG mitigated + PDL swept = Bullish inverse signal
This proprietary combination of session timing, volatility expansion, liquidity sweeps, and FVG mitigation creates a focused reversal detection system that doesn't exist in any open-source indicator.
Let's go to Mars 🚀
For educational use only. Not financial advice.
ICT Trading SuiteThe ICT Trading Suite is a complete price-action toolkit designed for traders who follow ICT concepts such as Fair Value Gaps (FVGs), Order Blocks (OBs), Supply & Demand Zones, Market Structure pivots, Liquidity Zones, and Moving Averages.
This indicator combines multiple institutional concepts into a single clean, optimized, high-performance script — allowing you to see the market the same way smart money does.
Each module can be toggled on/off to match your personal strategy.
🔥 FEATURE SET
1️⃣ Moving Averages (Fully Customisable)
5 MA slots
Multiple MA types: EMA, SMA, RMA, WMA, HMA, VWMA
Custom colours & visibility toggles
Supports all timeframes
Ideal for bias recognition and trend filtering.
2️⃣ Fair Value Gaps (FVG) – ICT 3-Candle Model
The script detects bullish and bearish FVGs using the classic ICT logic:
Bullish FVG → high < low
Bearish FVG → low > high
Features:
Automatic gap detection
Custom colours for up/down FVGs
CE (consequent encroachment) line
Optional deletion when filled
Extend FVGs dynamically
Lookback days filter
FVG blocks automatically update until price fills the imbalance.
3️⃣ Supply & Demand Zones (Swing-Based)
Built from confirmed swing highs/lows using ta.pivothigh and ta.pivotlow.
Features:
ATR-based zone thickness
Zone overlap filtering
Auto-cleaning oldest zones
POI (Point of Interest) marker
3 types of arrays:
Supply zone boxes
Demand zone boxes
POI midline boxes
Zones extend 100 bars by default and update dynamically.
Zones are deleted instantly when price breaks them (converted into BOS behavior).
4️⃣ Smart Money Order Blocks (Simple Engulfing Pattern)
OBs are detected using the classic engulfing model:
Bullish OB
Bearish candle → Engulfed by bullish candle where
close > high
Bearish OB
Bullish candle → Engulfed by bearish candle where
close < low
Each OB stores:
Original top/bottom
Current top/bottom
POI line (optional)
Engulfing candle structure
Mitigation state
Features:
Dynamic boundaries (OB shrinks as price mitigates)
POI line update
Automatic deletion (or recolour) when completely mitigated
Limit how many OBs stay on chart
Support for adding HTF OBs later
This creates very clean and very accurate ICT order blocks.
5️⃣ Liquidity / Vector Zones (Volume-Spread Analysis)
A built-in PVSRA-style logic marks areas of institutional activity.
Vector candles detected using:
Volume ≥ 200% of average
Or candle spread × volume ≥ highest in last 10 bars
Medium-volume vectors (150%) also included
Colour-coded zones extend to the right
Auto-cleanup once price clears the zone
Useful for detecting areas where algorithms (MMXs) aggressively buy/sell.
6️⃣ Pivot Levels
Multiple pivot methods supported:
Traditional
Fibonacci
Woodie
Classic
DM
Camarilla
Features:
Auto / Daily / Weekly / Monthly / Quarterly / Yearly pivots
Dynamic line extension
Labels with prices
Custom colours
Only draws selected pivot levels
Efficient matrix-based pivot system
💎 TECHNICAL EXCELLENCE
✔ Pine Script v6
✔ Efficient arrays & memory handling
✔ Clean dynamic updates
✔ Max-performance structure
✔ Modular design (each component can be toggled)
✔ Integrates all ICT concepts in one tool
🎯 Who Is This Indicator For?
Perfect for:
ICT Traders
Smart Money / Institutional Traders
Day Traders & Scalpers
Swing Traders using OB/FVG
Liquidity hunters
Market structure based traders
Volume-spread or PVSRA focused traders
This combines multiple institutional concepts without cluttering the chart.
🏆 Final Notes
This is a true all-in-one institutional suite, replacing up to 8 separate indicators.
Designed for precision, clarity, and professional price-action workflow.
VOODOORFVGS v1.1Voodoo Doors - Multi-Timeframe FVG & Range Analysis
Voodoo Doors is a comprehensive trading indicator designed to identify and track critical Fair Value Gaps (FVGs) and price ranges
across multiple timeframes. This powerful tool combines time-based FVG detection with Opening/Closing Range analysis to highlight
high-probability trading zones.
Key Features:
🚪 First Presented FVGs (FPVG)
Track up to 3 customizable FVGs that occur at specific times throughout the trading day:
- FPVG 1 (Default: 9:31 AM) - Early session gap detection
- FPVG 2 (Default: 1:31 PM) - Midday reversal zones
- FPVG 3 (Default: 6:15 AM) - Pre-market opportunities
Each FPVG includes:
- Historical tracking (up to 30 days)
- Age labels showing gap freshness
- Customizable fill colors, borders, and mid-lines
- Auto-extension to current bar
- Progressive transparency for older gaps
⚡ 15-Second Lower Timeframe FVGs
Precision intraday analysis during critical hours:
- 10am FVG - Morning volatility capture
- 11am FVG - Late morning momentum shifts
- Real-time detection using 15-second data
- Directional labels (↑/↓) for quick identification
📊 Opening Range (OR)
30-second precision Opening Range levels:
- Default: 9:30 AM market open
- High/Low and Equilibrium (EQ) levels
- Configurable historical tracking (up to 5 sessions)
- Price touch alerts available
- Extended or fixed-length projection
🔴 Closing Range (CR)
End-of-day price action analysis:
- Default: 3:59 PM (15:59)
- Captures final market positioning
- Independent styling from OR levels
- Optional extension into next session
🎯 Custom Range (CUR)
Flexible user-defined range detection:
- Any time, any timeframe
- Perfect for capturing specific news events
- Fully customizable colors and styles
- Alert functionality for level touches
Visual Customization:
Every element is fully customizable:
- Line styles: Solid, Dashed, Dotted
- Individual color controls for fills, borders, and mid-lines
- Adjustable transparency (0-100%)
- Line width controls
- Historical opacity settings
Professional Features:
✅ Non-repainting - all signals are final✅ Multi-timeframe support with automatic detection✅ Efficient array management for
historical data✅ Market session awareness (excludes weekends)✅ Optional information table showing global market open times✅ Alert
system for price touching key levels✅ Up to 500 drawing objects supported
Best Used For:
- ICT trading methodology (FVG mitigation)
- Range breakout/breakdown strategies
- Session transition trading
- Multi-timeframe confluence analysis
- Smart money tracking
Timezone:
Default UTC-4 (New York time) - fully adjustable in settings
Recommended Timeframes:
---
Note: This indicator uses lower timeframe data requests and requires TradingView Premium/Pro+ for full functionality.
Liquidity Swap Detector Ultimate - Cedric JeanjeanAdvanced Smart Money Concepts indicator designed to detect high-probability liquidity sweeps and institutional order flow reversals. This professional-grade tool combines multiple ICT (Inner Circle Trader) strategies to identify optimal entry points.
═══════════════════════════════════════════════════════
📊 KEY FEATURES:
✅ Smart Swing Detection
- Identifies confirmed swing highs and lows using adaptive lookback periods
- Eliminates false signals through double-confirmation logic
- Detects liquidity grabs at key market structure points
✅ Fair Value Gap (FVG) Analysis
- Multi-timeframe FVG detection for enhanced accuracy
- Filters imbalances by minimum size threshold
- Combines current timeframe and higher timeframe FVGs
✅ Advanced Volatility Filter
- ATR-based volatility analysis to avoid low-quality setups
- Adjustable volatility threshold (default 0.35%)
- Ensures entries during optimal market conditions
✅ Precision Signal Generation
- LONG signals: Confirmed swing lows + FVG + volatility confirmation
- SHORT signals: Confirmed swing highs + FVG + volatility confirmation
- Clear visual markers with price labels
✅ Comprehensive Alert System
- Three alert types: Simple, Detailed, JSON (for webhooks)
- Separate LONG/SHORT alert controls
- Compatible with MT5 integration via webhooks
- TradingView native alertcondition support
✅ Professional Dashboard
- Real-time ATR monitoring
- Volatility percentage display
- FVG status indicator
- Alert status tracker
═══════════════════════════════════════════════════════
⚙️ CUSTOMIZABLE PARAMETERS:
🔹 Lookback Swing (1-50): Defines swing detection sensitivity
🔹 ATR Multiplier: Controls wick filter strength
🔹 Volatility Filter: Minimum required market volatility (%)
🔹 FVG Filter: Minimum fair value gap size (%)
🔹 FVG Timeframe: Higher timeframe for multi-TF analysis
🔹 Visual Options: Toggle swing marks, FVG zones, labels
🔹 Alert Controls: Enable/disable LONG/SHORT notifications
═══════════════════════════════════════════════════════
📈 HOW IT WORKS:
1. The indicator scans for confirmed swing points using a robust double-confirmation algorithm
2. Simultaneously analyzes Fair Value Gaps on both current and higher timeframes
3. Validates market volatility to ensure sufficient price movement
4. Generates precise entry signals when all conditions align
5. Triggers customizable alerts for instant notification
═══════════════════════════════════════════════════════
🎯 BEST PRACTICES:
- Use on liquid markets (Forex majors, indices, crypto)
- Recommended timeframes: 15m, 1H, 4H
- Combine with support/resistance for confirmation
- Adjust lookback period based on market volatility
- Test alert settings before live trading
- Use JSON alerts for automated trading integration
═══════════════════════════════════════════════════════
⚡ ALERT CONFIGURATION:
1. Click the Alert icon (bell) in TradingView
2. Select "Liquidity Swap Detector Ultimate - TITAN v6"
3. Choose your preferred alert condition:
- LONG Signal: Only bullish setups
- SHORT Signal: Only bearish setups
- ANY Signal: All trading opportunities
4. Set expiration and notification preferences
5. For MT5 integration: Select "JSON" message type and configure webhook URL
TrendViz - Smart Money ConceptsTrendViz – Smart Money Concepts
See structure, liquidity, and institutional footprints in real time.
Overview
Trend Viz – Smart Money Concepts is a comprehensive SMC toolkit that fuses market-structure (BOS / CHoCH), volumetric order blocks, fair-value gaps (FVG / Breakers), Swing Failure Patterns (SFP), equal highs / lows, and liquidity zones into one clean, on-chart visualization.
It’s designed for intraday precision (0DTE / indices) and swing confluence, with windowed processing for performance on large histories.
Key Capabilities
Market Structure Engine – Detects BOS / CHoCH with adjustable swing length, “Extreme vs Adjusted Points” logic, optional trend-based candle coloring, sweep marks, and labeled lines / bubbles.
Volumetric Order Blocks – Builds bullish / bearish OBs (including breaker blocks), mitigation methods (Close / Wick / Avg), overlap control, mid-line, and activity split (buy vs sell) with per-OB volume metrics.
Fair Value Gaps (FVG & Breakers) – Auto-detects FVGs, mitigations, optional extension, mid-lines, overlap filtering, and raid marking.
Swing Failure Pattern (SFP) – Volume-aware SFPs, directional filters (Trend-Following / Counter-Trade), deviation projections (levels + optional fill).
Equal Highs / Lows & Liquidity Concepts – Marks EQH / EQL across multiple horizons, buyside / sellside zones (area or line), liquidity prints on candles, and sweep zones after BOS / CHoCH.
Performance-First Design – Window size limits structure computations; configurable max objects; overlap suppression reduces clutter.
Inputs & Settings
Market Structure – Window size, Swing limit, Candle coloring, Text size, Algorithmic mode, Swing length, Strong/Weak HL, Sweeps, Bubbles, Mapping.
Volumetric Order Blocks – Show Last N blocks, Breakers, Construction mode, ATR length, Mitigation method, Metrics + Mid-line, Hide Overlap.
Fair Value Gap / Breakers – Enable mode, Show Last N, Threshold, Mid-line + Extension, Hide Overlap, Raid Display.
Swing Failure Pattern (SFP) – Count, Deviation Area, Colors, Filtering mode (Trend / Counter), Volume threshold, Label size.
Liquidity Concepts – Equal H&L scope, Liquidity prints, Buyside/Sellside zones (area or line), Sweep Area threshold.
How to Use It
Quick Start
Add the indicator to your chart → leave defaults.
For 0DTE / intraday use 1 – 5 min timeframes; for swing use 1H – 4H.
Turn on Color Candles to see bullish / bearish bias.
Enable Order Blocks (Show Last 5 – 10) and FVG (3 – 5) with Mitigation = Wick.
Activate SFP with Volume Threshold ≈ 0.5 – 1.0 and Trend-Following filter.
Core Workflows
Trend-Continuation Entry – Wait for CHoCH → BOS alignment → FVG mitigation or OB mid-line retest.
Reversal Entry – Opposing CHoCH + sweep (x) + fresh OB confirmation.
Liquidity Sweep Fade – Raid EQH/EQL + SFP (Counter-Trade) → target prior FVG or opposite OB.
0DTE / Index Checklist
Timeframe 1–5 min · Adjusted Points · mslen = 3–5.
OB Show Last = 5–10 · Mitigation = Wick · Hide Overlap = Recent.
FVG Show = 3–5 · Threshold = 0.1–0.3.
SFP Trend-Following for momentum, Counter-Trade for range.
Trade only after CHoCH → BOS alignment near OB / FVG.
Tips & Behavior
Confirmation / Repainting – Structure anchors confirm after right bars; no repaint once locked.
Performance – Reduce Window size, counts, and overlaps for speed.
Clutter Control – Hide Overlap, limit count, prefer mid-lines over fills.
Mitigation Choice – Wick (strict), Close (lenient), Avg (balanced).
Alerts – Not included by default (visual tool only).
Example Setups
Momentum Pullback – After BOS up, FVG fill + OB reclaim = entry.
Liquidity Sweep Fade – EQH raid + bear SFP = fade to prior FVG.
Breaker Flip – Mitigated OB turns breaker; trade retest.
Disclaimer
This indicator is for educational and analytical purposes only.
Not financial advice. Backtest and apply proper risk management before using live.
Tags
#SmartMoneyConcepts #OrderBlocks #BOS #CHoCH #FVG #Breakers #SFP #Liquidity #EQH #EQL #0DTE #SPX #MarketStructure #TrendViz #TradingView
Riz Goldbach FrameworkRiz Goldbach Framework maps a dynamic dealing range and a set of Goldbach-derived price levels to structure intraday decision-making. It blends range math (PO3), level clustering, session weighting, volume/volatility context, and an explainable scoring engine that can issue BUY/SELL signals with risk levels (SL/TP). It is designed for discretionary traders who want rules-based context rather than a black box.
Core concepts (how it works)
1) PO3 Dealing-Range Engine
⦁ The script builds a tri-based PO3 range around current price (Auto or Manual).
⦁ It shifts the range when price “accepts” outside (close/wick—user selectable) and adapts width with ATR so the range expands in high volatility and tightens in low volatility.
⦁ From this range it computes mid, premium/discount halves, and sub-mids.
2) Goldbach Levels (structure map)
Within the active PO3 range, fixed percentages anchor recurring behaviors:
⦁ Rejection edges: 3%, 97%
⦁ Order-block tendency: 11%, 89%
⦁ FVG tendency: 17%, 83%
⦁ Liquidity void / expansion: 29%, 71%
⦁ Breaker band: 41%, 59%
⦁ Mitigation band: 47%, 53%
⦁ Equilibrium: 50%
⦁ Touch/near logic is tolerance-based (body-only optional). The script also counts confluence clusters (2=moderate, 3+=strong) near price.
3) Market elements the script tracks
⦁ Order Blocks (OB): detected after BOS behavior when price is sitting on OB-biased GB levels (11/89).
⦁ FVG: 3-bar gaps at FVG-biased levels (17/83) with optional “% fill” confirmation.
⦁ LV bars: wide-range, high-range bars around 29/71 for displacement/voids.
⦁ Equal Highs/Lows (EQH/EQL): tolerance with labeling for sweep risk.
⦁ Circuit Breaker (CB): zone seeded at 41/59. States: intact → broken → retest → revalidated/failed. A shaded band shows the active breaker zone.
⦁ Twin Towers (TT): equal-high/equal-low doublet with spacing/volume/RSI checks, then sweep-and-return into the breaker zone for confirmation.
4) Context & filters
⦁ Trend vs Range: DMI/ADX + EMA stack infer TREND/RANGE/TRANSITION and scale the required score.
⦁ MTF alignment: compares current PO3 halves vs HTF PO3 halves (user timeframe), rewarding alignment and flagging divergence.
⦁ Fib–Goldbach confluence: checks 61.8/38.2/78.6/127.2/161.8 against key GB levels for added weight.
⦁ Session weighting: Asia/London/NY bias different GB levels; weights are higher for London/NY.
⦁ Volume-weighted liquidity: tracks volume at EQH/EQL to flag “high-commitment” sweeps.
⦁ AMD cycle (smart): accumulation/manipulation/distribution estimated from ATR regimes, sweeps, BOS continuation, divergence and PO3 shifts.
⦁ Optional filters: HTF bias, SMT divergence via a second symbol, VSA volume emphasis, news blackout session.
5) Signal engine
⦁ Modes: MMxM, Trending, or Hybrid (auto switches depending on CB acceptance + ATR expansion).
⦁ A score (0–100) aggregates weighted conditions (GB touch/confluence, AMD alignment, CB state, TT, FVG/OB interaction, HTF bias, SMT, high-volume, RSI momentum).
⦁ Adaptive threshold raises/lowers requirements in TREND vs RANGE.
⦁ Outputs: BUY/SELL label with strength (WEAK/NORMAL/STRONG), a reasons string (e.g., GB+AMD+Breaker+TT+FVG+HTF+RSI), and risk levels:
⦁ SL: rejection/structure anchored (e.g., GB3/GB97 or recent swing ± ATR).
⦁ TP1: opposite breaker (41/59).
⦁ TP2: opposite FVG tendency (17/83).
⦁ Live RR displayed on label and plotted as dashed lines.
⦁ Cooldown, session/time, weekend, and volatility gates suppress poor-quality or clustered signals.
What you see on the chart
⦁ PO3 bands: High/Low/Mid lines plus background shading for Premium (bear tint), Discount (bull tint), Equilibrium (neutral).
⦁ Goldbach lines: Major structure (0/50/100) plus the functional GB set (11/17/29/41/47/53/59/71/83/89/3/97).
⦁ Blocks & gaps: OB lines, FVG boxes (extend right, fill progress), LV box, breaker zone band, and TT logic states.
⦁ CE/MT: Central equilibrium (~3.5%/96.5%) and mid-towers (25%/75%) trigger optional alerts.
⦁ Session overlays: Asia/London/NY (optional).
⦁ Opens: Daily/Weekly (optional).
⦁ Dashboard: PO3 value, Zone (Premium/Discount/Equilibrium), AMD phase, Session, Mode (MMxM/Trending/Hybrid), CB state, nearest GB tag, Market context (TREND/RANGE/TRANS), recent Events, and rolling win-rate tallies (signals/CB/TT) from the current chart session.
How to use it (workflow)
1. Pick a preset
⦁ Minimal: only core structure.
⦁ Standard: levels + dashboard.
⦁ Full: adds sessions + GBT window overlays.
2. Choose range logic
⦁ PO3 Auto is reactive and scales with ATR.
⦁ Manual PO3 is for precise range control.
3. Scope your bias
⦁ Confirm Zone (Premium/Discount), CB state, and AMD phase; check MTF row if enabled.
⦁ Strong setups usually appear when session-weighted GB levels + confluence ≥ 2 + CB revalidated + AMD = manipulation → distribution (short) or accumulation → manipulation (long).
4. Act on signals (optional)
⦁ When a label prints, read the factors string and score.
⦁ Use plotted SL/TP1/TP2 lines and RR.
⦁ Respect cooldown, news blackout, and volatility filter.
Inputs you might tweak
⦁ PO3: Auto/Manual, acceptance by Close vs Wick, adaptive widening/tightening.
⦁ Levels: Major-only vs All; tolerance %; wick vs body touches.
⦁ Signals: Mode, score threshold, cooldown, confirm on close.
⦁ CB/TT: breaker width %, spacing window & tolerance, suppress bars after TT.
⦁ Filters: HTF timeframe, SMT symbol, VSA on/off, news blackout session.
⦁ Visuals: colors, line opacity, label sizes, dashboard position/size.
⦁ FVG/LV/CE/MT: fill %, and per-event alerts.
Alerts available
⦁ BUY/SELL signal, PO3 shift, GB touch (with tag), CB broken/retest pass/fail, TT setup/confirmed, OB tagged, FVG formed/filled, LV expansion, CE/MT touches.
Limitations & notes
⦁ Signals are contextual—they depend on the active PO3, tolerance, filters, session weighting, and volatility regime.
⦁ HTF requests depend on broker/exchange data and the timeframe you assign; if HTF is empty or illiquid, features degrade gracefully but may be less informative.
⦁ Win-rate tallies are session-local (not a historical performance guarantee).
⦁ Parameter choices (e.g., tolerance, breaker width, thresholds) materially change behavior.
Disclaimer
This tool is for educational/informational purposes only. It does not constitute financial advice, an invitation to trade, or performance assurance. Markets involve risk—always test on replay/paper and manage risk independently.
PumpC PAC & MAsPumpC – PAC & MAs (Open Source)
A complete Price Action Candles (PAC) toolkit combining classical price action patterns (Fair Value Gaps, Inside Bars, Hammers, Inverted Hammers, and Volume Imbalances) with a flexible Moving Averages (MAs) module and an advanced bar-coloring system.
This script highlights supply/demand inefficiencies and micro-patterns with forward-extending boxes, recolors zones when mitigated, qualifies patterns with a global High-Volume filter, and ships with ready-to-use alerts. It works across intraday through swing trading on any market (e.g., NASDAQ:QQQ , $CME:ES1!, FX:EURUSD , BITSTAMP:BTCUSD ).
This is an open-source script. The description is detailed so users understand what the script does, how it works, and how to use it. It makes no performance claims and does not provide trade advice.
Acknowledgment & Credits
This script originates from the structural and box-handling logic found in the Super OrderBlock / FVG / BoS Tools by makuchaku & eFe. Their pioneering framework provided the base methods for managing arrays of boxes, extending zones forward, and recoloring once mitigated.
Building on that foundation, I have substantially expanded and adapted the code to create a unified Price Action Candles toolkit . This includes Al Brooks–inspired PAC logic, additional patterns like Inside Bars, Hammers, Inverted Hammers, and the new Volume Imbalance module, along with strong-bar coloring, close-threshold detection, a flexible global High-Volume filter, and a multi-timeframe Moving Averages system.
What it does
Fair Value Gaps (FVG) : Detects 3-bar displacement gaps, plots forward-extending boxes, and optionally recolors them once mitigated.
Inside Bars (IB) : Highlights bars fully contained within the prior candle’s range, with optional high-volume filter.
Hammers (H) & Inverted Hammers (IH) : Identifies rejection candles using configurable body/upper/lower wick thresholds. High-volume qualification optional.
Volume Imbalances (VI) : Detects inter-body gaps where one candle’s body does not overlap the prior candle’s body. Boxes extend forward until wick-based mitigation occurs (only after the two-bar formation completes). Alerts available for creation and mitigation.
Mitigation Recolor : Each pattern can flip to a mitigated color once price trades back through its vertical zone.
Moving Averages (MAs) : Four configurable EMAs/SMAs, with per-MA timeframe, length, color, and clutter-free plotting rules.
Strong Bar Coloring : Highlights bullish/bearish engulfing reversals with different colors for high-volume vs low-volume cases.
Close Threshold Bars : Marks candles that close in the top or bottom portion of their range, even if the body is small. Helps spot continuation pressure before a full trend bar forms.
Alerts : Notifications available for FVG+, FVG−, IB, H, IH, VI creation, and VI mitigation.
Connection to Al Brooks’ PAC teachings
This script reflects Al Brooks’ Price Action Candle methodology. PAC patterns like Inside Bars, Hammers, and Inverted Hammers are not trade signals on their own—they gain meaning in context of trend, failed breakouts, and effort vs. result.
By layering in volume imbalances, strong-bar reversals, and volume filters, this script focuses attention on the PACs that show true participation and conviction, aligning with Brooks’ emphasis on reading crowd psychology through price action.
Why the High-Volume filter matters
Volume is a key proxy for conviction. A PAC or VI formed on light volume can be misleading noise; one formed on above-average volume carries more weight.
Elevates Inside Bars that show absorption/compression with heavy activity.
Distinguishes Hammers that reject price aggressively vs. weak drifts.
Filters Inverted Hammers to emphasize true supply pressure.
Highlights VI zones where institutional order flow left inefficiencies.
Differentiates strong engulfing reversals from weaker, low-participation moves.
Inputs & Customization
Inputs are grouped logically for fast configuration:
High-Volume Filter : Global lookback & multiple, per-pattern toggles.
FVG : Visibility, mitigated recolor, box style/transparency, label controls.
IB : Visibility, require high volume, mitigated recolor, colors, label settings.
Hammer / IH : Visibility, require high volume, mitigated recolor, wick/body thresholds.
VI : Visibility, require high volume, mitigated recolor, box style, labels, mitigation alerts.
Strong Bars : Enable/disable, separate colors for high-volume and low-volume outcomes.
Close Threshold Bars : Customizable close thresholds, labels, optional count markers.
MAs : EMA/SMA type, per-MA toggle, length, timeframe, color.
Alerts
New Bullish FVG (+)
New Bearish FVG (−)
New Inside Bar (IB)
New Hammer (H)
New Inverted Hammer (IH)
New Volume Imbalance (VI)
VI Mitigated
Strong Bullish Engulfing / Bearish Engulfing (high- and low-volume variants)
Suggested workflow
Choose your market & timeframe (script works across equities, futures, FX, crypto).
Toggle only the PACs you actually trade. Assign distinct colors for clarity.
Use MAs for directional bias and higher timeframe structure.
Enable High-Volume filters when you want to emphasize conviction.
Watch mitigation recolors to see which levels/zones have been interacted with.
Use alerts selectively for setups aligned with your plan.
Originality
Builds upon Super OrderBlock / FVG / BoS Tools (makuchaku & eFe) for FVG/box framework.
Expanded into a unified PAC toolkit including IB, H, IH, and VI patterns.
Brooks-inspired design: Patterns contextualized with volume and trend, not isolated.
Flexible high-volume gating with per-pattern toggles.
New VI integration with wick-based mitigation.
Strong Bar Coloring differentiates conviction vs weak reversals.
MTF-aware MAs prevent clutter while providing structure.
Open-source: Transparent for learning, editing, and extension.
Disclaimer
For educational and informational purposes only. This script is not financial advice. Trading carries risk—always test thoroughly before live use.
[TehThomas] - Fair Value GapsThis script is designed to automatically detect and visualize Fair Value Gaps (FVGs) on your chart in a clean, intuitive, and highly responsive way. It’s built with active traders in mind, offering both dynamic updates and customization options that help you stay focused on price action without being distracted by outdated or irrelevant information.
What Are Fair Value Gaps?
Fair Value Gaps are areas on a chart where there’s an inefficiency in price, typically formed when price moves aggressively in one direction, leaving a gap between the wicks of consecutive candles. These gaps represent imbalanced price action where not all buy or sell orders were efficiently matched. As a result, they often become magnet zones where price returns later to "fill" the imbalance before continuing in its intended direction. Many traders use them as points of interest for entries, re-entries, or anticipating reversals and consolidations.
This concept is frequently used in Smart Money and ICT-based trading models, where understanding how price seeks efficiency is crucial to anticipating future moves. When combined with concepts like liquidity, displacement, and market structure, FVGs become powerful tools for technical decision-making.
Script Features & Functionality
1. Live Updating Gaps (Dynamic Shrinking)
One of the core features of this script is its ability to track and dynamically shrink Fair Value Gaps as price trades into them. Instead of leaving a static zone on your chart, the gap will adjust in real-time, reflecting the portion that has been filled. This gives you a much more accurate picture of remaining imbalance and avoids misleading zones.
2. Automatic Cleanup After Fill
Once price fully fills an FVG, the script automatically removes it from the chart. This helps keep your workspace clean and focused only on relevant price zones. There’s no need to manually manage your gaps, everything is handled behind the scenes to reduce clutter and distraction.
3. Static Mode Option
While dynamic updating is the default, some traders may prefer to keep the original size of the gap visible even after partial fills. For that reason, the script includes a toggle to switch from live-updating (shrinking) mode to static mode. In static mode, FVGs stay fixed from the moment they are drawn, giving you a more traditional visual reference point.
4. Multi-Timeframe Support (MTF)
You can now view higher timeframe FVGs, such as those from the 1H or 4H chart, while analyzing lower timeframes like the 5-minute. This allows you to see key imbalances from broader market context without having to flip between charts. FVGs from higher timeframes will be drawn distinctly so you can differentiate them at a glance.
5. Cleaner Visualization
The script is designed with clarity in mind. All drawings are streamlined, and filled gaps are removed to maintain a minimal, distraction-free chart. This makes it easier to combine this tool with other indicators or price-action-based strategies without overloading your workspace.
6. Suitable for All Market Types
This script can be used on any asset that displays candlestick-based price action — including crypto, forex, indices, and stocks. Whether you're scalping low-timeframe setups or swing trading with a higher timeframe bias, FVGs remain a useful concept and this script adapts to your trading style.
Use Case Examples
On a 5-minute chart, display 1-hour FVGs to catch major imbalance zones during intraday trading.
Combine the FVGs with liquidity levels and inducement patterns to build ICT-style trade setups.
Use live-updating gaps to monitor in-progress fills and evaluate whether a zone still holds validity.
Set the script to static mode to perform backtesting or visual replay with historical setups.
Final Notes
Fair Value Gaps are not a standalone trading signal, but when used with market structure, liquidity, displacement, and order flow concepts, they provide high-probability trade locations that align with institutional-style trading models. This script simplifies the visualization of those zones so you can react faster, stay focused on clean setups, and eliminate unnecessary distractions.
Whether you’re trading high volatility breakouts or patiently waiting for retracements into unfilled imbalances, this tool is designed to support your edge with precision and flexibility.
SMC+The "SMC+" indicator is a comprehensive tool designed to overlay key Smart Money Concepts (SMC) levels, support/resistance zones, order blocks (OB), fair value gaps (FVG), and trap detection on your TradingView chart. It aims to assist traders in identifying potential areas of interest based on price action, swing structures, and volume dynamics across multiple timeframes. This indicator is fully customizable, allowing users to adjust lookback periods, colors, opacity, and sensitivity to suit their trading style.
Key Components and Functionality
1. Key Levels (Support and Resistance)
This section plots horizontal lines representing support and resistance levels based on highs and lows over three distinct lookback periods, plus daily nearest levels.
Short-Term Lookback Period (Default: 20 bars)
Plots the highest high (short_high) and lowest low (short_low) over the specified period.
Visualized as dotted lines with customizable colors (Short-Term Resistance Color, Short-Term Support Color) and opacity (Short-Term Resistance Opacity, Short-Term Support Opacity).
Adjustment Tip: Increase the lookback (e.g., to 30-50) for less frequent but stronger levels on higher timeframes, or decrease (e.g., to 10-15) for scalping on lower timeframes.
Long-Term Lookback Period (Default: 50 bars)
Plots broader support (long_low) and resistance (long_high) levels using a solid line style.
Customizable via Long-Term Resistance Color, Long-Term Support Color, and their respective opacity settings.
Adjustment Tip: Extend to 100-200 bars for swing trading or major trend analysis on daily/weekly charts.
Extra-Long Lookback Period (Default: 100 bars)
Identifies significant historical highs (extra_long_high) and lows (extra_long_low) with dashed lines.
Configurable with Extra-Long Resistance Color, Extra-Long Support Color, and opacity settings.
Adjustment Tip: Use 200-500 bars for monthly charts to capture macro-level key zones.
Daily Nearest Resistance and Support Levels
Dynamically calculates the nearest resistance (daily_res_level) and support (daily_sup_level) based on the current day’s price action relative to historical highs and lows.
Displayed with Daily Resistance Color and Daily Support Color (with opacity options).
Adjustment Tip: Works best on intraday charts (e.g., 15m, 1h) to track daily pivots; combine with volume profile for confirmation.
How It Works: These levels update dynamically as new highs/lows form, providing a visual guide to potential reversal or breakout zones.
2. SMC Inputs (Smart Money Concepts)
This section identifies swing structures, order blocks, fair value gaps, and entry signals based on SMC principles.
SMC Swing Lookback Period (Default: 12 bars)
Defines the period for detecting swing highs (smc_swing_high) and lows (smc_swing_low).
Adjustment Tip: Increase to 20-30 for smoother swings on higher timeframes; reduce to 5-10 for faster signals on lower timeframes.
Minimum Swing Size (%) (Default: 0.5%)
Filters out minor price movements to focus on significant swings.
Adjustment Tip: Raise to 1-2% for volatile markets (e.g., crypto) to avoid noise; lower to 0.2-0.3% for forex pairs with tight ranges.
Order Block Sensitivity (Default: 1.0)
Scales the size of detected order blocks (OBs) for bullish reversal (smc_ob_bull), bearish reversal (smc_ob_bear), and continuation (smc_cont_ob).
Visuals include customizable colors, opacity, border thickness, and blinking effects (e.g., SMC Bullish Reversal OB Color, SMC Bearish Reversal OB Blink Thickness).
Adjustment Tip: Increase to 1.5-2.0 for wider OBs in choppy markets; keep at 1.0 for precision in trending conditions.
Minimum FVG Size (%) (Default: 0.3%)
Sets the minimum gap size for Fair Value Gaps (fvg_high, fvg_low), displayed as boxes with Fair Value Gap Color and FVG Opacity.
Adjustment Tip: Increase to 0.5-1% for larger, more reliable gaps; decrease to 0.1-0.2% for scalping smaller inefficiencies.
How It Works:
Bullish Reversal OB: Detects a bearish candle followed by a bullish break, marking a potential demand zone.
Bearish Reversal OB: Identifies a bullish candle followed by a bearish break, marking a supply zone.
Continuation OB: Spots strong bullish momentum after a prior high, indicating a continuation zone.
FVG: Highlights bullish gaps where price may retrace to fill.
Entry Signals: Plots triangles (SMC Long Entry) when price retests an OB with a liquidity sweep or break of structure (BOS).
3. Trap Inputs
This section detects potential bull and bear traps based on price action, volume, and key level rejections.
Min Down Move for Bear Trap (%) (Default: 1.0%)
Sets the minimum drop required after a bearish OB to qualify as a trap.
Visualized with Bear Trap Color, Bear Trap Opacity, and blinking borders.
Adjustment Tip: Increase to 2-3% for stronger traps in trending markets; lower to 0.5% for ranging conditions.
Min Up Move for Bull Trap (%) (Default: 1.0%)
Sets the minimum rise required after a bullish OB to flag a trap.
Customizable with Bull Trap Color, Bull Trap Border Thickness, etc.
Adjustment Tip: Adjust similarly to bear traps based on market volatility.
Volume Lookback for Traps (Default: 5 bars)
Compares current volume to a moving average (avg_volume) to filter low-volume traps.
Adjustment Tip: Increase to 10-20 for confirmation on higher timeframes; reduce to 3 for intraday sensitivity.
How It Works:
Bear Trap: Triggers when price drops significantly after a bearish OB but reverses up with low volume or support rejection.
Bull Trap: Activates when price rises after a bullish OB but fails with low volume or resistance rejection.
Boxes highlight trap zones, resetting when price breaks out.
4. Visual Customization
Line Width (Default: 2)
Adjusts thickness of support/resistance lines.
Tip: Increase to 3-4 for visibility on cluttered charts.
Blink On (Default: Close)
Sets whether OB/FVG borders blink based on Open or Close price interaction.
Tip: Use "Open" for intraday precision; "Close" for confirmed reactions.
Colors and Opacity: Each element (OBs, FVGs, traps, key levels) has customizable colors, opacity (0-100), border thickness (1-5 or 1-7), and blink effects for dynamic visualization.
How to Use SMC+
Setup: Apply the indicator to any chart and adjust inputs based on your timeframe and market.
Key Levels: Watch for price reactions at short, long, extra-long, or daily levels for potential reversals or breakouts.
SMC Signals: Look for entry signals (triangles) near OBs or FVGs, confirmed by liquidity sweeps or BOS.
Traps: Avoid false breakouts by monitoring trap boxes, especially near key levels with low volume.
Notes:
This indicator is a visual aid and does not guarantee trading success. Combine it with other analysis tools and risk management strategies.
Performance may vary across markets and timeframes; test settings thoroughly before use.
For optimal results, experiment with lookback periods and sensitivity settings to match your trading style.
The default settings are optimal for 1 minute and 10 second time frames for small cap low float stocks.
Continuation OB are Blue.
Bullish Reversal OB color is Green
Bearish Reversal OB color is Red
FVG color is purple
Bear Trap OB is red with a green border and often appears with a Bearish Reversal OB signaling caution to a short position.
Bull trap OB is green with a Red border signaling caution to a long position.
All active OB area are highlighted and solid in color while other non active OB area are dimmed.
My personal favorite setups are when we have an active bullish reversal with an active FVG along with an active Continuation OB.
Another personal favorite is the Bearish reversal OB signaling an end to a recent uptrend.
The Trap OB detection are also a unique and Original helpful source of information.
The OB have a white boarder by default that are colored black giving a simulated blinking effect when price is acting in that zone.
The Trap OB border are colored with respect to direction of intended trap, all of which can be customized to personal style.
All vaild OB zones are shown compact in size ,a unique and original view until its no longer valid.






















