ATH/ATL Fibonacci Retracement - Labels, Golden Pocket & AlertsPlots Fibonacci retracement levels anchored to the all-time high and all-time low of the loaded chart history. The range updates automatically as new highs or lows print, so the levels always reflect the full extent of price action without manual redrawing.
Features:
- Auto ATH/ATL tracking — the 0% and 100% anchors update dynamically across all available history.
- Flip toggle — switch 0% between the top (all-time high) and the bottom (all-time low) to suit your bias or the direction of the move you're measuring.
- Standard Fib levels — 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, and 100%, each color-coded.
- On-chart labels — every level shows its retracement percentage alongside the exact price, placed to the right of the last bar. Adjustable offset.
- Golden pocket shading — the 61.8%–78.6% reaction zone is highlighted for quick visual reference. Toggle on/off.
- Built-in alerts — alert conditions on crosses of each major level, plus a golden-pocket entry alert, ready to wire up from the Create Alert dialog.
Notes: Levels are based on the chart's loaded history, so the all-time high/low depends on how far back your data goes and your timeframe. This is an analysis tool, not financial advice — use it alongside your own process and risk management. Indicator

Adaptive RSI Supertrend [MarkitTick]💡 A highly advanced, multi-dimensional momentum and volatility tracking ecosystem designed for professional market analysis. Rather than relying on traditional price-based trailing stops, this indicator projects a volatility-banded Supertrend directly onto an Adaptive Relative Strength Index (ARSI). This creates an incredibly responsive momentum oscillator that dynamically adjusts its own thresholds based on underlying market kinematics. By integrating high-order digital signal processing filters, higher timeframe confirmations, and volume-weighted validation, this tool provides a comprehensive, terminal-style perspective on market regime, momentum acceleration, and localized price extremes without succumbing to the noise typical of standard oscillators.
✨ Originality and Utility
The standard Relative Strength Index is frequently plagued by false signals, erratic whipsaws during consolidation, and a failure to contextualize momentum within broader structural trends. This script resolves these systemic inefficiencies through a deliberate and mathematically sound synthesis of disparate analytical domains. The combination of an ARSI with a localized Supertrend is not an arbitrary pairing; it solves the problem of static overbought/oversold boundaries. By mapping average true range (ATR) bands onto the RSI itself, the indicator creates dynamic, breathing support and resistance levels for momentum. Furthermore, the integration of advanced smoothing algorithms (Kalman and LLAMA) strips out high-frequency noise, ensuring that crossovers between the ARSI and the Supertrend-derived Merged Line represent statistically significant momentum shifts rather than fleeting market anomalies. This unified framework replaces the need for an overlapping array of disparate indicators, offering a singular, high-contrast dashboard for absolute market clarity.
🔬 Methodology and Concepts
The internal architecture of this tool is built upon several synchronized analytical layers, heavily optimized to protect the integrity of the underlying logic while delivering seamless visual output.
● Adaptive Momentum Core
At the heart of the script is the ARSI, which abandons traditional static lookbacks in favor of a responsive differential tracking model. It evaluates the absolute range of price action against directional movement, feeding these differences through a recursive smoothing engine. This results in an oscillator that remains highly sensitive to genuine trend initiation while heavily penalizing sideways chop.
● Digital Signal Processing (DSP) Filters
The raw momentum data is processed through user-selectable DSP algorithms to extract the true signal from market noise. The Kalman Filter dynamically estimates the true state of momentum by balancing process noise against measurement noise, adapting instantly to volatility spikes. Alternatively, the LLAMA filter applies an efficiency-ratio-driven alpha scaling model, tightening its smoothing factor during periods of low efficiency and relaxing it during strong directional bursts.
● Oscillator-Bound Supertrend
Instead of applying a Supertrend to price, the script calculates a specialized ATR based on the frame-to-frame variance of the ARSI. It then projects upper and lower deviation bands around the ARSI, maintaining a directional bias based on trailing breakouts. The resulting baseline is then averaged with the DSP-filtered signal to create the "Merged Line," serving as the ultimate zero-lag trailing threshold for momentum.
● Multi-Factor Regime Scoring
The script continuously evaluates the broader market context by scoring four distinct components: the absolute level of the ARSI, the trigonometric angle of the ARSI trajectory, the state of the oscillator Supertrend, and the relationship of price to a macroeconomic baseline moving average. These factors are normalized and aggregated into a 0-100 Regime Score, offering a unified metric of trend health.
🎨 Visual Guide
The visual presentation is engineered for high-contrast, dark-mode optimized aesthetics, providing immediate, terminal-style data processing without chart clutter.
● Chart Elements
Color-Matched Candles: Price candles are painted based on the kinetic relationship between the ARSI and its signal line. Neon Cyan indicates strong bullish momentum, Dark Teal indicates weak bullish momentum, Deep Crimson indicates strong bearish momentum, and Maroon denotes weak bearish pressure. Slate Gray represents a neutral momentum state.
Dynamic Support/Resistance Boxes: Translucent, neon-bordered zones (Cyan for Support, Crimson for Resistance) highlight localized structural extremes, providing immediate context for price breakouts.
Trade Projection Labels: When crossover signals fire, dashed projection lines emerge, extending forward to display precisely calculated Entry (Slate), Stop Loss (Crimson), and multi-tiered Take Profit (Neon Green) levels based on dynamic risk-to-reward parameters.
Chart Angle Label: A floating text label displays the exact trigonometric angle and classification of the current trend (e.g., "Strong Uptrend / 45.2°").
● Oscillator Pane Elements
Adaptive RSI Line: Plotted with a dynamic gradient that transitions from Deep Crimson (extreme weakness) to Neon Cyan (extreme strength), instantly conveying momentum depth.
Merged Signal Line: A distinct Neon Purple to Deep Pink gradient line acting as the trailing support/resistance for the ARSI.
Divergence Histogram: Translucent Cyan and Red histogram bars plot the delta between the ARSI and the Merged Line, visualizing the acceleration or deceleration of momentum crosses.
Background Shading: The oscillator pane background shifts to a deep blue/purple tone during overbought (above 80) and oversold (below 20) extremes. A striking Electric Gold background illuminates periods where momentum enters a highly compressed "Squeeze" state.
Signal Markers: Crisp "BULL" (Cyan) and "BEAR" (Red) text labels appear on the oscillator when fully validated crossovers occur.
● The Analytics Dashboard
A fixed, dark-background HUD presents granular telemetry using segmented block bars and color-coded text for rapid scannability:
ARSI Level: Percentage reading of the current momentum state.
Signal Strength: Block visualization of the DSP-filtered baseline.
Angle Momentum & Acceleration: Metrics tracking the velocity and delta-velocity of the trend trajectory.
Supertrend & Market Bias: Text readouts indicating the dominant structural direction.
HTF Trend & Volume: Validation checks displaying the alignment of higher timeframes and localized volume surges.
Volatility ATR & Last Cross: Precise numerical readouts of market expansion and the duration since the last major signal.
Regime Score: The composite 0-100 metric, color-coded from Crimson (Bear) to Neon Magenta (Transition) to Cyan (Bull).
📖 How to Use
Identify Momentum Regime: Monitor the Dashboard's Regime Score. A score above 70 combined with a Neon Cyan ARSI line indicates an environment where long positions are statistically favored.
Trade the Crossover: Wait for the ARSI to cross the Merged Line. Validated crosses will generate a distinct "BULL" or "BEAR" label. Check the Dashboard to ensure the Volume Filter and HTF Trend are aligned (marked with a green checkmark).
Navigate Squeezes: When the oscillator background turns Electric Gold, the market is experiencing a severe volatility contraction. Avoid initiating new positions during the squeeze. Wait for the background color to clear, accompanied by an Alert indicating a Squeeze Breakout, before trading the subsequent expansion.
Manage Risk via Trade Labels: Upon a valid signal, utilize the automatically projected Entry, SL, and TP lines on the main chart to structure your position sizing according to the script's ATR-derived risk mechanics.
⚙️ Inputs and Settings
ARSI & Signal Lengths: Controls the primary lookback periods for the oscillator and its baseline.
Signal Filter Type: Select between RMA, Kalman Filter, or LLAMA to dictate the specific mathematical model used for noise reduction.
Supertrend ATR Length & Factor: Adjusts the sensitivity and width of the volatility bands applied to the oscillator.
Volume Filter Multiplier: Determines the threshold required for volume validation (e.g., 1.5 requires volume to be 50% above its moving average).
HTF Timeframe: Defines the higher timeframe used for macro-trend alignment (defaults to Daily).
Squeeze Angle Threshold: The maximum absolute angle permitted to trigger a volatility contraction state.
Trade Labels (Risk:Reward): Allows fine-tuning of the Stop Loss padding and the precise ratios for TP1, TP2, and TP3 targets.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator relies on a robust foundation of applied mathematics and digital signal processing. The core methodology employs non-linear dynamic state estimation. Unlike standard moving averages that suffer from inherent group delay, the integration of algorithms akin to the Kalman filter allows the script to recursively project the next state of momentum and update that projection based on incoming price data. This minimizes lag while aggressively smoothing standard deviation anomalies.
Furthermore, the application of volatility banding (ATR) directly to an bounded oscillator (RSI) represents a shift from price-domain analysis to momentum-domain analysis. By calculating the variance of the momentum itself, the script acknowledges that momentum has its own distinct volatility profile, independent of price action. The kinematics of the trend are evaluated using trigonometric functions to derive the slope (velocity) and the rate of change of the slope (acceleration). This multidimensional approach ensures that signals are not generated merely by price crossing a threshold, but by a mathematically validated shift in the kinetic energy of the market.
⚠️ 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. Indicator

