Indicador

Support or Resistance with Deviation - Candle Iron CoreThe Support or Resistance with Deviation - Candle Iron Core indicator is designed to help traders visualize custom support and resistance zones by applying a percentage deviation around a user-defined reference price.
Unlike traditional support and resistance indicators, this tool does not automatically detect support or resistance levels . Instead, it gives traders complete freedom to choose the most relevant price level according to their own market analysis and trading methodology.
By allowing traders to manually define a key price level and instantly project percentage-based deviation zones around it, the indicator provides a structured framework for risk management and price reaction analysis.
Core Concept
The trader first selects a reference price that they consider important.
This reference may represent:
A major support level.
A major resistance level.
A supply or demand zone.
A daily, weekly, or monthly opening price.
A liquidity pool.
A swing high or swing low.
Any price level identified through the trader's own analysis.
Once the reference price is selected, the indicator calculates upper and lower deviation levels based on a user-defined percentage.
Mathematically:
Deviation = Base Price × (Deviation % / 100)
Upper Level = Base Price + Deviation
Lower Level = Base Price − Deviation
The area between both levels creates a visual deviation zone that can be used as a framework for analyzing price behavior.
Base Price Modes
Current Asset Price
Automatically uses the latest market price of the current asset.
This mode was specifically designed to make the indicator immediately usable on any market without requiring manual adjustments. Traders can quickly apply the script to stocks, cryptocurrencies, futures, forex pairs, indices, or commodities and instantly obtain a deviation zone around the current market price.
Manual Price
Allows traders to manually specify any custom price level.
This mode is particularly useful when analyzing previously identified support or resistance levels, institutional zones, swing highs/lows, or any important market reference.
Indicator Components
Upper Deviation Level: Base Price + Deviation.
Base Price: Central reference selected by the trader.
Lower Deviation Level: Base Price − Deviation.
Deviation Zone: The shaded area between the upper and lower levels.
Practical Applications
This tool can be used to:
Visualize custom support and resistance zones.
Define objective stop-loss areas.
Estimate take-profit targets.
Identify potential liquidity areas.
Analyze market expansion and contraction.
Measure acceptable price deviation around key levels.
Build zone-to-zone trading frameworks.
Evaluate risk-to-reward scenarios.
Assist mean reversion and range-based trading strategies.
Important Notes
This indicator does not automatically detect support levels.
This indicator does not automatically detect resistance levels.
This indicator does not generate buy or sell signals.
This indicator does not predict future market direction.
The quality of the analysis depends entirely on the trader's ability to identify meaningful reference prices.
This script should be viewed as a visualization and risk management tool rather than a standalone trading system.
Why This Indicator Is Different
Many support and resistance tools attempt to automatically identify market levels using predefined algorithms.
This indicator takes a different approach.
Instead of forcing a specific interpretation of market structure, it allows traders to apply their own discretion while providing a precise and objective framework for measuring price deviation around any selected level.
This makes the indicator flexible enough to adapt to virtually any trading style, market, or timeframe.
Indicador

Risk & Position-Size Calculator : Futures/Prop | Falcon AIStop blowing accounts to oversized positions. This free tool tells you EXACTLY
how many contracts to trade so a stop-out only costs the dollars you decided to
risk — on any futures symbol (MNQ, MES, NQ, ES, MGC, CL and more). It auto-detects
each contract's point value, so the math is always right.
It shows:
• Position size (contracts) for your account + risk %
• Your real $ risk, $/point, and 2R / 3R targets
• Prop-firm guardrails: how many losing trades until you breach your daily-loss
limit or trailing drawdown
• Prior-day high/low for context
Set your account size, risk %, and stop (manual or ATR-based) — it does the rest.
Built by Falcon AI. Educational tool only — not financial advice. Indicador

Indicador

FBD Reclaim Tool v52FBD Reclaim Tool v52 - Advanced Time-Based Level Trading Engine for Failed Breakdown
Overview
The FBD Reclaim Tool v52 is a specialized, dual-core state machine designed for structural level trading. Built for traders who are tired of getting chopped up by "fakeouts" and liquidity sweeps, this tool abandons simple price-cross alerts. Instead, it relies on Time-Based Reclaim Logic—requiring the market to prove acceptance of a level over a physical duration of time before triggering an entry.
Whether you trade Futures, Indices, or Commodities, this script evaluates market structure in real-time, calculates dynamic structural targets, and routes beautifully formatted webhook payloads to Discord or your automated broker bridge.
Core Trading Concept: The "Flush, Base, Direction" (FBD)
Most indicators buy the exact touch of a support level, often catching a falling knife. This engine waits for the trap to be sprung:
The Sweep/Flush: Price must drop below a defined Major Support by a specified depth (Flush Depth). The system then "arms" the setup.
The Reclaim: Price must climb back above the level.
Time Acceptance & Dip Buffer: Price must hold above the level for a user-defined duration (e.g., 150 seconds). To account for market noise, the engine includes a Dip Reset Buffer: if price dips back under the level, the timer doesn't reset instantly unless it stays submerged beyond your defined grace period.
Execution: Once time acceptance is confirmed, the trade triggers.
Key Features
⏱️ True Time-Based Execution: Uses lower-timeframe (1S) data arrays to track exact physical seconds spent above/below a level. Includes a dynamic on-chart tracker (⏳) showing live countdowns and reclaim velocity.
📝 Natural Language Level Parser: Paste your daily levels straight from your notes! The "Mancini NL Format" automatically parses strings like 7205 (major), 7213—extracting numbers and assigning them as Major Support/Resistance or Minor zones based on your text tags. Standard CSV input is also supported.
🎯 Structural TP & SL Routing: Forget fixed point targets. The engine dynamically scans the array of levels you inputted and sets your Take Profit or Stop Loss at the next logical major structural level. (Fallback fixed points are used if no level is nearby).
🎛️ Chart Declutter Mode (New in v52): An added toggle to hide TP, SL, and Target Hit/Stopped Out labels. Keep your charts pristine, viewing only the entry triggers and level lines, while the script silently runs the management logic in the background.
📊 Tactical Dual-HUD: * Session HUD (Top Right): Calculates a dynamic "Session Rating" (A+, B, F) based on time-of-day edges and Sunday gap logic, tracks Daily TR vs. ATR, and counts "M1 Red Days" to gauge trend exhaustion.
Trade HUD (Bottom Right): Real-time table displaying your current Entry, SL, TP, Risk (pts), R/R Ratio, and the Reclaim Velocity.
🌊 Higher Timeframe Trend Filter: Uses an HTF Moving Average to filter trades. Counter-trend setups aren't entirely blocked but are visibly tagged as ⚠️ LQ (Low Quality) so you can manage your risk accordingly.
🤖 Built-in Discord / Webhook Alerts: Formats clean, data-rich JSON payloads detailing the Trade ID, execution time, R/R, Entry, and exact risk metrics, ready to be sent to your Discord channel.
How to Use:
Select your Input Mode (Mancini NL or CSV).
Input your daily Supports and Resistances.
Configure your Flush Depth, Acceptance Time, and Dip Buffer based on the volatility of your chosen asset.
Set up a TradingView Alert with the condition Any alert() function call to route the script's internal execution logs directly to your webhook.
Disclaimer: This script is for educational and informational purposes only. Trading futures, options, and equities carries significant risk. Always forward-test indicator logic in a paper trading environment before risking live capital. Indicador

