ATR ZigZag BreakoutATR ZigZag Breakout
This strategy uses my ATR ZigZag indicator (powered by the ZigZagCore library) to scalp breakouts at volatility-filtered highs and lows.
Everyone knows stops cluster around clear swing highs and lows. Breakout traders often pile in there, too. These levels are predictable areas where aggressive orders hit the tape. The idea here is simple:
→ Let ATR ZigZag define clean, volatility-filtered pivots
→ Arm a stop market order at those pivots
→ Join the breakout when the crowd hits the level
The key to greater success in this simple strategy lies in the ZigZag. Because the pivots are filtered by ATR instead of fixed bar counts or fractals, the levels tend to be more meaningful and less noisy.
This approach is especially suited for intraday trading on volatile instruments (e.g., NQ, GC, liquid crypto pairs).
How It Works
1. Pivot detection
The ATR ZigZag uses an ATR-based threshold to confirm swing highs and lows. Only when price has moved far enough in the opposite direction does a pivot become “official.”
2. Candidate breakout level
When a new swing direction is detected and the most recent high/low has not yet been broken in the current leg, the strategy arms a stop market order at that pivot.
• Long candidate → most recent swing high
• Short candidate → most recent swing low
These “candidate trades” are shown as dotted lines.
3. Entry, SL, and TP
If price breaks through the level, the stop order is filled and a bracket is placed:
• Stop loss = ATR × SL multiplier
• Take profit = SL distance × RR multiplier
Once a level has traded, it is not reused in the same swing leg.
4. Cancel & rotate
If the market reverses and forms a new swing in the opposite direction before the level is hit, the pending order is cancelled and a new candidate is considered in the new direction.
Additional Features
• Optional session filter for backtesting specific trading hours
Phân tích Xu hướng
MMBS HkOrE FX [V5.11]The Multi-Model Bias System (MMBS) is a composite bias-detection framework that evaluates price behavior using three independent analytical engines: structural confirmation, normalized volatility expansion, and momentum velocity dynamics. The goal of the tool is not to generate trading signals, but to identify the dominant directional bias through multi-factor validation.
🔧 1. Structural Recognition Engine (Multi-Pivot Confirmation)
MMBS identifies market structure using a multi-confirmation pivot model rather than a single swing point.
A Swing High/Low is only confirmed when several consecutive pivot conditions align.
This reduces noise and produces a “stable structure map.”
A bullish bias requires sequential higher-low and higher-high confirmations; bearish bias requires the opposite.
Because this model relies on progressive confirmation, it behaves differently from common fractal-based structure indicators.
This approach allows the bias to remain stable during minor price fluctuations.
🔧 2. Normalized Volatility Boundary (Modified ATR Model)
Volatility is processed using a custom ATR-based normalization:
The script calculates a rolling ATR range, then scales it using a smoothing function to prevent extreme expansion.
This produces a volatility boundary line that adapts proportionally to recent market conditions.
When price approaches this boundary while structural strength weakens, the system flags reduced confidence in the existing bias.
This method differs from standard ATR bands because it compresses outlier volatility instead of amplifying it.
🔧 3. Momentum Velocity Engine (Smoothed ROC Filter)
The momentum module measures acceleration rather than raw momentum:
A smoothed Rate-of-Change curve evaluates whether price velocity is supporting or diverging from the current structure.
Deceleration near the volatility boundary is interpreted as potential instability.
No buy/sell signals are generated—momentum is used strictly for bias confidence filtering.
By focusing on velocity shifts instead of momentum direction alone, the system captures early structural weakening.
🔗 How the Components Interact
A directional bias is assigned only when:
Structure confirmation
Volatility normalization
Momentum velocity
are aligned in the same direction.
If any module diverges, MMBS defaults to a neutral (no-bias) state.
This behavior distinguishes it from single-module indicators that rely solely on trend, volatility, or momentum.
📊 Visual Output
Bias Color Bar — shows the dominant directional bias (bullish / bearish / neutral).
Volatility Boundary Line — reflects the normalized ATR range used for stability validation.
Momentum Markers — point to areas where velocity divergence may invalidate the bias.
These components are informational only and do not represent entry or exit signals.
⚙️ User-Adjustable Inputs
Structure Sensitivity — modifies how many pivot confirmations are required.
Volatility Scaling — adjusts ATR normalization strength.
Momentum Smoothing — controls responsiveness to short-term velocity changes.
🔒 Why the Script Is Invite-Only
The script uses custom structural logic, a custom-developed ATR normalization method, and a ROC-based velocity filter that differs from publicly available tools.
Invite-only access is maintained to ensure responsible use and preserve controlled distribution of the multi-factor bias-model framework.
The script does not rely on any publicly available template and integrates multiple independent computational layers, which justifies restricted visibility under TradingView’s policies.
CK: Locked Session H/L + Volume Profile (1m Fixed)The session roadmap every futures trader needs — without the clutter.
This tool automatically locks the previous session’s structure and gives you the five most important institutional levels:
✅ Locked Session High
✅ Locked Session Low
✅ Session POC (Point of Control)
✅ VAH – Value Area High
✅ VAL – Value Area Low
Everything is calculated using 1-minute data only, so your levels are accurate, consistent, and never repaint.
💡 What It Does
Tracks the entire session from the RTH close to the next RTH close.
Builds a volume-by-price profile for that session.
Automatically freezes the session’s:
Highest price
Lowest price
Most-traded price (POC)
70% value area (VAH/VAL)
Plots all levels as clean horizontal lines for today’s trading.
🚀 Why Traders Use This
These 5 levels control most algorithmic and institutional activity.
This indicator shows you exactly where price reacted yesterday, so you can:
Catch retests and bounces with confidence
Avoid trading in the middle of nowhere
Anticipate reversals, breakouts, and liquidity grabs
Build a consistent plan around the same fixed levels every day
TradePulse ProTradepulse is a proprietary trading tool that combines a directional signal engine, a trend-adaptive trailing stop system, and a momentum confirmation oscillator into a unified decision framework. Instead of simply stacking separate indicators on a chart, TradePulse integrates these components into a single rules-based system designed to help traders act with structure rather than emotion by identifying conditions where trend and momentum are aligning.
How It Works:
Directional Signals - TradePulse uses a custom price-average model with ATR-based volatility thresholds to detect transitions between bullish and bearish environments. Buy and Sell markers appear only when price strength and volatility conditions confirm a shift. Reducing noise and late entries.
Trend-Adaptive Trailing Stop - A dynamic trailing system combines smoothed moving averages with ATR expansion logic. As price develops, the trailing level adjusts automatically and target projections update based on symmetry extensions. Helping guide structured exits and trade management.
Momentum Confirmation - A proprietary oscillator blends stochastic positioning with center-of-gravity transformation and dual smoothing. It highlights whether momentum aligns with the directional shift, helping traders avoid weaker setups and focus on higher-quality conditions.
Key Features:
- Clear Buy/Sell transitions based on multi-factor confluence
- Adaptive trailing stop + projected targets for structured management
- Momentum filtering to support higher-quality opportunities
- Sensitivity adjustments to suit different markets & styles
TradePulse is original work protected under invite-only access. It is provided for educational and informational purposes only. Trading involves risk, and signals should always be validated with your own analysis and risk management.
Green to Red Money RailsWhat this indicator does
Green to Red Money Rails (G2R Rails) is a price-action tool that draws dynamic “rails” from recent swing lows and highs. It tracks how support and resistance are shifting so you can see where trend pressure is building or weakening.
Core logic (high level)
Detects pivot lows and stores the last three (L1, L2, L3).
Builds green support “fans”: inner dotted rails L1→L2 and L2→L3, plus a main solid base rail L1→L3.
Detects pivot highs and, when the last high is lower than the previous one, draws a red resistance rail from H2→H3.
Optional labels mark the most recent swing low (“L”) and swing high (“H”).
How to use it
Use the green rails as dynamic support zones for trend-following, pullback entries, or stop placement.
Use the red rail as a visual ceiling in downtrends: breaks above it can signal the end of a sell-off; rejections at it confirm sellers still in control.
Works best on liquid markets and swing-trading timeframes (for example, 1h–1D). Always combine with your own risk management and higher-timeframe context.
This script does not auto-generate signals or manage risk for you; it is a visual framework for reading structure and building your own trading plans.
ATR ZigZag - Volatility-Filtered Market StructureDescription
This indicator draws ZigZags using an ATR based threshold for direction switching to identify major swing highs and lows. Instead of relying on fractals or fixed bar-count swings, pivots are confirmed only when price moves beyond the prior extreme by:
threshold = ATR(length) × ATR_mult
This filters noise, enforces valid swing structure (high → low → high), and adapts automatically to volatility. The ATR ZigZag is ideal for traders who want a clean, objective view of swing structure without noise. This has many uses, including mapping swing structure, drawing chart patterns, and trading around extremes.
Lag and Repainting
Pivots are confirmed only after price moves sufficiently in the opposite direction. This creates necessary lag. The ZigZag is drawn when this occurs, and will anchor to the high/low in the past. Optional detection dot plots show exactly when confirmation occurred.
What You See
ZigZag: dashed gray line, repainted to anchor at the confirmed highs and lows
Latest Pivot Levels: Dashed horizontal lines at the most recent confirmed high/low.
Optional Live Swing Leg: A real-time line from the last confirmed pivot to the current swing extreme, updating until a new pivot forms.
Optional ATR Boxes: 1×ATR shaded zones around the latest pivot for structural context.
Optional Pivot Confirmation Dots: Markers show the bar where the threshold is crossed and a swing is officially confirmed. This is to understand the lag and see when the ZigZag repainted.
Market Structure Shift (MSS) [Sword & Shield]MARKET STRUCTURE SHIFT (MSS)
A clean and focused indicator for identifying Market Structure Shifts in price action.
════════════════════════════════════════════════════════════════════════════════
WHAT IS MARKET STRUCTURE SHIFT (MSS)?
════════════════════════════════════════════════════════════════════════════════
A Market Structure Shift occurs when price breaks a significant swing high or swing low,
indicating a potential change in market direction. This indicator automatically detects
and plots these key levels.
BULLISH MSS: Price breaks above a previous swing high
BEARISH MSS: Price breaks below a previous swing low
════════════════════════════════════════════════════════════════════════════════
FEATURES
════════════════════════════════════════════════════════════════════════════════
CLEAN DISPLAY
- Shows only the last 2 MSS by default (1 bullish + 1 bearish)
- Keeps charts clean and focused on recent structure
- Automatically removes old MSS when new ones appear
CUSTOMIZABLE DETECTION
- Adjustable swing detection (left/right bars)
- Choose break confirmation method (Close or Wick)
- Fixed-length lines (no infinite extension by default)
SMART FILTERING
- Only plots one MSS per direction until opposite MSS occurs
- Prevents duplicate signals in the same direction
- Clear visual distinction between bullish (blue) and bearish (red)
CLEAN LABELS
- Text labels positioned above lines
- No background tooltips for cleaner appearance
- Color-matched to their respective MSS lines
════════════════════════════════════════════════════════════════════════════════
SETTINGS
════════════════════════════════════════════════════════════════════════════════
SWING DETECTION
- Swing Left Bars (default: 2)
- Swing Right Bars (default: 2)
- Higher values = more significant swings detected
BREAK CONFIRMATION
- Close: MSS confirmed when candle closes beyond level
- Wick: MSS confirmed when wick touches beyond level
DISPLAY OPTIONS
- Show Only Last 2 MSS: ON by default (keeps chart clean)
- Extend lines to the right: OFF by default (fixed-length lines)
- Line bars (when not extended): 50 bars (customizable)
════════════════════════════════════════════════════════════════════════════════
HOW IT WORKS
════════════════════════════════════════════════════════════════════════════════
DETECTION LOGIC
1. Identifies swing highs and swing lows using pivot detection
2. Monitors price action for breaks of these levels
3. Confirms break based on selected method (Close or Wick)
4. Plots MSS line at the broken level
FILTERING LOGIC
- Only one MSS per direction is allowed consecutively
- Example: If bullish MSS appears, no new bullish MSS until bearish MSS occurs
- This prevents multiple signals in trending markets
DISPLAY LOGIC
- When "Show Only Last 2 MSS" is enabled:
• Only the most recent bullish MSS is shown
• Only the most recent bearish MSS is shown
• Old MSS are automatically deleted when new ones appear
- When disabled: All historical MSS remain visible
════════════════════════════════════════════════════════════════════════════════
USAGE EXAMPLES
════════════════════════════════════════════════════════════════════════════════
FOR TREND IDENTIFICATION
- Bullish MSS = Potential uptrend beginning
- Bearish MSS = Potential downtrend beginning
- Use in conjunction with other indicators for confirmation
FOR ENTRY SIGNALS
- Wait for MSS to confirm trend change
- Enter on pullback to MSS level
- Use MSS as support/resistance
FOR SCALPING (Lower Timeframes)
- Swing Left/Right Bars: 2-3 (more sensitive)
- Break Confirmation: Close (more reliable)
- Show Only Last 2 MSS: ON (cleaner charts)
FOR SWING TRADING (Higher Timeframes)
- Swing Left/Right Bars: 5-10 (more significant swings)
- Break Confirmation: Close (avoid false breaks)
- Show Only Last 2 MSS: ON or OFF based on preference
════════════════════════════════════════════════════════════════════════════════
VISUAL DESIGN
════════════════════════════════════════════════════════════════════════════════
LINES
- Dashed style for easy identification
- Blue for bullish MSS
- Red for bearish MSS
- Fixed length (50 bars default) for cleaner appearance
LABELS
- "MSS" text positioned above each line
- No background for clean display
- Color-matched to line color
- Small size to avoid chart clutter
════════════════════════════════════════════════════════════════════════════════
CREDITS & LICENSE
════════════════════════════════════════════════════════════════════════════════
© Sword & Shield
This Pine Script code is subject to the terms of the Mozilla Public License 2.0
mozilla.org
Box TheoryBox Theory – Description
This indicator is based on the popular “Box Theory” concept, where the previous session’s High–Low range acts as the most important structure for the next session.
Traders use this because the market often reacts to the same areas where liquidity, orders, and imbalances were created in the prior session.
At every new session open, the indicator automatically records:
Previous High
Previous Low
Middle (50% level)
These three levels form a box, which becomes your roadmap for the new session.
This method is widely used because it highlights where most reversals, sweeps, and reactions occur—without needing any extra indicators.
How the Zones Are Calculated
Previous High
The highest price of the last session.
This forms the top edge, which acts as resistance and the basis for the Sell Zone.
Previous Low
The lowest price of the last session.
This forms the bottom edge, acting as support and the basis for the Buy Zone.
Middle Line (50% Level)
The exact midpoint between High and Low.
This is the fair-value zone, where price often consolidates and becomes directionless.
No signals are triggered near the middle, because trades taken here historically have low accuracy.
Buy Zone (Green Area)
The lower part of the box.
Price often reacts here because this area held buyers in the previous session.
When price enters this green zone inside the box, the indicator can show a Buy Zone label.
Sell Zone (Red Area)
The upper part of the box.
Price commonly rejects here because this area acted as resistance previously.
When price enters this red zone inside the box, the indicator can show a Sell Zone label.
How Zone Size Is Set (Sensitivity %)
You can adjust how big the Buy/Sell zones are using the Sensitivity (%) input.
Lower % → Smaller zones → More precise signals
Higher % → Larger zones → Signals appear earlier and from farther away
Formula:
Zone Size = (Previous High − Previous Low) × (Sensitivity % ÷ 100)
This lets you customize how tight or how early your signals appear.
Inside-Box Only Logic
The indicator only works inside the previous session’s range.
If price breaks above the previous High → No sell signal
If price breaks below the previous Low → No buy signal
This avoids false signals during breakouts or trending markets.
Alerts
The indicator includes two alerts:
Buy Zone Alert → Triggers when price enters the Buy Zone
Sell Zone Alert → Triggers when price enters the Sell Zone
Just enable them in TradingView’s alert panel.
Vassago & Tesla Ex-Machina 197 45 21 [Hakan Yorganci]Vassago & Tesla Ex-Machina 197 45 21
"Any sufficiently advanced technology is indistinguishable from magic." — Arthur C. Clarke
🌑 The Genesis: Algorithmic Esotericism
This script is not merely a technical indicator; it is a digital artifact born from the convergence of Software Engineering and Hermetic Tradition.
As a developer and researcher dedicated to "Technomancy"—the study of applying esoteric logic to computational systems—I designed this algorithm using a custom, experimental programming environment I am currently developing. My goal was to move beyond standard, arbitrary financial inputs (like the default 200 SMA or 14 RSI) and instead derive parameters based on Universal Harmonics and Historical Archetypes.
This indicator, Ex-Machina, is the result of that transmutation. It applies ancient numeric precision to modern market chaos.
🔢 Decoding the Protocol: 197 - 45 - 21
Why these specific numbers? They were not chosen randomly; they were calculated through specific harmonic reductions to filter out market noise.
1. The Harmonic Trend (Tesla Protocol)
* The Logic: Standard analysis uses the 200-period Moving Average simply out of habit. However, applying Nikola Tesla’s 3-6-9 vibrational principles, the engine reduced the period to 197.
* The Numerology: 1+9+7 = 17 \rightarrow 1+7 = \mathbf{8}. In esoteric numerology, 8 represents infinite power, authority, and financial flow. This creates a baseline that aligns more organically with market accumulation than the static 200.
2. The Hidden Dip (Solomonic Sight)
* The Archetype: Based on the attributes of Vassago, the archetype of discovering "hidden things," the algorithm identified 45 as the precise threshold for a "Sniper Entry."
* The Function: Unlike the standard 30 RSI, this level identifies the exact moment a correction matures within a bullish trend—catching the dip before the crowd returns.
3. The Prophetic Vision
* The Logic: Using the Fibonacci Sequence, the indicator projects the support line 21 bars into the future.
* The Utility: This allows you to visualize where the support will be, granting you foresight before price action arrives.
⚖️ The Dual Mode Engine: Sealed vs. Living
Respecting the user's will, I have engineered this script as a Hybrid System. You can choose how the "spirit" of the code interacts with the market via the settings menu.
1. The Sealed Ritual (Default - Unchecked)
* Philosophy: "Trust in the Constants."
* Behavior: Strictly adheres to the 197 SMA and 45 RSI.
* Visual: Displays a Blue Trend Line.
* Best For: Traders who value stability, long-term trends, and the unyielding nature of harmonic mathematics.
2. The Living Spirit (Adaptive Mode - Checked)
* Philosophy: "As the market breathes, so does the code."
* Behavior:
* Transmutation: The trend line shifts from a Simple Moving Average (SMA) to an Exponential Moving Average (EMA 197) for faster reaction.
* Adaptive Volatility: The RSI entry level (45) becomes dynamic. It expands and contracts based on ATR (Average True Range). In high volatility, it demands a deeper dip to trigger a signal, protecting you from fake-outs.
* Visual: Displays a Fuchsia (Pink) Trend Line.
* Best For: Volatile markets (Crypto/Forex) and traders who want the algorithm to "sense" the fear and greed in the air.
⚙️ How to Trade
* Timeframe: Optimized for 4H (The Builder) and 1D (The Architect).
* The Signal: Wait for the "EX-MACHINA ENTRY" label. This signal manifests ONLY when:
* Price is holding above the 197 Harmonic Trend.
* Momentum crosses the Optimized Threshold (45 or Adaptive).
* Trend Strength is confirmed via ADX.
Author's Note:
I built this tool for those who understand that code is the modern spellbook. Use it wisely, risk responsibly, and let the harmonics guide your entries.
— Hakan Yorganci
Technomancer & Full Stack Developer
TrendForce X🔹 Indicator Overview
This indicator is built to give traders simple, reliable, and high-probability signals by combining three powerful concepts:
market structure, trend direction, and premium/discount zones.
It removes complexity and delivers clean BUY and SELL signals that align with the true flow of the market.
📌 Key Features
Accurate trend detection to stay aligned with market direction
Premium & Discount model to identify smart-money price zones
Automatic Market Structure analysis ( CHoCH & BOS )
BUY signals when price shifts bullishly from a discount area
SELL signals when price breaks structure bearish from a premium area
Clean, user-friendly visual signals
Works on any pair , market , or timeframe .
🟢 Buy Signal Logic
A BUY signal is generated when:
Price is in a discount zone
The market shows a bullish change of structure
This combination filters out weak setups and highlights strong upside reversals.
🔻 Sell Signal Logic
A SELL signal is triggered when:
Price is in a premium zone
The market forms a bearish break of structure
This helps catch high-probability downside moves with precision.
⚠️ Disclaimer
This indicator is a powerful tool, but no indicator guarantees 100% accuracy. Always practice proper risk management and confirm signals with your trading plan.
S&D Light+ Enhanced# S&D Light+ Enhanced - Supply & Demand Zone Trading Strategy
## 📊 Overview
**S&D Light+ Enhanced** is an advanced Supply and Demand zone identification and trading strategy that combines institutional order flow concepts with smart money techniques. This strategy automatically identifies high-probability reversal zones based on Break of Structure (BOS), momentum analysis, and first retest principles.
## 🎯 Key Features
### Smart Zone Detection
- **Automatic Supply & Demand Zone Identification** - Detects institutional zones where price is likely to react
- **Multi-Candle Momentum Analysis** - Validates zones with configurable momentum requirements
- **Break of Structure (BOS) Confirmation** - Ensures zones are created only after significant structure breaks
- **Quality Filters** - Minimum zone size and ATR-based filtering to eliminate weak zones
### Advanced Zone Management
- **Customizable Zone Display** - Choose between Geometric or Volume-Weighted midlines
- **First Retest Logic** - Option to trade only the first touch of each zone for higher probability setups
- **Zone Capacity Control** - Maintains a clean chart by limiting stored zones per type
- **Visual Zone Status** - Automatically marks consumed zones with faded midlines
### Risk Management
- **Dynamic Stop Loss** - Positioned beyond zone boundaries with adjustable buffer
- **Risk-Reward Ratio Control** - Customizable R:R for consistent risk management
- **Entry Spacing** - Minimum bars between signals prevents overtrading
- **Position Sizing** - Built-in percentage of equity allocation
## 🔧 How It Works
### Zone Creation Logic
**Supply Zones (Selling Pressure):**
1. Strong momentum downward movement (configurable body-to-range ratio)
2. Identified bullish base candle (where institutions accumulated shorts)
3. Break of Structure downward (price breaks below recent swing low)
4. Zone created at the base candle's high/low range
**Demand Zones (Buying Pressure):**
1. Strong momentum upward movement
2. Identified bearish base candle (where institutions accumulated longs)
3. Break of Structure upward (price breaks above recent swing high)
4. Zone created at the base candle's high/low range
### Entry Conditions
**Long Entry:**
- Price retests a demand zone (touches top of zone)
- Rejection confirmed (close above zone)
- Zone hasn't been used (if "first retest only" enabled)
- Minimum bars since last entry respected
**Short Entry:**
- Price retests a supply zone (touches bottom of zone)
- Rejection confirmed (close below zone)
- Zone hasn't been used (if "first retest only" enabled)
- Minimum bars since last entry respected
## ⚙️ Customizable Parameters
### Display Settings
- **Show Zones** - Toggle zone visualization on/off
- **Max Stored Zones** - Control number of active zones (1-50 per type)
- **Color Customization** - Adjust supply/demand colors and transparency
### Zone Quality Filters
- **Momentum Body Fraction** - Minimum body size for momentum candles (0.1-0.9)
- **Min Momentum Candles** - Number of consecutive momentum candles required (1-5)
- **Big Candle Body Fraction** - Alternative single-candle momentum threshold (0.5-0.95)
- **Min Zone Size %** - Minimum zone height as percentage of price (0.01-5.0%)
### BOS Configuration
- **Swing Length** - Lookback period for structure identification (3-20)
- **ATR Length** - Period for volatility measurement (1-50)
- **BOS Required Break** - ATR multiplier for valid structure break (0.1-3.0)
### Midline Options
- **None** - No midline displayed
- **Geometric** - Simple average of zone top/bottom
- **CenterVolume** - Volume-weighted center based on highest volume bar in window
### Risk Management
- **SL Buffer %** - Additional space beyond zone boundary (0-5%)
- **Take Profit RR** - Risk-reward ratio for target placement (0.5-10x)
### Entry Rules
- **Only 1st Retest per Zone** - Trade zones only once for higher quality
- **Min Bars Between Entries** - Prevent overtrading (1-20 bars)
## 📈 Recommended Settings
### Conservative (Lower Frequency, Higher Quality)
```
Momentum Body Fraction: 0.30
Min Momentum Candles: 2-3
BOS Required Break: 0.8-1.0
Min Zone Size: 0.15-0.20%
Only 1st Retest: Enabled
```
### Balanced (Default)
```
Momentum Body Fraction: 0.28
Min Momentum Candles: 2
BOS Required Break: 0.7
Min Zone Size: 0.12%
Only 1st Retest: Enabled
```
### Aggressive (Higher Frequency, More Signals)
```
Momentum Body Fraction: 0.20-0.25
Min Momentum Candles: 1-2
BOS Required Break: 0.4-0.5
Min Zone Size: 0.08-0.10%
Only 1st Retest: Disabled
```
## 🎨 Visual Elements
- **Red Boxes** - Supply zones (potential selling areas)
- **Green Boxes** - Demand zones (potential buying areas)
- **Dotted Midlines** - Center of each zone (fades when zone is used)
- **Debug Triangles** - Shows when zone creation conditions are met
- Red triangle down = Supply zone created
- Green triangle up = Demand zone created
## 📊 Best Practices
1. **Use on Higher Timeframes** - 1H, 4H, and Daily charts work best for institutional zones
2. **Combine with Trend** - Trade zones in direction of overall market structure
3. **Wait for Confirmation** - Don't enter immediately at zone touch; wait for rejection
4. **Adjust for Market Volatility** - Increase BOS multiplier in choppy markets
5. **Monitor Zone Quality** - Fresh zones typically have higher success rates
6. **Backtest Your Settings** - Optimize parameters for your specific market and timeframe
## ⚠️ Risk Disclaimer
This strategy is for educational and informational purposes only. Past performance does not guarantee future results. Always:
- Use proper position sizing
- Set appropriate stop losses
- Test thoroughly before live trading
- Consider market conditions and overall trend
- Never risk more than you can afford to lose
## 🔍 Data Window Information
The strategy provides real-time metrics visible in the data window:
- Supply Zones Count
- Demand Zones Count
- ATR Value
- Momentum Signals (Up/Down)
- BOS Signals (Up/Down)
## 📝 Version History
**v1.0 - Enhanced Edition**
- Improved BOS detection logic
- Extended base candle search range
- Added comprehensive input validation
- Enhanced visual feedback system
- Robust array bounds checking
- Debug signals for troubleshooting
## 💡 Tips for Optimization
- **Trending Markets**: Lower momentum requirements, tighter BOS filters
- **Ranging Markets**: Increase zone size minimum, enable first retest only
- **Volatile Assets**: Increase ATR multiplier and SL buffer
- **Lower Timeframes**: Reduce swing length, increase min bars between entries
- **Higher Timeframes**: Increase swing length, relax momentum requirements
---
**Created with focus on institutional order flow, smart money concepts, and practical risk management.**
*Happy Trading! 📈*
XAUUSD 1m SMC Zones (BOS + Flexible TP Modes + Trailing Runner)//@version=6
strategy("XAUUSD 1m SMC Zones (BOS + Flexible TP Modes + Trailing Runner)",
overlay = true,
initial_capital = 10000,
pyramiding = 10,
process_orders_on_close = true)
//━━━━━━━━━━━━━━━━━━━
// 1. INPUTS
//━━━━━━━━━━━━━━━━━━━
// TP / SL
tp1Pips = input.int(10, "TP1 (pips)", minval = 1)
fixedSLpips = input.int(50, "Fixed SL (pips)", minval = 5)
runnerRR = input.float(3.0, "Runner RR (TP2 = SL * RR)", step = 0.1, minval = 1.0)
// Daily risk
maxDailyLossPct = input.float(5.0, "Max daily loss % (stop trading)", step = 0.5)
maxDailyProfitPct = input.float(20.0, "Max daily profit % (stop trading)", step = 1.0)
// HTF S/R (1H)
htfTF = input.string("60", "HTF timeframe (minutes) for S/R block")
// Profit strategy (Option C)
profitStrategy = input.string("Minimal Risk | Full BE after TP1", "Profit Strategy", options = )
// Runner stop mode (your option 4)
runnerStopMode = input.string( "BE only", "Runner Stop Mode", options = )
// ATR trail settings (only used if ATR mode selected)
atrTrailLen = input.int(14, "ATR Length (trail)", minval = 1)
atrTrailMult = input.float(1.0, "ATR Multiplier (trail)", step = 0.1, minval = 0.1)
// Pip size (for XAUUSD: 1 pip = 0.10 if tick = 0.01)
pipSize = syminfo.mintick * 10.0
tp1Points = tp1Pips * pipSize
slPoints = fixedSLpips * pipSize
baseQty = input.float (1.0, "Base order size" , step = 0.01, minval = 0.01)
//━━━━━━━━━━━━━━━━━━━
// 2. DAILY RISK MANAGEMENT
//━━━━━━━━━━━━━━━━━━━
isNewDay = ta.change(time("D")) != 0
var float dayStartEquity = na
var bool dailyStopped = false
equityNow = strategy.initial_capital + strategy.netprofit
if isNewDay or na(dayStartEquity)
dayStartEquity := equityNow
dailyStopped := false
dailyPnL = equityNow - dayStartEquity
dailyPnLPct = dayStartEquity != 0 ? (dailyPnL / dayStartEquity) * 100.0 : 0.0
if not dailyStopped
if dailyPnLPct <= -maxDailyLossPct
dailyStopped := true
if dailyPnLPct >= maxDailyProfitPct
dailyStopped := true
canTradeToday = not dailyStopped
//━━━━━━━━━━━━━━━━━━━
// 3. 1H S/R ZONES (for direction block)
//━━━━━━━━━━━━━━━━━━━
htOpen = request.security(syminfo.tickerid, htfTF, open)
htHigh = request.security(syminfo.tickerid, htfTF, high)
htLow = request.security(syminfo.tickerid, htfTF, low)
htClose = request.security(syminfo.tickerid, htfTF, close)
// Engulf logic on HTF
htBullPrev = htClose > htOpen
htBearPrev = htClose < htOpen
htBearEngulf = htClose < htOpen and htBullPrev and htOpen >= htClose and htClose <= htOpen
htBullEngulf = htClose > htOpen and htBearPrev and htOpen <= htClose and htClose >= htOpen
// Liquidity sweep on HTF previous candle
htSweepHigh = htHigh > ta.highest(htHigh, 5)
htSweepLow = htLow < ta.lowest(htLow, 5)
// Store last HTF zones
var float htResHigh = na
var float htResLow = na
var float htSupHigh = na
var float htSupLow = na
if htBearEngulf and htSweepHigh
htResHigh := htHigh
htResLow := htLow
if htBullEngulf and htSweepLow
htSupHigh := htHigh
htSupLow := htLow
// Are we inside HTF zones?
inHtfRes = not na(htResHigh) and close <= htResHigh and close >= htResLow
inHtfSup = not na(htSupLow) and close >= htSupLow and close <= htSupHigh
// Block direction against HTF zones
longBlockedByZone = inHtfRes // no buys in HTF resistance
shortBlockedByZone = inHtfSup // no sells in HTF support
//━━━━━━━━━━━━━━━━━━━
// 4. 1m LOCAL ZONES (LIQUIDITY SWEEP + ENGULF + QUALITY SCORE)
//━━━━━━━━━━━━━━━━━━━
// 1m engulf patterns
bullPrev1 = close > open
bearPrev1 = close < open
bearEngulfNow = close < open and bullPrev1 and open >= close and close <= open
bullEngulfNow = close > open and bearPrev1 and open <= close and close >= open
// Liquidity sweep by previous candle on 1m
sweepHighPrev = high > ta.highest(high, 5)
sweepLowPrev = low < ta.lowest(low, 5)
// Local zone storage (one active support + one active resistance)
// Quality score: 1 = engulf only, 2 = engulf + sweep (we only trade ≥2)
var float supLow = na
var float supHigh = na
var int supQ = 0
var bool supUsed = false
var float resLow = na
var float resHigh = na
var int resQ = 0
var bool resUsed = false
// New resistance zone: previous bullish candle -> bear engulf
if bearEngulfNow
resLow := low
resHigh := high
resQ := sweepHighPrev ? 2 : 1
resUsed := false
// New support zone: previous bearish candle -> bull engulf
if bullEngulfNow
supLow := low
supHigh := high
supQ := sweepLowPrev ? 2 : 1
supUsed := false
// Raw "inside zone" detection
inSupRaw = not na(supLow) and close >= supLow and close <= supHigh
inResRaw = not na(resHigh) and close <= resHigh and close >= resLow
// QUALITY FILTER: only trade zones with quality ≥ 2 (engulf + sweep)
highQualitySup = supQ >= 2
highQualityRes = resQ >= 2
inSupZone = inSupRaw and highQualitySup and not supUsed
inResZone = inResRaw and highQualityRes and not resUsed
// Plot zones
plot(supLow, "Sup Low", color = color.new(color.lime, 60), style = plot.style_linebr)
plot(supHigh, "Sup High", color = color.new(color.lime, 60), style = plot.style_linebr)
plot(resLow, "Res Low", color = color.new(color.red, 60), style = plot.style_linebr)
plot(resHigh, "Res High", color = color.new(color.red, 60), style = plot.style_linebr)
//━━━━━━━━━━━━━━━━━━━
// 5. MODERATE BOS (3-BAR FRACTAL STRUCTURE)
//━━━━━━━━━━━━━━━━━━━
// 3-bar swing highs/lows
swHigh = high > high and high > high
swLow = low < low and low < low
var float lastSwingHigh = na
var float lastSwingLow = na
if swHigh
lastSwingHigh := high
if swLow
lastSwingLow := low
// BOS conditions
bosUp = not na(lastSwingHigh) and close > lastSwingHigh
bosDown = not na(lastSwingLow) and close < lastSwingLow
// Zone “arming” and BOS validation
var bool supArmed = false
var bool resArmed = false
var bool supBosOK = false
var bool resBosOK = false
// Arm zones when first touched
if inSupZone
supArmed := true
if inResZone
resArmed := true
// BOS after arming → zone becomes valid for entries
if supArmed and bosUp
supBosOK := true
if resArmed and bosDown
resBosOK := true
// Reset BOS flags when new zones are created
if bullEngulfNow
supArmed := false
supBosOK := false
if bearEngulfNow
resArmed := false
resBosOK := false
//━━━━━━━━━━━━━━━━━━━
// 6. ENTRY CONDITIONS (ZONE + BOS + RISK STATE)
//━━━━━━━━━━━━━━━━━━━
flatOrShort = strategy.position_size <= 0
flatOrLong = strategy.position_size >= 0
longSignal = canTradeToday and not longBlockedByZone and inSupZone and supBosOK and flatOrShort
shortSignal = canTradeToday and not shortBlockedByZone and inResZone and resBosOK and flatOrLong
//━━━━━━━━━━━━━━━━━━━
// 7. ORDER LOGIC – TWO PROFIT STRATEGIES
//━━━━━━━━━━━━━━━━━━━
// Common metrics
atrTrail = ta.atr(atrTrailLen)
// MINIMAL MODE: single trade, BE after TP1, optional trailing
// HYBRID MODE: two trades (Scalp @ TP1, Runner @ TP2)
// Persistent tracking
var float longEntry = na
var float longTP1 = na
var float longTP2 = na
var float longSL = na
var bool longBE = false
var float longRunEntry = na
var float longRunTP1 = na
var float longRunTP2 = na
var float longRunSL = na
var bool longRunBE = false
var float shortEntry = na
var float shortTP1 = na
var float shortTP2 = na
var float shortSL = na
var bool shortBE = false
var float shortRunEntry = na
var float shortRunTP1 = na
var float shortRunTP2 = na
var float shortRunSL = na
var bool shortRunBE = false
isMinimal = profitStrategy == "Minimal Risk | Full BE after TP1"
isHybrid = profitStrategy == "Hybrid | Scalp TP + Runner TP"
//━━━━━━━━━━ LONG ENTRIES ━━━━━━━━━━
if longSignal
if isMinimal
longEntry := close
longSL := longEntry - slPoints
longTP1 := longEntry + tp1Points
longTP2 := longEntry + slPoints * runnerRR
longBE := false
strategy.entry("Long", strategy.long)
supUsed := true
supArmed := false
supBosOK := false
else if isHybrid
longRunEntry := close
longRunSL := longRunEntry - slPoints
longRunTP1 := longRunEntry + tp1Points
longRunTP2 := longRunEntry + slPoints * runnerRR
longRunBE := false
// Two separate entries, each 50% of baseQty (for backtest)
strategy.entry("LongScalp", strategy.long, qty = baseQty * 0.5)
strategy.entry("LongRun", strategy.long, qty = baseQty * 0.5)
supUsed := true
supArmed := false
supBosOK := false
//━━━━━━━━━━ SHORT ENTRIES ━━━━━━━━━━
if shortSignal
if isMinimal
shortEntry := close
shortSL := shortEntry + slPoints
shortTP1 := shortEntry - tp1Points
shortTP2 := shortEntry - slPoints * runnerRR
shortBE := false
strategy.entry("Short", strategy.short)
resUsed := true
resArmed := false
resBosOK := false
else if isHybrid
shortRunEntry := close
shortRunSL := shortRunEntry + slPoints
shortRunTP1 := shortRunEntry - tp1Points
shortRunTP2 := shortRunEntry - slPoints * runnerRR
shortRunBE := false
strategy.entry("ShortScalp", strategy.short, qty = baseQty * 50)
strategy.entry("ShortRun", strategy.short, qty = baseQty * 50)
resUsed := true
resArmed := false
resBosOK := false
//━━━━━━━━━━━━━━━━━━━
// 8. EXIT LOGIC – MINIMAL MODE
//━━━━━━━━━━━━━━━━━━━
// LONG – Minimal Risk: 1 trade, BE after TP1, runner to TP2
if isMinimal and strategy.position_size > 0 and not na(longEntry)
// Move to BE once TP1 is touched
if not longBE and high >= longTP1
longBE := true
// Base SL: BE or initial SL
float dynLongSL = longBE ? longEntry : longSL
// Optional trailing after BE
if longBE
if runnerStopMode == "Structure trail" and not na(lastSwingLow) and lastSwingLow > longEntry
dynLongSL := math.max(dynLongSL, lastSwingLow)
if runnerStopMode == "ATR trail"
trailSL = close - atrTrailMult * atrTrail
dynLongSL := math.max(dynLongSL, trailSL)
strategy.exit("Long Exit", "Long", stop = dynLongSL, limit = longTP2)
// SHORT – Minimal Risk: 1 trade, BE after TP1, runner to TP2
if isMinimal and strategy.position_size < 0 and not na(shortEntry)
if not shortBE and low <= shortTP1
shortBE := true
float dynShortSL = shortBE ? shortEntry : shortSL
if shortBE
if runnerStopMode == "Structure trail" and not na(lastSwingHigh) and lastSwingHigh < shortEntry
dynShortSL := math.min(dynShortSL, lastSwingHigh)
if runnerStopMode == "ATR trail"
trailSLs = close + atrTrailMult * atrTrail
dynShortSL := math.min(dynShortSL, trailSLs)
strategy.exit("Short Exit", "Short", stop = dynShortSL, limit = shortTP2)
//━━━━━━━━━━━━━━━━━━━
// 9. EXIT LOGIC – HYBRID MODE
//━━━━━━━━━━━━━━━━━━━
// LONG – Hybrid: Scalp + Runner
if isHybrid
// Scalp leg: full TP at TP1
if strategy.opentrades > 0
strategy.exit("LScalp TP", "LongScalp", stop = longRunSL, limit = longRunTP1)
// Runner leg
if strategy.position_size > 0 and not na(longRunEntry)
if not longRunBE and high >= longRunTP1
longRunBE := true
float dynLongRunSL = longRunBE ? longRunEntry : longRunSL
if longRunBE
if runnerStopMode == "Structure trail" and not na(lastSwingLow) and lastSwingLow > longRunEntry
dynLongRunSL := math.max(dynLongRunSL, lastSwingLow)
if runnerStopMode == "ATR trail"
trailRunSL = close - atrTrailMult * atrTrail
dynLongRunSL := math.max(dynLongRunSL, trailRunSL)
strategy.exit("LRun TP", "LongRun", stop = dynLongRunSL, limit = longRunTP2)
// SHORT – Hybrid: Scalp + Runner
if isHybrid
if strategy.opentrades > 0
strategy.exit("SScalp TP", "ShortScalp", stop = shortRunSL, limit = shortRunTP1)
if strategy.position_size < 0 and not na(shortRunEntry)
if not shortRunBE and low <= shortRunTP1
shortRunBE := true
float dynShortRunSL = shortRunBE ? shortRunEntry : shortRunSL
if shortRunBE
if runnerStopMode == "Structure trail" and not na(lastSwingHigh) and lastSwingHigh < shortRunEntry
dynShortRunSL := math.min(dynShortRunSL, lastSwingHigh)
if runnerStopMode == "ATR trail"
trailRunSLs = close + atrTrailMult * atrTrail
dynShortRunSL := math.min(dynShortRunSL, trailRunSLs)
strategy.exit("SRun TP", "ShortRun", stop = dynShortRunSL, limit = shortRunTP2)
//━━━━━━━━━━━━━━━━━━━
// 10. RESET STATE WHEN FLAT
//━━━━━━━━━━━━━━━━━━━
if strategy.position_size == 0
longEntry := na
shortEntry := na
longBE := false
shortBE := false
longRunEntry := na
shortRunEntry := na
longRunBE := false
shortRunBE := false
//━━━━━━━━━━━━━━━━━━━
// 11. VISUAL ENTRY MARKERS
//━━━━━━━━━━━━━━━━━━━
plotshape(longSignal, title = "Long Signal", style = shape.triangleup,
location = location.belowbar, color = color.lime, size = size.tiny, text = "L")
plotshape(shortSignal, title = "Short Signal", style = shape.triangledown,
location = location.abovebar, color = color.red, size = size.tiny, text = "S")
TRADE ORBIT – Ichimoku Top/Bottom Strategy)TRADE ORBIT – Ichimoku Top/Bottom Strategy
Trade when trends start, continue, and end
✅ BUY TRADE (LONG)
Entry
Enter a BUY only if all of the following happen:
1️⃣ Green Big Dot appears below candle
→ Bottom confirmed (trend reversal)
2️⃣ Price above the Cloud
→ Market is in bullish zone
3️⃣ Tenkan above Kijun
→ Short-term trend supports direction
4️⃣ Chikou Span above price
→ Confirmation from momentum
📍 Best entry:
➡ On the candle after the big green dot if conditions remain valid
Stop Loss
Place SL below:
⭕ Bottom candle low
or
⭕ Senkou Span B (Cloud bottom)
Profit Management
Stay in the trade as long as you keep seeing small green dots
→ Trend still continuing 🟢🟢🟢
📌 Exit long when:
A big red dot appears (Top detected)
or
Price closes below the cloud
or
Tenkan crosses below Kijun
❌ SELL TRADE (SHORT)
Entry
Enter SELL only if:
1️⃣ Big Red Dot appears above candle
→ Top confirmed
2️⃣ Price below Cloud
→ Bearish market
3️⃣ Tenkan below Kijun
→ Trend aligned
4️⃣ Chikou Span below price
→ Momentum confirmed
📍 Enter on next bar if signals remain valid
Stop Loss
Place SL above:
⭕ Top candle high
or
⭕ Senkou Span B (Cloud upper band)
Exit
Stay in short while small red dots continue 🔴🔴🔴
Close when:
A big green bottom dot appears
or
Price closes above cloud
or
Tenkan crosses above Kijun
Opening Range ICT 3-Bar FVG + Engulfing Signals (Overlay)Beta testing
open range break out and retest of FVG.
Still working on making it accurate so bear with me
AI ALGO [Ganesh]Core Strategy Components\
1. EMA (Exponential Moving Average) SystemThe strategy uses three EMAs to identify trend direction:
EMA 48 (longer-term trend)
EMA 2 (short-term momentum)
EMA 21 (medium-term trend)
How it works:
Bullish trend: When price is above EMA 21 (green cloud)
Bearish trend: When price is below EMA 21 (red cloud)
EMA Cloud: The area between EMA 2 and EMA 48/21 provides visual trend confirmation
Optional higher timeframe (HTF) analysis for multi-timeframe confirmation
2. DEMA ATR (Double EMA + Average True Range)
This is a dynamic support/resistance indicator that adapts to volatility:Components:
DEMA (Double Exponential Moving Average): Smooths price action with less lag
ATR Bands: Creates upper and lower bands based on volatility (ATR × 1.7 factor)
Signal Generation:
Green line: Uptrend (DEMA ATR rising)
Red line: Downtrend (DEMA ATR falling)
Acts as a trailing stop-loss level that adjusts with market volatility
3. Smart Trail System (Fibonacci-Based)
An advanced trailing stop system using modified true range calculations:Key Features:
Calculates true range using Wilder's smoothing method
Creates Fibonacci retracement levels (61.8%, 78.6%, 88.6%) from the trail line
Adaptive stop-loss: Adjusts based on ATR factor (4.2) and smoothing (4)
Trend Detection:
Bullish: Price > Trailing line (blue zones)
Bearish: Price < Trailing line (red zones)
The Fibonacci zones show potential support/resistance areas
4. ZigZag Indicator Identifies significant swing highs and lows:
Length parameter: 13 (sensitivity control)
Labels: Higher Highs (HH), Lower Lows (LL), etc.
Helps identify trend reversals and key pivot points
5. Support & Resistance Levels
Strength-based S/R: Identifies horizontal support/resistance zones
Zone width: Adjustable percentage-based zones
High/Low zones: Marks significant price levels
Trading LogicEntry Conditions (Implied)The strategy likely enters trades when:Long Entry:
Price crosses above DEMA ATR (green)
Price is above EMA 21 (bullish EMA cloud)
Smart Trail confirms uptrend
Price bounces from Fibonacci support levels
Short Entry:
Price crosses below DEMA ATR (red)
Price is below EMA 21 (bearish EMA cloud)
Smart Trail confirms downtrend
Price rejects from Fibonacci resistance levels
Exit/Stop-Loss Strategy
Trailing stops: Using Smart Trail Fibonacci levels
Dynamic stops: DEMA ATR line acts as a moving stop-loss
Risk management: Position sizing at 50% of equity per trade
Dashboard Features1. Weekly Performance Table
Tracks trades per day of the week
Shows win/loss statistics
Calculates win rate percentage
2. Monthly Performance Table
Monthly P&L breakdown
Yearly performance summary
Color-coded returns (green = profit, red = loss)
Strategy Parameters
Initial Capital: $5,000
Commission: 0.02% per trade
Position Size: 50% of equity
Pyramiding: Disabled (no adding to positions)
Calculation: On bar close (not tick-by-tick)
Visual Elements
EMA clouds: Green (bullish) / Red (bearish)
DEMA ATR line: Dynamic support/resistance
Smart Trail zones: Fibonacci-based colored bands
ZigZag lines: Swing high/low connections
S/R zones: Horizontal support/resistance areas
Strategy Philosophy
This is a trend-following strategy with dynamic risk management that:
Uses multiple timeframes for confirmation
Adapts to volatility through ATR-based indicators
Provides clear visual cues for trend direction
Includes comprehensive performance tracking
Combines momentum (EMAs) with volatility (ATR) for robust signals
The strategy works best in trending markets and uses the Fibonacci trail system to maximize profits while protecting against reversals with adaptive stop-losses.
EMA750 & VWAP Cross IndicatorA trend-following indicator that identifies high-probability entry signals based on EMA750 and VWAP crossovers.
How it works:
Monitors price position relative to EMA750 (trend filter)
Generates LONG signals when price crosses above VWAP while above EMA750
Generates SHORT signals when price crosses below VWAP while below EMA750
Highlights the FIRST signal after each EMA cross (yellow markers)
Automatically calculates targets based on recent swing highs/lows
Stop loss set at EMA750 level
Features:
✓ Visual target and stop loss levels
✓ Customizable alerts for first and all signals
✓ Real-time status dashboard
✓ Swing point detection for target calculation
✓ Signal tracking until opposite VWAP cross
Best for: Swing trading and trend-following strategies on higher timeframes.
Trade Setup A+ [v.8 Fixed Lines]🚀 Trade Setup A+ : Liquidity Hunter System (XAUUSD)
This indicator is an "All-in-One" trading system designed specifically for XAUUSD (Gold) Scalping and Swing trading. It combines Smart Money Concepts (SMC) with Price Action to identify high-probability setups by tracking liquidity pools and institutional order blocks.
💎 Key Features (v.8 Updated):
Auto Order Blocks (Clean View):
Automatically detects and draws Bullish (Green) and Bearish (Red) Order Blocks based on swing points.
Clean Look: Limits display to the last 5 active zones to keep the chart clutter-free.
Liquidity Levels (Fixed Lines):
D-High / D-Low: Thin lines representing Previous Day’s High & Low.
W-High / W-Low: Thick lines representing Previous Week’s High & Low (Strong Support/Resistance).
Dual Entry Signals:
Method 1 (Sniper): Shows a Diamond Icon (💎) when price touches an Order Block zone (Reversal setup).
Method 2 (Follow): Shows a Triangle Arrow (🔼/🔽) when price crosses EMA 14 with trend confirmation from EMA 49.
Macro Time Zones:
Highlights high-volume trading sessions (Asia, London, NY) on the background to identify "Killzones".
📈 How to Trade:
BUY Signal: Look for a Green Diamond (Touch OB) or Green Triangle (Price > EMA 14 & 49).
SELL Signal: Look for a Red Diamond (Touch OB) or Orange Triangle (Price < EMA 14).
Best Time: Trade when signals align with highlighted Macro Time zones.
⚠️ Disclaimer: This tool is for educational purposes only. Always use proper risk management.
🚀 Trade Setup A+ : ระบบเทรดล่าสภาพคล่อง (สำหรับทองคำ)
อินดิเคเตอร์ชุดนี้ออกแบบมาเพื่อเทรด XAUUSD (ทองคำ) โดยเฉพาะ ผสมผสานเทคนิค SMC (Smart Money Concepts) และ Price Action เพื่อหาจุดเข้าที่มีความแม่นยำสูง (High Probability) โดยเน้นการดักจับสภาพคล่องของรายใหญ่ค่ะ
💎 ฟีเจอร์หลัก (อัปเดตล่าสุด v.8):
Auto Order Blocks (แบบคลีน):
สร้างกล่องโซนซื้อขาย (Supply/Demand) ให้อัตโนมัติ (สีเขียว = โซน Buy, สีแดง = โซน Sell)
Clean Look: ระบบจะโชว์เฉพาะ 5 กล่องล่าสุดเท่านั้น เพื่อไม่ให้กราฟรกสายตา
Liquidity Levels (เส้นแนวรับต้าน):
D-High / D-Low: เส้นบาง แสดงราคาสูงสุด/ต่ำสุดของ "เมื่อวาน" (Day)
W-High / W-Low: เส้นหนา แสดงราคาสูงสุด/ต่ำสุดของ "สัปดาห์ที่แล้ว" (Week) ซึ่งเป็นแนวรับต้านที่แข็งแกร่ง
สัญญาณเข้าเทรด 2 แบบ (Dual Signals):
วิธีที่ 1 (Sniper): แสดงรูป เพชร (💎) เมื่อราคาวิ่งชนขอบกล่อง Order Block (ดักจุดกลับตัวปลายไส้)
วิธีที่ 2 (Follow Trend): แสดงรูป ลูกศรสามเหลี่ยม (🔼/🔽) เมื่อราคาตัดเส้น EMA ตามเงื่อนไข (Buy ต้องยืนเหนือ EMA 14 และ 49)
Macro Time (ช่วงเวลาทำเงิน):
ระบายสีพื้นหลังบอกช่วงเวลาที่ตลาดวิ่งแรง (Asia, London, NY) เพื่อให้โฟกัสถูกจุด
📈 วิธีใช้งาน:
ขา BUY: รอสัญญาณ เพชรสีเขียว (ชนกล่องรับ) หรือ ลูกศรเขียว (ตามเทรนด์)
ขา SELL: รอสัญญาณ เพชรสีแดง (ชนกล่องต้าน) หรือ ลูกศรส้ม (ตามเทรนด์)
คำแนะนำ: ประสิทธิภาพสูงสุดเมื่อสัญญาณเกิดในช่วงเวลา Macro Time (แถบสีพื้นหลัง)
Regime Filter [BigBeluga] Modified by Claude to move tableThis is a copy of Regime Filter that has been modified by Anthropic's Claude to move the overlay table to different positions.
MTF OB & FVG detector w/ Alerts v2# MTF Order Blocks & Fair Value Gaps Detector with Alerts v2
## Overview
This indicator combines **Multi-Timeframe Order Blocks (OB)** and **Fair Value Gaps (FVG)** detection with integrated bounce alerts. It displays Order Blocks and Fair Value Gaps across multiple timeframes simultaneously and generates real-time alerts when price bounces from these critical zones.
## Key Features
### 🎯 Multi-Timeframe Order Blocks Detection
- **Volumetric Analysis**: Each Order Block displays total volume and dominant side percentage
- **Multiple Timeframes**: Supports 1min, 3min, 5min, 15min, and 60min timeframes
- **Smart Combining**: Automatically merges overlapping Order Blocks from different timeframes into powerful confluence zones
- **Dynamic Extension**: Order Blocks extend until broken, providing clear visual guidance
- **Volume Distribution**: Shows bullish vs bearish volume breakdown with percentage
### 📊 Fair Value Gaps (FVG) Detection
- **Lightweight Processing**: Works on current chart timeframe only for optimal performance
- **Volume Metrics**: Displays FVG volume and dominant side percentage
- **Mitigation Tracking**: Automatically tracks when FVGs are filled or broken
- **Customizable Mitigation Source**: Choose between close price or high/low wicks
### 🔔 Comprehensive Alert System
- **Bounce Alerts**: Get notified when price bounces from OB or FVG zones
- **New Formation Alerts**: Alerts when new Order Blocks or Fair Value Gaps form
- **Combined Zone Alerts**: Special alerts when multiple Order Blocks merge into strong confluence zones
- **Customizable Thresholds**: Set minimum number of combined OBs required for strong zone alerts
### 🎨 Visual Customization
- **Inverted Color Schemes**: Optional inverted colors for both OB and FVG
- OB: Choose between traditional (Bullish=Blue, Bearish=Red) or inverted (Bullish=Red, Bearish=Blue)
- FVG: Choose between Bullish=Orange/Bearish=Aqua or inverted
- **Clean Labels**: Shows timeframe, zone type, volume, and dominant percentage
- **Combined Tags**: Optional labels for merged zones
- **Adjustable Extension**: Control how far zones extend into the future
## How It Works
### Order Blocks
Order Blocks identify institutional trading zones where large players have placed significant orders. The indicator:
1. Detects swing highs/lows using configurable swing length
2. Identifies the last opposing candle before a strong move
3. Analyzes volume distribution (bullish vs bearish)
4. Tracks zone validity until price breaks through
5. Combines overlapping zones from multiple timeframes
### Fair Value Gaps
Fair Value Gaps represent price imbalances that often get filled. The indicator:
1. Identifies 3-candle patterns with gaps between candles
2. Filters gaps by size percentile to show only significant ones
3. Calculates volume distribution within the gap
4. Tracks mitigation when price returns to fill the gap
5. Extends gaps dynamically until filled
### Bounce Detection
The indicator detects bounces using a two-step process:
1. **Touch Phase**: Tracks when price enters a zone (touchedInside flag)
2. **Bounce Phase**: Confirms bounce when price exits the zone in the expected direction
- Bullish zones: Price closes above top after touching inside
- Bearish zones: Price closes below bottom after touching inside
## Settings Guide
### General Configuration
- **Show Historic Zones**: Display invalidated/broken zones
- **Zone Invalidation**: Choose between wick or close for break detection
- **Combine Overlapping Order Blocks**: Merge OBs from different timeframes
- **Swing Length**: Controls sensitivity (smaller = more OBs, larger = fewer OBs)
- **Zone Count**: Choose from High/Medium/Low/One per timeframe
- **Invert Colors OB**: Swap bullish/bearish color scheme
### Alert Settings
- **Enable Alerts**: Master switch for all alerts
- **Alert on Bullish/Bearish Bounce**: Choose which bounce directions to monitor
- **Alert on New OB Formation**: Get notified when new Order Blocks form
- **Alert on Combined OBs**: Alerts for strong confluence zones
- **Min OBs for Strong Zone Alert**: Threshold for combined zone alerts (default: 2)
### Fair Value Gaps
- **Show Fair Value Gaps**: Toggle FVG display
- **FVG Mitigation Source**: Choose close or high/low for mitigation detection
- **Bullish/Bearish FVG**: Enable/disable each type
- **Invert FVG Colors**: Swap FVG color scheme
### Multi-Timeframe
- **Show Lower Timeframes**: Display OBs from timeframes lower than chart
- **Individual Timeframe Toggles**: Enable/disable 1min, 3min, 5min, 15min, 60min
### Style
- **Text Color**: Customize label text color
- **Extend Zones**: Set extension length in bars (default: 40)
- **Show Tag**: Display combined indicator in merged zone labels
## Usage Tips
### For Day Trading
- Enable 1min, 3min, and 5min timeframes
- Use "High" zone count for more trading opportunities
- Watch for bounces from combined zones (highest probability)
### For Swing Trading
- Enable 15min, 60min, and higher timeframes
- Use "Medium" or "Low" zone count for major zones only
- Focus on combined zones with 3+ timeframes
### For Scalping
- Use current timeframe only (disable MTF)
- Enable both OB and FVG
- Set up alerts for quick bounce notifications
### Alert Setup
1. Click "Create Alert" in TradingView
2. Choose from available alert conditions:
- **Bullish Bounce (OB/FVG)**: Long entry opportunities
- **Bearish Bounce (OB/FVG)**: Short entry opportunities
- **New OB Formation**: Early zone identification
- **Strong Combined Zone**: High-probability confluence areas
3. Set alert frequency to "Once Per Bar Close" to avoid false signals
## Technical Details
### Performance Optimizations
- Maximum 100 boxes/labels for efficient rendering
- Lightweight FVG processing on current timeframe only
- Dynamic memory management with array size limits
- Selective rendering of active zones only
### Calculations
- **ATR Multiplier**: Zones exceeding 3.5x ATR are filtered out
- **Volume Percentage**: `max(bullVol, bearVol) / totalVolume × 100`
- **FVG Size Filter**: Uses 100th percentile of last 1000 gaps
- **Overlap Detection**: Uses intersection/union ratio for combining zones
## Credits & License
This indicator combines and enhances concepts from:
- "Volumized Order Blocks" methodology
- "Volumatic Fair Value Gaps" approach
**License**: Mozilla Public License 2.0 (MPL-2.0)
## Disclaimer
This indicator is provided for **educational and informational purposes only**. Trading involves substantial risk of loss and is not suitable for every investor. Past performance is not indicative of future results. Always do your own research and consult with a licensed financial advisor before making trading decisions.
## Version History
**v2 (Current)**
- Combined OB and FVG into single indicator
- Added comprehensive alert system
- Improved performance with lightweight FVG processing
- Enhanced bounce detection with touch-inside logic
- Added volume metrics to zone labels
- Implemented dynamic zone extension until broken
- Added combined zone detection with configurable thresholds
---
### Chart Examples
The indicator displays:
- **Red Zones** (Inverted): Bullish Order Blocks / Bearish FVGs
- **Blue Zones** (Inverted): Bearish Order Blocks / Bullish FVGs
- **Orange Zones** (Inverted): Bullish Fair Value Gaps
- **Aqua Zones** (Inverted): Bearish Fair Value Gaps
Each zone shows:
- Timeframe label (e.g., "5m", "15m", "1H")
- Zone type (OB or FVG)
- Total volume in millions (e.g., "12.5M")
- Dominant side percentage (e.g., "85%")
**Example Label**: ` 5m & 15m OB 45.2M (78%)`
- Combined zone from 5min and 15min timeframes
- Order Block type
- 45.2 million total volume
- 78% volume on dominant side
---
## Support & Updates
For issues, suggestions, or questions, please leave a comment on the indicator page.
**Author**: © rasukaru666
**Compatible with**: TradingView Pine Script v6
Smart Money Concepts [Kodexius]Smart Money Concepts is a comprehensive price action framework designed to visually organize many of the core ideas behind “smart money” and price action trading concepts. It brings together market structure, order blocks, imbalances, liquidity, premium/discount zones, swing failures and higher timeframe context into a single, coherent overlay on your chart. Instead of jumping between multiple tools, the script aims to give you a structured map of where price has been interacting with liquidity and value, and how that structure is evolving in real time.
All major components are modular and highly configurable, so you can keep only what you care about: from a minimal market structure view to a fully loaded institutional style dashboard. The focus of the script is visual clarity and context highlighting reaction zones, swept levels and structural transitions while letting you decide how to interpret and use that information in your own workflow.
🔹 Features
🔸 Market Structure Engine (CHoCH & BoS)
Change of Character (CHoCH) and Break of Structure (BoS) are complementary smart money market structure concepts that describe two different phases in how a trend evolves.
CHoCH refers to the first meaningful shift in structure that suggests the prevailing trend may be weakening and a new directional bias could be emerging (for example, a market that has been making higher highs and higher lows starts to form lower highs and lower lows).
BoS , on the other hand, is typically used as a confirmation of trend continuation: price extends beyond a key swing high in an uptrend or a key swing low in a downtrend, reinforcing that the existing directional structure remains intact.
Put simply, CHoCH is associated with a potential reversal in market character, while BoS underscores the continuation and extension of the current trend.
Script automatically detects and labels market structure shifts using swing based logic (Change of Character / CHoCH and Break of Structure / BoS).
Bullish Change of Character :
Bearish Change of Character :
Bullish Break of Structure :
Bearish Break of Structure :
Differentiates between first structural flips and continuation breaks, helping you see when the dominant direction is potentially shifting or being reinforced.
Draws structure reference lines at key swing levels so you can visually anchor where those events occurred on the chart.
🔸 Order Blocks with Volumetric Insight
Identifies bullish and bearish order blocks from the most relevant impulsive moves after structure breaks.
Bullish Order Block :
Bearish Order Block :
Each order block is drawn as a zone, with an internal split between “bullish” and “bearish” pressure, based on recent price/volume behavior inside that move.
Displays relative volume and simple volume percentages for the most recent blocks, giving an at a glance sense of which zones carried more activity.
Fully configurable display depth so you can limit the chart to only the last few highest priority blocks.
🔸 Breaker Blocks & Mitigation Tracking
Tracks when previously identified order blocks fail and converts them into breaker blocks, visually marking a change in how price is interacting with that zone.
Bullish Breaker Block :
Bearish Breaker Block :
Separate handling of bullish and bearish breakers with clear color differentiation.
Includes optional “mitigation” logic using either wick or close to determine when a block is considered broken or mitigated.
Breaker blocks are updated and removed dynamically as price trades through them, keeping the chart focused on current, active zones.
🔸 Fair Value Gaps (FVGs), Volume Imbalances & Opening Gaps
Detects imbalances in multiple modes: classic Fair Value Gaps (FVG), volume style imbalances (VI), and opening gaps (OG), with separate options for bullish and bearish sides.
Each imbalance is drawn as a zone, with a mid line reference to quickly locate the “mean” of the gap.
Optional sentiment overlay inside the gap, visually splitting the zone into bullish and bearish “gauge” segments based on recent bar behavior on a chosen timeframe.
Configurable mitigation method (wick or close) and maximum number of visible gaps, so the chart remains readable even on very active instruments.
For both order blocks and FVGs, internal sentiment boxes indicate how bullish or bearish the underlying move or gap has been, using proportional visual splits rather than raw numbers.
This gives an immediate visual cue as to whether a zone was driven more by upward or downward pressure.
🔸 Liquidity Sweeps, EQH/EQL and Volume Filter
Automatically detects areas where liquidity may be resting via swing based pivot highs and lows.
Sellside Liquidity Sweep :
Buyside Liquidity Sweep :
Highlights equal highs (EQH) and equal lows (EQL) when sweeps occur, marking where price probed above/below prior liquidity and then rejected.
Optional volume filter to ignore low volume swings and focus on more meaningful liquidity zones.
Maintains compact arrays of recent liquidity points, clearing them as price decisively trades through or sweeps them.
🔸 Premium / Discount Zones & Equilibrium
Projects premium and discount bands based on a dynamically measured range, offering a simple view of where price is trading relative to that range.
Draws separate Premium and Discount boxes with optional price labels for quick orientation.
Optional mid line (equilibrium) to visualize the “50%” of the current range, often used as a reference for balanced versus extended price.
Zones auto update as the underlying range evolves, with logic to prevent stale levels from cluttering the chart.
In addition script can also project previous session key levels such as open, high, low and equilibrium for a selected timeframe, with optional daily, weekly and monthly references. These levels are extended forward and automatically refreshed as new periods unfold, so you always have clear structural anchors from recent sessions without manually redrawing prior session lines.
🔸 Trend Line/Channel Framework
Detects swing based trendline pivots (uptrends and downtrends) with configurable sensitivity and choice of high/low or close as the source.
Draws trendline “channels” around the detected pivots, shading the area between upper and lower bounds to visualize directional bias zones.
Dynamically updates and deletes prior lines to keep the most recent structure visible, rather than leaving outdated lines on the chart.
Includes basic trendline break detection to highlight when price closes beyond a key diagonal boundary.
🔸 Swing Failure Pattern (SFP) Detector
Scans a chosen timeframe for Swing Failure Patterns (SFPs) using a defined lookback window and minimum separation between events.
Differentiates bullish and bearish SFPs, drawing labels and horizontal reference lines at the swept high or low.
Includes a “lock” period option to pause new SFP detection for a set number of bars after an event, helping to avoid clustering multiple signals in the same area.
🔸 HTF Candle Projection Panel
Projects higher timeframe candles to the right of current price as a compact visual panel, giving you context of higher timeframe structure without switching charts.
Supports both classic candles and Heikin Ashi style, with configurable size, spacing and number of projected candles.
Optionally uses higher timeframe OHLC or blends current timeframe behavior into the projection, depending on how strictly you want to reference HTF data.
Can display projected HTF open/high/low lines and price labels, helping you see where current price is trading within or relative to the larger candle.
🔸 Alert Framework
Built-in alerts for key structural events:
- Market structure changes (BoS, CHoCH) in both directions.
- New order blocks and breaker blocks forming, breaking or being approached.
- New FVGs forming and price moving into or near the latest imbalance zones.
- Liquidity sweeps (highs/lows), EQH/EQL touches and simple liquidity events.
- Price entering premium or discount bands.
- Trendline detection and basic trendline break events.
- Swing Failure Patterns and movements toward previous key levels.
Designed so that you can selectively enable only the conditions you care about and convert them into alerts that match your personal workflow.
Smart Money Concepts is built to function as a unified “map” of structure, liquidity and imbalance on the chart. Each module can be toggled and tuned, allowing you to build anything from a minimal structure only overlay to a fully featured institutional style view of how price interacts with key zones over time.
🔸 Originality & Usefulness
This script is built around a shared price action state, so market structure, order blocks, imbalances and liquidity are not drawn as independent overlays but as parts of the same engine.
At the core is a custom market structure module for CHoCH and BoS. Instead of only comparing the last swing high/low, it maintains an internal directional state and swing history so it can:
treat the first structural flip after an established leg as a Change of Character (CHoCH), and
treat subsequent breaks in the same direction as continuation Breaks of Structure (BoS).
Each event is anchored on the actual swing that defined it, and each swing can only trigger once, reducing repeated labels on minor fluctuations and making structural transitions easier to follow.
Order blocks are implemented with a volumetric profile, not just static rectangles. After a relevant structure event, the script identifies the impulsive move and:
draws the order block as a zone, internally split into “bullish” and “bearish” segments based on how price and volume behaved inside that move,
assigns each block its own traded volume and a relative percentage weight compared to other recent blocks.
The result is an at a glance view of which blocks carried more participation and whether the internal push was dominated by buying or selling, while older or lower priority blocks are automatically pruned to keep the chart clean.
Imbalance handling supports multiple gap types (Fair Value Gaps, volume style imbalances and opening gaps). Each gap is drawn as a zone with a midline, and can optionally be filled with a sentiment gauge: the gap is divided into bullish and bearish portions using recent bar behavior on a chosen timeframe, then updated as new data comes in. This makes it easy to see whether a gap remains one sided or is gradually being balanced out.
Liquidity and Swing Failure Patterns are treated as filtered events. Liquidity pools are detected from swing highs/lows and can pass through a dedicated volume filter: candidate levels are compared to a dynamic volume baseline, and low participation spikes are discarded. Only swings that traded with meaningful activity are tracked as potential liquidity, which are then monitored for sweeps, EQH/EQL tags and subsequent rejection. Once a level is decisively traded through or swept, its internal state is updated so the display does not accumulate stale points.
The SFP module operates on a user defined higher timeframe with a configurable lookback and lock period, so each Swing Failure Pattern is separated in time from the previous one. Combined with the liquidity volume filter, this produces a smaller set of structurally significant SFPs instead of dense clusters around the same area.
Higher timeframe context is further supported by the HTF candle projection panel, which projects compact candles to the right of price. These synthetic candles can reference strict HTF OHLC or blend current lower timeframe behavior into their bodies and wicks, so you can see where current action sits inside the larger structure without switching charts.
All major modules feed into a structured alert layer: market structure events (CHoCH/BoS), new and broken order blocks and breaker blocks, new and approached FVGs, liquidity sweeps, SFPs, moves into premium/discount, trendline events and movements toward key levels. Each alert corresponds to a well defined structural or liquidity update on the chart, rather than a black box trade call.
🔹 How to Use
You can adapt the script to very different workflows, but a common way to use it is:
1. Start from higher timeframe bias
Use the Market Structure Engine (CHoCH & BoS) and the HTF Candle Projection Panel to understand the dominant direction on your reference timeframe (e.g. H4 / Daily).
Combine this with the Premium/Discount Zones and previous session levels (daily/weekly/monthly open, high, low, equilibrium) to see whether price is trading in a relatively extended (premium) or discounted area of the current range.
2. Map your key reaction zones
Turn on Order Blocks with Volumetric Insight and Breaker Blocks to highlight the most relevant impulsive origin zones after structure breaks.
Focus primarily on the most recent blocks (configurable depth) and note their internal volume/sentiment split to prioritize which zones are likely to matter most.
Optionally add Fair Value Gaps / Volume Imbalances / Opening Gaps and, if desired, activate the internal sentiment gauge to see whether the imbalance was driven more by bullish or bearish pressure.
3. Watch how liquidity interacts with those zones
Enable Liquidity Sweeps & EQH/EQL to see where price has run resting liquidity above highs or below lows.
Combine this with the Swing Failure Pattern (SFP) detector to isolate moments where liquidity is taken and immediately rejected back into structure.
You can use the volume filter to ignore small, low volume swings and focus on more meaningful liquidity events.
4. Refine timing with local structure & trendlines
On your execution timeframe, use CHoCH/BoS labels, Trend Line/Channel Framework and SFPs inside or around your chosen OB/FVG zones.
Trendline channels give you diagonal context (where price is riding or breaking a local structure), while CHoCH/BoS marks when that micro structure starts to flip.
5. Use alerts as a monitoring layer, not as standalone signals
Set alerts for the events that matter to you:
– new or broken order blocks / breaker blocks,
– price approaching the latest OB/FVG or breaker zone,
– liquidity sweeps and SFPs,
– fresh CHoCH/BoS events in your key direction,
– entries into premium/discount bands or HTF projection levels.
Treat these alerts as prompts to look at the chart, not as automatic entry/exit rules. The script is designed as a decision support and mapping tool; trade execution, risk management and confirmation remain up to your own plan and discretion.
This tool is intended as a mapping and decision support aid, not as an automated trading system, and should be combined with your own analysis and risk management.
NOVA Breakout Signals v2.5I’m excited to share that version 2.5 includes meaningful upgrades and has backtested well on XAU/USD. The indicator plots LONG/SHORT labels only (no orders, SL/TP) and can shade the background by trend. Signals are de-duplicated with a cooldown and are raised on confirmed bars.
You can also use TradingView Alerts to get early notifications the moment price touches a breakout, without waiting for a candle close—addressing a key limitation of earlier versions.
Notes
• Indicator only (no automated trading).
• Use Alerts to route signals to your preferred workflow.
• For research/education; past performance ≠ future results.
Made by Kenny Nguyen (Vietnam).






















