AG Pro Structure Labels [AGPro Series]AG Pro HH HL LH LL Structure Labels
Overview / What it does
AG Pro HH HL LH LL Structure Labels is a clean market-structure reader built to simplify price action without turning the chart into a wall of signals. Its core purpose is straightforward: identify confirmed swing highs and swing lows, classify them as HH, HL, LH, or LL, and connect those points in a visually readable structure path so traders can understand the current sequence of price development at a glance.
Many market structure tools try to do too much at once. They mix structure, signals, zones, pattern scoring, and trade suggestions into a single publication, which can make the chart heavier and the analytical purpose less clear. This script takes the opposite route. It focuses on one job only: making confirmed swing structure easier to read, follow, and interpret in real time as the chart evolves.
That design choice is what gives this script its value. Instead of asking the user to interpret disconnected highs and lows manually, the script builds a visible structure chain from confirmed pivots and labels each important step. The result is a chart that remains visually disciplined while still communicating trend continuation, structural weakening, and flow transitions in a simple and repeatable format.
This script is especially useful for traders who want structure clarity before they bring in any other layer of analysis. It can be used as a standalone structure map, or as a first-pass chart-cleaning tool before applying other concepts such as support and resistance, trend continuation logic, pullback analysis, breakout validation, or discretionary execution rules.
Unique Edge
The unique edge of this script is not that it attempts to predict where price will go next. Its strength is that it organizes confirmed structure in a way that is visually clean, logically consistent, and immediately usable on live charts.
Unlike many AG Pro scripts that are built around event detection, confluence scoring, price-zone visualization, setup quality filtering, or breakout logic, this publication is intentionally narrower and more focused. It is not a BOS/CHoCH event detector. It is not a liquidity-sweep model. It is not an order-block or fair-value-gap engine. It is not a breakout-quality, retest-quality, or pattern-quality scorer. It is also not a fixed reference-level tool such as a prior-day or prior-week high/low mapper. This script is a structure readability tool first and foremost.
That distinction matters.
Previous AG Pro releases often revolve around a specific trading event: a sweep, a break, a retest, a zone reaction, a continuation pattern, or a multi-factor confluence state. This script does not begin from an event. It begins from the swing chain itself. It asks a simpler question: what is the current sequence of confirmed highs and lows, and what does that sequence imply about market flow right now?
Because of that, the script fills a different role in the broader AG Pro library. It is closer to a structural map than a setup engine. It helps answer whether the chart is still printing constructive highs and lows, whether the sequence has started to weaken, or whether the structure is now leaning in the opposite direction. That makes it useful both on its own and as a foundation layer beneath other tools.
Another important differentiator is presentation discipline. The structure path provides continuity between pivots, while the label set communicates classification without unnecessary chart clutter. The compact floating HUD reinforces the current flow state without dominating screen space. Together, these choices make the script visually premium while keeping the chart readable.
Methodology
The script uses a confirmed pivot framework. Swing highs and swing lows are identified using left and right lookback parameters selected by the user. Because pivots require confirmation, labels appear only after the structure point is confirmed by the specified number of bars. This helps reduce noise and keeps the structure map grounded in confirmed rather than speculative swing points.
Once a new pivot high is confirmed, it is compared with the prior confirmed pivot high. If it exceeds the previous confirmed high, it is classified as HH. If it does not, it is classified as LH. The same logic applies on the low side: if a confirmed pivot low is above or equal to the previous confirmed pivot low, it is classified as HL; if it is lower, it is classified as LL.
The script also includes an ATR-based structure filter. This filter is designed to suppress micro-swings that are too small relative to current volatility, which helps maintain visual cleanliness on choppier charts. Instead of drawing every minor fluctuation, the script attempts to keep attention on swings that are more structurally meaningful for the selected sensitivity.
A structure path, shown as a clean zigzag line, connects the confirmed pivots that pass the filter. This gives the user an immediate visual map of the sequence rather than a collection of isolated labels. In practice, this is one of the most useful parts of the script because it turns the market’s swing progression into a readable path.
The floating HUD summarizes the current market-flow bias in a minimalist format. It is not intended to act as a trade signal. Its job is to provide a quick structural read so the user can see whether the recent chain is leaning bullish, bearish, or transitional according to the internal swing logic.
Signals & Alerts
This script is not designed as a one-click entry engine. Its alerts are structural, not predictive.
The publication includes alerts for newly confirmed HH, HL, LH, and LL prints, which can help users monitor structure development without staring at the chart continuously. It also includes alerts for structure-flow transitions when the internal trend state turns bullish or bearish.
These alerts are best understood as workflow alerts. They tell the user that structure has progressed into a new confirmed condition. They do not guarantee continuation, reversal, breakout success, or trade profitability. Their purpose is to improve awareness of structural change, not to replace independent analysis.
Key Inputs
Pivot sensitivity is controlled through left and right lookback values. Higher values usually produce fewer but more mature structure points, while lower values usually produce a faster and denser structure map.
The ATR filter can be enabled to reduce insignificant swings. This can be particularly helpful on lower timeframes or during periods of uneven, noisy price movement.
Users can also control whether the structure path is drawn and can adjust the visual typography for labels and HUD elements. These inputs allow the script to stay visually flexible across different chart styles and screen densities.
How this script differs from other AG Pro scripts
This distinction is central to the publication.
Many AG Pro scripts are built to evaluate the quality of a setup. They may score breakouts, retests, continuation patterns, reversal candles, pressure conditions, or confluence states. Others are built around zones and reactions, such as supply-demand mapping, premium-discount logic, fair value gaps, order blocks, or support-resistance behavior. Others focus on structural events such as BOS/CHoCH changes, liquidity sweeps, inducement traps, or session-specific reactions.
This script does none of those things.
It does not measure the quality of a signal.
It does not score a setup.
It does not project targets.
It does not identify fixed daily or weekly reference levels.
It does not try to map every institutional concept on the chart.
It does not attempt to be an all-in-one decision engine.
Instead, it provides a cleaner foundation: confirmed HH, HL, LH, and LL sequencing with a filtered structural path and a compact market-flow summary.
That is precisely why it is different from the previous AG Pro script as well. If the previous release was anchored to fixed price levels, event detection, or context-specific reactions, this script is anchored to swing continuity. If another AG Pro script answers where price reacted, where a sweep occurred, whether a breakout was strong, or whether a setup deserves a quality score, this one answers a more basic but highly important question: what is the confirmed structure chain doing right now?
In that sense, this script is less about trading events and more about structural readability.
Limitations & Transparency
This script uses confirmed pivots, which means it is not attempting to label unconfirmed structure in advance. As a result, there is an intentional delay equal to the confirmation logic chosen by the user. That delay is not a flaw; it is part of the design tradeoff required to avoid premature structure labels.
Like any pivot-based structure tool, output will vary depending on sensitivity settings, timeframe, market volatility, and symbol behavior. A lower sensitivity may reveal more swing detail but can also make the map denser. A higher sensitivity may create a cleaner structure path but may respond more slowly to local shifts.
The ATR filter is a visual-cleanliness tool, not a universal truth engine. It can help reduce noise, but different traders may prefer different levels of structural compression depending on how aggressively or conservatively they define meaningful swings.
This script should also not be interpreted as a complete trading plan. It does not include position sizing, stop placement, target selection, execution logic, or market-specific risk rules. Users should combine it with their own framework, testing process, and judgment.
Risk Disclosure
This script is for analytical and educational use. It is not financial advice, investment advice, or a recommendation to buy or sell any instrument.
Market structure is an interpretive framework, not a guarantee of future price behavior. A bullish sequence can fail, a bearish sequence can reverse, and a clean structural print can still occur inside a broader context that changes the meaning of the move.
Always use independent judgment, apply appropriate risk management, and evaluate the script in the context of your own market, timeframe, and process.
Summary
AG Pro HH HL LH LL Structure Labels is built for traders who value structural clarity over indicator overload. Its role in the AG Pro catalog is distinct: it is not an event hunter, not a zone engine, and not a quality scorer. It is a clean structure reader designed to make confirmed swing progression easier to see, easier to follow, and easier to integrate into a disciplined chart workflow.
If your goal is to understand whether price is still producing constructive highs and lows, whether that chain is weakening, or whether the flow has shifted into a different structural condition, this script is designed for exactly that task.
Indicator

AG Pro Pivot Cluster Survival Map [AGPro Series]AG Pro Pivot Cluster Survival Map
Overview / What it does
AG Pro Pivot Cluster Survival Map is an overlay tool that evaluates the durability of nearby pivot clusters rather than focusing on a single pivot reaction. The script groups Daily, Weekly, and Monthly Classic Pivot levels when they compress into the same price neighborhood, then measures how well that cluster has held up under repeated interaction.
The goal is not to label every pivot touch as strong or weak. The goal is to show whether a pivot-derived zone has continued to absorb pressure, remain structurally relevant, or lose stability over time. This makes the script suitable for users who want to monitor confluence-based pivot structure instead of isolated one-bar reactions.
The visual model is intentionally compact. The script highlights the nearest upper cluster and the nearest lower cluster, assigns a survival score to each side, and displays a pressure readout for the dominant active zone. The result is a map of pivot-cluster durability, not a generic support/resistance overlay and not a simple reaction detector.
Unique Edge
The distinguishing feature of this script is its focus on pivot-cluster survival.
Many pivot tools concentrate on one level at a time. Many reaction tools classify the immediate response after a touch, reclaim, or rejection. This script approaches the problem differently. It asks whether multiple pivot levels from different higher timeframes are compressing into the same zone, and whether that zone is still surviving repeated market interaction.
That difference matters.
This script does not score a single bounce. It does not try to predict a reversal from one isolated pivot event. It evaluates whether a pivot cluster remains durable after tests, inside-zone pressure, breaches, and time spent without structural failure.
Within the AG Pro catalog, this script is materially different from AG Pro Pivot Points Reaction Map. Pivot Points Reaction Map is centered on reaction quality at pivot levels. Pivot Cluster Survival Map is centered on cluster durability, confluence density, and survival under pressure. In other words, one evaluates the response; the other evaluates the staying power of the pivot cluster itself.
It is also different from broader level-survival or support/resistance tools because the source engine here is explicitly pivot-derived. The script is built around Daily, Weekly, and Monthly Classic Pivot families, then transformed into a confluence-survival framework.
Methodology
The current version uses Classic Pivot calculations from higher timeframes.
1. Daily, Weekly, and Monthly pivot levels are collected.
2. Nearby pivot levels are grouped into clusters when they fall within the active cluster width.
3. The script selects the nearest upper cluster and the nearest lower cluster relative to current price.
4. Each selected cluster is evaluated with a survival model.
The survival model is based on factors such as:
- cluster density
- higher-timeframe participation
- repeated tests
- rejection behavior
- inside-zone pressure
- breach frequency
- time since structural failure
A higher survival score suggests that the cluster has remained more durable under recent interaction. A higher pressure reading suggests that the cluster is experiencing more structural stress.
The chart display is intentionally selective. Instead of plotting every pivot line independently, the script concentrates on the nearest relevant clusters and presents them as zones with a backbone line and state label. This is designed to keep the structure readable.
States / Signals
The script uses state-based interpretation rather than directional promises.
Typical state classifications include:
- Stable
- Strengthening
- Balanced
- Under Stress
- Fragile
- Failed
These states are derived from the relationship between survival and pressure. They are meant to describe the condition of the cluster, not to issue a guaranteed trading outcome.
The panel summarizes:
- nearest upper cluster
- nearest lower cluster
- dominant survival side
- cluster pressure
- pivot mix currently included in the model
The script can also generate alert conditions for:
- cluster strengthening
- cluster failure
- cluster reclaim behavior
These alerts are deterministic conditions derived from the script logic. They are informational and should be interpreted within a broader market workflow.
Key Inputs
Pivot Formula
This version is intentionally limited to Classic Pivots in order to keep the clustering and scoring model consistent.
Include Daily / Weekly / Monthly
These settings control which higher-timeframe pivot families are included in the cluster engine.
Cluster ATR Width
Controls how aggressively nearby pivot levels are merged into the same cluster using ATR-based spacing.
Cluster Percent Width
Adds a percentage-based width floor so clusters remain practical across different price scales.
Minimum Levels Per Cluster
Controls how many pivot levels are required before a true cluster is recognized.
Survival Lookback
Defines the observation window used for the durability calculations.
Visual Controls
The script includes settings for cluster visibility, labels, backbone lines, panel location, and font sizes.
Limitations & Transparency
This script is a structural reading tool. It is not a prediction engine.
A high survival score does not guarantee that price will reverse, hold, or trend from that area. A low survival score does not guarantee immediate failure. The values should be read as condition metrics for pivot-derived zones.
Because the script groups pivot levels into clusters, output can vary depending on volatility, symbol characteristics, and timeframe context. On some symbols, one side may show a stronger cluster than the other. On some charts, one side may temporarily rely on a weaker fallback anchor when cluster density is limited.
This script does not attempt to replace market structure analysis, higher-timeframe context, liquidity analysis, or risk management. It is intended to organize pivot confluence into a readable survival framework.
What this script is not:
- not a buy/sell signal engine
- not a guarantee of support or resistance
- not a standalone trade system
- not a future-price prediction model
Risk Disclosure
This script is for chart analysis and decision support only. It does not provide financial, investment, or trading advice. Markets can move unpredictably, and no indicator can eliminate risk.
Users should evaluate signals, states, and cluster conditions together with their own process, timeframe alignment, and risk controls before making any decision.
Indicator