IPDA Data Ranges - 20 40 601. Daily Lookback Ranges
At the core of the IPDA theory, institutions look back over specific windows of time (usually 20, 40, and 60 days) to identify "Old Highs" and "Old Lows", which act as liquidity pools.
The script automatically calculates the highest high and lowest low of the last 20, 40, and 50 days (customizable in settings).
It uses a special function (request.security with the "D" resolution) to strictly pull this data from the Daily timeframe. This means even if you drop down to a 5-minute or 1-hour chart, the boxes will always accurately represent the daily ranges, rather than just 20 or 40 "intraday candles."
2. Box Visualization
Instead of cluttering your chart with lines, the script draws three overlapping transparent rectangle boxes representing these dealing ranges.
The X-axis (Time): The left side of each box starts at the exact opening time of the day the lookback period began, and the right side extends to the current live candle.
The Y-axis (Price): The top of the box rests exactly on the highest price within that window, and the bottom rests on the lowest price.
3. Dynamic Rendering & Performance
To keep PulseWire running smoothly and prevent memory bloat, the script uses a barstate.islast check.
Rather than drawing hundreds of historical boxes over past price action, the script only draws three dynamic boxes on your chart.
On every new live tick, it simply updates the borders and boundaries of these 3 existing boxes in real-time, anchoring them perfectly to the right side of the chart.
4. Customization Engine
You have full control over the script’s display through the settings:
Lookback Periods: You can change the 20/40/50 day windows to any number of days.
Labels: You can customize the text labels (e.g., typing "Short Term IPDA" instead of "20 Day IPDA").
Text Alignment: You can use dropdown menus to snap the labels to any corner or center of the box (Left, Center, Right, Top, Bottom) so they don't cover your candles.
Aesthetics: You can tweak the background fill color and the solid border color for each box to match your chart theme. Indicator

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. Indicator

Median Point of ControlMedian Point of Control calculates and displays the median OHLC4 price for customizable time periods, along with percentage-based upper and lower bands. It provides a statistical reference framework for identifying potential support, resistance, and mean-reversion zones.
What It Does
This indicator computes the median of all OHLC4 values within a defined period and plots three horizontal levels:
Median Line — The statistical middle price of the period
Upper Band — Median + user-defined percentage
Lower Band — Median - user-defined percentage
The current period's levels update dynamically as new bars form. Completed periods are preserved as historical reference lines.
Why Median Instead of Average?
The median is the "middle" value when all prices are sorted. Unlike the mean (average), the median is resistant to outliers — a single extreme wick or price spike won't distort the level. This makes it more representative of typical price action during the period.
Two Calculation Modes
Timeframe Mode Define periods using standard timeframes: 4H, Daily, Weekly, Monthly, etc. The indicator automatically detects when each period begins and ends.
Bars Mode Define periods by a fixed number of bars (e.g., every 50 bars, every 100 bars). Useful for non-time-based analysis or custom period lengths that don't align with standard timeframes.
Settings
Calculation Mode: Choose between Timeframe or Bars
Timeframe: Period length when using Timeframe mode
Bars: Number of bars per period when using Bars mode
Band Distance (%): Percentage offset for upper/lower bands from median
Line Colors: Customize colors for median, upper, and lower bands
Line Width: Thickness of the plotted lines
Historical Transparency: Opacity of completed period lines
Max Historical Periods: Number of past periods to display
How To Use
Identify the range: The upper and lower bands create a price envelope based on the period's median. When price approaches these levels, watch for reactions.
Mean reversion reference: The median line represents the "fair value" of the period. Price tends to oscillate around this level.
Breakout detection: If price breaks and holds beyond a band, it may signal trend continuation rather than reversion.
Multi-timeframe analysis: Use Daily median on intraday charts to see where price stands relative to the day's statistical center.
Important Notes
This indicator does not predict price direction. It provides statistical reference levels only.
The current period's median updates with each new bar — this is expected behavior, not repainting.
Historical period lines are fixed once their period closes.
For best results, use on liquid instruments (stocks, forex majors, major crypto pairs).
Indicator

