HAP Fear BreakerWVF Stochastic Signal + Ganga Dip
(Önder Edition – FIXED 2)
(22, 14, 3, 14, 60, 30)
WVF Stochastic Signal + Ganga Dip is a multi-layer confirmation indicator
designed to detect high-quality dip and reversal opportunities after
fear expansion and momentum compression.
This system does NOT rely on stochastic crossovers alone.
It evaluates signal quality through fear, momentum, trend structure,
and background trend visualization.
CORE COMPONENTS
• WVF (Williams VIX Fix) → detects fear expansion and panic zones
• Stochastic (14, 3) → identifies momentum shifts through QUALITY crossovers
• ADX (14) → measures trend strength
• +DI / –DI separation → confirms directional dominance
• Background trend coloring → visualizes active trend structure
SIGNAL LOGIC (STEP BY STEP)
1. WVF identifies elevated fear or post-fear compression zones
2. Stochastic produces a QUALITY crossover (not every crossover is valid)
3. ADX structure is analyzed:
• ADX stabilizes or strengthens
• +DI and –DI begin to separate (directional clarity)
4. Background color confirms trend direction
5. Only when all layers align, the signal is validated
QUALITY STOCHASTIC CROSSOVER (VERY IMPORTANT)
• Crossovers inside extreme zones (60 / 30) are prioritized
• Flat, low-energy crosses are ignored
• Stochastic direction must agree with DI dominance
ADX & DI CONFIRMATION
• Rising or stable ADX = structure forming
• +DI > –DI = bullish dominance
• –DI > +DI = bearish dominance
• DI compression = no signal (intentionally filtered)
BACKGROUND TREND COLORING
• Bullish background → +DI dominance with supportive ADX
• Bearish background → –DI dominance with supportive ADX
• Neutral / no color → trend not confirmed (signals filtered)
GANGA DIP LOGIC
Ganga Dip highlights probability zones where:
• Fear was present (WVF)
• Momentum starts to shift (Stochastic)
• Trend structure separates (ADX + DI)
• Trend direction is visually confirmed by background color
WHAT IT FILTERS OUT
• Random stochastic crosses
• Fake dips during strong trends
• Momentum without structure
• Structure without momentum
• Signals against background trend
BEST USE CASES
• Dip-buying after fear spikes
• Early recovery after market stress
• Momentum continuation after compression
IMPORTANT NOTICE
WVF Stochastic Signal + Ganga Dip is NOT a standalone buy/sell system.
It is a confirmation-based structure indicator.
• Stochastic crossover without ADX & DI separation → ignored
• Trend not confirmed by background → ignored
• Fear without structure → ignored
Only full alignment produces signals.
Analisis Tren
orb by codeUltimate Opening Range Break (ORB) Tool
Shows the future NY and ASIA sessions with a countdown timer.
Toggle past sessions, future session markers, midlines, countdown boxes, and all labels for the opening range breakout.
Takes the high, low, midline of the 15 min candle 1 hour into the sessions.
Customize every color element — including fills, highs, lows, and midlines for both NY and Asia sessions.
Built for traders who want a clean, flexible, and powerful ORB workflow.
Multi-Filter Momentum Candle Strategy (Non-Repaint)Momentum Candle Precision Scanner is a price action–based indicator designed to detect high-quality momentum candles after consolidation phases.
It combines candle structure analysis, volume confirmation, ATR control, consolidation filtering, and higher timeframe EMA trend alignment to reduce false signals.
⚠️ This indicator is NOT standalone and MUST be used together with an external RSI indicator.
RSI is intentionally not included in the script to allow traders full flexibility in choosing their preferred RSI settings.
🎯 Purpose
This indicator helps traders:
Identify valid impulsive candles, not just large candles
Avoid entries during sideways or consolidation zones
Trade in alignment with the higher timeframe trend
Improve entry selectivity through a scoring-based validation system
⚙️ Core Logic Explained
1️⃣ Momentum Candle Structure
Candle body must fall within a predefined pip range
Minimum body-to-range ratio is required
Upper and lower wick percentages are strictly limited
This helps filter out candles caused by noise or fake breakouts.
2️⃣ Volume Confirmation
Current volume must be above its moving average
Ensures momentum is supported by market participation
3️⃣ ATR-Based Control
Candle body size is capped using ATR
Prevents signals during abnormal volatility spikes (e.g., news events)
4️⃣ Consolidation Filter (Box & Core Zone)
A dynamic price box is built from recent candles
Signals are ignored inside the core consolidation zone
Focuses entries on breakout or expansion phases
5️⃣ Scoring System
Each candle is evaluated using a weighted score:
Candle body quality
Wick structure
Volume strength
ATR validity
Position relative to consolidation
Signals are triggered only when the minimum score threshold is met.
📈 Trend Filtering (EMA HTF & Current TF)
Higher Timeframe EMA defines the main trend direction
Current Timeframe EMA reflects local momentum
Options available:
Trade with HTF trend only
Or allow counter-trend signals (user controlled)
🚨 Alert Feature
Alerts can trigger minutes before candle close
Designed for traders who wait for near-close confirmation
⚠️ IMPORTANT – RSI IS REQUIRED
This indicator does NOT include RSI internally.
📌 You must add an external RSI indicator and use it as:
Additional momentum confirmation
Overbought / oversold filter
Trend strength validation
👉 General RSI usage example:
Buy setups → RSI above 50 and strengthening
Sell setups → RSI below 50 and weakening
(Users are free to adapt RSI settings to their own strategy.)
🛠️ Recommended Usage
Best suited for M5
Optimized for XAUUSD
Can be adapted to other instruments by adjusting pip size
📌 Disclaimer
This indicator is a technical analysis tool, not a trading system.
No guarantees of profitability. Always apply proper risk management, RSI confirmation, and personal backtesting before live trading.
Simple Trend Context [Wall_Journey]Simple Trend Context MA: Dynamic Market Bias Visualizer
Overview The Simple Trend Context MA is a visual-oriented trading tool designed to identify the prevailing market trend at a glance. By utilizing two Simple Moving Averages (Fast and Slow), this script provides a clear "Context" for your trades, helping you avoid trading against the primary momentum.
How it Works The indicator calculates two key SMA periods:
Fast MA (Default: 20) : Captures short-term momentum.
Slow MA (Default: 50) : Represents the broader trend direction.
Key Features
Dynamic Background Shading: The chart background automatically changes color based on the trend. A Green background indicates a Bullish trend (Fast MA > Slow MA), while a Red background indicates a Bearish trend (Fast MA < Slow MA).
Real-time Trend Label: A dynamic label appears on the most recent bar, explicitly stating the current market context (Bullish, Bearish, or Neutral).
Highly Customizable: You can easily adjust the MA lengths to suit your specific strategy, whether you are scalping or swing trading.
Why use this? Many traders fail because they lose sight of the "Big Picture." This script ensures that the trend context is always visible, serving as a powerful filter for your entry signals.
HTF Long/Short 1hr This is one of my latest algo it helps with your long and short bias for GC on the 1HR HTF
Institutional Scanner FixHere is a professional Pine Script (Version 5) for TradingView. It is optimized to precisely identify the "Absorption" and "Reversal" signals.
What this script does for you:
Auto-Fibonacci: It automatically calculates the 0.618 Golden Ratio of the last 50 candles.
Volume Delta Check: It calculates the delta (buy volume minus sell volume) per candle.
Signal: It marks a "Buy Absorption" when the price touches the 0.618 level but the delta turns positive (green arrow).
The Volume Multiplier is your scanner's "sensitivity knob." It determines how much more volume compared to the average must flow for a signal to be classified as institutionally relevant. Here is the bank standard for calibration, based on your trading strategy and the asset's liquidity:
The rule-of-thumb values for the multiplier
Strategy Type | Recommended Value | Logic
Conservative (High Conviction) | 2.0 to 2.5 | Only extreme volume spikes are marked. Good for swing trades on a daily basis.
Standard (Day Trading) | 1.5 to 1.8 | The "sweet spot." Marks volume that is approximately 50-80% above average.
Aggressive (Scalping) | 1.2 to 1.3 | Reacts very quickly to small order flow changes but produces more "noise" (false signals).
FranPL - Psychological LevelsIt automatically draws horizontal lines fixed to the right-hand price scale at every price level ending in 00, 20, 50, and 80. These levels are commonly watched by traders as areas where price often reacts, pauses, or reverses.
The lines remain anchored to price, updating dynamically as the market moves, and stay aligned with the price scale rather than drifting with time. The indicator works across all markets and timeframes.
FranPL is fully customizable through the settings, allowing the user to adjust the line color, thickness, and length, making it easy to match personal chart preferences while keeping the chart clean and uncluttered.
Overall, FranPL provides a clear, consistent visual framework for identifying important psychological levels to support entries, exits, and risk management.
Weekly EMA Squeeze (Bullish + Bearish)Purpose
The Weekly EMA Squeeze indicator identifies periods where price is compressing tightly around a cluster of weekly EMAs and then flags when that compression resolves with directional bias. It is designed to surface high-timeframe inflection points where trends are most likely to begin or meaningfully change.
This indicator operates entirely on weekly data, even when viewed on lower timeframes.
________________________________________
Core Components
1. Weekly EMA Cluster
• Uses three weekly EMAs (fast / mid / slow)
• Compression is defined by:
o Tight EMA spread
o Reduced weekly volatility (ATR contraction)
• Represents balance and indecision at a higher timeframe
2. Bullish Weekly EMA Squeeze
Triggered when:
• EMAs are tightly compressed
• Price is holding above or within the EMA cluster
• EMA slopes flatten or turn upward (optional filter)
• Optional requirement: weekly close above EMA cluster
Displayed as:
• Green upward triangles
• Green vertical shaded band marking the squeeze event window
3. Bearish Weekly EMA Squeeze
Triggered when:
• EMAs are tightly compressed
• Price is holding below or within the EMA cluster
• EMA slopes flatten or turn downward (optional filter)
• Optional requirement: weekly close below EMA cluster
Displayed as:
• Red downward triangles
• Red vertical shaded band marking the squeeze event window
4. Vertical Shaded Event Bands
• Each squeeze event (bull or bear) is visually marked with a vertical shaded region
• Shading appears on every qualifying event, including consecutive ones
• Purpose: clearly identify when the market entered a compressed, directional decision state
________________________________________
What the Indicator Is Signaling
• Compression + directional bias, not immediate breakouts
• Transition points between:
o Range → trend
o Trend → reversal
o Trend → re-acceleration after consolidation
This indicator does not attempt to predict magnitude — it identifies timing and regime change risk.
________________________________________
How to Use It
Best used for:
• High-timeframe bias setting
• Filtering lower-timeframe signals
• Identifying when to stop fading price
• Recognizing when volatility expansion is likely
Typical interpretations:
• Bullish squeeze → bias shifts upward; favor long exposure
• Bearish squeeze → bias shifts downward; favor defensive or short exposure
• Multiple squeezes in same direction → trend reinforcement
• Rapid bull ↔ bear flips → higher-timeframe indecision
________________________________________
What It Is Not
• Not an entry trigger by itself
• Not a momentum oscillator
• Not a replacement for breakout confirmation
This indicator answers:
“Is the weekly market coiling, and in which direction is pressure building?”
Enhanced ATR SupertrendEnhanced ATR Supertrend - Mathematically Sound Trend Following Indicator
OVERVIEW
This is a premium version of the classic Supertrend indicator, built with mathematical rigor and enhanced features for serious traders. Unlike basic implementations, this version offers proper band trailing logic, adaptive volatility modes, and multiple ATR calculation methods.
HOW IT WORKS
The Enhanced ATR Supertrend calculates dynamic support and resistance bands based on the Average True Range (ATR). The core principle is simple but powerful:
ATR Calculation: Measures market volatility using true range (the greatest of: high-low, high-previous close, or low-previous close)
Band Construction: Creates upper and lower bands by adding/subtracting ATR × Multiplier from the HL2 (high+low average)
Trailing Logic:
Upper band can ONLY move down or stay flat (never up) during downtrends
Lower band can ONLY move up or stay flat (never down) during uptrends
This prevents premature trend reversals and whipsaws
Trend Determination:
BULLISH when price closes above the upper band
BEARISH when price closes below the lower band
Line colour changes reflect current trend state
WHY IT'S BETTER
Proper Mathematics: Correct band trailing prevents the "flickering" seen in poorly coded versions
Adaptive Volatility: Optional mode adjusts multiplier based on current vs average volatility - tightens in chaos, widens in calm markets
Multiple ATR Methods: Choose between RMA (default), SMA, EMA, or WMA smoothing
Clean Visual Design: Professional presentation with optional dashboard showing real-time metrics
OSCILLATOR MODE - SPOTTING DOUBLE TOPS/BOTTOMS
When used as an oscillator in the lower pane (remove overlay), the Supertrend's trend changes can reveal powerful reversal patterns:
Double Bottoms: When the indicator flips bullish twice at similar price levels, it often signals strong support and potential reversal zones
Double Tops: When the indicator flips bearish twice at similar levels, it identifies resistance and potential breakdown zones
The step-like visualization makes these patterns easier to spot than traditional price action
Weekly Breakout Confirm + RS vs BTC + VolumePurpose
The Weekly Breakout Confirmation indicator validates whether price has structurally exited a prior weekly range and whether that breakout is supported by volume expansion and relative strength vs BTC.
It is a regime confirmation tool, designed to separate real breakouts from false ones.
________________________________________
Core Components
1. Weekly Donchian Channel
• Upper band (green): prior weekly range high
• Lower band (red): prior weekly range low
• Calculated on weekly data with no repainting
These levels define the structural range the market must escape to enter a new regime.
________________________________________
2. Weekly Breakout (W BO)
Triggered when:
• Weekly close breaks above the upper Donchian band
• Volume confirms expansion
• Optional filter: relative strength vs BTC is rising
Displayed as:
• Bullish breakout marker
• Green structure line remains on chart as reference
________________________________________
3. Weekly Breakdown (W BD)
Triggered when:
• Weekly close breaks below the lower Donchian band
• Volume confirms expansion
• Optional filter: relative strength vs BTC is weakening
Displayed as:
• Bearish breakdown marker
• Red structure line remains on chart as reference
________________________________________
4. Relative Strength vs BTC
• Measures asset performance relative to BTC on a weekly basis
• Helps identify:
o True altcoin leadership
o False breakouts driven only by BTC beta
• Optional requirement for breakout validation
________________________________________
5. Volume Confirmation
• Weekly volume must exceed a moving average threshold
• Filters out low-participation breakouts
• Ensures institutional-grade participation
________________________________________
What the Indicator Is Signaling
• Confirmed regime transitions
• Entry into:
o Sustained trends
o Distribution phases
o Structural breakdowns
Once a breakout is confirmed:
• The prior range is invalidated
• The green/red line becomes support/resistance reference, not a trigger
________________________________________
How to Use It
Best used for:
• Determining whether the market is trending or ranging
• Confirming whether weekly EMA squeezes are actionable
• Managing exposure duration and risk tolerance
Interpretation framework:
• W BO + rising RS + volume → trend acceptance
• W BO without RS → BTC-driven move (lower confidence)
• No recent W BO / W BD → consolidation regime
• W BD → risk-off, defensive posture
Macro FVG with Quarter Theory & CE AlertsStarting with Python, target, starting with script now, but I made this FvVG identifier. It will. Create the favorite group as it. Occurs. Just moving up it would be green, if it's moving down it would be red and if it's mitigated but turn dark black.
TQ Silver / Gold (Weekly Macro)This indicator tracks the Silver / Gold ratio on a weekly basis to determine whether silver is leading gold (risk appetite returning inside metals) or gold is leading silver (a more defensive precious-metals posture).
Within the TQ Weekly Macro Framework, this indicator is designed to be used after confirming the broader macro environment using TQ Gold Trend (Weekly Macro), TQ Gold / DXY (Weekly Macro), and TQ Gold / SPY (Weekly Macro).
Why Silver / Gold matters
>When Silver / Gold rises, silver is outperforming gold — often associated with reflation, growth expectations, or broad risk appetite within precious metals.
>When Silver / Gold falls, gold is outperforming silver — often associated with defense, uncertainty, or tighter financial conditions.
>This ratio is not a timing tool — it is a regime and leadership indicator within the metals complex.
How it works (regime rules)
Using weekly data:
Compute Silver ÷ Gold
Apply a 30-week SMA
Regime definitions:
Bull: Ratio above a rising 30-week SMA (silver leading)
Bear: Ratio below a falling 30-week SMA (gold leading)
Neutral: Transition / range
A clear label marks the current regime.
How to use it in your system
Use after confirming:
TQ Gold Trend (Weekly Macro)
TQ Gold / DXY (Weekly Macro)
TQ Gold / SPY (Weekly Macro)
> If Silver / Gold is Bull, metals participation is broadening and silver often has more upside torque.
> If Silver / Gold is Bear, gold leadership is defensive and silver exposure may underperform.
> Neutral often signals rotation or consolidation.
Best timeframe
Designed for weekly macro regime analysis.
TQ Gold / SPY (Weekly Macro)What this indicator does
This indicator tracks the Gold/SPY ratio on a weekly basis to show whether gold is outperforming U.S. equities (risk assets). It helps you determine if the market is favoring hard money / defensive leadership vs risk-on equity leadership.
Within the TQ Weekly Macro Framework, this indicator is intended to be used after confirming gold’s primary trend using TQ Gold Trend (Weekly Macro) and its monetary backdrop using TQ Gold / DXY (Weekly Macro).
Why Gold/SPY matters
Gold can rise during equity booms and during equity stress.
The Gold/SPY ratio tells you which asset class is winning in relative terms.
Rising Gold/SPY often signals defensive leadership, shifting macro preferences, or risk repricing, especially when aligned with TQ Gold Trend (Weekly Macro).
How it works (regime rules)
Using weekly data:
Compute Gold ÷ SPY
Apply a 30-week SMA
Regime definitions:
Bull: Ratio above a rising 30-week SMA (gold leading equities)
Bear: Ratio below a falling 30-week SMA (equities leading gold)
Neutral: Transition / range
A clear label marks the current regime.
How to use it in your system
Use after TQ Gold Trend (Weekly Macro) and TQ Gold / DXY (Weekly Macro).
> If Gold/SPY is Bull, gold is leading risk assets — metals tend to behave stronger and more “macro-relevant.”
> If Gold/SPY is Bear, equities are winning — gold moves may be less dominant.
> Neutral usually means rotation or consolidation.
Best timeframe
Designed for weekly macro regime analysis, not short-term trading.
TQ Gold / DXY (Weekly Macro)What this indicator does
This indicator tracks the relative performance of gold versus the U.S. dollar using the Gold/DXY ratio. It helps determine whether gold’s strength is real (monetary) or merely nominal.
Why Gold/DXY matters
Gold rising with a rising dollar is not a strong signal.
Gold rising against a weakening dollar signals monetary outperformance.
This ratio filters out dollar noise and focuses on true purchasing-power strength.
How it works
The indicator calculates Gold ÷ DXY using weekly data.
A 30-week SMA is applied to the ratio.
Regimes are defined as:
Bull: Ratio above a rising 30-week SMA (gold beating the dollar)
Bear: Ratio below a falling 30-week SMA
Neutral: Transition or range-bound periods
A clear on-chart label shows the current regime.
How to use it
Use after confirming Gold Trend is Bull.
When Gold/DXY is Bull, gold has a true monetary tailwind.
When Gold/DXY is Bear, gold rallies are often fragile or dollar-driven.
Neutral readings signal consolidation or regime change.
Best timeframe
Designed for weekly charts and macro analysis.
Not intended for short-term trading signals.
Weekly macro ratio indicator comparing gold vs SPY 30 SMAWhat this indicator does
This indicator tracks the Gold/SPY ratio on a weekly basis to show whether gold is outperforming U.S. equities (risk assets). It helps you determine if the market is favoring hard money / defensive leadership vs risk-on equity leadership.
Why Gold/SPY matters
Gold can rise during equity booms and during equity stress.
The Gold/SPY ratio tells you which asset class is winning in relative terms.
Rising Gold/SPY often signals defensive leadership, shifting macro preferences, or risk repricing.
How it works (regime rules)
Using weekly data:
Compute Gold ÷ SPY
Apply a 30-week SMA
Regime definitions:
Bull: Ratio above a rising 30-week SMA (gold leading equities)
Bear: Ratio below a falling 30-week SMA (equities leading gold)
Neutral: Transition/range
A clear label marks the current regime.
How to use it in your system
Use after Pane 1 (Gold Trend) and Pane 2 (Gold/DXY).
If Gold/SPY is Bull, gold is leading risk assets — metals tend to behave stronger and more “macro-relevant.”
If Gold/SPY is Bear, equities are winning — gold moves may be less dominant.
Neutral usually means rotation or consolidation.
Best timeframe
Designed for weekly macro regime analysis, not short-term trading.
Weekly macro trend indicator for gold using a 30-week SMAWhat this indicator does
This indicator identifies the macro trend regime of gold using a simple, time-tested framework: the weekly price of gold relative to its 30-week simple moving average.
It is designed to answer one question only:
Is gold currently in a monetary uptrend?
How it works
The indicator uses weekly data and applies a 30-week SMA regime filter:
Bullish (Monetary Uptrend):
Gold price is above a rising 30-week SMA.
Bearish (Monetary Downtrend):
Gold price is below a falling 30-week SMA.
Neutral (Transition):
All other conditions (range-bound or early trend change).
A clear on-chart label displays the current regime.
How to use it
Use this as the first filter before analyzing silver, miners, or relative-strength ratios.
When gold is Bull, precious metals deserve attention.
When gold is Bear, most precious-metal trades lose their edge.
When gold is Neutral, patience is usually rewarded.
Best timeframe
This indicator is designed for weekly charts and macro-level decision-making.
It is not intended for day trading or short-term signals.
Who this is for:
Investors and traders focused on macro trends
Those treating gold as a monetary asset, not a short-term trade
Anyone looking for a clean, objective regime filter.
Gold And Silver Macro Dashboard A weekly, macro-focused dashboard for precious metals that tracks gold’s trend plus three key relative-strength ratios: Gold/DXY, Gold/SPY, and Silver/Gold. Uses a 30-week SMA regime filter to label each series as Bull / Neutral / Bear and provides a quick “full picture” read.
What this indicator does
This dashboard helps you read the big picture for precious metals using a simple regime framework (weekly + 30-week SMA). It combines four signals into one view:
Gold (XAUUSD) — establishes the core precious-metals trend
Gold / DXY — shows whether gold is outperforming the U.S. dollar
Gold / SPY — shows whether gold is outperforming U.S. equities (risk assets)
Silver / Gold — shows whether risk appetite is returning inside metals (silver leadership)
How it works (simple rules)
Each item is classified using the same weekly regime logic:
Bull: price/ratio is above a rising 30-week SMA
Bear: price/ratio is below a falling 30-week SMA
Neutral: everything else (transition/range)
How to use it (30-second weekly scan)
Start with Gold: if Gold is Bull, metals have a tailwind.
Confirm with Gold/DXY: Bull means gold is beating fiat.
Confirm with Gold/SPY: Bull means gold is beating risk assets.
Use Silver/Gold to size aggressiveness: Bull implies reflation/confidence and often stronger silver participation.
Best timeframe
Designed for Weekly charts. The script can force weekly calculations, so it remains consistent even if you view other timeframes.
Customization
Change tickers if your preferred feed differs (OANDA spot vs futures vs ETFs).
Toggle the plotted lines on/off and keep only the dashboard table if you want a cleaner screen.
Important note
This is a macro regime tool for orientation and context. It is not meant to time entries/exits on lower timeframes.
Default symbols are:
Gold: OANDA:XAUUSD
Silver: OANDA:XAGUSD
Dollar Index: TVC:DXY
SPY: AMEX:SPY
Core Rule: Gold tells you WHEN metals matter. Ratios tell you WHY and HOW aggressive to be.
Bull across all four = strongest PM regime. Mixed readings = transition. Gold Bull + Silver/Gold Bear = defensive gold-led phase.
ICT Algo: Sweep + MSS + High Prob FVG/IFVGThis script is a comprehensive execution tool based on Inner Circle Trader (ICT) concepts, specifically designed to identify high-probability entries by combining Liquidity Sweeps, Market Structure Shifts (MSS), and Fair Value Gaps (FVG/IFVG).
Unlike standard FVG indicators that highlight every gap on the chart, this "Algo" version filters for gaps that occur specifically after a liquidity purge and a shift in structure, ensuring you are only looking at setups with institutional backing.
How It Works
The script follows a strict 3-step validation process before plotting a signal:
Liquidity Sweep (The Context): The script tracks Higher Timeframe (HTF) levels including Previous Day High/Low, Weekly High/Low, and Monthly High/Low. A setup is only considered valid if price has recently "swept" one of these levels, indicating a hunt for liquidity.
Market Structure Shift (The Confirmation): Once a sweep occurs, the script looks for a displacement in the opposite direction. It identifies a "Pivot High/Low" (customizable length) and waits for a candle body to close beyond it (MSS).
Filtered Entry (The Trigger): * FVG: Plots a standard Fair Value Gap if it forms within a "Deep Value" zone (Discount for longs, Premium for shorts).
IFVG (Inversion FVG): Highlights failed FVGs that have been reclaimed by price to act as support or resistance.
Key Features
Multi-Timeframe Liquidity Filters: Automatically plots PDH/L, PWH/L, PMH/L, and PYH/L. You can toggle which levels act as your sweep triggers.
Deep Value Logic: The script uses built-in logic to ensure Bullish FVGs are only highlighted when price is below a key liquidity level (Discount), and Bearish FVGs when price is above (Premium).
Dynamic Box Management: To keep your chart clean, boxes for FVGs and IFVGs are automatically shortened ("cut") once they are mitigated by price.
Inversion Logic: Includes a specialized toggle for Inversion Fair Value Gaps, allowing you to trade "failed" gaps that flip their polarity.
Settings & Customization
Entry Setup Bias: Choose to see only Bullish, only Bearish, or Both setups.
MSS Pivot Length: Adjust how "sensitive" the Market Structure Shift detection is. A higher number requires a more significant swing to be broken.
Sweep Lookback: Defines how many bars back the script looks for a liquidity sweep to remain "active" for a setup.
Include Opens: Optional toggle to include Previous Day/Week/Month Opens as liquidity points.
Usage Tips
The Golden Setup: Look for a sweep of a Previous Day High, followed by a Bearish MSS, and an entry at the Red FVG box.
Risk Management: This indicator is designed for entry identification. Always use stop losses (usually placed above/below the candle that created the FVG or the MSS swing point).
Timeframes: Best used on execution timeframes (1m, 5m, 15m) while the script handles the HTF levels automatically.
Disclaimer: This script is an educational tool and does not constitute financial advice. Trading involves significant risk. Past performance of a strategy does not guarantee future results.
Credits: Concepts based on the teachings of Michael J. Huddleston (ICT).
Smart Wedge Pattern [The_lurker]🔺 Smart Wedge Pattern نموذج الوتد الذكي
Advanced & Intelligent Wedge Detection Engine
This is not a traditional indicator that simply draws wedge lines — it is a comprehensive intelligent engine (system) for detecting and analyzing wedge patterns (Rising & Falling Wedge) based on price geometry, market context, and statistical quality of the pattern.
This indicator was designed to address the biggest problems in common wedge indicators:
❌ Too many false patterns
❌ Ignoring prior trend
❌ No real quality assessment for patterns
A comprehensive intelligent system that combines:
Adaptive algorithm that self-calibrates automatically according to market conditions
7 strict validation layers that filter out weak patterns and keep only the highest quality
Quality scoring system that evaluates each pattern from 0 to 100
3D visualization that makes patterns visually clear in an exceptional way
Smart targets based on Fibonacci ratios with real-time achievement tracking
The Result:
➡️ Fewer patterns
➡️ Cleaner, more accurate and reliable signals
➡️ Higher quality
➡️ Real practical use
═════════════════════════════════════════════════════════════
🎯 What Are Wedge Patterns?
1- Falling Wedge — Bullish Reversal Pattern
The falling wedge forms when price moves in a converging downward channel — meaning both the upper resistance line and the lower support line are declining, but the support line declines at a less steep angle, gradually narrowing the channel.
Why does the bullish breakout occur?
Declining highs show continuous selling pressure
But rising lows (P2 < P4) reveal that buyers are entering at higher levels
Convergence indicates decreasing bearish momentum
At a certain point, buying pressure overcomes and the breakout occurs
2- Rising Wedge — Bearish Reversal Pattern
The rising wedge is the exact opposite of the falling wedge — a converging upward channel where both lines rise, but the resistance line rises at a less steep angle.
Why does the bearish breakout occur?
Rising lows show continuous buying pressure
But declining highs (P2 > P4) reveal that sellers are entering at lower levels
Convergence indicates decreasing bullish momentum
At a certain point, selling pressure overcomes and the breakout occurs
═════════════════════════════════════════════════════════════
🧠 Adaptive Pivot System — The Heart of the Smart Indicator
The Problem with Traditional Indicators
Traditional indicators use a fixed value for pivot detection (like 5 bars left and 5 bars right). This means:
In quiet markets → Many delayed signals
In volatile markets → Few missed signals
No adaptation to the nature of each market or timeframe
The Solution: Smart Adaptation Algorithm
The indicator calculates optimal pivot sensitivity on each bar using 5 weighted factors:
Final Score = (Volatility_Score × 0.30) + (Trend_Score × 0.25) +
(Stability_Score × 0.20) + (Percentile_Context × 0.15) +
(Range_Score × 0.10)
Factor Weight How It's Calculated Why It's Important
Volatility Score 30% ATR(10) / ATR(50) Detects sudden changes in volatility
Trend Score 25% ADX(14) / 50 Trending markets need different sensitivity
Stability Score 20% StdDev(ATR) / Mean(ATR) Measures volatility consistency
Percentile Context 15% ATR / Percentile(ATR, 50) Places volatility in historical context
Range Score 10% Current_Range / Average_Range Detects unusual bars
The Result: The indicator uses low sensitivity (fewer, more important pivots) in quiet markets, and high sensitivity (more pivots, faster response) in volatile markets (more accurate pivots = correct geometric patterns).
═════════════════════════════════════════════════════════════
✅ Seven Validation Layers — Why This Indicator Is Different
Every detected pattern passes through 7 strict tests before being displayed:
1- Geometric Structure Validation
Validates:
P1 precedes P2 precedes P3 precedes P4 chronologically
Distance between each two points ≥ minimum threshold
Pattern width (P1→P4) within allowed range
Highs and lows order is correct for the wedge type
2- True Convergence Check
A true wedge must show convergence:
├── Gap at P4 < Gap at P1
├── Convergence ratio = End_Gap / Start_Gap
└── Ratio must be < defined convergence threshold (default 75%)
3- Slope Validation
For Falling Wedge:
├── Resistance line slope < 0 (declining)
├── Support line slope < 0 (declining)
└── Resistance slope < Support slope (convergence)
For Rising Wedge:
├── Resistance line slope > 0 (rising)
├── Support line slope > 0 (rising)
└── Support slope > Resistance slope (convergence)
4- Prior Trend Filter
Reversal patterns need a prior trend to reverse from:
├── Measures price movement during a defined period before P1
├── Normalizes movement using ATR for fair comparison
├── Falling wedge requires prior downtrend
└── Rising wedge requires prior uptrend
5- Channel Respect
Normal mode (close check):
└── Every close between P1 and P4 must be within wedge boundaries
Strict mode (high/low check):
├── Every high must be below resistance line (+ tolerance)
└── Every low must be above support line (- tolerance)
6- Post-P4 Validation
After the fourth point forms:
├── For falling wedge: Price doesn't break support or drop below P4
└── For rising wedge: Price doesn't break resistance or rise above P4
7- Quality Scoring System
Quality = (Convergence_Score × 0.30) + (Slope_Score × 0.25) +
(Width_Score × 0.20) + (Trend_Score × 0.15) +
(Height_Score × 0.10)
├── Convergence Score: More convergence = higher quality
├── Slope Score: Consistency of upper and lower line slopes
├── Width Score: Patterns with 40-100 bar width are ideal
├── Trend Score: Prior trend strength
└── Height Score: Pattern height relative to ATR
═════════════════════════════════════════════════════════════
✅ Pattern Lifecycle Management
The indicator doesn't just draw and disappear — it follows the complete pattern:
Pattern detection
Post-fourth point monitoring
Breakout confirmation
Target calculation
Target achievement tracking
Success or cancellation marking
❌ Pattern is automatically cancelled if:
Breakout fails
Channel is broken in reverse direction
Waiting period exceeded
═════════════════════════════════════════════════════════════
✅ Smart Targets + Success Level
After breakout:
Target is calculated based on pattern height
3 target modes:
Conservative (0.618)
Balanced (1.0)
Aggressive (1.618)
Independent Success level to measure move strength before target
═════════════════════════════════════════════════════════════
🎨 Advanced Visual Display (3D Visualization)
Three-dimensional pattern representation
Visual depth reflecting pattern size
3D target zone
Dynamic colors upon target achievement
🎨 The purpose of 3D is not decoration
But reading the pattern visually with speed and clarity
═════════════════════════════════════════════════════════════
⚙️ Key Features
✅ Automatic wedge detection
✅ Smart filtering reduces false signals
✅ Real quality assessment for each pattern
✅ Realistic and customizable targets
✅ Full support for Rising & Falling Wedge
✅ Works on all markets and timeframes
✅ Professional design and high performance
═════════════════════════════════════════════════════════════
📊 Usage Scenarios
🟢 Scalping
Timeframes: 1–15 minutes
Quality ≥ 60
Conservative targets
🔵 Day Trading
Timeframes: 15m–1h
Quality ≥ 50
Balanced targets
🟣 Swing Trading
Timeframes: 4h–Daily
Quality ≥ 40
Strict channel
Aggressive targets
🟠 Cryptocurrencies
Strict convergence
Strict channel
Quality ≥ 65
═════════════════════════════════════════════════════════════
🔔 Alerts
Falling wedge breakout ⇒ Buy
Rising wedge breakout ⇒ Sell
Any wedge breakout
═════════════════════════════════════════════════════════════
⚠️ Disclaimer
This indicator is for educational and analytical purposes only. It does not represent financial, investment, or trading advice. Use it in conjunction with your own strategy and risk management. Neither TradingView nor the developer is responsible for any financial decisions or losses.
═════════════════════════════════════════════════════════════
🔺 Smart Wedge Pattern نموذج الوتد الذكي
Advanced & Intelligent Wedge Detection Engine
ليس مؤشرًا تقليديًا يرسم خطوط وتد فقط ، بل هو محرك (نظام) ذكي متكامل لاكتشاف وتحليل نماذج الوتد (Rising & Falling Wedge) اعتمادًا على الهندسة السعرية ، السياق السوقي ، والجودة الإحصائية للنموذج.
تم تصميم هذا المؤشر لمعالجة أكبر مشكلة في مؤشرات الوتد الشائعة:
❌ كثرة النماذج الوهمية
❌ تجاهل الاتجاه السابق
❌ عدم وجود تقييم حقيقي لجودة النموذج
نظام ذكي متكامل يجمع بين:
خوارزمية تكيفية تُعاير نفسها تلقائياً حسب ظروف السوق
7 طبقات تحقق صارمة تُصفّي الأنماط الضعيفة وتُبقي فقط الأعلى جودة
نظام تسجيل جودة يُقيّم كل نموذج من 0 إلى 100
تصور ثلاثي الأبعاد يجعل الأنماط واضحة بصرياً بشكل استثنائي
أهداف ذكية مبنية على نسب فيبوناتشي مع تتبع التحقق الآني
النتيجة:
➡️ نماذج أقل
➡️ إشارات أنظف أكثر دقة وموثوقية
➡️ جودة أعلى
➡️ استخدام عملي حقيقي
═════════════════════════════════════════════════════════════
🎯 ما هي نماذج الأوتاد؟
1- الوتد الهابط (Falling Wedge) — نموذج انعكاسي صعودي
الوتد الهابط يتشكل عندما يتحرك السعر في قناة هابطة متقاربة — أي أن خط المقاومة العلوي وخط الدعم السفلي كلاهما يهبطان، لكن خط الدعم يهبط بزاوية أقل حدة، مما يُضيّق القناة تدريجياً.
لماذا يحدث الكسر الصعودي؟
القمم الهابطة تُظهر ضغطاً بيعياً مستمراً
لكن القيعان الصاعدة (P2 < P4) تكشف أن المشترين يدخلون عند مستويات أعلى
التقارب يُشير إلى تناقص الزخم الهبوطي
عند نقطة معينة، يتغلب ضغط الشراء ويحدث الكسر
2- الوتد الصاعد (Rising Wedge) — نموذج انعكاسي هبوطي
الوتد الصاعد هو عكس الهابط تماماً — قناة صاعدة متقاربة حيث يصعد كلا الخطين، لكن خط المقاومة يصعد بزاوية أقل حدة.
لماذا يحدث الكسر الهبوطي؟
القيعان الصاعدة تُظهر ضغطاً شرائياً مستمراً
لكن القمم الهابطة (P2 > P4) تكشف أن البائعين يدخلون عند مستويات أدنى
التقارب يُشير إلى تناقص الزخم الصعودي
عند نقطة معينة، يتغلب ضغط البيع ويحدث الكسر
═════════════════════════════════════════════════════════════
🧠 نظام المحاور التكيفي — قلب المؤشر الذكي
المشكلة مع المؤشرات التقليدية
المؤشرات التقليدية تستخدم قيمة ثابتة لاكتشاف المحاور (مثل 5 شموع يسار و5 شموع يمين). هذا يعني:
في الأسواق الهادئة → إشارات كثيرة ومتأخرة
في الأسواق المتقلبة → إشارات قليلة وضائعة
لا تكيف مع طبيعة كل سوق أو إطار زمني
الحل: خوارزمية التكيف الذكي
المؤشر يحسب حساسية المحور المثلى في كل شمعة باستخدام 5 عوامل مرجحة:
النتيجة النهائية = (درجة_التقلب × 0.30) + (درجة_الاتجاه × 0.25) +
(درجة_الاستقرار × 0.20) + (السياق_المئوي × 0.15) +
(درجة_النطاق × 0.10)
العامل الوزن كيف يُحسب لماذا مهم
درجة التقلب 30% ATR(10) / ATR(50) يكشف التغير المفاجئ في التقلب
درجة الاتجاه 25% ADX(14) / 50 الأسواق الاتجاهية تحتاج حساسية مختلفة
درجة الاستقرار 20% StdDev(ATR) / Mean(ATR) يقيس ثبات التقلب
السياق المئوي 15% ATR / Percentile(ATR, 50) يضع التقلب في سياقه التاريخي
درجة النطاق 10% النطاق_الحالي / متوسط_النطاق يكشف الشموع غير العادية
النتيجة: المؤشر يستخدم حساسية منخفضة (محاور أقل، أكثر أهمية) في الأسواق الهادئة، وحساسية عالية (محاور أكثر، استجابة أسرع) في الأسواق المتقلبة (محاور أدق = نماذج هندسية صحيحة).
═════════════════════════════════════════════════════════════
✅ طبقات التحقق السبع — لماذا هذا المؤشر مختلف
كل نموذج مُكتشف يمر عبر 7 اختبارات صارمة قبل عرضه:
1- التحقق من البنية الهندسية
يتحقق من:
P1 يسبق P2 يسبق P3 يسبق P4 زمنياً
المسافة بين كل نقطتين ≥ الحد الأدنى المحدد
عرض النموذج (P1→P4) ضمن النطاق المسموح
ترتيب القمم والقيعان صحيح حسب نوع الوتد
2- فحص التقارب الحقيقي
الوتد الحقيقي يجب أن يُظهر تقارباً:
├── الفجوة عند P4 < الفجوة عند P1
├── نسبة التقارب = الفجوة_النهائية / الفجوة_الابتدائية
└── النسبة يجب أن تكون < عتبة التقارب المحددة (افتراضي 75%)
3- التحقق من الميل
للوتد الهابط:
├── ميل خط المقاومة < 0 (هابط)
├── ميل خط الدعم < 0 (هابط)
└── ميل المقاومة < ميل الدعم (تقارب)
للوتد الصاعد:
├── ميل خط المقاومة > 0 (صاعد)
├── ميل خط الدعم > 0 (صاعد)
└── ميل الدعم > ميل المقاومة (تقارب)
4- فلتر الاتجاه السابق
النماذج الانعكاسية تحتاج اتجاهاً سابقاً لتنعكس منه:
├── يقيس حركة السعر خلال فترة محددة قبل P1
├── يُطبّع الحركة باستخدام ATR لمقارنة عادلة
├── الوتد الهابط يحتاج اتجاهاً هابطاً سابقاً
└── الوتد الصاعد يحتاج اتجاهاً صاعداً سابقاً
5- احترام القناة
وضع عادي (فحص الإغلاق):
└── كل إغلاق بين P1 و P4 يجب أن يكون داخل حدود الوتد
وضع صارم (فحص القمة/القاع):
├── كل قمة يجب أن تكون تحت خط المقاومة (+ نسبة تسامح)
└── كل قاع يجب أن يكون فوق خط الدعم (- نسبة تسامح)
6- التحقق بعد P4
بعد تشكل النقطة الرابعة:
├── للوتد الهابط: السعر لا يكسر خط الدعم أو ينزل تحت P4
└── للوتد الصاعد: السعر لا يكسر خط المقاومة أو يصعد فوق P4
7- نظام تسجيل الجودة
الجودة = (درجة_التقارب × 0.30) + (درجة_الميل × 0.25) +
(درجة_العرض × 0.20) + (درجة_الاتجاه × 0.15) +
(درجة_الارتفاع × 0.10)
├── درجة التقارب: كلما زاد التقارب، زادت الجودة
├── درجة الميل: تناسق ميل الخطين العلوي والسفلي
├── درجة العرض: الأنماط بعرض 40-100 شمعة مثالية
├── درجة الاتجاه: قوة الاتجاه السابق
└── درجة الارتفاع: ارتفاع النموذج نسبة لـ ATR
═════════════════════════════════════════════════════════════
✅ إدارة دورة حياة النموذج (Pattern Lifecycle)
المؤشر لا يرسم ثم يختفي، بل يتابع النموذج كاملًا:
اكتشاف النموذج
مراقبة ما بعد النقطة الرابعة
تأكيد الاختراق
حساب الهدف
تتبع الوصول للهدف
تمييز النجاح أو الإلغاء
❌ يتم إلغاء النموذج تلقائيًا إذا:
فشل في الاختراق
كُسرت القناة عكسيًا
تجاوز مدة الانتظار المحددة
═════════════════════════════════════════════════════════════
✅ أهداف ذكية + Success Level
بعد الاختراق:
يتم حساب الهدف بناءً على ارتفاع النموذج
3 أوضاع للأهداف:
Conservative (0.618)
Balanced (1.0)
Aggressive (1.618)
مستوى Success مستقل لقياس قوة الحركة قبل الهدف
═════════════════════════════════════════════════════════════
🎨 عرض بصري متقدم (3D Visualization)
تمثيل ثلاثي الأبعاد للنموذج
عمق بصري يعكس حجم النموذج
منطقة هدف ثلاثية الأبعاد
ألوان ديناميكية عند تحقق الهدف
🎨 الهدف من 3D ليس الزينة
بل قراءة النموذج بصريًا بسرعة ووضوح
═════════════════════════════════════════════════════════════
⚙️ أهم المميزات
✅ اكتشاف تلقائي للأوتاد
✅ فلترة ذكية تقلل الإشارات الوهمية
✅ تقييم جودة حقيقي لكل نموذج
✅ أهداف واقعية وقابلة للتخصيص
✅ دعم كامل لـ Rising & Falling Wedge
✅ يعمل على جميع الأسواق والفريمات
✅ تصميم احترافي وأداء عالي
═════════════════════════════════════════════════════════════
📊 سيناريوهات الاستخدام
🟢 المضاربة السريعة
أطر: 1–15 دقيقة
جودة ≥ 60
أهداف محافظة
🔵 التداول اليومي
أطر: 15د–1س
جودة ≥ 50
أهداف متوازنة
🟣 التداول المتأرجح
أطر: 4س–يومي
جودة ≥ 40
قناة صارمة
أهداف عدوانية
🟠 العملات الرقمية
تقارب صارم
قناة صارمة
جودة ≥ 65
═════════════════════════════════════════════════════════════
🔔 التنبيهات
كسر وتد هابط ⇒ شراء
كسر وتد صاعد ⇒ بيع
أي كسر وتد
═════════════════════════════════════════════════════════════
⚠️ إخلاء المسؤولية
هذا المؤشر لأغراض تعليمية وتحليلية فقط. لا يُمثل نصيحة مالية أو استثمارية أو تداولية. استخدمه بالتزامن مع استراتيجيتك الخاصة وإدارة المخاطر. لا يتحمل TradingView ولا المطور مسؤولية أي قرارات مالية أو خسائر.




