Swing-Level Z-Score Oscillator▶️Overview
The Swing-Level Z-Score Oscillator is an innovative indicator that bridges the gap between classic market structure and statistical probability. Instead of relying on traditional moving averages as a baseline, this oscillator evaluates price extremes relative to recent structural pivot levels (Swing Highs and Swing Lows).
By transforming these structural deviations into a standardized Z-Score, it provides a highly intuitive, context-aware perspective on Overbought (OB) and Oversold (OS) conditions.
▶️How It Works (The Logic)
Traditional oscillators often lag or provide false signals during strong trends. This script tackles that issue through a unique three-step process:
Dynamic Baseline : The algorithm constantly scans for recent Pivot Highs and Pivot Lows. It takes the average of the last N pivots to establish a dynamic "horizontal zone" of recent historical interest. This acts as our expected mean.
Error & Volatility: It measures the distance (error) between the current Close price and this expected mean. To understand the significance of this distance, it calculates the rolling standard deviation of these errors.
Z-Score Normalization: Finally, it divides the current error by the standard deviation. The result is a clean Z-Score that tells you exactly how many standard deviations the current price has stretched away from recent structural levels.
▶️Key Features
Actionable Market Context: Because the baseline is built on actual price pivots rather than arbitrary averages, the oscillator respects current market structure (support/resistance).
Intelligent Gradient UI: The indicator features a dynamic color-coding system.
The histogram and signal line smoothly fade based on the intensity of the momentum.
Vivid Extreme Alerts: When the Z-Score stretches beyond the critical ±2.0 Sigma threshold, the histogram flashes vivid Cyan (Overbought) or Neon Pink (Oversold), immediately catching your attention.
Plug-and-Play Presets: Don't want to mess with settings? Use the "Operating Mode" dropdown to quickly switch between Short-term, Standard, and Long-term presets tailored to different trading styles. Fully customizable options are also available.
▶️How to Trade with It
Mean Reversion (Fade the Extremes): When the histogram hits the vivid ±2.0 zones, the price is statistically overextended relative to recent swing levels. Look for exhaustion price action (like pin bars) combined with a hook back toward the center line to trade reversions.
Pullbacks in a Trend: During a clear trend, look for the oscillator to reset back to the Center Line (0) or the ±1 Sigma lines. These often represent optimal, low-risk entry points (buy the dip/sell the rally) before the trend resumes.
Momentum Breakouts: A sudden, aggressive spike that blasts through the ±2 Sigma line can indicate a genuine structural breakout with heavy momentum, rather than a mere overextension.
▶️Settings & Customization
If you select "Custom" in the Operating Mode, you can fine-tune:
Left/Right Bars: Adjusts the sensitivity of the pivot detection. Lower numbers catch micro-swings, while higher numbers catch major structural points.
StdDev Length: The lookback period for calculating the variance of the errors.
Past Pivots Count (N): Determines how many historical pivots are used to calculate the "Expected Value" baseline.
Disclaimer: This script is for educational and analytical purposes only. Always combine oscillator readings with broader price action analysis and proper risk management. Indicator

AG Pro Pivot Points Reaction Map [AGPro Series]AG Pro Pivot Points Reaction Map
Overview / What it does
AG Pro Pivot Points Reaction Map is an overlay indicator designed to analyze how price behaves around classical pivot levels rather than only plotting those levels as static horizontal references. The script builds Daily or Weekly pivot structures from prior period OHLC data and then tracks the currently active pivot in order to highlight nearby price interaction, reaction quality, and short-term context.
Instead of treating every pivot line equally at all times, the script uses an active-pivot framework. This allows the chart to stay focused on the level that is currently most relevant to price while still keeping broader pivot structure visible in the background. The goal is to help traders evaluate whether price is reacting constructively, rejecting, reclaiming, compressing, or losing a key pivot area.
The visual design is intentionally split into two layers. The first layer is the classical pivot structure itself, including PP, R1, S1, and optional extended levels such as R2 and S2. The second layer is the reaction map built around the active pivot. This layer adds an ATR-based reaction zone, state detection, filtered event labeling, active context tags, and an information panel so the chart can communicate more than a simple “price above” or “price below” condition.
This indicator is intended for chart analysis, workflow support, and structured market reading. It does not attempt to predict future prices, and it should not be interpreted as a standalone trade execution system. It is best used as a contextual overlay that helps organize price behavior around widely followed pivot references.
Unique Edge
The core distinction of this script is that it is not just another pivot plotting tool. Classical pivot indicators usually stop at drawing levels. This script continues one step further by evaluating reaction behavior around the currently active level.
Its main differentiator is the active reaction framework. The script identifies a current pivot focus, builds a dynamic reaction zone around that level, and then classifies price interaction into states such as reclaim, loss, holding behavior, rejection behavior, and compression near pivot. This moves the indicator away from passive level display and toward structured price-context mapping.
A second differentiator is the sticky active pivot logic. Instead of shifting focus too aggressively whenever price becomes marginally closer to a different level, the script attempts to keep chart attention anchored to the current active pivot until conditions justify a transition. This improves visual continuity and makes the chart easier to read during multi-bar interaction.
A third differentiator is signal hygiene. Reaction labels can be filtered through cooldown logic, score thresholds, and event selection rules so that the chart remains readable. Major events can be emphasized while weaker or more repetitive reactions remain in the background. This helps preserve interpretability instead of overwhelming the screen with every minor touch.
Finally, the script combines chart-side cues with a compact state panel. The panel reports the active pivot, pivot price, current distance, live state, last score, and directional bias. This allows users to scan the present context without losing the full visual relationship on the chart.
Methodology
The pivot engine uses prior Daily or Weekly OHLC values to construct standard pivot levels. These levels form the structural base of the indicator. Depending on settings, the script can display the central pivot point together with first and second resistance/support layers.
From that structure, the script evaluates which pivot is currently most relevant to price and assigns that level as the active pivot. A sticky selection process is then used so the active focus does not rotate too easily on minor fluctuations. This helps the script behave more like a context map and less like a constantly flickering nearest-line tracker.
Around the active pivot, the script builds a reaction zone using ATR. This means the mapped zone adapts to the instrument’s recent volatility rather than using a fixed absolute distance. A wider volatility environment naturally leads to a wider interaction zone, while a calmer environment keeps the zone tighter.
Inside that zone, the script studies price behavior using a combination of position relative to the pivot, candle body structure, wick emphasis, and short-term displacement from the level. It also computes a reaction score designed to quantify how constructive or decisive the interaction appears under the script’s logic. Stronger reclaim or rejection characteristics can therefore stand out from weaker, noisier touches.
The result is a layered read of market structure:
- classical pivot references define the environment,
- the active pivot identifies current relevance,
- the ATR-based zone frames the interaction area,
- event logic classifies notable reactions,
- the panel summarizes the current state.
Signals & Alerts
The script can identify and label several reaction types around the active pivot. Depending on settings and score thresholds, these may include reclaim events, pivot loss events, reaction holding behavior, and reaction rejection behavior.
In addition to chart labeling, the script includes alert conditions for major workflow events. These are designed to notify the user when price is showing a notable interaction around the active pivot. Available alert categories include bullish reaction confirmation, bearish reaction confirmation, pivot loss confirmation, compression near pivot, and active pivot changes.
Because this is a contextual indicator rather than a complete strategy, alerts should be interpreted as informational events. They are intended to help users monitor evolving price behavior around important pivot areas, not to replace independent analysis, execution rules, or risk management.
Key Inputs
Pivot Anchor
Selects whether the pivot structure is built from Daily or Weekly source data.
Show R2 / S2
Allows the extended pivot structure to remain visible for users who want broader context beyond PP, R1, and S1.
Base Pivot Line Width / Active Pivot Line Width
Controls the visual hierarchy between background pivot references and the currently active pivot.
Reaction Zone (ATR Multiplier)
Defines the width of the active reaction zone relative to recent volatility.
Wick Emphasis
Adjusts how strongly wick behavior contributes to reaction interpretation.
Signal Cooldown (Bars)
Prevents labels and events from clustering too tightly during noisy price interaction.
Show Reaction Labels / Label Mode / Minimum Label Score
Controls which reaction labels appear on the chart and how selective the script should be.
Focus Mode
Adjusts how aggressively non-active pivot lines fade into the background.
Reaction Label Size
Changes the chart label size for reaction events and edge tags.
Show Event Markers / Show Active Pivot Halo / Show Right Edge Active Tag
Controls optional visual layers that can make the active structure easier to follow.
Passive Context Tags
Adds simplified right-edge tags for passive pivot references so faded background levels remain interpretable.
Show Info Panel / Panel Position / Panel Theme / Panel Font Size
Configures the summary panel to match user preference and chart layout.
Limitations & Transparency
This script is based on classical pivot concepts and volatility-adjusted reaction mapping. It does not know future price direction, and it does not forecast whether any pivot will hold or fail before price interacts with that area.
Reaction labels and scores are formula-driven representations of the script’s internal logic. They are not objective truth statements about market intent, and they should not be interpreted as guaranteed support, guaranteed resistance, or guaranteed continuation/reversal behavior.
Like all level-based overlays, the script can produce different impressions depending on the selected timeframe, instrument volatility, and chart conditions. Fast-moving instruments, low-liquidity environments, and sudden news-driven candles may reduce the practical value of any fixed structural framework, including pivots.
The active pivot model is intentionally selective. That improves chart focus, but it also means the script emphasizes one current pivot context over other simultaneously visible levels. Users who want a broader or more aggressive level-tracking style may prefer different settings than the default configuration.
The indicator is also not a backtesting engine and does not provide complete entry, exit, stop, or position sizing logic. It should therefore be used as one analytical component within a broader decision process.
Risk Disclosure
This indicator is for analytical and educational use only. It does not provide investment advice, trading advice, or financial advice.
Markets involve risk. Price can move through pivot levels without respecting them, reaction quality can deteriorate quickly, and conditions that appear constructive on one bar can fail on the next. No indicator can remove uncertainty from live markets.
Users should evaluate this script together with their own market framework, timeframe selection, execution process, and risk controls. Decisions involving capital should never rely on a single indicator, label, panel reading, or alert event in isolation. Indicator