Machine Learning Smart Money Concepts | GainzAlgo
What It Is
This is a PulseWire indicator that fuses two ideas that don't usually share a chart:
Smart Money Concepts (SMC): classic structure-based trading, specifically Change of Character (CHoCH) detection off swing highs/lows.
K-Nearest Neighbors (KNN) : a simple, non-parametric machine learning method — used to score each new structure break against the most similar structure breaks that happened earlier on the same chart, and to project price targets from how those similar setups actually played out.
In plain terms: every time price breaks structure, the indicator asks 'what did the last several breaks that looked like this one actually do?' and uses that historical evidence to assign a probability and a set of price targets, instead of relying on a fixed, one-size-fits-all rule.
Structure first (the SMC layer)
The indicator finds swing points using ta.pivothigh / ta.pivotlow with a configurable pivot length. It tracks a simple internal trend state (marketTrend: up / down / neutral) and flags a CHoCH:
Bullish CHoCH: price closes above the last swing high while the prevailing state was not already bullish (i.e., a flip up).
Bearish CHoCH: price closes below the last swing low while the prevailing state was not already bearish (i.e., a flip down).
This is the standard SMC definition of "change of character", the first sign that the prior trend may be giving way to a new one.
Turning the break into an actionable trade
When a CHoCH fires, the script doesn't just say "structure broke", it measures how it broke, using three features computed over the bars since the prior swing point:
Volume delta: An estimate of buy vs. sell pressure on each bar (derived from where the close sits within the bar's range, weighted by volume), averaged over the move. Positive = buyers dominant, negative = sellers dominant.
Displacement: The size of the price move since the swing point, normalized by ATR. This tells you whether the break was a forceful, large-range move or a weak, barely-there one, independent of the instrument's raw volatility.
Velocity: Displacement divided by the number of bars it took (i.e., how fast the move happened.)
Finding lookalikes (the KNN engine)
The script keeps a rolling database (capped at 2,000 records, with a "Historical Memory Window" limiting how far back it'll search) of every previous CHoCH's fingerprint, along with what actually happened afterward.
For a new CHoCH, it:
Filters the database to past events of the same direction (bullish vs. bearish) within the memory window.
Computes Euclidean distance between the new fingerprint and every stored one.
Pulls the K nearest neighbors (default 5) — the most similar past setups.
Uses those neighbors to calculate:
1. A Significance Score = % of the K neighbors where price moved further in the favorable direction than the adverse direction (i.e., a "win rate" among lookalikes).
2. Three price targets, built from the distribution of how far those neighbor setups actually ran:
TP1 (mean × conservative scalar) — a toned-down average outcome.
TP2 (median) — the typical outcome.
TP3 (75th percentile) — a stretch/aggressive outcome.
These 3 targets are represented by a drawn box on the chart.
How the database learns (the "training" loop)
This is the part that makes it adaptive rather than a static rule set. On every bar, the script checks: did a CHoCH happen exactly lookahead bars ago (default 20)? If so, it now has enough hindsight to grade that old setup:
It walks forward through those 20 bars and finds the maximum favorable excursion and maximum adverse excursion from the price at the time of that old CHoCH.
It labels the outcome (favorable > adverse → success) and records the fingerprint as it existed at that time, plus the result, into the database.
So the model is continuously and only ever trained on fully resolved history, never on the bar currently forming. It's an online-learning loop: today's signal is scored against yesterday's already-graded outcomes, and today's setup itself won't be graded and added to the database until lookahead bars from now.
What's Drawn on the Chart
CHoCH connector line: solid line from the broken swing point to the breakout close.
Broken level marker: dashed line showing the swing high/low that got taken out, plus a short dotted line marking the actual break.
Wick trace: a stylized multi-layer glow line tracing the wicks leading into the break (purely visual/aesthetic).
CHoCH region fill: soft fill color between the wick trace and the broken level.
Probability badge: small label (▲/▼ + %) printed near the break; gets a ★ if direction confidence is ≥85%.
CHoCH tag: secondary tiny label showing "+CHoCH / −CHoCH" and the raw significance score.
Target box — a shaded box from TP1 to TP3 with a dotted TP2 line through the middle, extended a fixed number of bars to the right.
Dynamic Target Ribbon: a smoothed (SMA-based) pair of lines tracking the most recent bull/bear target, with a fill between them, giving a continuously-updating visual "zone."
Side panel (table): live readout of bias (bullish/bearish/neutral), current significance score, last TP1/TP2/TP3 with counts of how many of each tier are still outstanding (unhit), database size, current volume delta, the active swing high/low, and the K / Window settings.
Settings Guide
🧠 Quant Engine
Look-Ahead Window (Bars): how many bars forward the model waits before grading a past CHoCH and adding it to the database. Larger = more patient/accurate labeling but slower to build a dataset.
Historical Memory Window: how far back (in bars) the KNN search is allowed to look for neighbors. Smaller = more regime-adaptive (recent behavior only); larger = more data per query but less responsive to regime shifts.
K-Nearest Neighbors (K): how many lookalikes to average over. Lower K = more reactive/noisy; higher K = smoother but slower to reflect new behavior.
Min Significance Score (%): the threshold below which the indicator visually marks a signal as low-conviction (greyed badge) rather than colored.
ATR Period: used both for the displacement feature and for badge placement offsets.
Pivot Length: swing-point sensitivity; smaller = more (and earlier, but less confirmed) swings.
🎯 Target Levels
Conservative Scalar: multiplier applied to the mean neighbor outcome to produce TP1.
Target Extension (Bars): how far right the target box are drawn.
How to Use It
Wait for a CHoCH badge. Direction is shown by the arrow; the percentage is the KNN-derived probability that this break behaves like the favorable-outcome neighbors.
Check the significance score against your threshold. Setups below your Min Significance Score print in a neutral grey, treat these as "structure broke, but the model has no strong opinion" rather than as a clean signal.
Use the target box as a planning zone, not a guarantee. TP1 is the conservative/likely zone, TP2 the typical outcome among similar past moves, TP3 the stretch target, read it as a probability-weighted range, not a prediction.
Watch "DB Records" in the side panel. Early on a chart, or on a symbol with limited history, the database will be small and the KNN matches less statistically meaningful. The model gets more reliable as it accumulates more graded history.
Use the ★ marker as an extra filter. It only appears when directional confidence (not the raw significance score, but the bull/bear probability split) is ≥85%.
Cross-reference with the bias/volume-delta in the panel for a quick read on whether the broader trend state and the most recent candle pressure agree with the new signal.
Helpful Trade Tips
Tip 1: Works extremely well on larger timeframes. Sweet spot is hourly and daily, which positions this indicator well for swing traders. Let's take a look at some examples:
Example 1: SPY 30-Minute timeframe
Here, with extended hours disabled, SPY snagged 8/9 of its target boxes.
Example 2: QQQ Weekly
Here, QQQ touched all recent targets.
This highlights the strength of SMC to aid traders in having higher timeframe and longer range expectations based on the structural changes of the market.
Let's highlight a few other examples:
Example 3: BTCUSD on the Daily timeframe
Here, BTC shows its loyalty to SMC, hitting the majority of its targets on the daily timeframe.
Note: One thing to be aware of, to prevent the chart from looking overly cluttered, the box length has been sized to the immedate range to prevent a messy looking chart. However, you can manually adjust the size by using the "Manual Extension (Bars)" feature in the settings menu to increase the width of the target boxes. Here is an example:
Alerts
You can set custom alerts with this indicator to trigger buy and sell signals based on a probability threshold. You can set the probability thresholds for bearish and bullish conditions within the indicators setting menus. Then, toggle over to the alerts menu and set your Buy and Sell alerts. From there, you will be notified when there is a CHoCH that meets your specific probability threshold. Indicator

Level Range Scanner-WatchlistLevel Range Scanner — Watchlist
See how price is progressing toward your key levels across an entire watchlist at a glance. No more flipping between 18 charts wondering how much further a stock has to go before it tags premarket or prior-day levels — this scanner draws a live progress bar for every level on every symbol, so you can instantly see what's coiled and about to break.
WHAT IT DOES
Track up to 20 symbols in a single on-chart table. For each ticker it monitors four critical intraday levels and shows you, with a filling progress bar, exactly how close price is to breaking each one:
- PDH — Previous Day High
- PDL — Previous Day Low
- PMH — Premarket High
- PML — Premarket Low
When price has room to run, you see a partially filled bar (more fill = closer to the level). The moment a level breaks, the bar flips to a green dot (high broken) or red dot (low broken) so confirmed breaks jump out instantly.
HOW TO USE IT
1. Add the indicator to any intraday chart (1m–15m works best — it needs intraday data for premarket levels).
2. Open settings and type your tickers into Symbol 01–20. Leave slots blank to hide them.
3. Watch the table. Bars filling toward the top of a range = building pressure toward a breakout; bars filling toward the bottom = pressure toward a breakdown.
4. Set an alert (see below) and let it watch the list for you.
READING THE COLUMNS
- Ticker / Price / Volume — Symbol, last price, and accumulated session volume (auto-formatted K/M/B).
- % Change — Move vs. the prior close — green up, red down.
- PDH / PDL Break — Progress bar from the opposite level toward the prior-day high/low. Green/red dot on break.
- PMH / PML Break — Same idea, for the premarket high/low.
- Trend — Up arrow = price broke BOTH PDH and PMH (bullish trend established). Down arrow = broke BOTH PDL and PML (bearish). Warning icon = mixed / not yet confirmed.
The Trend column is the headline signal: an up or down arrow means a symbol has cleared both its daily AND premarket level in the same direction — a higher-conviction continuation setup than a single-level poke.
ALERTS
Use "LE Scanner Triggered." It fires whenever any watched symbol breaks both its premarket and prior-day level in the same direction (i.e. flips to an up or down arrow). Add it once and the scanner watches all 20 names for you in the background.
SETTINGS
- Table Size / Position — fit it anywhere on your layout.
- Show Empty Rows — keep or hide blank symbol slots.
NOTES
- Levels are calculated using extended-hours data (premarket/after-hours included), so PDH/PDL reflect the full trading day, not regular session only.
- Requires an intraday timeframe for the premarket columns to populate.
- Best on liquid stocks/ETFs where premarket and prior-day levels carry weight.
Indicator

EdgeHunter Levels & SweepsEdgeHunter Levels + Sweeps is a multi-timeframe reference level tracker that draws the key highs and lows traders use for context, monitors each level for sweeps in real time using 1-minute resolution, tracks whether a higher timeframe close has reclaimed back inside a swept level, and fires alerts at each stage. All levels, sweep states, and reclaim status are summarised in a live on-chart table.
Levels Tracked
The indicator draws and monitors the following levels simultaneously:
Previous Day High and Low — sourced from the daily timeframe, updated each new session
Previous 1-Hour High and Low — sourced from the 60-minute timeframe, updated each new hour
Previous 4-Hour High and Low — sourced from the 4-hour timeframe, updated each new 4-hour close
Asia Session High and Low — built from a configurable Asia session window (default 20:00–00:00 NY time)
London Session High and Low — built from a configurable London session window (default 02:00–05:00 NY time)
Midnight Open — the opening price of the 00:00 candle in the configured timezone, tracked as a reference level for the trading day
Previous Day Volume Profile Levels — manually entered VAH, VAL, and POC from an external volume profile tool
Each level is drawn from its originating bar and extends forward until swept, at which point the line stops extending and its style switches to dotted to visually indicate it has been taken.
Sweep Detection
All sweep detection runs internally against 1-minute data, regardless of the timeframe the chart is set to. A level is marked swept the moment any 1-minute bar's high crosses above a high level or low crosses below a low level. This ensures sweeps are caught without waiting for a higher timeframe candle to close.
Reclaim Tracking
After a level is swept, the indicator continues monitoring whether price has closed back inside — on a user-selected higher timeframe (configurable, e.g., 1-hour). Each level carries one of three states at any time: Unswept, Outside (swept and the HTF close confirmed outside), or Inside (swept and the HTF close confirmed back inside the level). This reclaim state is what many traders consider confirmation that the sweep was a liquidity grab rather than a genuine directional break.
Status Table
A live table displays every tracked level with its name, current sweep status (SWEPT / UNSWEPT), and current close status relative to the chosen HTF. The table background colour changes to indicate swept levels at a glance. The table position, text size, and colour scheme are fully configurable.
Label Anti-Stacking
When multiple levels are close together in price, labels are automatically staggered vertically to prevent overlap. A configurable minimum separation and step size control how aggressively labels are pushed apart. This keeps the chart readable even when session highs and lows cluster in a narrow range.
Alerts
Three categories of alerts are available:
Level Swept (1m) — fires when any tracked level is crossed using 1-minute precision, naming the level and price
HTF Closed Inside — fires when a previously swept level is reclaimed on the chosen HTF close, indicating a potential false break
VP Level Touch — fires when price touches the manually entered VAH, VAL, or POC, on a per-level or combined basis
All alerts use once per bar close to prevent repeated firing and include the level name and price in the message. Indicator

Monthly Statistical LevelsMonthly Statistical Levels is an open-source indicator that plots monthly reference levels based on historical monthly price extensions from the monthly open.
The goal of the script is to provide a clean statistical map for the current and recent months. It is designed as a market structure and reference-level tool, not as a buy/sell signal system.
How it works
The script uses completed monthly candles from PulseWire data.
For each completed month, it calculates two historical extensions:
High extension:
Monthly High minus Monthly Open, divided by Monthly Open.
Low extension:
Monthly Open minus Monthly Low, divided by Monthly Open.
These historical extensions are stored separately for upside and downside movement.
At the start of each new month, the script uses the current monthly open and projects five reference levels:
Strong High
Avg High
Open
Avg Low
Strong Low
Avg High is based on the historical average upside extension from the monthly open.
Avg Low is based on the historical average downside extension from the monthly open.
Strong High uses the average upside extension plus a configurable standard deviation multiplier.
Strong Low uses the average downside extension plus a configurable standard deviation multiplier.
By default, the strong multiplier is set to 1.0, meaning strong levels use the historical average extension plus one standard deviation.
Lookback options
Users can choose the statistical lookback used for the calculations:
24 months
36 months
60 months
120 months
All available history
Using all available history can make the levels more stable, but it may also mix different market regimes. This is especially important for assets with structural changes, short trading histories, or very different behavior across cycles.
No lookahead logic
The indicator uses completed monthly candles to build the historical sample.
Each month keeps the levels calculated with the information available at the start of that month. The current month is used only for its monthly open, which is known once the month begins.
This means the levels are not recalculated using future monthly highs or lows.
How to use it
The levels can be used as a visual reference for monthly range structure.
Possible uses include:
Identifying where price is trading relative to its monthly statistical range.
Comparing the current month with recent monthly behavior.
Observing when price reaches average or stronger historical extension zones.
Keeping a cleaner chart with only the most recent visible months.
Main settings
Visible months:
Controls how many recent months are displayed. The default is 6 and the maximum is 12 to keep the chart readable.
Statistical lookback:
Controls the historical sample used to calculate average and strong levels.
Minimum closed months:
Defines the minimum number of completed monthly candles required before plotting levels.
Strong multiplier:
Controls how far strong levels are placed from average extension levels using standard deviation.
Labels:
Users can show labels only for the current month, for all visible months, or turn labels off.
Alerts
The script includes optional alert conditions for touches of:
Strong High
Avg High
Open
Avg Low
Strong Low
Limitations
This indicator does not predict future price movement.
It does not identify support or resistance with certainty.
It does not generate buy or sell signals.
It does not evaluate trend, fundamentals, macro conditions, liquidity, positioning, or news.
The levels depend on the PulseWire symbol selected, the available historical data, and the chosen lookback window.
Why it may be useful
Many traders look at monthly opens, monthly ranges, and volatility-based zones separately. This script combines those ideas into one clean open-source tool: monthly open-based statistical levels built from completed historical monthly extensions.
It helps traders visualize where price is trading relative to its own historical monthly behavior, while keeping the chart simple and readable. Indicator

Friction Map [NovaLens]Friction Map reads price structure the way a floor trader reads a room: it finds the price shelves where the market actually spent time, marks which ones are still live versus which the market has abandoned, and measures how much clear air you have to the nearest live shelf in each direction. It is a map of where structure is, how alive it is, and where the open space sits - not a buy or sell signal.
Most support/resistance tools draw static lines and leave them there forever, so the chart fills with levels that stopped mattering 300 bars ago. Friction Map keeps the same structure honest over time: every shelf carries a freshness that decays once the market stops trading at it, so the orange (live) shelves are the ones price has interacted with recently and the gray (fading) ones visibly age out.
═════════════════════════════════════════
◈ HOW TO READ IT
Friction Map draws directly on the price chart. There are two views of the same structure.
The shelves.
Orange = LIVE - price traded here recently; this is the current structure context.
Gray = FADING - price has not returned in a while; the market has moved on and the shelf dims the longer it stays untouched.
Faint dotted = BROKEN - price closed through it; an x-cross marks the exact bar it failed, and the dotted tail is kept so you can still see it existed.
KEY LEVEL - the strongest live shelf on the map (boldest line, brightest tag). The eye's anchor.
The room boxes. On the right edge, a box runs from current price to the nearest LIVE shelf above and below, with a label that reads the distance as a near-to-far range in ATR, for example "1 to 2.1 ATR" - meaning roughly 1 ATR of clear air, then the shelf running out to 2.1 ATR. ATR units make the read comparable on any symbol and timeframe. Teal means clear room; orange means a live shelf sits within about 1 ATR. When there is no live shelf in a direction the label reads "open air".
The breakout badge. On a confirmed close that breaks the recent range, and only at the extremes, the map prints a one-word context badge: CLEAR RUNWAY when there is no live shelf within the runway band ahead, or WALLED (with the distance) when a live shelf stands within about 1 ATR of the path. Only one CLEAR RUNWAY prints per clear-air leg - no repeats while price keeps running in the same open space, and it resets once price pulls back into a shelf. It is breakout context, never a direction call.
The info panel. A compact info panel compiles the read: the structure memory in bars; Room above and Room below as ATR ranges; Price now (open air, on a live shelf, or on a fading shelf); Last breakout (the most recent badge and how many bars ago); Shelves (how many live versus fading); and a one-line Reading takeaway.
The two views (Level view).
Anchored (default): each shelf line starts at its origin diamond, shows its current live (orange) / fading (gray) state from that origin, and marks the x-cross where it broke. An anchored structure story - where structure formed, how it reads now, and where it broke if broken - not a full per-era ledger.
Zones : every live shelf drawn as a clean full-width band straight across the chart, like a supply/demand map. Instant "where are my levels right now". No origin/break markers; broken shelves drop off.
═════════════════════════════════════════
◉ HOW IT WORKS
The density field. Across the lookback window, the indicator measures how often each price level sat inside the high-low range of the lookback bars - a time-at-price-style structure read. For every bar it asks which price levels the bar's high-low range covered, and accumulates that into a density field using a difference-array method (O(L+bins) per bar) so the script stays fast even on long charts and heavy lookbacks. Price levels where many bars overlapped are dense; levels price passed through quickly are thin.
Where shelves are born. A shelf forms at a density peak whose strength clears a RELATIVE floor - it must be at least a set fraction of the strongest peak currently on the map. That relative test is self-calibrating: it adapts to each asset and regime instead of relying on a fixed tick count, so the same indicator is designed to read BTC, SPY, EURUSD and gold without constant retuning. A small absolute floor screens out noise on near-empty windows.
Data-driven width. Each shelf's band is not a fixed width. It expands outward from the peak for as long as the neighbouring density holds at least half the peak value, then is capped to a readable range in ATR units. A wide consolidation earns a wide shelf; a tight one stays thin.
Aliveness (freshness). Every shelf carries a freshness equal to an exponential decay of the bars since the band was last traded (2^(-barsSinceTouch / halfLife)). Freshness is 1 while price is in the band and halves every half-life once price leaves. Above the live threshold a shelf renders LIVE (orange); below it the shelf renders FADING (gray) and dims further until it drops off the map.
Causal lifecycle. Shelves are born on confirmed bars and never re-placed. A shelf becomes BROKEN only when price, after arming on one side with real separation, closes through to the other side - the break bar is frozen and the line continues as a faint dotted tail. The ORIGIN anchor (the earliest bar within the lookback where price actually traded that level) and the BREAK anchor are both set once and never rewritten. That frozen history is the trust element: the map cannot quietly redraw the past to look right.
═════════════════════════════════════════
✦ HOW WE USE IT
A common read on a liquid crypto or index chart, default memory: price is pushing toward the top of its recent range. The panel Room above reads "0.4 to 1.6 ATR" in orange - there is a live shelf close overhead, so the map reads the upside as walled in the near term. Room below reads "open air" - nothing live underneath. Price is sitting in open air between an overhead live shelf and abandoned structure far below.
Now price closes through the recent high. Because the nearest live shelf overhead was inside the runway band, the map prints WALLED with the distance, not CLEAR RUNWAY - the break is into immediate structure, not open space. The badge does not say the break fails; it says there is a live shelf standing in the path, which is the context a discretionary trader wants before deciding whether the move has room.
Flip the situation: a confirmed break with Room ahead reading "open air" prints CLEAR RUNWAY . In our testing, clear-runway breakouts travelled further on average than walled ones (the effect was modest and weakest on rates). That is an observation about context, not a guarantee about the next bar.
The point of the map is the same in every case: see where the live structure is, see how much clear air you have to it in ATR, and read the breakout against that structure instead of against a static line.
═════════════════════════════════════════
❖ OTHER APPLICATIONS
Trade-location context : read entries against the nearest live shelf rather than a static S/R line - the orange shelves are the structure price has interacted with most recently.
Breakout context : CLEAR RUNWAY versus WALLED on a confirmed break, as a read on whether there is open space ahead or a live shelf in the path.
Stop and target context : the room ranges in ATR give a structure-aware sense of where the nearest live shelves sit above and below, for evaluating whether planned stops or targets sit near recent structure or out in open air, instead of at round numbers.
Chop filter : many overlapping live shelves with price standing on one ("on a live shelf" in the panel) is a congested read; sustained open air is cleaner trend space.
Structure classifier : use the Shelves row (live versus fading) and Room rows as a top-down structure filter for any external trade plan, independent of the badges.
Alert-driven workflow : subscribe to the clear-runway and walled breakout alerts and check the chart only when a confirmed breakout actually changes the structural picture.
═════════════════════════════════════════
⚙ GETTING STARTED
Friction Map ships with pre-tuned memory profiles plus a Custom override. Pick a memory and start reading the map - the default Auto setting matches the chart timeframe for you.
Structure memory:
Auto (match timeframe) (default): reads the chart - 30-minute and faster get Short, everything slower gets Medium.
Short (60 bars) : about one trading day on 5m, a week on 1H. Faster-moving map.
Medium (120 bars) : about a month on 1H, six months on 1D. Balanced.
Long (240 bars) : slow, full-cycle structure.
Custom : unlocks the Advanced group for full manual control.
Core display:
Level view : Anchored (causal story, default) or Zones (clean full-width bands).
Structure shelves : master toggle for the shelf lines. On by default. Under it, three per-state toggles let you choose which states draw:
Live shelves (orange) , Fading shelves (gray) , Broken shelves (dotted) - all on by default. Turn Broken off to declutter when a level has rebuilt live on top of old broken tails.
Room boxes + labels : the price-to-nearest-live-shelf boxes and ATR range labels. On by default.
Breakout badge : CLEAR RUNWAY / WALLED context badges on confirmed breakouts. On by default.
Shelf state tags : a small LIVE / FADING / KEY LEVEL tag at the right end of each shelf. On by default; turn off for a cleaner chart once the colours are familiar.
Show real shelf width : off by default (live shelves get a thin subtle halo). On draws each live shelf at its true data-driven width as a wider transparent band.
Info panel : pick where the summary panel anchors - Top Right (default), Top Left, Bottom Right, Bottom Left, Middle Right, or Off to hide it.
Dark theme panel : panel colours for dark charts; turn off on a light background.
Level reach (bars) : how far back the shelf lines and halos draw, so old structure does not stretch across the whole chart.
Appearance / Colours (4 pickers):
Live shelf, Fading shelf, Clear air, Broken shelf - each on its own line. The shelf lines, halos, room boxes, tags and badges all reference these inputs, so the palette adapts for colour-blind, light-mode or brand themes without forking the script.
Advanced (Memory = Custom only): Custom opens on the same defaults as the Medium profile (not a live copy of whichever profile you are currently on), so coming from Medium the switch is seamless; coming from Short or Long the map steps to that baseline first. Then every dial below is yours.
Lookback (bars) : structure memory in bars. Larger = more history considered, slower-moving map.
Freshness half-life : how fast a shelf fades once the market stops trading at it. After this many bars untouched a shelf is at half freshness.
Breakout lookback : a breakout is a confirmed close that newly breaks beyond the prior N-bar high or low (a fresh cross, so a sustained trend does not re-fire it every bar).
Min strength (vs strongest) : a shelf is born only if its density is at least this fraction of the strongest peak on the map. Raise for fewer, stronger shelves.
Merge distance (ATR) : shelf candidates closer than this to an existing shelf refresh it instead of spawning a duplicate.
Max shelves : cap on simultaneously tracked (non-broken) shelves; the weakest is pruned when a stronger one is born.
Live threshold : freshness above this renders a shelf LIVE (orange).
Runway band (ATR) : how far ahead of a breakout to scan for live shelves when deciding CLEAR RUNWAY versus WALLED.
═════════════════════════════════════════
△ LIMITATIONS
Descriptive, not predictive : Friction Map shows where price spent time and how alive that structure is. It makes no claim that a shelf will hold or that a breakout will follow through. There is no buy or sell signal anywhere in the tool.
Time-at-price, not volume : the density field is built from how much of the traded range sat at each level, not from volume. That keeps the read universally stable across every asset and data feed (crypto volume is fractured by exchange, FX volume is a tick proxy), but it does not weight a busy bar more than a quiet one.
Backward-looking by construction : in fast moves and gaps, room can jump to "open air" quickly as price leaps into untraded territory. That is accurate but may not persist.
Room measures to LIVE shelves only : the room ranges and the badge ignore fading shelves on purpose - the room read focuses on the current (orange) structure. A fading shelf still shows on the chart as a gray line; it just is not counted as room.
The breakout effect is context, not edge : in testing, clear-runway breakouts travelled further than walled ones on average, but the difference was modest and weakest on rates. Treat the badge as context to read alongside your own plan, not as a validated signal.
Recency fade : a structurally important level that has not been traded in a long time will fade from the map even if you still consider it important. Lengthen the memory or half-life if you want older structure to persist.
═════════════════════════════════════════
🔔 ALERTS
Two alert conditions are built in so you can monitor structure without watching every bar:
Clear-runway breakout : a confirmed breakout into clear air (no live shelf within the runway band ahead).
Walled breakout : a confirmed breakout into nearby live structure (a live shelf within about 1 ATR of the path).
Both fire on bar close (gated on `barstate.isconfirmed`) - no intrabar repaint. The indicator also emits a richer alert with a pure-JSON payload for routing to your own automation or webhook stack. The payload carries the brand, the indicator name, the event, the direction, the up and down clearance in ATR, the current price, the ticker, the timeframe and the bar time (the clearance fields are sent as text and read "open" when there is no live shelf that way). Pick ONE mechanism per event - the dropdown alert condition for a simple notification, or the JSON alert for a webhook - so you do not get duplicate notifications. Badges and alerts fire even when the on-chart badge is toggled off; alerts should not require chart clutter.
═════════════════════════════════════════
⌁ NOTES
Built on a containment-count density field (time-at-price), with data-driven band width, exponential freshness decay, and a causal frozen lifecycle (origin and break anchors set once and never moved).
Method lineage: the density field is a time-at-price construction, in the tradition of Market Profile (J. Peter Steidlmayer, popularised at the CBOT in the 1980s), which reads structure from where the market spent time rather than from volume. Friction Map adds the freshness decay and the causal live/fading/broken lifecycle on top of that classical time-at-price idea.
Repaint: non-repainting on confirmed bars. Births, breaks, clearance, badges and alerts are computed on bar close; the current bar updates in real time. Live/fading colour reflects current state, so a re-traded faded shelf can re-colour live - no past origin or break anchor is ever changed.
Original construction. The engine is built from first principles for this tool; there is no external reference implementation, so no validation-correlation claim is made.
Open-source under MPL 2.0. Free to use, fork, study.
NovaLens Indicator

Liquidity Sweep Retracements [MarkitTick]💡An advanced analytical framework designed to decode market micro-structure by evaluating the depth, speed, and statistical probability of price pullbacks. Rather than relying solely on static Fibonacci levels, this tool dynamically tracks the historical characteristics of an asset's swing behavior, alerting the user to structural anomalies and shifts in momentum. By intersecting retracement analysis with liquidity sweep detection and a built-in heatmap, this framework offers a comprehensive lens into market behavior, isolating environments where trend continuation is highly probable versus areas prone to exhaustion.
✨ Originality and Utility
Standard market analysis often relies on rigid tools that do not adapt to changing volatility conditions. This script introduces a highly original dynamic evaluation method by actively saving the characteristics of recent price swings into an internal array and establishing a moving statistical baseline.
The primary utility of this script lies in its multidimensional analysis. It does not just measure how far price has pulled back; it calculates how fast the pullback occurred and compares this velocity to the asset's recent historical baseline. This enables the framework to categorize price action not merely as a "pullback," but as a statistically significant "Anomaly" or an "Aggressive" move. Furthermore, by weaving Higher Timeframe (HTF) trend alignments and localized liquidity sweep detections into a single, cohesive dashboard and visual charting environment, it reduces chart clutter while exponentially increasing the depth of available data.
🔬 Methodology and Concepts
● Swing Structuring and Pivot Detection
The foundational logic relies on identifying structural pivot highs and lows through a localized lookback and look-forward window. The algorithm requires a definitive peak or trough isolated by user-defined left and right bars, establishing the anchor points for all subsequent mathematical measurements.
● Dynamic Retracement Scoring
Once a swing structure is confirmed, the script calculates the exact percentage of the retracement relative to the preceding impulse. These percentages are continuously categorized into defined behavioral zones:
Impulse (Less than 23%)
Shallow (Less than 38%)
Healthy (Up to 61.8%)
Deep (Up to 78.6%)
Reversal (Beyond 78.6%)
● Retracement Momentum Velocity (RMV)
Time and price are merged to extract velocity. By dividing the total percentage of the retracement by the number of bars it took to form, the script generates a velocity reading. This reading is dynamically compared against an array of historical velocities to determine if the current counter-trend move is unusually aggressive.
● Statistical Anomaly Detection
The script manages historical arrays of past retracement data, calculating a rolling mean (average) and standard deviation. An anomaly is triggered when a live retracement deviates significantly from this moving baseline, determined by a user-defined standard deviation multiplier. This mathematically highlights structural shifts before they mature into full trend reversals.
● Liquidity Sweep Verification
The indicator actively monitors price interactions with localized structural extremes. A bullish sweep occurs when price pierces a recent significant low but closes decisively above it, creating a structural trap. Bearish sweeps apply the inverse logic to structural highs.
🎨 Visual Guide
● Heatmap Candles
The script overrides standard candle colors with a dynamic heatmap that visually translates the health and speed of the current retracement:
Green indicates a healthy, standard retracement zone.
Orange highlights a weak zone, suggesting the trend is losing foundational strength.
Red warns of a deep structural violation bordering on a reversal.
Purple explicitly signifies an aggressive Retracement Momentum Velocity (RMV), warning of high counter-trend momentum.
● Price Action Overlays and Labels
Pivot Highs and Lows are marked precisely with small red and green crosses. (Note: These appear retroactively once the defined right-side bars confirm the pivot).
Data Labels are plotted at swing extremes. These carry a dark blue-gray background with dynamic text colors. They display the exact retracement percentage alongside quality badges, anomaly alerts (orange for opportunity, red for danger), and RMV warnings.
● Liquidity Markers
When a sweep is detected, small distinct shapes appear. "LS" text markers are plotted in bright green below bullish sweeps and bright red above bearish sweeps, visually anchoring liquidity traps directly onto the price action.
● The Analytical Dashboard
Located in the top right corner, this panel serves as the central intelligence hub. It utilizes shaded backgrounds to organize critical data natively on the chart.
Retracement and Health bars utilize block characters (█/░) to visualize strength out of 100%.
HTF Alignment displays the macro bias via clear text and color codes (Green for Bullish, Red for Bearish).
The dashboard aggregates averages, velocities, and quality metrics into a readable, high-contrast matrix.
📌 Note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
📖 How to Use
Traders should monitor the dynamic relationship between the visual candle heatmap and the dashboard metrics.
Trend Continuation: Look for retracements that remain within the "Healthy" or "Shallow" zones (highlighted by green candles and positive dashboard health scores) that align with a bullish HTF signal.
Anomaly Exploitation: If an anomaly label appears marking a shallow retracement (orange text warning), this historically suggests an unusually strong impulse where standard deep pullbacks may not materialize.
Exhaustion Warnings: If the candles shift to purple, indicating an RMV Aggressive state, the counter-trend velocity is statistically high. Traders may use this to delay entries until momentum normalizes, or to identify structural traps if this aggression ends in a marked Liquidity Sweep (LS marker).
⚙️ Inputs and Settings
• Swing Settings
Controls the sensitivity of pivot detection. Higher values filter out market noise for major swing structures, while lower values react quickly to micro-trends.
• Retracement and Anomaly Parameters
Dictates the maximum number of historical retracements held in the memory array. The Standard Deviation Threshold allows users to expand or contract the mathematical boundary for what qualifies as an anomaly.
• RMV (Velocity) Limits
Controls the aggression threshold. Adjusting the multiplier determines how much faster a retracement must be compared to the historical average to trigger the purple heatmap and aggressive warnings.
• Liquidity Sweeps
Defines the lookback length for identifying local highs and lows that act as liquidity pools.
• Alerts and Dashboard Configuration
Enables fully customizable JSON-formatted alerts based on statistical deviations, and allows users to toggle or completely restyle the visual dashboard and heatmap components.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator is heavily anchored in statistical mechanics and kinematics principles applied to financial time-series data.
• Gaussian Distribution and Variance
Instead of utilizing fixed geometric sequences (such as the Golden Ratio), the framework treats market swings as a dataset exhibiting normal distribution characteristics. By calculating the variance and extracting the standard deviation of historical swing depths, the script establishes mathematically sound confidence intervals. When price action breaches these standard deviation bands, it represents a statistically significant outlier, formally alerting the user to a fat-tail market event.
• Financial Kinematics
The integration of Retracement Momentum Velocity (RMV) introduces physics-based kinematic principles to price action. In traditional mechanics, velocity is the rate of change of position with respect to a frame of reference. The algorithm defines the frame of reference as the structural swing, calculating velocity as the percentage of displacement per unit of time (bars). By tracking the rolling average of this velocity, the script can algorithmically determine when kinetic energy in a counter-trend direction is statistically abnormal, independent of the actual price level reached.
⚠️ 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. Indicator

Visible Range Support and Resistance [BigBeluga]🔵 OVERVIEW
Visible Range Support and Resistance is a dynamic support/resistance tool that analyzes price structure only within the visible range of your chart. It detects key levels based on clustered pivots inside a binned vertical range and highlights zones where price has historically reacted. The tool adjusts in real-time as you pan or zoom, offering adaptive precision at any scale.
🔵 CONCEPTS
Pivot Clustering: Price highs/lows are collected into horizontal "bins" across the visible chart range. If multiple pivots align within a bin, that area is marked as a potential support or resistance zone.
Visible Range Only: Calculations are limited strictly to the bars currently visible on the chart. Zooming or panning changes the result.
Bin System: The visible high-to-low range is divided into 100 horizontal zones (bins) to group pivots and detect confluence.
Multi-Threshold Detection: Users can enable two separate S/R detection levels with different pivot count thresholds for more nuanced signals. The more pivot points a level has, the thicker and richer the color.
Directional Context: Labels include arrows (▲ or ▼) to show whether the current price is above (support) or below (resistance) each zone.
Range Boundaries: The top and bottom of the visible range are marked with dashed lines and labeled as Top Range and Bottom Range .
🔵 FEATURES
Detects S/R zones based on the number of pivots found within each price bin.
100 horizontal bins divide the visible price range, allowing high resolution detection.
Only uses data from visible bars—zooming out recalculates the indicator for more data.
Customizable number of pivot confirmations (e.g., 2, 3, 4, 5) before a level is shown.
5 Pivots
Dual-level detection lets you show stronger and weaker zones separately.
Automatically colors support (green) and resistance (blue) with dynamic intensity.
Labels show pivot count and direction (support/resistance).
Automatic cleanup of overlapping levels for visual clarity.
Dashed top/bottom range markers help define the visible scope.
Session SMA calculates from the visible range start (from the chart edge)
Visible range bars count
🔵 HOW TO USE
Zoom in for precise intra-range support and resistance zones based on current structure.
Zoom out to load more pivot data and identify long-term levels.
Use the pivot threshold (e.g., 3 or 4) to control signal strength—higher = stronger levels.
Watch for price reactions or breakouts around high-pivot zones to identify key areas.
Combine with trend, volume, or order flow tools to confirm the relevance of each S/R zone.
Adjust line and label colors for better contrast with your chart theme.
🔵 CONCLUSION
Visible Range Support and Resistance is a smart, range-sensitive tool for mapping meaningful horizontal levels. By scanning only what you see on the screen, it provides an adaptive edge to traders focused on real-time price action. Whether you’re scalping short-term zones or zooming out for macro structure, this tool flexes with your view to keep the most relevant levels front and center. Indicator

Smart Gap & Support and Resistance Breakout [MarkitTick]💡 This technical analysis script provides a highly sophisticated framework for market structure mapping, gap categorization, and breakout validation. By tracking structural pivot points and combining them with algorithmic gap analysis, the indicator systematically identifies areas of significant price imbalance and evaluates their impact on subsequent price action. The tool dynamically maps historical and developing support and resistance levels across multiple timeframes, integrating volume analysis and time-decay functions to ensure only the most relevant structural levels remain active. Designed for robust technical evaluation, it utilizes a strict non-repainting architecture for its multi-timeframe data retrieval, ensuring historical integrity during retrospective analysis.
✨ Originality and Utility
While many indicators plot basic support and resistance levels or highlight price gaps, this tool introduces a high degree of originality through its algorithmic synthesis and mashup methodology. The combination of structural pivot tracking and gap categorization is a deliberate and logical confluence. Gaps inherently represent sudden shifts in supply and demand, frequently acting as hidden support or resistance zones. By merging gap analysis with traditional pivot-based market structure, the script provides a unified view of market geometry.
Furthermore, the script distinguishes itself by categorizing gaps dynamically into three distinct types: Breakaway, Runaway, and Exhaustion. Rather than treating all price voids equally, it applies contextual logic—such as trend maturity and volume confirmation—to evaluate the probabilistic nature of the gap. The utility is further enhanced by an advanced multi-timeframe engine that overlays macro structural levels onto the active chart without introducing lookahead bias, providing traders with a pristine, top-down analytical perspective within a single pane.
🔬 Methodology and Concepts
● Structural Pivot Detection
The foundation of the script relies on identifying Swing Highs and Swing Lows.
A Pivot High is established when a specific high price is preceded and followed by a defined number of lower highs.
A Pivot Low is established when a specific low price is preceded and followed by a defined number of higher lows.
These points act as the empirical anchors for drawing support and resistance lines.
● Gap Categorization Engine
The script continuously scans for bullish and bearish price gaps (defined as a strict price void between the current low/high and the high/low of two bars prior, combined with directional candle confirmation). Once a gap exceeds the minimum size threshold, it is classified using the following methodology:
Breakaway Gaps (BW): Identified if the gap's occurrence coincides with the breaking of the most recently established structural pivot level. This signifies a forceful escape from a prior consolidation or trend phase.
Exhaustion Gaps (EX): Identified if the gap occurs after a prolonged trend duration (trend maturity) and is accompanied by a significant volume spike. This logic assumes that late-stage acceleration coupled with extreme volume often represents climatic buying or selling.
Runaway Gaps (RW): Any valid gap that does not meet the strict criteria for Breakaway or Exhaustion is classified as Runaway, representing standard trend continuation.
● Non-Repainting Multi-Timeframe Integration
To map higher timeframe (HTF) levels onto the lower timeframe (LTF) chart safely, the script employs a strict index-offset methodology. When fetching HTF pivot data, the script references the previous bar's calculated state while utilizing a lookahead parameter. This architectural design explicitly prevents future data leakage (lookahead bias), ensuring that historical backtesting and real-time execution behave identically.
● Breakout and Time-Decay Logic
Support and resistance lines are evaluated for breakouts based on closing prices. A breakout is only considered valid if the closing price decisively crosses the level and, if volume confirmation is enabled, the breakout bar's volume exceeds the defined moving average threshold. To maintain a clean visual workspace, levels can be subjected to a time-decay function, removing them from the chart after a user-defined number of bars.
🎨 Visual Guide
● Support and Resistance Lines
Green Lines: Represent active support levels derived from current timeframe pivot lows.
Red Lines: Represent active resistance levels derived from current timeframe pivot highs.
Thick Light Blue Lines: Highlight major support levels from the higher timeframe.
Thick Orange Lines: Highlight major resistance levels from the higher timeframe.
● Market Structure Labels
Red "HH" / "LH" Labels: Denote Higher Highs or Lower Highs at resistance pivots.
Blue/Green "LL" / "HL" Labels: Denote Lower Lows or Higher Lows at support pivots.
Purple "EH" / "EL" Labels: Indicate Equal Highs or Equal Lows.
● Gap Visualization Boxes
Blue Boxes: Highlight Breakaway Gaps (BW).
Orange Boxes: Highlight Runaway Gaps (RW).
Red Boxes: Highlight Exhaustion Gaps (EX).
Dotted Mid-Lines: Each gap box contains a dotted line calculating the exact mathematical midpoint of the gap, often acting as a highly reactive micro-level.
● Breakout Markers
Green Upward Triangles (▲): Plotted below the price to indicate a confirmed breakout of a resistance level. The number indicates how many distinct resistance levels were broken on that bar.
Red Downward Triangles (▼): Plotted above the price to indicate a confirmed breakdown of a support level.
Cyan/Orange Triangles: Represent breakouts of higher timeframe (HTF) levels.
📖 How to Use
● Interpreting Gap Signals
Breakaway Gaps: When a blue Breakaway gap forms, it suggests the initiation of a new directional phase. Traders typically monitor the borders of this gap to act as strong support or resistance upon any subsequent retests.
Runaway Gaps: The appearance of an orange Runaway gap confirms underlying trend strength. The midpoint of these gaps (the dotted line) is often used to gauge short-term trend health.
Exhaustion Gaps: A red Exhaustion gap serves as a cautionary signal. Because it indicates mature trend fatigue coupled with high volume, it suggests that the current directional momentum may be nearing a terminal phase or sharp retracement.
● Trading Support and Resistance Breakouts
Structural Mapping: Use the dynamically drawn S/R lines to identify the boundaries of the current market range.
Volume Confirmation: When the indicator plots a breakout triangle, ensure that it aligns with your broader directional bias. If the volume confirmation setting is active, the triangle inherently signifies that the breakout possessed above-average participation, increasing the mathematical probability of continuation.
Multi-Timeframe Confluence: Pay special attention when current timeframe price action interacts with the thicker HTF lines. A breakout that fractures both a LTF and HTF resistance level simultaneously carries significantly more structural weight.
⚙️ Inputs and Settings
● Swing Logic
Left Bars / Right Bars: Determines the number of bars required on either side of a candle to confirm a structural pivot. Higher values yield longer-term, more significant levels.
Max Stored Levels: Controls how many historical S/R lines remain active on the chart to prevent visual clutter.
Max Break Labels: Limits the number of historical breakout triangle markers displayed.
● Usability and Time Decay
Multi-Timeframe: Allows overriding the base timeframe for calculations.
Enable Time Decay: When activated, S/R levels that remain untested or unbroken will automatically expire and be removed from the chart.
Decay Period (Bars): The specific threshold of bars after which an untested level is deleted.
● Higher Timeframe (HTF) Levels
Enable HTF Levels: Toggles the calculation and plotting of macro S/R lines.
HTF Timeframe: The target timeframe for macro structural analysis (e.g., Daily, Weekly).
Hide Current TF When HTF Active: A visual filter to isolate only macro levels when desired.
● Algorithmic Filters and Analysis
Volume Confirmation: When true, breakouts are only validated if the bar's volume exceeds a moving average.
Min Gap Size (Points): Establishes a raw point threshold that a price void must exceed to be classified as a gap, filtering out negligible price skips.
Volume Spike Multiplier: The factor by which current volume must exceed the average to trigger Exhaustion gap logic.
Trend Maturity (Bars): The minimum number of bars a trend must have persisted from the last major pivot to allow for an Exhaustion gap classification.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Auction Market Theory and Liquidity Voids
The gap categorization matrix within this script is deeply rooted in Auction Market Theory (AMT). In AMT, price discovery is a continuous auction searching for liquidity. A gap represents a structural liquidity void—a pricing zone where no double-sided auction occurred due to extreme urgency from either buyers or sellers. The script's identification of Breakaway gaps mathematically isolates moments where this urgency successfully overcomes historical supply or demand nodes (the pivots). The dotted midpoint lines inside the gap boxes serve as theoretical "Fair Value" approximations for the void, representing the mean reversion target if the market attempts to repair the inefficient auction.
● Volume Spread Analysis (VSA) Integration
The Exhaustion gap classification heavily relies on principles derived from Volume Spread Analysis. In VSA, volume represents the effort of market participants, while price spread represents the result. The script mathematically quantifies an anomaly: when an extended trend (measured by the Trend Maturity parameter) produces a sudden gap on extreme volume (measured by the Volume Spike Multiplier), it implies climactic transfer of inventory from strong hands to weak hands. The algorithmic detection of these specific variables provides a quantifiable method for identifying trend exhaustion without relying on lagging, bounded oscillators.
● Fractal Market Geometry
By rendering both LTF and HTF structural pivots within the same visual plane, the script operationalizes the concept of fractal market geometry. Financial time series exhibit self-similarity across different scales. A pivot high on a 15-minute chart is formed by the same behavioral mechanics as a pivot high on a Daily chart, but they carry vastly different liquidity weights. The script's strict index-offset MTF architecture ensures that the geometric relationship between these distinct fractal layers is evaluated with absolute temporal accuracy, providing a mathematically sound representation of macro supply and demand overlaying micro price action.
⚠️ 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. I 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. Indicator

Indicator

Indicator

ORB WindowsA clean, fully configurable Opening Range Breakout indicator with up to three simultaneous time windows. This script lets you define your own windows. Set them to whatever your session or strategy calls for.
Three configurable windows
Each window tracks its own high and low independently. Window 1 defaults to 5 minutes, Window 2 to 15 minutes, Window 3 to 60 minutes (hidden by default). Set any window to whatever range you want. Lines are visually differentiated: W1 is solid, W2 is dashed, W3 is dotted.
Break and confirm markers
Two signals per level, per window:
Small triangle — price ticked through the level (break)
Larger triangle — candle closed through the level (confirmation)
Filtering on close confirmation reduces noise from wicks and fakeouts.
Range label
When each window locks in, a label shows the high, low, and range size in both points and percentage. Useful for quickly assessing whether the ORB is tight or wide before deciding how to trade the break.
Formation window highlight
A subtle background color marks the W1 formation period so you can see exactly which candles built the range.
12 alert conditions
Four per window: break above, break below, close above, close below. Wire them up however your workflow calls for.
Settings
ORB Windows: set the duration (in minutes) for each of the three windows
Visibility: toggle each window, markers, range label, and formation highlight independently
Colors: fully customizable per window
Designed for intraday use. Works on any liquid instrument with a defined regular session. Indicator

Multi Timeframe ProMulti Timeframe Pro — HTF Levels + Anchored VWAP
Two indicators in one clean overlay: previous-candle ranges from up to 3 timeframes, plus a fully customizable anchored VWAP with bands.
▌ Features
• Boxes for the LAST CLOSED candle of up to 3 timeframes (High, Low, dashed Mid)
• Anchored VWAP with 2 standard-deviation bands — no background fills
• Live countdown table — see when the next candle of each TF closes
• Per-TF in-indicator alerts (line crossing / bar closes outside)
• Clean line labels — e.g. "1D High", "4h Low"
• Auto-warning if a non-standard chart (Heikin Ashi, Renko, …) is used
▌ Defaults
TF 1 1D yellow
TF 2 4H aqua
TF 3 15m off
VWAP Session-anchored
Mid white, solid
Band 1 white, dashed, ±1 StDev
Band 2 gray, dashed, ±2 StDev
▌ Quick Start
1. Add to any chart (TF ≤ your highest configured TF)
2. Boxes update automatically when the higher-TF candle closes
3. For alerts: enable toggles in the Alerts section, then add ONE PulseWire alert with
Condition: Multi Timeframe Pro
Function: Any alert() function call
Trigger: Once Per Bar Close
▌ Notes
• Pine v5
• Use standard candle charts (a red warning appears in the table otherwise)
• VWAP requires a symbol with volume — disable it for FX if needed Indicator

Ranked Support & Resistance Zones (Zeiierman)█ Overview
Ranked Support & Resistance Zones (Zeiierman) is an adaptive S/R engine that transforms traditional pivot-based support and resistance detection into a dynamic ranking, filtering, and prioritization system.
Instead of plotting every detected level equally, the script stores each support and resistance zone as a structured data object, evaluates its quality in real time using multiple market factors, and continuously ranks all active zones by relative strength.
The result is a cleaner, more intelligent support/resistance framework that focuses on the most relevant zones currently influencing price action.
█ How It Works
⚪ Structured S/R Zone Engine
Each detected support or resistance area is stored as a structured UDT object containing its price range, direction, midpoint, width, mitigation state, touch count, volume behavior, trend alignment, swing quality, internal strength, and overall ranking score.
This allows every zone to behave like an active market structure rather than a static horizontal level.
The script detects resistance from confirmed pivot highs and support from confirmed pivot lows. Each pivot is filtered using ATR-normalized swing quality, helping the system adapt across different assets, volatility conditions, and timeframes.
⚪ Dynamic Quality Ranking
Every S/R zone receives a continuously updated quality score based on:
• Zone width relative to ATR
• Volume behavior
• EMA trend alignment
• Pivot swing quality
• Touch count
• Mitigation progress
• Zone age decay
All S/R zone objects are stored inside an array and ranked using Pine Script’s native UDT collection sorting:
srZones.sort(order.descending, sort_field = "score")
This allows the script to dynamically reorder all active support and resistance zones in real time, prioritizing the strongest market structure while weaker or older zones gradually lose ranking.
⚪ Smart Zone Management
After sorting, only the highest-ranked zones are displayed on the chart while lower-ranked zones remain internally tracked but hidden from view.
Similar zones of the same direction can be absorbed into an existing zone when they are close enough or meaningfully overlapping. This helps reduce clutter and creates cleaner support/resistance areas instead of stacking many nearby levels.
Each zone also tracks mitigation progress. As price trades deeper into a support or resistance zone, mitigation increases, and the zone’s quality score weakens. When the price closes beyond the ATR-based break buffer, the zone is marked as broken and converted into a broken-zone reference.
⚪ Internal Strength Distribution
Every active zone contains bullish and bearish internal pressure components displayed as live strength bars inside the zone.
█ How to Use
⚪ Focus on Top-Ranked Zones
Only the strongest support and resistance zones are displayed based on current market conditions and quality ranking.
⚪ Read Internal Strength Bars
• Strong support strength → stronger demand-side defense
• Strong resistance strength → stronger supply-side rejection
• Balanced pressure → weaker or less decisive structure
• Opposing pressure growth → increasing risk of mitigation or break
⚪ Watch for Retests and Mitigation
Support and resistance zones are most useful when the price revisits them after they form.
Strong reactions often show:
• Immediate rejection or bounce from the zone
• Respect for the zone boundaries
• Continuation away from the level
• Internal strength remaining aligned with the zone direction
Deeper or repeated retests can weaken the zone over time as mitigation increases and quality decays.
█ Related Scripts
Ranked FVG Imbalance Zones (Zeiierman)
Ranked Order Block Zones (Zeiierman)
█ Settings
Show Top Zones: Controls how many of the highest-ranked support and resistance zones are displayed.
Max Stored Zones: Controls the maximum number of S/R zones that can be tracked internally.
Pivot Length: Defines how many candles are required on each side to confirm a pivot high or pivot low.
Min Pivot ATR: Defines the minimum ATR-normalized pivot strength required for zone creation.
Absorb Similar Zones: Controls how close or overlapping zones must be before they are absorbed into an existing zone.
Zone Width ATR: Controls the thickness of each support/resistance zone.
Volume MA Length: Defines the baseline used for volume behavior scoring.
Trend EMA Length: Defines the EMA used for trend alignment scoring.
Break Close Buffer ATR: Controls how far the price must close beyond a zone before it is considered broken.
Keep Broken Zones: Controls how many broken zones remain visible after invalidation.
Direction Filter: Allows displaying all zones, support-only, or resistance-only.
Show Strength Bars: Shows or hides bullish and bearish internal strength bars inside each zone.
Show Zone Text: Shows or hides smart zone labels such as Weak Support, Strong Resistance, or Mitigated Support.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Indicator

Fibonacci Retracement Statistics by VolProfexFIBONACCI RETRACEMENT STATISTICS BY VOLPROFEX
=============================================
DESCRIPTION
-----------
Fibonacci Retracement Statistics is an analysis tool that
automatically detects price swings, tracks retracements within each trend,
and calculates how often price retraces to various Fibonacci levels. The
indicator labels every completed swing with its swing number and deepest
fib level reached (e.g. "▲ #12 78.6%"), and displays a statistics table
showing the count and percentage of swings reaching each level.
All visual elements (trend boxes, fib lines, retracement boxes, labels, and
the statistics table) are drawn only on the last chart bar, keeping the
indicator performant during real-time scrolling. Retracement labels update
in real time so you always see the current value for the active swing.
HOW IT WORKS
------------
1. SWING DETECTION (ATR-Deviation ZigZag)
A volatility-adaptive ZigZag engine finds pivot highs and lows. A pivot
is confirmed when price moves against the current leg by at least
ATR(period) × deviation multiplier. A minimum swing size filter discards
insignificant wiggles. A spike filter rejects reversals triggered by
bars with extreme wick-to-body ratios.
2. HIGHER-TIMEFRAME (HTF) CONTEXT (optional)
When enabled, the indicator loads data from a higher timeframe (default: 1h)
and runs the same ZigZag engine on it. Completed HTF swings are drawn as
translucent boxes on the chart. Local swings are filtered to only count
when their direction matches the HTF swing they fall inside. This removes
counter-trend noise within the larger structure.
A separate gate ("Exclude Retracements outside HTF swing") further filters
retracement contributions: only retracements where both the trend leg and
the counter-trend leg fall inside the same completed HTF box are counted
in statistics and drawn on the chart.
3. TREND & RETRACEMENT TRACKING
Alternating pivot types (high → low → high → ...) create directional
trends. For each unfinalised trend, the indicator tracks the extreme
retracement price bar by bar. When the trend completes, the retracement
percentage is calculated using the actual counter-trend leg. This value is
then compared against each enabled Fibonacci level.
4. FIBONACCI LEVEL COUNTING
A cumulative counting system tallies how many trends have retraced to
each enabled level. Levels available include: 23.6%, 38.2%, 50.0%, 61.8%,
78.6%, 88.6%, 100.0%, 127.2%, 138.2%, 150.0%, 161.8%, plus up to 5
custom levels (0–500%). The statistics table is split into UP and DOWN
sections, each with its own Level / Count / Percent columns.
5. INTRADAY TIME WINDOW (optional)
On intraday charts, you can set a session window (e.g. 09:30–16:00) to
restrict which swings are analysed. Choose between "Pivot Confirmed Inside"
(the confirming bar's timestamp must fall in the window) or "Full Cycle
Inside" (both the pivot start and confirmation must fall in the window).
A visual box overlay can be enabled to highlight the active window.
6. SPIKE FILTER
Optionally discard ZigZag reversals triggered by bars where the upper or
lower wick exceeds the body by a user-defined ratio. This helps avoid
false pivot signals from sudden, low-liquidity spikes.
SETTINGS REFERENCE (defaults optimised for BTCUSDT, 5m chart, 1h HTF)
---------------------------------------------------------------------
── SWING ENGINE ──
- ATR Period: 14
Period for ATR calculations. Shared by local ZigZag and HTF swing detection.
- ZigZag Deviation Multiplier (ATR ×): 3.0
Pivot confirmed when price reverses by ATR × this value.
- Min Swing Size (ATR multiple): 0.8
Legs smaller than ATR × this are discarded. Set 0 to disable.
── HTF CONTEXT ──
- Use Higher Timeframe Swing Context: ON
When enabled, local swings are counted only when their direction matches the
current HTF swing bias.
- HTF Timeframe: 60
Higher timeframe for context. Must be higher than the chart timeframe.
- HTF Swing Deviation (ATR ×): 3.5
ATR multiplier for HTF pivot reversals.
- HTF Min Swing Size (ATR ×): 1.5
Minimum leg size for HTF swings. Set 0 to disable.
- Exclude Retracements outside HTF swing: ON
When enabled, only retracements fully contained within a completed HTF swing
box contribute to statistics and visual output.
- Show HTF Swings: ON
Draws HTF major swing boxes on the chart (Blue = upswing, Red = downswing).
- HTF Bull Color / HTF Bear Color: Blue (50% transp) / Red (50% transp)
── FIBONACCI LEVELS ──
- Levels enabled by default: 23.6%, 38.2%, 50.0%, 61.8%, 78.6%, 100.0%,
138.2%, 161.8%
- 5 custom level slots, each 0.0–500.0%. Set to 0.0 to disable. Default: all 0.0
── FILTERS ──
- Trend Direction: Both
Options: Both / Uptrends Only / Downtrends Only
- Use Intraday Time Window: OFF
When ON, applies a daily clock window on intraday charts.
- Window Session: 0930-1600
- Window Mode: Pivot Confirmed Inside
Options: Pivot Confirmed Inside / Full Cycle Inside
- Window Timezone: Exchange (uses the symbol's exchange timezone)
- Show Time Window Box: OFF
Visual box highlighting the active intraday window.
- Enable Spike Filter: ON
Discard reversals triggered by spike bars.
- Max Wick-to-Body Ratio: 4.0
Threshold for spike detection (wick ≥ this × body).
── DISPLAY ──
- Show Trend Boxes: ON (Border Width: 1)
Bullish: Teal / Bearish: Maroon
- Show Fib Lines: ON (Width: 1, Style: Dashed, Color: Gray at 60% transp)
- Show Fib Labels: ON (Position: Right, Vertical: Center, Size: Small, Color: White)
- Show Retracement Boxes: ON (Color: Orange at 40% transp)
- Show Retracement Labels: ON (Position: Center, Vertical: Below, Size: Small, Color: Yellow)
- Max Trends Drawn: 50 (1–500)
── TABLE ──
- Table Position: Top Right
- Font Size: Small
VISUAL OUTPUT
-------------
1. Trend Boxes: Translucent coloured boxes spanning each completed swing leg.
2. Fib Lines & Labels: Dashed (or solid/dotted) lines at each Fibonacci level
with optional percentage labels on every completed swing.
3. Retracement Boxes: Overlay boxes on the counter-trend leg with a connecting
diagonal line, colour-coded by trend direction.
4. Retracement Labels: Labels on each retracement showing:
- Arrow direction (▲ = uptrend, ▼ = downtrend)
- Filtered swing number
- Deepest Fibonacci level reached
5. HTF Swing Boxes: Larger translucent boxes showing higher-timeframe swing
structure (blue = up, red = down).
6. Statistics Table: A table in one of four corners displaying:
- Level | Count | Percent for uptrends (teal header)
- Level | Count | Percent for downtrends (maroon header) Indicator

AlgoStorm Institutional Key Levels (IKL)AlgoStorm Institutional Key Levels (IKL)
For US Index Futures and DAX.
An institutional-grade structural mapping tool built on actual Auction Market Theory (AMT) to track the true liquidity and volume nodes across centralized futures markets.
The retail trading industry has heavily distorted the word "institutional," convincing traders that algorithms are hunting their stop-losses at random pivot highs. The reality is far more objective. Real institutions, hedge funds, and market makers rely on definitive, centralized exchange volume, liquidity depth, and execution algorithms (VWAP/TWAP) to scale into positions without causing market impact.
The AlgoStorm Institutional Key Levels (IKL) indicator maps the precise mathematical benchmarks that dictate this capital flow. Designed for markets with centralized volume (CME, Eurex), it plots highly accurate session opens, Opening Ranges, Initial Balances, and Value Areas, stripping away retail noise to provide a professional framework for your intraday bias.
Technical Specifications & Architecture
Supported Markets: Universal application for centralized futures markets including US Indices (ES, NQ, YM, RTY) and European Indices (DAX/FDAX, FDXM).
Supported Timeframes: Designed specifically for 2-minute through 30-minute charts . (Note: Due to the historical buffers required for multi-session mapping, Pine Script will reject timeframes below 2-minutes).
Timezone Mastery: Flawlessly handles Daylight Saving Time (DST) transitions natively. US Futures are bound strictly to America/New_York , while DAX/Eurex Futures are strictly bound to Europe/Berlin .
Fixed-Pool Drawing Engine: Most level indicators suffer from memory bloat and chart lag due to constant object creation and garbage collection limits. The IKL utilizes a highly optimized "fixed-pool" architecture. Lines and labels are generated only once on the first bar and recycled dynamically.
Smart Label Stagger: Features a forward-pass algorithm that detects and pushes overlapping labels apart (user-adjustable separation), ensuring your chart remains pristine regardless of price compression.
US Futures Mapping (ES / NQ / YM / RTY)
All inputs trigger based on standard America/New_York session times.
Globex Structure: Previous Day High/Low (Full 18:00–17:00 session) and Overnight High/Low (18:00 to 09:30 ET).
RTH Anchors: Previous Day Close (PDC) locked exactly at the 16:00 ET cash close, and the RTH Open (09:30 ET) held all day.
Gap Fill Zone: Automatically draws an asynchronous highlight box between the PDC and current RTH open if an unfilled gap of more than 2 ticks exists.
Auction Metrics: 15-minute Opening Range (09:30–09:45 ET) and the standard Initial Balance (09:30–10:30 ET) with optional 100%, 150%, and 200% IB extension bands.
Eurex / DAX Futures Mapping (FDAX / FDXM)
A complete, standalone module built for the complex, multi-open nature of European futures. Based on Europe/Berlin time.
Asian / Pre-London Phase: Tracks Eurex overnight high/low from 01:00 CET until Frankfurt liquidity arrives at 08:00 CET.
Euro / Frankfurt Session: Plots the 08:00 CET Open and the 30-minute Euro Opening Range (08:00–08:30 CET).
Xetra Cash Session: Plots the definitive Xetra Open (09:00 CET), Xetra OPR (09:00–09:30 CET), and the Previous Xetra Close (17:30 CET) which acts as the DAX equivalent to the US PDC.
US Open Impact: Captures the 15:30 CET open and 30-minute OPR, marking the massive liquidity injection when US equity markets open.
Execution & Volume Mechanics
Algorithmic VWAPs: Plots the exact Daily and Session VWAP bands used by institutional execution desks to grade their fills. Features a full Globex Daily VWAP (resets 18:00 ET), a localized NY VWAP (resets 09:30 ET), and a dedicated Xetra VWAP (resets 09:00 CET).
Custom Value Area Engine: Features a built-in, manual array-based Volume Profile engine. It calculates the Point of Control (POC) and Value Area High/Low (VAH/VAL) for both RTH and Xetra sessions independently, bypassing standard Pine Script volume limitations. Users can customize the Value Area % and price-row tick size.
Indicator

Delta Void Profile [BigBeluga]Delta Void Profile is an advanced order flow and market structure framework engineered to reveal the "negative space" in price action. By contrasting traditional volume accumulation with a unique Inverse Liquidity Void map, this indicator identifies where the market is most anchored and where it is most fragile.
While standard profiles show where the crowd has transacted, the Delta Void Profile simultaneously highlights where the market *failed* to trade, marking the "liquidity vacuums" that often dictate explosive price movements.
🔵 THE DUAL-ENGINE FRAMEWORK
The Normal Profile (Right Side): This is your primary volume distribution. It visualizes the total relative volume transacted at each price bin within the lookback period, providing a clear view of high-interest zones.
The Inverse "Void" Profile (Left Side): This profile measures the "gap" between the maximum volume peak and the current bin. Longer bars on the left signify Volume Voids —areas where price moved too quickly for significant liquidity to build.
Intraday Delta Breakdown: Within the normal profile, the script calculates a granular Buy/Sell Delta . Each bin features a central divider and percentage labels, showing exactly which side of the market dominated that specific price node.
🔵 CORE ARCHITECTURE
Liquidity Vacuum Identification: The indicator automatically highlights the "Deepest Gap"—the price area with the least historical transacted volume relative to the peak. These zones act as magnets or "slip-zones" where price is likely to expand rapidly without resistance.
HVN & Gap Pivot Detection: Depending on your strategy, the tool automatically plots dashed structural lines at either High Volume Nodes (HVN) —representing fair value and heavy support/resistance—or at Volume Gaps —representing liquidity pockets.
Dynamic Gradient Resolution: The profile uses a color-gradient system based on volume density. Brighter, more saturated bins represent institutional interest, while faded bins represent retail noise or transitional zones.
🔵 FEATURES
High-Definition Bins: Customizable vertical resolution (Bin Count) allows you to transition from a macro structural view to a high-definition "micro-scalping" look at order flow.
Delta Efficiency Labels: Real-time percentage labels on the right-hand profile give you an immediate breakdown of supply and demand percentages for every price level.
Void Strength Labels: The inverse profile calculates and prints the "Gap Percentage," explicitly labeling areas where liquidity is significantly missing.
UI Scaling: Fully adjustable global text and label sizes ensure the profile remains readable on any screen resolution or chart layout.
🔵 STRATEGIC APPLICATION
Trading the HVN (High Volume Nodes): Use HVN levels as anchors for your stop-loss or as high-probability entry points. These are prices where the market has historically agreed on "Value".
Exploiting the Voids: When price enters a high-percentage "Gap" zone on the left profile, expect increased volatility. Because there is no "friction" from historical orders, price often "teleports" through these voids until it reaches the next high-volume cluster.
Delta Confirmation: Use the Buy/Sell percentage labels to confirm breakouts. If price is breaking an HVN resistance and the delta shows high Buy dominance, the probability of a successful breakout increases significantly.
Mean Reversion Targets: Voids often act as targets for mean reversion. If price is overextended, look for the nearest "Volume Gap" pivot as a natural magnet for a relief rally or pullback.
Delta Void Profile transforms your chart into a map of institutional activity and structural weakness. By identifying the voids in the market, you can stop trading into the "heavy" areas and start targeting the "light" areas where the real price expansion occurs. Indicator

DAILY OPEN LEVELS NCO X MALL THE MALL X NCO SYSTEM
**MALL X NCO** is a proprietary, custom-built trading framework designed to map institutional-grade price geometry onto your charts. Developed from scratch, this system automates session-open mechanics by combining volatility-based expansion zones with a strict mathematical price grid.
Here is how the two creator-designed engines work together:
### 1. The MALL Engine (Proprietary Volatility Expansion)
* **What it does:** It tracks real-time market expansion starting exactly at the session open.
* **How it helps you:** Instead of using lagging indicators, it calculates precision mathematical bands (\pm 1\text{SD}, \pm 2\text{SD}, \pm 3\text{SD}) based on the asset's active momentum.
* **The Goal:** It immediately highlights extreme overbought or oversold zones, marking the exact boundaries where the market is stretching too far.
### 2. The NCO Engine (Mathematical Price Grid)
* **What it does:** It instantly projects a fixed, percentage-based or point-based grid across the chart at the start of the session.
* **How it helps you:** It slices price action into clean, highly visible technical levels (e.g., +0.5\%, +1.0\%, -0.5\%).
* **The Goal:** It removes all guesswork by providing fixed, unemotional targets for Take Profit (TP) and Stop Loss (SL) based on clean numbers.
### 🎨 The Creator's "Elite Matrix" Interface
Built specifically to eliminate mental fatigue and emotional trading under heavy risk, the visual interface uses a highly intentional, clean design:
* **Pure White:** The absolute Session Open price—the unbreakable 0% benchmark.
* **Steel Gray Zones:** Normal market noise (\pm 1\text{SD}). The "hands-off" area to protect your capital.
* **Emerald Green & Neon Red:** High-contrast execution lines for snajper entries, profit-taking, or invalidation cuts.
### 🚀 Built For High-Risk Precision
* **Candle Close Native:** Designed specifically to align with **Candle Close Validation** rules—preventing fakeouts and live-bar trap chasing.
* **Real-Time HUD Dashboard:** A custom on-screen table tracking your exact distance from the open price and predicting the next algorithmic key levels.
* **Instant Alerts:** Automated alerts trigger the exact second a candle closes or tests any core MALL or NCO boundary.
> **The Blueprint:** Designed by traders, for traders. No retail fluff, no useless clutter—just pure, cold mathematical geometry.
Indicator

Indicator
