Indicateur Pine Script®
High
Weekly Range Break Planner [AGPro Series]# Weekly Range Break Planner
🧠 Core Idea
Is the weekly range break strong enough to monitor, or is price likely to fail back inside the range?
📌 Overview / What it does
Weekly Range Break Planner is a weekly range decision-support script built to evaluate whether price is breaking beyond the previous week's high or low with enough structural quality.
The script maps the previous weekly high, low, and midpoint, detects bullish or bearish breaks, builds a retest shelf around the broken boundary, scores the break from 0 to 100, and summarizes the current state inside a compact AG Pro panel.
It does not predict price direction, automate trades, or provide guaranteed signals. It is designed to organize weekly range context, break quality, retest behavior, target room, and invalidation risk into a clean visual workflow.
🎯 Purpose & Design Philosophy
Weekly highs and weekly lows are widely watched reference points, but not every break beyond them is meaningful.
This script was built for traders who want to separate a clean weekly range break from a weak expansion, failed breakout, or noisy return back into the prior range.
The design supports structured observation: range first, break quality second, retest behavior third, and action state last.
⚡ Why This Script Is Different
Most tools mark weekly highs and lows or show simple breakout signals.
This script does NOT stop at drawing weekly levels.
Instead, it evaluates what happens after price breaks the range: whether the break has enough close quality, whether the retest shelf is respected, whether target room remains, and whether the context is still valid.
⚙️ Methodology
1. Previous Weekly Range Mapping
2. Break Boundary Detection
3. Retest Shelf Construction
4. Break Quality Scoring
5. Target Room Evaluation
6. Invalidation And Expiration Handling
7. Panel And Alert Output
🗺️ How to Read the Chart
The weekly range box marks the previous week's high-low structure.
The high and low rails show the main break boundaries.
The midpoint line helps users understand where price is relative to the prior weekly balance.
The retest shelf appears around the broken boundary after a weekly range break.
READY BREAK labels appear when the break context meets the required score threshold.
Target rails show projected continuation references after a qualified break.
The panel summarizes Range State, Break Score, Retest, Room, and Action.
🚦 Signals & States
• READY → A qualified weekly range break has formed.
• MONITOR → Price has broken a weekly boundary and the script is evaluating quality.
• WAIT → The previous weekly range is valid, but no active break context is present.
• INVALIDATED → Price failed back inside the weekly range after a break.
• EXPIRED → The break window closed without a qualified context.
• BLOCKED → The previous weekly range is not suitable for evaluation.
🔔 Alerts Logic
Bullish Weekly Range Break Ready triggers when price breaks above the previous weekly high with enough quality.
Bearish Weekly Range Break Ready triggers when price breaks below the previous weekly low with enough quality.
Weekly Range Break Invalidated triggers when price fails back inside the prior weekly range after a break.
Weekly Range Break Expired triggers when the evaluation window closes without a qualified break state.
Alerts are attention markers, not trade instructions.
🧩 Confluence Logic
The break score combines weekly range fit, close distance beyond the boundary, retest shelf behavior, time quality, relative volume, and available target room.
When these elements align, the context becomes stronger.
When they do not align, the script remains in WAIT, MONITOR, INVALIDATED, EXPIRED, or BLOCKED state.
📊 When to Use
• Weekly high and weekly low break analysis
• Breakout-retest workflows
• Intraday monitoring around prior weekly extremes
• Swing context planning
• Trend continuation after a range expansion
⚠️ When NOT to Use
Avoid relying on this script in extremely low-liquidity markets, very noisy symbols, holiday sessions, or conditions where the previous weekly range is not meaningful.
It should not be used as a standalone decision tool without broader market context, risk planning, and independent confirmation.
🎛️ Key Inputs
• Minimum Weekly Range filters weak or compressed prior weekly ranges.
• Break Buffer ATR controls how far price must close beyond the weekly boundary.
• Retest Shelf ATR controls the depth of the shelf around the broken boundary.
• Invalidation Buffer ATR controls how far price must close back inside the range before invalidation.
• Minimum Ready Score controls how strong the score must be before READY appears.
• Target inputs define continuation reference rails from the broken boundary.
• Visual settings control boxes, rails, labels, right-side tags, panel location, and font size.
🖥️ Interface & Visual Design
The interface is designed to make the weekly range context readable at a glance.
The chart shows the prior weekly range, the active break boundary, the retest shelf, and target-room references without turning the screen into a generic breakout overlay.
The AG Pro panel gives compact decision context while preserving chart visibility.
🧪 Practical Usage Workflow
1. Check whether the previous weekly range is valid.
2. Watch for a close beyond the weekly high or low.
3. Observe the retest shelf around the broken boundary.
4. Read the break score, retest state, and room value.
5. Treat READY as an attention state and confirm with broader market context.
🔍 Interpretation Guidelines
A higher break score means the weekly range break is cleaner according to the script logic.
A clean retest shelf response can strengthen the context.
Low remaining room means the move may already be extended relative to the projected target.
READY means the context deserves attention, not that price must continue.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an auto-trading system.
It does not provide guaranteed signals.
It does not replace risk management or independent analysis.
⚠️ Limitations & Transparency
Weekly range behavior changes across markets, timeframes, volatility regimes, and liquidity conditions.
The score is rule-based and depends on current chart timeframe, ATR normalization, volume behavior, and the previous weekly range.
Different symbols may require different sensitivity settings.
🧠 Market Context Notes
Weekly range breaks can be more meaningful when aligned with trend, liquidity response, volume participation, and clean retest behavior.
Breaks that quickly return inside the prior weekly range often need extra caution.
🔐 Non-Promise Statement
No script can guarantee future price behavior.
This tool provides structured visual context only.
📉 Risk Disclosure
Trading involves risk.
Users remain responsible for their own decisions.
This script is for educational and analytical purposes only and does not provide financial advice or guaranteed trading outcomes.
Indicateur Pine Script®
Key Levels Pro [AGPro Series]Key Levels Pro
🔑 Overview
Key Levels Pro is a comprehensive, non-repainting level tracker that consolidates every institutionally significant price reference into one clean overlay. Previous day, week, and month highs/lows (PDH, PDL, PWH, PWL, PMH, PML) are plotted alongside Asian, London, and New York session highs and lows. Every level is actively monitored — touch count, break count, and respect rate update in real time, giving you a live quality score for each price zone.
Most level scripts stop at drawing lines. Key Levels Pro goes further: lines automatically thicken on repeated touches, switch to dashed style when broken, and fade to muted color to signal invalidation. Zone rectangles extend back to the formation bar of each level, making historical respect visible at a glance. An ATR-aware label collision system keeps the chart readable on every timeframe, and same-price levels are intelligently deduplicated so you never see four overlapping labels at the same price.
───────────────────────────────────────────────────────
📐 Unique Edge
Unlike generic pivot or S/R scripts, Key Levels Pro tracks the behavioral quality of each level — not just its existence. A level that has been tested five times without breaking carries a different weight than a fresh, untested one. Key Levels Pro surfaces that difference automatically through line width, style, and panel data.
What makes it distinct:
🔹 Complete previous-period coverage (PDH/PDL, PWH/PWL, PMH/PML) in one overlay, without redundant current-period duplicates.
🔹 Live session tracking for Asian, London, and New York simultaneously, with automatic hiding on Daily and higher timeframes.
🔹 Per-level touch count, break count, and respect rate computed from actual historical price interaction.
🔹 Dynamic line thickening on repeated touches (width 1 → 2 → 3).
🔹 Auto-broken state with dashed style + muted color — no distracting flags or banners.
🔹 Historical zone boxes extending back to the formation bar of each level.
🔹 ATR-aware label collision resolution that stacks overlapping labels vertically.
🔹 Price-based deduplication: when two levels share the same price, the higher-priority one wins (Monthly > Weekly > Daily > Session).
🔹 ATR-normalized proximity to the nearest level above and below the current price.
───────────────────────────────────────────────────────
🔬 Methodology
Previous-period levels are pulled from the daily, weekly, and monthly timeframes using request.security() with lookahead enabled for the completed-period values. This approach is standard, transparent, and non-repainting — historical data does not change.
Session levels are tracked bar by bar using customizable session time inputs. Each session resets at its start time and tracks the running high and low until the session closes. The Asian, London, and New York sessions can each be configured independently.
Touch detection uses an ATR-based tolerance band (default 10% of ATR). When price closes within that tolerance of a level, the touch counter increments. A break is registered when price closes on the opposite side of a level compared to the prior bar. Respect rate is calculated as touches / (touches + breaks) × 100.
Line width scales with touch count: 1 touch = width 1, 2–4 touches = width 2, 5+ touches = width 3. Broken levels switch to dashed style and a muted color.
The label collision system operates in three stages: first, all enabled levels are collected into a sorted array; second, same-price levels are deduplicated based on priority (Monthly highest, Session lowest); third, an upward sweep enforces minimum vertical spacing using a blend of ATR and chart-range heuristics, ensuring labels never overlap regardless of market volatility.
───────────────────────────────────────────────────────
📊 Signals & States
This script is a visualization and data tool — it does not generate buy or sell signals.
Level states are communicated visually:
🔹 Active (solid line, full color): level has not been broken.
🔹 Touched (thicker line, 2–3px): level has been tested one or more times.
🔹 Broken (dashed line, muted slate color): level has been decisively closed through.
Info panel states:
🔹 Session: active market session (Asian / London / New York / Off-Hours / N/A on Daily+).
🔹 Near Above / Near Below: price of the closest active level on each side of the current close.
🔹 Dist Above / Below ATR: distance expressed as a multiple of ATR(14).
🔹 Touch and respect rate data for PDH, PDL, PWH, PWL.
───────────────────────────────────────────────────────
⚙️ Key Inputs
Level Groups: Toggle previous day, week, month, and session levels independently.
Session Times: Fully customizable start/end times for Asian, London, and New York sessions in exchange timezone.
Zone Style: Enable/disable S/R zones and adjust zone transparency.
Lines & Labels: Set line extension length, toggle labels, choose label density (All / Reduced / Minimal), set font size, and enable or disable same-price deduplication.
Info Panel: Toggle panel, set location (six positions), and choose theme (Dark / Light).
ATR Settings: Set ATR period and touch tolerance as an ATR multiple (0.02 to 0.50).
───────────────────────────────────────────────────────
📖 How to Use
1. Add the script to a chart — all major levels appear immediately.
2. Adjust session times if trading non-crypto markets.
3. Watch line thickness: thicker = more tested = stronger historical reaction zone.
4. Dashed + muted color = broken. Treat broken levels as potential new S/R from the opposite side (role reversal).
5. Use the panel's Near Above and Near Below fields to gauge proximity before entry or exit decisions.
6. Use "Reduced" density (default) for cleaner charts, or switch to "All" when you need session context.
7. Works on all asset classes: crypto, forex, equities, indices, commodities.
Recommended timeframes: 15m–4H for session levels; 1H–1D for previous-period levels.
───────────────────────────────────────────────────────
⚠️ Limitations & Transparency
🔹 Session tracking is session-relative and resets each new session.
🔹 Touch tolerance is an ATR-based heuristic and may need adjustment on extremely low-volatility instruments.
🔹 All data is historical. Touch count and respect rate describe past price behavior, not future outcomes.
🔹 This script is not a trading strategy, does not issue trade signals, and cannot predict market direction.
🔹 On exotic or illiquid instruments with large gaps, formation-bar zone boxes may appear truncated if the level formed outside the chart's visible range.
───────────────────────────────────────────────────────
🛡️ Risk Disclosure
This script is provided for informational and educational purposes only. It does not constitute financial advice, investment advice, or a recommendation to buy or sell any financial instrument. All trading involves risk. Past level behavior does not guarantee future results. Always use proper risk management and test any approach in a demo environment before committing real capital.
Indicateur Pine Script®
Session Reaction Map [AGPro Series]Session Reaction Map
🔷 OVERVIEW
Session Reaction Map is a premium intraday study that maps how price reacts to the most important daily and weekly reference levels right at the opens of the Asia, London and New York sessions. Each session open is evaluated inside a fixed measurement window, and the resulting reaction is broken down into four dimensions: dominant move, close follow-through, wick rejection and counter-move penalty. The output is a single 0-100 reaction score that is then translated into tier-coded labels, premium reaction zones, an active reference band and a compact status panel, so you can instantly read what happened at each session open without scrolling through candles.
The indicator is designed for discretionary traders, systematic traders, SMC and price action practitioners who want a clean, consistent and quantitative way to read session open behaviour around PDH, PDL, PDM, Daily Open and Weekly Open. Reactions are drawn as directional zones (bull zones above the reference and bear zones below), with up or down pointing labels centered on the reaction, so orientation is always unambiguous.
🧭 UNIQUE EDGE
Most session open tools only mark time windows or highlight levels. Session Reaction Map goes further and quantifies the quality of the reaction itself. Four independent dimensions are measured against a fixed ATR-normalized baseline, and the final score determines not only whether a label is shown but also how prominent it is. Elite scores (80+) get the strongest visuals; strong scores (70-79) get a slightly softer treatment; watch scores (55-69) are coded as caution; anything below 55 is filtered out by default.
This separation between detection (a session open near a reference) and evaluation (the reaction quality score) is the core edge. It lets you focus only on the best intraday reactions and discard noise automatically, while still being able to audit every component by adjusting the ATR length, touch tolerance, evaluation window and score thresholds.
⚙️ METHODOLOGY
Session detection uses the chosen timezone and three session windows (Asia, London, New York), each with its own editable open range. When a session open occurs, the script checks whether the open price is within an ATR based touch tolerance of any enabled reference level (Previous Day High, Previous Day Low, Previous Day Mid, Daily Open or Weekly Open). If so, a reaction window is engaged on that bar and tracked for a configurable number of bars.
During the reaction window, the live zone, reference band and dashed reference line are updated in real time. When the window completes, the final score is computed as:
• Dominant move score (up to 45 points) - scaled against 1.20 x ATR
• Close follow-through score (up to 30 points) - scaled against 0.90 x ATR
• Wick rejection score (up to 15 points) - scaled against 0.50 x ATR
• Counter-move penalty (up to -20 points) - scaled against 1.00 x ATR
The sum is clamped into the 0-100 range and mapped into four tiers: Elite, Strong, Watch and Weak. The dominant direction of the reaction (up or down) is determined by comparing the upside excursion from the reference to the downside excursion from the reference during the window.
🎯 SIGNALS AND VISUALS
• Reaction zones - rectangular areas connecting the reference level with the reaction extreme, tier-coded by score and bias
• Active reference band - a thin accent band around the current reference level during a live reaction window
• Dashed reference line - marks the exact reference price while the reaction is being measured
• Tier-coded labels - up-pointing labels below bullish reactions and down-pointing labels above bearish reactions, centered on the reaction window
• Session dots - small colored markers that optionally display only on valid events, keeping the chart clean
• Active measurement highlight - an ultra-soft background shade on bars inside a live reaction window
Labels use a ring buffer overlap check, so dense multi-session conditions do not pile labels on top of each other. When two labels would visually conflict, the higher-scored reaction wins.
🛠️ KEY INPUTS
Sessions - enable/disable and edit Asia, London and New York session windows, each with its own color and timezone.
Reference Levels - individually toggle PDH, PDL, PDM, Daily Open and Weekly Open.
Reaction Logic - ATR length, touch tolerance in ATR, evaluation bars, label score filter, minimum label score, overlap reduction (bars and vertical ATR gap).
Visuals - show/hide reference levels, session dots, dots only on valid events, reaction zones, minimum score for zones, zone transparency and extension, live reaction zone, active reference band with its ATR size and transparency, active measurement highlight, level width, label size, label offset in ATR and label background transparency.
Panel - show/hide, position (six anchor points), Dark or Light theme, font size, optional guide row.
All numerical inputs carry professional English tooltips explaining their role, so the script can be tuned for any symbol, timeframe and trading style.
📘 HOW TO USE
1. Apply the script on an intraday timeframe. It is designed for intraday use and will stay passive on daily/higher timeframes.
2. Recommended starting timeframe is 4H for swing intraday context, and 1H for tactical intraday work. Lower timeframes (15m, 30m) work too but may produce dense output.
3. Start with the default settings. Observe which sessions and which reference levels generate the most Elite and Strong reactions on your symbol.
4. Use the panel to monitor the current state: last session, last reference, bias, score, tier, label filter, zone filter and the active reaction status.
5. Treat Elite (80+) and Strong (70-79) reactions as the main signals. Watch tier is informative and Weak tier is generally discarded.
6. Align with your own confluence: higher timeframe bias, structure, orderflow, or whatever your primary framework is. The script does not issue buy or sell calls - it scores reactions, and you decide.
⚠️ LIMITATIONS AND TRANSPARENCY
• This is not a strategy and does not place orders. No backtest statistics are implied.
• Reaction scores are computed after the evaluation window completes, so they are not repainting but are confirmed with a lag equal to the evaluation window size.
• The live reaction zone updates during the window and is finalized when the window closes.
• Session behavior varies significantly by symbol (crypto vs FX vs equities) and by volatility regime. Inputs should be tuned per symbol.
• Daily and Weekly references use standard request.security with barmerge.lookahead_off to avoid look-ahead bias.
• The script is not a forecasting tool. It is a post-event quantification of how price has just reacted to a known reference level.
🛡️ RISK DISCLOSURE
Trading involves substantial risk. Past reactions, patterns, zones or scores do not guarantee future performance. This script is provided for educational and analytical purposes only and is not financial advice. Always combine any tool with your own research, a defined risk plan and proper position sizing. You are solely responsible for your trading decisions.
Indicateur Pine Script®
HH/HL/LH/LL Structure Tracker [AGPro Series]HH/HL/LH/LL Structure Tracker
🔹 Overview
HH/HL/LH/LL Structure Tracker automatically classifies every confirmed swing on your chart using pure Dow Theory — the original price-action framework that precedes and underlies every modern market-structure methodology. Each pivot high is labeled as a Higher High (HH) or Lower High (LH), and each pivot low as a Higher Low (HL) or Lower Low (LL). The sequence of the last four swings derives a live trend state: Bullish, Bearish, or Ranging.
No oscillators. No lagging averages. Just the raw geometry of price.
💎 What Makes This Different
While most "market structure" indicators focus on Break-of-Structure or Change-of-Character logic layered with Smart Money terminology, this script returns to the foundation: the four-swing classification that Charles Dow documented over a century ago. The result is an uncluttered, universally readable overlay that communicates structural context at a glance — regardless of which higher-level methodology you apply next (SMC, Wyckoff, Elliott, or classical technical analysis).
Key differentiators versus generic HH/HL scripts on the public library:
• Live structure range zone that dynamically recolors with the trend state (bullish teal, bearish pink, ranging amber).
• Bull Streak and Bear Streak counters — a quantifiable measure of trend persistence (e.g. "3 consecutive HH-HL swings").
• Semantic break classification: the panel distinguishes a continuation break (HH or LL broken in trend direction) from a reversal break (LH or HL broken against the prior structure).
• Progressive label offset algorithm: when several same-type swings cluster without an intervening opposite swing, each subsequent label is offset further from price, eliminating the overlap that plagues most swing scripts on fast-moving charts.
• AGPro design language: premium info panel, adjustable font size and theme, and a disciplined color palette.
🧠 Methodology
1. Pivot detection. A confirmed swing high is a bar whose high exceeds the preceding and following N bars (N = Pivot Length, default 5). Confirmed swing lows mirror the rule. Confirmation occurs N bars after the pivot bar, never repaints.
2. Swing classification. Each new confirmed high is compared to the previous confirmed high. If greater, it is HH; if lesser, LH. Lows are compared to the previous low: greater means HL, lesser means LL.
3. Trend derivation. If the most recent high is HH and the most recent low is HL, the trend state is Bullish. If LH and LL, Bearish. Any mixed sequence (HH + LL, LH + HL) returns Ranging.
4. Structure range zone. A rectangle is drawn between the most recent swing high and most recent swing low. The zone is always current: as new swings confirm, the zone updates in place. Zone color tracks the trend state.
5. Structure break. A close above the most recent swing high (or below the most recent swing low) fires a break event. The type of swing broken is reported — breaking an LH or HL typically precedes a trend reversal; breaking an HH or LL typically signals continuation.
📊 Signals & Alerts
Three optional alert types are available, each using "once per bar close" frequency to prevent intrabar noise:
• New Higher High confirmed — fires when a fresh HH is classified.
• New Lower Low confirmed — fires when a fresh LL is classified.
• Structure break — fires on a close outside the current structure range, labeled as either (reversal signal) or (continuation).
The live info panel reports: Trend state, Bull Streak, Bear Streak, Last High (with type and price), and Last Break (with type and price).
⚙️ Key Inputs
• Pivot Length — sensitivity of swing detection (2 to 50). Lower values capture minor structure; higher values isolate major swings only. Typical: 3–8 intraday, 5–15 swing trading.
• Max Visible Labels — caps the number of historical labels kept on the chart to preserve a premium uncluttered look.
• Label & Panel Font Size — five sizes from Tiny to Huge, default Normal.
• Label Distance from Price (ATR) — base vertical offset of labels from pivot candles.
• Structure Range Zone — toggle, transparency, and border.
• Trend Background Tint — subtle bullish or bearish chart shading.
• Info Panel — toggle, location (six positions), and theme (Dark or Light).
• Alerts — independent toggles for new HH, new LL, and structure break.
🎯 How to Use
Context tool, not a standalone signal generator. Use the trend state to filter entries from your primary methodology: take long setups only while Trend is Bullish and Bull Streak is building, or vice versa. The structure range zone highlights the active battleground between buyers and sellers — trades taken inside the zone are counter-trend by definition, trades taken on a decisive break of the zone align with the emerging new trend.
Reversal breaks (LH or HL broken) are high-information events — they are often the first objective signal that a prevailing trend is losing conviction, ahead of any moving-average cross or momentum divergence. Continuation breaks (HH or LL broken) are confirmation events that validate staying with the trend.
Works on all markets and all timeframes. Particularly effective on liquid instruments with clear structural rhythm: major crypto pairs, FX majors, index futures, and large-cap equities.
⚠️ Limitations & Transparency
• Pivot confirmation requires N bars after the swing; the most recent unconfirmed swing is never labeled.
• In low-volatility sideways regimes, pivot clustering is inevitable — the Pivot Length input should be raised to filter noise on ranging charts.
• The trend state is derived from only the last two swings; it does not account for higher-timeframe context. Pair with a higher-timeframe version of the same script for multi-timeframe confluence.
• Does not provide entry, stop, or target levels. It is a structural framework, not a complete trading system.
📌 Risk Disclosure
This indicator is for educational and analytical purposes only. It does not constitute financial advice, a trading recommendation, or a guarantee of future performance. All trading involves risk of loss. Past structural patterns do not guarantee future outcomes. Always conduct your own due diligence and use appropriate risk management.
Indicateur Pine Script®
Swing Failure Pattern (SFP) Engine [AGPro Series]Swing Failure Pattern (SFP) Engine
────────────────────────────────────────────────────────────
OVERVIEW
────────────────────────────────────────────────────────────
Swing Failure Pattern (SFP) Engine detects high-probability liquidity sweep
events at prior swing highs and lows. An SFP occurs when price pierces a
recent swing level with a long wick but closes back inside the prior range,
signalling failed continuation and potential mean reversion. Each event is
scored on four components, drawn as a mid-sized support/resistance reaction
zone, and tracked through its live cycle — with panel statistics on MFE,
MAE, and hit rate. Designed for visual pattern reading and confluence;
not a buy/sell system.
────────────────────────────────────────────────────────────
UNIQUE EDGE
────────────────────────────────────────────────────────────
Most SFP indicators mark the sweep candle and stop there. This engine treats
each SFP as a living support/resistance band: the zone extends to the right
every bar and only freezes when the swept level is actually broken on close.
That preserves the SR context that traders use in real decisions, without
cluttering charts with zones that never die. A composite score (0-100),
confluence grouping of nearby events within 0.5 ATR, and live MFE/MAE
tracking in ATR units turn a common pattern into a measurable framework.
────────────────────────────────────────────────────────────
METHODOLOGY
────────────────────────────────────────────────────────────
Swing detection uses pivot highs and lows confirmed by a configurable
lookback. An SFP is confirmed on bar close when four conditions are met:
1. The bar wicks beyond a prior unswept swing high (bearish) or swing low
(bullish) within the active lookback window.
2. The close reclaims the prior range by at least the user-defined ATR
distance (default 0.25 ATR).
3. The sweep-side wick represents at least the minimum wick ratio of total
bar range (default 55 percent).
4. Bar volume exceeds its 20-period SMA by the configured multiplier
(optional, default 1.15x).
Composite score (0-100) weights wick ratio (40), reclaim distance in ATR
(30), volume confirmation (15), and swing age (15). Only events above the
minimum score threshold are drawn. Each confirmed SFP removes its swept
swing from the active array to prevent re-triggering on the same level.
Confluence grouping merges same-side events within 0.5 ATR into a single
labelled zone with an x2, x3 count.
────────────────────────────────────────────────────────────
SIGNALS & ALERTS
───────────────────────────────────────────────────────────
Visual signals on chart:
- State-coloured label at the sweep bar reading Bull SFP or Bear SFP with
the composite score (e.g., Bull SFP 74). Confluence-grouped events are
suffixed with the merge count (e.g., Bear SFP 81 x2).
- Rectangular zone spanning the swept level and the SFP close, with a
small ATR buffer. The zone extends right each bar while active and
freezes in neutral grey when the swept level breaks.
- Dotted horizontal line marking the swept swing level.
- Dashed projection line indicating the reversal direction.
Alert conditions:
- Bullish SFP: fires on the confirmation bar of a bullish event above
the score threshold.
- Bearish SFP: same, for bearish events.
- Zone Invalidation (optional): fires when an active zone's swept level
is broken on close.
────────────────────────────────────────────────────────────
KEY INPUTS
────────────────────────────────────────────────────────────
Detection:
- Swing Pivot Length - bars each side of a pivot (default 5).
- Swing Lookback - how far back active swings are tracked (default 120).
- Min Wick Ratio - minimum sweep wick as fraction of bar range (0.55).
- Min Reclaim Distance (ATR) - how far close must reclaim (0.25 ATR).
- Require Above-Average Volume and Volume Multiplier (default 1.15x).
- ATR Length (default 14).
Scoring & Filters:
- Min SFP Score (default 55 of 100).
- Max Active Zones retained on chart (default 8).
- Stats Timeout - bars after which an unresolved event is counted in
averages (default 30). Does not affect zone visibility.
Visuals:
- Zone transparency (default 80), confluence grouping distance (0.5 ATR),
label size, and toggles for zones, swing lines, and reversal projections.
Panel:
- Location (8 options), Dark/Light theme, text size.
Alerts:
- Independent toggles for bullish, bearish, and invalidation alerts.
────────────────────────────────────────────────────────────
HOW TO USE
────────────────────────────────────────────────────────────
Apply the indicator to any chart and timeframe. Higher timeframes (1h and
above) produce cleaner swings; lower timeframes require a higher Min Wick
Ratio and Min Score to filter noise.
Read SFPs as liquidity sweep events, not standalone entries. A bullish SFP
below a prior swing low indicates that sellers failed to extend the move —
often a location where larger participants accumulate. The score reflects
sweep quality; higher scores (70+) generally correspond to cleaner
rejections. Use the zone as a support/resistance reference until it is
invalidated.
Panel statistics describe the observed sample on the loaded chart, not a
backtested system. MFE Hit Rate is the percent of resolved zones that
reached 1 ATR in the SFP direction before the swept level broke — it is a
quality reference, not a win rate for any trading strategy.
────────────────────────────────────────────────────────────
LIMITATIONS & TRANSPARENCY
────────────────────────────────────────────────────────────
- Signals confirm on bar close; intrabar conditions may change until close.
- Pivot detection introduces a natural bars-of-right-context lag equal to
the Pivot Length. This is intrinsic to any pivot-based approach.
- Panel statistics reflect events visible on the current chart load and
will vary with timeframe, symbol, and bar range.
- MFE Hit Rate is not a profit expectation. It measures whether price
moved 1 ATR in the SFP direction before the swept level broke.
- Volume confirmation uses chart volume and may behave differently on
symbols with inconsistent volume data.
- The indicator uses standard Pine Script drawing objects. Chart reload
may reset ephemeral visual states of resolved zones.
────────────────────────────────────────────────────────────
RISK DISCLOSURE
────────────────────────────────────────────────────────────
This indicator is a visualisation and analysis tool. It is not a trading
system, not financial advice, and not a signal service. It does not
predict future price movement. All trading decisions carry risk of loss
and are the sole responsibility of the user. Historical pattern behaviour
does not guarantee future results. Test thoroughly on your instruments
and timeframes before making any decisions.
Indicateur Pine Script®
Session H/L + Session Vwaps [UTC+2]a simple yet Effective Indicator with multiple configurable Vwaps and Session Liquidity Zones
Indicateur Pine Script®
HOLO EngineOverview
This is a Pine Script v5 conversion of the HOLO concept originally coded by thi4gon for MetaTrader 4. Full credit to thi4gon for the original systems logic and mean-reversion framework — this publication brings that idea into TradingView with a fully rebuilt engine, multi-timeframe support, signal filtering, an info panel, and alert conditions.
HOLO stands for Highest Open / Lowest Open. The core idea: the highest and lowest opening prices recorded by intraday bars since the day started act as significant mean-reversion levels. Price tends to return to these open extremes after deviating from them. The HO is a potential sell level; the LO is a potential buy level. Stop-loss reference is the current day's running high (for sells) and running low (for buys).
How It Works
At the start of each new day, the engine resets and begins tracking the highest open and lowest open printed by H1 candles (or any selected timeframe). These levels are not highs and lows of the candle — they are the open prices, making them distinct from standard session high/low tools.
A trade setup occurs when:
A bar opens inside the zone between the HO/LO and the corresponding daily extreme (sell zone = between HO and Daily High; buy zone = between Daily Low and LO)
Price touches the HO or LO level during that bar
Price has not broken outside yesterday's high/low range (breakout filter)
The current H1 bar is not the bar that created the HO/LO (breakout bar filter)
Today's range has reached at least 50% of the daily ATR (optional, enabled by default)
All signal evaluation is done on confirmed closed bars only — no repainting.
Features
H1 HO/LO primary levels with multi-timeframe options (H4, M30, M15, M5, M1)
Shaded buy and sell zones with readable area labels
Daily High/Low as stop-loss reference lines
Yesterday's High/Low as breakout boundary
Optional Previous Day HO/LO, Weekly High/Low, and Monthly High/Low
Equidistant pip-projection lines from the HO or LO level
Confirmed-bar signal arrows with ATR range filter and tolerance input
Info panel: live status, Range/ATR %, day range in pips, ATR in pips, entry and SL levels, bar countdown timer
Color-coded legend table
8 individual alert conditions including dynamic price alerts
Timeframe warning when applied to daily or higher charts
Duplicate price filter to prevent overlapping labels
All drawings rendered at the last bar for performance
Apply on intraday timeframes (M5 to H1 work best)
Primarily designed for Forex — pip value is auto-calculated from syminfo.mintick
Works on any instrument but pip labeling is calibrated for 5-digit and 3-digit FX pairs
The indicator does not provide financial advice. All levels are reference points — manage risk independently
Credits
Original HOLO concept and MetaTrader 4 indicator by thi4gon. This TradingView implementation was built from the ground up in Pine Script v5 by the Amorphos team, adding multi-timeframe support, signal filtering, dynamic alerts, and a full visual dashboard on top of thi4gon's original framework.
Indicateur Pine Script®
AG Pro Previous Day Sweep & Reclaim [AGPro Series]AG Pro Previous Day Sweep & Reclaim
Overview / What it does
AG Pro Previous Day Sweep & Reclaim is an overlay built to map one very specific price behavior around the previous day’s range: a sweep of the Previous Day High (PDH) or Previous Day Low (PDL), followed by a reclaim back inside the level.
The script is designed for traders who want a structured way to observe failed expansion attempts around prior-day liquidity. Instead of treating every break of PDH or PDL as continuation, this tool focuses on the opposite question: when price briefly trades beyond a prior-day extreme and then reclaims that level, is the move showing signs of rejection strong enough to deserve attention?
The core idea is intentionally narrow. This is not a broad market-structure engine, not a support/resistance dashboard, and not a general breakout system. Its purpose is to isolate a specific sequence: sweep -> reclaim -> quality assessment. That single workflow helps keep the script readable and functionally distinct.
Signals can be confirmed on the same bar or on the next bar, depending on user preference. Once a reclaim is confirmed, the script assigns a quality score, draws a directional arrow, prints a reclaim label, and keeps the visual structure compact enough for practical chart work across intraday and higher timeframes.
Unique Edge
The distinguishing feature of this script is that it does not simply plot PDH and PDL, and it does not label every break as meaningful. It attempts to separate ordinary range interaction from failed liquidity grabs by requiring reclaim confirmation and then grading the event.
Its logic is centered on reversal-quality mapping rather than static level display. That means the script does more than show where the previous day’s extremes are located. It evaluates whether the move through those extremes was shallow or excessive, whether the reclaim was weak or decisive, whether wick behavior supports rejection, whether volume was comparatively active, and whether the event occurred inside the selected session context.
Another practical edge is the confirmation flexibility. Some traders prefer immediate reclaim behavior on the same bar. Others want one additional bar for confirmation. This script supports both approaches, plus an Either mode for broader detection.
The visual side is also deliberately managed. Reclaim labels, arrows, guide lines, sweep boxes, label spacing controls, visible label limits, and HTF label filtering are included so the output remains usable instead of turning into uncontrolled chart clutter.
Methodology
The script retrieves the previous day’s high and low and tracks live interaction with those two reference levels.
Bullish reclaim logic begins with a downside sweep:
- price trades below the Previous Day Low
- price then closes back above the Previous Day Low
- confirmation can occur on the same bar, on the next bar, or by either method depending on settings
Bearish reclaim logic mirrors that process:
- price trades above the Previous Day High
- price then closes back below the Previous Day High
- confirmation follows the selected reclaim mode
After confirmation, the script computes a quality score from multiple components. These components are intended to give structure to the event rather than to claim certainty about future direction.
The quality model includes:
- sweep depth relative to ATR
- reclaim strength within the bar range
- rejection wick fraction
- relative volume versus a moving average baseline
- bar range relative to ATR
- urgency factor for same-bar versus next-bar confirmation
- candle body bias
- session participation
The final score is normalized to a 0-100 scale and translated into a simple tier:
- A
- B
- C
- D
This score is not meant to be a prediction engine. It is a ranking tool that helps organize reclaim events by relative quality under the script’s own rules.
Session filtering is available because many traders only want to evaluate sweep-and-reclaim behavior during specific active windows. London, New York, custom sessions, or unrestricted monitoring can be selected.
For chart usability, the script also includes:
- previous day range fill
- optional reclaim guide lines
- optional sweep boxes
- reversal arrows
- reclaim labels
- summary panel
- visible label limits
- HTF smart label filtering
- minimum bar spacing between same-side labels
Signals & Alerts
The script produces two primary confirmed event types:
1. Bullish Previous Day Sweep & Reclaim
A downside sweep through PDL followed by a reclaim back above that level.
2. Bearish Previous Day Sweep & Reclaim
An upside sweep through PDH followed by a reclaim back below that level.
When enabled, the chart can display:
- directional reclaim arrows
- reclaim labels with score, tier, and confirmation mode
- sweep zone boxes
- short reclaim guide lines
Built-in alerts are included for:
- Bullish Previous Day Sweep & Reclaim
- Bearish Previous Day Sweep & Reclaim
These alerts are tied to confirmed reclaim conditions defined by the selected confirmation mode and minimum quality threshold.
Key Inputs
Reclaim Confirmation
Choose whether confirmation must occur on the Same Bar, Next Bar, or Either.
One Signal Per Side / Day
Limits repeated signals of the same side within a single day.
Use Session Filter
Restricts detection to the selected session environment when desired.
Minimum Quality Score
Filters out lower-ranked reclaim events.
ATR Length / Volume SMA Length
Inputs used by the quality model.
Ideal Sweep Depth (ATR) / Maximum Sweep Depth (ATR)
Define how the script evaluates sweep depth quality.
Label and Visual Controls
Manage font size, offset, sweep boxes, guide lines, visible label count, and general chart cleanliness.
HTF Smart Label Filter
Helps reduce label overload on daily, weekly, and monthly charts.
Minimum Bars Between Same-Side Labels
Introduces spacing between repeated bullish or bearish reclaim labels to prevent visual stacking.
Limitations & Transparency
This script is an analytical overlay. It is not a strategy, not an execution model, and not a guarantee of reversal.
A reclaim of PDH or PDL can still fail. Markets can continue trending after a sweep, especially during strong directional conditions, news-driven volatility, or low-liquidity distortions. For that reason, the quality score should be interpreted as an internal event-ranking framework, not as proof of future performance.
Session settings matter. Timeframe context matters. Confirmation mode matters. Label filters also affect what is visible on the chart, especially on higher timeframes. Users should understand that changing these inputs changes the strictness and presentation of the output.
This tool does not use order book data, broker-specific execution data, or hidden liquidity metrics. It works entirely from chart-based price and volume inputs available in Pine.
It is also important to note what this script does not attempt to do:
- it does not classify overall market regime
- it does not replace broader structure analysis
- it does not define entries, stops, or exits for the user
- it does not evaluate multi-level confluence outside its own reclaim framework
In short, it is a focused map for previous-day sweep and reclaim behavior, nothing more and nothing less.
Risk Disclosure
This script is for chart analysis and educational use only. It does not provide financial, investment, legal, or tax advice.
All trading decisions involve risk. Past price behavior around previous-day levels does not guarantee future results. Users should apply their own confirmation process, risk management rules, and market context analysis before acting on any chart signal.
Always test settings carefully and use the tool as one component inside a broader decision-making process, not as a standalone basis for trading.
Indicateur Pine Script®
AG Pro PDH PDL PWH PWL Engine [AGPro Series]AG Pro PDH PDL PWH PWL Engine
Overview / What it does
AG Pro PDH PDL PWH PWL Engine is a price-reference overlay built to track prior day, prior week, and prior month high / low levels in a clean and structured way. The script can display PDH, PDL, PWH, PWL, and optionally PMH / PML, together with midpoint equilibrium levels for the selected ranges.
The main purpose of the script is not to predict direction, generate guaranteed entries, or replace a complete trading plan. Its role is narrower and more practical: it helps traders keep important prior-period reference levels visible on the chart, distinguish which levels remain active, and identify which ones have already been traded through. In many markets, prior highs and lows are widely monitored as liquidity, reaction, and reference areas. This script organizes those areas into a format that is easier to read in live conditions.
A core design goal of this tool is chart hygiene. Many prior-level indicators become visually noisy when several daily, weekly, and monthly references are drawn together. This script was designed to keep the structure readable by using a minimal label system, right-extended lines, a swept / unswept state model, and an optional dashboard that summarizes the nearest active daily, weekly, and monthly levels.
The result is a workflow-oriented overlay that helps with context. Instead of forcing interpretation through aggressive signals, it presents a structured map of where important prior-period levels are located, whether they are still untouched, and whether current price is approaching one of them. That makes it suitable for traders who want an objective level engine rather than a directional prediction tool.
Unique Edge
The script focuses on presentation quality and state clarity rather than simple level plotting. Prior highs and lows are not rare concepts, but the practical usefulness of such levels depends heavily on how they are filtered, displayed, and maintained on the chart. This script aims to improve that usability in several ways.
First, it separates active levels from swept levels. This matters because a previously untouched level and a level that has already been traded through do not carry the same contextual value for many traders. By visually differentiating unswept and swept references, the overlay can help reduce ambiguity when reviewing current structure.
Second, it combines multi-period references in one coherent engine. Daily, weekly, and optional monthly levels can all be displayed together, while preserving a relatively clean visual hierarchy. This is particularly useful for traders who want to see whether current price is interacting with short-term references inside larger higher-timeframe ranges.
Third, it includes proximity logic. The script can highlight levels when price is near them using a threshold defined in ticks, percentage, or ATR terms. This does not imply a trade signal by itself. Instead, it acts as a situational awareness feature that helps traders notice when price is entering a predefined level zone.
Fourth, the script offers session and timezone controls. That allows the user to adapt the level-building logic to the exchange clock or to a chosen session definition. For traders who care about session-based construction and consistency across instruments, this can be an important operational detail.
Finally, the panel is designed as a compact summary rather than a decorative feature. It reports the nearest active daily, weekly, and monthly references, shows counts for active and swept levels, and keeps session / timezone / label mode settings visible. The goal is to reduce chart scanning time and make the script easier to use during live analysis.
Methodology
The engine tracks highs and lows from completed prior periods and then projects those values forward as reference lines. Depending on the enabled settings, it can build:
- Previous Day High and Previous Day Low
- Previous Week High and Previous Week Low
- Previous Month High and Previous Month Low
- Optional equilibrium midpoints for each enabled range
Each level is created only after the relevant source period is completed. In that sense, the level itself is based on completed historical range data. Once created, the line is monitored for its state. If price trades through a high reference or a low reference, the script marks that level as swept and changes its visual treatment accordingly.
The script also maintains historical periods up to the number defined in the settings. This makes it possible to preserve a limited amount of recent structure without keeping an unlimited number of stale objects on the chart.
The equilibrium option adds the midpoint of the corresponding prior range. Some traders use these 50% areas as balance references or as secondary context between the prior high and low. Because that midpoint is optional, the user can keep it visible when needed or disable it for a cleaner chart.
The proximity engine measures how close current price is to an active level using one of three methods:
- Tick distance
- Percentage distance
- ATR-based distance
This feature is meant to flag nearness, not to define trade quality on its own. A prior level being near price does not automatically make the setup actionable. It only states that price is close to a tracked reference according to the selected threshold logic.
States / Signals / Alerts
This script is primarily a level-state and context tool. It is not a directional forecasting model. Its most important outputs are state-based:
1) Active level
A level is considered active when it has been created from a completed prior period and has not yet been traded through by price.
2) Swept level
A level is considered swept when price trades through that reference. Visually separating swept levels from active ones helps the chart communicate which prior references remain untouched.
3) Near-level condition
When enabled, the script can highlight active levels that are close to current price according to the user-defined threshold method. This can help traders focus attention on nearby reference zones without scanning the entire chart manually.
4) Compact dashboard state
The panel summarizes the nearest active daily, weekly, and monthly levels, along with active count, swept count, near count, selected timezone, session configuration, and label mode.
The included alert conditions are intentionally simple and state-based:
- Price is near one of the active levels
- At least one tracked level was swept on the current bar
These alerts are meant to support monitoring. They are not, by themselves, a complete trading trigger. Users should interpret them together with structure, volatility, session context, confirmation rules, and their own risk process.
Why this script can be useful
This script can be useful because prior highs and lows often matter most when they are easy to monitor and hard to misread. In practice, traders do not only need the raw numbers; they need a chart presentation that allows those numbers to remain readable during fast market conditions.
A clean prior-level map can help in several common situations:
- Evaluating whether price is approaching an untouched daily or weekly reference
- Checking whether a local move is happening inside a larger higher-timeframe level framework
- Distinguishing still-relevant references from already-tested ones
- Monitoring potential reaction zones without crowding the chart with excessive objects
- Organizing reference structure across intraday and swing workflows
The script is also designed to remain practical over time. Instead of drawing everything with equal visual importance, it uses state logic and summary logic to keep the display more structured. That can make the tool easier to integrate into a routine where prior-period references are part of the trader's contextual process.
Another useful aspect is that the script stays objective. It does not attempt to label every market move with a strong opinion. It shows completed prior-period levels, their current state, and whether price is approaching them. Many traders prefer this kind of neutral reference framework because it can be combined with other methodologies without forcing one interpretation.
Key Inputs
Timezone
The script can use the exchange timezone or a selected timezone. This affects how period transitions are interpreted.
Use Custom Session Filter
When enabled, highs and lows are built only from bars inside the selected session. This allows the user to adapt the range construction to a chosen session framework.
Session
Defines the custom session window when session filtering is enabled.
Show Previous Day / Week / Month Levels
Each group can be enabled or disabled independently so the user can decide how much structure to display.
Show Equilibrium Midpoints
Adds the 50% midpoint of each enabled prior range.
Historical Periods to Keep
Controls how many past periods remain visible on the chart for each enabled level family.
Proximity Threshold Type
Lets the user define nearness by ticks, percentage, or ATR.
Threshold Value / ATR Length
Controls the sensitivity of the proximity logic.
Highlight Levels When Near
Allows visual emphasis when price approaches an active level.
Line Style and Extension Settings
Controls the appearance of unswept and swept lines and whether active lines extend to the right.
Minimal Label Mode
Allows labels to be turned off, restricted, or shown for active levels, depending on the user's preferred chart cleanliness.
Panel Controls
The dashboard can be enabled or disabled and its size, position, and colors can be adjusted.
Example use cases
This script can be used in different ways depending on the trader's workflow.
Intraday context mapping:
A trader may monitor PDH and PDL together with PWH and PWL to understand whether intraday price is moving into untouched daily liquidity while still operating inside a broader weekly range.
Reaction-zone awareness:
A trader may use near-level highlighting to notice when price is approaching an unswept prior high or prior low and then look for separate confirmation with their own method.
Structure filtering:
A trader may ignore swept references and focus mainly on active levels that remain intact, especially when trying to simplify the chart during live sessions.
Session-based reference building:
A trader who prefers a specific session logic can use the session filter so the constructed ranges better match their market framework.
Dashboard monitoring:
A trader may use the panel as a quick situational summary to identify which daily, weekly, or monthly reference is closest without manually reading every line.
Limitations & Transparency
This script does not know why price interacts with a level. It only identifies prior-period references and tracks whether they are active, near, or swept according to the rules defined in the code.
A prior level is not automatically support or resistance in every market condition. Some reactions are meaningful, some are shallow, and some levels are passed through with little response. For that reason, the script should be treated as a structured reference map rather than a self-sufficient trade decision engine.
The near-level logic depends on user-defined thresholds. Different threshold types and values can materially change how often levels are classified as near. Traders should calibrate these settings according to instrument volatility and their own workflow.
Session and timezone choices also matter. The same market can produce different prior-period values depending on how the session is defined. Users should select settings that match the way they analyze the instrument.
Historical object limits, chart timeframe, and chart compression can influence how dense the display appears. A setting that looks clean on one instrument or timeframe may feel crowded on another. The script provides controls to manage that, but users should still adapt it to their own use case.
The midpoint equilibrium lines are optional because not every trader uses 50% references the same way. Their inclusion does not imply that the midpoint has universal predictive value. It is simply provided as an additional structural reference.
This script is intentionally conservative in what it claims. It does not claim to detect institutional intent, hidden order flow, or guaranteed reversals. It displays prior completed reference levels and their current state on the chart.
Risk Disclosure
This script is for chart analysis and educational use. It does not provide financial advice, investment advice, or trade recommendations.
Prior-period highs, lows, and midpoint references can be useful market context, but they are not guarantees of reaction, reversal, continuation, or liquidity behavior. Market conditions can change quickly, and price can move through any level without producing a tradable setup.
Users should combine this tool with their own confirmation process, execution rules, position sizing framework, and risk management. No indicator should be used as the sole basis for entering or exiting a trade.
Before using any chart tool in live markets, it is important to understand how its settings affect output, how it behaves on the instrument being traded, and how it fits into a broader decision process.
AG Pro PDH PDL PWH PWL Engine is designed to help organize prior-period level information in a cleaner and more operational format. Its value comes from clarity, state tracking, and context support, not from predictive certainty.
Indicateur Pine Script®
AG Pro Liquidity Sweep Quality [AGPro Series]AG Pro Liquidity Sweep Quality
OVERVIEW / WHAT IT DOES
AG Pro Liquidity Sweep Quality is a pivot-based overlay designed to map bullish and bearish liquidity sweep events around confirmed swing highs and swing lows. Instead of only flagging whether price traded beyond a prior level, the script evaluates whether that move behaved like a meaningful rejection or a weak sweep. The result is a structured liquidity sweep indicator that focuses on sweep quality, not only sweep detection.
In practical terms, the script looks for price moving above a prior swing high or below a prior swing low and then closing back through that level on the same bar or, if enabled, on the next bar. This behavior is commonly associated with stop hunts, failed breakout attempts, failed breakdown attempts, and short-term rejection events around visible liquidity. The script then ranks the event using a multi-factor quality model so the chart does not treat every sweep as equally important.
This makes the tool relevant for traders studying liquidity sweep behavior, smart money concepts, ICT-style chart reading, rejection anatomy, wick-driven reversals, sweep confirmation, and swing-based context. It is not built to predict direction on its own. It is built to organize sweep events so users can distinguish weaker noise from stronger rejection structures.
UNIQUE EDGE
The main objective of this script is not to publish another generic liquidity grab marker. Its edge comes from the fact that it scores each confirmed sweep using a quality framework. That framework combines how deeply price traded through the level, how decisively it closed back beyond the level, the wick-to-body relationship of the sweep bar, relative volume behavior, swing freshness, nearby swing crowding, and optional higher-timeframe bias alignment.
This matters because many sweep-style tools stop at a binary answer:
sweep happened / sweep did not happen.
This script asks a more useful follow-up question:
how good was that sweep?
That distinction is important on real charts. Some liquidity sweeps show strong rejection, clean close-back behavior, fresh structure, and supportive context. Others are simply noisy level violations inside a crowded area. By assigning a quality score, the script is designed to help users compare sweep events with more nuance.
Another distinguishing feature is that the script separates watch conditions from qualified conditions. A level can first be challenged, then either reclaim cleanly or fail to reclaim. This helps reduce the tendency to treat every level breach as a reversal event.
METHODOLOGY
1) SWING DETECTION
The script uses confirmed pivot highs and confirmed pivot lows as its structural reference points. These pivots are not assumed in advance. They become available only after the user-defined Pivot Strength confirmation process is complete.
2) SWEEP TRIGGER
A bearish sweep scenario begins when price trades above a stored swing high.
A bullish sweep scenario begins when price trades below a stored swing low.
3) QUALIFICATION
A sweep is considered qualified when price closes back through the swept level. By default, the script can evaluate same-bar reclaim behavior and, optionally, next-bar reclaim behavior.
4) QUALITY MODEL
Each qualified sweep is scored using multiple factors, including:
- penetration relative to ATR
- rejection distance back through the level
- wick-to-body ratio
- relative volume versus a recent baseline
- freshness of the swing level
- nearby level crowding penalty
- optional higher-timeframe trend alignment bonus
The final output is normalized into a simple 1 to 10 quality score so chart reading remains fast and visually clean.
5) VISUAL MAPPING
Qualified sweeps can display:
- direction label
- quality score label
- sweep zone box
- dashed memory line at the swept level
- optional chart background tint
- compact minor markers for lower-priority qualified sweeps
This allows the chart to remain informative without forcing every event to carry the same visual weight.
SIGNALS & ALERTS
The script includes deterministic alert conditions for:
- Bull Sweep Trigger
- Bear Sweep Trigger
- Bull Sweep Qualified
- Bear Sweep Qualified
- High Quality Bull Sweep
- High Quality Bear Sweep
A trigger means price challenged the stored liquidity level.
A qualified sweep means price also reclaimed the level according to the script rules.
A high-quality sweep means the final score exceeded the selected threshold.
These states are intended to help users organize workflow and review price behavior. They are not instructions to buy or sell.
KEY INPUTS
Pivot Strength
Controls how swings are confirmed. Higher values generally reduce noise but also make structural detection slower and more selective.
Max Swing Age
Limits how long old swing levels remain eligible. This helps keep the liquidity map focused on fresher structure.
Allow Next-Bar Reclaim
Allows the script to qualify a sweep when the reclaim happens on the next bar instead of only the sweep bar itself.
ATR Length
Used in the quality engine to normalize sweep depth and rejection distance.
Relative Volume Length
Defines the baseline used for volume comparison.
Crowding Width (ATR)
Helps penalize sweeps occurring in dense structural clusters, where nearby levels can reduce interpretive clarity.
Higher Timeframe and HTF EMA Length
Used to build an optional bias filter so aligned sweeps can receive a context bonus.
Min Score For Full Labels
Lets users keep high-information labels on stronger sweeps while weaker qualified sweeps can remain as compact markers.
Same-Side Full Label Cooldown
Reduces repeated full labels in the same direction over a short span, improving chart readability.
LIMITATIONS & TRANSPARENCY
This script is a chart-organization tool, not a stand-alone decision engine.
Because the logic is pivot-based, swing levels are only confirmed after the chosen Pivot Strength delay. That means the structural reference points are confirmed swings, not instantly-known highs or lows.
A liquidity sweep on one market, timeframe, or volatility regime may not behave the same way on another. The scoring framework is designed to rank events relative to the script's own rules, not to certify that a sweep will lead to reversal or continuation.
Higher relative volume may improve context, but volume confirmation does not guarantee outcome quality.
The higher-timeframe alignment feature is a contextual filter. It should not be interpreted as a macro trend forecast.
Like any visual overlay, this tool can produce signals in choppy or highly reactive conditions that later prove less useful than they first appeared. Parameter selection matters.
WHAT THIS SCRIPT IS NOT
This script is not a promise of reversal.
It is not a complete smart money framework.
It is not a substitute for execution planning, risk management, or broader market context.
It does not claim to detect institutional intent.
It does not classify every level break as tradable.
Instead, it focuses on one specific chart behavior:
sweep-and-reclaim quality around confirmed swing liquidity.
RISK DISCLOSURE
This indicator is for analytical and educational use only. It does not provide financial advice, investment advice, or guaranteed trade outcomes. Markets can remain irrational, trend aggressively, or ignore local sweep signals for extended periods. Users should validate any chart workflow with their own process, risk controls, and market understanding before acting on any signal or alert.
If you use this tool, it is generally best treated as a structural filter inside a broader workflow rather than as a stand-alone trigger.
AGPro Series note:
This publication is designed to emphasize structured chart reading, deterministic event definitions, and transparent methodology over promotional claims or outcome promises.
Indicateur Pine Script®
Prev Day H/L BoxPrevious day HL and mid point to plot on the chart that will help to guage the market direction.
Indicateur Pine Script®
Lecaillou - Asian Sweep System v1🇫🇷
Indicateur basé sur une idée simple :
👉 le marché vient chercher la liquidité du range asiatique à l’ouverture européenne.
Il affiche :
le range asiatique
les niveaux clés (prev / weekly)
les sweeps (prise de liquidité)
la réaction du prix (reversal ou continuation)
Les setups sont filtrés par la qualité du mouvement, le timing et le contexte.
Un setup A+ n’apparaît que si tous les critères sont réunis.
👉 Objectif :
aller droit au point, éliminer le bruit, et ne prendre que les mouvements propres.
🇬🇧🇺🇸
Indicator built on a simple idea:
👉 price seeks liquidity around the Asian range at the European open.
It shows:
Asian range
Key levels (prev / weekly)
Sweeps (liquidity grabs)
Price reaction (reversal or continuation)
Setups are filtered by move quality, timing, and context.
An A+ setup only appears when all strict criteria are met.
👉 Goal:
stay focused, remove noise, and only trade clean moves.
Indicateur Pine Script®
Volume & Volatility Companion█ VOLUME & VOLATILITY COMPANION (VVC)
Complete Volume Dynamics & Volatility Analysis
A comprehensive overlay indicator that combines anchored VWAP with standard-deviation bands , Bollinger Squeeze detection , volume strength analysis , and session level tracking — all with automatic timeframe adaptation. It gives you a complete read on volume dynamics and volatility conditions directly on your price chart.
Free and Open Source.
█ THE CONCEPT: WHY VOLUME + VOLATILITY TOGETHER?
Volume and volatility are the two most overlooked edges in technical analysis. Price alone only tells half the story. Volume confirms conviction — a breakout on high volume is real, on low volume it's suspect. Volatility compression (squeeze) precedes explosive moves. VVC brings both dimensions together in one overlay so you never miss these critical signals.
█ CORE FEATURES
1. VWAP + Standard Deviation Bands
The Volume-Weighted Average Price acts as the institutional fair-value anchor:
VWAP Line — Dynamic equilibrium price. Institutions track this level religiously.
Band 1 (1 StdDev) — Inner value zone. Mean-reversion entries when price touches and bounces.
Band 2 (2 StdDev) — Outer extreme zone. Overextension signals when price reaches here.
Configurable anchor period: Session (daily), Week, or Month.
2. Bollinger Squeeze Detection
Detects the classic volatility compression setup where Bollinger Bands contract inside Keltner Channels:
Squeeze ON (red dots) — BB inside KC = low volatility, energy building
Squeeze OFF (cyan dots) — Normal volatility
Squeeze Release (diamond markers) — BB breaks out of KC after sustained compression = breakout imminent
Momentum direction at release determines the breakout bias.
3. Volume Analysis
Classifies each bar's volume relative to its moving average:
EXTREME — Volume > 2.5x average (institutional footprint)
HIGH — Volume > 1.5x average (above-average interest)
NORMAL — Average range
LOW — Volume < 0.5x average (thin market, low conviction)
4. Session Levels
Key reference levels plotted directly on the chart:
Session High/Low — Current intraday range boundaries
Previous Day High/Low — Breakout/rejection levels
Previous Day Close — Settlement level (bias reference)
5. Auto-Timeframe Adaptation
All calculation parameters automatically adjust to your chart timeframe. Toggle to manual mode for full control.
█ DASHBOARD
A compact, dark-themed info panel showing:
VWAP — Current position (ABOVE / BELOW / AT) + value
Squeeze — ON with bar count or OFF
BB Width — Percentage bandwidth for volatility context
Volume — Classification (EXTREME / HIGH / NORMAL / LOW) + ratio vs MA
Session — Current session range in price units
█ ALERTS (4 CONDITIONS)
Bullish Squeeze Release — Squeeze fires with upward momentum
Bearish Squeeze Release — Squeeze fires with downward momentum
Squeeze Building — Consecutive squeeze bars hit threshold
Extreme Volume — Detected on any bar
█ PRO VERSION
The PRO version adds:
MACD Analysis — Full MACD with signal/zero crossovers and divergence detection
Cumulative Volume Delta (CVD) — Net buying/selling pressure tracking
Bull/Bear Confluence Scoring — Combined score from all modules for directional bias
5 Additional Alerts — MACD crosses, volume confirmation signals
█ NON-REPAINTING
VWAP uses cumulative volume data (non-repainting by design). Bollinger Squeeze uses standard BB/KC calculations. Volume analysis uses simple moving average. Previous day levels use confirmed daily data. No repainting.
█ WORKS ON
Crypto, Forex, Stocks, Futures, Indices — any timeframe from 1 minute to Weekly+.
█ DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Always do your own research and manage your risk. Past performance does not guarantee future results. Trading involves substantial risk of loss.
Indicateur Pine Script®
Sessions Highs and Lows Unmitigated + 12AM Divider Sessions High and Lows Unmitigated & 12AM Divider
It keeps track of which session highs and lows price hasn't touched yet, and removes them the second it does.
Every X2 Asia, London, and New York session gets its high and low plotted as a simple horizontal line. Those lines follow price forward in real time, staying visible for as long as the level is still unmitigated. The moment price trades through one, it's gone.
It tracks the last two sessions per killzone, so you always have context without the chart getting messy. There's also a dotted midnight line marking each new trading day — clean, subtle, and easy to reference without adding any real noise.
Works on crypto too — weekends included, no gaps in the midnight lines.
You can adjust:
— Line colour per session
— Line width
— Every session and carry window to match your timezone and workflow
Where it's most useful:
— Seeing at a glance which session highs and lows are still unmitigated and worth watching
— Building confluence around entries using real, current session structure
— Knowing immediately whether a level has already been delivered or is still pending
No boxes. No fills. No noise. Just the levels that matter.
Enjoy. :)
Indicateur Pine Script®
ORB + Overnight Horizontal LevelsThis indicator plots the key price levels I use for intraday futures trading.
It automatically calculates the 30-minute Opening Range (ORB) from the regular market open (9:30–10:00) and displays the ORB High and ORB Low as horizontal levels that extend through the session. The script also tracks the Overnight High and Overnight Low from the extended session leading into the market open.
These levels help identify important liquidity zones and areas where the market may react during the trading day.
I personally use these levels together with a manually placed Fibonacci retracement tool. Depending on which level is stronger or gets taken first (ORB or Overnight), I anchor my Fibonacci tool to measure potential retracements and continuation moves.
The goal of this indicator is to keep the chart clean while highlighting the most important intraday reference levels.
Features
• Automatic 30-minute Opening Range levels
• Overnight High and Overnight Low detection
• Horizontal levels that extend across the trading session
• Minimal visual clutter for clean charting
• Designed to be used alongside manual Fibonacci analysis
Indicateur Pine Script®
Higher High / Lower Low Probability IndicatorOverview
The "Higher High / Lower Low Probability Indicator" is an original statistical tool designed to help traders assess the likelihood of trend continuation in price action. By analyzing historical candles, it calculates the probability that the next candle will form a higher high (HH) or lower low (LL) based whether the previous candle expanded higher or lower.
This indicator uniquely incorporates handling for inside candles, where it falls back to the bias of the prior candle to maintain continuity in probability assessments. It's particularly useful for momentum traders, swing traders, or those incorporating probabilistic edges into their strategies, providing data-driven insights into potential bullish or bearish continuations without relying on complex oscillators or moving averages.
Features
Probability Calculations: Tracks occurrences and successes of higher highs and lower lows across the chart's history. For HH: If the previous candle had a higher high than the one before it, it computes the percentage chance the current candle will continue that pattern. The same logic applies to LL for downward trends.
Inside Candle Handling: Detects inside bars (where the high is lower and low is higher than the previous candle) and intelligently uses the bias from the candle before the inside bar, ensuring the indicator doesn't skip potential signals.
Visual Plotting: Displays the relevant probability (HH in green, LL in red) as a line plot only when the condition is met, helping users quickly identify active probabilities without clutter.
Informative Table: A customizable table in the chart shows HH and LL occurrences alongside their respective probabilities, formatted for easy reading.
User Inputs:
Table Position: Choose from options like "Top Right" (default), "Bottom Left", etc., to place the table where it suits your chart layout.
Text Size: Select from "Auto", "Tiny", "Small", "Normal" (default), or "Large" for optimal visibility.
All calculations are performed in real-time using Pine Script's historical data access, ensuring efficiency without repainting.
How to Use
Add the indicator to your chart via TradingView's indicator search.
Adjust the "Table Position" and "Text Size" inputs to fit your preferences.
Monitor the plotted probability line: Green indicates a potential HH continuation with the displayed percentage; red signals LL probability.
Refer to the table for cumulative stats—higher occurrences provide more reliable probabilities over time.
Combine with other tools like support/resistance levels or volume for confirmation. For example, a high HH probability (>70%) in an uptrend might signal a buy opportunity.
This indicator works on any timeframe and symbol but performs best on charts with sufficient historical data (e.g., daily or higher) to build meaningful statistics. Note that probabilities are historical and not predictive guarantees—always use risk management.
Limitations
Relies on available historical bars; on very short histories (e.g., new symbols), probabilities may start at 0% until patterns accumulate.
Does not account for external factors like news events or volatility spikes.
The table updates only on the last bar for performance reasons.
This script is open-source for community review and customization.
Indicateur Pine Script®
inside bar marker + previous day high&low + killzonesMore Simple and Similar to the first one, the main thing different is i removed the backgrounds and color coded the vertical lines
Customize to how you want only difference is i adjusted to killzones 2-5a london, 8-30-12ny, and 1:30-4p afternoon session
i still have inside bar marked by green crosses ( you can customize)
use inside bars in a zone (s&d)
Indicateur Pine Script®
Session Range Boxes by APOVERVIEW
This indicator is designed for traders who require clear, visual boundaries for different trading sessions. It tracks the highest high and lowest low of up to six custom-defined time windows, wrapping them in dynamic boxes that update in real-time.
FEATURES
6 Customizable Sessions: Fully adjustable time ranges and names (Asia, London, NY Open, etc.).
Real-Time Tracking: Session boxes expand dynamically as price creates new highs or lows during the session.
Visual Organization: Individual color and transparency controls for each session to keep your chart clean.
Auto-Delete Logic: Automatically removes older session boxes to prevent chart clutter (user-definable "Keep Last N Sessions").
Timezone Flexibility: Built-in timezone support (IANA/Olson format) to ensure sessions align perfectly with your chart regardless of your local time.
HOW TO USE
Define your Timezone: Set the global "Session Timezone" to your reference market (e.g., America/New_York)
Input Sessions: Enter the 24-hour time ranges for your desired trading windows (e.g., 0930-1100).
Customize your settings & colors
Enjoy :)
SETTINGS
Global : Toggle borders and labels globally, and set the auto-cleanup frequency.
Session-Specific: Individual toggles for time, background fill, border color, and naming.
NOTES
Of course I could add more functionality, but my main goal was to keep the indicator as small and simple as possible, while providing functionality which it was built for.
Since the functionality is limited, I will keep this indicator open-source so everybody can edit and customize it to his own liking.
Indicateur Pine Script®
IPO Day HighIPO High plots a horizontal reference level at the high of a stock’s IPO day — but only if the company went public within a user-defined recent period (default: last 2 years).
This level often acts as a key psychological and technical reference for recently listed stocks, commonly used by traders to track:
Early supply zones
Price discovery rejections
Breakout continuation above IPO highs
Post-IPO consolidation structures
How It Works
The script detects the first available daily candle in TradingView’s historical data for the symbol.
That candle is treated as the IPO day.
It extracts the high price of that session.
If the IPO occurred within the last X years (user input), the script draws a horizontal line from the IPO date forward.
If the IPO is older than the selected lookback period, the line will not display.
Practical Use Cases
Traders commonly monitor IPO highs for:
Breakout confirmation
Failed breakout / bull trap detection
Support reclaim after pullbacks
Momentum continuation setups
Particularly useful for:
Recent IPO momentum stocks
Small caps in price discovery
High-growth tech listings
Indicateur Pine Script®
Trading Sessions with High/Low LevelsTrading Sessions with High/Low Levels
A comprehensive Pine Script indicator for TradingView that provides visual background coloring for major trading sessions along with dynamic high/low level tracking and labeling.
Overview
This advanced indicator combines session background highlighting with precise high/low level detection for each trading session. It tracks and displays the highest and lowest price levels reached during Asia, London, and USA trading sessions, with customizable visual elements including lines, labels, and background colors.
Features
Three Major Trading Sessions : Asia, London, and USA sessions with default time ranges.
High/Low Level Tracking : Automatic detection and display of session highs and lows.
Dynamic Line Drawing : Horizontal lines marking key levels with customizable styling.
Price Labels : Optional labels showing exact high/low values.
Session Background Colors : Customizable background highlighting for active sessions.
Historical Session Display : View multiple previous sessions simultaneously.
Current Day Filter : Option to display only today's sessions.
Line Extension Control : Choose between session-bound or current bar extension.
Timezone Adjustment : Built-in UTC offset adjustment for local timezone compatibility.
Comprehensive Customization : Individual control over colors, styles, and visibility for each session.
Configuration Options
Session-Specific Settings: Each trading session includes the following configurable parameters:
Background Options:
Show session background : Toggle to enable/disable background coloring.
Session background color : Background color with transparency control.
Session Definition:
Name : Custom label for the session.
Session time : Time range in HHMM-HHMM format.
Line Options:
Show High/Low lines : Toggle to enable/disable level lines.
Line/Label color : Color for both lines and labels.
Line width : Thickness of the lines (1-5 pixels).
Line style : Choose between Solid, Dashed, or Dotted lines.
Label Options:
Show High/Low labels : Toggle to enable/disable price labels.
Label text color : Text color for price labels.
Label size : Choose between Tiny, Small, Normal, or Large.
High/Low Lines Options
Number of sessions to show lines : Display 1-21 previous sessions (ignored when current day filter is active).
Only show current day sessions : Filter to display only today's sessions.
Extend lines to current bar : Choose between session-bound lines or extension to current price action.
Global Options
UTC Time Zone Adjustment : Offset value (-12 to +14) to match your local timezone.
Timezone Configuration
The indicator uses a custom UTC offset system. To configure for your timezone:
Examples:
New York (EST) : Set UTC offset to `-5` (or `-4` during DST).
London (GMT) : Set UTC offset to `0` (or `+1` during BST).
Tokyo (JST) : Set UTC offset to `+9`.
Sydney (AEST) : Set UTC offset to `+10` (or `+11` during AEDT).
Key Functionality
Session Tracking
Real-time Detection : Automatically identifies session start/end times.
High/Low Calculation : Tracks extreme values throughout each session.
Historical Storage : Maintains chronological record of completed sessions.
Visual Elements
Background Coloring : Independent control for each session's background.
Horizontal Lines : Precise level marking with customizable styling.
Price Labels : Centered labels showing exact high/low values.
Line Management : Automatic cleanup of old visual elements.
Display Modes
Historical View : Show multiple previous sessions for pattern analysis.
Current Day Focus : Filter to display only today's activity.
Line Extension : Choose between session-specific or current bar alignment.
Limitations
Intraday Only : The indicator will display an error on daily, weekly, or monthly timeframes.
Session Overlap : Multiple sessions may overlap, with colors and lines layering based on execution order.
Maximum of three sessions : Currently supports three configurable sessions.
Line Limit : Maximum of 500 lines enforced by TradingView platform.
Indicateur Pine Script®
Volume Conviction Index v1.0Volume Conviction Index (VCI) v1.0
This indicator helps answer a simple question: Does this price move have real strength behind it, or is the volume too weak to trust???
It measures "conviction" through how many participants are in the marketplace by looking at volume in a smart, reliable way:
- Spots unusual volume surges (buying or selling pressure) that stand out from normal (median line plotted) levels.
- visually helps with discretionary calls and allows the median avg of participation not just volume to be 'seen'
- Blends recent volume changes with how volume compares to its typical range.
How to read the chart (super straightforward):
- Teal columns above the zero line: Strong buying conviction — volume supporting the up move (good sign for breakouts or holds).
- Orange columns below zero: Strong selling conviction — heavy participation on the downside (watch for reversals or weakness on rallies).
- Flat/small bars near zero: Low conviction — price might be moving on fumes (often leads to fakeouts or quick fades).
- Optional white dashed line (the "median conviction"): A smoothed version over the last few bars. If it crosses zero or diverges from price, it can signal shifting momentum.
index works the same for both bears and bulls. teal bars in the positive are above participation or conviction in both bearish and bullish participation. also allows identifying exhaustion in both bearish and bullish scenarios.
works well equally on lower TFs and higher TFs
Why use it:
It uses robust statistics (rolling median volume + Median Absolute Deviation for a "z-like" score) instead of plain averages — much better at handling noisy or outlier-heavy markets like crypto, forex, or stocks during news events. Then it adds a weighted mix of short-term volume acceleration and relative volume for better context.
Great for:
- Beginners: Start with defaults — the colors and zero line make it easy to see at a glance.
- Day/swing traders: Filter entries/exits with real participation (e.g., teal spike on support bounce = higher odds).
- Anyone learning volume: Shows clearly when moves have "muscle" vs. when they're suspect.
Quick usage tips:
- Best on 5m to 4h charts with good volume data.
- Combine with price action, levels, or your favorite tools — use VCI to confirm conviction.
- Toggle the median line in settings if your timeframe is noisy.
Defaults work well across most assets — adjust "Volume Window" for longer/shorter lookback, or "Recent Weight" to emphasize sudden changes more/less.
I personally like using it on 1min / 5min / 30min charts. Has a microscope / high-rez feel about it when I'm on quicker TFs.
Open-source under © RU55IANROUL3TT3 — feel free to study, fork, or build on it!
Feedback welcomed — what markets/timeframes does it help you with?
Indicateur Pine Script®
PowerLevels - Key Daily LevelsThe Institutional Levels standalone indicator plots the following key price and volume levels directly on your chart:
PDH & PDL (Previous Day High/Low): Displays the high and low of the prior session using time-anchored logic to ensure accuracy across the weekend gap.
POC (Point of Control): The price level where the most volume was traded during the previous New York RTH session.
VAH & VAL (Value Area High/Low): Marks the boundaries of the price range where 70% of the previous day's volume took place.
Settlement: The official previous-day closing price as determined by the CME exchange.
Midnight Open: A horizontal line marking the opening price at 12:00 AM New York time for the current session.
NDOG (New Day Opening Gap): Automated boxes highlighting the gap between the previous day's close and the current day's open, including a dashed midline.
NWOG (New Week Opening Gap): Automated boxes highlighting the gap between Friday’s close and Sunday’s open, including a dashed midline.
Midnight V-Line: A vertical separator marking each new daily session to maintain a clear visual narrative.
Indicateur Pine Script®






