Dynamic Pivot Structure [DPS]Dynamic Pivot Structure (DPS) is a price structure analysis tool that automatically detects pivot points, classifies market structure (HH, HL, LH, LL), and generates dynamic support/resistance zones with mitigation tracking.
**Mathematical Foundation:**
The indicator uses the standard pivot point detection algorithm with configurable left and right bar confirmations. A pivot high is confirmed when the high of a bar is greater than the highs of all N bars to its left and N bars to its right. Similarly for pivot lows. This provides mathematically validated local extremes rather than arbitrary level selection.
Market structure classification follows the Dow Theory framework: Higher Highs (HH) and Higher Lows (HL) define uptrends; Lower Highs (LH) and Lower Lows (LL) define downtrends. The indicator tracks consecutive pivot sequences and labels each new pivot with its structural classification.
Support and resistance zones are generated around each pivot using the Average True Range (ATR) for zone width. This creates proportional zones that automatically adjust to the instrument's volatility. The indicator tracks zone mitigation — when price penetrates a zone, it is marked as mitigated and visually faded.
**Signal Logic:**
Buy signals fire when price is near an unmitigated support zone, above the trend EMA, with RSI below 40 or bullish structure (HH/HL), and ADX confirming a trending environment. Sell signals fire near resistance with bearish conditions.
**Features:**
- Automatic pivot high/low detection with adjustable sensitivity
- Market structure classification (HH, HL, LH, LL)
- Dynamic ATR-based support and resistance zones
- Zone mitigation tracking with visual feedback
- ADX trend strength filter
- Trend EMA overlay
- Dashboard showing structure type, ADX, and proximity status
Indicator

Historical IQBy:MasterTonyTA
---
**Historical IQ— Track % Bull/Bear to gauge Historical Context of moves**
This indicator measures the historical reliability of key percentage levels derived from pivot highs and pivot lows. Rather than simply drawing support and resistance zones, it scores each level based on what price actually did when it arrived there — giving you a data-driven read on whether a level is worth trading or fading. CUSTOM PICK A % MOVE TO SEE HOW PRICE AS REACTED AT THAT %
---
**HOW IT'S CALCULATED**
The indicator operates in one of two modes — Bear or Bull — never both at once, keeping the chart clean and the analysis focused.
**Bear Mode (Pivot High → -N%)**
Every confirmed pivot high is identified using a configurable left/right bar lookback. From that pivot, a horizontal band is drawn at your chosen percentage below it — for example, -10% — with an adjustable tolerance creating a band rather than a single line. Once price enters a new pivot's range the previous band is closed off and locked for historical scoring.
On the final bar, every historical band is scanned bar by bar across its entire time window. Each band falls into one of three outcomes: price reached the band and closed above it (held as support — painted gold), price reached the band and closed below it (broke through — painted red), or price never reached the band at all (untouched — painted red but excluded from scoring).
**Bull Mode (Pivot Low → +N%)**
The same logic runs in reverse. Every confirmed pivot low generates a band at your chosen percentage above it. The three outcomes become: price reached the band and stalled without closing above it (resistance held — gold), price reached the band and closed above it (broke through — painted green), or price never reached the band (untouched — excluded from scoring).
**The Scoring**
Only bands that price actually tested are included in the stats. Untouched bands are deliberately excluded because a level that was never reached tells you nothing about whether it would have held. The gold hit rate is therefore a pure measure — out of every time price came to this level, how often did it respect it?
---
**HOW TO READ THE TABLE**
The stats table sits top-right and updates on every bar. It shows:
**🟡 Gold (held/stalled)** — the number of historical bands where price tested the level and respected it. In Bear mode this means closed above; in Bull mode this means stalled without closing above.
**🔴 Broke through / 🟢 Broke through** — the number of times price tested the level and pushed straight through. These are the failures.
**Times tested** — gold plus broke. This is the denominator for all calculations. Untouched bands are not included here.
**○ Not yet reached** — shown for context only. These bands exist on the chart but have no vote in the ratio since price never arrived.
**🎯 Gold hit rate** — the headline number. This is gold divided by times tested, expressed as a percentage. A reading above 60% lights up gold. Below 60% it turns red. This is the number to watch.
**Gold : Broke ratio** — the same relationship expressed as a simplified ratio. A 3:1 ratio means for every three times the level held, it broke once.
**Reading** — a plain-language verdict based on the gold hit rate:
- 70% and above → Strong support / Strong resistance
- 50–69% → Moderate support / Moderate resistance
- 30–49% → Weak support / Weak resistance
- Below 30% → Unreliable
---
**HOW TO USE IT** FIND HISTORICAL % AND WHAT HAPPENED TO SEE THE IMPLICATIONS OF MOVES
**Dialing in your target** — start by choosing a percentage that is meaningful for the asset you are trading. Volatile assets like crypto may show more meaningful clusters around larger moves such as 15–20%. Blue chip equities or indices often show cleaner structure at 8–12%. The goal is to find the percentage where the gold hit rate is consistently above 60% across history — that tells you the market has a genuine memory of that level.
**Using the tolerance** — the band width setting controls how precise price needs to be to count as a test. A tighter tolerance like 0.2% gives you a sharper level but fewer touches. A wider tolerance like 1% captures more wicks and approaches but may dilute the quality signal. Start tight and widen only if you are seeing very few tests.
**Bear mode use case** — after a significant high has formed and the market is declining, the gold bands ahead of price show levels where the market has historically found buyers at this same percentage distance from a prior peak. A high gold hit rate at your chosen decline level is a data-backed reason to watch for a bounce or entry there rather than guessing.
**Bull mode use case** — after a significant low has formed and the market is rallying, the gold bands show levels where price has historically stalled at this percentage distance from a prior trough. A high gold hit rate is a reason to consider taking profits, tightening stops, or watching for reversal signals as price approaches.
**Pivot sensitivity** — the left and right bar inputs control how significant a pivot needs to be to qualify. Higher values require a more dominant high or low with more bars confirming on either side, producing fewer but more meaningful pivots. Lower values produce more pivots and more bands but may include minor swings that add noise.
**The live label** — the percentage shown at the current bar tells you exactly where price sits relative to the most recent pivot. When price enters a band the label turns gold as a real-time visual alert that price is at a historically significant level right now.
--- Indicator

Adaptive Pivot Circles▶Overview
The Adaptive Pivot Circles is a unique geometric indicator that visualizes dynamic market volatility and potential support/resistance zones. Instead of relying on traditional horizontal lines or linear trends, this script projects historical price and time movements into two-dimensional geometric circles.
By applying a Kalman Filter to the distances between historical pivots, the indicator calculates an adaptive, noise-resistant average radius, providing a highly responsive and visually stunning representation of market cycles.
▶Core Concepts & Mechanics
1. Advanced Pivot Detection with ATR Filtering
The script identifies significant Pivot Highs (PH) and Pivot Lows (PL) across the chart. To eliminate market noise and prevent minor pullbacks from distorting the geometry, a built-in ATR Filter is applied. A pivot is only considered valid if its height/depth exceeds a specified multiple of the Average True Range (ATR).
2. Adaptive Radius via Kalman Filter
Most indicators use Simple Moving Averages (SMA) to calculate historical data, which inherently introduces lag. This indicator utilizes a 1D Kalman Filter to estimate the "true" historical radius—measuring both time (X-axis, bars) and price (Y-axis)—between similar pivots (i.e., PH to PH, and PL to PL).
Process Noise (Q): Controls how quickly the filter adapts to new data.
Measurement Noise (R): Controls how much the filter smooths out sudden spikes.
3. Geometric Projection (The Rolling Circles)
When a new pivot is confirmed, the script projects the anticipated market boundaries. The geometric concept is based on a circle connecting the current pivot to the previous one. If you roll that connecting circle around the current pivot, it creates an outer boundary.
To visualize this, the indicator draws two concentric zones around the newly formed pivot:
Inner Ring: Radius is 2x the Kalman-averaged historical radius.
Outer Ring: Radius is 4x the Kalman-averaged historical radius.
▶Key Features & Settings
Kalman Filter Tuning: Fully adjustable Process Noise (Q) and Measurement Noise (R) allow you to fine-tune the algorithm for different timeframes and assets.
Visual Aesthetics (Polyline Drawing): Built using Pine Script v5's advanced polyline drawing objects, the indicator features smooth curves, customizable fill transparencies, and a beautiful Glow Effect (layering transparent thick lines under crisp main lines).
Performance Optimization: You can adjust the Circle Resolution (number of points) to balance between perfect roundness and script rendering performance.
Historical Cleanup: Automatically cleans up old projections to keep your chart uncluttered. Adjust Max History Circles to determine how many recent cycles remain visible.
▶How to Use
Dynamic Support & Resistance: The circumferences of the projected circles often act as non-linear support and resistance levels. Watch for price action reactions as the market approaches the Inner or Outer Rings.
Volatility Gauge: The size of the circles visually represents the current market volatility and the length of recent price swings.
Confluence: Use these geometric projections in conjunction with your existing strategies (e.g., Fibonacci, Volume Profile) to find high-probability reversal zones where price intersects with the circle boundaries.
Disclaimer: This script is for educational and visual purposes only. Geometric projections are not guarantees of future price action. Always use proper risk management. Indicator

