Enhanced Elliott Wave + SMCThe Pine Script you provided is a sophisticated trading strategy called "Enhanced Elliott Wave + SMC" (Smart Money Concepts) that combines multiple technical analysis concepts to generate trade signals. Here's a breakdown of its key components and functionality:
1. Core Concepts
Elliott Wave Theory: Identifies potential wave patterns using a 50-period SMA to determine trend direction and Fibonacci extensions (1.618 ratio) for price targets.
Smart Money Concepts (SMC): Focuses on institutional trading patterns like liquidity sweeps, supply/demand zones, and fair value gaps (FVGs).
2. Key Features
Liquidity Sweep Detection:
Identifies false breakouts where price briefly exceeds recent highs/lows before reversing.
Confirms institutional "stop hunts" to trap retail traders.
Supply/Demand Zones:
Marks areas of concentrated buying/selling pressure.
Zones persist on the chart (up to max_zones_displayed) and are triggered by liquidity sweeps.
Fair Value Gaps (FVG):
Detects price voids between candles, indicating potential reversal zones.
Bullish FVG (gap below) and Bearish FVG (gap above) highlighted.
Market Structure Lines:
Horizontal lines showing recent swing highs/lows (10-period extremes).
3. Indicators & Filters
RSI & CMO: Momentum filters (RSI >50/<50, CMO positive/negative).
Volume Confirmation: Optional filter requiring volume spikes (1.5x 20-period average).
ATR-Based Risk Management: Dynamic stop-loss and take-profit levels based on volatility.
4. Entry Conditions
Long Entry:
Price crosses above demand zone.
Bullish momentum (RSI >50, CMO >0).
Confirmed bullish liquidity sweep.
Volume spike (if enabled).
Short Entry:
Price crosses below supply zone.
Bearish momentum (RSI <50, CMO <0).
Confirmed bearish liquidity sweep.
Volume spike (if enabled).
5. Risk Management
Stop-Loss: Fixed percentage (2%) of price or ATR-based.
Risk/Reward Ratio: 3:1 profit targets derived from stop-loss distance.
6. Visualization
Colored lines/zones for Elliott Wave projections, FVGs, supply/demand areas, and market structure.
Labels and alerts for key events (liquidity sweeps, zone entries).
7. Strategy Logic
Bullish Scenario:
After a bearish liquidity sweep (trap shorts), enter long when price reclaims demand zone with momentum.
Target Fibonacci extension levels or supply zones.
Stop below recent swing low/ATR level.
Bearish Scenario:
After a bullish liquidity sweep (trap longs), enter short when price breaks below supply zone.
Target demand zones or Fibonacci projections.
Stop above recent swing high/ATR level.
8. Use Case
This strategy aims to:
Identify institutional order blocks (liquidity sweeps).
Catch reversals at key supply/demand zones.
Use Elliott Wave principles for profit targets.
Filter false signals with volume/momentum confirmation.
It's designed for swing trading and requires combining price action confirmation with the automated signals. The visual elements help traders quickly assess market structure and key levels.
Analisi fondamentale
50/200 EMA Scalping StratejisiThis Pine Script is the Trading View version of the strategy you saw on the webpage. The core components of the strategy are:
1. **50 EMA and 200 EMA Tracking**: The moving averages that form the foundation of the strategy.
2. **Crossover Detection**: The 50 EMA crossing above the 200 EMA (long position) or crossing below the 200 EMA (short position).
3. **Price Retest**: After the crossover, the price touches the 200 EMA and reacts.
4. **Confirmation Candle**: A confirmatory candle formation after the price test (green candle with close above 200 EMA for long positions, red candle with close below 200 EMA for short positions).
5. **Stop Loss**: Automatic stop loss levels at 0.10% below/above the entry price.
6. **ATR and ADX Indicators**: Technical indicators that measure volatility and trend strength.
7. **Visual Markers**: Clear visual signals for crossovers, retest points, and confirmed entry signals.
8. **Dynamic Table**: An information table displaying current status, price, and indicator values.
The script also automatically shows the recommended leverage level based on the cryptocurrency (8x for BTC/ETH, 5x for others).
SECTORSSP500 Sector indicator relative to each other. Sectors above 50 buy and less than 50 is sell signal.
XLEVEL RISK ON/OFFThis is a risk on/off indicator .
SHOWS all macro indicators like
VIX,SP500,DXY, US10Y, OIL, GOLD .
If the background color is red its risk off.
If the background color is blue its risk on.
If gray and its mixed.
It helps me a lot with trade decisions.
Constant Valuation Multiple LevelsThis indicator adds price levels at constant multiples based on your preferred valuation metric. The settings provides options for setting this metric while Operational Income is the default one.
This indicator is not perfect as it relies on historical earnings data but does not have forecast data (not available in pinescript), thus its not a guide for future price level. It also does not account for "adjusted" earnings which may skew levels for some quarters.
However this script provides a quick way to see the stock price against your preferred valuation multiple to see if it's undervalued and worth investigating further for quality and earnings forecast.
Professional MSTI+ Trading Indicator"Professional MSTI+ Trading Indicator" is a comprehensive technical analysis tool that combines over 20 indicators to generate high-quality trading signals and assess market sentiment. The script integrates standard indicators (MACD, RSI, Bollinger Bands, Stochastic, Simple Moving Averages, and Volume Analysis) with advanced components (Squeeze Momentum, Fisher Transform, True Strength Index, Heikin-Ashi, Laguerre RSI, Hull MA) and further includes metrics such as ADX, Chaikin Money Flow, Williams %R, VWAP, and EMA for in-depth market analysis.
Key Features:
Multiple Presets for Different Trading Styles:
Choose from optimal configurations like Professional, Swing Trading, Day Trading, Scalping, or Reversal Hunter. Note that the presets may not work perfectly on all pairs, and manual calibration might be required. This flexibility allows you to fine-tune the settings to align with your unique strategies and signals.
Multi-Layered Signal Filtering:
Filters based on trend, volume, and volatility help eliminate false signals, enhancing the accuracy of market entries.
Comprehensive Fear & Greed Index:
The indicator aggregates data from RSI, volatility, momentum, trend, and volume to gauge overall market sentiment, providing an additional layer of market context.
Dynamic Information Panel:
Displays detailed status updates for each component (e.g., MACD, RSI, Laguerre RSI, TSI, Fisher Transform, Squeeze, Hull MA, etc.) along with a visual strength bar that represents the intensity of the trading signal.
Signal Generation:
Buy and sell signals are generated when a predefined number of conditions are met and confirmed over multiple bars. These signals are clearly displayed on the chart with arrows, making it easier to spot potential entry and exit points.
Alert Setup:
Built-in alert conditions allow you to receive real-time notifications when trading signals are generated, helping you stay on top of market movements.
"Professional MSTI+ Trading Indicator" is designed to enhance your trading strategy by providing a multi-faceted market analysis and an intuitive visual interface. While the presets offer a robust starting point, they may require manual calibration on certain pairs, giving you the flexibility to configure your own unique strategies and signals.
Fair Value Gap - Clean & Labeledmade a script for FVGs pretty basic sorry you can not really see the lettering very well but it works.
Lightning Strike Pro [Verified]This indicator identifies high-probability short setups with red arrows when price rejects the 65% Fibonacci level in a downtrend, accompanied by volume spikes and RSI rejection, and plots orange profit targets based on volatility (2x ATR). It filters aggressively to only show the highest-quality signals with defined risk/reward.
DeenDun.com Fundamentals📊 PERFECT Trades - Fundamental Snapshot Undel Panel
This indicator by PERFECT Trades fetches and displays key fundamental financial metrics directly on the TradingView chart for the current stock symbol.
🧾 What It Does:
Shows essential financial data (e.g., Market Cap, P/E Ratio, ROE, Sales Growth, etc.) for the stock currently loaded on the chart. If the metric is negative then ignore it.
Helps investors quickly evaluate fundamentals without switching to external websites.
Perfect for fundamental screening during chart analysis, especially for halal investment decisions.
📌 Metrics Displayed (examples – update as per script):
Market Capitalization
Price-to-Earnings (P/E) Ratio
Return on Equity (ROE)
Net Profit Growth %
Sales Growth %
Debt-to-Equity Ratio
Dividend Yield
Book Value
Days Live CounterThis quite simply tracks how many days an asset has been on Trading View for.
The indicator calculates the day count based on the timestamp of the first visible bar in your current chart view. Since monthly charts generally load data from further back in time than daily or intraday charts, they'll show a larger day count.
This isn't a bug in the indicator - it's correctly counting the days from the first bar it can see in each timeframe.
BeSight Mega SpotBeSight Mega Spot – Zone Based Price Grid Indicator
สคริปต์นี้ถูกออกแบบมาเพื่อช่วยเทรดเดอร์มองเห็นโซนราคาสำคัญที่ราคาอาจเกิดปฏิกิริยา โดยอ้างอิงจากระดับราคาที่ลงท้ายด้วย 0 และ 5 (เช่น 1350, 1355, 1360 เป็นต้น) ซึ่งมักเป็นระดับที่มีการตั้งคำสั่งซื้อขายจำนวนมากในตลาด
BeSight Mega Spot – Zone-Based Price Grid Indicator
This indicator is designed to help traders visualize key price zones where the market often reacts, based on price levels ending with 0 or 5 (e.g., 1350, 1355, 1360). These levels are commonly used for pending orders, liquidity, or price clustering zones.
It displays horizontal grid lines at fixed step intervals (default: every 5 points), covering the entire visible price range of the chart. Each price level is labeled for better clarity and planning.
🟦 Blue lines: Price levels ending in 0
⬜ Gray lines: Price levels ending in 5
This tool is useful for identifying potential institutional behavior zones, price consolidation, accumulation/distribution areas, or psychological support/resistance levels.
🧠 Notes:
- This indicator is not a buy/sell signal tool or predictive system.
- It works best when used in conjunction with other technical tools such as Supply/Demand zones or Smart Money Concepts (SMC) analysis.
- Compatible with all instruments: stocks, futures, forex, crypto, etc.
✅ How to use:
1. Add the indicator to your chart
2. Observe how price interacts with the 0/5 grid zones
3. Use the lines to assist with breakout, retest, or reversal planning
4. Combine with price action or other indicators for higher precision
✨ Developed by BeSight – A Community Of Traders
---------------------------------------------------------------------------------------
อินดิเคเตอร์นี้จะแสดงเส้นแนวนอนแบบตาราง (Grid) ที่แบ่งช่วงราคาออกเป็นระยะ ๆ ตามค่าที่ผู้ใช้กำหนด เช่น ทุก ๆ 5 จุด และครอบคลุมช่วงราคาทั้งหมดของกราฟ โดยแสดงเป็นเส้นแบบ dotted พร้อมป้ายราคาเพื่อให้มองเห็นได้ชัดเจน
🟦 เส้นสีน้ำเงิน: แสดงระดับราคาที่ลงท้ายด้วย 0
⬜ เส้นสีเทา: แสดงระดับราคาที่ลงท้ายด้วย 5
เหมาะสำหรับผู้ที่ต้องการดูโซนราคา "หยุดพัก / เก็บของ / เปิดโพซิชัน" ซึ่งอาจสะท้อนพฤติกรรมของผู้เล่นรายใหญ่หรือสถาบันในตลาด
🧠 ข้อควรรู้:
- อินดิเคเตอร์นี้ไม่ได้บอกจุดเข้าเทรดหรือการคาดการณ์ แต่ช่วยในการวางแผนแนวรับ-แนวต้านร่วมกับเครื่องมือวิเคราะห์อื่น ๆ
- รองรับทุกสินทรัพย์ที่มีหน่วยราคาคงที่ (หุ้น, ฟิวเจอร์ส, ฟอเร็กซ์, คริปโต ฯลฯ)
✅ วิธีใช้งาน:
1. เพิ่มอินดิเคเตอร์นี้ลงบนกราฟ
2. ใช้เส้น Grid เป็นแนวประกอบในการดูพฤติกรรมราคา เช่น การหยุดลง, การเบรกแนว, การกลับตัว
3. ผสมผสานกับโซน Demand/Supply หรือโซน SMC เพื่อความแม่นยำ
✨ พัฒนาโดย BeSight – คอมมูนิตี้ของเทรดเดอร์ตัวจริง
M2 Global Liquidity IndexGlobal liquidity index calculated as
(ECONOMICS:CNM2 * FX_IDC:CNYUSD + ECONOMICS:USM2+ ECONOMICS:EUM * FX:EURUSD + ECONOMICS:JPM2 * FX_IDC:JPYUSD + ECONOMICS:GBM2 * FX:GBPUSD) / 1000000000000
Feel free to share your offsets in comments to find better sync between M2 and BTCUSDT
Buffett Indicator with Historical Bubbles (Clean)The Buffett Indicator is a trusted macroeconomic gauge that compares the total US stock market capitalization to the nation’s GDP. Popularized by Warren Buffett, this metric highlights periods of overvaluation and undervaluation in the market.
This tool offers a clean and accurate visualization of the Buffett Indicator, enhanced with historical bubble annotations for key market events:
Dot-com Bubble (2000)
Global Financial Crisis Peak (2007)
COVID-19 Pre-crash Peak (2020)
Post-COVID Bull Market Peak (2021)
Features:
Dynamic Buffett Ratio (%) calculation using Wilshire 5000 Index as the market cap proxy.
Customizable GDP input for accuracy (update quarterly).
Visual thresholds for fair value, undervaluation, and overvaluation zones.
Historical event markers for educational and analytical context.
Optimized to display clearly across all timeframes: Daily, Weekly, Monthly.
How to Use:
Manually update the GDP input as new data is released.
Use this indicator for macro-level market sentiment analysis and valuation tracking.
Combine with other tools and risk management strategies for comprehensive market insights.
Disclaimer:
This indicator is for educational purposes only. It does not constitute financial advice. Always perform your own research and analysis.
Version: 1.0
we ask Allah reconcile and repay
#BuffettIndicator #MarketValuation #MacroAnalysis #BubbleDetector #LongTermInvestor #USMarket #Wilshire5000 #TradingViewScript
The Silver Lining – GSR🍯 This tool converts the Gold/Silver Ratio (GSR) into a precision timing lens for short-term traders operating inside digital silver markets. It reveals structural dominance, trend exhaustion, and regime inflection by comparing the GSR to its smoothed baseline and historical percentile rhythm. On high timeframes (1D+), it reflects macroeconomic sentiment shifts 📈.
🧐 The lower the timeframe, the higher the alpha; the 15m and 1h charts are where you will the hidden pots of gold. For LTF traders, it becomes a hyper-responsive bias filter — especially when paired with volatility-based confirmation systems like SUPeR TReND 2.718, as shown.
🧠 The core logic compares the GSR (gold ÷ silver) against a user-defined moving average (VWMA or EMA). A color-coded fill shifts based on direction: amber when gold leads, teal when silver gains strength. Percentile bands (20th, 50th, 80th) map structural zones — helping traders anchor trades based on confluence, not hype.
📊 In the example chart, four theoretical long trades are shown on the 1h chart, manually drawn on the 15m timeframe. Each begins when the GSR reverses from the 80th percentile or breaks below its MA. The trades occur precisely as silver tested support, with confirmation from SUPeR TReND’s trend shift. Although idealized, these aren’t guesses — they are compression-to-expansion sequences backed by macro relative strength flow. Several yielded gains exceeding 4%.
🏆 Best-case long trades occur when GSR rotates down through the 50th percentile and silver catches a reactive bid. Shorts appear when GSR rises through the upper percentile band while silver fails to hold key intraday levels. The percentile bands function like behavioral tiers:
🥈 Below 20th = Silver Dominance
⚠️ Around 50th = Crossover Area
🥇 Above 80th = Gold Dominance
🥈 Why silver? It’s faster, more emotional, and more manipulated than gold — which paradoxically makes it more tradable on low timeframes. Its range-bound nature is ideal for rinse-and-repeat systems. Because we trade the derivative (XAGUSD), there’s no friction or delivery constraint — just price action, clean and liquid.
⚖️ The underlying strategy isn’t just technical; it’s alchemical. The system begins with short-term trading in digital silver and funnels gains into physical gold — converting volatility into wealth. Over time, this establishes a perpetual motion model: when profits allow, trade silver, extract value, cash out and convert into gold. The account stays active, and the hedge keeps growing.
🔁 The Silver Lining isn’t a signal engine. It’s a structural overlay. It tells you when the market’s invisible bias is shifting — so your tactics stay aligned with macro rhythm.
🌊 Silver moves fast. Gold moves first. The Silver Lining helps you bridge that gap — with clarity, confluence, and edge.
Risk-On vs Risk-Off Meter (Pro)Risk-On vs Risk-Off Meter (Pro)
This macro-based tool analyzes capital flows across key assets to gauge overall market risk sentiment. It does not use ES, SPY, or stock data directly—making it a powerful confirmation tool for ES traders looking to align with macro forces.
🔹 Core Idea:
Tracks capital rotation between copper/gold, bonds, dollar, crude oil, VIX, and yield spreads to generate a normalized risk score (0–1). This score reflects whether macro money is flowing into risk or safety.
🔹 Use:
Use this indicator as confirmation of directional bias when scalping or day trading ES.
– Green Zone (>0.75): Risk-On environment. Favor long setups.
– Red Zone (<0.45): Risk-Off. Favor short setups or stand aside.
– Yellow Zone: Neutral, use caution.
– Divergence Alerts: Signals when ES price disagrees with macro risk trend—potential reversals or exhaustion zones.
HOT TO USE
– Combine with your existing price action or order flow signals
– Avoid trading against the macro sentiment unless strong setup
– Use divergence as a heads-up for fading or exiting trades
This gives you a macro-informed lens to validate or filter your entries.
Risk-On / Risk-Off ScoreRisk-On / Risk-Off Score (Macro Sentiment Indicator)
This indicator calculates a custom Risk-On / Risk-Off Score to objectively assess the current market risk sentiment using a carefully selected basket of macroeconomic assets and intermarket relationships.
🧠 What does this indicator do?
The score is based on 14 key components grouped into three categories:
🟢 Risk-On Assets (rising = appetite for risk)
(+1 if performance over X days is positive, otherwise –1)
NASDAQ 100 (NAS100USD)
S&P 500 (SPX)
Bitcoin (BTCUSD)
Copper (HG1!)
WTI Crude Oil (CLK2025)
🔴 Risk-Off Assets (rising = flight to safety)
(–1 if performance is positive, otherwise +1)
Gold (XAUUSD)
US Treasury Bonds (TLT ETF) (TLT)
US Dollar Index (DXY)
USD/CHF
USD/JPY
US 10Y Yields (US10Y) (yields are interpreted inversely)
⚖️ Risk Spreads / Relative Indicators
(+1 if rising, –1 if falling)
Copper/Gold Ratio → HG1! / XAUUSD
NASDAQ/VIX Ratio → NAS100USD / VIX
HYG/TLT Ratio → HYG / TLT
📏 Score Calculation
Total score = sum of all components
Range: from –14 (extreme Risk-Off) to +14 (strong Risk-On)
Color-coded output:
🟢 Score > 2 = Risk-On
🟠 –2 to +2 = Neutral
🔴 Score < –2 = Risk-Off
Displayed as a line plot with background color and signal markers
🧪 Timeframe of analysis:
Default: 5 days (adjustable via input)
Calculated using Rate of Change (% change)
🧭 Use Cases:
Quickly assess macro sentiment
Filter for position sizing, hedging, or intraday bias
Especially useful for:
Swing traders
Day traders with macro filters
Volatility and options traders
📌 Note:
This is not a buy/sell signal indicator, but a contextual sentiment tool designed to help you stay aligned with overall market conditions.
Metatrader CalculatorThe “ Metatrader Calculator ” indicator calculates the position size, risk, and potential gain of a trade, taking into account the account balance, risk percentage, entry price, stop loss price, and risk/reward ratio. It supports the XAUUSD, XAGUSD, and BTCUSD pairs, automatically calculating the position size (in lots) based on these parameters. The calculation is displayed in a table on the chart, showing the lot size, loss in dollars, and potential gain based on the defined risk.
Canadian Elections & PM TimelineThis script displays major Canadian federal election years along with the names and party affiliations of elected Prime Ministers, directly on your price chart. It provides a quick visual reference for key political events that may have had market impact, helping traders correlate price movements with changes in leadership.
AltSeasonality - MTFAltSeason is more than a brief macro market cycle — it's a condition. This indicator helps traders identify when altcoins are gaining strength relative to Bitcoin dominance, allowing for more precise entries, exits, and trade selection across any timeframe.
The key for altcoin traders is that the lower the timeframe, the higher the alpha.
By tracking the TOTAL3/BTC.D ratio — a real-time measure of altcoin strength versus Bitcoin — this tool highlights when capital is rotating into or out of altcoins. It works as a bias filter, helping traders avoid low-conviction setups, especially in chop or during BTC-led conditions.
________________________________________________________________________
It works well on the 1D chart to validate swing entries during strong altcoin expansion phases — especially when TOTAL3/BTC.D breaks out while BTCUSD consolidates.
On the 4H or 1D chart, rising TOTAL3/BTC.D + a breakout on your altcoin = high-conviction setup. If BTC is leading, fade the move or reduce size. Consider pairing with the Accumulation - Distribution Candles, optimized for the 1D (not shown).
🔍 Where this indicator really excels, however, is on the 1H and 15M charts, where short-term traders need fast bias confirmation before committing to a move. Designed for scalpers, intraday momentum traders, and tactical swing setups.
Use this indicator to confirm whether an altcoin breakout is supported by broad market flow — or likely to fail due to hidden BTC dominance pressure.
________________________________________________________________________
🧠 How it works:
- TOTAL3 = market cap of altcoins (excl. BTC + ETH)
- BTC.D = Bitcoin dominance as % of total market cap
- TOTAL3 / BTC.D = a normalized measure of altcoin capital strength vs Bitcoin
- BTCUSD = trend baseline and comparison anchor
The indicator compares these forces side-by-side, using a normalized dual-line ribbon. There is intentionally no "smoothing".
When TOTAL3/BTC.D is leading, the ribbon shifts to an “altseason active” phase. When BTCUSD regains control, the ribbon flips back into BTC dominance — signaling defensive posture.
________________________________________________________________________
💡 Strategy Example:
On the 1H chart, a crossover into altseason → check the 15M chart for confirmation. Consider adding the SUPeR TReND 2.718 for confirmation (not shown). If both align, you have trend + flow confluence. If BTCUSD is leading or ribbon is mixed, reduce exposure or wait for confirmation. Further confirmation via Volume breakouts in your specific coin.
⚙️ Features:
• MTF source selection (D, 1H, 15M)
• Normalized ribbon (TOTAL3/BTC.D vs BTCUSD)
• Cross-aware fill shading
• Custom color and transparency controls
• Optional crossover markers
• Midline + zone guides (0.2 / 0.5 / 0.8)
Supertrend + MACD CrossoverKey Elements of the Template:
Supertrend Settings:
supertrendFactor: Adjustable to control the sensitivity of the Supertrend.
supertrendATRLength: ATR length used for Supertrend calculation.
MACD Settings:
macdFastLength, macdSlowLength, macdSignalSmoothing: These settings allow you to fine-tune the MACD for better results.
Risk Management:
Stop-Loss: The stop-loss is based on the ATR (Average True Range), a volatility-based indicator.
Take-Profit: The take-profit is based on the risk-reward ratio (set to 3x by default).
Both stop-loss and take-profit are dynamic, based on ATR, which adjusts according to market volatility.
Buy and Sell Signals:
Buy Signal: Supertrend is bullish, and MACD line crosses above the Signal line.
Sell Signal: Supertrend is bearish, and MACD line crosses below the Signal line.
Visual Elements:
The Supertrend line is plotted in green (bullish) and red (bearish).
Buy and Sell signals are shown with green and red triangles on the chart.
Next Steps for Optimization:
Backtesting:
Run backtests on BTC in the 5-minute timeframe and adjust parameters (Supertrend factor, MACD settings, risk-reward ratio) to find the optimal configuration for the 60% win ratio.
Fine-Tuning Parameters:
Adjust supertrendFactor and macdFastLength to find more optimal values based on BTC's market behavior.
Tweak the risk-reward ratio to maximize profitability while maintaining a good win ratio.
Evaluate Market Conditions:
The performance of the strategy can vary based on market volatility. It may be helpful to evaluate performance in different market conditions or pair it with a filter like RSI or volume.
Let me know if you'd like further tweaks or explanations!
Smarter Money Concepts - FVGs [PhenLabs]📊 Smarter Money Concepts - FVGs
Version: PineScript™ v6
📌 Description
Smarter Money Concepts - FVGs is a sophisticated indicator designed to identify and track Fair Value Gaps (FVGs) in price action. These gaps represent market inefficiencies where price moves quickly, creating imbalances that often attract subsequent price action for mitigation. By highlighting these key areas, traders can identify potential zones for reversals, continuations, and price targets.
The indicator employs volume filtering ideology to highlight only the most significant FVGs, reducing noise and focusing on gaps formed during periods of higher relative volume. This combination of price structure analysis and volume confirmation provides traders with high-probability areas of interest that institutional smart money may target during future price movements.
🚀 Points of Innovation
Volume-Filtered Gap Detection : Eliminates low-significance FVGs by requiring a minimum volume threshold, focusing only on gaps formed with institutional participation
Equilibrium Line Visualization : Displays the midpoint of each gap as a potential precision target for trades
Automated Gap Mitigation Tracking : Monitors when price revisits and mitigates gaps, automatically managing visual elements
Time-Based Gap Management : Intelligently filters gaps based on a configurable timeframe, maintaining chart clarity
Dual Direction Analysis : Simultaneously tracks both bullish and bearish gaps, providing a complete market structure view
Memory-Optimized Design : Implements efficient memory management for smooth chart performance even with numerous FVGs
🔧 Core Components
Fair Value Gap Detection : Identifies price inefficiencies where the current candle’s low is higher than the previous candle’s high (bearish FVG) or where the current candle’s high is lower than the previous candle’s low (bullish FVG).
Volume Filtering Mechanism : Calculates relative volume compared to a moving average to qualify only gaps formed during significant market activity.
Mitigation Tracking : Continuously monitors price action to detect when gaps get filled, with options to either hide or maintain visual representation of mitigated gaps.
🔥 Key Features
Customizable Gap Display : Toggle visibility of bullish and bearish gaps independently to focus on your preferred market direction
Volume Threshold Control : Adjust the minimum volume ratio required for gap qualification, allowing fine-tuning between sensitivity and significance
Flexible Mitigation Methods : Choose between “Wick” or “Close” methods for determining when a gap has been mitigated, adapting to different trading styles
Visual Customization : Full control over colors, transparency, and style of gap boxes and equilibrium lines
🎨 Visualization
Gap Boxes : Rectangular highlights showing the exact price range of each Fair Value Gap. Bullish gaps indicate potential upward price targets, while bearish gaps show potential downward targets.
Equilibrium Lines : Dotted lines running through the center of each gap, representing the mathematical midpoint that often serves as a precision target for price movement.
📖 Usage Guidelines
General Settings
Days to Analyze : Default: 15, Range: 1-100. Controls how many days of historical gaps to display, balancing between comprehensive analysis and chart clarity
Visual Settings
Bull Color : Default:(#596fd33f). Color for bullish Fair Value Gaps, typically using high transparency for clear chart visibility
Bear Color : Default:(#d3454575). Color for bearish Fair Value Gaps, typically using high transparency for clear chart visibility
Equilibrium Line : Default: Enabled. Toggles visibility of the center equilibrium line for each FVG
Eq. Line Color : Default: Black with 99% transparency. Sets the color of equilibrium lines, usually kept subtle to avoid chart clutter
Eq. Line Style : Default: Dotted, Options: Dotted, Solid, Dashed. Determines the line style for equilibrium lines
Mitigation Settings
Mitigation Method : Default: Wick, Options: Wick, Close. Determines how gap mitigation is calculated - “Wick” uses high/low values while “Close” uses open/close values for more conservative mitigation criteria
Hide Mitigated : Default: Enabled. When enabled, gaps become transparent once mitigated, reducing visual clutter while maintaining historical context
Volume Filter
Volume Filter : Default: Enabled. When enabled, only shows gaps formed with significant volume relative to recent average
Min Ratio : Default: 1.5, Range: 0.1-10.0. Minimum volume ratio compared to average required to display an FVG; higher values filter out more gaps
Periods : Default: 15, Range: 5-50. Number of periods used to calculate the average volume baseline
✅ Best Use Cases
Identifying potential reversal zones where price may react after extended moves
Finding precise targets for take-profit placement in trend-following strategies
Detecting institutional interest areas for potential breakout or breakdown confirmations
Plotting significant support and resistance zones based on structural imbalances
Developing fade strategies at key market structure points
Confirming trade entries when price approaches significant unfilled gaps
⚠️ Limitations
Works best on higher timeframes where gaps reflect more significant market inefficiencies
Very choppy or ranging markets may produce small gaps with limited predictive value
Volume filtering depends on accurate volume data, which may be less reliable for some symbols
Performance may be affected when displaying a very large number of historical gaps
Some gaps may never be fully mitigated, particularly in strongly trending markets
💡 What Makes This Unique
Volume Intelligence : Unlike basic FVG indicators, this script incorporates volume analysis to identify the most significant structural imbalances, focusing on quality over quantity.
Visual Clarity Management : Automatic handling of mitigated gaps and memory management ensures your chart remains clean and informative even over extended analysis periods.
Dual-Direction Comprehensive Analysis : Simultaneously tracks both bullish and bearish gaps, providing a complete market structure picture rather than forcing a directional bias.
🔬 How It Works
1. Gap Detection Process :
The indicator examines each candle in relation to previous candles, identifying when a gap forms between the low of candle and high of candle (bearish FVG) or between the high of candle and low of candle (bullish FVG). This specific candle relationship identifies true structural imbalances.
2. Volume Qualification :
For each potential gap, the algorithm calculates the relative volume compared to the configured period average. Only gaps formed with volume exceeding the minimum ratio threshold are displayed, ensuring focus on institutionally significant imbalances.
3. Equilibrium Calculation :
For each qualified gap, the script calculates the precise mathematical midpoint, which becomes the equilibrium line - a key target that price often gravitates toward during mitigation attempts.
4. Mitigation Tracking :
The indicator continuously monitors price action against existing gaps, determining mitigation based on the selected method (wick or close). When price reaches the equilibrium point, the gap is considered mitigated and can be visually updated accordingly.
💡 Note:
Fair Value Gaps represent market inefficiencies that often, but not always, get filled. Use this indicator as part of a complete trading strategy rather than as a standalone system. The most valuable signals typically come from combining FVG analysis with other confirmatory indicators and overall market context. For optimal results, start with the default settings and gradually adjust parameters to match your specific trading timeframe and style.
Imbalance(FVG) DetectorImbalance (FVG) Detector
Overview
The Imbalance (FVG) Detector is a technical analysis tool designed to highlight price inefficiencies by identifying Fair Value Gaps (FVGs). These gaps occur when rapid price movement leaves an area with little to no traded volume, which may later act as a zone of interest. The indicator automatically detects and marks these imbalances on the chart, allowing users to observe historical price behavior more effectively.
Key Features
- Automatic Imbalance Detection: Identifies bullish and bearish imbalances based on a structured three-bar price action model.
- Customizable Sensitivity: Users can adjust the minimum imbalance percentage threshold to tailor detection settings to different assets and market conditions.
- Real-time Visualization: Marked imbalances are displayed as colored boxes directly on the chart.
- Dynamic Box Updates: Imbalance zones extend forward in time until price interacts with them.
- Alert System: Users can set alerts for when new imbalances appear or when price tests an existing imbalance.
How It Works
The indicator identifies market imbalances using a three-bar price structure:
- Bullish Imbalance: Occurs when the high of three bars ago is lower than the low of the previous bar, forming a price gap.
- Bearish Imbalance: Occurs when the low of three bars ago is higher than the high of the previous bar, creating a downward gap.
When an imbalance is detected:
- Green Boxes indicate bullish imbalances.
- Red Boxes indicate bearish imbalances.
- Once price interacts with an imbalance, the box fades to gray, marking it as tested.
! Designed for Crypto Markets
This indicator is particularly useful in crypto markets, where frequent volatility can create price inefficiencies. It provides a structured way to visualize gaps in price movement, helping users analyze historical liquidity areas.
Customization Options
- Min Imbalance Percentage Size: Adjusts the sensitivity of the imbalance detection.
- Alerts: Users can enable alerts to stay notified of new or tested imbalances.
Important Notes
- This indicator is a technical analysis tool and does not provide trading signals or financial advice.
- It does not predict future price movement but highlights historical price inefficiencies.
- Always use this tool alongside other market analysis methods and risk management strategies.