Candlestick analysis
Testthis is a test script
bool newClosed = strategy.closedtrades > strategy.closedtrades
if newClosed
int last = strategy.closedtrades - 1
// 最新平仓 trade 的关键信息
string eid = strategy.closedtrades.entry_id(last)
float epx = strategy.closedtrades.entry_price(last)
string xid = strategy.closedtrades.exit_id(last)
float xpx = strategy.closedtrades.exit_price(last)
float pnl = strategy.closedtrades.profit(last) // 注意:单位是策略币种/合约计价(受 commission 等影响)
// 判断是不是“止损”触发(看 exit_id)
bool isStop = str.startswith(xid, "S_SL_")
string msg = "CLOSED TRADE (new) " +"entry: " + eid + " @ " + str.tostring(epx) + " " +"exit : " + xid + " @ " + str.tostring(xpx) + " " +"pnl : " + str.tostring(pnl) + " " +"isStop=" + str.tostring(isStop)
label.new(bar_index, high, msg, style=label.style_label_down, textalign=text.align_left)
Custom Step Bar CountHere is a professional description for your TradingView script, suitable for the "Description" field when publishing.
I have provided two versions: a **Standard Version** (detailed and professional) and a **Short Version** (concise).
### Option 1: Standard Version (Recommended for Publishing)
**Title:** Custom Step Bar Count
**Description:**
This indicator is an advanced bar counting tool designed for traders who need to track time cycles or specific bar sequences with custom arithmetic progressions. Unlike standard counters that simply display "1, 2, 3," this script allows you to decouple the **display frequency** from the **displayed value**.
The counter automatically resets at the beginning of every new trading day.
**Key Features:**
* **Custom Display Interval:** Choose how often a label appears (e.g., every 5 bars).
* **Custom Number Increment:** Define the value step for the displayed numbers (e.g., count by 3s).
* **Daily Reset:** The count restarts automatically at the beginning of each session.
* **Visual Customization:** Adjust label size and text color to fit your chart theme.
**How it works (Example):**
If you want to track a cycle where every **5th** bar represents a value of **3**:
1. Set **Display Every X Bars** to `5`.
2. Set **Number Increment** to `3`.
**Result:**
* Bar 5 shows label "**3**"
* Bar 10 shows label "**6**"
* Bar 15 shows label "**9**"
This is particularly useful for specific time-based strategies, Gann analysis, or backtesting setups that require non-linear counting.
---
### Option 2: Short Version (Concise)
**Title:** Custom Step Bar Count
**Description:**
A flexible bar counting utility that resets daily. This script allows you to customize both the frequency of the labels and the numeric step value.
**Settings:**
* **Display Every X Bars:** Controls the gap between labels (e.g., every 5th bar).
* **Number Increment:** Controls the number sequence (e.g., increments of 3).
**Example:**
With an interval of **5** and an increment of **3**, the script will display:
* 5th Bar: **3**
* 10th Bar: **6**
* 15th Bar: **9**
Includes options for text color and label size. Updated for Pine Script v6.
HTF Swing Compression BreakoutThis indicator identifies higher-timeframe (HTF) swing structure and highlights close-based breakouts that occur after structural compression.
HTF swing highs and lows are calculated using pivot points from a user-defined higher timeframe. When the distance between the most recent HTF swing high and swing low contracts below a configurable threshold, the structure is considered compressed.
Once compression is present, the script monitors for price closing outside of the HTF structure:
A close above the HTF swing high marks an upside breakout
A close below the HTF swing low marks a downside breakout
To reduce repeated signals, only one breakout per direction is allowed until price closes back inside the HTF range, at which point the state resets.
Key features:
Higher-timeframe swing high / low detection
Compression logic based on absolute swing distance
Close-only breakout confirmation
Directional state control to prevent duplicate signals
Optional visual swing structure plotting
Optional alert conditions
This script is intended as a structural analysis and alerting tool. It does not include risk management, position sizing, or trade execution logic.
Session OHLC (Daily-based)Displays the cash-session Open, High, Low, and Close levels on intraday charts using daily exchange data. Each trading day’s OHLC is marked with short color-coded lines for quick reference to session structure and key liquidity levels. Automatically hides on daily and higher timeframes. Ideal for intraday traders tracking session highs, lows, and equilibrium zones.
Gold Sniper Pro: Trend & Reversal SystemTitle: Gold Sniper Pro: Trend & Reversal System
Headline: Stop choosing between "Buying the Dip" and "Chasing the Trend." Now you can do both.
Introduction: Most indicators fail because they only work in one market condition. Reversal indicators fail during strong breakouts (selling too early), and Trend indicators fail during ranging markets (buying the top).
Gold Sniper Pro solves this by running two separate algorithms simultaneously to cover every phase of price action on Gold (XAUUSD).
How It Works (The Dual-Core Logic):
1. 🟢 SNIPER MODE (The "Buy Low" Logic)
Goal: Catch the exact bottom of a pullback.
Logic: Detects when price sweeps a liquidity low but is trading at a "discount" (below the EMA 20).
Signal: Displays a Green "SNIPER" label.
Best for: Ranging markets and deep corrections.
2. 🔵 TREND MODE (The "Breakout" Logic)
Goal: Catch the high-momentum runaway moves (like the 16:40 pump).
Logic: Detects when price is holding above the EMA 20 with strong momentum. It buys the strength, not the weakness.
Signal: Displays a Blue "TREND" label.
Best for: News events and strong directional rallies.
Key Features:
⚡ Dynamic EMA Filter: Replaces laggy RSI with real-time price action relative to the EMA 20.
🛡️ Multi-Timeframe Safety: Built-in 30m Trend Filter to prevent trading against the major trend (can be toggled OFF for aggressive scalping).
🎯 Auto TP/SL Lines: Automatically plots your Risk:Reward (2:1) targets on the chart.
🚀 "Force Trade" Switch: A new feature that allows you to bypass safety filters during high-volatility news events to catch fast breakouts.
How to Use:
Timeframe: Best on 1m or 5m (Designed for XAUUSD/Gold).
Aggressive: Check "Ignore 30m Filter" in settings to catch every scalping opportunity.
Conservative: Uncheck "Ignore Filter" to only trade when the 30m trend is aligned.
Exit: Close trade when price hits the Green TP line or Red SL line.
Settings:
EMA Length: 20 (Standard Institutional Trend).
Reward Ratio: 2.0 (Default).
Gold Trap Hunter (Auto-Structure & Liquidity Sweeps)The Concept: Stop Getting Trapped Have you ever bought a breakout, only to watch the price immediately reverse and hit your stop loss? This is called a Liquidity Trap (or "Sweep"). Institutional algorithms often push price slightly above a key High or below a key Low to trigger retail stop losses before moving the market in the real direction.
The Universal Trap Hunter is designed to visualize this market structure automatically. It helps you avoid "Fake Breakouts" and identifies high-probability Reversal points where the "Smart Money" is active.
How It Works (The Logic)
1. The Structure Boxes (The Battlefield) The indicator draws a shaded box representing the Higher Timeframe Structure.
Green Box: The market structure is Bullish (Making Higher Highs). We are looking for longs.
Red Box: The market structure is Bearish (Making Lower Lows). We are looking for shorts.
Feature: This is Universal. If you are on the 15-minute chart, it automatically calculates the 4-Hour structure for you. You are always trading with the bigger trend.
2. The "SWEEP" Signal (The Entry Trigger) A "Sweep" is the most powerful signal in this system.
What is it? Price breaks a previous structure High/Low but fails to close there. It grabs the liquidity and reverses.
⚔️ Green Sweep: Price broke the previous Low (trapping sellers), then closed back UP inside the range. This is a bullish reversal signal.
⚔️ Red Sweep: Price broke the previous High (trapping buyers), then closed back DOWN inside the range. This is a bearish reversal signal.
3. The Noise Filter (Gray Candles) Trading is about knowing when NOT to trade.
Gray Candles: These indicate "Noise." The price action is choppy or conflicting with the trend.
Colored Candles: The candles only turn Green or Red when the Trend, Momentum, and Structure all align. If you see color, the move is valid.
Settings & Customization
Structure Mode (Auto vs Manual):
Auto (Recommended): The script automatically selects the best Higher Timeframe for you.
Scalping 1m? → It looks at 1H Structure.
Trading 15m? → It looks at 4H Structure.
Manual: You can lock it to a specific timeframe (e.g., always show Daily structure).
Colors: Fully customizable to fit your dark/light theme.
How to Trade This Strategy
Identify the Trend: Look at the background Box color (Green = Bullish, Red = Bearish).
Wait for the Trap: Do not chase the price. Wait for price to challenge the edge of the box.
The Signal: Look for the "⚔️ SWEEP" label.
If the box is Green and you see a Green Sweep at the bottom: Strong Buy.
If the box is Red and you see a Red Sweep at the top: Strong Sell.
Disclaimer: This tool is for educational purposes and market analysis only. It helps visualize market structure and liquidity traps but does not guarantee future results. Always manage your risk.
Daily Candles (3 Prev + Live) | Fully Customizable Previous 3 daily candles + current live candle, placed according to price, with pip range inside candle, fully customizable
Fair Value GapA Simple and Clean FVG.
A straight-forward Indicator that indicates Bullish or Bearish FVGs by either Chart or specified TF.
Some color capabilities to add colored borders and max out your Trading View theme.
Gold Sniper (Liquidity Sweep)Concept : Stop Hunting the "Smart Money" Way Most traders lose money because they enter exactly where "Smart Money" is looking to trigger Stop Losses. We have all been there: You buy at support, the price dips just below your stop loss, takes you out, and then rockets up without you.
Gold Sniper is designed to capitalize on this exact behavior . Instead of buying the support, this script waits for the Liquidity Sweep (the "Stop Hunt"). It identifies when price breaks a key structure level to trap sellers, and signals an entry only when the price reclaims that level with momentum.
How It Works (The Logic) This indicator looks for a specific "Perfect Storm" setup using a 4-step confirmation process:
Identifies Support (Yellow Dots): It tracks local pivot lows (default 10 bars) to visualize the "Floor" where retail traders likely have their stop losses.
Detects the Sweep: It waits for price to drop below these yellow dots. This is the "Trap" phase where liquidity is grabbed.
Confirms the Reclaim: It does NOT catch the falling knife. It waits for a candle to close back ABOVE the broken support level.
Momentum Check (RSI): It ensures internal strength (RSI) is rising compared to the previous low, confirming that the drop was a trap, not a genuine crash.
Visual Features
Yellow Dots: Dynamic Support Levels / Pivot Lows.
"SWEEP BUY" Label: Signals exactly when the trap is complete and the reclaim has occurred.
Red Line (Hard Stop): Automatically draws a Stop Loss level at the lowest point of the sweep candle.
How to Use This Strategy
Wait for the Setup: Do not trade if price is just drifting. Wait for price to challenge and break the Yellow Dots.
The Trigger: Enter immediately on the Close of the candle with the "SWEEP BUY" label.
Stop Loss: Place your Hard Stop at the Red Line provided by the indicator.
Rule: If price touches the Red Line, the setup has failed (it was a real crash, not a sweep). Exit immediately.
Best Timeframes: Optimized for 1-Minute and 5-Minute scalping on Gold (XAUUSD) and Futures, but works on all liquid assets.
Settings
Pivot Lookback: How many bars back to check for the support floor (Default: 10).
RSI Length: Sensitivity of the momentum filter (Default: 14).
Disclaimer : This tool is for educational purposes and market analysis only. It identifies high-probability "Liquidity Sweep" setups but does not guarantee future results. Always manage your risk.
iFVG Setup Checklist (Hybrid Auto) [v6] - FIXEDBasically this is a setup grader. You manually check the boxes as you see the confluences. Typically you only want to trade A or A+ setups. The auto detection is a W-I-P so it might work or might not, use ur own sources.
VD Wicked FVGs v1.4 VD Wicked FVGs v1.5 — TradingView Description
🔮 VD Wicked FVGs v1.5 — by VooDoo Never Guru
Not a guru. Never was. Just a trader who got tired of staring at naked charts wondering where price was headed — then remembered that price always tells you where it's going. You just have to know where to look.
This indicator maps the Fair Value Gaps and Opening Ranges that actually matter. No fluff. No repainting hopium. Just structure — drawn where ICT methodology says the imbalances live.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT IT DOES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ FIRST PRESENTED FVGs (Time-Based)
The first imbalance of the session sets the tone. This tracks up to 3 custom time-based FVGs — default at 9:31 AM, 1:31 PM, and 6:15 AM — catching the first Fair Value Gap that forms at each key inflection point. Each one
plots the gap zone, midline (equilibrium), and extends forward so you can see where price is drawn to fill. Fully customizable times, colors, borders, and extension behavior.
▸ MACRO & SILVER BULLET FVGs
ICT's macro windows and Silver Bullet killzones, automated. Detects the first FVG within each window:
— London Macros (00:50–04:10)
— NY Macros (05:50–09:10)
— AM Trend (09:50–12:10)
— PM Trend (12:50–16:10)
— London Open SB (03:00–04:00)
— Market Open SB (09:30–10:00)
— NY AM SB (10:00–11:00)
— NY PM SB (14:00–15:00)
Each window gets its own color, extend mode, and bar count. The first presented FVG in each window is what matters — that's the one the algorithm marks.
▸ ICT 30-MINUTE OPENING RANGES
Five session opening ranges drawn automatically with optional FVG detection inside each range:
— Midnight (00:00–00:30)
— London (01:30–02:00)
— New York (07:00–07:30)
— RTH/Equities (09:30–10:00)
— Asian (20:00–20:30)
Shows the range high, low, and equilibrium. Detects the first bullish and bearish FVG within each 30-minute window. Optional range fill and border display.
▸ OPENING RANGE & CLOSING RANGE
Precision-captured using lower timeframe data (default 30-second). The Opening Range grabs the first bar's range at your specified time (default 9:30 AM). The Closing Range does the same for the session close (default 3:59
PM). Both plot high, low, and equilibrium lines with full style control. Historical levels stack so you can see how previous days' ORs and CRs act as support/resistance going forward.
▸ LOWER TIMEFRAME FVGs (15-Second & Hourly)
For the precision traders — detects FVGs on the 15-second timeframe at the 10 AM and 11 AM hours when the real moves tend to start. Also tracks hourly FVGs across the full session, either on your chart timeframe or drilling
into 15-second data for surgical accuracy.
▸ CUSTOM OPENING PRICE LEVELS (COPs)
Five customizable time-based opening price lines. Default setup marks the London Open (1:30 AM) and NY Open (7:00 AM). Add Market Open, PM session, Asian — whatever levels you need. Each gets its own color, style, width, and
extension length.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE EXTEND SYSTEM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Every FVG category supports 3 extension modes:
— BARS: Extends a fixed number of bars (classic)
— CURRENT: Dynamically extends to the current bar (keeps gaps visible as price develops)
— TIME: Extends until a specific time of day (e.g., stop at 4:00 PM close)
Set it and forget it, or dial each category differently. Your chart, your rules.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DESIGNED FOR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Futures traders working 1m–15m charts who trade ICT concepts: FVGs, opening ranges, macro killzones, and Silver Bullets. Works on ES, NQ, YM, CL, GC — anything with clean intraday structure.
This isn't a signal generator. It's a map. Price moves from imbalance to imbalance — this shows you where they are.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DEFAULTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Out of the box, only the essentials are on: First Presented FVGs, Opening Range, Closing Range, and Custom Opening Price Levels. Everything else (Macros, Silver Bullets, ICT Opening Ranges, Lower TF FVGs) is available but
starts disabled — turn on what fits your style.
No borders by default. Clean chart. VooDoo clean.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Not financial advice. Not a guru. Just VooDoo.
Trade what you see, not what you hope.
🔮 VooDoo Never Guru
FX-CLINIC/ICT/IFVGICT Indicator
Show IFVG
Automatic update
direct create if break FVG by candle body100%
direct delete if break IFVG by candle body 100%
Created by FX-CLINIC
Heikin Ashi Multi-Timeframe MA Crossover IndicatorThis indicator uses Heikin Ashi candles to smooth price action and calculates moving average crossovers on higher-timeframe data, with optional filters for added context.
How it works
Heikin Ashi averages open, high, low, and close prices to reduce noise and highlight trend direction more clearly than standard candles. The script fetches Heikin Ashi close prices from a user-defined timeframe (default: 60 minutes) and computes two moving averages on that data.
Fast MA (default: SMA 10) → green line
Slow MA (default: SMA 20) → red line
A crossover occurs when the fast MA crosses the slow MA. Markers appear only when active filters are satisfied.
Visual markers
Green triangle below bar: fast MA crosses above slow MA + filters passed
Red triangle above bar: fast MA crosses below slow MA + filters passed
Filters (all optional)
Higher Timeframe Heikin Ashi — Uses smoothed data from a selected timeframe (default 60min)
Trend Filter (200 EMA) — Bullish crossovers only above the EMA; bearish only below (calculated on regular close)
MACD Filter — MACD (12,26,9) on Heikin Ashi closes; requires alignment with crossover direction
Bar Close Confirmation — Signals trigger only after bar close (reduces intra-bar noise)
Reversal Detection — Checks recent bars (default 3) for quick direction changes (blue/orange circles)
Chart examples (see screenshots below)
1-hour BTC/USD chart showing multiple filtered crossovers during a downtrend phase. Red triangles appear only when price is below the 200 EMA trend line (purple) and MACD confirms bearish momentum.
4-hour BTC/USD chart illustrating a sequence of bearish crossovers and trend alignment. The 200 EMA (purple) acts as dynamic resistance, with red triangles marking confirmed down moves on 60-minute Heikin Ashi data.
15-minute BTC/USD chart capturing short-term momentum shifts. Red triangles highlight filtered crossovers in a declining phase, with the indicator responding to lower-timeframe noise while respecting the broader trend filter.
Alerts
Heikin Ashi MA Crossover Up Detected
Heikin Ashi MA Crossover Down Detected
Potential Reversal Up Detected
Potential Reversal Down Detected
These alerts notify mathematical conditions only.
Typical use cases
Observing smoothed trend changes across timeframes
Contextualizing crossovers with higher-timeframe data
Reducing signals in ranging markets via filters
Combining with support/resistance or volume for additional context
Key limitations
Heikin Ashi adds lag to price action
Moving average crossovers generate false signals in sideways markets
Filters decrease signal frequency but cannot eliminate whipsaws
Historical behavior does not predict future outcomes
Results vary by asset, timeframe, and market conditions
Settings suggestions
Intraday / scalping: EMA 8–12 fast + SMA 21 slow + lower MACD timeframe
Swing / position trading: Keep SMA 10/20 defaults + 60min or 240min HA timeframe
Trending markets: Test disabling MACD filter for more frequent markers
Disclaimer
This indicator is provided solely for educational and technical analysis purposes.
It does not constitute financial advice, investment recommendation, or trading signal.
Trading carries a high risk of capital loss.
Use under your own responsibility.
Moving Average Exponential//@version=6
indicator(title="Moving Average Exponential", shorttitle="EMA", overlay=true, timeframe="", timeframe_gaps=true)
len = input.int(9, minval=1, title="Length")
src = input(close, title="Source")
offset = input.int(title="Offset", defval=0, minval=-500, maxval=500, display = display.data_window)
out = ta.ema(src, len)
plot(out, title="EMA", color=color.blue, offset=offset)
// Smoothing MA inputs
GRP = "Smoothing"
TT_BB = "Only applies when 'SMA + Bollinger Bands' is selected. Determines the distance between the SMA and the bands."
maTypeInput = input.string("None", "Type", options = , group = GRP, display = display.data_window)
var isBB = maTypeInput == "SMA + Bollinger Bands"
maLengthInput = input.int(14, "Length", group = GRP, display = display.data_window, active = maTypeInput != "None")
bbMultInput = input.float(2.0, "BB StdDev", minval = 0.001, maxval = 50, step = 0.5, tooltip = TT_BB, group = GRP, display = display.data_window, active = isBB)
var enableMA = maTypeInput != "None"
// Smoothing MA Calculation
ma(source, length, MAtype) =>
switch MAtype
"SMA" => ta.sma(source, length)
"SMA + Bollinger Bands" => ta.sma(source, length)
"EMA" => ta.ema(source, length)
"SMMA (RMA)" => ta.rma(source, length)
"WMA" => ta.wma(source, length)
"VWMA" => ta.vwma(source, length)
// Smoothing MA plots
smoothingMA = enableMA ? ma(out, maLengthInput, maTypeInput) : na
smoothingStDev = isBB ? ta.stdev(out, maLengthInput) * bbMultInput : na
plot(smoothingMA, "EMA-based MA", color=color.yellow, display = enableMA ? display.all : display.none, editable = enableMA)
bbUpperBand = plot(smoothingMA + smoothingStDev, title = "Upper Bollinger Band", color=color.green, display = isBB ? display.all : display.none, editable = isBB)
bbLowerBand = plot(smoothingMA - smoothingStDev, title = "Lower Bollinger Band", color=color.green, display = isBB ? display.all : display.none, editable = isBB)
fill(bbUpperBand, bbLowerBand, color= isBB ? color.new(color.green, 90) : na, title="Bollinger Bands Background Fill", display = isBB ? display.all : display.none, editable = isBB)
25GN-Intraday Reversals and MomentumThe 25GN-Intraday Suite is a high-performance visual interface designed for professional traders on the 5m, 10m, and 15m timeframes. This master version combines two distinct proprietary signal paths into one streamlined overlay.
CORE CAPABILITIES
Precision Reversal Bubbles (25GN-B / 25GN-S): Identifies significant trend exhaustion and pivot points using a multi-layered validation engine.
Trend Momentum Triangles: Real-time identification of high-velocity breakout phases.
Price Action Lock: An automated filtering system that invalidates signals during periods of market indecision or low-conviction price action.
OPERATIONAL GUIDELINES
Strict Timeframe Optimization: Engineered specifically for the 5-minute, 10-minute, and 15-minute charts.
Smart Alerts: Fully compatible with TradingView alerts for modular trade automation.
Plug-and-Play: Designed to work out of the box with calibrated defaults for the supported timeframes.
This script is strictly for educational and informational purposes and does not constitute financial, investment, or trading advice. It is not an investment or trade suggestion. Users must evaluate all signals and execute trades based on their own independent analysis and risk assessment. Past performance is not indicative of future results. Trading involves significant risk of loss.
JOWY LA VERDADERA ESTRUCTURABasically it is an indicator that perfectly represents the typical BoS Market structure in the fastest way. It is advisable to study several temporalities at the same time and not focus on just one.
Top-secret Golden Mentor (Jorge's Algo)Description:
INTRODUCTION The Top-secret Golden Mentor is an institutional trading system engineered for surgical precision on Gold (XAUUSD) and other volatile assets. This indicator goes beyond simple entry signals; it automatically filters market traps (fakeouts) by aligning every volume anomaly with the macro market structure.
The main objective is simple: Stop trading against the trend and pinpoint exactly where institutions have injected capital.
KEY FEATURES
1. X-Ray Candles (True Volume Pressure) Move beyond traditional Japanese candlesticks. This indicator "undresses" the price action:
Grey Border: Represents the price range.
Color Fill (Green/Red): Reveals who actually won the internal volume battle (Delta).
Benefit: You can spot candles that look bullish on the outside but are "hollow" (empty of buyers) on the inside.
2. Smart Trend Filter (The Trap Detector) The core upgrade of V18. The system analyzes market structure in real-time.
If a BUY signal appears during a BEARISH structure, the system instantly marks it with a Grey "X".
Signal with "X" = MARKET TRAP (Absorption).
This prevents you from entering fake pullbacks that are about to be absorbed by the main trend.
3. Sniper Signals & Institutional Gaps (FVG) When the system detects a massive volume injection:
It plots a Volume Dot (Alert).
It automatically projects the 50% Retracement Line of the candle body (Institutional Equilibrium).
It draws a Subtle Box (Gap/FVG) marking the price inefficiency where institutions often return to mitigate.
4. Dynamic Structure Panel A visual dashboard in the top corner that instantly displays the current timeframe bias (BULLISH or BEARISH), removing subjective guesswork.
HOW TO USE THIS STRATEGY
Check the Panel: Is the bias BULLISH or BEARISH?
Wait for the Signal: Look for the Volume Dot.
Filter the Trap:
If the dot has a Grey "X" on top: DO NOT TRADE. It is a counter-trend trap.
If the dot has NO "X" and lines are drawn: VALID SIGNAL.
Execution: Place your Limit Order at the dotted 50% line or inside the Institutional Gap Box.
RECOMMENDED SETTINGS
Assets: Optimized for XAUUSD (Gold), but works on Forex and Futures.
Timeframes: Highly effective on 1H for direction and 5m for sniper entries.
DISCLAIMER This indicator is a technical analysis assistance tool based on Smart Money Concepts (SMC). It does not guarantee future profits. Always use proper risk management.
FVG Candle - Auto Threshold + MitigationFVG Candle (MTF) is a clean and lightweight Fair Value Gap indicator designed for traders who want a structured and non-repainting view of imbalance zones across timeframes.
This script focuses on clarity, mitigation logic, and multi-timeframe consistency, making it suitable for discretionary trading and market structure analysis.
🔹 Key Features
Detects Bullish and Bearish Fair Value Gaps
Multi-Timeframe (MTF) FVG detection
Automatic volatility-based threshold
Split-box visualization for clearer imbalance structure
Automatic mitigation detection and cleanup
Optional bar-based extension
Built-in alerts for new FVG formation
Non-repainting by default
🔹 What Makes This Script Different
Uses a controlled MTF workflow to avoid unnecessary repainting
Automatically removes mitigated gaps to keep the chart clean
Visual split of FVG zones improves precision when interacting with price
Designed to be lightweight and readable, avoiding chart clutter
🔹 Repainting Notice
By default, this script does NOT repaint.
An optional repainting mode is available for study and visualization purposes only.
When enabled, historical FVGs may adjust as higher timeframe candles complete.
🔹 How to Use
Use FVGs as reaction zones, not direct entry signals
Combine with market structure, liquidity, or volume
Bullish FVGs may act as demand zones
Bearish FVGs may act as supply zones
Mitigated FVGs are automatically removed
🔹 Credits
The Fair Value Gap concept and core detection logic are inspired by
Smart Money Concepts .
This script is distributed under the CC BY-NC-SA 4.0 license, with proper attribution.
Multi-Timeframe FVG ArchitectThe Multi-Timeframe FVG Architect is a professional-grade precision tool designed for institutional-style price action analysis. Unlike standard Fair Value Gap (FVG) indicators that clutter your chart with overlapping boxes, this Architect uses a high-performance Dual-Stream engine to track active, inverted, and filled gaps across 7 timeframes simultaneously while maintaining a pristine chart environment.
Core Capabilities
7-Timeframe Matrix: Simultaneously monitors FVGs from the 30-Second (Premium) level up to the 4-Hour timeframe.
True MTF Calculation: Logic is calculated internally within each timeframe’s native context to ensure "Wick-to-Wick" detection is 100% accurate, regardless of which timeframe you are currently viewing.
Proximity HUD (Dashboard): A decoupled "Heads-Up Display" that tracks the 30m, 1h, and 4h bias independently. Even if you hide the boxes on your chart, the HUD stays active, signaling when price is approaching or interacting with a higher-timeframe zone.
Session-Anchored Lookback: Tailored for ICT/SMC traders, the historical lookback is anchored to the Asia Session Open (18:00 EST). This allows you to filter out irrelevant historical data and focus purely on the current or previous trading days.
Advanced Mechanics
Gap Lifecycle Management: The script manages three distinct states for every gap:
Active: Traditional Wick-to-Wick gap waiting for interaction.
Inversion: Once a gap is closed through by price, it automatically converts into an "Inversion FVG," signaling a potential support/resistance flip.
Filled: Once a gap is fully mitigated or re-inverted, it is purged from memory to save processing power.
Real-Time "Inside-Zone" Detection: The Dashboard features a unique ⦿ marker. When price enters a higher-timeframe FVG, the HUD cell flips to high-contrast white, providing an immediate visual alert that you are inside a potential reversal or acceleration zone.
Optimized Performance: Strictly limited to 50 boxes per timeframe to respect TradingView's drawing limits and ensure zero-lag execution.
Shutterstock
Explore
User Configuration
Independent Visual Toggles: Choose exactly which timeframes to draw while keeping the HUD monitoring the background.
Full Aesthetic Control: Independent color/transparency settings for Bullish, Bearish, and Inversion states, including customizable dotted midlines.
Flexible HUD Positioning: Move the dashboard to any corner of the screen and adjust its scale from "Tiny" to "Large" to fit your workspace.
How to Use
Identify HTF Bias: Use the Dashboard to see if the 4H or 1H bias is currently Bullish (Green), Bearish (Red), or Inverted (Yellow).
Monitor Interaction: Watch for the ⦿ symbol on the HUD. This indicates that price is currently wrestling with a significant higher-timeframe level.
Execute on LTF: Look for LTF (1m/5m) FVGs that align with the HUD bias for high-probability entries.
OTE PRO FuturesOTE PRO – Futures HighFreq PRO (SMC)
OTE PRO is a Smart Money Concepts (SMC)–based futures strategy designed to capture institutional displacement moves followed by precise Optimal Trade Entry (OTE) retracements.
The strategy focuses on identifying intent, liquidity displacement, and premium/discount re-entries rather than indicators or lagging signals.
Market StrucLogic
ture
A Market Structure Shift (MSS) is confirmed when price breaks internal structure
- The MSS candle must show strong body expansion relative to ATR, filtering weak or engineered breaks
. MSS defines the directional bias and activates the setup window
Displacement & Liquidity Expansion
- Following MSS, the strategy waits for impulsive displacement
- Displacement is validated by:
- Large candle range relative to ATR
- Optional volume expansion (institutional participation filter)
- This displacement defines the dealing range used for execution
Optimal Trade Entry (OTE)
- After displacement, the impulse high/low is locked
- Entry is placed in the 0.618 Fibonacci retracement zone
- A configurable tolerance accounts for fast, high-frequency market conditions
- If price fails to retrace within the allowed time window, the setup is invalidated
Risk & Trade Management
- Stop Loss: Protected structure (origin of the displacement)
- Partial Take Profit: 50% at the 0.382 Fibonacci level
- Final Take Profit: Liquidity target at the displacement high/low
- All risk parameters are fixed at entry to prevent dynamic repainting
Additional Context
- 200 EMA plotted for higher-timeframe directional awareness
- ATR normalization ensures consistency across instruments
- MSS markers visualize structural shifts clearly
Usage Notes
- Built for futures markets and lower timeframes
- Performs best during high-liquidity sessions
- Not designed for ranging or low-volatility environments






