Hash Auto Fibonacci## Overview
Hash Auto Fibonacci eliminates the most time-consuming part of Fibonacci trading — drawing the levels yourself. Drop it on any chart and it automatically detects the most recent significant swing high and swing low, then instantly draws a complete Fibonacci retracement web anchored to those pivots. No manual drawing, no subjectivity, no missed setups.
Built for active traders who use Fibonacci as a core part of their strategy, this tool is engineered to keep up with fast-moving markets through a volatility-adaptive detection engine, a highlighted Golden Pocket zone, a built-in stop-loss reference, and optional multi-timeframe confirmation.
## Key Features
**Automatic Swing Detection**
The indicator uses a pivot-based algorithm to identify swing highs and lows in real time. A pink dot marks the swing high and a green dot marks the swing low on the chart — always showing only the current active pair, never cluttering your screen with historical markers.
**Dynamic Lookback Engine**
Rather than using a fixed lookback period, Hash Auto Fibonacci automatically adjusts its sensitivity based on current market volatility. During high-volatility conditions (fast trending moves, breakouts), the lookback shortens to detect swings quickly. During low-volatility conditions (consolidation, ranging markets), it lengthens to filter out noise and identify only meaningful pivots. This is calculated using the ratio of a 50-period ATR to a 10-period ATR, scaled by a user-adjustable multiplier. You can also switch to a fixed manual lookback at any time.
**Fibonacci Retracement Levels**
The following retracement levels are drawn automatically:
- 0 (swing high anchor)
- 0.236
- 0.382
- 0.5
- 0.618
- 0.65
- 0.786
- 1.0 (swing low anchor)
Optional extension levels (1.272, 1.618, 2.618) can be enabled for targets beyond the swing low.
**The Golden Pocket Zone**
The 0.618–0.65 confluence zone is highlighted as a gradient-filled amber band directly on the chart. This region — known as the Golden Pocket — is widely regarded as the highest-probability reversal zone within any Fibonacci retracement. The zone enforces an ATR-based minimum thickness so it remains visible even on assets with small absolute price ranges.
**ATR Stop-Loss Reference**
A dashed red line is automatically drawn below the swing low (bullish setup) or above the swing high (bearish setup) at a distance of 2× ATR-10. This gives a data-driven starting point for your stop-loss placement without requiring a separate indicator.
**Multi-Timeframe Confirmation**
When the current chart's swing pivot aligns within 0.5% of a confirmed pivot on a higher timeframe (default: 4H), the entire Fibonacci web is visually upgraded — lines become bolder, a confirmation badge appears, and an alert can be triggered. MTF-confirmed webs represent structurally significant levels that multiple timeframes agree on, which historically carry more weight as support and resistance.
**Direction Detection**
The indicator automatically determines whether the current setup is bullish (retracing upward from a low) or bearish (retracing downward from a high) by comparing which pivot — the high or the low — was confirmed most recently. You can override this manually if needed.
**Info Dashboard**
A clean navy dashboard in the corner of your chart displays:
- Current swing high and swing low prices
- 0.5 and 0.618 Fibonacci levels
- Golden Pocket price range
- Suggested ATR-based stop-loss price
- Active lookback period (and whether it's dynamic or manual)
---
## How To Use
**Basic setup**
Add the indicator to any chart. It works on all timeframes and all assets — crypto, stocks, forex, futures. The Fibonacci web draws automatically. The Golden Pocket zone is the primary area to watch for price reactions.
**Reading the chart**
- Price pulling back into the Golden Pocket (0.618–0.65 zone) in a bullish setup is the classic high-probability long entry zone
- Price rejecting from the Golden Pocket in a bearish setup is a potential short entry or profit-taking zone
- The 0.5 level acts as the midpoint — a close above (bullish) or below (bearish) confirms continuation of the retracement
- The 0.786 level is deep — a sweep past this level often signals the retracement is becoming a full reversal
**Using the stop-loss line**
The dashed red SL line is a reference, not a guaranteed stop placement. Use it as a starting point and adjust to your own risk tolerance. On volatile assets, consider placing your stop slightly beyond it to avoid wicks triggering your exit prematurely.
**Multi-timeframe confirmation**
When the ◆ MTF badge appears, the swing that anchors the current web also exists on the higher timeframe. These setups tend to produce cleaner reactions at Fibonacci levels because they represent areas where both short-term and institutional timeframe participants are watching the same price zone.
**Alerts**
Five alert conditions are available:
- New swing high detected
- New swing low detected
- MTF confirmation active
- Price entering the Golden Pocket
- Price at the 0.382 level
- Price at the 0.786 level
Set these in the Alerts panel to get notified without watching the chart constantly.
---
## Settings Reference
**Swing Detection**
| Setting | Default | Description |
|---|---|---|
| Dynamic lookback | On | Automatically adjusts pivot sensitivity based on volatility |
| Manual lookback | 10 | Fixed lookback used when dynamic mode is off |
| Dynamic multiplier | 9 | Controls the average lookback length in dynamic mode |
| Direction mode | Auto | Auto, Bullish, or Bearish override |
| Show swing markers | On | Displays pivot dots on the chart |
**Multi-Timeframe Confirmation**
| Setting | Default | Description |
|---|---|---|
| MTF confirmation | On | Enables higher timeframe pivot alignment check |
| HTF timeframe | 240 (4H) | The timeframe used for confirmation pivots |
**Fibonacci Levels**
| Setting | Default | Description |
|---|---|---|
| Retracement levels | On | Draws the standard 0–1 retracement web |
| Extension levels | Off | Adds 1.272, 1.618, 2.618 extension targets |
| Ratio labels | On | Shows ratio numbers next to each level |
| Golden Pocket zone | On | Highlights the 0.618–0.65 zone |
| ATR stop-loss line | On | Draws the 2× ATR stop reference |
**Info Table**
| Setting | Default | Description |
|---|---|---|
| Show info table | On | Displays the dashboard |
| Position | Top Right | Corner placement of the dashboard |
---
## Notes
- This indicator is an overlay — it draws directly on the price chart
- Works on all timeframes, all markets, and all asset classes available on PulseWire
- The dynamic lookback is calibrated on BTC/USDT 1H data and performs well across most liquid crypto and equity instruments
- Past Fibonacci levels do not guarantee future price reactions — use this tool as part of a broader trading system, not as a standalone signal
- This indicator does not repaint. Swing pivots are confirmed before being drawn and are not subject to change after confirmation
---
## By Hash Capital Research
Indicator

MFE (Market Fractal Entropy)The Market Fractal Entropy (MFE) is a groundbreaking indicator that fully integrates traditional chart analysis with information theory.
Unlike conventional oscillators that merely rely on price smoothing or momentum to measure "overbought" or "oversold" conditions, this script takes a strictly mathematical approach to the market's geometric structure. By quantifying elements such as trendline slopes, distances from trendlines, retracements, and extensions as "information content," you can think of it as a multi-faceted chart analysis compressed into a single oscillator.
▶How to Trade with MFE
Theoretically, a positive MFE value represents the probability (or information content) of a High being formed (i.e., the probability that the current candle's high becomes a Pivot High, PH). Conversely, a negative value represents the probability of a Low being formed (the probability of the current candle's low becoming a Pivot Low, PL).
Therefore, an explosive surge (spike) from the zero-line towards the extreme bands (+90 / -90) strongly suggests that a High or Low is highly likely forming at that exact moment. During a trend, you will often see spikes stopping exactly at the zero line; this indicates an excellent entry opportunity on a retracement.
▶Integrating Traditional Chart Analysis and Information Theory
Traditional chart analysis utilizes tools like trendlines, retracements, and extensions to understand the geometric structure of the market. However, interpreting these tools often relies heavily on the subjective judgment of the trader.
On the other hand, in Claude Shannon's Information Theory, "Self-Information" (or Surprise) mathematically quantifies the amount of information associated with an event. The lower the probability of an event occurring, the higher its surprise or information content.
This script elegantly integrates these two distinct fields. It models the geometric features of past Pivot Highs (PH) and Pivot Lows (PL)—such as the slope of the trend, the depth of the retracement, and the length of the extension—as a probability distribution. It then evaluates the currently forming wave against this historical distribution to calculate its "surprise" (information content). In essence, it objectively and mathematically scores how "rare" or "common" the current geometric structure is, providing a data-driven approach to classical chart patterns.
▶Theoretical & Philosophical Background: Market Geometric Information Theory (MGIT)
I have always believed that the market possesses an orderly geometric structure (such as trendlines, horizontal levels, and chart patterns) and a temporal rhythm in which these structures periodically complete themselves. I hypothesized that market dynamism could be understood as a geometric order within the two-dimensional spacetime of price and time. Furthermore, I believe this order can be quantified by treating it as entropy (information content) within a complex system.
I call this the Market Geometric Information Theory (MGIT). MGIT views financial markets not as simple time-series data, but as a continuous generation and dissipation of wave structures within a multi-dimensional "geometric feature space."
▶The philosophy of MGIT is built upon two core concepts:
Structural Memory: The market is not an amnesiac system. It retains an invisible "probability distribution" of past wave structures, trend angles, and geometric ratios. The market constantly learns from its own history.
Geometric Attractors: In complex systems theory, dynamic systems eventually settle into stable states called Attractors. In financial markets, crowd psychology naturally gravitates toward specific, harmonious wave proportions (like Fibonacci ratios). We define these universally preferred proportions as "Geometric Attractors."
▶What is Market Entropy?
Based on MGIT, the "Market Entropy" in this script is the quantification of the information content (surprise) generated when a PH (Pivot High) or PL (Pivot Low) is formed at the current candle.
It calculates how much the currently forming provisional pivot deviates from the market's "structural memory" (the historical probability distribution). If the calculated surprise is small, it evaluates that the probability of a PH or PL forming is high. Conversely, if the surprise is large, the probability of a PH or PL forming is evaluated as low.
▶The Breakthrough: The Reversal Mechanism
The ultimate edge of this indicator lies in its ability to pinpoint market tops and bottoms through the lens of structural mechanics, rather than simple momentum decay.
In this indicator, entropy is decomposed into a directional metric consisting of positive entropy and negative entropy. When MFE is close to the positive extreme (+100), the market is evaluated as forming a PH. When MFE is close to the negative extreme (-100), the market is evaluated as forming a PL.
▶Key Features of this Script
Four-Quadrant Regime Modeling & Probability Distributions:
The market state is dynamically categorized into four quadrants (Uptrend, Downtrend, Expansion, Contraction) using a Markov-like state model. The geometric features (slopes, retracements) of past PH/PL formations are accumulated as a "probability distribution" for each state. The script then calculates the self-information (surprise) of the current provisional PH or PL by evaluating how "rare" or "unlikely" it is against this historical probability distribution.
Minimum Information Principle:
Evaluates multiple provisional pivot formations and adopts the one with the lowest absolute entropy (least surprise = most likely outcome).
Kalman Filter Option:
Includes a customizable Kalman Filter (Process Noise $Q$ & Measurement Noise $R$) to intelligently smooth out erratic spikes and isolate the true entropy trend.
Dynamic UI & Scaling:
The entropy line dynamically changes color based on the zero-line cross. Since information content is inherently unstable and can easily diverge into massive numbers, it uses Tukey Fences and Tanh soft-clipping to maintain an elegant $-100$ to $+100$ bounded oscillator, greatly improving readability and interpretability. Indicator

Intraday Trading Helper Tools**Intraday Trading Helper Tools**
A multi-feature intraday analysis indicator combining Fair Value Gaps, session visualization, key price levels and daily gap detection into a single lightweight script.
---
**Fair Value Gaps (FVG)**
Detects and draws bullish and bearish FVGs on the current timeframe. Only the closest N gaps above and below price are shown — filled gaps are removed instantly with fill % tracked live.
- Per-timeframe on/off toggle (1m → 1M) — disabled TFs skip all calculation, not just drawing
- HTF Layers: overlay FVGs from up to 5 higher timeframes (1H, 4H, 1D, 1W, 1M), each showing the single closest gap above and below price
- All layers independently toggleable with custom colors
**Trading Sessions**
Colored background boxes for Sydney, Tokyo, Frankfurt, London and New York with automatic DST adjustment.
- Configurable history in days (separately for 1H and minute TFs)
- Option to merge Sydney + Tokyo into a single Asia box
- Zero calculation cost when sessions are disabled
**Daily Opening Gap**
Real gap detection — fires only when today's open differs from the previous day's close. Visible on all timeframes. Box is deleted automatically the moment price fills the zone. Works correctly on 24/7 markets (crypto) and traditional markets.
**Key Levels**
- *PDH / PDL* — Previous Day High and Low
- *PWH / PWL* — Previous Week High and Low
- *PMH / PML* — Previous Month High and Low
- *DO* — Current Day Open (resets each day)
- *MO* — Current Month Open (resets each month)
All levels independently toggleable with custom colors and labels.
**Extremum Points**
Confirmed swing highs and lows marked with triangle shapes. Configurable pivot strength. Per-timeframe visibility control. Indicator

Intraday Trading Helper Tools v1.0.14Intraday Trading Helper Tools
A multi-feature intraday analysis indicator combining Fair Value Gaps, session visualization, key price levels and daily gap detection into a single lightweight script.
Fair Value Gaps (FVG)
Detects and draws bullish and bearish FVGs on the current timeframe. Only the closest N gaps above and below price are shown — filled gaps are removed instantly with fill % tracked live.
Per-timeframe on/off toggle (1m → 1M) — disabled TFs skip all calculation, not just drawing
HTF Layers: overlay FVGs from up to 5 higher timeframes (1H, 4H, 1D, 1W, 1M), each showing the single closest gap above and below price
All layers independently toggleable with custom colors
Trading Sessions
Colored background boxes for Sydney, Tokyo, Frankfurt, London and New York with automatic DST adjustment.
Configurable history in days (separately for 1H and minute TFs)
Option to merge Sydney + Tokyo into a single Asia box
Zero calculation cost when sessions are disabled
Daily Opening Gap
Real gap detection — fires only when today's open differs from the previous day's close. Visible on all timeframes. Box is deleted automatically the moment price fills the zone. Works correctly on 24/7 markets (crypto) and traditional markets.
Key Levels
PDH / PDL - Previous Day High and Low
PWH / PWL - Previous Week High and Low
PMH / PML - Previous Month High and Low
DO - Current Day Open (resets each day)
MO - Current Month Open (resets each month)
All levels independently toggleable with custom colors and labels.
Extremum Points
Confirmed swing highs and lows marked with triangle shapes. Configurable pivot strength. Per-timeframe visibility control.
Indicator

Indicator

ZenAlgo - DojiOverview
This indicator identifies Doji candles and adds two contextual filters before creating an alert: a relative volume expansion filter and a normalized directional-shift filter. Most Doji indicators simply detect candle shape. This script instead adds contextual conditions so that alerts appear only when the Doji occurs together with increased participation and a change in short-term directional pressure.
Doji candles appear frequently on their own, so the script focuses on situations where candle balance, elevated activity, and a directional shift occur at the same time.
How the indicator works
The script begins by evaluating candle structure. It measures the full candle range, the size of the body, and the size of the upper and lower wicks relative to the entire candle. A candle is considered a Doji when the body occupies only a small portion of the range.
After identifying the base Doji structure, the candle is classified into one of several common Doji types depending on the relative size of the wicks:
Dragonfly Doji – very small upper wick and long lower wick.
Gravestone Doji – very small lower wick and long upper wick.
Long-legged Doji – both wicks are relatively long.
Standard Doji – small body without the extreme wick proportions of the other types.
A Doji indicates that price moved during the bar but finished close to the opening level, suggesting temporary balance between buyers and sellers.
Volume context (PVSRA-style comparison)
After the candle structure is detected, the script evaluates trading activity.
Current volume is compared with the average volume over a recent lookback window. If current volume exceeds that average by a configurable multiple, the candle is considered to occur during elevated participation.
This step is important because a Doji formed during low activity may simply reflect quiet trading, while a Doji formed during higher participation means more trading occurred but the candle still closed near equilibrium.
Normalized price-change proxy
The script then evaluates short-term directional behavior.
It measures the percentage change between consecutive closing prices. This series is smoothed to reduce noise and then normalized relative to recent behavior. The normalization allows the script to determine whether the current directional movement is unusually positive or negative compared with recent activity.
The script compares this normalized value with the previous bar. An alert requires the value to change sign between the two bars, which indicates that the short-term directional pressure has flipped.
Why the components are combined
Each component describes a different aspect of market behavior:
The Doji describes temporary balance inside a candle.
The volume comparison measures whether that balance occurred during elevated participation.
The directional flip indicates a shift in short-term pressure.
Basic Doji markers highlight every small-body candle. This indicator is more selective because it only highlights cases where equilibrium, participation, and directional change appear together.
Final alert logic
An alert is created when the following conditions occur simultaneously:
A Doji is present on the current candle or the previous candle.
Volume exceeds the recent average by the configured multiple when the volume filter is enabled.
The normalized directional reading flips sign between two consecutive bars.
Alerts are separated into bullish and bearish categories according to the direction of the normalized reading after the flip.
How to interpret the alerts
A bullish alert means the script detected a Doji context with elevated volume and a positive directional flip.
A bearish alert means the same conditions occurred with a negative directional flip.
The alert marks a moment where price equilibrium, increased participation, and directional change appeared together. These conditions may appear near short-term transitions, pauses, or local turning points.
How to use the indicator
This indicator is intended as a contextual chart tool rather than a standalone trading system.
Use alerts to locate Doji candles confirmed by participation and directional change.
Interpret bullish alerts as possible upward transitions and bearish alerts as possible downward transitions.
Evaluate the alert location relative to support, resistance, or recent trend structure.
Combine the alerts with other analysis tools or higher timeframe context.
Why Heikin Ashi often works well
The script can be used on any chart type, but Doji detection often becomes clearer on Heikin Ashi candles.
Heikin Ashi candles smooth short-term price fluctuations by averaging values from multiple bars. Because the indicator relies on candle body and wick proportions, this smoothing reduces small random Doji created by short-term noise and produces clearer candle structures.
Limitations
Doji candles occur frequently and do not inherently indicate reversals.
Volume filters depend on the quality and meaning of the exchange’s volume data.
The directional proxy is based on price changes rather than direct order flow.
Different markets, timeframes, and preset settings can change how often alerts appear.
The indicator highlights situations where candle equilibrium, elevated participation, and directional change appear together, but it does not determine future price direction. Indicator

Indicator

Luminous Pivot S&R Matrix [Pineify]Luminous Pivot S&R Matrix — Dynamic Support & Resistance Zones with ATR-Adaptive Width and Breakout Detection
The Luminous Pivot S&R Matrix is a dynamic support and resistance indicator that automatically identifies significant pivot highs and pivot lows, constructs ATR-adaptive zones around them, and monitors each zone in real time for breakout invalidation. Unlike static horizontal line tools that require manual placement, this indicator continuously scans price action for structurally significant turning points using a configurable lookback window, then wraps each pivot in a volatility-scaled zone whose width adapts to current market conditions via the Average True Range (ATR). When price closes beyond a zone's pivot level, the zone is automatically deactivated and visually dimmed, while a breakout signal is plotted — giving traders a fully automated, self-managing support and resistance framework that stays relevant as markets evolve.
Key Features
Automatic pivot detection using a configurable lookback length to identify both major and minor structural turning points in price
ATR-adaptive zone construction that dynamically scales the width of each support and resistance zone based on current market volatility
Real-time zone management with automatic extension of active zones to the current bar and visual invalidation when zones are broken
Breakout detection system that flags bullish breakouts (close above resistance) and bearish breakouts (close below support) with triangle markers and candle coloring
Memory management system that limits the number of displayed zones per side, automatically removing the oldest zones to keep charts clean and readable
Built-in alert conditions for both bullish and bearish breakouts, enabling automated notification workflows
How It Works
The indicator operates through a three-stage pipeline: pivot detection, zone construction, and dynamic zone management.
Stage 1: Pivot Detection
The indicator uses Pine Script's built-in ta.pivothigh() and ta.pivotlow() functions with a user-defined lookback length (default: 15 bars). A pivot high is confirmed when a bar's high is the highest value within the lookback window on both sides. Similarly, a pivot low is confirmed when a bar's low is the lowest value within that same window. Because confirmation requires bars to the right of the pivot, detected pivots are inherently lagged by the lookback length — this is by design, as it ensures only structurally validated turning points are plotted, filtering out noise and false signals.
Stage 2: ATR-Adaptive Zone Construction
Once a pivot is confirmed, the indicator constructs a zone around it. Rather than using a fixed-width band, the zone boundaries are calculated using the 14-period ATR value at the pivot bar, scaled by the user's ATR multiplier (default: 0.8). The zone extends from pivot price + (ATR × multiplier) / 2 to pivot price − (ATR × multiplier) / 2 . This means zones are naturally wider during volatile market conditions and narrower during calm periods, providing contextually appropriate support and resistance bands. A horizontal line is drawn at the exact pivot price, and a semi-transparent box fills the zone area.
Stage 3: Dynamic Zone Management & Breakout Detection
On every bar, the indicator iterates through all active zones. Active zones are extended rightward to the current bar, keeping them visually current. The indicator then checks whether price has closed beyond the zone's pivot level — above for resistance zones, below for support zones. When a breakout occurs, the zone is deactivated (marked inactive), its visual appearance is dimmed to gray with a dashed line style, and a breakout flag is raised. This flag triggers the plotted triangle signal and candle coloring for that bar.
Trading Ideas and Insights
Zone Bounce Entries — When price approaches an active support zone from above, look for bullish reversal candlestick patterns (hammer, engulfing) within the zone for potential long entries. The zone's ATR-based width provides a natural area for price to find buyers, and the wider the zone, the more volatility the market has been experiencing — suggesting a larger potential reaction.
Breakout Continuation Trades — When a bullish breakout signal fires (green triangle), it confirms that price has closed above a resistance pivot. Traders can use this as confirmation to enter long positions, especially when the breakout occurs on above-average volume. The invalidated zone often becomes new support on retests.
Zone Density Analysis — Areas where multiple support or resistance zones cluster together represent stronger structural levels. When several pivots form at similar price levels, the overlapping zones create a high-confluence area that is more likely to hold or produce significant breakouts when finally violated.
Failed Breakout Recognition — If price triggers a breakout signal but quickly reverses back into the zone on the next bar, this suggests a false breakout or stop hunt. Traders can watch for these failed breakouts as potential reversal signals in the opposite direction.
Trend Context — In a strong uptrend, you will observe support zones consistently holding while resistance zones are frequently broken (bullish breakout signals). In a downtrend, the opposite pattern emerges. Tracking the ratio of bullish to bearish breakouts provides a structural view of trend strength.
How Multiple Indicators Work Together
The Luminous Pivot S&R Matrix integrates three complementary analytical techniques into a unified support and resistance system:
Pivot point detection provides the structural price levels, ATR-based zone construction adds volatility context to those levels, and the real-time breakout detection system transforms static levels into dynamic, self-managing trading zones — together forming a complete support and resistance analysis framework.
The pivot detection engine serves as the foundation, identifying bars where price has demonstrably reversed direction. The configurable lookback length allows traders to tune the sensitivity — a shorter lookback (5-10) captures minor swing points suitable for intraday trading, while a longer lookback (15-30) identifies major structural levels appropriate for swing and position trading.
The ATR-adaptive zone construction addresses a fundamental limitation of traditional pivot-based indicators: a single price line rarely captures the full area where supply or demand exists. By expanding each pivot into a zone scaled by the ATR, the indicator acknowledges that support and resistance are areas , not exact prices. The ATR multiplier gives traders control over how much volatility context to incorporate — a lower multiplier (0.3-0.5) creates precision zones for tight stop placement, while a higher multiplier (1.0-1.5) creates wider zones that capture the full range of potential price reaction.
The breakout detection and zone lifecycle management system is what transforms this from a static level-drawing tool into a dynamic analytical framework. By automatically tracking whether each zone remains active or has been invalidated, the indicator eliminates the manual overhead of monitoring multiple levels. The visual differentiation between active zones (solid colored) and broken zones (gray dashed) provides instant context about which levels are still structurally relevant. The memory management system ensures that only the most recent zones remain on the chart, preventing visual clutter that accumulates with traditional pivot indicators.
Unique Aspects
Volatility-adaptive zone width — Unlike fixed-width pivot zones or percentage-based bands, the ATR scaling ensures zones automatically widen during volatile periods and narrow during calm periods, providing contextually appropriate support and resistance areas across all market conditions.
Self-managing zone lifecycle — Zones are not simply drawn and forgotten. Each zone is actively monitored, extended, and eventually invalidated when broken. The visual transition from active (colored, solid) to broken (gray, dashed) creates an intuitive map of which levels remain structurally significant.
Structural pivot validation — By requiring confirmation bars on both sides of a pivot, the indicator only plots levels where price has demonstrably reversed. This eliminates the noise of minor fluctuations and focuses attention on levels where genuine supply or demand has been observed.
Clean chart design with memory management — The configurable zone limit per side prevents the chart from becoming cluttered with historical levels. The oldest zones are automatically removed when new ones form, ensuring the chart always shows only the most relevant current levels.
Dual breakout signaling — Breakouts are communicated through three simultaneous channels: plotted triangle markers, candle color changes, and configurable alert conditions. This multi-channel approach ensures traders never miss a breakout event regardless of how they monitor their charts.
How to Use
Add the Luminous Pivot S&R Matrix to your chart. It overlays directly on the price chart, displaying colored zones at detected pivot levels.
Observe the colored zones — green zones represent support areas (pivot lows), and red zones represent resistance areas (pivot highs). Active zones have solid lines and colored fills; broken zones appear gray with dashed lines.
Watch for breakout signals — a green triangle below a bar indicates price has closed above a resistance zone (bullish breakout), while a red triangle above a bar indicates price has closed below a support zone (bearish breakout). Breakout candles are also colored accordingly.
Use active zones as potential entry areas — look for price reactions (bounces, rejections) when price approaches an active zone. Combine with candlestick patterns or other confirmation tools for higher-probability entries.
Monitor zone invalidation patterns — frequent resistance breakouts suggest bullish momentum, while frequent support breakdowns suggest bearish momentum. This provides a structural view of the prevailing trend.
Set up alerts using the built-in alert conditions ("Bullish Breakout" and "Bearish Breakout") to receive notifications when price breaks through an active zone, even when you are not watching the chart.
Combine with volume indicators, trend filters, or momentum oscillators for additional confirmation before executing trades based on zone reactions or breakout signals.
Customization
Pivot Lookback (default: 15) — Controls how many bars on each side are required to confirm a pivot. Increase for major structural levels suitable for higher timeframes (20-30); decrease for more frequent pivot detection on lower timeframes (5-10).
Zone ATR Multiplier (default: 0.8) — Scales the 14-period ATR to determine zone width. Increase for wider zones that capture more price reaction area (1.0-1.5); decrease for tighter, more precise zones (0.3-0.5).
Max Active Zones per side (default: 5) — Limits how many support and resistance zones are displayed simultaneously. Increase if you want to see more historical context (8-15); decrease for a cleaner chart with only the most recent levels (2-3).
Support / Resistance Colors — Customize the zone and signal colors to match your chart theme or personal preference.
Zone Transparency (default: 85) — Controls the opacity of zone box fills and borders. Lower values make zones more prominent; higher values keep them subtle and non-distracting.
Conclusion
The Luminous Pivot S&R Matrix provides a methodologically rigorous approach to automated support and resistance analysis by combining structural pivot detection with volatility-adaptive zone construction and real-time breakout monitoring. By treating support and resistance as dynamic zones rather than static lines, and by automatically managing the lifecycle of each zone from creation through invalidation, this indicator eliminates the manual overhead of traditional S/R analysis while providing richer contextual information. Whether you are a day trader looking for precise intraday bounce zones, a swing trader identifying key structural levels for position entries, or a position trader monitoring major support and resistance breaks for trend confirmation, the Luminous Pivot S&R Matrix delivers a clean, self-managing, and visually intuitive framework for understanding where the market's key structural boundaries lie — and when they are being broken. Indicator

Multi-TF Keltner Heatmap# Multi-TF Keltner Heatmap
A multi-timeframe volatility structure indicator designed to show where momentum pivots are forming across timeframes.
Instead of plotting a single Keltner Channel, this script overlays Keltner envelopes from 12 timeframes simultaneously, allowing traders to see when lower timeframe volatility begins pivoting relative to higher timeframe structure.
For options traders, these pivot points often represent the moments where momentum changes fastest while options are still relatively cheap.
The goal is to identify the earliest structural shift in volatility expansion before the larger move becomes obvious.
## Core Idea
Momentum rarely appears suddenly on higher timeframes.
Instead, it typically builds from smaller timeframes upward.
Lower timeframes begin expanding volatility until they interact with or surpass the volatility boundaries of larger timeframes.
When this occurs, the script identifies it as a pivot event.
A pivot means the shorter timeframe volatility envelope has reached or crossed the adjacent higher timeframe envelope, indicating that momentum pressure is shifting.
As these pivots propagate upward through the timeframe ladder, a momentum chain forms.
This chain represents how many layers of the market structure are currently shifting direction.
## Timeframes Included
The script pulls Keltner Channel data from the following timeframes:
- 1 Minute
- 3 Minute
- 5 Minute
- 10 Minute
- 15 Minute
- 30 Minute
- 45 Minute
- 1 Hour
- 2 Hour
- 4 Hour
- 1 Day
- 1 Week
These timeframes together create a stacked volatility structure showing how pressure builds through the market.
## Keltner Channel Construction
Each timeframe uses the same parameters.
Basis
EMA (default length: 200)
Volatility Envelope
ATR (default length: 200)
Bandwidth Multiplier
ATR × 8
These intentionally large settings create structural volatility envelopes rather than short-term reactive channels.
The focus is on major volatility shifts rather than micro fluctuations.
## Visual Structure
The indicator uses color to separate layers of the timeframe hierarchy.
### White Bands (1m – 15m)
These represent short-term market microstructure.
They allow traders to see:
- short-term compression
- micro volatility expansion
- early directional pressure
Opacity is reduced so these bands remain informational rather than dominant.
### Intermediate Layer (30m / 45m)
Upper bands are colored green.
Lower bands are colored red.
These timeframes often act as the bridge between intraday volatility and higher timeframe momentum.
When price begins interacting strongly with these bands, it often signals that pressure is building toward a larger pivot.
### Higher Timeframe Bands (1H – 1W)
Higher timeframe bands are hidden by default.
They only appear when a pivot condition occurs.
A pivot occurs when:
Shorter timeframe upper band ≥ adjacent higher timeframe upper band
or
Shorter timeframe lower band ≤ adjacent higher timeframe lower band
Example:
45m upper ≥ 1H upper
When this happens, the 1H upper band becomes visible.
This signals that short-term volatility is now interacting with higher timeframe structure.
## Pivot Chain
Momentum shifts are tracked using adjacent timeframe pivots.
Upper band pivots follow this sequence:
- 45m → 1H
- 1H → 2H
- 2H → 4H
- 4H → 1D
- 1D → 1W
Lower band pivots follow the same sequence.
This adjacency logic reflects how momentum realistically propagates through the market rather than skipping timeframes.
## Pivot Chain Depth
The indicator calculates two values shown in the status line and data window.
Bull Chain
Number of upward pivot steps currently active.
Example:
45m pivoting above 1H
1H pivoting above 2H
2H pivoting above 4H
Bull Chain = 3
Bear Chain
Number of downward pivot steps currently active.
Example:
45m pivoting below 1H
1H pivoting below 2H
2H pivoting below 4H
Bear Chain = 3
## Interpreting Chain Depth
Lower chain values typically indicate:
- localized volatility
- range conditions
- early momentum shifts
Higher chain values indicate:
- stronger structural alignment
- expanding volatility
- sustained directional momentum
Deep pivot chains are relatively rare and often occur during:
- breakouts
- strong trend continuation
- macro directional moves
## Why This Matters for Options
Options traders benefit most when they can identify large momentum shifts early, before volatility expansion fully develops.
When lower timeframes begin pivoting relative to higher timeframe envelopes, it often means:
- directional pressure is building
- volatility expansion may follow
- option pricing has not fully reacted yet
This creates the opportunity to enter positions before volatility and delta expansion make contracts expensive.
## Practical Uses
This indicator can help traders:
- identify early momentum pivots
- visualize multi-timeframe volatility alignment
- detect volatility expansion before breakouts
- confirm trend continuation across timeframes
It is particularly useful when looking for high momentum opportunities while options remain relatively inexpensive.
## Conceptual Summary
Momentum builds from smaller timeframes upward.
When lower timeframe volatility begins interacting with and pivoting against larger timeframe envelopes, the market is often entering a structural shift phase.
This indicator visualizes that process so traders can see momentum transitions while they are still forming. Indicator

Gann Fan [UAlgo]Gann Fan is a structure driven Gann angle overlay that automatically builds a multi line fan from the most relevant recent swing anchor on the chart. Instead of requiring manual drawing, the script detects pivot highs and pivot lows, selects an active anchor based on the latest structure, and projects a full set of classic Gann style ratios from that anchor point.
The indicator runs directly on price and is designed to provide a clean visual map of potential dynamic support, resistance, and trend geometry. Once an anchor is chosen, the script draws a nine line fan that includes the key 1x1 line along with slower and faster angle ratios such as 1x8, 1x4, 1x3, 1x2, 2x1, 3x1, 4x1, and 8x1. These lines extend forward in time, creating a structured framework that traders can use for directional bias, reaction zones, and acceleration or deceleration analysis.
A major strength of this implementation is that it is not just a static angle pack. The script first builds an alternating pivot structure, filters same side pivots so only the more extreme one is retained, then automatically determines whether the active fan should be bullish or bearish when Auto mode is enabled. It also adds optional visual enhancements such as glow effects, filled fan zones between adjacent angles, angle labels, and an anchor label.
The result is a polished automatic Gann Fan tool focused on:
Recent swing structure
Auto or forced bullish / bearish direction
Multi angle projection
Visual zone segmentation
Clean right side angle labeling
🔹 Features
🔸 1) Automatic Gann Fan Projection
The script automatically draws a full Gann fan without requiring manual anchor placement. It detects recent pivots, determines the most relevant active anchor, and projects all fan angles from that point.
This makes it useful for traders who want a repeatable, rules based Gann framework rather than hand drawn discretionary lines.
🔸 2) Pivot Based Structural Anchoring
The fan is built from confirmed pivot highs and pivot lows using a configurable pivot strength setting. These pivots form the structural basis for the fan, so the projection adapts to actual swing development instead of arbitrary recent highs and lows.
🔸 3) Alternating Swing Logic for Cleaner Structure
The script does not blindly store every pivot. It enforces an alternating sequence of highs and lows:
If a new pivot is the same type as the most recent stored one, only the more extreme pivot is kept
If it is the opposite type, it is appended normally
This produces a cleaner swing map and avoids clutter from redundant same side pivots.
🔸 4) Auto, Bullish, or Bearish Fan Direction
Users can choose:
Auto mode
Forced Bullish
Forced Bearish
In Auto mode, the script decides direction based on which pivot type occurred most recently. This makes the fan respond naturally to the latest structural context.
🔸 5) Full Nine Angle Set
The indicator plots a broad set of classic Gann style ratios:
1x8
1x4
1x3
1x2
1x1
2x1
3x1
4x1
8x1
This creates a layered angle framework ranging from shallow to steep, with the 1x1 line visually emphasized as the main reference line.
🔸 6) Highlighted 1x1 Line
The 1x1 line receives its own dedicated width and stands out from the rest of the fan. This makes it easier to focus on the central balance angle that many traders treat as the most important Gann reference.
🔸 7) Optional Glow Effect
The script can render a wider translucent glow line beneath each fan line. This improves visibility, gives the fan a premium visual style, and helps the angle set stand out on busy charts.
🔸 8) Optional Fan Zones Between Angles
When enabled, the script fills the space between adjacent fan lines to create alternating fan zones. These colored bands make it easier to visually read the space between angles as active directional sectors.
This is especially useful when treating the fan as a dynamic channel structure rather than only a set of lines.
🔸 9) Right Side Angle Labels
Each fan angle can be labeled on the right side using the actual ratio name, such as 1x1 or 4x1 . The label position is user adjustable through the label shift setting.
This makes the fan immediately readable without needing to memorize line order.
🔸 10) Anchor Label Support
The script can place an anchor label at the origin point of the active fan, showing whether the current projection is bullish or bearish. This helps confirm which structural direction is currently active.
🔸 11) Customizable Line and Label Styling
Users can control:
Base line width
1x1 line width
Glow width
Label size
Label shift
Zone visibility
Glow visibility
Anchor label visibility
This makes the tool flexible for both minimalist and presentation focused layouts.
🔸 12) Structure Memory Control
The Max Stored Pivots setting controls how many swing points remain in memory. This helps the script stay efficient while still maintaining enough structural context for reliable anchor selection.
🔹 Calculations
1) Pivot Detection
The script identifies structural swing highs and lows using:
float ph = ta.pivothigh(high, pivotLen, pivotLen)
float pl = ta.pivotlow(low, pivotLen, pivotLen)
A pivot is only confirmed after pivotLen bars on both sides, so the stored pivot index is aligned to the actual pivot bar:
SwingPoint.new(bar_index - pivotLen, ph, true)
SwingPoint.new(bar_index - pivotLen, pl, false)
This ensures the fan anchor uses the true swing location, not the later confirmation bar.
2) Alternating Swing Storage
The script maintains a swing array that enforces alternating highs and lows:
if last.isHigh == candidate.isHigh
bool moreExtreme = (candidate.isHigh and candidate.price >= last.price) or (not candidate.isHigh and candidate.price <= last.price)
if moreExtreme
points.set(n - 1, candidate)
else
points.push(candidate)
Interpretation:
If two consecutive pivots are both highs, only the higher high is kept.
If two consecutive pivots are both lows, only the lower low is kept.
This keeps the swing structure cleaner and more meaningful.
3) Auto Direction Logic
In Auto mode, the script chooses bullish or bearish orientation based on which pivot type is most recent:
bool autoBull = not lastLow.isNa() and (lastHigh.isNa() or lastLow.idx > lastHigh.idx)
Interpretation:
If the latest valid pivot is a low, the script favors a bullish fan.
If the latest valid pivot is a high, the script favors a bearish fan.
The final direction can still be overridden by the Fan Direction input.
4) Bullish Anchor Construction
For a bullish fan, the script starts from the most recent low pivot:
SwingPoint lastLow = swings.lastPivot(false)
Then it looks for the most recent high pivot that occurred after that low:
SwingPoint ctrlHigh = swings.lastPivotAfter(true, lastLow.idx)
If such a high exists, it becomes the control point.
If not, the script uses the current bar and current high:
int x2 = ctrlHigh.isNa() ? bar_index : ctrlHigh.idx
float y2 = ctrlHigh.isNa() ? high : ctrlHigh.price
So the bullish fan is anchored from the latest significant low toward the next available structural high, or toward the live chart if that swing is still developing.
5) Bearish Anchor Construction
For a bearish fan, the script starts from the most recent high pivot:
SwingPoint lastHigh = swings.lastPivot(true)
Then it looks for the most recent low pivot that occurred after that high:
SwingPoint ctrlLow = swings.lastPivotAfter(false, lastHigh.idx)
If none is found yet, the script falls back to the current bar and current low:
int x2 = ctrlLow.isNa() ? bar_index : ctrlLow.idx
float y2 = ctrlLow.isNa() ? low : ctrlLow.price
So the bearish fan projects from the latest significant high toward the next structural low, or toward the live chart while the move is still unfolding.
6) Base Slope Calculation
Once the anchor is defined, the script computes the base slope between anchor point 1 and point 2:
(anchor.p2 - anchor.p1) / (anchor.idx2 - anchor.idx1)
This base slope is the reference slope used for the 1x1 line before applying the fan ratios.
7) Gann Ratio Projection
The script stores these ratios:
array.from(0.125, 0.25, 0.333333, 0.5, 1.0, 2.0, 3.0, 4.0, 8.0)
These correspond to:
1x8
1x4
1x3
1x2
1x1
2x1
3x1
4x1
8x1
For each ratio, the projected line value at any bar x is:
anchor.p1 + m * ratio * (x - anchor.idx1)
Where m is the base anchor slope.
This means:
Ratios below 1 create flatter angles than the base line
Ratio 1 creates the 1x1 line
Ratios above 1 create steeper angles than the base line
8) 1x1 Emphasis
The script gives the 1x1 line special treatment:
It uses mainLineWidth instead of baseLineWidth
Its glow can also be slightly wider than the other lines
This makes the central balance angle the visually dominant line in the fan.
9) Line Drawing and Extension
Each fan line is drawn from the anchor origin to the control index, then extended to the right:
line.new(
active.idx1, active.p1,
active.idx2, y2,
xloc = xloc.bar_index,
extend = extend.right,
...
)
This means the visible geometry is anchored in actual structure, but the line continues into the future as a projected guide.
10) Glow Layer Logic
If glow is enabled, the script first draws a wider translucent line underneath the main line:
line.new(... color = glowColor, width = gWidth)
Then it draws the normal fan line on top. This creates a soft highlight effect without changing the underlying geometry.
11) Angle Label Placement
If labels are enabled, the script places each label at a future bar location:
int xLabel = math.min(bar_index + labelShiftBars, bar_index + 500)
float yLabel = active.priceAt(ratio, xLabel)
This means the label stays attached to the correct projected fan angle while remaining offset from the live candles for readability.
12) Fan Zone Fill Logic
When zone fill is enabled, the script creates a fill between each adjacent pair of fan lines:
linefill.new(l1, l2, zoneColor)
The fill transparency alternates slightly from one band to the next:
int zoneAlpha = i % 2 == 0 ? 91 : 95
This creates subtle separation between fan sectors and improves visual depth.
13) Anchor Label Logic
If enabled, the script prints a label at the anchor origin:
string dirText = active.bullish ? "Bullish Gann Fan" : "Bearish Gann Fan"
This provides immediate confirmation of which structural direction is currently driving the fan. Indicator