Advanced Liquidity Sweep [HexaTrades]Advanced Liquidity Sweep is a Smart Money Concepts (SMC) indicator designed to automatically identify liquidity pools, equal highs and lows, liquidity sweeps, and potential reversal areas. Rather than simply detecting wick breaks, it evaluates each sweep using multiple confirmation factors and assigns a strength score, helping traders distinguish between minor stop hunts and higher-quality liquidity events.
The indicator is designed for cryptocurrencies, stocks, forex, futures, commodities, and indices across all timeframes.
What is Liquidity?
Financial markets constantly search for liquidity before making significant moves.
Retail traders often place:
• Stop losses below swing lows
• Stop losses above swing highs
• Breakout orders above resistance
• Breakdown orders below support
These orders accumulate into liquidity pools. Large market participants frequently move prices into these areas to fill large positions before reversing or continuing the trend.
This indicator automatically identifies those liquidity pools and highlights when they are swept.
How it works :
- Map the liquidity.: Confirmed pivot highs become BSL lines, pivot lows become SSL lines. You choose Major and/or Minor swing sizes.
- Cluster equal highs/lows. Several highs (or lows) at nearly the same price form an EQH / EQL cluster, a bigger, juicier liquidity pool that scores higher.
- Detect the sweep (on closed candles only).
• Bearish: price trades above a BSL level but closes back below it.
• Bullish: price trades below an SSL level but closes back above it.
- Score it 0–100. Six factors rate how convincing the rejection was (see below). At/above your Strong threshold, it’s tagged STRONG.
- Draw a sweep zone. Optionally turn each sweep into a supply/demand zone you can watch for re-entry, with optional auto-expiry.
- Filter the noise. Optional Trend, Higher-Timeframe and Filter presets keep only the cleaner grabs.
Features
🔶 Major & Minor Swing Detection
The indicator detects both major and minor swing highs and lows.
Major swings represent stronger institutional liquidity and usually produce higher-quality reactions.
Minor swings identify shorter-term liquidity that is commonly targeted during intraday trading.
Users can monitor:
• Major swings only
• Minor swings only
• Both simultaneously
🔶Buy-Side Liquidity (BSL)
Buy-side liquidity forms above previous swing highs.
These areas usually contain:
• Short stop losses
• Breakout buy orders
• Momentum entries
When price trades above these highs before quickly closing back below, the indicator identifies a bearish liquidity sweep.
🔶 Sell-Side Liquidity (SSL)
Sell-side liquidity forms below previous swing lows.
These areas usually contain:
• Long stop losses
• Panic selling
• Breakdown entries
When price trades below these lows before closing back above, the indicator identifies a bullish liquidity sweep.
🔶 Equal Highs & Equal Lows
Equal highs and equal lows are some of the strongest liquidity pools because many traders place stops at nearly identical price levels.
The indicator automatically detects these structures using:
• ATR-based tolerance
• Percentage-based tolerance
Equal liquidity levels are highlighted separately and tracked independently from normal swing liquidity.
🔶 Zone Colors
Here are the zone and line colors used in this indicator and what each one means:
🔴 Red: Buy-Side Liquidity (BSL)
- Represents swing highs where buy-side liquidity is concentrated.
- Commonly contains short stop-loss orders and breakout buy orders.
- These are active, unswept liquidity levels and potential targets for a bearish liquidity sweep.
🟢 Green: Sell-Side Liquidity (SSL)
- Represents swing lows where sell-side liquidity is concentrated.
- Commonly contains long stop-loss orders and breakdown sell orders.
- These are active, unswept liquidity levels and potential targets for a bullish liquidity sweep.
🟠 Orange: Equal Highs / Equal Lows (EQH / EQL)
- Marks two or more highs or lows formed at nearly the same price.
- These levels are displayed using dashed lines and often contain larger clusters of resting liquidity.
- Sweeps of Equal Highs and Equal Lows typically produce stronger, higher-probability trading opportunities.
⚪ Gray: Swept (Inactive) Liquidity
- Indicates liquidity that has already been swept by price.
- Once a level has been taken, it changes to gray and becomes inactive.
- This helps distinguish spent liquidity from active levels that may still attract future price movement.
Sweep Signal Colors
🟩 Bullish Liquidity Sweep
-Appears when Sell-Side Liquidity (SSL) or an Equal Low (EQL) is swept.
-Price trades below the liquidity level but closes back above it, confirming a bullish liquidity sweep.
🟪 Bearish Liquidity Sweep
- Appears when Buy-Side Liquidity (BSL) or an Equal High (EQH ) is swept.
- Price trades above the liquidity level but closes back below it, confirming a bearish liquidity sweep.
🔶 Liquidity Sweep Detection
A liquidity sweep occurs when price temporarily breaks a liquidity level but fails to hold beyond it.
For a valid sweep:
Bearish Sweep
• Price trades above Buy-Side Liquidity
• The candle closes back below the level
Bullish Sweep
• Price trades below Sell-Side Liquidity
• The candle closes back above the level
Because the signal is generated only after the candle closes, the indicator does not repaint.
🔶Sweep Strength Score
Every sweep receives a strength score from 0 to 100.
The score combines multiple factors including:
• Wick rejection
• Candle body strength
• Penetration distance beyond liquidity
• Volume confirmation
• Distance from the EMA
• Equal High / Equal Low cluster strength
Higher scores generally indicate stronger liquidity events.
Strength tiers are classified as: Weak, Medium, Strong, and Elite
Users can also define a minimum score to filter out lower-quality sweeps.
🔶 Score Presets
Three scoring profiles are available:
Conservative: Places greater emphasis on clean rejection candles and body structure.
Balanced: Provides an even weighting across all scoring components and is suitable for most trading styles.
Aggressive: Places greater importance on volume and equal liquidity clusters, making it more responsive to institutional activity.
🔶 Trend & Higher Timeframe Filters
The indicator includes optional trend confirmation filters to help improve signal quality.
The Trend Filter uses the EMA 50 and EMA 200 to evaluate the current market direction and offers two modes:
Continuation : Displays only sweeps that align with the prevailing trend.
Reversal : Displays only sweeps that occur against the prevailing trend, helping identify potential market reversals.
For additional confirmation, the Higher Timeframe (HTF) Bias Filter compares price with a higher timeframe EMA. When enabled, sweeps are generated only if they align with the broader market trend, helping reduce false signals and improving overall trade selection.
🔶 Liquidity & Sweep Zones
The indicator provides two complementary ways to visualize liquidity on the chart.
Liquidity Zones highlight swing highs and lows as either horizontal lines, price zones, or both, making it easier to identify areas where liquidity is likely to accumulate. Users can choose between Lines Only, Zones Only, or Both to match their preferred chart style.
When a liquidity sweep occurs, the indicator automatically creates a Sweep Zone around the rejection candle. These zones can be extended into the future, automatically removed after a user-defined period, or kept indefinitely. Sweep zones often serve as potential support or resistance areas, making them useful for identifying future reaction zones, retests, and trade opportunities.
⭐️ Bullish Liquidity Sweep
Price sweeps below the Sell-Side Liquidity (SSL), triggering stop-loss orders before quickly reversing and closing back above the liquidity level. The Sweep Zone acts as a potential support area, while the strength score helps evaluate the quality of the setup. Traders may look for long opportunities on the confirmation or retest, targeting the next Buy-Side Liquidity (BSL).
Example:
⭐️Bearish Liquidity Sweep
Price sweeps above Buy-Side Liquidity (BSL), triggering breakout orders and stop-losses before reversing and closing back below the liquidity level. The Sweep Zone acts as a potential resistance area, while the strength score helps evaluate the quality of the setup. Traders may look for short opportunities on the rejection or retest, targeting the next Sell-Side Liquidity (SSL
example chart:
Alerts
Built-in alert conditions include:
• Bullish Liquidity Sweep
• Bearish Liquidity Sweep
• Equal High Sweep
• Equal Low Sweep
• Strong Bullish Sweep
• Strong Bearish Sweep
• Next-Candle Confirmed Sweep
• Any Liquidity Sweep
These alerts allow traders to automate notifications without monitoring charts continuously.
How to Use
The Advanced Liquidity Sweep indicator helps identify where liquidity exists, when it has been swept, and how strong the resulting market reaction is. For the best results, combine it with market structure, support and resistance, and proper risk management.
Bullish Setup:
- Wait for price to sweep a Sell-Side Liquidity (SSL) level.
- The candle should close back above the liquidity level, confirming a bullish sweep.
- Prefer Medium, Strong, or Elite sweep scores for higher-quality setups.
- Use the Trend Filter or Higher Timeframe Bias Filter for additional confirmation.
- Watch for a retest of the Sweep Zone before considering a long entry.
-Place the stop-loss below the sweep low and target nearby resistance or Buy-Side Liquidity.
Bearish Setup:
- Wait for price to sweep a Buy-Side Liquidity (BSL) level.
- The candle should close back below the liquidity level, confirming a bearish sweep.
- Focus on higher-strength sweep scores for better probability.
- Confirm the setup using the Trend or Higher Timeframe filters.
- Look for rejection from the Sweep Zone before entering a short position.
- Place the stop-loss above the sweep high and target nearby support or Sell-Side Liquidity.
Advanced Liquidity Sweep is designed to help traders understand where liquidity exists, identify when it has been taken, and evaluate the quality of each sweep using multiple confirmation factors. Rather than relying on simple wick breaks, it combines liquidity analysis, market structure, trend confirmation, and strength scoring to provide greater context for trading decisions. As with any technical tool, it should be used alongside sound risk management and additional market analysis for the best results.
We would love to hear your suggestions. If you have ideas for new features, indicators, analytics, or improvements, please share your feedback. Your input helps guide future updates and improve the indicator for all traders.
This indicator is for educational and analytical purposes only. It should not be considered financial advice. Always use proper risk management and make trading decisions based on your own analysis
Indicador

Market Regime & Trend Filter🚀 MARKET REGIME & TREND FILTER PRO
The Market Regime & Trend Filter Pro (MRTF), engineered by gunebak4n, is an institutional-grade multi-dimensional trend classification and market structure isolation framework. It is designed to visually map macro price regimes, isolate structural expansions, and filter out low-liquidity market noise without a single pixel of signal repainting.
MRTF operates on the core principle that directional price movement cannot be evaluated in a vacuum. True, sustainable trends are defined by the mathematical convergence of statistical linear regression velocity and validated swing market structures (Higher Highs / Lower Lows). By unifying an asset-agnostic, normalized slope calculation with a lag-free swing matrix, MRTF projects multi-state market environments directly onto the user's chart.
Unlike traditional moving averages or standard trend-following tools that suffer from severe lag or generate devastating false signals during prolonged sideways consolidations, MRTF dynamically shifts across five distinct market regimes—instantly distinguishing a high-conviction breakout from a dangerous, low-velocity trap.
💡 CORE DESIGN PRINCIPLES
🧭 Normalized Statistical Velocity Engine
Standard linear regression slopes fail when comparing different assets or volatile timeframes because their raw values depend entirely on the asset's nominal price. MRTF solves this by processing the raw slope (Beta Coefficient) through a dynamic ATR (Average True Range) normalization matrix. This transforms ordinary regression into a universal, percentage-based momentum tracker that remains stable across Bitcoin, Apple, or Gold.
🧬 Non-Repainting Multi-Layer Validation
The framework continuously evaluates two distinct algorithmic layers:
Statistical Trend Component: A localized rolling covariance engine that measures the geometric slope of the price index over a user-defined lookback window.
Structural Swing Component: A strict, non-repainting pivot tracking system that marks qualified market structures based on strict historical confirmations.
The structural intersection of these layers determines the definitive macro market regime.
💡 KEY FEATURES
📊 Five-State Market Regime Matrix
Instead of a binary "bull or bear" output, MRTF classifies the market into 5 actionable phases to optimize strategy execution:
Strong Bullish: Market structure is breaking higher (HH/HL) and the normalized channel slope is expanding aggressively upward.
Weak Bullish: Structural trend is upward but momentum is flattening, OR macro momentum is extremely bullish despite temporary structural breaks.
Ranging / Choppy: The absolute trend slope is compressed inside the dead-zone threshold. Capital preservation mode.
Weak Bearish: Structural trend is downward but selling momentum is stalling, OR macro momentum is sharply negative despite minor upward structural retracements.
Strong Bearish: Market structure is breaking lower (LH/LL) and the normalized channel slope is accelerating aggressively downward.
🧪 Advanced Chart-Scale Alignment (Log/Linear)
A critical feature engineered into MRTF is its manual Price Scale Mode switch. Because Pine Script cannot natively detect whether a user's visual chart layout is set to Logarithmic or Linear, MRTF provides an input enum to match your chart. This prevents the mathematical distortion of regression slopes on long-term logarithmic charts, ensuring accurate momentum readings.
🛡️ Non-Repainting Historical Swing Mapping
The indicator utilizes advanced pivot logic to identify valid structural peaks and troughs. By utilizing a fixed right-bar confirmation offset, the system completely eliminates the risk of signal repainting. Shapes are placed historically precisely where the structural pivot occurred, offering an uncorrupted look back at structural market transitions.
🔬 MATHEMATICAL ARCHITECTURE
If Scale Mode is Logarithmic:
Y_val = ln(Close)
If Scale Mode is Linear:
Y_val = Close
• Mean_X = SMA(bar_index, Length)
• Mean_Y = SMA(Y_val, Length)
• Mean_XY = SMA(bar_index * Y_val, Length)
• Cov_XY = Mean_XY - (Mean_X * Mean_Y)
• Variance_X = Variance(bar_index, Length)
• Raw_Slope = Cov_XY / Variance_X
• ATR_Val = ATR(Length)
If Scale Mode is Logarithmic:
Normalized_Slope = Raw_Slope * 100
If Scale Mode is Linear:
Normalized_Slope = (Raw_Slope / ATR_Val) * 100
🛠️ USAGE FRAMEWORK
1. Candlestick Regime Coloring
Monitor the color shifts of the live candlesticks to instantly identify the dominant institutional phase:
Bright Lime Candles: Strong Bullish Expansion. (Ideal for riding strong macro trend extensions).
Muted Green Candles: Weak Bullish Phase / Potential Exhaustion or Minor Retracement.
Gray Candles: Ranging / Choppy Environment. Tighten stop-losses, avoid breakout chasing, and look for mean-reversion setups.
Muted Maroon Candles: Weak Bearish Phase / Defensive Posture.
Bright Red Candles: Strong Bearish Expansion. (Ideal for capital preservation or short-side exposure).
2. Analytical Control Dashboard
The real-time HUD (Heads-Up Display) in the corner of your chart provides a synchronized summary of market health:
Scale Mode: Confirms whether your mathematical engine is aligned with your visual chart scale.
Norm Slope: Displays the exact normalized statistical momentum score. Values crossing outside your threshold indicate volatility expansions.
Market Structure: Shows the structural orientation based on valid pivot series (Bullish, Bearish, or Undetermined).
3. Structural Pivot Turning Points
The small red and lime triangles plotted on the chart mark confirmed structural swing points. Because they are fully non-repainting, they represent concrete psychological levels where institutional order flow shifted, making them excellent levels for placing structural stop-losses or identifying major support/resistance zones.
⚙️ SYSTEM CHARACTERISTICS
Zero Repainting: All background calculations, candlestick color shifts, and swing markers are mathematically locked upon bar close.
Fully Parameterized Controls: Seamlessly adjust regression lengths, swing confirmations, and slope thresholds to adapt the script to Scalping, Day Trading, or Macro Swing Trading.
Asset-Agnostic Engine: Works flawlessly across Equities, Forex, Crypto, Indices, and Commodities by converting absolute price tracking into standardized volatility metrics.
Custom Visual Themes: Every single regime color and dashboard location parameter can be customized within the user settings panel to fit clean dark or light chart aesthetics.
📌 CREDIT
The Market Regime & Trend Filter Pro (MRTF) is officially engineered and published by gunebak4n on TradingView.
This script is built for professional traders who prioritize statistical clarity and structural confirmation over erratic, lagging indicators or noise-heavy lagging moving averages.
⚠️ DISCLAIMER
MRTF is a probabilistic statistical mapping model designed for data visualization. It does not issue absolute trading recommendations, financial advice, or automated profit guarantees. Always backtest your parameters and manage your risk exposure strictly according to your personal trading plan. Indicador

Volume To Bar Range RatioThis script plots
volume / (high - low)
for each bar. A simple measure of how much volume was traded per unit of price range.
Usage
In normal trading bars, volume tends to be correlated to the size of the bar. Small bars have small volume, large bars have large volume. However, key bars tend to have an unusually high ratio of range to volume. This is useful for identifying areas of support and resistance, when they are broken, and key runaway days when price goes parabolic.
Support and Resistance
When price is near an area of support or resistance, or approaching a recent high/low, a small bar with unusually high volume tends to be an indicator that the support/resistance is holding.
When price breaks through an area of support or resistance, or makes a new high or low, and the bar that does is large with an unusually high ratio of volume to range, this is an indicator that support/resistance has been decisively broken. Conversely, if the bar is large, but the ratio of price to volume is similar to other large bars, it is a warning that this might not be a decisive break.
Key Runaway Days
When price has become parabolic and has made several consecutive large moves up, a large bar with a volume to bar range ratio that is extremely high, higher than any other bar made previously, this is an indicator that a runaway day is occurring. Price is unlikely to continue moving parabolically after this day, and it would be a good time to take profits.
Notes
Bars where `high == low` produce `na` (a gap in the plot) to avoid division by zero.
Works on any symbol and timeframe that reports volume.
Note on Originality
This is the first, only, and original implementation of Volume to Bar Range Ratio available in PineScript. This can be easily verified with a search for "Volume to Bar Range Ratio", "Volume Bar Range Ratio", "VBRR", and"VTBRR" on TradingView. Also, a Google search for the same terms, adding "pinescript" or "tradingview" shows that my implementation is the only implementation, and the only other result is a complaint on reddit that this does not exist. Indicador

High Volume Pivot Support & Resistance Zones [BigBeluga]High Volume Pivot Support & Resistance Zones is a market-structure indicator built for TradingView. It helps traders find key support and resistance levels by looking for major pivot points backed by institutional volume.
Instead of drawing simple unweighted lines, this tool tracks the volume of swing highs and lows. When a high-volume pivot is found, the script creates a dynamic zone box on your chart and fits a live Cumulative Volume Delta (CVD) trendline inside it. This lets you monitor real-time buying and selling pressure exactly where the market is most likely to reverse.
🔵 MAIN ENGINE & VOLUME ZONE LOGIC
1. Volume-Validated Pivots
Swing Isolation Fields: The tool uses customizable lookback settings ( Resistance/Support Pivot Length ) to find prominent structural swing highs and lows.
Institutional Volume Filters: Every new swing point is checked against a volume baseline ( Volume MA Length ). A zone is only plotted if the pivot bar's volume beats the baseline multiplier ( Volume Threshold Multiplier ), filtering out weak retail moves.
2. Embedded Zone CVD Lines
Intra-Box Order Flow Tracking: The script counts the volume delta (buying volume minus selling volume based on candle closes) from the exact bar the pivot formed.
Normalized Inside the Box: Using custom polylines, the script scales and plots the rolling CVD trend directly inside the height of the zone box. This lets you see order-flow accumulation without cluttering your screen with bottom dashboard panels.
Live Labels: A small text readout updates on the leading edge of the box, showing the current net CVD volume.
// Normalize and scale running CVD values perfectly inside the zone box coordinates
normalizeDeltaToBox(float currentDelta, float minDelta, float maxDelta, float boxBottom, float boxTop) =>
float rangeDelta = maxDelta - minDelta
float rangeBox = boxTop - boxBottom
rangeDelta == 0 ? boxBottom + rangeBox / 2 : boxBottom + (currentDelta - minDelta) / rangeDelta * rangeBox
🔵 DYNAMIC ZONE FLIPS & SIGNALS
1. Support and Resistance Flips
Automatic Re-Coloring: When a strong candle close breaks entirely through a zone, the script changes its role. Broken resistance boxes switch to your Support Zone Color (yellow), and broken support boxes turn into your Resistance Zone Color (blue).
Border Style Changes: The box outline instantly switches from a solid line to a dashed line the moment a zone is breached, flagging a clear shift in institutional liquidity.
2. Retest and Breakout Plots
Breakout Arrows: The system prints clean triangle up or down arrows ( ▲ or ▼ ) on your chart labeled "Res Breakout" or "Sup Breakdown" the exact bar a zone boundary fails.
Proximity Retest Shapes: It plots tiny circle markers when price pulls back to successfully test a normal support/resistance hold. If price tests a broken zone that has reversed roles, it prints a diamond marker to flag an advanced flipped S/R retest.
// Zone Breakout and Role Inversion Logic snippet
if close > rTop
box.set_bgcolor(lastResBox, color.new(supColor, 90))
box.set_border_color(lastResBox, supLine)
box.set_text_color(lastResBox, supLine)
box.set_border_style(lastResBox, line.style_dotted)
if not resBroken
triggerResBreak := true
resBroken := true
🔵 TRADING STRATEGIES & RISK
CVD Absorption Entries: When price rallies up into a blue resistance box, check the internal dotted CVD line.
If price pushes high into the box but the internal CVD trend slopes down, sellers are absorbing the buy orders. This sets up a high-probability short entry.
Flipped Support Re-Entries: When a bullish breakout triggers a "Res Breakout" arrow, wait for price to pull back to the top border of the broken box. A clean bounce marked by a diamond shape confirms the old resistance has flipped to support, offering a safe continuation trade.
Clear Risk Invalidation floors: You can use the exact borders of the generated boxes to place your stop loss. If you buy a support hold retest, your clear risk invalidation point sits right below the bottom line of that specific support box.
🔵 SETTINGS & CONFIGURATION
Pivot Geometry Controls: Easily fine-tune lookback lengths and volume multipliers to adapt the indicator for volatile crypto assets, indexes, or liquid forex pairs.
Visual Zone Overrides: Adjust background colors, transparency levels, and text label sizing to match your dark or light charting interface seamlessly.
Clean up your layout and trade with volume-weighted precision using the High Volume Pivot Support & Resistance Zones terminal. Indicador

Nasdaq XXX20 / XXX50 / XXX80 Horizontal LevelsThis indicator automatically plots Nasdaq horizontal levels at XXX20, XXX50, and XXX80. Ideal for intraday trading on NQ, MNQ, NDQ, and NDX, with timeframes less than or equal to 5min.
This script highlights powerful reaction levels for entries, exits, stops, and targets.
Key Features
----------------
- Draws XXX20 (teal), XXX50 (light gray/ivory), and XXX80 (orange) levels extending across the chart.
- Dynamically anchors around the current price, showing ±25 blocks by default (50+ levels total, adjustable).
- Optional price range filter to declutter charts by limiting levels to a specific zone.
Inputs
--------------
- Toggle individual level types (XXX20 / XXX50 / XXX80).
- Line colors and width.
- Block size (default 100).
- Price range filter (show only levels between Min and Max price). Indicador

Dynamic Visible AVWAPDynamic Visible AVWAP is a visible-range anchored VWAP tool designed to help traders read active price interaction with important visible swing areas.
The script automatically anchors AVWAP lines from the highest high and/or lowest low inside the currently visible chart range. This makes the tool dynamic: when the visible chart area changes, the anchors are recalculated from the new visible range.
Additional AVWAPs can be enabled with the AVWAP Count setting. When more than one AVWAP is selected, the script adds extra anchors from the next valid swing highs or swing lows. This allows multiple AVWAP references to be displayed at the same time, creating a clearer view of potential confluence zones.
Main features:
Dynamic AVWAP based on the currently visible chart range
Long, Short, or All display modes
Optional multiple AVWAPs per side
Optional deviation channels around each AVWAP
Optional channel fill
Separate style controls for AVWAP lines, channels, arrows, and anchor text
Optional anchor arrows and custom anchor label text
Adjustable text size for anchor labels
Optimized line budgeting to keep the script stable when multiple AVWAPs are displayed
How it can be used:
Dynamic Visible AVWAP can help identify areas where price is interacting with volume-weighted mean levels from important visible swing points. These levels may be useful for context, confluence, pullback analysis, trend continuation review, or mean-reversion observation.
Important note:
The anchors are based on the currently visible chart range. If you zoom, scroll, or change the visible area of the chart, the AVWAP anchors may change because the script recalculates the highest high, lowest low, and additional swing anchors from the new visible range.
This indicator should be used together with broader market analysis, such as structure, volume, liquidity, higher-timeframe levels, and personal risk management. Indicador

Support & Resistances&r mtf is a support and resistance indicator designed to display clean zones directly on the chart.
the script automatically detects support zones from pivot lows and resistance zones from pivot highs. each zone is displayed with a rectangle, a dotted center line, and an optional label.
the goal is to help the trader identify important areas where price may react, reject, break, or come back for a retest.
the mtf version allows zones from a higher timeframe to be displayed on a lower timeframe. for example, daily zones can be displayed on an h1, 30 minute, or 15 minute chart.
this script is not an automatic buy or sell system. it is designed to read market structure, prepare decision zones, and avoid trading without context.
main features
automatic support zones
automatic resistance zones
chart mode or mtf mode
display higher timeframe zones on the current chart
support only below price
resistance only above price
left zone extension
right zone extension
merge zones that touch
merge zones that are too close according to the minimum distance setting
keep the lowest support when zones merge
keep the highest resistance when zones merge
strong candle break filter
optional candle close confirmation
doji filter
atr strength filter
force percentage inside the label
support break alerts
resistance break alerts
clean display with rectangles, center lines, and labels
how the script works
the script creates a resistance zone when a pivot high is confirmed.
the script creates a support zone when a pivot low is confirmed.
a resistance is valid only when it is above the current price.
a support is valid only when it is below the current price.
if two support zones touch or are too close, they are merged and the lowest support is kept.
if two resistance zones touch or are too close, they are merged and the highest resistance is kept.
if price breaks a zone with the selected break conditions, the zone can be removed and an alert can be triggered.
chart mode
chart mode uses the current chart timeframe.
example:
if the chart is on 30 minutes, the zones are calculated from the 30 minute chart pivots.
this mode is useful for reading the exact timeframe you are trading.
mtf mode
mtf mode calculates zones from a higher timeframe and displays them on the current chart.
example:
you are on an h1 chart.
you enable mtf mode.
you choose the daily timeframe.
the script displays daily zones directly on the h1 chart.
this helps keep major market zones visible while trading intraday.
mtf use case example
if you trade on 30 minutes, you can display daily zones.
this helps avoid buying directly under a daily resistance or selling directly above a daily support.
mtf zones are often more important than small lower timeframe zones because they come from a wider market structure.
beginner tutorial
step 1: enable the module
enable the support and resistance module.
if the mode is set to chart, the script uses the current chart timeframe.
if the mode is set to mtf, the script uses the timeframe selected in the mtf settings.
step 2: choose the mode
use chart if you want zones from the current timeframe.
use mtf if you want to see zones from a higher timeframe.
simple example:
for scalping on 10 minutes, display h1 or daily zones.
for trading on h1, display daily zones.
for trading on h4, display daily or weekly zones.
step 3: watch support zones
support zones are located below price.
a support can be used as an area of interest to look for a bullish reaction.
a beginner can wait for a wick rejection, a bullish close, or a reclaim above the zone before looking for a possible long setup.
step 4: watch resistance zones
resistance zones are located above price.
a resistance can be used as an area of interest to look for a bearish reaction.
a beginner can wait for rejection, a bearish close, or a failed breakout before looking for a possible short setup.
step 5: do not trade a zone alone
a zone is not an automatic signal.
you should wait for confirmation.
possible confirmations:
price reaction
wick rejection
clean close
volume
trend alignment
confirmed breakout
zone retest
step 6: use the merge logic
if several zones touch or are too close, the script groups them together.
this helps avoid a chart filled with useless overlapping zones.
for supports, the lowest level is kept.
for resistances, the highest level is kept.
step 7: use the minimum distance setting
minimum distance helps prevent zones from being created too close to each other.
if you lower the distance, the script accepts more zones.
if you increase the distance, the chart becomes cleaner and more selective.
even if the minimum distance is low, two zones that really touch should remain merged.
input explanation
enable s/r module
turns the support and resistance module on or off.
zone source mode
selects the source of the zones.
chart uses the current timeframe.
mtf uses the selected higher timeframe.
mtf zone timeframe
selects the timeframe used to calculate mtf zones.
example:
daily to display daily zones on h1 or 30 minute charts.
weekly to display weekly zones on h4 or daily charts.
pivot length
controls pivot sensitivity.
a lower value creates more zones and reacts faster.
a higher value creates fewer zones but makes them more selective.
number of visible zones
sets the maximum number of visible zones.
a lower value gives a cleaner chart.
a higher value shows more historical structure.
show s/r labels
shows or hides zone labels.
labels can display the zone type, percentage distance, and force value.
show only 2 active zones
keeps only the latest active resistance and the latest active support.
this is useful for a very clean chart.
minimum distance between zones
sets the minimum space between zones.
the higher the value, the fewer close zones will remain.
the lower the value, the more close zones the script accepts.
zone left extension
extends zones to the left.
this helps show the visual origin of a zone.
zone right extension
extends zones to the right.
this projects the zones into the future.
confirm breaks only on candle close
when enabled, a break is confirmed only after the candle closes.
this reduces false breaks during a live candle.
break equals full body outside zone plus strong candle
when enabled, the script requires the full candle body to close outside the zone with enough strength.
this makes break detection stricter.
max doji body to range
defines when a candle is considered a doji.
a doji is a candle with a small body.
doji candles can be ignored to avoid weak break signals.
min strength body to range
defines the minimum body size compared to the full candle range.
a higher value requires a stronger candle.
min strength body greater or equal atr multiplier
defines the minimum body strength compared to atr.
the higher the value, the stronger the break candle must be.
show force percent
shows the zone penetration force inside the label.
cap force percent
limits the displayed force value to avoid very large numbers.
max cap percent
sets the maximum displayed value when the force cap is enabled.
alert break resistance
enables the alert when a resistance zone is broken.
alert break support
enables the alert when a support zone is broken.
bullish use case example
price comes back to a support zone.
the support remains below price.
the market shows a bullish reaction.
a rejection candle appears.
the trader can then watch for a possible long setup, especially if the general trend is bullish.
bearish use case example
price comes back to a resistance zone.
the resistance remains above price.
the market shows rejection.
a bearish candle appears.
the trader can then watch for a possible short setup, especially if the general trend is bearish.
mtf example
you trade on h1.
you enable mtf mode.
you choose daily.
daily zones appear on the h1 chart.
if price reaches a daily resistance, the trader avoids buying too late.
if price returns to a daily support, the trader watches for a possible reaction.
beginner tips
do not trade every zone automatically.
always wait for price reaction.
avoid buying directly below resistance.
avoid selling directly above support.
use mtf zones as major decision areas.
always use a stop loss.
use proper position sizing.
combine the zones with trend, volume, candlesticks, and market structure.
important note
this script does not guarantee results.
supports can break.
resistances can break.
the best use of this tool is to treat it as a map of important market zones, combined with strict risk management and personal confirmation before each trade.
Indicador

Dynamic Gravity Attractor (DGA) [MarkitTick]💡 An advanced technical indicator designed to identify, weight, and visualize significant price zones using a physics-inspired gravitational model. By treating historical price pivots as physical masses that exert gravitational pull on the current price, this tool dynamically highlights levels of high structural importance. This offers traders a unique, quantitative perspective on support, resistance, and the overarching market equilibrium based on continuous volume and touch data.
✨ Originality and Utility
Unlike standard static support and resistance indicators that simply draw horizontal lines at arbitrary swing highs and lows, this system introduces a dynamic, weighted engine based on volume execution and touch frequency.
Traditional indicators often clutter the chart with dozens of obsolete lines. This tool resolves the issue by clustering proximate price levels using an Average True Range based spatial resolution. This synthesizes fragmented levels into cohesive, highly actionable Gravity Zones.
The core utility lies in its ability to quantify the relative strength of these zones using a gravitational constant. Instead of merely sorting by recency, it sorts by actual structural pull. This allows traders to cleanly distinguish between minor intraday speed bumps and major macroeconomic price attractors that have a high probability of influencing future price routing.
🔬 Methodology and Concepts
The script operates on a robust foundation of interconnected logical pillars, ensuring a precise reading of historical market structure:
• Pivot Detection and Clustering: The indicator identifies standard non-repainting pivot highs and lows using a defined lookback window. Instead of plotting each pivot individually and causing chart noise, it evaluates if a new pivot falls within an existing cluster radius. This radius is dynamically determined by a user-defined percentage of the 14-period Average True Range. If a match is found, the cluster aggregate price, volume, and touch count are updated using a volume-weighted average formula.
• Mass Calculation: Each clustered zone is assigned a quantitative mass. This mass is a blended metric derived from the total trading volume transacted at that specific level and the frequency of price touches it has endured. Users can dynamically adjust the weighting of these two components to favor volume-heavy execution levels or frequently tested psychological levels.
• Gravitational Pull: Applying a concept directly akin to classical physics, the indicator calculates the gravitational force of each active zone relative to the current closing price. The formula incorporates the zone calculated mass, a user-defined Gravitational Constant, and the inverse square of the absolute distance between the zone and the current price.
• Net Force and Equilibrium: By aggregating the gravitational pull of all active zones above the current price and subtracting the zones below, the script calculates a continuous Live Net Force. This net force dictates the overall directional bias of the underlying market structure.
🎨 Visual Guide
The tool provides a rich, multi-layered visual experience, utilizing dark-mode optimized palettes to allow traders to interpret complex market structures at a rapid glance:
• Gravity Zone Lines: Horizontal lines representing the clustered price levels. The strongest mathematical attractor is plotted with a solid line, while weaker zones use dashed line styles to indicate secondary importance. The thickness of the line directly correlates with its top-ranking status.
• Zone Colors: Levels situated above the current price are colored in a visual gradient from vibrant purple to deep violet, representing resistance or overhead gravity. Levels situated below are colored in a gradient from yellow to dark orange, representing support or underlying gravity. The color intensity and opacity scale dynamically with the calculated mass of each zone.
• Gravity Fields (Halos): Semi-transparent background boxes surrounding the strongest top-ranked gravity zones. The vertical height of the box represents the zone mathematical sphere of influence, calculated using the true range and the zone specific mass.
• Gravity Center: A distinct dotted cyan line plotting the weighted center-of-mass between the strongest overhead attractor and the strongest underlying attractor. This acts as the market current fulcrum.
• Dynamic Labels: Textual tags attached to the right of the gravity lines. These indicate the exact price level, an arrow denoting if the force is pushing up or down, and a percentage representing its gravitational strength relative to the maximum active zone.
• Heatmap Candles: The main chart candles are recolored based on the Live Net Force. A bullish bias paints the candles in a specific underlying color, while a bearish bias paints them in an overhead color. Border and wick colors adapt similarly to show micro-shifts in pressure.
• Gravity Dashboard: A comprehensive on-chart data table displaying the active number of tracked levels, the exact prices of the top upper and lower attractors, the Net Force bias, the current cluster size, and a visual block-bar representation of the highest active mass percentage.
📖 How to Use
• Trend Identification: Observe the Heatmap Candles and the Net Force metric on the Gravity Dashboard. A sustained bullish color bias suggests the price is being pulled upward by a stronger overhead attractor or violently pushed from a massive underlying support base. Traders should look to align their directional trades with this dominant net force.
• Targeting and Exits: Use the strongest Gravity Zone Lines as primary profit targets or areas to scale out of positions. Because these zones possess high mass, price tends to inevitably gravitate toward them over time.
• Entry Confirmation: Wait for the price to enter a Gravity Field. If price action demonstrates rejection patterns, long wicks, or volume anomalies within these specific halo zones, it provides a high-probability entry for mean-reversion trades.
• Equilibrium Trading: The Gravity Center line represents a literal point of balance between the primary opposing structural forces. Observing the price crossing, retesting, and holding this level can indicate a fundamental shift in structural control from sellers to buyers, or vice versa.
• Automated Alerts: The script includes built-in alert conditions for when the price comes within a tight proximity to the strongest above or below zones. It also fires alerts when the overall Net Force shifts direction. All alerts and webhooks are constructed as strictly formatted JSON strings designed for flawless third-party execution, dynamically calculating and including the Entry Price, the precise Take Profit target, and the exact Stop Loss invalidation price.
⚙️ Inputs and Settings
• History Depth (bars): Determines how far back in time the script looks to evaluate active pivots. A higher number tracks long-term macro zones, while a lower number focuses on immediate intraday structure.
• Number of Gravity Zones: Limits the maximum number of attractor lines drawn on the chart to prevent visual clutter.
• Level Cluster Resolution (ATR%): Controls how closely pivots must be to merge into a single, heavier zone. A higher value aggregates more historical levels together, creating fewer but stronger zones.
• Gravitational Constant G: A mathematical multiplier that scales the overall gravity calculations. Adjusting this tweaks the sensitivity of the Net Force output.
• Mass Components (Volume & Touch Weight): Fractional sliders allowing the user to adjust whether a zone mass is more heavily derived from transacted volume or the sheer number of times the price has historically tested the level.
• Minimum Touch Count: The baseline number of times a price level must be tested before it is officially registered as having enough mass to generate gravity.
• Visual Settings: Comprehensive toggles to independently turn lines, text labels, halo fields, the dashboard table, and center-of-gravity boxes on or off according to individual visual preference and chart cleanliness. All colors are fully user-configurable without hardcoding.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The tool borrows directly from classical mechanics, specifically the law of universal gravitation, to mathematically model financial market microstructure. In standard physics, the attractive force of gravity between two independent objects is directly proportional to the product of their masses and inversely proportional to the square of the distance between their centers.
In the context of this script, the current market closing price acts as a dynamic point mass navigating a static field of larger, stationary masses, representing the historical support and resistance clusters. The script operationalizes this concept by calculating Mass as a composite statistical index of cumulative trading volume and historical test frequency. Volume acts as the density of the price level, representing committed capital and trapped liquidity, while touch frequency represents the psychological reinforcement and memory of the level among market participants.
By rigidly utilizing the inverse square law of distance, the indicator mathematically guarantees that nearby price levels exert exponentially more influence on current price action than distant levels. This accurately reflects the highly localized nature of market liquidity, order book depth, and slippage. Furthermore, the clustering algorithm employs a dynamic threshold based on Average True Range, introducing a volatility-normalized spatial resolution. This specific mechanism ensures that the radius of a mass point expands in highly volatile environments and contracts in tight consolidations, strictly adhering to established principles of adaptive signal processing, robust statistical smoothing, and dynamic time warping.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicador

Elaris Failed Breakout DetectorFailed Breakout Detector
The **Failed Breakout Detector** is designed to help traders identify situations where price briefly breaks above resistance or below support, but fails to sustain the move and quickly returns back inside the previous trading range.
These events are commonly referred to as **failed breakouts**, **bull traps**, **bear traps**, or **liquidity sweeps**. They can indicate that buying or selling pressure was unable to maintain the breakout, potentially leading to a move in the opposite direction.
Instead of relying on a single candle pattern, this indicator combines multiple confirmation techniques to improve signal quality, including:
• Automatic support and resistance detection using confirmed swing pivots.
• Configurable breakout buffer to reduce sensitivity to minor price movements.
• Detection of failed breakout and failed breakdown events within a user-defined number of bars.
• Optional volume confirmation to require stronger participation during the initial breakout.
• Optional rejection wick analysis to identify stronger rejection candles.
• Optional EMA trend filter for users who prefer trading with the prevailing trend.
• Dynamic support and resistance zones based on ATR.
• Signal confidence score for additional context.
• Optional dashboard displaying current structure and trend information.
• Built-in alert conditions for long, short and combined signals.
How it works
**Failed Breakout (Short Setup)**
1. Price closes above a confirmed resistance level.
2. Within the specified number of candles, price closes back below that resistance.
3. Optional filters such as volume, wick rejection and trend confirmation are evaluated.
4. A bearish failed breakout signal is generated.
**Failed Breakdown (Long Setup)**
1. Price closes below a confirmed support level.
2. Price quickly closes back above that support.
3. Optional confirmation filters are applied.
4. A bullish failed breakdown signal is generated.
Inputs
The indicator allows users to customize:
• Pivot sensitivity
• ATR-based breakout buffer
• Support and resistance zone size
• Maximum number of bars allowed before the breakout is considered valid
• Volume confirmation
• Rejection wick requirements
• EMA trend filtering
• Dashboard visibility
• Signal labels
• Alert conditions
Notes
• Swing levels are created from confirmed pivot highs and lows. Because pivots require confirmation, support and resistance levels are confirmed after the selected right-side pivot bars.
• Signal markers themselves do not repaint after they appear.
• This indicator is intended as a technical analysis tool and should be used alongside sound risk management and additional market context.
• No indicator can guarantee future market direction.
If you find this indicator useful, consider leaving a like and sharing your feedback. Constructive suggestions are always appreciated and help improve future updates.
Indicador

Indicador

Auto Supply & Demand Zones [Proozac]# Auto Supply & Demand Zones
**Pine Script v6 — Overlay Indicator**
---
## What It Does
Automatically identifies and draws **Supply** and **Demand** zones using a consolidation-then-impulse approach. Instead of drawing arbitrary rectangles around wicks or candles, this indicator marks the precise origin of impulsive moves — the base where institutions accumulated or distributed positions before the explosive move began.
Zones update dynamically: they extend to the current bar as long as they are active, fade when price re-enters them (tested), and can be removed automatically when fully mitigated.
---
## Core Concept
Supply and Demand zones are based on the observation that before a strong directional move, price always consolidates in a narrow range. This consolidation is where orders were placed. When price eventually returns to that origin area, those resting orders become relevant again.
```
DEMAND ZONE (base before impulsive UP move)
────────────────────────────────────
← zone drawn here
↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ ← impulsive bullish candle
SUPPLY ZONE (base before impulsive DOWN move)
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ ← impulsive bearish candle
← zone drawn here
────────────────────────────────────
```
---
## Detection Logic
### Step 1 — Identify the Base (Consolidation)
A "base" is a sequence of `Consolidation Bars` consecutive candles where every candle body is **smaller than the ATR**:
```
For each candle in the base window:
body = |close - open|
if body > ATR → not a base
```
This filters out directional candles and keeps only tight, sideways price action — the footprint of institutional accumulation/distribution.
### Step 2 — Detect the Impulse
An impulse candle is a strong directional candle **immediately after** the base:
```
Bullish impulse: base confirmed AND close > open AND (close - open) > ATR × Impulse Strength
Bearish impulse: base confirmed AND close < open AND (open - close) > ATR × Impulse Strength
```
The `Impulse Strength` multiplier controls how strong the breakout candle must be relative to ATR. At 1.5× ATR, only genuinely strong moves qualify.
### Step 3 — Draw the Zone
The zone is drawn over the **range of the consolidation base** (highest high to lowest low across all base candles):
```
Zone top = max(high) across base candles
Zone bottom = min(low) across base candles
```
- Bullish impulse → **Demand zone** (green box)
- Bearish impulse → **Supply zone** (red box)
---
## Zone Lifecycle
| State | Visual | Condition |
|-------|--------|-----------|
| **Active** | Full color, solid border | Price has not returned to the zone |
| **Tested** | Price is currently inside the zone | Background flashes, border highlights |
| **Mitigated** | Faded to high transparency | Price closed through the zone's far edge |
| **Deleted** | Removed from chart | Only if "Keep Tested Zones" is off |
Zone mitigation rules:
- Demand zone → mitigated when `low < zone bottom` (price broke below it)
- Supply zone → mitigated when `high > zone top` (price broke above it)
---
## Inputs
| Input | Default | Description |
|-------|---------|-------------|
| **Consolidation Bars** | 3 | Number of tight candles required to form a base. More bars = stricter, rarer zones |
| **Impulse Strength (×ATR)** | 1.5 | How strong the breakout candle must be vs ATR. Higher = stronger impulses only |
| **ATR Length** | 14 | Period for the ATR used in base and impulse detection |
| **Max Active Zones** | 10 | Maximum number of zones kept per side (oldest removed first) |
| **Demand Zone Color** | Teal/green | Fill color for demand zones |
| **Supply Zone Color** | Red | Fill color for supply zones |
| **Demand/Supply Border** | Darker tint | Border color |
| **Tested Zone Transparency** | 92 | Opacity of mitigated zones (higher = more transparent) |
| **Show Zone Labels** | true | Draws "Demand" / "Supply" text inside each box |
| **Keep Tested Zones (Faded)** | true | When off, mitigated zones are deleted entirely |
---
## Visual Output
| Element | Description |
|---------|-------------|
| Green box | Active demand zone (base of a bullish impulse) |
| Red box | Active supply zone (base of a bearish impulse) |
| Faded green box | Demand zone that has been mitigated |
| Faded red box | Supply zone that has been mitigated |
| Green triangle below bar | New demand zone created this bar |
| Red triangle above bar | New supply zone created this bar |
| Green background flash | Price is currently inside a demand zone |
| Red background flash | Price is currently inside a supply zone |
---
## How to Use
**Basic trade setup:**
1. Wait for price to return to an active zone.
2. Look for a confirmation signal inside the zone — a rejection candle, a sweep of the zone's inner extreme, or a divergence from an oscillator.
3. Enter with a stop beyond the zone's outer edge.
4. Target the next supply zone (from demand) or next demand zone (from supply).
**Confluence checklist:**
- Zone is fresh (not previously tested)
- Zone aligns with a higher timeframe level
- MTF Dashboard (indicator 02) shows agreement on the entry direction
- A Liquidity Sweep (indicator 03) fired near the zone entry
**Zone freshness matters:** The first time price returns to a zone, the fill rate is significantly higher than on second or third tests. After a zone is mitigated, treat it as much weaker.
---
## Configuration Tips
| Scenario | Suggested settings |
|----------|--------------------|
| Clean, infrequent zones | Consolidation: 4–5, Impulse: 2.0× |
| More zones, active markets | Consolidation: 2, Impulse: 1.2× |
| Crypto (volatile, wide spreads) | ATR: 20, Impulse: 2.0–2.5× |
| Forex (tight spreads) | ATR: 14, Impulse: 1.5× |
| Equities / indices | ATR: 14, Impulse: 1.5–2.0× |
---
## Alerts
Two built-in `alertcondition` entries:
- `Price in Demand Zone` — fires on every bar where close is inside an active demand zone
- `Price in Supply Zone` — fires on every bar where close is inside an active supply zone
Recommended alert settings: **Once per bar close** to avoid repeated triggers within the same bar.
Indicador

Fractal Structure Indicator BOS CHoCH TGFXFractal Market Structure — BOS / CHoCH
OVERVIEW
This tool maps market structure automatically using fractal pivots. It detects swing and internal structure, labels each break as BOS (continuation) or CHoCH (change of character / reversal), tracks the current fractal high and low (FH / FL), highlights the premium and discount zones of the active range, and summarises higher-timeframe structure in a table.
THE CONCEPTS
- Fractal pivots: highs and lows are detected as Williams-style pivots (a high or low with N bars on each side). Two layers are available — swing structure (larger pivots) and internal structure (smaller pivots inside the swings).
- BOS (Break of Structure): price closes beyond the prior structural point in the direction of the trend — a continuation event.
- CHoCH (Change of Character): the first break against the prevailing structure — an early sign of a potential reversal.
- Current FH / FL: the most recent fractal high and low, where liquidity tends to rest.
- Premium / Discount: the active range is split at its 50% equilibrium. Above it is premium (relatively expensive); below it is discount (relatively cheap).
- Multi-timeframe table: shows the structural bias and the zone (premium / discount) of higher timeframes at a glance.
NON-REPAINTING
A fractal is only confirmed once N bars have closed on each side, so a pivot is fixed after confirmation and does not repaint. Structure breaks (BOS / CHoCH) are evaluated on bar close.
SETTINGS
- Swing fractal length and internal fractal length.
- Show / hide internal structure.
- Show current FH / FL lines and labels.
- Show BOS / CHoCH labels.
- Show premium / discount zones.
- Colors, line extension, and the multi-timeframe table (timeframes and position).
HOW TO READ IT
- Green = bullish structure, red = bearish structure.
- BOS suggests trend continuation; CHoCH warns of a possible reversal.
- Price reaching discount within a bullish bias, or premium within a bearish bias, is the classic context many traders use to look for entries in the direction of structure.
NOTES
This script is an original implementation of standard, public price-action concepts (fractal pivots, market structure, BOS / CHoCH, premium / discount, equilibrium). It is a visualization and context tool — it does not generate buy/sell signals and makes no claim about future performance. Best used together with your own analysis and risk management. Indicador

Liquidity Map & Order Blocks [MQLSoftware]Liquidity Map & Order Blocks reads swing structure into a density map of where stop-liquidity rests, then projects which pool price is most likely drawn toward next. Equal highs and lows are grouped into bands whose brightness scales with a multi-factor Liquidity Score, sweeps mark where those pools were hunted, and a forward-looking model expresses the most likely draw as a self-calibrating historical hit-rate rather than a fixed number. A compact right-side panel adds chart and higher-timeframe structure, the net liquidity pull, the draw target, and pool counts.
This is a visual analytical tool intended for chart reading and liquidity mapping. It does not execute trades and does not provide financial advice. It does not generate buy or sell signals and makes no claim about profitability or win rate. The draw percentage describes how often similar pools were reached in the past over the loaded data; it is a descriptive statistic, not a prediction, and past behavior does not guarantee future results.
Key Features
Resting liquidity drawn as density bands from ATR-normalized clustering of equal highs and lows, so nearby levels merge into one pool instead of a stack of lines
Band brightness driven by a Liquidity Score that blends a saturating touch count, age decay, relative volume at the forming pivots, and rejection-wick depth
Draw on Liquidity projection: a directional arrow to the pool with the strongest modelled pull, muted automatically when the model's confidence is low
Draw percentage shown as a self-calibrating empirical hit-rate — how often pools of a similar profile were actually reached over the loaded history, marked provisional while the sample is thin
Sweep detection when price wicks beyond the last significant swing and closes back within it, with recent sweeps labelled and older ones marked compactly
Protected-swing structure engine marking Break of Structure and Change of Character, with an optional plain-language label mode
Order blocks drawn only when they originate a Break of Structure, plus an optional Fair Value Gap layer; both fade once mitigated
Multi-timeframe panel with chart and higher-timeframe bias, liquidity pull, draw target with its hit-rate, and pool counts, read non-repainting
Core Concept
Most liquidity and order-block tools on TradingView take one of two approaches. They either draw raw equal-high / equal-low lines and mark every order block and gap without ranking them, which clutters the chart and leaves the reader to judge which level matters, or they label structure (swings, breaks of structure) without projecting where liquidity is likely to pull price next. Both stop short of a scored, forward-looking read.
This indicator builds on a different base: cluster swing levels into scored density bands, gate order blocks by structure, and add a model for the next likely draw that is calibrated against realized history. It adds three specific algorithmic elements on top of that base.
1. ATR-Normalized Liquidity Clustering with a Multi-Factor Score. Swing highs and lows are not drawn as individual lines. They are grouped along the price axis by a clustering pass whose merge distance scales with ATR, so equal-ish levels collapse into a single pool and the behavior stays consistent across instruments. Each pool carries a Liquidity Score built multiplicatively from a saturating touch count, an age-decay term, relative volume at the forming pivots, and rejection-wick depth, so a band's brightness reflects how heavy and how fresh the resting liquidity is rather than only how many times the level was touched.
2. Draw on Liquidity Projection. Each unmitigated pool is treated as an attractor. Its pull is the product of its Liquidity Score, an exponential proximity kernel in ATR units, a structural prior that favors pools lying in the trend's continuation direction relative to current price, and a path-clearance term that discounts a pool when other strong pools sit between it and price. The strongest-pull pool is projected as the draw target, and the projection is deliberately muted when confidence is low, so a weak draw never reads like a strong one.
3. Self-Calibrating Empirical Hit-Rate. The draw percentage is not a fixed weight. Each draw is profiled into a bucket defined by Liquidity Score, distance, and structural alignment, and as the chart's history is processed the script records how often pools of that profile were actually reached within a configurable horizon. The displayed figure is the empirical reach frequency of that bucket, smoothed with a weak prior so thin samples are shown as provisional rather than over-read. It calibrates per symbol and timeframe with no fixed accuracy claim attached.
Anatomy of the Display
Liquidity bands are the horizontal zones spanning each pool, colored for buy-side (above) and sell-side (below) liquidity; the brighter a band, the higher its Liquidity Score. Swept pools dim to grey so a hunted level is visually retired.
The draw projection is the arrow from current price to the strongest-pull pool, with a price-side chip and an arrowhead pointing the modelled direction. Its weight scales with the hit-rate: a high-confidence draw is bold, a low-confidence one is thin and faded. The label reads the target level, the hit-rate (shown as a provisional `~NN% (n…)` while its sample is small), and whether the pool is buy-side or sell-side liquidity.
Sweeps mark a stop-hunt of the last significant swing: a wick beyond it that closes back within. The two most recent are labelled; older ones are compact marks so the chart stays clean.
Structure is drawn as Break of Structure and Change of Character lines from a protected-swing state machine; a toggle renders these in plain language (Trend break / Reversal) for readers new to the terminology.
Order blocks are the boxes drawn at the last opposite candle before a Break of Structure, so only structure-originating blocks appear; the optional Fair Value Gap layer marks three-candle imbalances aligned with the break. Both fade once price mitigates them.
The right-side panel lists chart structure, the net liquidity pull and its strength, the draw target with its hit-rate, pool counts per side, and a per-row higher-timeframe bias scan with a strength bar.
Multi-Timeframe Panel
The panel reads three higher timeframes of your choice for structural bias and trend strength, using the same protected-swing engine as the chart. Higher-timeframe values are read with `lookahead=barmerge.lookahead_off` and a one-bar offset, which is the standard non-repainting pattern for higher-timeframe context. A divergence between the chart's structure row and the liquidity pull is informative rather than contradictory: structure up while the draw points down with a high hit-rate, for example, frames an expected pullback toward a strong pool below.
Notes on Repainting
Confirmed liquidity pools, sweeps, structure breaks, and order blocks do not repaint. They are built from confirmed pivots (`ta.pivothigh` and `ta.pivotlow` with a right-bars parameter), so once committed they stay anchored.
Pivot detection has an inherent delay equal to the right-bars parameter (default 3 bars). The most recent swing is provisional until that many bars close past it. This is a property of all pivot-based indicators, not specific to this script.
The draw percentage is a learning statistic. It updates as the script accumulates observations over the loaded history. This is not a repaint of historical bars; the same bar can show a different figure when the chart is reloaded with a different amount of history, because more or fewer observations are available.
Mitigation is one-directional. Once an order block or gap is mitigated it stays marked as such.
Multi-timeframe panel data uses `lookahead=barmerge.lookahead_off` with a one-bar offset, the canonical non-repainting pattern for higher-timeframe context.
Alerts are gated by `barstate.isconfirmed` and fire once per closed bar, never intra-bar.
Typical Analysis Workflow
A common analytical workflow may include:
Reading the band map to see where the heaviest resting liquidity sits above and below price, with brighter bands as the higher-quality pools
Reading the draw projection as a hypothesis for where liquidity may pull price next, weighting it by its hit-rate and whether it aligns with structure
Noting sweeps as stop-hunts that often precede a move, and watching whether price reclaims or rejects the swept level
Treating order blocks as origin zones for the move that broke structure, and the panel's higher-timeframe rows as top-down context
Reading a structure-versus-pull divergence as a possible pullback rather than a contradiction, then managing any decision with other forms of analysis and risk management
Configuration
Structure Engine - ATR length, pivot left / right bars, and the swing filter that sets how significant a swing must be. Right Bars also sets the confirmation delay.
Liquidity Pools - lookback, cluster epsilon (how aggressively levels merge), minimum touches, age half-life, and whether volume contributes to the score.
Draw on Liquidity - proximity, structural prior strength, path clearance, the empirical-calibration toggle, and the calibration horizon.
Sweeps & Structure - sweep penetration, show sweeps, show structure, and the plain-language label toggle.
Order Blocks / FVG - show order blocks, show gaps, the order-block scan window, and the maximum number of boxes.
Visuals - colors for buy-side and sell-side liquidity, draw target, and structure, plus a minimum band height so pools read as bands rather than threads.
Multi-Timeframe HUD - show / hide the panel, the three higher timeframes, and panel position.
Markets and Timeframes
The indicator can be applied across multiple markets and timeframes:
Cryptocurrencies
Forex
Stocks and Indices
Commodities
Because the clustering distance, proximity kernel, and score are all ATR-based, the visual behavior stays consistent across instruments and timeframes. The volume component of the Liquidity Score contributes most on instruments with reliable volume (crypto, futures, equities) and falls back gracefully where volume is thin. The empirical hit-rate reads best on charts with enough history for its buckets to fill.
Alerts
Buy-side liquidity swept - fires when a buy-side pool's level is hunted
Sell-side liquidity swept - fires when a sell-side pool's level is hunted
Bullish Break of Structure - fires on a confirmed upside structure break
Bearish Break of Structure - fires on a confirmed downside structure break
All timeframes bullish - fires when every higher-timeframe row is bullish
All timeframes bearish - fires when every higher-timeframe row is bearish
All alerts evaluate on confirmed bars to avoid intra-bar oscillation. Indicador

FVG Imbalance Tracker TGFXFVG Imbalance Tracker
OVERVIEW
FVG Imbalance Tracker automatically detects, draws and tracks Fair Value Gaps (FVG), also known as imbalances. It marks each gap as a zone, extends it until price returns, and tells you when the gap has been mitigated (filled). An optional 50% midline (Consequent Encroachment / CE) and a higher-timeframe table give you context at a glance.
WHAT IS A FAIR VALUE GAP
A Fair Value Gap is a three-candle pattern where the first and third candles do not overlap, leaving a price range that was crossed in a single, one-sided move:
- Bullish FVG: the low of candle 3 is above the high of candle 1.
- Bearish FVG: the high of candle 3 is below the low of candle 1.
That untraded range is an imbalance. Price frequently returns to it later to "rebalance" before continuing, which is why these zones are useful as potential reaction areas.
HOW IT WORKS
1. On the close of every third candle, the script checks for a gap between candle 1 and candle 3.
2. If a gap is found (and passes the optional ATR size filter), a zone is drawn from the pattern to the right.
3. Each zone keeps extending until it is mitigated. You choose what mitigation means:
- Full fill: price fully closes the gap.
- 50% (CE): price reaches the midpoint (Consequent Encroachment).
- Touch: price reaches the near edge of the gap.
4. Once mitigated, the zone is dimmed and stops extending (or is removed, if you prefer).
HOW TO READ IT
- Green zones = bullish Fair Value Gaps (potential demand / support areas).
- Red zones = bearish Fair Value Gaps (potential supply / resistance areas).
- Solid, extending zone = still unmitigated.
- Dimmed zone = already mitigated.
- Dotted midline = the 50% (CE) level of the gap.
- Multi-timeframe table: shows the latest imbalance direction on three higher timeframes (Bull / Bear / –) for higher-timeframe context.
SETTINGS
- Detection: optional ATR filter to ignore small gaps, ATR length, minimum gap size (× ATR), and maximum gaps kept per side.
- Mitigation: choose Full fill, 50% (CE) or Touch, and whether mitigated gaps stay dimmed or are removed.
- Visual: colors for bullish/bearish gaps, box transparency, optional border, optional 50% midline, optional labels, label size.
- Multi-timeframe table: enable/disable, the three timeframes, and table position.
REPAINTING
Gaps are confirmed on the close of the third candle, so a zone does not appear and then disappear intrabar.
ALERTS
Three alerts are available: "New bullish FVG", "New bearish FVG" and "FVG mitigated". Add them from the alert dialog and set them to trigger once per bar close.
NOTES
This script is an original implementation of standard, public price-action concepts (Fair Value Gaps and Consequent Encroachment). It is a visualization and context tool — it does not generate buy/sell signals and makes no claim about future performance. Fair Value Gaps work best combined with your own analysis (market structure, liquidity, higher-timeframe context, risk management) rather than used in isolation. Indicador

Liquidity Sweeps EQH EQL TGFXLiquidity Sweeps — EQH / EQL
OVERVIEW
Liquidity Sweeps — EQH / EQL is a price-action tool that highlights resting liquidity on the chart and shows when that liquidity is taken. It automatically detects clusters of equal swing highs (EQH) and equal swing lows (EQL), draws them as liquidity levels, and flags the moment price runs through a level and closes back on the other side — a liquidity sweep (also called a stop run or liquidity grab).
THE IDEA BEHIND IT
Stop orders tend to build up just beyond obvious swing highs and lows. When several swings form at roughly the same price, they create a visible pool of resting orders:
- Equal highs (EQH) sit above price and represent buy-side liquidity (buy stops / breakout buy orders).
- Equal lows (EQL) sit below price and represent sell-side liquidity (sell stops / breakout sell orders).
Price is often drawn toward these pools. A sweep occurs when price spikes through the level to trigger those orders and then closes back inside the range — frequently a sign that the move beyond the level lacked follow-through.
HOW IT WORKS
1. Swings are detected with confirmed Williams pivots (configurable left/right length).
2. When two consecutive pivot highs (or lows) form within an adaptive, ATR-based tolerance, they are treated as "equal" and a liquidity level is drawn at the extreme. The tolerance can also be set as a fixed tick distance.
3. Each level extends to the right until price reaches it.
4. A sweep is confirmed on bar close:
- Bearish sweep: a bar's high trades above an EQH but the bar closes back below it (buy-side liquidity taken).
- Bullish sweep: a bar's low trades below an EQL but the bar closes back above it (sell-side liquidity taken).
The swept level is then dimmed and stops extending, and a "SWEEP" label is placed.
HOW TO READ IT
- Red levels / "EQH" labels = buy-side liquidity resting above price.
- Green levels / "EQL" labels = sell-side liquidity resting below price.
- Solid line = level still intact (liquidity untouched).
- Dotted/dimmed line = level already swept.
- Red "SWEEP" above a candle = buy-side liquidity taken and rejected.
- Green "SWEEP" below a candle = sell-side liquidity taken and reclaimed.
- Multi-timeframe table: shows the most recent sweep direction on three higher timeframes (Bull / Bear / –) for higher-timeframe context at a glance. On each higher timeframe a sweep is measured as breaking the N-bar high/low and closing back inside.
SETTINGS
- Swing detection: pivot left/right bars control how large a swing must be before it counts. Lower = more, smaller swings (more sensitive); higher = fewer, more significant ones.
- Equal levels: tolerance mode (ATR or ticks), ATR length and multiplier, and a tick tolerance. A larger tolerance treats more pivots as "equal".
- Sweeps: show/hide sweep labels, and whether swept levels stay on the chart (dimmed) or are removed.
- Visual: colors for buy-side/sell-side, line width, label size, show/hide level labels.
- Multi-timeframe table: enable/disable, the three timeframes, the higher-timeframe sweep lookback, and the table position.
REPAINTING
Levels are built only from pivots that are already confirmed, so a level never appears and then disappears once drawn (by definition, a pivot is confirmed a number of bars after it forms, equal to the "right bars" setting). Sweeps are evaluated on bar close, so sweep labels and alerts do not change intrabar.
ALERTS
Two alerts are available: "Bullish liquidity sweep" and "Bearish liquidity sweep". Add them from the alert dialog and set them to trigger once per bar close.
NOTES
This script is an original implementation of standard, public price-action concepts (Williams pivots, equal highs/lows, liquidity sweeps). It is a visualization and context tool — it does not generate buy/sell signals and makes no claim about future performance. Sweeps are best combined with your own analysis (market structure, higher-timeframe context, risk management) rather than used in isolation. Indicador

HaP Adaptive SuperFibo MTFWhat is the HaP Adaptive SuperFibo MTF?
The biggest weakness of the traditional SuperTrend indicator is the false signals it generates in ranging markets. To solve this, the HaP Adaptive SuperFibo MTF uses a dynamic algorithm that self-adjusts based on market volatility by combining ADX (Average Directional Index) and Dual ATR (Average True Range). Furthermore, it plots noise-filtered automated Fibonacci levels based on SuperTrend swings and displays the macro trend direction using a Multi-Timeframe (MTF) Dashboard.
How Does It Work Under the Hood? (Technical Core)
1. Smart SuperTrend Multiplier:
Instead of a standard fixed multiplier, the indicator calculates the volatility ratio between a Short ATR (10) and a Long ATR (50). Then, ADX (14) steps in to measure trend strength:
If ADX < 20 (Ranging Market): The indicator increases the calculated multiplier by 30% (widens the band) to avoid false breakouts and whipsaws.
If ADX > 25 (Trending Market): The indicator tightens the multiplier by 15% to trail the trend more closely and protect profits.
Users can turn off "Smart Mode" and use a fixed multiplier if desired.
2. Noise-Filtered Auto Fibonacci:
The script draws Fibonacci levels using SuperTrend reversal points (zigzag logic). What makes it unique is the ATR Filter. To ignore minor price fluctuations, it looks for the user-defined "Min Wave Length (ATR Multiplier)" condition. It anchors the Fibonacci only between the first valid strong swing points that meet this ATR condition. Users can choose between "Short Term" or "Long Term" (Weekly data-based) drawing modes.
3. MTF Dashboard:
It analyzes the smart SuperTrend direction across 4 customizable timeframes (e.g., 15m, 1H, 4H, Daily) and generates a total score. The dashboard summarizes the macro picture of the market (Strong Bull, Ranging/Neutral, Strong Bear, etc.).
How to Use It? (Trading Strategy)
Trend Confluence: Before entering a trade, check the Dashboard. If the panel says "STRONG BULL," only look for Long opportunities.
Entries: Look for reversal candles when the price pulls back to the automatically drawn 0.382, 0.500, or 0.618 Fibonacci support/resistance levels in the direction of the main trend.
Take Profit: Use the 1.236, 1.618, and higher extension levels (red colored lines) as your take-profit targets. You can trail your stop loss slightly above/below the SuperTrend line.
Key Settings:
Smart Multiplier Mode: Toggle the ADX+ATR dynamic algorithm.
ADX Ranging/Trending Limits: Adjust the ADX thresholds (Default 20-25).
Fibo Min Wave Length: Higher values ignore more market noise; lower values plot fibs on smaller swings.
Panel Timeframes: Fully customizable 4 distinct timeframes for macro analysis.
Disclaimer: This indicator is designed for educational and analytical purposes only. It does not provide financial advice. Past performance is not indicative of future results. Indicador

Adaptive Support & Resistance Pro with EMA Momentum Filter## Description
This indicator is an advanced tool designed to identify adaptive Support and Resistance (S/R) zones and combine them with an Exponential Moving Average (EMA) momentum filter. Unlike static S/R lines, this script uses a combination of momentum oscillators and dynamic pivot calculations to find high-probability reversal zones on higher or current timeframes.
The core philosophy of this indicator is to prevent "knife-catching." Instead of firing a signal immediately when a support or resistance level is formed, it waits for the price to confirm a change in momentum by crossing the EMA line in the direction of the trade.
---
## How It Works (Under the Hood)
### 1. Support & Resistance Detection
The script uses a multi-layered filter to detect true pivot points:
* **Legacy RSI & Modified RSI:** It evaluates overbought (>75) and oversold (<25) conditions using a 9-period Relative Strength Index.
* **Chande Momentum Oscillator (CMO) based on HMA:** It applies a 1-period CMO logic over Hull Moving Averages (HMA 5 and HMA 12) to detect immediate shifts in market velocity.
* **Close Pivots:** It uses deviation-free highest/lowest calculations (`ta.highest` and `ta.lowest`) combined with `ta.valuewhen` to fetch precise structural levels.
A **Support Zone** is formed only when the RSI is oversold, the CMO shows an upward momentum shift (>50), and a local low pivot is confirmed.
A **Resistance Zone** is formed when the RSI is overbought, the CMO shows a downward shift (<-50), and a local high pivot is confirmed.
### 2. S/R Timeframe Flexibility
Through the `request.security` function, users can plot these adaptive levels from higher timeframes (HTF) onto their current chart. To prevent **repainting** and back-shifting signals, the script strictly uses `barmerge.lookahead_off`.
### 3. EMA Momentum Trigger (The Confirmation Filter)
To filter out false breakouts and premature entries during heavy trend extensions, an EMA filter is introduced:
* **BUY Signal:** Triggered only when a new Support level has been established AND the price successfully closes above the EMA (`ta.crossover`).
* **SELL Signal:** Triggered only when a new Resistance level has been established AND the price successfully closes below the EMA (`ta.crossunder`).
**Strict Discipline:** The script uses an internal state machine (`waitForBuyBreak` / `waitForSellBreak`) ensuring that **only ONE signal** is fired per newly created S/R level. This completely eliminates the "whipsaw" effect (multiple false signals) when the price is consolidating or chopping around the moving average.
---
## Settings & Customization
* **Line Width / Colors:** Fully customize the visual thickness and color styling of your Support and Resistance zones.
* **S/R Timeframe:** Leave it blank for the current chart timeframe, or select higher timeframes (e.g., 4H or 1D) for macro level analysis.
* **Enable EMA Filter:** Toggle this option ON to use the momentum confirmation logic, or OFF to see signals immediately upon S/R level creation.
* **EMA Length:** Adjust the period of the confirmation line (Default is 50, but can be set to 20 for faster entries or 200 for macro trend-following).
---
## Alerts
The script includes three built-in alert conditions for automation:
1. `New S/R line` - Triggers whenever a new support or resistance level is plotted.
2. `BUY Signal` - Triggers when the EMA crossover confirms the support bounce.
3. `SELL Signal` - Triggers when the EMA crossunder confirms the resistance rejection.
## Disclaimer
This indicator is meant for educational and analytical purposes only. Past performance does not guarantee future results. Always practice proper risk management. Indicador

VD Gann LevelsVD Gann Levels — by Vinith Dcosta & | Financepedia
A time-based Gann level indicator that automates what would otherwise be a manual charting process.
What it does
On the daily timeframe, the indicator identifies a significant unbroken swing high or low within a 6–12 month window and uses that pivot as an anchor. From the anchor date, it projects a series of Gann solar-degree intervals (90, 120, 144, 180, 216, 240, 270, 360) forward in time, converting each degree into a calendar date using mean solar motion (1° ≈ 1.0146 days). For every projected date that has already occurred, the indicator marks that day's high and low as horizontal levels.
Levels are calculated on the daily timeframe but render on all timeframes, so you can move down to intraday and see where price sits relative to each level.
The table
A summary table lists every degree, its classification (Major/Minor), the projected date, and the high/low of that date's candle. Dates that haven't occurred yet still show their projected date, with the high/low marked as "unplotted" until the candle forms. Each row carries an accuracy note: Minor degrees resolve to an exact date, while Major (cardinal) degrees may differ by up to one day due to seasonal variation in solar motion.
Inputs
Anchor: Auto-detect (default) selects the most extreme unbroken swing in the window, or switch to Manual to choose any anchor date from the calendar.
Pivot Lookback: Adjusts swing-detection sensitivity in auto mode.
Visual settings: Colors for the anchor and degree lines, line width, and a right-extension toggle.
How to use it
The plotted levels are intended as potential points of interest for confluence with your own analysis. The anchor and its degree projections give you a time-and-price map derived from a single significant swing. Use it alongside your existing method rather than in isolation.
Notes
Designed for the daily timeframe as the calculation base; displays across all timeframes.
The solar-degree dates approximate the classical Gann time method; cardinal degrees carry a ±1 day tolerance as noted in the table.
This script is for educational and informational purposes only. It does not produce buy or sell signals and is not financial advice. Trading decisions and their outcomes are solely your own responsibility. Always apply independent analysis and sound risk management.
Built by The Liquidity Architect" Indicador