Liquidity Sweep Rider Institutional HFT Grabber Liquidity Sweep Rider Strategy (Swing Pivot + Volume Filter)
Publication Description:
This is an open-source Pine Script v6 strategy that identifies potential liquidity sweep patterns around confirmed swing highs and lows.
It uses:
Pivot points (ta.pivothigh / ta.pivotlow) to mark historical swing levels where orders (such as stops or pending entries) often cluster.
A volume filter requiring above-average volume (SMA-based with multiplier) on the sweep candle to highlight stronger moves.
Classic sweep logic: price wicks beyond the level but closes back inside, suggesting a possible reversal after liquidity is taken.
Entry rules:
Long: after a downside sweep below a recent swing low (with volume condition).
Short: after an upside sweep above a recent swing high (with volume condition).
Features include:
Optional toggles to enable/disable long/short directions.
ATR-based stop-loss and take-profit (configurable multipliers and risk-reward ratio).
Visual plots for liquidity levels, entry signals, background highlights, and an info table.
Alert conditions for long/short triggers.
Important notes:
This is an educational/example script for backtesting and learning.
Past performance does not indicate future results. Trading involves significant risk of loss — use proper risk management and never risk more than you can afford to lose.
No guarantees of profitability are made. Always test thoroughly on demo accounts before live use.
Customize parameters (pivot lengths, volume multiplier, ATR settings) based on the instrument and timeframe you trade. Works on various markets/timeframes but performs differently depending on liquidity and volatility.
Feel free to fork/modify the code. Feedback and improvements are welcome!
(≈ 3–4 paragraphs, clear, educational, includes risk disclaimer, explains logic + usage without hype.) Strategy

Indicator

Pivot Pro - CPR PDH/PDL EMA by Sani═══════════════════════════════════════════════
PIVOT POINTS PRO — CPR + PDH/PDL + EMA
Full Historical | No Repaint | All Customizable
═══════════════════════════════════════════════
A professional all-in-one indicator combining the
Standard Pivot Point system with CPR (Central Pivot Range),
Previous Day High/Low, and dual EMAs — all non-repainting,
fully customizable per level, and drawn across complete
chart history.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔷 PIVOT POINTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Supports all 6 types: Traditional, Fibonacci,
Woodie, Classic, DM, Camarilla
- Timeframe anchoring: Auto, Daily, Weekly, Monthly,
Quarterly, Yearly, and multi-year periods
- Every level (P, R1–R5, S1–S5) has its own
independent Color, Line Style, and Line Width
- Lines extend to the right edge of the chart
- Historical pivot count controlled by "Number of Pivots Back"
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 CPR — CENTRAL PIVOT RANGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Calculated from previous day OHLC (non-repainting)
- Draws CPR Pivot, BC (Bottom Central), TC (Top Central)
- Visible across ALL historical sessions — not just today
- Each line has its own Color, Style (Solid/Dashed/Dotted),
and Width
- Current session extends to right edge automatically
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔹 PDH / PDL — PREVIOUS DAY HIGH & LOW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Previous day High and Low plotted per session
- Full chart history — every completed day visible
- Independent Show/Hide, Color, Style, and Width
for PDH and PDL separately
- Current session extends to right edge automatically
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 EMA — FAST & SLOW WITH TREND COLORING
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Dual EMA (default 10 / 20) with dynamic color:
→ Green when Fast > Slow (bullish)
→ Red when Fast < Slow (bearish)
→ Yellow when flat
- Optional EMA Band background highlight (purple)
when price is between the two EMAs
- EMA Touch + 2-Candle confirmation alerts included
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Pivot Type & Timeframe
- Labels: Show/Hide, position (Left or Right), prices
- Per-level: P, R1–R5, S1–S5 — Color, Style, Width
- CPR: Master toggle + individual Pivot / BC / TC controls
- PDH/PDL: Master toggle + individual PDH / PDL controls
- EMA: Lengths, Width, Band background
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡️ NO REPAINT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
All values fetched using:
request.security(..., lookahead=barmerge.lookahead_on)
with shift on daily OHLC — values are locked to
the previous completed day and never change on the
current bar.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 BEST USED ON
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Intraday timeframes: 1m, 3m, 5m, 15m, 30m, 1H
Works on any market: Stocks, Forex, Crypto, Futures
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 BUILT-IN ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- EMA Bullish Cross
- EMA Bearish Cross
- Price Touched PDH
- Price Touched PDL
- Price Near CPR Pivot Indicator

Elite Session Volume Distribution Engine [JOAT]Elite Session Volume Distribution Engine
Introduction
The Elite Session Volume Distribution Engine is an open-source indicator that combines session-based analysis (London, New York, Asian sessions) with volume distribution profiling, VWAP analysis, volume-weighted momentum indicators, and session high/low tracking. This mashup creates a comprehensive session and volume analysis system designed to identify when institutional volume enters the market during specific trading sessions and how that volume is distributed across price levels.
The indicator addresses a critical market reality: different trading sessions have distinct volume characteristics and institutional participation levels. London and New York sessions typically have highest volume and volatility, while Asian session is quieter. By tracking volume distribution, momentum, and key levels within each session, this tool helps traders identify optimal trading windows and understand how institutional volume shapes price action during different global market hours.
Chart showing session boxes, volume distribution, and VWAP on 45M timeframe
Why This Mashup Exists
This indicator combines five analytical frameworks that address different aspects of session-based trading:
Session Identification: Tracks London, New York, and Asian trading sessions
Volume Distribution: Analyzes how volume is distributed across price levels within sessions
VWAP Analysis: Calculates session-specific Volume Weighted Average Price
Volume Momentum: Tracks volume trends and climax conditions
Session High/Low: Identifies key levels established during each session
Each component serves a specific purpose: Session identification shows when institutional traders are active, Volume Distribution reveals where volume concentrates (value areas), VWAP shows institutional average price, Volume Momentum identifies accumulation/distribution phases, and Session High/Low marks key reference levels. Together, they create a complete picture of how institutional volume flows through different trading sessions.
The mashup is justified because these components work together in session-based trading: institutions enter during specific sessions (London/NY), create volume distribution patterns at key levels, establish VWAP as benchmark, show momentum through volume trends, and set session highs/lows that become support/resistance. Tracking all simultaneously reveals the complete session-based institutional flow.
Core Components Explained
1. Session Identification System
The indicator identifies three major trading sessions:
// London Session (03:00-12:00 GMT)
londonSession = input.session("0300-1200", "London Session")
inLondonSession = not na(time(timeframe.period, londonSession))
// New York Session (08:30-17:00 EST)
nySession = input.session("0830-1700", "NY Session")
inNYSession = not na(time(timeframe.period, nySession))
// Asian Session (00:00-09:00 GMT)
asianSession = input.session("0000-0900", "Asian Session")
inAsianSession = not na(time(timeframe.period, asianSession))
// Session overlap (London + NY)
sessionOverlap = inLondonSession and inNYSession
Session characteristics:
London Session: High volume, major currency pairs active, trend establishment
NY Session: Highest volume, US markets active, major moves occur
Asian Session: Lower volume, range-bound often, JPY pairs active
London/NY Overlap: Highest volume period, most volatile, best liquidity
The indicator can optionally display session boxes as background colors (disabled by default to reduce clutter).
2. Volume Distribution Analysis
Volume distribution shows where volume concentrates within price ranges:
// Calculate volume at different price levels
volumeAtPrice = array.new_float()
// For each price level in session range
for i = sessionLow to sessionHigh by tickSize
volumeAtLevel = sum of volume where price traded at level i
array.push(volumeAtPrice, volumeAtLevel)
// Identify Point of Control (POC) - price level with most volume
poc = price level with maximum volume
// Identify Value Area (VA) - price range containing 70% of volume
valueAreaHigh = upper bound of 70% volume
valueAreaLow = lower bound of 70% volume
Volume Distribution concepts:
Point of Control (POC): Price level with highest volume - strong support/resistance
Value Area High (VAH): Upper bound of 70% volume distribution
Value Area Low (VAL): Lower bound of 70% volume distribution
High Volume Nodes: Price levels with significant volume - support/resistance zones
Low Volume Nodes: Price levels with little volume - price moves through quickly
The indicator plots volume distribution as a histogram or profile showing where institutional volume concentrated during the session.
3. Session-Specific VWAP
VWAP resets at the start of each session:
// Session VWAP calculation
var float sessionVWAP = na
var float cumulativeTPV = 0.0 // Typical Price * Volume
var float cumulativeVol = 0.0
if session_start
cumulativeTPV := 0.0
cumulativeVol := 0.0
typicalPrice = (high + low + close) / 3
cumulativeTPV := cumulativeTPV + (typicalPrice * volume)
cumulativeVol := cumulativeVol + volume
sessionVWAP = cumulativeTPV / cumulativeVol
Session VWAP significance:
Institutional traders use VWAP as execution benchmark
Price above session VWAP = buyers in control during session
Price below session VWAP = sellers in control during session
VWAP acts as dynamic support/resistance within session
Distance from VWAP indicates overextension
The indicator plots session VWAP with dynamic coloring based on price position.
4. Volume Momentum Analysis
Volume momentum tracks institutional accumulation/distribution:
// Volume moving average
volumeMA = ta.sma(volume, 20)
// Volume classification
highVolume = volume > volumeMA * 1.5
veryHighVolume = volume > volumeMA * 2.0
climaxVolume = volume > volumeMA * 3.0
// Volume trend
volumeRising = volume > volume and volume > volume
volumeFalling = volume < volume and volume < volume
// Accumulation/Distribution
accumulation = close > open and highVolume and volumeRising
distribution = close < open and highVolume and volumeRising
// Volume momentum indicator
volumeMomentum = (volume - volumeMA) / volumeMA * 100
Volume Momentum signals:
Rising Volume + Up Close: Accumulation - bullish
Rising Volume + Down Close: Distribution - bearish
Climax Volume: Potential exhaustion or strong institutional move
Declining Volume: Lack of institutional interest
Volume Momentum > 50%: Very strong institutional participation
The indicator plots volume bars with color coding based on momentum and direction.
5. Session High/Low Tracking
Session highs and lows become important reference levels:
// Track current session high/low
var float currentSessionHigh = na
var float currentSessionLow = na
if session_start
currentSessionHigh := high
currentSessionLow := low
else
currentSessionHigh := math.max(currentSessionHigh, high)
currentSessionLow := math.min(currentSessionLow, low)
// Previous session levels
prevSessionHigh = currentSessionHigh
prevSessionLow = currentSessionLow
Session High/Low significance:
Current session high/low show intraday range
Previous session levels act as support/resistance
Breaks above previous session high = bullish continuation
Breaks below previous session low = bearish continuation
Session range size indicates volatility and institutional activity
The indicator plots only CURRENT session high/low (2 lines instead of 6) to keep chart clean. Previous session levels can be toggled on if needed.
Example showing session VWAP, volume distribution, and session high/low levels
Volume Distribution Dashboard
The dashboard (bottom-right position) displays:
Current Session: London/NY/Asian/Overlap
Session VWAP: Current VWAP value
Price vs VWAP: Distance from VWAP in %
POC: Point of Control price level
Value Area: VAH and VAL levels
Volume Status: High/Normal/Low relative to average
Volume Momentum: Rising/Falling/Climax
Session Range: High - Low distance
Accumulation/Distribution: Current phase
Visual Elements
Session Boxes: Optional background colors for each session (default: OFF)
Session VWAP: Dynamic line with color based on price position
Session High/Low: Horizontal lines for current session (2 lines only)
Volume Bars: Color-coded based on momentum and direction
Volume Distribution Profile: Histogram showing volume at price levels
POC Line: Horizontal line at Point of Control
Value Area: Shaded zone between VAH and VAL
Accumulation/Distribution Markers: Labels for strong volume phases
Dashboard: Bottom-right table with session and volume metrics
Chart demonstrating session VWAP, volume bars, and dashboard
How Components Work Together
The mashup reveals session-based institutional flow:
Session Trading Sequence:
1. Session Opens: New session begins (London/NY/Asian)
2. VWAP Establishes: Session VWAP forms as volume enters
3. Volume Distribution: Institutions create volume at key levels (POC, Value Area)
4. Session Range: High and low established through institutional activity
5. Volume Momentum: Accumulation or distribution phase identified
6. Session Close: Levels become reference for next session
Example: London session opens, price trades above session VWAP with rising volume (accumulation). Volume distribution shows POC forming at 1.2500 level. Session high reaches 1.2550. NY session opens, price respects London session high and VWAP, continues higher with climax volume. Dashboard shows strong accumulation with volume momentum +75%.
Input Parameters
Session Settings:
London Session: Time range (default: 0300-1200)
NY Session: Time range (default: 0830-1700)
Asian Session: Time range (default: 0000-0900)
Show Session Boxes: Toggle background colors (default: OFF)
Highlight Overlap: Emphasize London/NY overlap (default: enabled)
VWAP Settings:
Show Session VWAP: Toggle VWAP line (default: enabled)
VWAP Reset: Session, Daily, Weekly (default: Session)
VWAP Bands: Optional standard deviation bands (default: disabled)
Distance Alert: Alert when price moves X% from VWAP (default: 2%)
Volume Settings:
Volume MA Length: Period for volume average (default: 20)
High Volume Threshold: Multiplier for high volume (default: 1.5x)
Climax Volume Threshold: Multiplier for climax (default: 3.0x)
Show Volume Bars: Color-coded volume bars (default: enabled)
Show Distribution Profile: Volume at price histogram (default: enabled)
Session Levels:
Show Current Session H/L: Toggle current session levels (default: enabled)
Show Previous Session H/L: Toggle previous session levels (default: disabled)
Show POC: Toggle Point of Control line (default: enabled)
Show Value Area: Toggle VAH/VAL zone (default: enabled)
Display Options:
Show Dashboard: Toggle metrics table (default: enabled)
Dashboard Position: Bottom-right, top-right, etc. (default: bottom-right)
Color Theme: Choose color scheme
Transparency: Adjust visual element transparency
How to Use This Indicator
Step 1: Identify Active Session
Check dashboard to see which session is active. Focus trading during London and NY sessions for highest volume and best opportunities.
Step 2: Monitor Session VWAP
Use session VWAP as directional bias. Price above VWAP = bullish bias, below = bearish bias. VWAP often acts as support/resistance.
Step 3: Check Volume Distribution
Identify POC and Value Area. These levels often provide strong support/resistance. Price tends to return to POC (fair value).
Step 4: Assess Volume Momentum
Check if volume is rising (accumulation/distribution) or falling (lack of interest). Climax volume often marks important turning points.
Step 5: Use Session High/Low
Current session high/low define intraday range. Breaks above/below these levels signal potential breakout moves.
Step 6: Watch for Session Transitions
Session opens and closes often bring volatility. London open and NY open are particularly important for major moves.
Best Practices
Use on 5-minute to 1-hour timeframes for optimal session analysis
London/NY overlap (08:30-12:00 EST) offers highest volume and best opportunities
Session VWAP acts as magnet - price often returns to it
POC from previous session often becomes support/resistance in current session
Climax volume at session high/low often marks reversal points
Accumulation during Asian session often leads to breakout during London open
Value Area breaks signal strong directional moves
Previous session high/low become key levels for current session
Combine session analysis with other technical tools for best results
Indicator Limitations
Session times are fixed and may not account for daylight saving time changes
Volume distribution requires sufficient data within session to be meaningful
VWAP can be less relevant in very volatile or trending markets
Session high/low can be broken multiple times in volatile conditions
Lower timeframes may show choppy session transitions
Volume data quality varies across different markets and brokers
Asian session analysis less reliable due to lower volume
Requires understanding of session-based trading concepts
Visual elements can clutter chart if all options enabled
Technical Implementation
Built with Pine Script v6 using:
Session detection using time() function with session strings
Session-specific VWAP calculation with reset logic
Volume distribution profiling with POC and Value Area calculation
Volume momentum tracking with MA comparison
Session high/low tracking with persistent variables
Accumulation/distribution detection using volume and price
Dynamic dashboard with real-time session metrics
Optional session boxes with transparency control
Color-coded volume bars based on momentum
The code is fully open-source and can be modified to adjust session times, volume thresholds, and visual preferences.
Originality Statement
This indicator is original in its comprehensive session and volume integration approach. While individual components (session identification, VWAP, volume distribution, volume momentum, session high/low) are established concepts, this mashup is justified because:
It combines session-based analysis with volume distribution profiling
Session-specific VWAP provides more relevant institutional benchmark than daily VWAP
Integration of volume momentum with session context reveals accumulation/distribution phases
Simplified visual presentation (current session H/L only) reduces clutter
Dashboard presents complex session and volume data clearly
Focus on institutional trading sessions (London/NY) aligns with volume reality
Each component contributes unique information: Session identification shows when institutions are active, Volume Distribution reveals where they're trading, VWAP shows their average price, Volume Momentum shows their intent, and Session High/Low marks their range. The mashup's value lies in presenting these complementary session-based perspectives simultaneously, allowing traders to understand how institutional volume flows through different global trading sessions.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Session-based analysis and volume distribution are analytical tools that analyze past data. They do not predict future price movement or guarantee that institutional traders are active at identified levels. Market conditions change, and session patterns that worked historically may not work in the future.
VWAP and volume distribution levels can fail to provide support/resistance. Session highs and lows can be broken without leading to sustained moves. Volume momentum can change rapidly. Past session behavior does not guarantee future session behavior.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Indicator

Strategy
