ICT FVG DetectorThis indicator identifies ICT Fair Value Gaps (FVGs) on any timeframe and overlays them as clean, interactive zones directly on your chart. It covers both standard imbalances and higher-timeframe (HTF) imbalances transposed onto lower timeframes — a core concept in ICT-based trading.
What it detects
BISI (Buy-side Imbalance, Sell-side Inefficiency) — bullish FVGs where a gap exists between the high of bar and the low of bar
SIBI (Sell-side Imbalance, Buy-side Inefficiency) — bearish FVGs where a gap exists between the low of bar and the high of bar
Displacement FVGs — tagged when the middle candle of the 3-bar pattern (the actual displacement candle) trades through the most recent confirmed swing high or low, signalling a genuine structure break
HTF Alignment
FVGs from the next-higher relevant timeframe are automatically transposed onto the current chart as gray-shaded zones, making it easy to identify where higher-timeframe imbalances sit without switching charts.
Valid pairs:
Chart timeframe HTF source
1m 15m
5m 1H
15m 4H
1H Daily
4H Weekly
Daily Monthly
HTF zones are visually distinct (gray fill) so they never compete with native FVGs. On unsupported timeframes, HTF zones are simply not drawn.
Features
Four draw styles: Lines + Fill, Lines Only, Fill Only, Boxes
Solid, dashed, or dotted boundary lines
Extend zones to current bar or a fixed number of bars
Mitigation tracking — zones dim or delete once price trades back through them (configurable separately for native and HTF FVGs)
Invisible hover labels positioned at the vertical midpoint of each zone — hover to instantly identify the gap type without cluttering the chart
Alerts for new BISI, SIBI, Displacement BISI, and Displacement SIBI
Settings
All inputs are grouped into five sections: FVG Detection, Swing / Displacement, Display, Mitigation, and HTF Alignment — making it straightforward to tune each layer independently.
Indicator

Pressure Transfer ZoneMany reversal indicators tell you when a market looks stretched. Pressure Transfer Zone asks a harder question: when price returns to the extreme, can the side that drove it there still make meaningful progress?
This indicator was built to identify a specific form of failed continuation. It waits for a strong directional drive, a real retreat, and then a second attempt at the extreme. If that second attempt makes little progress and closes with clear rejection, the script freezes the structure into a decision zone. From there, price must prove that control has actually transferred before a signal is confirmed.
The goal is not to call every top or bottom. The goal is to isolate the moments when a mature move may be losing control, show that process directly on the chart, and give the trader clear confirmation and invalidation levels.
WHO IT IS FOR
Pressure Transfer Zone is designed for intraday, swing, and position traders who use price action and want a more disciplined way to evaluate exhaustion, failed breakouts, failed continuation, and early reversals.
It is designed for liquid stocks, futures, forex, and cryptocurrency on standard candlestick charts. The engine does not run on Heikin Ashi, Renko, or other synthetic chart types because their prices can distort the structure being measured.
THE IDEA BEHIND IT
A strong trend does not end simply because price is overbought, oversold, or extended. Strong moves can remain extended for a long time. What matters is whether the original side can still produce results when it gets another opportunity.
The pattern develops in five stages:
1. A mature directional drive establishes real displacement.
2. Price makes a meaningful retreat away from the extreme.
3. The original side returns for a second attempt.
4. That second attempt produces limited progress and a weaker close.
5. Price confirms the transfer with a qualified break of the selected boundary or, in Sniper mode, with that break followed by a successful first retest.
This is an effort-versus-result test expressed entirely through price. The script does not claim to measure order flow, bid/ask delta, institutional activity, hidden liquidity, or volume pressure.
HOW THE MATHEMATICS WORKS
The first filter is directional efficiency:
Directional efficiency = net directional change / total absolute bar-to-bar movement
A clean drive that travels mostly in one direction receives a higher score. A noisy move that covers a lot of distance but makes little net progress receives a lower score.
The selected Source is used for net displacement and path efficiency. The zone itself is always built from confirmed OHLC prices.
The drive must also meet volatility, range, closing-location, and local-extreme requirements. Under the default pace profiles, it must:
* Produce at least 1.25 ATR of net directional displacement.
* Span at least 2.00 to 2.50 ATR, depending on the selected pace.
* Meet a directional-efficiency threshold of 0.40 to 0.48.
* Close in the outer 28% of the drive range.
* Create a fresh local extreme.
ATR is measured with a 14-bar lookback and frozen when the sequence begins. This prevents later volatility changes from moving the event’s established thresholds.
The retreat must travel at least the greater of 0.55 ATR or 18% of the original drive range, and the closing price must confirm that full retreat distance.
When price returns to the extreme, the second attempt must show deterioration. By default:
* Price must return to within the greater of 0.30 ATR or 8% of the original drive range from the first extreme.
* New progress beyond the first extreme cannot exceed 0.20 ATR.
* The second push cannot exceed 72% of the original drive range.
* The close must migrate away from the first attempt by at least 0.10 ATR.
* Rejection must equal at least the greater of 0.25 ATR or 25% of the developing zone.
* The rejection bar must close within the directional outer 45% of its range.
* The completed zone cannot exceed 60% of the original drive range.
Together, these filters are intended to remove many one-candle reactions, shallow pauses, and weak two-test formations. The model wants to see a legitimate first drive, real separation between attempts, and measurable deterioration on the return.
THE ZONE
Once the second attempt qualifies, the structure is armed and its levels are frozen:
* Outer edge: the most extreme price reached by the two attempts.
* Inner edge: the counter-extreme formed between the two attempts.
* Midpoint: the halfway point of the zone.
* Invalidation: 0.15 ATR beyond the outer edge in the direction of the original move.
For a bullish setup, price must transfer upward after a mature downward drive. For a bearish setup, price must transfer downward after a mature upward drive.
Invalidation requires a confirmed close beyond the buffered outer edge. The invalidation level is structural information, not an automatic stop-loss recommendation.
ENTRY TIMING
Early
Confirms on a qualified close through the zone midpoint. This is the fastest mode and can trigger on the same confirmed bar that arms the zone. It offers earlier recognition with a greater risk of false starts.
Balanced
Confirms on a later qualified close beyond the structural inner edge. Balanced is the default middle ground between earlier recognition and additional structural confirmation.
Sniper
Requires a qualified break of the inner edge followed by the first later retest of that level. The retest must remain shallow and close back in the transfer direction. The first retest decides the setup; a failed first retest cannot become a signal later.
The breakout candle must move in the transfer direction, span at least 0.35 ATR, have a real body covering at least 45% of its range, close within the directional outer 32% of the candle, and finish no more than 0.45 ATR beyond the selected boundary. The final limit is an anti-chase filter.
A valid Sniper retest must stay within 15% of the frozen zone depth, close at least 0.05 ATR back beyond the inner edge, have a directional body covering at least 35% of the candle, and close within the directional outer 40% of its range.
HOW TO READ THE CHART
With the default color palette:
* Amber: the pattern is still developing. It is information, not an entry signal.
* Violet: the structure is complete, armed, and waiting for confirmation.
* Cyan: the action area between the midpoint and inner edge.
* Green: a bullish pressure transfer has been confirmed.
* Red: a bearish pressure transfer has been confirmed.
* Faint gray: an armed setup failed, expired, or was invalidated.
The right-edge label shows the current phase and the next required action. Once the structure is armed, it also displays the confirmation boundary and invalidation price. A diamond appears only when the selected timing mode produces a confirmed trigger.
When Keep Recent Resolved Zones is enabled, the script retains a limited number of recent successful and failed zones. The default is eight, adjustable from one to twelve, so failures remain visible without overwhelming the chart.
PRACTICAL USE
1. Treat an amber zone as a developing idea, not permission to trade.
2. When the zone turns violet, note its direction, confirmation boundary, and invalidation price.
3. Wait for the exact requirement of Early, Balanced, or Sniper mode.
4. Use the broader trend, nearby support and resistance, liquidity, session conditions, and scheduled news as separate context.
5. Apply your own position sizing, stop placement, targets, and trade-management rules.
ADAPTIVE PACE
Auto mode adjusts the engine according to the chart timeframe:
* Fast: 15-minute charts and below.
* Swing: above 15 minutes through 4 hours.
* Position: above 4 hours.
Fast, Swing, and Position can also be selected manually. The selected pace changes the drive and local-extreme lookbacks, minimum drive size, efficiency threshold, formation lifetime, armed lifetime, and Sniper retest window. It does not change the meaning of the pattern.
ALERTS
The indicator includes five alerts:
* Long Zone Armed
* Short Zone Armed
* Long Pressure Transfer
* Short Pressure Transfer
* Pressure Transfer Invalidated
Create alerts using Once Per Bar Close.
Trigger alerts and chart diamonds use the same confirmed-bar event. If an Early setup resolves on the same bar it arms, the temporary armed alert is suppressed so users do not receive a stale or redundant notification.
CONFIRMED-BAR DESIGN
Actionable signals are confirmed only after the chart bar closes. They are not backdated and do not use future data, pivot backpainting, negative offsets, higher-timeframe requests, or lookahead logic.
Amber developing zones are intentionally provisional and can change or disappear because the pattern is not complete. Once a zone turns violet, its structural prices and invalidation level are frozen for that event.
LIMITATIONS
Pressure Transfer Zone identifies structural-exhaustion candidates, not guaranteed reversals. It tracks one active sequence at a time and can miss fast V-shaped turns that never form two separate attempts.
Strong trends can repeatedly invalidate countertrend setups. Thin markets, price gaps, news shocks, and irregular sessions can also reduce the usefulness of ATR-based thresholds.
This is an indicator, not a strategy. It does not place orders, calculate position size, set profit targets, or claim a win rate. Its job is narrower: determine whether the original directional side returned to the extreme, failed to produce enough additional progress, and then met the model’s confirmation rule at a clearly defined price.
Indicator

Indicator

SNIPERS CANDLESSNIPERS CANDLES
SNIPERS CANDLES is an enhanced PVSRA volume analysis indicator that classifies candles according to relative trading activity while introducing a configurable Volume Participation Baseline for additional market participation analysis.
The indicator combines traditional PVSRA candle classification with an independent participation threshold, allowing traders to compare current trading activity against both recent market behaviour and configurable average volume levels within a single visual tool.
How the Indicator Works
The indicator analyses volume using the PVSRA methodology and classifies each candle into one of three participation levels.
Normal Volume
Represents standard market participation.
150% Volume
Highlights candles where volume exceeds approximately 150% of the recent average, indicating increasing market participation.
200% Volume (Vector Candle)
Highlights candles where volume exceeds approximately 200% of the recent average or produces exceptional volume relative to recent price range activity, identifying significant market participation.
Bullish and bearish candles are colour coded independently to preserve directional context.
Volume Participation Baseline
In addition to standard PVSRA candle classification, SNIPERS CANDLES includes a configurable Volume Participation Baseline.
The Participation Baseline calculates an average volume over a user-defined lookback period and applies an optional multiplier to create a dynamic participation threshold.
This allows traders to compare current trading activity against configurable average participation levels rather than relying solely on fixed PVSRA classifications.
The Participation Baseline is designed to complement the original PVSRA methodology by providing additional context when market participation transitions between below-average and above-average volume.
Instrument Override
For cryptocurrency markets, the indicator can automatically retrieve volume data from the equivalent Binance Perpetual Futures contract when available.
Where an equivalent perpetual contract is unavailable, the indicator automatically falls back to the chart's native volume data.
A manual symbol override is also included for users who wish to specify an alternative volume source.
Features
Traditional PVSRA candle classification
150% and 200% vector candle detection
Independent bullish and bearish candle colouring
Configurable Volume Participation Baseline
Adjustable Participation Baseline lookback period
Configurable Participation Baseline multiplier
Customisable Participation Baseline colour and width
Automatic Binance Perpetual Futures volume support
Manual volume source override
Main-chart candle colouring
Colour-coded volume histogram
Configurable alerts
Alert Conditions
The indicator includes alert conditions for:
Any Vector Candle
Any 200% Volume Peak Vector Candle
Any 150% Volume Rising Vector Candle
Bullish 200% Vector Candle
Bearish 200% Vector Candle
Bullish 150% Vector Candle
Bearish 150% Vector Candle
Volume Crossing the Participation Baseline
Volume Crossing Above the Participation Baseline
Volume Crossing Below the Participation Baseline
Participation Baseline alerts are designed to identify changes in market participation as trading activity transitions above or below the configured threshold.
Intended Use
SNIPERS CANDLES is designed to provide visual context for analysing:
Relative market participation
High-volume trading activity
Volume confirmation
Market momentum
Trend participation
Price action
Multi-timeframe analysis
The indicator is intended as an analytical tool and does not generate automatic buy or sell signals. It is designed to complement the trader's own market analysis, price action and risk management process.
Markets
The indicator can be applied to all PulseWire-supported markets, including:
Forex
Indices
Commodities
Cryptocurrencies
Equities
When enabled, cryptocurrency markets can automatically utilise Binance Perpetual Futures volume where available.
Disclaimer
This open-source indicator is provided free of charge for educational and analytical purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. Users remain responsible for their own analysis, trading decisions and risk management.
Created by Market Sniper HQ
Trade Like a Sniper, Not Like the Crowd.
Indicator

Institutional Flow MatrixInstitutional Flow Matrix is an open-source market-analysis framework designed to organize trend direction, confirmed market structure, institutional price zones, momentum, and location within a dealing range into one readable chart.
The purpose of this indicator is not to predict every price movement or generate constant entries. It is designed to answer a more practical sequence of questions:
1. What is the current directional bias?
2. Is market structure supporting that direction?
3. Is price trading from a meaningful location?
4. Has price returned to an active institutional zone?
5. Is momentum aligned with the proposed setup?
The script combines these questions into a structured workflow while keeping the default chart intentionally clean.
WHY THIS INDICATOR WAS BUILT
Many market-structure indicators display every swing, imbalance, liquidity level, zone, and signal at the same time. While that information can be useful for detailed analysis, it can also make the chart difficult to interpret during live trading.
Institutional Flow Matrix was built around a visual hierarchy:
* Directional bias is the primary layer.
* Active Order Blocks are the principal reaction zones.
* Momentum is a confirmation layer.
* Premium and Discount provide market location.
* Fair Value Gaps, liquidity pools, sweeps, and higher-timeframe levels are optional study tools.
The default Balanced preset focuses on the information most relevant to a directional pullback setup. Minimal mode removes most supporting visuals for live execution. Full mode reveals the additional market-structure tools for deeper analysis.
WHAT MAKES THE IMPLEMENTATION DIFFERENT
The individual concepts used by this script, including pivots, moving averages, ATR trend filters, Order Blocks, Fair Value Gaps, and Premium/Discount ranges, are established forms of technical analysis.
The original contribution of Institutional Flow Matrix is how those components are synchronized and managed as one decision framework.
Key design elements include:
* Confirmed structure events rather than unconfirmed swing guesses.
* A persistent directional state requiring agreement between structure, EMA alignment, and an ATR-based trend filter.
* Order Block freshness validation before a zone is accepted.
* Separate visual duration and analytical lifetime controls for zones.
* Automatic mitigation and expiration of old zones.
* Limited drawing-object counts to prevent long-term chart clutter.
* A weighted confluence model centered on trend, structure, zone interaction, market location, and momentum.
* Three visual presets that change the information hierarchy without changing the underlying calculations.
* Confirmed-bar signals and event-based alerts.
This is not intended to be a collection of unrelated indicators. Each module has a defined role in the same setup process.
DIRECTIONAL BIAS
The chart background represents the script's confirmed directional state.
A bullish state requires agreement between:
* Bullish market structure.
* Fast EMA positioning above the slow EMA.
* Bullish ATR trend conditions.
A bearish state uses the opposite conditions.
The background changes only after the required conditions are confirmed. A larger BUY or SELL label marks a confirmed change in this directional state.
These shift labels are different from the smaller confluence signals. A shift label identifies a change in directional bias. A confluence signal requires additional location, zone, and momentum conditions.
MARKET STRUCTURE
Confirmed pivot highs and lows form the structure engine.
The script tracks:
* Higher Highs
* Higher Lows
* Lower Highs
* Lower Lows
* Breaks of Structure
* Changes of Character
A bullish break occurs when a confirmed bar closes above the latest unbroken confirmed swing high. A bearish break occurs when a confirmed bar closes below the latest unbroken confirmed swing low.
Swing labels are retrospective by design. A pivot can only be confirmed after the selected number of right-side bars has closed. Once confirmed, its label is placed on the candle where the swing originally occurred. The label was not known on that earlier candle.
ORDER BLOCKS
Order Blocks are the primary reaction zones in the indicator.
After a confirmed structure break or qualifying displacement event, the script searches backward for an opposing candle. A candidate candle can be filtered by:
* Candle range relative to ATR.
* Body size as a percentage of candle range.
* Optional volume expansion.
* Wick-based or body-based zone construction.
Before accepting the candidate, the script checks whether price has already invalidated it. This prevents many stale zones from being created after the fact.
Active Order Blocks can be invalidated by either:
* A close beyond the opposite edge.
* A wick beyond the opposite edge.
The selected mitigation method is used consistently during both zone creation and live zone management.
Order Blocks have separate controls for visual extension and analytical age. This allows users to control how long a box remains visible independently from how long it remains eligible for signal calculations.
PREMIUM, DISCOUNT, AND EQUILIBRIUM
The script creates a rolling dealing range from the highest high and lowest low over the selected lookback.
The range is divided into:
* Premium: the upper portion of the range.
* Discount: the lower portion of the range.
* Equilibrium: the 50% midpoint.
Premium and Discount do not generate trades by themselves. They provide location.
In general:
* Bullish setups receive stronger contextual support in Discount.
* Bearish setups receive stronger contextual support in Premium.
* Equilibrium represents the midpoint of the current rolling range.
Because the range is rolling, its boundaries can change when a new lookback high or low is formed.
MOMENTUM RIBBON
The momentum module uses three exponential moving averages and an ATR-normalized difference between the fast and slow averages.
Bullish momentum requires:
* Fast EMA above the slow EMA.
* Positive normalized momentum.
* Momentum above its signal average.
Bearish momentum uses the opposite conditions.
Diamond markers identify confirmed momentum crossings. The ribbon is intended as confirmation rather than a standalone entry system.
CONFLUENCE SIGNALS
The script calculates a 0-100 Confluence Score from five conditions:
* Directional bias: 25 points.
* Market structure: 15 points.
* Momentum alignment: 15 points.
* Active Order Block interaction: 25 points.
* Premium or Discount location: 20 points.
The score measures condition alignment. It is not a probability, win rate, accuracy estimate, or forecast of future performance.
By default, BUY and SELL signals require:
* Confirmed directional bias.
* Matching confirmed structure.
* Interaction with an active Order Block.
* Correct Premium or Discount location.
* Matching momentum.
* Minimum Confluence Score.
* Completion of the selected signal cooldown.
Signals are displayed only when the complete condition changes from false to true. This prevents repeated labels while the same setup remains active.
OPTIONAL ADVANCED MODULES
Full mode provides additional analytical tools:
* Fair Value Gaps with ATR size filtering.
* Equal-high and equal-low liquidity pools.
* Confirmed liquidity sweeps.
* BOS and CHoCH labels.
* HH, HL, LH, and LL labels.
* Previous day, week, and month highs and lows.
* Optional momentum candle coloring.
These features are disabled or hidden from the default Balanced view to preserve readability.
VISUAL PRESETS
Minimal:
Designed for traders who want the least chart interference. It suppresses the background, ribbon, Premium/Discount display, trailing line, dashboard, and advanced structure annotations.
Balanced:
The default view. It emphasizes directional background, active Order Blocks, Premium/Discount context, momentum ribbon, diamonds, signals, and the dashboard.
Full:
Designed for detailed study. It adds structure labels, BOS/CHoCH events, Fair Value Gaps, liquidity tools, higher-timeframe levels, and optional candle coloring.
FOR NEWER TRADERS
A simple workflow is:
1. Start with the Balanced preset.
2. Use the background to identify the current directional bias.
3. Wait for price to return to an Order Block matching that bias.
4. Check whether price is in Discount for a bullish setup or Premium for a bearish setup.
5. Confirm that the momentum ribbon agrees.
6. Treat the signal as a point for further analysis, not an automatic order.
The equilibrium line can be used as a reference for the midpoint of the current dealing range. It is not automatically an entry or exit instruction.
FOR ADVANCED TRADERS
Experienced users can customize:
* Pivot confirmation sensitivity.
* ATR and EMA trend parameters.
* Wick-based versus body-based Order Blocks.
* Displacement-created zones.
* Candle body, range, and volume filters.
* Close-based versus wick-based mitigation.
* Zone visual duration and analytical age.
* Premium and Discount percentages.
* Fair Value Gap size.
* Liquidity sensitivity.
* Momentum lengths.
* Individual signal requirements.
* Minimum confluence threshold.
* Signal cooldown.
* Higher-timeframe reference levels.
Advanced users can also disable individual hard requirements and use the Confluence Score as a more flexible filtering system.
ALERTS
Alert conditions are included for:
* Break of Structure.
* Change of Character.
* New Order Block.
* BUY signal.
* SELL signal.
* Bias-aligned Order Block entry.
* Trend and momentum confluence.
* Liquidity sweep.
Alerts should be created using Once Per Bar Close when confirmed signals are required.
NON-REPAINTING AND TIMING
Structure breaks, directional shifts, zone creation, zone mitigation, momentum events, and confluence signals are evaluated on confirmed bars.
Pivot-based swing labels require future bars to confirm that a swing occurred. After confirmation, the label is displayed on the original pivot candle. This is delayed confirmation with retrospective placement, not advance knowledge of the swing.
Previous-period levels use completed higher-timeframe data.
LIMITATIONS
* This indicator does not predict future prices.
* It does not calculate position size, stop loss, or account risk.
* It is not a complete automated trading system.
* Signals can fail during volatile, illiquid, or range-bound conditions.
* Rolling Premium, Discount, and equilibrium levels can move when the lookback range changes.
* Confirmed pivots introduce an intentional delay.
* Order Block definitions vary among trading methodologies; this script uses the documented candle-search and filtering rules described above.
* Volume behavior differs across asset classes and data providers.
* Parameter settings that work on one symbol or timeframe may not be appropriate for another.
Suggested starting points are the 15-minute and 1-hour charts for intraday analysis and the 4-hour chart for broader swing structure. Users should test settings on their own symbols and trading sessions.
OPEN-SOURCE PURPOSE
The script is published open-source so traders can inspect the calculations, understand why signals occur, verify the confirmed-bar methodology, and adapt the framework for their own research.
The goal is to provide a readable and transparent market-structure workflow rather than a black-box prediction tool.
DISCLAIMER
This indicator is provided for educational and analytical purposes only. It is not financial advice and does not guarantee profitable results. Historical chart behavior does not ensure future performance. Users are responsible for their own analysis, testing, risk management, and trading decisions.
Indicator

Market Structure + CHoCH/MSS/BOS | Xcelerate TradeMarket Structure + CHoCH / MSS / BOS | Xcelerate Trade
A precise market-structure mapper from the Xcelerate Trade team. It auto-detects swing highs / lows, classifies every break of structure as CHoCH (Change of Character), MSS (Market Structure Shift) or BOS (Break of Structure), and labels each pivot as HH / HL / LH / LL. Designed for SMC and price-action traders who want a clean, repaint-aware structural read of the chart.
What you get on the chart
Swing labels: HH (Higher High), HL (Higher Low), LH (Lower High), LL (Lower Low) — auto-placed on every detected pivot.
Break lines: every confirmed break is drawn as a horizontal segment from the swing bar to the breaking bar.
Break tags: each break line gets a label — CHoCH, MSS or BOS — so you can read structure at a glance.
Info table (top-right): current settings (Auto / Manual, TF, L/R, detection method, MSS definition, break validation) and an optional debug panel with trend state, flags, pre-CHoCH levels, last-break details.
Pattern alerts: ready-to-use alertcondition for HH-HL-HH and LL-LH-LL sequences.
Pivot detection — two modes
Williams Fractals (default): classic ta.pivothigh / ta.pivotlow with separate left and right lengths. Configurable in Manual Settings (defaults L = 6, R = 4) or selected automatically per timeframe via Auto Timeframe Settings:
Timeframe L / R
1m
4 / 4
5m
4 / 3
15m
5 / 4
30m+, daily, weekly, monthly
6 / 4
Simple Fractals: SMC-style, symmetric — current bar is a pivot if it's the highest / lowest within simpleFractalPeriod bars on each side. Faster but more frequent than Williams.
You can also force Wait for bar close (default ON) to confirm pivots only on closed bars.
Break validation — 4 modes
Choose how a level is considered "broken":
Close — close beyond the swing level (cleanest, default).
High/Low (wick) — wick beyond the level (most aggressive).
Close beyond buffer (ticks) — close beyond level ± N × mintick.
Close beyond buffer (%) — close beyond level ± X%.
Buffer fields appear conditionally so you can tune the strictness of structure breaks per instrument (forex, indices, crypto, etc.).
Structure classification — CHoCH / MSS / BOS
Trend state is tracked internally (Bullish, Bearish, Neutral). Every confirmed break is then classified:
CHoCH — first break that reverses the trend (bullish CHoCH on a close above the last swing high while bearish; bearish CHoCH on a close below the last swing low while bullish), or the very first break when the trend is still neutral. CHoCH flips the trend and starts a fresh leg.
MSS — first qualifying break in the direction of the new trend after CHoCH, per the MSS definition setting:
First break after CHoCH — any first break in trend direction = MSS, then BOS.
First break >= pre-CHoCH level — MSS only when the broken swing is at or beyond the swing level that existed before the CHoCH. Stricter — protects against premature MSS calls.
HL + >= pre-CHoCH (legacy) — same as above, plus a confirming HL (bull) / LH (bear) is required after CHoCH before MSS can fire.
BOS — every subsequent break in the trend direction after MSS — until the opposite CHoCH occurs and the cycle restarts.
This rule set keeps only one MSS per trend leg, with everything before it being CHoCH and everything after being BOS — exactly how SMC traders read it.
Pre-CHoCH levels (transparent reasoning)
When CHoCH fires, the script captures the swing-high / swing-low that existed before the trend flip (pre_choch_swing_high / pre_choch_swing_low). These are used by the stricter MSS modes and shown in the debug rows of the info table, so you can verify exactly why a break was classified as MSS or BOS.
Last broken swing tracking
For every confirmed break the indicator stores:
lastBreakSwingBarIndex — the bar where the broken swing originally formed (its ID).
lastBreakSwingPrice — the level that was broken.
lastBreakClassification — CHoCH / MSS / BOS.
lastBreakDirection — above swing high / below swing low.
lastBreakDetectBarIndex — the bar where the break passed your validation filter.
These are visible in the debug rows when Show debug rows (table) is on — useful for forensic / journal-style review.
Drawing budget (FIFO)
The indicator caps the number of CHoCH / MSS / BOS line + label pairs at Max CHoCH/MSS/BOS lines + labels (default 400, max ~80% of PulseWire's 500 limit). Older drawings are removed first (FIFO), so you never hit the line cap on long histories.
Alerts
Two ready-to-use alert conditions:
HH-HL-HH Alert — fires when an HH-HL-HH pattern completes.
LL-LH-LL Alert — fires when an LL-LH-LL pattern completes.
Use PulseWire's alert dialog → choose the alert condition by name. Messages include {{ticker}} and {{interval}} placeholders.
Suggested settings (from the Xcelerate Trade team)
Default for most traders: Auto settings ON, Williams Fractals, Wait for bar close ON, Break validation = Close, MSS definition = First break after CHoCH.
Strict structural read (low noise): Break validation = Close beyond buffer (%) with 0.05–0.10%, MSS definition = First break >= pre-CHoCH level.
Aggressive / fast feedback: Simple Fractals with period 2, Break validation = High/Low (wick), Wait for bar close = OFF.
Forensic review: turn ON Show debug rows (table) to see trend state, CHoCH / MSS flags, pre-CHoCH levels and the last-break summary.
Notes & disclaimers
Williams Fractals confirm with a delay equal to the right-length (R bars). This is intentional — pivots are not repainted after confirmation.
Simple Fractals confirm with a delay equal to simpleFractalPeriod bars.
This is an analytical tool — no automated buy / sell labels. Pair with your own execution rules.
Pine Script v6.
Built and maintained by the Xcelerate Trade team. A complete CHoCH / MSS / BOS market-structure read with HH / HL / LH / LL labels, four break-validation modes, three MSS definition modes, an info / debug table and ready alert conditions. Indicator

Strong Hurst Cycles | ProjectSyndicateHurst Cycles Pro decomposes the chart into a nest of harmonic cycles and projects when the next low of each one is due — so instead of guessing where a turn might land, you can see the cycle structure, read which cycles are lining up, and frame your analysis around the moments several of them are set to bottom together. It builds 4–8 nested cycles each one double the length of the cycle below it, following Hurst's harmonic principle, auto-sizes them to your timeframe, confirms every cycle low on a centred non-repainting window, and renders the whole structure as smooth scalloped arcs in a dedicated pane with a ranked turning-point strip beneath. A dashboard then translates every cycle into plain language — its period, how long since its last low, when its next low is projected, and whether it is currently rising or falling.
IMPORTANT NOTE: Run system on H1 H4 D1 timeframes.
🌀 NESTED HARMONIC CYCLES
4–8 cycles, each exactly double the length of the one below it (Hurst's harmonic doubling), drawn as smooth scalloped polylines. Longer cycles are given taller arcs, so amplitude scales with period the way real cyclic structure does. The base cycle either auto-scales to your timeframe — shorter on intraday, expanding on H4 / D1 — or you set it manually.
🔮 NEXT-LOW PROJECTION
Each cycle's next arc is projected forward as a dashed scallop, and the dashboard reports the projected time of every cycle's next low. The longest cycle anchors the structure; the shorter ones nest inside it.
💎 TURNING-POINT DIAMONDS
Two synchronised views of the same lows. A full-history diamond strip lives in the cycle pane — drawn with plotshape, so it covers ALL history with no 500-object limit, one row per cycle. Matching diamond stacks are pinned to the actual cycle-low candles on the price chart, stacked by cycle order. Independent size controls for each.
🥇 MAJOR SYNCHRONISED LOWS
When a chosen number of cycles bottom within tolerance of one another, the level is flagged as a MAJOR low and marked with a triangle in the pane — Hurst's synchronicity principle, where cycles tend to trough together. The alignment threshold and the confluence tolerance are both adjustable (tolerance can auto-size from the base cycle).
📊 CYCLE DASHBOARD
A pinned table grades the whole structure at a glance: for every cycle it shows the period, the last low (how long ago, in time), the next low (projected, in time), and the live phase (▲ up / ▼ down). A footer line projects the next major turn as a calendar date and time, with how many cycles are converging on it. Four corner positions.
🎯 DOMINANT-CYCLE TOOLS — VTL & FLD
Nominate a dominant cycle and the indicator overlays its classic Hurst tools onto the price chart: the VTL (Valid Trend Line) drawn through its last two lows and extended forward, and the FLD (Future Line of Demarcation), the price midline displaced forward by half the dominant cycle. Both are optional and force-overlaid onto price.
🔒 NON-REPAINTING BY CONSTRUCTION
Every trough is confirmed on a centred window — only after P/2 bars have closed on each side. A printed cycle low is locked in and never shifts as new bars arrive; only the still-forming right edge can update.
🎨 OWN PANE, LOCKED SCALE
The cycles and the diamond strip share their own pane on a single flat baseline, perfectly aligned, with the vertical scale locked so the arcs and rows don't jump around as detections land. Eight fully configurable cycle colours run short → long.
🔔 NATIVE ALERTS
Dedicated alerts for a major synchronised low forming and for the dominant cycle confirming a trough.
🔧 FULLY ADJUSTABLE
Number of cycles, auto vs manual base, arc heights and smoothness, history span and next-arc projection; diamond visibility, size and history span, plus pane row spacing and price stack spacing; confluence tolerance and the major-low alignment threshold; dominant-cycle selection and VTL / FLD toggles; dashboard position; and the full eight-colour cycle theme.
🚀 Works on gold (XAUUSD), silver, forex, crypto, stocks and indices, H1/H4/D1 TF.
────────────────────────
HOW TO USE IT — TWO WORKFLOWS
The cycles give you timing and context, not orders. Use them to decide WHEN and in WHICH direction to apply your own method.
TIME THE TURN — synchronised cycle lows
Use when several cycles are projected to bottom together.
Watch the dashboard's "Next low" column and the "Next major turn" footer for a date where multiple cycles converge.
The strongest windows are the MAJOR synchronised lows (triangle in the pane) — more aligned cycles, more weight.
Treat the projected date/time as a window to focus your analysis, not as an automatic entry.
Wait for your own price-action confirmation at the level before acting, and define risk beyond the structure that would invalidate the low.
READ THE TREND — dominant cycle, VTL & FLD
Use to judge whether a projected low is likely trend-resuming or just a counter-trend bounce.
Set the dominant cycle to the one that best fits the swings you trade.
The VTL frames the prevailing trend off the last two dominant lows; how price holds relative to it describes trend health.
The FLD acts as the dominant cycle's demarcation line; interactions with it describe momentum shifts of that cycle.
Combine the dashboard phase (▲ / ▼) with VTL / FLD context to weight the conviction of the next projected low.
Rule of thumb: many cycles bottoming together, with a fresh dominant-cycle phase, is the highest-conviction timing window. A lone short-cycle low against a falling dominant cycle is weaker context.
────────────────────────
⚠️ THIS IS NOT A SIGNAL SYSTEM. Hurst Cycles is an analytical timing-and-context tool built for advanced traders who already have a method. It projects cycle structure and probable turning windows — it does NOT generate buy / sell signals, and it makes no promise that a projected low will actually occur. Cycles drift, skip and occasionally invert in live markets, and the projection is only as good as the recent cyclic rhythm. Always combine it with your own strategy, price-action analysis and risk management to confirm setups. Past cyclic behaviour does not guarantee future results. Indicator

Event HorizonEvent Horizon is a historical analog projection fan designed to answer one practical question:
What has price tended to do after market conditions similar to the current one?
Instead of using a fixed crossover, oscillator threshold, or trend flip, this indicator builds a market fingerprint from the current chart, searches historical bars for similar conditions, and projects how those past analogs moved forward. The result is a visual forward fan showing possible path behavior, consensus direction, dispersion, confidence, and the closest historical analog path.
The goal is not to predict the future with certainty. The goal is to give traders a structured way to compare the current setup against similar historical environments and quickly see whether the analogs are aligned, scattered, bullish, bearish, or not useful.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
What makes this script different
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Most projection tools draw a channel, regression, moving average extension, or volatility cone from a fixed formula.
Event Horizon uses a historical analog engine. Each bar is converted into a multi-factor feature profile, then compared against prior market states using weighted Euclidean similarity. The closest historical analogs are used to create a forward projection fan.
The script combines:
• Historical analog matching
• Weighted Euclidean distance
• Regime-aware scoring
• Volatility and trend-state filtering
• Consensus projection logic
• Closest historical path overlay
• Agreement and confidence scoring
• Directional historical event dots
• A visual fan that shows uncertainty instead of one hard prediction
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
How it works
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Market fingerprint
The script measures the current market using multiple dimensions, including:
• Recent price movement
• Trend slope
• ATR expansion and compression
• Candle range and body behavior
• Wick imbalance
• Position relative to recent structure
• Breakout distance
• Volume ratio and volume trend
• ATR percentile
• ADX / trend strength
• Historical shape samples
This creates a multi-dimensional profile of the current setup.
2. Historical analog search
The current profile is compared to historical profiles on the same chart. Similarity is calculated with weighted Euclidean distance, so higher-value features such as trend, volatility regime, and price-shape behavior can matter more than smaller candle details.
Closer historical examples receive stronger match scores.
3. Regime awareness
The script also classifies the current environment into regimes such as trend, compression, volatility expansion, volume shock, or range/chop. Historical examples from incompatible regimes are penalized, helping reduce weak comparisons.
4. Forward projection
Once the best analogs are selected, the script looks at what actually happened after those historical setups. Those forward moves are normalized and projected from the current anchor point.
5. Consensus and confidence
The indicator summarizes the analog group with:
• Directional bias
• Agreement percentage
• Dispersion
• Confidence score
• Edge state: TRADEABLE, CAUTION, or NO EDGE
• Historical self-test statistics
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
How to read the fan
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The colored fan shows the projected analog field.
The colored median shows the consensus path of the analog set.
The white line shows the closest visible historical analog path. It is not a guaranteed target. It is the path taken by the most similar past setup selected by the engine.
The wider the fan, the more disagreement there is between analogs.
The tighter the fan, the more historically aligned the analogs are.
The confidence and edge label are important. A bullish-looking fan with low confidence or high dispersion should be treated differently than a bullish fan with strong agreement and cleaner regime structure.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Historical dots
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Historical event dots help visually review where prior projection events occurred.
• Bullish projection dots appear below price
• Bearish projection dots appear above price
• Mixed or neutral readings are visually separated
This makes it easier to inspect whether the indicator has been identifying useful directional conditions on the current symbol and timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
How to use it
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
For newer traders:
1. Start on the Daily or 4H chart.
2. Look at the colored median.
3. Check whether the white analog path agrees with the median.
4. Check confidence and agreement.
5. Avoid forcing trades when the label says NO EDGE or when dispersion is high.
A stronger bullish read usually has:
• Median path rising
• White analog path also rising
• Agreement above roughly 65%
• Confidence above roughly 70
• Low or medium dispersion
• Edge state showing TRADEABLE or CAUTION, not NO EDGE
A weaker or avoidable read usually has:
• Median and white path disagreeing
• Agreement near 50%
• High dispersion
• Low confidence
• Range/chop regime
• NO EDGE label
For experienced traders:
Use the fan as an analog-based context layer. It is most useful when combined with your own structure, liquidity, trend, support/resistance, volume, or macro view. The script is designed to show whether historical analog behavior supports or conflicts with the trade idea you already see on the chart.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Suggested settings
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Balanced stocks / ETFs:
• Mode: Current Bar Projection
• Visual Mode: Cinematic
• Fan Style: Hybrid Swarm + Contours
• Horizon: 30
• Memory Lookback: 1800
• Max Analogs: 30
• Minimum Analogs: 6
• Pre-Event Window: 20
• Shape Samples: 6
• Path Scale: 1.0
Crypto:
• Horizon: 24
• Memory Lookback: 2000 to 2500
• Path Scale: 0.75 to 0.90
• Flexible direction matching
Intraday:
• Horizon: 20 to 24
• Minimum Analogs: 8
• Path Scale: 0.75 to 1.0
• Use liquid symbols only
Trend continuation:
• Direction Matching: Strict
• Mirror Opposite Direction: Off
• Path Scale: 1.0
Reversal / exhaustion:
• Direction Matching: Flexible
• Mirror Opposite Direction: On
• Path Scale: 0.75
• Shorter horizon preferred
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Best use cases
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Event Horizon is best suited for:
• Liquid stocks
• Major ETFs
• Index products
• Major crypto pairs
• Trend continuation setups
• Post-compression expansion
• Structure breaks
• Swing-trade context
• Daily and 4H analysis
It is less suitable for:
• Illiquid symbols
• Very new tickers with limited history
• Low-volume penny stocks
• Earnings gaps
• Binary news events
• Extremely short scalping timeframes
• Markets with sudden one-off catalysts
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Important notes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This is an analog projection tool, not a standalone buy/sell system.
Historical similarity does not guarantee future behavior. Market structure, liquidity, volatility, news, and macro conditions can change quickly. The fan should be used as a decision-support layer, not as a guaranteed forecast.
The strongest readings occur when the median, white analog path, agreement, confidence, and regime state all point in the same direction.
The weakest readings occur when analogs are scattered, confidence is low, dispersion is high, or the script identifies a no-edge environment.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Event Horizon turns historical market behavior into a forward analog projection fan.
It helps traders see:
• What similar past setups did next
• Whether those analogs agree or disagree
• Whether the current regime supports the projection
• Whether the projected path is tight or scattered
• Whether the setup has enough confidence to matter
Use it to add historical context, probability awareness, and regime-based discipline to your chart analysis.
Indicator

FVG Retest Entry Engine [trade_w_samet]🎯 FVG Retest Entry Engine
FVG Retest Entry Engine is a structured Fair Value Gap retest analysis indicator designed to help traders study confirmed gap reactions, structure alignment, filtered entry conditions, and multi-target visual trade models directly on the price chart.
This script focuses on one main concept:
FVG retest-based entry visualization.
It is not designed to be a simple buy/sell signal generator.
It is not designed to show every possible Fair Value Gap.
It is not designed to create constant chart noise.
Instead, the goal of FVG Retest Entry Engine is to detect confirmed structure events, identify eligible Fair Value Gaps, monitor their retests, apply configurable quality checkpoints, and visualize accepted setups using one entry level, one protective stop, and three take-profit levels.
The indicator includes:
• Bullish and bearish market-structure detection
• BOS and CHoCH classification
• Three-candle Fair Value Gap detection
• Internal FVG memory and invalidation handling
• Structure-linked FVG candidate selection
• FVG quality scoring and setup grading
• Armed-zone retest monitoring
• Multiple retest confirmation models
• Volume, Directional Force, and confirmed HTF bias filters
• FVG Retest Passport
• Blocker Lens state reporting
• Confirmed-close signal commitment
• Optional Live Preview dashboard state
• Gap-protected and ATR-based stop-loss models
• TP1, TP2, and TP3 risk-multiple projections
• Optional breakeven movement after TP1
• Active and historical TP / SL areas
• Executed FVG retest zones
• One-active-trade-at-a-time logic
• Mobile chart layout
• Multiple visual themes
• Advanced entry and lifecycle alerts
• JSON webhook support
• Compact bottom-right dashboard
The purpose of this script is to help users visually study where a structure event and an eligible Fair Value Gap combine with a confirmed retest condition.
It should be treated as a chart-analysis and educational decision-support tool.
It is not financial advice.
It is not an automated trading system.
It does not guarantee profitable trades.
It does not execute broker orders.
It does not replace personal analysis, risk management, or trade validation.
━━━━━━━━━━━━━━━━━━━━━━
📌 OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━
At a high level, FVG Retest Entry Engine does the following:
• Detects confirmed bullish and bearish structure breaks.
• Classifies structure events as BOS or CHoCH.
• Detects bullish and bearish three-candle Fair Value Gaps.
• Stores valid FVG zones in internal memory.
• Tracks zone direction, boundaries, age, displacement, volume context, and prior interactions.
• Searches for an eligible FVG after a matching structure event.
• Scores and ranks available FVG candidates.
• Arms the best available zone for retest monitoring.
• Waits for the selected minimum retest delay.
• Detects the selected FVG retest pattern.
• Evaluates reaction quality and optional confluence filters.
• Assigns a setup grade such as A+, A, B, or FILTERED.
• Confirms final entry conditions only when the chart candle closes.
• Draws one Entry, one SL, and three TP levels.
• Tracks TP1, TP2, TP3, stop-loss, and breakeven events.
• Allows only one active trade projection at a time.
• Keeps completed trade areas when historical display is enabled.
• Marks completed models as bullish or bearish FVG Retest outcomes.
• Displays the current bias, engine state, and active levels in the dashboard.
• Provides entry, armed-zone, target, stop, breakeven, and webhook alert options.
The script is intentionally built as a structured process.
It does not include machine-learning prediction.
It does not include guaranteed performance claims.
It does not attempt to forecast every future market movement.
It provides a transparent way to study structure-linked FVG retests and their projected trade lifecycle.
━━━━━━━━━━━━━━━━━━━━━━
🧠 CORE IDEA
━━━━━━━━━━━━━━━━━━━━━━
The core idea behind FVG Retest Entry Engine is based on the relationship between market structure and Fair Value Gap reactions.
A Fair Value Gap represents a three-candle price imbalance.
A bullish FVG is formed when the current candle’s low is above the high from two candles earlier.
A bearish FVG is formed when the current candle’s high is below the low from two candles earlier.
The script does not treat every FVG as an entry.
Instead, it waits for a confirmed structure event and then searches for an eligible FVG that matches that directional context.
The selected FVG becomes an armed zone.
Price must later return to that zone and satisfy the chosen retest condition.
The engine can then evaluate:
• gap size relative to ATR
• formation displacement
• formation volume context
• FVG age
• prior zone interactions
• structure-break quality
• retest depth
• reaction-candle quality
• volume participation
• DI / ADX directional force
• confirmed higher-timeframe bias
• minimum setup grade
The goal is not to show more signals.
The goal is to create a documented and understandable process from structure event to confirmed FVG retest model.
━━━━━━━━━━━━━━━━━━━━━━
🧩 WHY THIS SCRIPT IS NOT A SIMPLE BUY/SELL INDICATOR
━━━━━━━━━━━━━━━━━━━━━━
FVG Retest Entry Engine is not intended to be used as a blind buy/sell system.
The script is structured as a visual review workflow:
Structure event is confirmed
→ matching FVG candidates are reviewed
→ one eligible FVG is selected
→ the FVG becomes armed
→ price returns to the armed zone
→ the retest pattern is checked
→ reaction quality is evaluated
→ enabled filters are checked
→ the setup receives a grade
→ the candle must close with all conditions still valid
→ Entry, SL, TP1, TP2, and TP3 are projected
→ the active model is monitored
→ the model closes at TP3, stop loss, targets complete, or breakeven
→ the completed FVG Retest model is archived visually
Each part has a specific purpose.
The structure system identifies a directional event.
The FVG memory system stores imbalance zones.
The candidate-ranking system selects a relevant gap instead of using every gap.
The armed-zone system separates observation from entry.
The retest logic defines what qualifies as a valid return.
The quality checkpoints reduce setups that fail enabled conditions.
The grading system summarizes internal setup quality.
The entry model provides visual planning levels.
The stop model creates a consistent risk reference.
The three-target model provides staged reward references.
The Blocker Lens explains the current engine state.
The Passport explains why an accepted setup qualified.
The alert system supports monitoring of confirmed events.
This makes the script a structured FVG retest analysis tool, not a guaranteed trade signal generator.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ HOW THE SCRIPT WORKS
━━━━━━━━━━━━━━━━━━━━━━
The script operates through several connected stages.
First, it identifies confirmed swing highs and swing lows.
Price breaking a confirmed swing level can create a bullish or bearish structure event.
The break may be classified as BOS when it continues the current structure bias or CHoCH when it changes that bias.
The engine separately detects three-candle Fair Value Gaps and stores their contextual information.
bool tws_bullish_fvg = bar_index >= 2 and low > high
bool tws_bearish_fvg = bar_index >= 2 and high < low
float tws_bullish_fvg_top = low
float tws_bullish_fvg_bottom = high
float tws_bearish_fvg_top = low
float tws_bearish_fvg_bottom = high
float tws_bullish_fvg_size = tws_bullish_fvg_top - tws_bullish_fvg_bottom
float tws_bearish_fvg_size = tws_bearish_fvg_top - tws_bearish_fvg_bottom
When a structure event occurs, the engine reviews matching FVG candidates within the selected distance and timing limits.
The available candidates are compared using the active profile’s rules.
The selected zone becomes armed and remains under observation until:
• a confirmed retest creates an entry
• the setup expires
• the FVG is invalidated
• another structure search replaces it
Once price interacts with the armed zone, the selected retest model and reaction-quality conditions are checked.
Volume, DI / ADX, and higher-timeframe bias can also be required.
Only a setup that passes the active rules and remains valid at candle close can create a permanent entry model.
━━━━━━━━━━━━━━━━━━━━━━
🔵 BULLISH FVG RETEST LOGIC
━━━━━━━━━━━━━━━━━━━━━━
A bullish FVG Retest setup begins with bullish structure context.
The script requires a confirmed bullish BOS or CHoCH event and then searches for a directionally matching FVG candidate.
The selected zone must remain valid while the engine waits for price to return.
Depending on the chosen profile and retest model, bullish confirmation may require:
• wick contact with the zone
• real-body contact
• a close inside the zone
• a bullish reaction reclaim
• directional recovery above the zone midpoint
• a close above the relevant FVG edge
• a bullish rejection wick
The engine may then check:
• reaction strength
• volume participation
• positive DI dominance
• minimum ADX strength
• confirmed bullish HTF alignment
• minimum accepted grade
When every enabled condition remains valid at candle close, the script creates:
• a bullish FVG RETEST label
• an executed FVG retest box
• an entry reference at the confirmation close
• a protective stop below the setup reference
• TP1, TP2, and TP3 above entry
• blue reward visualization
• red risk visualization
This does not mean price must continue upward.
It means the script detected a bullish FVG retest condition that satisfied the selected rules at the time of confirmation.
━━━━━━━━━━━━━━━━━━━━━━
🔴 BEARISH FVG RETEST LOGIC
━━━━━━━━━━━━━━━━━━━━━━
A bearish FVG Retest setup begins with bearish structure context.
The script requires a confirmed bearish BOS or CHoCH event and then searches for a directionally matching FVG candidate.
The selected zone must remain valid while the engine waits for price to return.
Depending on the chosen profile and retest model, bearish confirmation may require:
• wick contact with the zone
• real-body contact
• a close inside the zone
• a bearish reaction reclaim
• directional recovery below the zone midpoint
• a close below the relevant FVG edge
• a bearish rejection wick
The engine may then check:
• reaction strength
• volume participation
• negative DI dominance
• minimum ADX strength
• confirmed bearish HTF alignment
• minimum accepted grade
When every enabled condition remains valid at candle close, the script creates:
• a bearish FVG RETEST label
• an executed FVG retest box
• an entry reference at the confirmation close
• a protective stop above the setup reference
• TP1, TP2, and TP3 below entry
• blue reward visualization
• red risk visualization
This does not mean price must continue downward.
It means the script detected a bearish FVG retest condition that satisfied the selected rules at the time of confirmation.
━━━━━━━━━━━━━━━━━━━━━━
💎 FVG QUALITY FILTER SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
The script includes a multi-layer FVG quality system to reduce unnecessary chart signals.
This is important because not every gap has the same context and not every retest should create an entry model.
The quality system may evaluate:
• minimum gap size relative to ATR
• displacement of the formation candle
• gap location inside the recent dealing range
• formation-volume context
• gap age
• previous interactions with the zone
• distance from the matching structure event
• structure-break strength
• reaction-candle strength
• volume participation on retest
• DI / ADX directional force
• confirmed HTF bias
• final setup grade
The exact behavior depends on the selected Engine Style.
Original Sync uses the first validated calibration and star-based acceptance logic.
Balanced Flow uses moderate filtering.
Precision Flow applies stricter FVG and retest requirements.
Fast Flow accepts more active conditions.
Position Flow uses wider structural and timing windows.
Custom Lab exposes the advanced thresholds for manual configuration.
The filter system does not guarantee better future outcomes.
It controls how selective the engine is before creating a confirmed visual model.
━━━━━━━━━━━━━━━━━━━━━━
📏 GAP / ATR FILTER
━━━━━━━━━━━━━━━━━━━━━━
The gap-width filter measures the detected FVG against ATR.
This helps the engine reject extremely small imbalance zones relative to current market volatility.
A higher minimum gap-width value makes FVG storage and candidate selection more selective.
A lower value allows smaller gaps to enter the internal memory.
The filter is volatility-adjusted because the same absolute price distance can have different meaning across symbols and timeframes.
The active threshold depends on the chosen profile or Custom Lab value.
A larger gap is not automatically a better setup.
Gap size is only one component of the complete selection and retest process.
━━━━━━━━━━━━━━━━━━━━━━
🕯️ DISPLACEMENT QUALITY FILTER
━━━━━━━━━━━━━━━━━━━━━━
The displacement filter evaluates the directional body of the candle associated with FVG formation.
The formation body is compared with ATR and converted into a bounded internal score.
This helps the script distinguish a stronger directional imbalance from a gap created during weak or narrow price action.
When the Gap Impulse Check is enabled, an FVG must satisfy the selected displacement threshold before it is stored as a valid candidate.
A higher threshold reduces the number of eligible FVGs.
A lower threshold accepts more moderate formations.
The displacement score is an internal quality measurement.
It does not predict whether the zone will hold in the future.
━━━━━━━━━━━━━━━━━━━━━━
📊 REACTION STRENGTH FILTER
━━━━━━━━━━━━━━━━━━━━━━
The reaction-strength filter evaluates the candle that interacts with the armed FVG.
The score can include:
• close location inside the candle
• directional wick quality
• body size relative to ATR
• bullish or bearish candle direction
• penetration depth inside the FVG
The purpose is to separate a basic touch from a more structured directional response.
A higher minimum reaction-strength value requires a clearer response from the zone.
A lower value accepts more retest conditions.
Original Sync can use its original reaction logic without the same adaptive score requirement.
The reaction score is not a win probability.
It is a standardized way to evaluate whether the retest candle matches the selected profile’s quality requirements.
━━━━━━━━━━━━━━━━━━━━━━
🧼 CONFIRMED RETEST FILTER
━━━━━━━━━━━━━━━━━━━━━━
The confirmed-retest layer requires price to satisfy the active retest model and remain valid at candle close.
Available Original Sync reaction patterns include:
• Any Wick Contact
• Real Body Contact
• Close Within Gap
• Reaction Reclaim
Available adaptive reaction models include:
• First Contact
• Directional Recovery
• Edge Reclaim
• Rejection Wick
First Contact accepts basic interaction with the zone.
Directional Recovery requires directional behavior after the interaction.
Edge Reclaim requires price to close through the relevant boundary.
Rejection Wick applies a stricter wick-and-close response.
The script can also use an interaction margin to tolerate minor boundary differences.
A minimum delay prevents the engine from confirming a retest too soon after the structure event.
An expiry window prevents stale armed zones from producing entries too far from their original context.
Final entry commitment remains bar-close based.
━━━━━━━━━━━━━━━━━━━━━━
🎯 ENTRY MODEL
━━━━━━━━━━━━━━━━━━━━━━
When an armed FVG retest passes all enabled conditions, the script creates a visual entry model.
The entry reference is the close of the candle that confirms the retest.
Permanent entries, labels, boxes, and entry alerts are committed only after candle close.
tws_preview_ready := tws_eval_zone_touched and tws_eval_reaction_pass and tws_direction_filters_pass and tws_eval_grade_pass
bool tws_confirmed_entry = tws_preview_ready and barstate.isconfirmed
if tws_confirmed_entry
tws_long_signal := tws_armed_direction == 1
tws_short_signal := tws_armed_direction == -1
tws_entry_event := true
tws_trade_active := true
tws_trade_direction := tws_armed_direction
tws_trade_open_bar := bar_index
tws_trade_entry := close
Confirmed Close mode waits for the candle to finish before the dashboard treats the setup as an entry.
Live Preview can show that current conditions are ready while the realtime candle is still open.
The preview may change intrabar because the candle is unfinished.
It does not create a permanent historical entry model unless the setup remains valid when the candle closes.
The entry is a visual analysis reference.
It is not a broker order and does not require the user to enter a trade.
━━━━━━━━━━━━━━━━━━━━━━
🛑 ATR STOP-LOSS MODEL
━━━━━━━━━━━━━━━━━━━━━━
The script includes two stop-placement models.
Gap-Protected Stop uses the selected FVG boundary plus an ATR-based protective buffer.
For bullish setups, the stop is projected below the FVG.
For bearish setups, the stop is projected above the FVG.
Volatility Stop projects the stop at an ATR multiple from entry.
A minimum stop-distance percentage can prevent extremely narrow visual stops.
float tws_raw_stop =
tws_stop_mode == "Gap-Protected Stop" ?
(
tws_trade_direction == 1 ?
tws_armed_bottom - tws_atr * tws_fvg_stop_buffer_atr :
tws_armed_top + tws_atr * tws_fvg_stop_buffer_atr
) :
(
tws_trade_direction == 1 ?
tws_trade_entry - tws_atr * tws_atr_stop_multiplier :
tws_trade_entry + tws_atr * tws_atr_stop_multiplier
)
float tws_raw_stop_distance = math.abs(tws_trade_entry - tws_raw_stop)
float tws_guaranteed_distance = tws_trade_entry * tws_minimum_stop_percent / 100.0
float tws_final_stop_distance = math.max(tws_raw_stop_distance, tws_guaranteed_distance)
ATR is used because volatility changes across markets and timeframes.
A wider stop changes the projected risk distance and therefore also changes all three target levels.
The displayed SL is a visual planning level only.
It does not place or manage a real broker stop order.
━━━━━━━━━━━━━━━━━━━━━━
🎯 TAKE-PROFIT RR MODEL
━━━━━━━━━━━━━━━━━━━━━━
The script uses three take-profit levels.
Each target is calculated from the distance between entry and the original stop.
float tws_trade_risk = math.abs(tws_trade_entry - tws_trade_original_stop)
tws_trade_tp1 := tws_trade_direction == 1 ? tws_trade_entry + tws_trade_risk * tws_tp1_r : tws_trade_entry - tws_trade_risk * tws_tp1_r
tws_trade_tp2 := tws_trade_direction == 1 ? tws_trade_entry + tws_trade_risk * tws_tp2_r : tws_trade_entry - tws_trade_risk * tws_tp2_r
tws_trade_tp3 := tws_trade_direction == 1 ? tws_trade_entry + tws_trade_risk * tws_tp3_r : tws_trade_entry - tws_trade_risk * tws_tp3_r
The default concept is:
TP1 = first risk-multiple target
TP2 = second risk-multiple target
TP3 = final risk-multiple target
The exact R values can be adjusted in Position Architecture.
The script also contains visual position-share percentages for TP1, TP2, and TP3.
These shares are used by the internal lifecycle model.
They do not represent a broker account, real position size, or verified financial performance.
The RR settings only control projected visual distances.
They should not be interpreted as recommendations or guaranteed objectives.
━━━━━━━━━━━━━━━━━━━━━━
📦 ACTIVE TP / SL BOX SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
When a confirmed FVG Retest entry appears, the script can draw a complete visual trade model.
The visual model includes:
• executed FVG retest zone
• entry line
• original stop line
• active stop line
• TP1 line
• TP2 line
• TP3 line
• red risk box
• blue reward box
• Entry price label
• SL price label
• TP1, TP2, and TP3 price labels
• bullish or bearish entry label
The active boxes extend to the right while the model is open.
When the model closes, the right edge is fixed at the closing candle.
If Keep Completed Trade Areas is enabled, completed boxes and lines remain visible for historical review.
The Completed Trade History Limit controls how many previous visual models are retained.
The TP area uses a blue-toned visual palette.
TP price labels use a different, darker background so they remain distinct from the reward box.
The SL area remains red for clearer risk separation.
━━━━━━━━━━━━━━━━━━━━━━
🚦 ONE ACTIVE TRADE AT A TIME
━━━━━━━━━━━━━━━━━━━━━━
The script includes one-active-trade-at-a-time logic.
If a trade model is active, the engine does not create another trade model until the current one closes.
The active model may close through:
• TP3
• targets complete
• stop loss
• breakeven exit
This design separates:
• FVG and structure detection
• trade-model creation permission
The engine can continue calculating market context while a model is active, but another entry model is not opened.
This helps prevent overlapping TP / SL areas and keeps the chart easier to interpret.
The one-active-model rule is a visual management decision.
It is not a restriction on the user’s personal trading activity.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ SAME-CANDLE TP / SL HANDLING
━━━━━━━━━━━━━━━━━━━━━━
If a target and the active stop are both touched on the same candle, standard OHLC data cannot reveal the true intrabar sequence.
The script therefore includes two selectable assumptions:
Protective First
Target First
Protective First assumes the stop is processed before target events.
Target First processes available target events before the stop check.
bool tws_conservative_mode =
tws_intrabar_priority == "Protective First"
if tws_conservative_mode and tws_stop_touched
tws_trade_remaining_percent := 0.0
tws_close_trade := true
tws_close_reason := tws_trade_active_stop == tws_trade_entry ? "BREAKEVEN" : "STOP LOSS"
tws_final_exit_price := tws_trade_active_stop
else
if not tws_tp1_reached and tws_tp1_touched
tws_tp1_reached := true
tws_tp1_event := true
Protective First is the more conservative bar-based assumption.
Target First is more optimistic.
Neither option reproduces exact tick-by-tick broker execution.
The model does not include spread, slippage, commissions, latency, or partial-fill behavior.
━━━━━━━━━━━━━━━━━━━━━━
🏷️ FVG RETEST LABELS
━━━━━━━━━━━━━━━━━━━━━━
The script uses clear directional FVG Retest labels.
Bullish entry labels use:
🟢 FVG RETEST
📈 LONG
Bearish entry labels use:
🔴 FVG RETEST
📉 SHORT
Entry labels can also display:
• grade
• setup score
• FVG age
• retest depth
• Passport information
Completed-model labels emphasize that the closed model originated from an FVG retest.
A completed bullish model can display:
🟢 BULLISH FVG RETEST
🔒 MODEL CLOSED
🎯 close reason
⭐ grade
TP1 / TP2 / TP3 status
A completed bearish model uses the corresponding bearish wording and color.
The labels do not display USD profit or account-profit claims.
All chart labels use bold and italic text formatting.
The signal-label size can be adjusted from the settings.
━━━━━━━━━━━━━━━━━━━━━━
📍 FVG ZONE DISPLAY MODES
━━━━━━━━━━━━━━━━━━━━━━
The FVG display system includes three modes:
Hidden
Selected Gap
All Active Gaps
Hidden mode removes active FVG memory boxes from the chart while allowing the engine to continue calculating them internally.
Selected Gap shows only the FVG currently armed for retest monitoring.
All Active Gaps displays every currently stored and valid FVG zone.
Show Executed FVG Retests separately controls whether the FVG zone that created an entry remains highlighted as part of the trade model.
The selected display mode affects visual presentation only.
It does not change the underlying FVG calculations.
For the cleanest chart, Selected Gap is generally the most focused mode.
All Active Gaps can be useful for research but may create more chart density.
━━━━━━━━━━━━━━━━━━━━━━
🧹 FVG INVALIDATION
━━━━━━━━━━━━━━━━━━━━━━
The script can automatically remove invalidated FVG zones.
A bullish FVG may be invalidated when confirmed price action closes through the zone in the opposite direction.
A bearish FVG may be invalidated when confirmed price action closes through its opposite boundary.
An armed zone can also be cleared when:
• its retest window expires
• the zone exceeds the permitted lifetime
• the internal memory limit removes an older gap
• the active structure search is replaced
When an armed FVG becomes invalid, the Blocker Lens can display FVG INVALIDATED.
When the retest window expires, it can display SETUP EXPIRED.
Removing invalidated or stale zones helps prevent outdated FVGs from creating later entries outside their intended context.
Users can disable automatic invalidation removal if they prefer to retain more zones visually.
━━━━━━━━━━━━━━━━━━━━━━
📟 DASHBOARD
━━━━━━━━━━━━━━━━━━━━━━
The script includes a compact dashboard positioned in the bottom-right corner.
The dashboard displays:
• BIAS
• STATE
• ENTRY
• TP1
• TP2
• TP3
• SL
BIAS uses the confirmed higher-timeframe filter when that filter is enabled and valid.
Otherwise, it reflects the current internal structure bias.
STATE is powered by the Blocker Lens.
Possible states include:
• WAITING STRUCTURE
• SCANNING FVG
• NO ELIGIBLE FVG
• FVG ARMED
• RETEST DELAY
• WAITING RETEST
• VOLUME BLOCK
• DI BLOCK
• HTF BLOCK
• WEAK REACTION
• GRADE BLOCK
• LIVE PREVIEW READY
• WAITING BAR CLOSE
• TRADE ACTIVE
• COOLDOWN
• SETUP EXPIRED
• FVG INVALIDATED
The dashboard size can be set to Micro, Compact, or Standard.
The dashboard is designed to summarize engine state and current price references.
It is not a performance report.
It is not a replacement for PulseWire Strategy Tester.
━━━━━━━━━━━━━━━━━━━━━━
🚨 ALERT SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
FVG Retest Entry Engine includes advanced alert options for:
• FVG armed
• bullish FVG Retest entry
• bearish FVG Retest entry
• any FVG Retest entry
• TP1 reached
• TP2 reached
• TP3 reached
• breakeven activated
• stop loss
• breakeven exit
Alert packages include:
Off
Qualified Entries
Premium Entries
Full Lifecycle
Webhook JSON
Qualified Entries focuses on confirmed accepted entries.
Premium Entries applies stricter grade-based alert delivery.
Full Lifecycle includes entry and management events.
Webhook JSON sends structured event messages for external processing.
Alert Direction can be limited to Both Directions, Bullish Only, or Bearish Only.
Minimum Alert Grade can be set to All Qualified, A / A+, or A+ Only.
Alert filtering affects alert delivery only.
It does not change the chart’s signal calculations.
alertcondition(tws_armed_alert_event, title="trade_w_samet • FVG ARMED", message='trade_w_samet FVG ARMED | {{ticker}} | TF: {{interval}} | Score: {{plot("SIGNAL_SCORE")}}')
alertcondition(tws_entry_alert_event and tws_trade_direction == 1, title="trade_w_samet • BULLISH FVG RETEST", message='trade_w_samet BULLISH FVG RETEST | {{ticker}} | TF: {{interval}} | Score: {{plot("SIGNAL_SCORE")}} | Entry: {{plot("ENTRY")}} | SL: {{plot("SL")}} | TP1: {{plot("TP1")}} | TP2: {{plot("TP2")}} | TP3: {{plot("TP3")}}')
alertcondition(tws_entry_alert_event and tws_trade_direction == -1, title="trade_w_samet • BEARISH FVG RETEST", message='trade_w_samet BEARISH FVG RETEST | {{ticker}} | TF: {{interval}} | Score: {{plot("SIGNAL_SCORE")}} | Entry: {{plot("ENTRY")}} | SL: {{plot("SL")}} | TP1: {{plot("TP1")}} | TP2: {{plot("TP2")}} | TP3: {{plot("TP3")}}')
alertcondition(tws_tp1_alert_event, title="trade_w_samet • TP1 REACHED", message='trade_w_samet TP1 REACHED | {{ticker}} | TP1: {{plot("TP1")}}')
alertcondition(tws_stop_alert_event, title="trade_w_samet • STOP LOSS", message='trade_w_samet STOP LOSS | {{ticker}} | SL: {{plot("SL")}}')
Alerts are monitoring tools only.
They do not execute trades or place broker orders.
━━━━━━━━━━━━━━━━━━━━━━
🔔 HOW TO USE ALERTS
━━━━━━━━━━━━━━━━━━━━━━
A practical alert workflow:
1. Add FVG Retest Entry Engine to the chart.
2. Select the desired Engine Style and confirmation settings.
3. Open PulseWire’s alert window.
4. Select the indicator as the alert condition.
5. Choose the desired entry or lifecycle condition.
6. Select the alert frequency appropriate for confirmed-candle monitoring.
7. Use the Alert Package, direction, and grade controls inside the indicator when needed.
8. Add a webhook URL only when using a compatible external workflow.
9. Test the alert configuration before depending on it.
10. Confirm every event with personal analysis and risk management.
For confirmed entry monitoring, users should avoid treating provisional realtime candle conditions as permanent signals.
Entry alerts are designed around the script’s confirmed event variables.
Alert delivery can still depend on PulseWire servers, the user’s alert configuration, data availability, and any external webhook destination.
━━━━━━━━━━━━━━━━━━━━━━
🧪 HOW TO USE THE INDICATOR
━━━━━━━━━━━━━━━━━━━━━━
A practical workflow:
1. Add FVG Retest Entry Engine to a standard candlestick chart.
2. Begin with Original Sync or Balanced Flow.
3. Keep Signal Timing on Confirmed Close for the clearest workflow.
4. Use Selected Gap to keep the chart focused.
5. Observe the dashboard STATE value.
6. Wait for a confirmed structure event and an armed FVG.
7. Review the FVG zone before the retest occurs.
8. When price returns, allow the selected retest model and filters to complete.
9. Review the FVG Retest Passport when an entry appears.
10. Use the displayed Entry, SL, TP1, TP2, and TP3 as visual references only.
11. Evaluate whether the setup fits personal structure, liquidity, session, and risk rules.
12. Use alerts for monitoring rather than blind execution.
13. Review completed FVG Retest labels to understand the model lifecycle.
14. Test settings on the exact markets and timeframes personally studied.
The indicator is best used as a structured FVG retest review tool.
It should not be used as an automatic decision-maker.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS REFERENCE
━━━━━━━━━━━━━━━━━━━━━━
⚡ Signal Blueprint
Engine Style
Controls the active configuration profile.
Available profiles:
Original Sync
Balanced Flow
Precision Flow
Fast Flow
Position Flow
Custom Lab
Allow Bullish Setups
Enables or disables bullish FVG Retest models.
Allow Bearish Setups
Enables or disables bearish FVG Retest models.
━━━━━━━━━━━━━━━━━━━━━━
🪪 Retest Experience
FVG Retest Passport
Controls whether Passport information is Off, Compact, or Detailed.
Show Blocker Lens
Shows or hides the engine STATE explanation in the dashboard.
Signal Timing
Selects Confirmed Close or Live Preview behavior.
Live Preview affects the dashboard’s provisional realtime state. Permanent entries remain candle-close confirmed.
━━━━━━━━━━━━━━━━━━━━━━
🧬 Original Sync Engine
Original Signal Calibration
Selects Manual Sync, Bitcoin Map, Ethereum Map, Solana Map, or Gold Map.
Structure Window
Controls pivot sensitivity in Manual Sync.
Minimum Gap Footprint — ATR
Controls the minimum FVG width.
Gap Lifetime
Controls how long stored FVGs remain eligible.
Gap Memory Capacity
Controls the number of stored zones.
Break-to-Gap Distance
Controls the maximum allowed distance between structure context and FVG eligibility.
After-Break Scan Window
Controls how long the engine continues searching after a break.
Reaction Pattern
Selects Any Wick Contact, Real Body Contact, Close Within Gap, or Reaction Reclaim.
Reaction Margin %
Adds tolerance around FVG boundaries.
Minimum Reaction Delay
Controls how many bars must pass before retest confirmation.
Reaction Expiry Bars
Controls how long the armed setup may wait.
Participation Multiplier
Controls the Original Sync volume requirement.
Minimum Directional Force
Controls the Original Sync ADX threshold.
Minimum Sync Rating
Controls the minimum accepted star rating.
Minimum Risk Distance %
Prevents extremely narrow stops.
━━━━━━━━━━━━━━━━━━━━━━
🧭 Structure Pulse
Structure Sensitivity
Controls pivot detection in Custom Lab.
Display Structure Tags
Shows or hides BOS / CHoCH labels.
Close-Lock Breaks
Requires a candle close beyond structure when enabled.
Break Momentum Check
Requires directional expansion on the break candle.
Break Body Threshold — ATR
Controls the required break-candle body size.
Break Clearance — ATR
Adds an ATR-based buffer beyond the structure level.
━━━━━━━━━━━━━━━━━━━━━━
🧱 Gap Intelligence
Minimum Gap Width — ATR
Controls the minimum stored FVG size.
Gap Impulse Check
Enables displacement filtering.
Minimum Gap Impulse
Controls the required formation displacement.
Minimum Gap Score
Controls the minimum candidate-quality score.
Allowed Prior Reactions
Controls how many previous zone interactions are accepted.
Gap Expiry Bars
Controls maximum FVG age.
Active Gap Capacity
Controls stored-zone capacity.
Maximum Structure Link
Controls the maximum structure-to-FVG distance.
Break Follow-Through Window
Controls post-break candidate scanning.
Delete Invalidated Gaps
Removes zones invalidated by confirmed opposite price action.
━━━━━━━━━━━━━━━━━━━━━━
🎯 Reaction Trigger
Reaction Model
Selects First Contact, Directional Recovery, Edge Reclaim, or Rejection Wick.
Gap Interaction Margin %
Adds tolerance around FVG boundaries.
Minimum Reaction Strength
Controls the required retest-candle score.
Reaction Delay Bars
Controls the minimum delay before retest confirmation.
Setup Expiry Bars
Controls how long the armed zone remains available.
Signal Cooldown Bars
Controls the delay after a completed model before another entry is permitted.
━━━━━━━━━━━━━━━━━━━━━━
🛂 Quality Checkpoints
Volume Participation Check
Enables or disables the retest-volume filter.
Volume Baseline Length
Controls the volume moving-average period.
Required Volume Expansion
Controls the required volume multiplier.
Directional Force Check
Enables or disables DI / ADX filtering.
Directional Force Length
Controls the DI period.
Trend Strength Smoothing
Controls ADX smoothing.
Minimum Trend Strength
Controls the required ADX value.
Higher-Timeframe Bias Check
Enables or disables HTF directional alignment.
Bias Timeframe
Selects the higher timeframe.
Bias Fast EMA
Controls the fast HTF EMA length.
Bias Slow EMA
Controls the slow HTF EMA length.
Minimum Setup Grade
Selects B Grade or Better, A Grade or Better, or A+ Only.
The HTF layer uses previous completed higher-timeframe values.
float tws_htf_close = request.security(
syminfo.tickerid,
tws_htf_timeframe,
close ,
barmerge.gaps_off,
barmerge.lookahead_on
)
float tws_htf_fast_ema = request.security(
syminfo.tickerid,
tws_htf_timeframe,
ta.ema(close, tws_htf_fast_length) ,
barmerge.gaps_off,
barmerge.lookahead_on
)
float tws_htf_slow_ema = request.security(
syminfo.tickerid,
tws_htf_timeframe,
ta.ema(close, tws_htf_slow_length) ,
barmerge.gaps_off,
barmerge.lookahead_on
)
━━━━━━━━━━━━━━━━━━━━━━
🛡️ Position Architecture
ATR Calculation Length
Controls ATR calculation.
Stop Placement Model
Selects Gap-Protected Stop or Volatility Stop.
Volatility Stop Multiplier
Controls ATR stop distance from entry.
Gap Stop Buffer — ATR
Controls the protective distance beyond the FVG.
Minimum Stop Distance %
Prevents extremely narrow risk zones.
TP1 Risk Multiple
Controls the first target distance.
TP2 Risk Multiple
Controls the second target distance.
TP3 Risk Multiple
Controls the final target distance.
TP1 Position Share %
Controls the internal visual share assigned to TP1.
TP2 Position Share %
Controls the internal visual share assigned to TP2.
TP3 Position Share %
Controls the internal visual share assigned to TP3.
Move Stop to Entry After TP1
Moves the active stop to entry after TP1 according to confirmed lifecycle rules.
Same-Candle Priority
Selects Protective First or Target First.
━━━━━━━━━━━━━━━━━━━━━━
🎨 Chart Design
Color System
Selects Obsidian Signal, Carbon Grid, Ivory Pulse, Neon Voltage, Acid Circuit, or Violet Flux.
Gap Display Mode
Selects Hidden, Selected Gap, or All Active Gaps.
Show Executed FVG Retests
Shows or hides the FVG zone used by a confirmed trade model.
Display TP / SL Areas
Shows or hides the reward and risk boxes.
Keep Completed Trade Areas
Keeps completed model boxes and lines.
Completed Trade History Limit
Controls the maximum historical visual models.
Active Area Projection
Controls the initial right-side projection length.
Chart Layout
Selects Desktop or Mobile.
Signal Label Size
Selects Micro, Compact, Standard, or Large.
Dashboard Size
Selects Micro, Compact, or Standard.
Display Bias EMA
Shows or hides the confirmed HTF fast EMA reference.
Display Setup Dashboard
Shows or hides the bottom-right dashboard.
━━━━━━━━━━━━━━━━━━━━━━
📡 Alert Center
Alert Package
Selects Off, Qualified Entries, Premium Entries, Full Lifecycle, or Webhook JSON.
Alert Direction
Selects Both Directions, Bullish Only, or Bearish Only.
Minimum Alert Grade
Selects All Qualified, A / A+, or A+ Only.
Alert When FVG Is Armed
Enables armed-zone alerts for compatible packages.
Alert When Stop Moves to Entry
Enables breakeven-activation alerts for compatible packages.
━━━━━━━━━━━━━━━━━━━━━━
🧠 WHAT MAKES THIS SCRIPT ORIGINAL
━━━━━━━━━━━━━━━━━━━━━━
FVG Retest Entry Engine uses familiar analytical concepts such as:
• Fair Value Gaps
• swing-point structure
• BOS and CHoCH
• ATR
• volume analysis
• DI / ADX
• higher-timeframe EMA bias
• risk/reward projection
• staged targets
• breakeven management
These concepts are not unique by themselves.
The originality of this script lies in how they are organized into a transparent FVG retest workflow:
Structure confirmation
→ directional FVG memory
→ contextual candidate comparison
→ selected armed zone
→ configurable retest validation
→ reaction-quality evaluation
→ optional volume, DI, and HTF checkpoints
→ setup grading
→ confirmed-close entry commitment
→ three-target visual management
→ optional breakeven movement
→ completed FVG Retest archiving
→ Blocker Lens state reporting
→ Passport explanation
→ lifecycle alerts
Distinctive implementation features include:
• structure-linked FVG selection instead of signaling every gap
• multiple Engine Style profiles
• Original Sync market calibrations
• an armed-zone state before entry
• candidate ranking using several FVG characteristics
• multiple retest models
• a visible reason when an entry is waiting or blocked
• a Passport explaining accepted setup context
• confirmed-close permanent signal commitment
• previous-completed HTF values
• executed FVG zone preservation
• three-stage target management
• Desktop and Mobile display modes
• alert filtering separated from chart calculations
This structure is designed to provide a focused and explainable review process without relying on hidden prediction claims.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT PRACTICAL NOTES
━━━━━━━━━━━━━━━━━━━━━━
The script’s behavior depends heavily on settings and market conditions.
Signal frequency and visual output may change based on:
• Engine Style
• structure sensitivity
• close-based or wick-based breaks
• break momentum requirements
• minimum FVG width
• displacement filtering
• candidate-score threshold
• previous zone interactions
• FVG lifetime
• retest model
• reaction-strength threshold
• retest delay
• setup expiry
• volume filter settings
• DI / ADX settings
• HTF timeframe and EMA lengths
• minimum setup grade
• stop model
• target multiples
• signal cooldown
• timeframe
• symbol volatility
• market session
• available historical bars
A setting that appears clean on one market may behave differently on another.
A profile that produces suitable frequency on one timeframe may be too strict or too active on another.
Volume behavior can differ across asset classes and data providers.
Higher-timeframe filtering only operates as intended when the selected bias timeframe is genuinely higher than the chart timeframe.
Users should test the exact symbol, timeframe, profile, and session they personally study.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ LIMITATIONS AND SHORTCOMINGS
━━━━━━━━━━━━━━━━━━━━━━
This script has important limitations:
It does not guarantee profitable trades.
It does not predict future price movement.
It does not replace risk management.
It does not execute trades.
It does not place broker orders.
It does not include broker slippage.
It does not include commissions.
It does not include spreads.
It does not include execution delay.
It does not include partial-fill behavior.
It uses bar-based chart data.
Same-candle TP / SL order cannot be known from standard OHLC data.
Same-Candle Priority is a modeling assumption.
Live Preview can change intrabar because the realtime candle is unfinished.
Permanent entry models are committed only after bar close.
Confirmed pivots require future bars before becoming available as confirmed swing points.
The dashboard is not PulseWire Strategy Tester.
The internal target-share model is not account-performance reporting.
Historical boxes and completed labels do not guarantee similar future behavior.
Setup grades are internal classifications, not win probabilities.
Filter settings do not guarantee improved future results.
Higher-timeframe values depend on selected timeframe and available data.
Data-feed revisions or chart-history differences can affect historical calculations.
Alert delivery depends on PulseWire and the user’s alert configuration.
Webhook delivery also depends on the external destination.
One-active-trade logic is a visual management rule, not broker execution logic.
For these reasons, FVG Retest Entry Engine should be used as an educational decision-support and chart-analysis tool, not as a standalone automated trading strategy.
━━━━━━━━━━━━━━━━━━━━━━
👤 WHO THIS SCRIPT MAY BE USEFUL FOR
━━━━━━━━━━━━━━━━━━━━━━
This script may be useful for traders who:
• study Fair Value Gap retests
• use BOS and CHoCH context
• prefer selected FVGs instead of every raw gap
• want a visible armed-zone workflow
• want to understand why a setup is waiting or blocked
• prefer confirmed-close entries
• want a setup-grade framework
• want Entry, SL, TP1, TP2, and TP3 visualization
• want optional breakeven behavior
• want completed FVG Retest models preserved visually
• use higher-timeframe directional context
• want mobile-friendly chart presentation
• use lifecycle alerts for monitoring
• want a structured educational analysis framework
It may be less suitable for users who:
• want guaranteed buy/sell signals
• want a fully automated trading bot
• want every raw FVG to create an entry
• expect one profile to work on every market
• expect grades to represent guaranteed probability
• require exact tick-level execution simulation
• expect visual projections to match broker fills
• expect alerts to execute trades automatically
• want an indicator to replace independent decision-making
━━━━━━━━━━━━━━━━━━━━━━
🧭 BEST PRACTICE SUGGESTIONS
━━━━━━━━━━━━━━━━━━━━━━
For cleaner review:
• Start with Original Sync or Balanced Flow.
• Keep Signal Timing on Confirmed Close.
• Use Selected Gap to reduce chart clutter.
• Enable Blocker Lens while learning the engine workflow.
• Use Compact Passport for concise context.
• Use Detailed Passport when reviewing why a setup qualified.
• Review the armed FVG before the entry appears.
• Check whether the FVG retest agrees with personal market-structure analysis.
• Evaluate the displayed stop against nearby structure and volatility.
• Treat TP1, TP2, and TP3 as planning references only.
• Keep Protective First when a conservative same-candle assumption is preferred.
• Use Precision Flow when fewer, stricter setups are preferred.
• Use Fast Flow only after understanding its higher signal frequency.
• Use Custom Lab only after learning how each threshold affects the engine.
• Use Mobile layout on smaller screens.
• Use alerts for monitoring, not blind execution.
• Always apply independent analysis, risk management, and position sizing.
━━━━━━━━━━━━━━━━━━━━━━
🔓 PUBLICATION NOTE
━━━━━━━━━━━━━━━━━━━━━━
FVG Retest Entry Engine is published as an educational and visual market-analysis tool.
The purpose of this description is to explain:
• what the script does
• how structure events are confirmed
• how three-candle FVGs are detected
• how FVGs are stored and invalidated
• how structure and FVG candidates are linked
• how an FVG becomes armed
• how retest models work
• how reaction quality is evaluated
• how volume, DI / ADX, and HTF checkpoints operate
• how setup grades are assigned
• how Confirmed Close and Live Preview differ
• how Entry and stop levels are calculated
• how TP1, TP2, and TP3 are projected
• how breakeven and same-candle assumptions work
• how active and completed trade areas behave
• what the Passport and Blocker Lens show
• what the dashboard displays
• what the alert packages do
• what the limitations are
• how the indicator should and should not be used
The script is designed to support structured analysis.
It does not promise profitable results.
It does not remove market risk.
It does not execute trades.
It should not be used as a blind buy/sell system.
It is best used as a visual framework for reviewing structure-linked FVG retests and projected risk/reward behavior.
━━━━━━━━━━━━━━━━━━━━━━
🛡️ DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━
FVG Retest Entry Engine is provided for educational and informational purposes only.
It does not constitute financial, investment, trading, legal, or tax advice.
No indicator can guarantee future results.
Markets are uncertain, conditions change, and historical behavior does not ensure future performance.
Every user is responsible for their own analysis, validation, risk management, position sizing, alert configuration, trading decisions, and broker execution.
The structure labels, FVG zones, armed-zone states, Passport values, Blocker Lens messages, grades, scores, entry references, stop-loss levels, take-profit levels, TP / SL boxes, dashboard values, completed-model labels, and alerts are visual analysis tools only.
Use this script as a structured decision-support and visual review framework, not as a promise of profitability or a substitute for independent judgment.
Indicator

PA Intraday SetupsPA Intraday Setups — Publication Description
OVERVIEW
PA Intraday Setups is a heuristic execution assistant for discretionary intraday price-action traders. Instead of generating a single buy/sell arrow, it watches the chart for eleven of the most common Brooks-style price-action setups and labels each one as it confirms — so you can keep your eyes on structure and let the indicator handle the pattern-recognition bookkeeping.
It is built around one idea: context first, setup second. The script continuously classifies the market into trend / range / wide-channel / always-in context, and only fires a setup when the context that setup requires is actually present. This mirrors how a discretionary trader thinks — "what is the market doing right now, and is this a setup I'm allowed to take?"
This is NOT a fully automated strategy and NOT a signal service. It is an education-and-discipline tool: it shows you where a textbook setup exists, draws suggested entry / stop / target guide lines, and stays silent everywhere else.
WHAT IT DETECTS
The eleven setups are grouped exactly the way a price-action trader files them — by order type and market context.
PART 1 — BREAKOUT SETUPS (stop entries beyond a signal bar)
1. TREND PULLBACK H2 / L2 — In a confirmed trend (and only after a strong breakout or tight channel, not inside a broad channel), a clean two-legged counter-trend pullback whose signal bar closes in the trend direction.
2. BREAK-FAIL-BREAK — A failed breakout that re-breaks the same level within a few bars (default 3). Confirms the breakout direction after trapping the first movers.
3. KEY-LEVEL STRUCTURE REVERSAL — A reversal off a key level that coincides with a recognizable structure: double top/bottom, wedge, head-and-shoulders, or an inside/outside-bar (OB/IB) signal bar.
PART 2 — LIMIT SETUPS (limit entries at a pre-marked price)
4. RANGE HIGH / LOW LIMIT FADE — Inside a balanced range, fade the prior high/low back toward the middle with a fixed risk.
5. WIDE-CHANNEL POINT 3 FADE — A counter-channel limit fade at the third touch ("Point 3") of a wide channel.
6. TREND 50% PULLBACK — In a strong trend, a limit entry at the 50% retrace of the most recent impulse leg, provided the pullback stays weak (no three consecutive strong counter-trend bars).
7. TRUE-BREAKOUT TRAPPED PULLBACK — After a genuine breakout holds, a with-trend limit entry on the retest that traps the counter-side. Requires a strong breakout bar AND a strong follow-through bar; dojis or weak bodies disqualify it.
PART 3 — ALWAYS-IN / STRONG-TREND SETUPS
8. L1 / H1 FAILURE — In an always-in trend, the first counter-trend attempt fails at the prior with-trend follow-through extreme.
9. THIRD-BAR FAILURE — A counter-trend attempt that fails to print a third consecutive counter-trend bar, faded in the trend direction.
10. EMA20 PULLBACK — The first pullback to the EMA in an always-in trend, entered with-trend near the moving average.
11. TREND BREAKOUT SCALP — A with-trend strong-body breakout bar (close beyond the 50% mark) taken as a quick scalp with an ATR-based target.
The script also prints INVALIDATION and FORCED-EXIT labels (e.g. an H2 that turns into a reversal bar, a 50%/trapped/EMA setup that breaks its premise, or three consecutive counter-trend bars against an open trend) so you can see when a setup is voided.
CONTEXT LABELS
When enabled, the indicator drops a small label the moment the market context changes, so you always know which "regime" you're in:
CTX Range — balanced, mean-reverting range (use the Limit setups)
CTX AI Long / CTX AI Short — always-in long/short, a strong directional regime
CTX Wide Ch Up / CTX Wide Ch Dn — wide channel, where Point 3 fades live
TRADE GUIDES
For each confirmed setup the script can draw three short guide lines projected to the right:
Entry (dotted) — the stop-order or limit price
Stop (solid red) — the protective stop
Target (dashed green) — a fixed reward based on the configurable RR or an ATR multiple
These are suggestions for visual reference only — they are not orders and do not account for slippage, spread, or your own risk rules.
SETTINGS
SESSION
Optional trading session + timezone. When off, the script treats every bar as active and resets session stats daily.
GENERAL
EMA length (default 20), ATR length (14), trend lookback, range/breakout lookback, pivot strength.
THRESHOLDS (the heart of the tool)
Strong-bar body %, max entry-side tail %, doji body %, near-key/near-EMA buffers (in ATR), minimum trend move / closes-on-side / efficiency, range width & overlap, wide-channel width & overlap, break-fail-break window, trapped-pullback window, structure confirm window, impulse lookback, ATR scalp target multiple, default RR. Tighten these for fewer / cleaner signals; loosen for more.
MANUAL KEY LEVELS
Up to four price levels you type in yourself (e.g. overnight high/low, a daily pivot). Setups that depend on "key levels" will respect these in addition to the auto-detected prior-session H/L/C, session open, range extremes, and EMA.
DISPLAY
Toggle the EMA plot, context labels, trade guides, invalidation labels, range lines, and manual-level lines; set guide-line length.
SETUPS
Independent on/off switch for each of the eleven setups, so you can run only the ones that fit your style.
HOW TO USE
1. Add the indicator and pick your timeframe (designed for intraday — e.g. 1m–15m on index futures, FX, or liquid stocks).
2. Decide your context. Watch the CTX labels: trend regimes favor the breakout and always-in setups; range regimes favor the limit fades.
3. Mark your own key levels in the Manual Key Levels group — the quality of the key-level setups depends heavily on good levels, and no algorithm marks them as well as you do.
4. Turn off the setups you don't trade. Most traders do better with three or four setups than with all eleven.
5. Use the guide lines as a starting point, then size and place your real orders by your own risk plan.
6. Optionally create alerts — there is one alert per setup, plus aggregate "any long setup / any short setup / forced exit / invalid" alerts.
IMPORTANT NOTES & LIMITATIONS
This is an APPROXIMATION. Setups that a human reads from key levels, channels, wedges, head-and-shoulders and channel "Point 3" are estimated here using pivots, EMA/ATR context, prior ranges and your manual levels. It will sometimes label a setup you would skip, and skip one you would take.
Labels confirm on bar close (barstate.isconfirmed). They do not repaint after a bar closes, but live bars can change until close.
Thresholds are general-purpose defaults. Different instruments and timeframes need retuning — treat the Thresholds group as your edge, not a fixed recipe.
No setup is a recommendation. Discretion, context, and risk management remain entirely yours.
OPEN SOURCE
Published open-source under the Mozilla Public License 2.0. You are free to study, fork and improve it. If you build on it, a link back is appreciated.
Built by @WuDaiChuan
DISCLAIMER
This script is for educational and informational purposes only. It is not financial advice and not a recommendation to buy or sell any instrument. Trading involves substantial risk of loss. Past behavior of any setup does not guarantee future results. Test thoroughly on a demo account and trade your own plan.
Indicator

PA Intraday Setups v0.1.0# PA Intraday Setups — Publication Description
---
## OVERVIEW
PA Intraday Setups is a heuristic execution assistant for discretionary intraday
price-action traders. Instead of generating a single buy/sell arrow, it watches the
chart for eleven of the most common Brooks-style price-action setups and labels each
one as it confirms — so you can keep your eyes on structure and let the indicator
handle the pattern-recognition bookkeeping.
It is built around one idea: **context first, setup second.** The script continuously
classifies the market into trend / range / wide-channel / always-in context, and only
fires a setup when the context that setup requires is actually present. This mirrors
how a discretionary trader thinks — "what is the market doing right now, and is this a
setup I'm allowed to take?"
This is NOT a fully automated strategy and NOT a signal service. It is an
education-and-discipline tool: it shows you where a textbook setup exists, draws
suggested entry / stop / target guide lines, and stays silent everywhere else.
---
## WHAT IT DETECTS
The eleven setups are grouped exactly the way a price-action trader files them — by
order type and market context.
PART 1 — BREAKOUT SETUPS (stop entries beyond a signal bar)
1. TREND PULLBACK H2 / L2 — In a confirmed trend (and only after a strong breakout
or tight channel, not inside a broad channel), a clean two-legged counter-trend
pullback whose signal bar closes in the trend direction.
2. BREAK-FAIL-BREAK — A failed breakout that re-breaks the same level within a few
bars (default 3). Confirms the breakout direction after trapping the first movers.
3. KEY-LEVEL STRUCTURE REVERSAL — A reversal off a key level that coincides with a
recognizable structure: double top/bottom, wedge, head-and-shoulders, or an
inside/outside-bar (OB/IB) signal bar.
PART 2 — LIMIT SETUPS (limit entries at a pre-marked price)
4. RANGE HIGH / LOW LIMIT FADE — Inside a balanced range, fade the prior high/low
back toward the middle with a fixed risk.
5. WIDE-CHANNEL POINT 3 FADE — A counter-channel limit fade at the third touch
("Point 3") of a wide channel.
6. TREND 50% PULLBACK — In a strong trend, a limit entry at the 50% retrace of the
most recent impulse leg, provided the pullback stays weak (no three consecutive
strong counter-trend bars).
7. TRUE-BREAKOUT TRAPPED PULLBACK — After a genuine breakout holds, a with-trend
limit entry on the retest that traps the counter-side. Requires a strong breakout
bar AND a strong follow-through bar; dojis or weak bodies disqualify it.
PART 3 — ALWAYS-IN / STRONG-TREND SETUPS
8. L1 / H1 FAILURE — In an always-in trend, the first counter-trend attempt fails at
the prior with-trend follow-through extreme.
9. THIRD-BAR FAILURE — A counter-trend attempt that fails to print a third
consecutive counter-trend bar, faded in the trend direction.
10. EMA20 PULLBACK — The first pullback to the EMA in an always-in trend, entered
with-trend near the moving average.
11. TREND BREAKOUT SCALP — A with-trend strong-body breakout bar (close beyond the
50% mark) taken as a quick scalp with an ATR-based target.
The script also prints INVALIDATION and FORCED-EXIT labels (e.g. an H2 that turns
into a reversal bar, a 50%/trapped/EMA setup that breaks its premise, or three
consecutive counter-trend bars against an open trend) so you can see when a setup is
voided.
---
## CONTEXT LABELS
When enabled, the indicator drops a small label the moment the market context
changes, so you always know which "regime" you're in:
- CTX Range — balanced, mean-reverting range (use the Limit setups)
- CTX AI Long / CTX AI Short — always-in long/short, a strong directional regime
- CTX Wide Ch Up / CTX Wide Ch Dn — wide channel, where Point 3 fades live
---
## TRADE GUIDES
For each confirmed setup the script can draw three short guide lines projected to the
right:
- Entry (dotted) — the stop-order or limit price
- Stop (solid red) — the protective stop
- Target (dashed green) — a fixed reward based on the configurable RR or an ATR
multiple
These are suggestions for visual reference only — they are not orders and do not
account for slippage, spread, or your own risk rules.
---
## SETTINGS
SESSION
- Optional trading session + timezone. When off, the script treats every bar as
active and resets session stats daily.
GENERAL
- EMA length (default 20), ATR length (14), trend lookback, range/breakout lookback,
pivot strength.
THRESHOLDS (the heart of the tool)
- Strong-bar body %, max entry-side tail %, doji body %, near-key/near-EMA buffers
(in ATR), minimum trend move / closes-on-side / efficiency, range width & overlap,
wide-channel width & overlap, break-fail-break window, trapped-pullback window,
structure confirm window, impulse lookback, ATR scalp target multiple, default RR.
Tighten these for fewer / cleaner signals; loosen for more.
MANUAL KEY LEVELS
- Up to four price levels you type in yourself (e.g. overnight high/low, a daily
pivot). Setups that depend on "key levels" will respect these in addition to the
auto-detected prior-session H/L/C, session open, range extremes, and EMA.
DISPLAY
- Toggle the EMA plot, context labels, trade guides, invalidation labels, range
lines, and manual-level lines; set guide-line length.
SETUPS
- Independent on/off switch for each of the eleven setups, so you can run only the
ones that fit your style.
---
## HOW TO USE
1. Add the indicator and pick your timeframe (designed for intraday — e.g. 1m–15m on
index futures, FX, or liquid stocks).
2. Decide your context. Watch the CTX labels: trend regimes favor the breakout and
always-in setups; range regimes favor the limit fades.
3. Mark your own key levels in the Manual Key Levels group — the quality of the
key-level setups depends heavily on good levels, and no algorithm marks them as
well as you do.
4. Turn off the setups you don't trade. Most traders do better with three or four
setups than with all eleven.
5. Use the guide lines as a starting point, then size and place your real orders by
your own risk plan.
6. Optionally create alerts — there is one alert per setup, plus aggregate "any long
setup / any short setup / forced exit / invalid" alerts.
---
## IMPORTANT NOTES & LIMITATIONS
- This is an APPROXIMATION. Setups that a human reads from key levels, channels,
wedges, head-and-shoulders and channel "Point 3" are estimated here using pivots,
EMA/ATR context, prior ranges and your manual levels. It will sometimes label a
setup you would skip, and skip one you would take.
- Labels confirm on bar close (`barstate.isconfirmed`). They do not repaint after a
bar closes, but live bars can change until close.
- Thresholds are general-purpose defaults. Different instruments and timeframes need
retuning — treat the Thresholds group as your edge, not a fixed recipe.
- No setup is a recommendation. Discretion, context, and risk management remain
entirely yours.
---
## OPEN SOURCE
Published open-source under the Mozilla Public License 2.0. You are free to study,
fork and improve it. If you build on it, a link back is appreciated.
---
## DISCLAIMER
This script is for educational and informational purposes only. It is not financial
advice and not a recommendation to buy or sell any instrument. Trading involves
substantial risk of loss. Past behavior of any setup does not guarantee future
results. Test thoroughly on a demo account and trade your own plan. Indicator

Inducement Engine Liquidity Targets [MarkitTick]💡 The financial markets operate as a continuous auction process, constantly seeking liquidity to facilitate large transactions. We have developed a comprehensive analytical tool designed to systematically map these liquidity zones, specifically focusing on the concept of inducement (IDM). This tool tracks market structure in real-time, identifying areas where market participants are structurally trapped, and highlights the subsequent liquidity sweeps that often precede significant directional moves. By mapping these pivot points and applying stringent confluence filters, we provide a structured approach to analyzing price action without relying on lagging, derivative-based oscillators.
✨ Originality and Utility
Standard structural tools often map higher highs and lower lows but fail to categorize the internal liquidity that resides between these structural bounds. Our tool distinguishes itself by isolating inducement points—short-term swing highs or lows that form within an active leg of market structure.
Instead of treating all pivots equally, we categorize them based on their relationship to the overarching trend. Furthermore, this tool does not simply plot historical data; it actively tracks pending liquidity pools and waits for their invalidation to derive actionable zones.
This utility is enhanced by a built-in risk management engine that dynamically calculates entry, stop loss, and multiple take profit voids based on market volatility, offering a complete, end-to-end framework directly on the chart. The integration of volume volatility, exhaustion profiling, and structural imbalances creates a unified, logical system rather than an arbitrary assembly of unrelated indicators.
🔬 Methodology and Concepts
● The Mechanics of Inducement
Market Structure Tracking: We utilize an advanced, non-repainting pivot identification algorithm that maps confirmed structural highs and lows. This establishes the primary directional bias and prevents the plotting of unconfirmed future data.
Pending Liquidity Generation: When an internal pivot forms within the established structural range, it is categorized as a pending inducement point. These represent areas where early market participants place stop losses, creating pools of concentrated liquidity.
The Liquidity Sweep: The core engine monitors price action for the precise moment these inducement points are breached. A sweep indicates that the pending liquidity has been consumed, providing the fuel required for a potential reversal or trend continuation.
Multi-Layered Confluence: A sweep alone is insufficient for validation. We evaluate the trigger against several strict conditions. We require alignment with a higher timeframe trend, ensuring we trade with the dominant macro flow. We also measure volatility against a moving baseline to filter out low-momentum chop.
Exhaustion and Imbalance: Finally, we assess the structural integrity of the move by checking for price exhaustion through rejection wicks and the presence of underlying fair value gaps (FVGs) that validate the momentum.
🎨 Visual Guide
● Chart Elements
Pending IDM Lines: Dotted lines projecting horizontally from internal pivots. These represent untouched liquidity pools waiting to be swept.
IDM Sweep Labels: Distinct visual markers displaying "IDM ↑" and "IDM ↓". These appear exactly when price sweeps a pending liquidity level, signaling a potential reaction.
Entry Zones (Black Boxes): A solid, dark zone originating at the trigger point, highlighting the exact entry threshold for the setup.
Stop Loss Zones (Red Boxes): A colored zone delineating the maximum risk threshold, visually adapting to the current structural invalidation point and volatility padding.
Take Profit Voids (Blue/Cyan Boxes): A series of progressively lighter colored zones representing Take Profit 1, 2, and 3. These voids illustrate the projected risk-to-reward extensions based on the initial risk profile.
Target Lines: Horizontal dashed and dotted lines projecting the exact price levels for the entry, stop loss, and multiple take profit targets.
● The Live Dashboard
Header: Displays the active ticker and timeframe configuration.
Bias: Indicates the overarching structural trend (Bullish, Bearish, or Neutral).
Last IDM: Shows the direction of the most recently swept liquidity pool.
Coordinates: Displays the exact numerical price levels for Entry, TP1, TP2, TP3, and SL.
Duration Tracking: Tracks the exact number of bars since the last confirmed Bull or Bear IDM sweep, offering a measure of setup maturity.
Pending Count: A live counter of the currently active, untouched inducement points on the chart.
📖 How to Use
Observe the dashboard to determine the active market bias and monitor the creation of pending IDM levels.
Wait for price action to sweep a pending IDM line. The appearance of an IDM sweep label serves as the primary catalyst.
Verify that the dashboard registers the setup, meaning all selected smart filters (Time, HTF, Volatility, FVG) are aligned.
Utilize the dynamically plotted Entry, Stop Loss, and Take Profit boxes to structure your position sizing and risk profile.
The projected target voids can be used to manage risk or scale out of positions sequentially as price moves into higher extensions.
Avoid using this indicator in sideways market conditions to prevent false entries.
⚙️ Inputs and Settings
● Core Configuration
Swing Length: Adjusts the sensitivity of the pivot detection. Higher values filter noise, identifying more significant structural points.
ATR Length: Modifies the lookback period for volatility calculations used in risk mapping.
Max IDM Memory: Controls the historical limit for tracking untouched liquidity pools.
● Entry and Risk Parameters
ATR-Adaptive SL: When enabled, we pad the structural stop loss with an average true range multiplier to account for market noise.
ATR SL Mult: Defines the precise multiplier used for the adaptive padding.
Target Multipliers (TP1, TP2, TP3): Defines the precise risk-to-reward ratios for the sequential take-profit voids.
Line Toggles: Independent toggles to show or hide the Entry, Stop Loss, and Target lines to keep the chart clean.
● Smart Filters
Session Time Filter: Restricts signal generation to specific trading windows, avoiding low-liquidity periods.
HTF Trend Alignment: Enforces agreement with a moving average calculated on a higher timeframe.
HTF Timeframe & Length: Configures the resolution and period for the higher timeframe trend filter.
FVG Confluence: Requires a recent fair value gap to validate the momentum behind the setup.
Rejection Quality: Filters setups ensuring the trigger bar closes with distinct rejection characteristics.
Volatility Chop Filter: Suppresses setups when current volatility is below its historical average.
● Visuals and Alerts
Color Configurations: Extensive user-defined color inputs for Bull/Bear markers, Entry Fills, Target zones, and text elements.
Webhook Actions: Dedicated string inputs to format dynamic alert payloads, allowing seamless integration with third-party execution platforms.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
Auction Market Theory: Our architecture is deeply rooted in Auction Market Theory, which postulates that price discovery relies on the continuous search for liquidity. By mapping inducement, we are effectively modeling the algorithmic search for counter-party volume. Markets move from areas of high liquidity to low liquidity, and tracking these pools provides a probabilistic edge.
Mean Reversion within Structural Bounds: The identification of internal sweeps relies on statistical mean reversion. When price deviates aggressively to sweep a pivot, it creates a temporary state of overextension. The subsequent reaction is a reversion to the mean of the macro structure, propelled by the trapped liquidity that was just consumed.
Volatility-Adjusted Risk Modeling: The integration of the Average True Range (ATR) for stop-loss padding utilizes basic heteroskedasticity principles. Financial time series exhibit volatility clustering; by padding risk dynamically, the model adapts to the current state of market variance rather than relying on static, arbitrary tick values that fail in highly volatile environments.
Volume Spread and Exhaustion: The rejection filter incorporates elements of Volume Spread Analysis. A sweep accompanied by price rejection signifies absorption—a scenario where the effort to push price beyond a level is met with overwhelming counter-force, statistically validating the structural trap.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Kivra Liquidity Nodes [JOAT]Kivra Liquidity Nodes
Introduction
Kivra Liquidity Nodes is an open-source right-edge volume profile that finds high-participation price areas inside a configurable lookback window. It distributes each bar's volume across price rows, smooths the result, highlights the point of control, and labels local liquidity nodes.
The problem it solves is volume context. A raw profile can show where trading occurred, but it often becomes visually heavy. Kivra Liquidity Nodes keeps the profile compact, separates bullish and bearish participation estimates, and prioritizes POC, value area, and node labels. The profile is offset to the right of price, while the lookback range and value area remain visible on the active chart so the levels have context.
Core Concepts
1. Price-Overlap Volume Allocation
Each bar contributes volume to every row it overlaps. This makes the profile more representative than assigning all volume to a single close price.
2. Participation Split
The script estimates bullish and bearish participation from candle direction and close location inside the bar range. This is a proxy designed for visual context, not bid/ask delta.
3. Smoothed Node Detection
Profile rows are smoothed with neighboring rows. Local peaks above an average-volume threshold become liquidity nodes.
4. Value Area Expansion
The value area expands from the POC until the selected portion of total profile volume is covered.
5. Context Bands and Candle Tinting
The script shades the full lookback range, marks the value area across the live price region, draws node bands across the profiled window, prints VAH/VAL and POC labels far to the right of the profile to avoid overlap, and can tint candles using a pressure blend from trend location and candle direction.
Features
Right-edge profile: Clean horizontal profile projected to the right of the chart
POC line and label: Dashed level marking the highest-volume row
POC line and label: Dashed level marking the highest-volume row with price and row volume
VAH and VAL labels: Right-edge value-area high and low labels with dotted guide lines
Value area boxes: Shaded profile zone plus live-chart value band across the lookback
Lookback range box: Subtle range boundary around the profiled window
Bull/bear split bars: Row coloring estimates directional participation
Node labels: Local high-volume nodes with participation share and volume
Node bands: High-participation node rows project back across the profiled price window
Offset label rail: POC, VAH/VAL, and node labels are projected beyond the histogram so they do not sit on top of the profile
Pressure candle tint: Candles can be softly colored from bearish red to bullish green using trend location and candle direction
No-volume fallback: Uses range proxy when reliable volume is not available
Top-right dashboard: POC, node count, value area width, bias, range, and source
Input Parameters
Calculation:
Lookback Bars: Historical bars used for the profile
Profile Rows: Vertical resolution of the profile
Profile Width: Maximum right-edge width
Profile Offset: Distance from current bar to the profile
Value Area Portion: Portion of total profile volume included in value area
Node Threshold: Required row strength for node detection
Node Merge Gap: Distance allowed between merged node peaks
Max Node Labels: Maximum labels drawn for detected nodes
How to Use This Indicator
Step 1: Use the POC as the dominant participation level in the current lookback.
Step 2: Use the value area to understand where volume is concentrated.
Step 3: Watch VAH and VAL as acceptance/rejection boundaries.
Step 4: Watch labeled nodes as potential reaction or acceptance zones.
Step 5: Read the dashboard bias and candle tint as context, not as standalone entry signals.
Indicator Limitations
Bull/bear participation is an estimate based on candle structure, not exchange bid/ask data
The profile is recalculated on the latest bar and depends on the selected lookback
High node count can add visual density on small screens
Volume data quality varies by market and symbol
Originality Statement
Kivra Liquidity Nodes is original in its compact right-edge implementation combining overlap-based volume allocation, smoothed node detection, value area expansion, participation split visualization, and no-volume fallback logic. It does not copy third-party source code.
Disclaimer
This open-source indicator is provided for educational and informational purposes only. It is not financial advice. Volume nodes identify historical participation zones and do not guarantee future reactions.
-Made with passion by jackofalltrades
Indicator

Smart Trader, Episode 07, ICS Geometric Buyers/Sellers Pressure🔶 Overview
ICS Geometric Buyer/Seller Pressure measures the real-time balance between buying and selling forces through a geometric framework built on triangle areas. Rather than relying on volume, oscillators, or moving-average crossovers, this indicator constructs two right triangles on every bar — one representing seller pressure above the current price, one representing buyer pressure below it — and computes their areas inside a normalized coordinate system called the Isotropic Coordinate System (ICS).
The ICS transforms raw price and time into a dimensionless plane using Yang-Zhang composite volatility as the scaling factor. Because both axes are divided by the same volatility estimate, the resulting triangle areas carry no unit — they are pure geometric ratios. This makes the pressure reading comparable across any instrument, any timeframe, and any price scale, without the trader needing to adjust parameters when switching charts.
From these two normalized areas, the indicator derives a single metric called B, which condenses the entire buyer-versus-seller balance into a value between −1 and +1. B is then converted into intuitive percentage readings (Red % for seller dominance, Blue % for buyer dominance) and visualized through a gradient barometer column, a triangle fan overlay, and data-window plots ready for alerts.
🔶 Conceptual framework
To measure the real-time balance between buying and selling forces, this indicator takes a geometric approach rather than relying on volume analysis, oscillator divergences, or moving-average crossovers. Two right triangles are constructed on every bar — one above the current price toward the range ceiling, one below toward the range floor — and their areas are compared to determine which side of the market currently dominates.
Computing triangle areas in raw price-versus-time coordinates, however, introduces a structural problem: the same price movement produces a different geometric shape depending on the chart's zoom level, time compression, or display resolution. A 30-point rally on a compressed weekly chart creates a steep, narrow triangle; the identical rally on a stretched intraday chart creates a flat, wide one. The areas differ even though the underlying market event is the same.
To eliminate this distortion, the indicator applies a normalization layer referred to here as the Isotropic Coordinate System (ICS). The principle behind it is dimensional analysis — a well-established technique in physics and engineering for removing unit-dependent artifacts from measurements. The horizontal axis (time) is rescaled by dividing bar offsets by sigma, and the vertical axis (price) is rescaled by dividing the natural logarithm of price by the same sigma. Because both axes share the same divisor, the resulting coordinate plane is isotropic: triangle areas reflect only the structural relationship between price and range boundaries, not how the chart happens to be displayed.
The sigma used for this normalization is the Yang-Zhang (2000) composite volatility estimator, a published academic method (Journal of Business, Vol. 73, No. 3). It combines three independent variance components — overnight (close-to-open), intraday (open-to-close), and the Rogers-Satchell high-low-close estimator — into a single unbiased measure with minimum-variance weighting. This makes sigma robust across instruments with overnight gaps (equities, futures) and those that trade continuously (forex, crypto).
The practical result: the normalization layer adapts to the volatility regime of each instrument, making triangle areas structurally comparable across different charts and timeframes and reducing the need for manual recalibration when switching instruments.
🔶 The B metric: from triangle geometry to a single number
The core output of this indicator is a single value called B, which captures the instantaneous buyer-versus-seller balance in one dimensionless number.
Picture any bar on your chart. The indicator draws two right triangles around it. The upper triangle sits between the bar's high and the range ceiling: its three vertices are (1) the current bar's high, (2) the range ceiling at the current bar, and (3) the range ceiling at the prime-offset bar, 101 bars back. This triangle represents seller territory — the geometric "room" that sellers occupy above the current price. The lower triangle mirrors this below: its vertices are the current bar's low, the range floor at the current bar, and the range floor at that same prime-offset bar. This is buyer territory — the room below the current price. The larger the seller triangle relative to the buyer triangle, the more the market is tilted toward selling pressure, and vice versa.
Why prime-numbered offsets?
The indicator uses the first 25 prime numbers (3, 5, 7, 11, ... 97, 101) as its sampling offsets. Prime numbers share no common factors with each other or with any periodic cycle in the data. When a signal is sampled at evenly spaced intervals (e.g. every 10, 20, 30 bars), there is a risk that the sampling grid locks onto a periodic pattern in the price — a weekly cycle, an options expiration rhythm, or any recurring structure — and either amplifies or masks it. This is a form of harmonic aliasing. Prime offsets avoid this: because no prime is a multiple of any other, the sampling set {3, 5, 7, ... 101} is maximally non-periodic, ensuring that each offset captures a structurally independent slice of the price range.
Two roles: measurement and visualization
For the B calculation itself, only the widest triangle is used — the one anchored at prime offset 101. This single pair of triangles (upper and lower) captures the broadest structural pressure across the entire lookback window. The remaining 24 primes serve a visual role: they generate the triangle fan overlay you see on the chart. But this visual layer is not merely decorative. Each triangle in the fan maps a pressure boundary at a different time horizon.
As the screenshot above illustrates, candles that approach the red triangle edges tend to encounter resistance and reverse — the fan effectively draws a multi-scale map of where selling pressure intensifies. The blue fan does the same for buyer pressure below. Taken together, the fan gives the trader a spatial reading of how pressure distributes across shorter and longer horizons.
A notable property observed during testing across multiple instruments and timeframes: regardless of triangle size or lookback period, B consistently produces values within the bounded range of -1 to +1. This is not a coincidence — it is a mathematical consequence of the symmetric ratio formula that derives B from the two triangle areas.
The formula
Both triangle areas are first computed using the Shoelace formula — a standard computational geometry method that yields the exact area of any polygon from its vertex coordinates. Then B is derived through a symmetric ratio:
r1 = A_hi / A_lo r2 = A_lo / A_hi B = (r1 - r2) / (r1 + r2)
When the seller triangle is much larger than the buyer triangle (A_hi >> A_lo), r1 grows large while r2 shrinks, and B approaches +1. When buyer pressure dominates, B approaches -1. When both areas are equal, B = 0 — balanced pressure. The formula is symmetric by construction, meaning it treats buyer and seller sides with identical mathematical weight.
Percentage conversion
To make B immediately readable on the chart, the indicator converts it into two percentage values:
Red % = (B + 1) x 50 seller dominance, scale 0 to 100
Blue % = (1 - B) x 50 buyer dominance, scale 0 to 100
Red % and Blue % always sum to 100. They are available in the Data Window for any bar and are exposed as alert-ready plots, allowing traders to set threshold-based alerts (e.g. "Red % crosses above 80") directly from PulseWire's alert builder, without writing any code.
🔶 Features at a glance
🔸 Gradient barometer — A vertical column rendered to the right of the last bar. It splits the effective range into a red (seller) zone and a blue (buyer) zone, with the dividing line set by B. The gradient fades from full opacity at the split point to near-transparent at each range boundary, giving an immediate visual sense of which side is dominant and by how much.
🔸 Prime triangle fan — 25 filled triangles (one per prime offset from 3 to 101) overlaid on the chart. Upper triangles are colored red (seller pressure), lower triangles blue (buyer pressure). Together they form a fan that maps pressure intensity across multiple time horizons simultaneously. Optional dashed outlines can be enabled for each side independently.
🔸 Range lines with price labels — Horizontal lines marking the effective high and low of the lookback window. Each line carries a price label placed to the left of the range start. When the channel is frozen (see Freeze/Revival below), a snowflake icon (❄) appears on the labels.
🔸 Diamond markers and prime labels — At each prime-offset bar, a diamond marker is placed at both the range ceiling and the range floor. The corresponding prime number is displayed above the ceiling diamond, providing a visual ruler of the sampling structure.
🔸 Freeze / Revival system — When a confirmed close breaches the range boundary, the mother channel freezes and a child channel is born on the breach side. The child computes its own pressure metric (B'), and when the opposing force inside the child reaches a user-defined threshold, the mother channel revives. This mechanism tracks regime transitions without discarding the prior range context. A dedicated label at the breach candle shows the child's B' value in real time.
🔸 Live and Closed display modes — "Live" updates tick by tick using the current bar's data. "Closed" anchors all calculations on the last confirmed bar, eliminating intra-bar noise for traders who prefer signal stability.
🔸 Data Window and alert-ready plots — Three invisible plots (Red %, Blue %, raw B) are exposed in the Data Window and available for PulseWire's alert condition builder. Traders can create threshold, crossover, or crossing alerts on any of these values without writing Pine Script.
🔸 Full visual customisation — Every visual element (triangle fill colors, line colors, diamond size, text size, barometer width, barometer offset, gradient steps) is independently configurable through the indicator's settings panel.
🔶 Deep dive: the barometer
The barometer is a vertical gradient column displayed to the right of the last bar on the chart. Its purpose is to translate the abstract B value into a shape that the eye can read instantly: a column split into a red zone (seller pressure) on top and a blue zone (buyer pressure) on the bottom.
The column spans the full effective range — from rangeLow at the bottom to rangeHigh at the top. The split point between red and blue is not placed at the midpoint of the range. Instead, it is calculated directly from B:
yMid = rangeHigh − (B + 1) × range / 2
When B = 0 (balanced), yMid sits at the exact center of the range. When B approaches +1 (full seller dominance), yMid drops toward the range floor, making the red zone fill nearly the entire column. When B approaches −1 (full buyer dominance), yMid rises toward the range ceiling, and the blue zone dominates.
The gradient is rendered using a configurable number of boxes (default: 50). In the red zone, opacity is strongest near yMid and fades to near-transparent at rangeHigh. In the blue zone, opacity is strongest near yMid and fades toward rangeLow. This creates a natural "heat" effect: the most intense color always concentrates at the boundary where the two forces meet.
At the top and bottom of the column, percentage labels display the Red % and Blue % values. These are the same percentages available in the Data Window, presented here as a quick visual reference.
The barometer responds to the selected display mode. In "Live" mode, it updates on every tick using the current bar's B value. In "Closed" mode, it uses the B computed from the last confirmed bar, providing a stable reading that does not flicker with intra-bar price movement.
Barometer settings
🔸 Show barometer — Toggle the entire barometer on or off. Default: on.
🔸 Offset (bars right) — How far to the right of the last bar the column is placed. Default: 11. Increase this if the barometer overlaps with other right-margin elements.
🔸 Width (bars) — The horizontal thickness of the column, measured in bars. Default: 5.
🔸 Gradient steps — The number of boxes used to render the gradient. Higher values produce a smoother fade. Default: 50.
🔶 Deep dive: the prime triangle fan
The triangle fan is the indicator's signature visual element. It renders 25 filled triangles on the chart — one for each prime offset from 3 to 101 — fanning out from the current bar toward the left side of the lookback window. Upper triangles are shaded red (seller pressure) and lower triangles are shaded blue (buyer pressure), each with high transparency so the underlying candlesticks remain clearly visible.
Every triangle in the fan shares two of its three vertices with the current bar: the bar's high (for upper triangles) or the bar's low (for lower triangles), and the corresponding range boundary at that bar. The third vertex sits at the range boundary at the prime-offset bar. Because each prime offset is a different distance back in time, the triangles vary in width — the smallest is narrow and captures very short-term pressure, while the largest stretches across the full lookback and captures the broadest structural picture.
Reading the fan as a pressure map
The fan functions as a multi-scale pressure map. Each triangle edge represents a boundary where one side's territory begins. When price approaches a cluster of red triangle edges from below, it is entering a zone where seller pressure intensifies across multiple time horizons simultaneously. The denser the overlap of red edges at a given price level, the stronger the structural resistance at that level. The same logic applies in reverse for blue edges and buyer support.
This is visible in practice: candles that push into the red fan often stall or reverse at the triangle boundaries, while candles that drop into the blue fan tend to find support. The fan gives the trader a spatial sense of how much room each side has — a wide blue zone with thin red edges suggests buyers have structural space to move, and vice versa.
Color flipping during freeze
When the Freeze/Revival system is active and price moves beyond the frozen range boundary, the triangle colors on the breached side flip to reflect the new structural reality.
Consider a downward breach: price closes below the frozen rangeLow and continues falling. The lower triangles — which normally appear blue to represent buyer territory — switch to red. This signals that what was once the buyer's domain has been structurally penetrated; the geometry now measures selling pressure extending below the old floor. At the same time, the upper triangles remain red as they always are, and because the distance between the current price and the frozen rangeHigh has grown dramatically, the seller area expands. The visual result: the entire fan turns uniformly red, reflecting overwhelming seller dominance across every time horizon in the fan.
The mirror case works identically. During an upward breach, price closes above the frozen rangeHigh and continues rising. The upper triangles flip from red to blue, signaling that seller space has been penetrated from below. The lower triangles remain blue, and because the gap between the current price and the frozen rangeLow is now vast, buyer area dominates. The entire fan turns uniformly blue, reflecting overwhelming buyer dominance.
The color flip is automatic and requires no user intervention. It is driven entirely by the relationship between the current price and the frozen boundaries — when price returns inside the frozen range, colors revert to their normal assignment.
Diamond markers and prime labels
At each prime-offset bar, the indicator places diamond-shaped markers at both the range ceiling and the range floor. Above the ceiling diamond, the prime number itself is displayed as a label. These markers serve as a visual ruler: they show the trader exactly where each sampling point falls in time and make the non-periodic spacing of the primes immediately visible on the chart.
Fan settings
🔸 Show lower triangle lines / Show upper triangle lines — Toggle dashed outlines for each side. Default: off. When enabled, the outlines make individual triangle edges more distinct, which can be helpful when reading overlapping edges at specific price levels.
🔸 Lower / Upper line color — Stroke color for the dashed outlines.
🔸 Lower / Upper fill color — Fill color and transparency for the triangle bodies. Default: high transparency so candles remain readable.
🔸 Show vertical lines — Draws a vertical line at each prime-offset bar. Default: off.
🔸 Show prime labels — Displays the prime number and diamond at each offset. Default: on.
🔸 Diamond color / Diamond size — Visual styling for the diamond markers.
🔸 Label text size — Font size for the prime number labels.
🔸 Deep dive: Freeze / Revival
Markets do not stay inside ranges forever. When price breaks out, most range-based indicators simply reset and start a new range from scratch, discarding whatever structural context existed before the breakout. The Freeze/Revival system takes a different approach: it preserves the prior range as a frozen reference while simultaneously tracking the new regime that emerges beyond it.
How a freeze is triggered
A freeze occurs when a confirmed close — not a wick, not an intra-bar spike — breaches the effective range boundary. The indicator compares the previous bar's close against the range that existed one bar before it, so the breach signal is fully confirmed and cannot repaint. Once a breach is detected:
🔸 The mother channel freezes — its high and low are locked at the values they held just before the breach.
🔸 A child channel is born on the breach side. For an upward breach, the child's floor is the frozen rangeHigh and its ceiling expands with each new high. For a downward breach, the child's ceiling is the frozen rangeLow and its floor drops with each new low.
🔸 A snowflake icon (❄) appears on the range price labels, and the triangle colors flip as described in the section above.
The child channel and B'
While the mother channel is frozen, the child channel computes its own independent pressure metric called B'. B' uses the same ICS triangle formula as the mother's B, but measured against the child's own boundaries. This means B' tracks the buyer/seller balance exclusively inside the new regime — the territory beyond the old range.
A dedicated label appears at the breach candle showing the current B' value, converted to the percentage of the opposing force. For a downward breach, the label displays the buyer percentage inside the child; for an upward breach, it displays the seller percentage. This tells the trader how much counter-pressure is building inside the breakout zone.
B' as a structural overbought / oversold reading
When B' shows a very low opposing-force percentage shortly after a breach, the breakout side is structurally dominant — price has moved aggressively beyond the old range with minimal resistance. This condition is analogous to what traders call an overbought or oversold state, but derived from geometry rather than from momentum oscillators. The reading reflects the spatial imbalance between the two forces inside the child channel: one side occupies nearly all the geometric territory.
As time passes, if the opposing force gradually builds — the B' percentage climbs — it signals that the breakout is losing its structural one-sidedness. The market is beginning to rebalance inside the new territory. Watching B' evolve over successive bars gives the trader a real-time gauge of whether the breakout retains its structural conviction or is approaching exhaustion.
Revival: when does the freeze end?
The freeze lifts when the opposing force inside the child channel reaches a user-defined threshold (default: 50%). At that point, the indicator interprets this as the exhaustion of the breakout: the force that drove the breach is being met by equal or greater counter-pressure. The freeze is lifted, all freeze state is reset, and the mother channel resumes normal range tracking. The snowflake icons, B' label, and color flips are removed.
The revival threshold is configurable. A lower value makes the system more sensitive — it revives sooner, treating even moderate counter-pressure as a regime reset. A higher value makes it more patient — it waits for stronger opposition before releasing the freeze. The default represents balanced equilibrium: the freeze ends when the opposing side has matched the breach side.
Why this matters
The Freeze/Revival cycle gives the trader a structured way to observe regime transitions. Rather than watching a range silently reset after a breakout, the trader sees the old range preserved as context (frozen lines with ❄), the new regime measured in real time (B' at the breach candle with its overbought/oversold implication), and a clear signal when the transition is complete (revival). This makes it possible to distinguish between a genuine regime change and a brief spike that reverts — without relying on arbitrary time delays or fixed-bar re-entry rules.
🔸 Reading the indicator
This indicator does not generate buy or sell signals. It is a measurement tool that quantifies the geometric balance between buyer and seller pressure. How that measurement is incorporated into a trading decision is entirely up to the trader. The following observations describe what the indicator shows, not what the trader should do.
The barometer as a quick-glance gauge
The barometer provides the fastest reading. A column dominated by red indicates that seller pressure is structurally larger than buyer pressure across the lookback window. A column dominated by blue indicates the reverse. When the split point sits near the center, pressure is approximately balanced. Watching how the split point migrates over successive bars reveals whether the pressure balance is shifting gradually or remaining stable.
The fan as a spatial context layer
The triangle fan adds spatial depth to the barometer's single-number reading. While the barometer tells you the current balance, the fan shows you where that balance is concentrated in price space. Areas where multiple triangle edges converge represent zones of intensified pressure — structural resistance above (red edges) or structural support below (blue edges). When price trades inside a region with sparse triangle coverage, it has more structural room to move before encountering the next pressure boundary.
Freeze events as regime markers
When a freeze occurs, it marks a structural event: price has left the established range. The frozen lines (marked with ❄) preserve the old context, and B' at the breach candle provides a real-time measure of how one-sided the new regime is. A very low opposing-force reading in B' indicates a structurally extended condition — the breakout side has occupied nearly all geometric territory. As B' climbs toward the revival threshold, it indicates increasing counter-pressure. The moment of revival itself marks the point where the new regime's one-sidedness has been structurally neutralized.
Combining readings
The three visual layers — barometer, fan, and freeze state — work together. For example, a barometer showing strong seller dominance combined with a fan whose red edges are densely clustered near the current price suggests concentrated structural resistance. If a freeze is also active with a low B', the structural picture is one of strong directional conviction on the breach side. Conversely, a barometer near balance with widely spaced fan edges and no active freeze suggests a structurally neutral environment.
Data Window and alerts
The Red %, Blue %, and raw B values are available in PulseWire's Data Window for any bar by hovering over it. These same values are exposed as alert-ready plots, meaning traders can set alerts directly from PulseWire's alert builder — for example, triggering when Red % crosses above or below a chosen level, or when B crosses zero. No Pine Script knowledge is required to create these alerts.
🔸 Open-source structure and reusability
This script is published open-source under the Mozilla Public License 2.0. The full computation pipeline — the Yang-Zhang volatility estimator, the ICS coordinate transformation, the Shoelace area calculation, and the symmetric ratio that produces B — is readable, auditable, and reusable.
B is a bounded output: it always falls between −1 and +1, carries no unit, and is computed from normalized geometry. These properties make it suitable as an input for other scripts. Examples of how B can serve as input to further analysis include:
🔸 Plotting B as a standalone oscillator with its own zero line and structural extremes.
🔸 Applying moving averages of different periods to B and studying their crossovers as indicators of shifting pressure regimes.
🔸 Using B as a weighting coefficient to scale other measurements by the current geometric pressure balance.
🔸 Comparing B across timeframes, since the ICS normalization makes the metric structurally comparable regardless of the chart resolution.
🔸 Testing for divergences between B and price action.
🔸 Using B as a filter condition for entry or exit logic in other strategies.
The code is available for study and extension under MPL 2.0. Traders and developers who wish to build on this metric have full access to its derivation.
🔸 Settings reference
Range Lines
🔸 Lookback length — Number of historical bars used to compute the high/low range. Default: 101.
🔸 Line width — Pixel width of the horizontal range lines. Default: 1.
🔸 Display mode — "Live" updates tick by tick using the current bar. "Closed" anchors on the last confirmed bar, eliminating intra-bar noise. Default: Live.
ICS
🔸 ICS Window — Number of bars fed into the Yang-Zhang volatility estimator. Controls how much historical data shapes the normalization sigma. Default: 101.
Prime Verticals and Labels
🔸 Show vertical lines — Draws a vertical line at each prime-offset bar. Default: off.
🔸 Show prime labels — Displays the prime number and diamond marker at each offset. Default: on.
🔸 Vertical line color — Color for vertical lines at prime offsets.
🔸 Diamond color — Color of diamond markers and their labels.
🔸 Label text size — Font size for prime number labels, in points.
🔸 Diamond size — Size of the diamond-shaped markers, in points.
Prime Triangles
🔸 Show lower triangle lines — Toggle dashed outlines for lower (buyer) triangles. Default: off.
🔸 Show upper triangle lines — Toggle dashed outlines for upper (seller) triangles. Default: off.
🔸 Lower line color — Stroke color for lower triangle dashed outlines.
🔸 Upper line color — Stroke color for upper triangle dashed outlines.
🔸 Lower fill color — Fill color and transparency for lower (buyer) triangle bodies.
🔸 Upper fill color — Fill color and transparency for upper (seller) triangle bodies.
Barometer
🔸 Show barometer — Toggle the barometer column on or off. Default: on.
🔸 Offset (bars right) — Horizontal distance from the last bar to the barometer column. Default: 11.
🔸 Width (bars) — Horizontal thickness of the barometer column. Default: 5.
🔸 Gradient steps — Number of boxes used to render the gradient. Higher values produce a smoother fade. Default: 50.
Freeze and Revival
🔸 Revival threshold (B') — When the opposing force inside the child channel reaches this percentage, the freeze ends and the mother channel resumes. A lower value revives sooner; a higher value waits for stronger counter-pressure. Default: 50.
🔸 Disclaimer
This indicator is a technical analysis tool designed for educational and informational purposes. It measures the geometric balance between buyer and seller pressure using the methodology described above. It does not predict future price movements, does not guarantee any outcome, and does not constitute financial, investment, or trading advice.
The B metric, the barometer, the triangle fan, and the Freeze/Revival system are structural measurements derived from historical price data. Like all technical indicators, they reflect past and present conditions and carry inherent limitations. Market conditions can change rapidly, and no single measurement tool can account for all factors that influence price.
Traders should use this indicator as one component within a broader analytical framework, always in combination with their own research, risk management practices, and judgment. Past performance of any reading or pattern observed through this indicator is not indicative of future results.
Use this tool at your own risk. The author assumes no liability for any trading decisions made based on the information provided by this indicator. Indicator

Smart Money Concept: Liquidity Sweep [MarkitTick]💡 The Smart Money Concept: Liquidity Sweep is an advanced technical suite engineered for precision algorithmic trading and comprehensive market analysis.
this unified market intelligence hub tracks major market participant footprints by analyzing liquidity raids, structural shifts, and fair value gaps.
It operates strictly on confirmed data to ensure zero lookahead bias, making it an authoritative tool for quantitative analysts and disciplined traders who demand rigorous data integrity.
This system provides a complete and deterministic view of price action, abstracting complex market mechanics into clear, actionable signals.
Every module within this script has been optimized for minimal execution overhead while maximizing analytical depth.
● ✨ Originality and Utility
Unlike generic structure indicators that simply plot highs and lows, this tool integrates a proprietary Confluence Score Dashboard and a robust Liquidity Sweep Filter.
It does not merely react to price crossing a level; it evaluates the nature of the interaction, distinguishing between genuine market structure shifts and manipulative liquidity sweeps orchestrated by large-cap market participants.
By unifying ten distinct analytical modules into a single, performance-optimized architecture, it provides a complete and cohesive trading ecosystem without cluttering the chart.
These modules range from Order Block mitigation tracking to Session Kill Zones and Premium/Discount mapping, ensuring all aspects of price action are covered.
Furthermore, it is explicitly built for automation, seamlessly generating strictly formatted JSON payloads for direct routing to external execution platforms like PineConnector or 3Commas.
These JSON webhooks dynamically calculate and transmit precise Entry, Take Profit, and Stop Loss parameters strictly utilizing format.mintick string conversions.
● 🔬 Methodology and Concepts
The core engine operates on a multi-dimensional analysis framework, utilizing advanced market mechanics to decode price delivery algorithms:
• Fractal Market Structure
The script mathematically identifies key swing points to establish dynamic structural ranges.
It accurately tracks the active trend and flags both Break of Structure (BOS) and Change of Character (CHoCH) events based on confirmed price closes.
This ensures that the underlying trend logic is grounded in true market conviction rather than momentary volatility.
• Liquidity Engineering
The engine actively monitors previous pivot extremes for sweep conditions.
This ensures that entries are backed by strategic liquidity harvesting from large-volume entities, rather than falling for premature breakouts or retail traps.
• Multi-Timeframe Alignment
The indicator employs a higher-timeframe variance filter to gauge the overarching trend direction.
It utilizes offset data arrays with strict lookahead protection to ensure a strictly non-repainting bias confirmation across multiple chart periods.
• Inefficiency Mapping
The algorithm detects and maintains active Fair Value Gaps (FVG) and structural Inducements (IDM).
It dynamically mitigates and clears these zones from the chart as price action naturally rebalances the market inefficiency, keeping the visual workspace clean.
● 🎨 Visual Guide
The script provides a clean, highly actionable visual hierarchy directly on the chart to minimize cognitive load:
Structure Candles:
Candlesticks are dynamically colored to reflect the current internal state.
They are painted Cyan during confirmed bullish structural trends and Magenta during confirmed bearish trends.
Structural Lines and Labels:
Dashed lines project horizontally from broken swing points.
These lines are explicitly annotated with BOS or CHoCH labels indicating the exact direction and type of structural shift that occurred.
Zone Fills (Boxes):
Support and Resistance Zones: Cyan and Magenta boxes highlight active bullish and bearish Order Blocks (OB). Mitigated blocks dynamically change to a muted gray color to reduce visual noise.
Premium and Discount Zones: When enabled, the active structural range is divided into a Magenta Premium zone, a white Equilibrium line, and a Cyan Discount zone.
FVG Zones: Transparent graphical fills indicate unmitigated Fair Value Gaps waiting for price rebalancing.
Session Kill Zones: Highlighted backgrounds map the Asian (Orange), London (Gold), and New York (Green) active trading windows for temporal confluence.
Inducement Labels:
Yellow IDM tags mark minor pullbacks that have been successfully swept, confirming liquidity capture.
Confluence Dashboard:
A dynamic text label appears precisely at the point of signal generation.
It displays an aggregate score from 0 to 5, color-coded Green for High Confluence, Orange for Medium, or Red for Low.
A detailed hover-tooltip breaks down the active filters contributing to the score.
● 📖 How to Use
To maximize the utility of this robust tool, traders should seek alignment across multiple internal analytical modules:
Establish Context:
Begin by utilizing the Session Kill Zones and Premium/Discount areas to frame the current market environment.
Ideal long setups originate deep within the Cyan Discount zone during active London or New York trading hours.
Identify Liquidity Capture:
Wait patiently for a confirmed liquidity sweep or the breaking of an Inducement (IDM) level.
This validates that major market operators have accumulated positions and trapped counter-trend traders.
Confirm the Shift:
Monitor the chart for a valid BOS or CHoCH signal backed by the Confluence Score Dashboard.
A score of 4 or 5 indicates exceptionally high alignment between HTF bias, liquidity sweeps, market gaps, and session timing.
Execution and Risk:
Upon signal generation, the script automatically plots the optimal entry point.
It also calculates a dynamic ATR-based Stop Loss and a predefined Risk/Reward-based Take Profit.
These exact price coordinates are simultaneously broadcast via the automated JSON alert webhook for seamless execution.
● ⚙️ Inputs and Settings
The suite is highly customizable, divided into logical control groups for rapid configuration:
• Market Structure
Adjust the Swing Length sensitivity to filter out market noise and define the exact target Risk/Reward Ratio for automated signal generation.
• Visuals
Granular control is provided over all interface colors, including specific toggles for dynamic candle coloring and user-configurable zone opacities.
• Toggleable Filter Modules
Ten individual toggles allow users to enable or disable specific algorithmic engines, including:
① Liquidity Sweep Filter
② HTF Bias Filter (with customizable resolution)
③ Premium / Discount Zone
④ Session Kill Zones
⑤ Fair Value Gap Engine
⑥ Inducement Detection
⑦ MSS Body Confirmation (requires full body closes for valid structure breaks)
⑧ ATR-Adaptive SL (with custom length and standard deviation multiplier)
⑨ OB Mitigation Tracker
⑩ Confluence Score Dashboard
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The algorithmic foundation of this analytical suite is firmly anchored in Auction Market Theory and variance-adjusted statistical modeling.
At its core, the indicator rejects the standard premise of random walk price action, instead modeling the financial market as a highly efficient, liquidity-seeking mechanism.
By mathematically isolating structural extremes and standardizing pivot lengths, the engine calculates the probability of order flow absorption versus trend continuation.
The script analyzes the temporal decay of market inefficiencies, specifically mapping how quickly Fair Value Gaps are rebalanced by subsequent price delivery.
The inclusion of an ATR-adaptive risk model ensures that stop-loss parameters expand and contract proportionally to current market variance.
This utilizes average true range standard deviations to normalize volatility, preventing premature stop-outs during periods of high structural stress.
Furthermore, the proprietary Confluence Score relies on a multi-variate Boolean matrix.
This matrix synthesizes time-domain variables (Session Zones), spatial distribution metrics (Premium/Discount mapping), and momentum vectors (HTF Bias) into a singular, quantized metric of setup validity.
This deterministic mathematical approach removes subjective bias, relying purely on the physics of price delivery, volume distribution, and order flow imbalance.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Indicator

BIST30 TARAYICI⚠️ ÖNEMLİ: EKRAN TEMİZLİĞİ (GİZLEME NOTU)
Bu tarayıcı, tüm parametreleri ayarlardan değiştirmenize imkan tanıdığı için PulseWire bu isimleri ekranın sol üstünde uzun bir liste olarak gösterir. Bu görüntü kirliliğini engellemek için:
**Grafiğe sağ tıklayın -> Ayarlar -> Durum Çizgisi** sekmesine gidin ve gösterge isminin yanındaki **"Argümanlar"** kutucuğunun tikini kaldırın.
BİST 30 Tarayıcı
Bu panel, BİST30 hisselerini anlık trend döngüleri, Price Action (Fiyat Hareketi) formasyonları ve yüksek zaman dilimli (HTF) Fibonacci hedefleri üzerinden tarayan profesyonel bir analiz istasyonudur.
**⚠️ YASAL UYARI:** *Bu gösterge matematiksel bir algoritmadır; algoritma doğru olmayabilir; kodlama hatası olabilir bu nedenle kesinlikle yatırım tavsiyesi (YTD) niteliği taşımaz. Kararlarınızı kendi risk yönetiminize göre almalısınız.*
---
1. Sinyal ve Statü Mantığı (Nasıl Çalışır?)
Sistem, bir hissenin yükseliş karakterini 4 farklı evrede takip eder:
NÖTR (Gri):** Hisse genel düşüş trendindedir veya ortalamaların altındadır. "İzleme, enerjini harcama" mesajıdır.
TREND (Soluk Yeşil):** Hisse sağlıklı bir yükseliş trendine girmiştir (EMA 5 > 8 > 13). Yön yukarıdır ancak yeni giriş için fiyat çok yükselmiş olabilir.
PUSU (Sarı):** **Stratejinin Kalbi!** Trend yukarıyken fiyatın kâr satışlarıyla "İndirim/Destek" bölgesi olan EMA 8'e gerilediği aşamadır. Avcının pusuya yatıp onay beklediği yerdir.
AL - (Parlak Yeşil):** **Tetik Çekme Zamanı!** Hisse pusu bölgesindeyken alıcıların güç gösterdiğini kanıtlayan şu formasyonlardan biri oluşmuştur:
AL-Star :Sabah Yıldızı (En Güvenilir Dönüş).
AL-Eng :Yutan Boğa (Güçlü Alıcı Onayı).
AL-Har :İç Mum (Sıkışma ve Patlama Hazırlığı).
AL-Pin :Pin Bar/Çekiç (Alt İğneyle Fiyat Reddi).
AL-Doj :Doji (Kararsızlığın Alıcı Lehine Bitmesi).
2. Destek ve Dirençler (Hedef Zaman Dilimi)
Tablodaki **D1-D5** seviyeleri, ayarlardan seçtiğiniz üst periyoda (Örn: Günlük) göre hesaplanır. Sütun başlıklarındaki parantez içi etiketler (D, W, 60 vb.) hangi hedefleri izlediğinizi gösterir.
**Mantık:** Seçilen üst periyodun önceki günkü High-Low (En Yüksek-En Düşük) farkı baz alınır.
**Hedef:** Bu fark Fibonacci altın oranlarıyla çarpılarak potansiyel kâr al bölgelerini (D1'den D5'e) belirler.
3. Algoritma Derinliği ve Parametreler
Sistem, piyasa gürültüsünü filtrelemek için üçlü bir emniyet mekanizması kullanır:
* **Trend Tescili (EMA 13):** En yavaş ortalamadır. Fiyat bu seviyenin altındaysa sistem asla "AL" vermez; bu sizi düşen bıçağı tutmaktan korur.
* **Dinamik Hassasiyet (ATR):** "Pusu" bölgesi sabit bir çizgi değildir. Ayarlardaki **ATR Periyodu** ve **Pusu Hassasiyeti**, hissenin kendi oynaklığına göre desteğe ne kadar yaklaşınca sinyal vereceğini belirler. (Standart: ATR 14 / Hassasiyet %0.2).
* **Onay Mekanizması:** Sinyaller periyot kapanışıyla (Örn: 20dk mum kapanışı) netleşir. Bu, anlık iğnelerin sizi yanıltmasını engeller.
4. Stratejik Kullanım Önerisi
1. **Filtre:** Sadece fırsatları görmek için **"Sadece Fırsatları Göster"**i işaretleyin.
2. **Hazırlık:** SARI (Pusu) statüsündeki hisseleri izleme listenize alın.
3. **Aksiyon:** Statü PARLAK YEŞİL (AL) olduğunda işleme girin.
4. **Kâr Al:** Tablodaki **D1, D2 ve D3** seviyelerini kademeli satış hedefleri olarak takip edin.
5. **Disiplin:** Statü tekrar GRI (Nötr) statüsüne dönerse, bu teknik olarak trendin veya desteğin kırıldığı anlamına gelir; manuel stop veya pozisyon kapatma için bir uyarıdır.
**⚠️ YASAL UYARI:** *Bu gösterge matematiksel bir algoritmadır; algoritma doğru olmayabilir; kodlama hatası olabilir bu nedenle kesinlikle yatırım tavsiyesi (YTD) niteliği taşımaz. Kararlarınızı kendi risk yönetiminize göre almalısınız.*
Indicator

Thermal Candlestick Spectrogram [Jamallo]The Thermal Candlestick Spectrogram replaces flat, binary candlesticks with a heat-mapped view of price density. Every bar radiates outward from a white-hot core through layers of orange, red, and deep amber — the same way thermal imaging reveals intensity beneath a surface. The result is a chart that doesn't just show you what price did, it shows you how concentrated that move was.
How It Works
A 7-layer gradient stack is anchored to each candle's midpoint and expands symmetrically toward the edges of the body. Transparency increases with each outer layer, creating a natural falloff that mimics heat dissipation:
White-yellow core — maximum density at the center of the body
Orange-red mantle — transitional layers that reveal the spread of price action
Dark outer boundary — a near-transparent edge that lets candles breathe without hard lines
Fading wicks — a dual-layer vertical fade that tapers wicks naturally toward the High and Low extremes, reducing visual noise
Anti-aliased price dot — a precision close marker with a subtle white halo for clean real-time tracking
Design & Performance
The entire effect runs on a fixed 9-plot architecture (7 body layers + 2 wick layers), keeping script weight low and render performance stable even alongside other indicators. No dynamic loops, no repainting — just a clean, deterministic stack that works across all timeframes and instruments.
Visual Comparison
Traditional flat candles vs. the Thermal Spectrogram — same data, entirely different depth. Indicator

[ A L P H A X ] Prism Price Action Institutional FlowAlphaX Prism — Price Action × Key Levels × Institutional Flow | Confluence Engine, Smart Entry/Exit Signals & Multi-Factor Confidence Scoring
AlphaX Prism is a professional-grade price action and confluence trading system that fuses three powerful analytical dimensions into a single, cohesive overlay indicator: automatic Key Level detection, real-time Price Action pattern recognition, and Institutional Footprint tracking. Every signal is governed by a 10-factor confluence scoring engine and a weighted confidence percentage system — so only high-quality, structurally valid setups reach your chart. Designed for traders who want clean, context-aware signals rooted in market structure rather than lagging oscillators.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Three Pillars of AlphaX Prism
AlphaX Prism operates across three simultaneous analytical layers, each feeding into the central confluence engine:
I. Key Level Engine — Automatic Support & Resistance Detection
The Key Level engine automatically identifies, tracks, and manages the most significant support and resistance zones on your chart using swing pivot detection. Rather than drawing static lines, AlphaX Prism builds intelligent zones that evolve as price interacts with them.
How the Key Level engine works:
Swing Pivot Detection — identifies significant highs and lows using a configurable swing length parameter
Zone Merging — nearby levels within a configurable ATR-based threshold are merged into a single consolidated zone, preventing level clutter
Touch Counting — each zone tracks how many times price has interacted with it. Zones below the minimum touch threshold appear in neutral gray; confirmed zones flip to color-coded support (yellow-green) or resistance (red)
Zone Age Management — zones older than a configurable bar count are automatically retired and removed, keeping your chart focused on relevant levels only
Dynamic Extension — all zones and lines extend to the right edge of the chart in real time
Key Level signals feed directly into the confluence engine and generate specific condition flags:
Price at Support — price is currently trading within a confirmed support zone
Price at Resistance — price is currently trading within a confirmed resistance zone
Bounce from Support — price touched support and closed bullish with a meaningful body — the highest-value condition for long setups
Rejection from Resistance — price touched resistance and closed bearish with a meaningful body — the highest-value condition for short setups
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
II. Price Action Pattern Engine — What the Candles Are Saying
AlphaX Prism recognizes five core price action patterns in real time, each validated with additional filters to reduce false triggers:
Bullish / Bearish Engulfing
A bullish candle that fully engulfs the prior bearish candle (or vice versa), with a meaningful body ratio and a candle range above a minimum ATR threshold. Engulfing patterns receive the highest PA score in the confluence engine and trigger a dedicated marker on the chart when occurring at a key level or in the direction of the established trend.
Bullish / Bearish Pin Bar
A candle with a wick at least 2.5× the body length, where the wick is significantly larger than the opposing wick, and the close is in the upper or lower half of the candle's range respectively. The candle must meet a minimum ATR size threshold to qualify.
Inside Bar Breakout
When a candle is fully contained within the prior candle's range (inside bar), the next candle breaking out above or below that range — with a directional close and a meaningful body — triggers an inside bar breakout marker. A controllable toggle allows you to enable or disable this pattern type independently.
Momentum Shift (3-Bar Reversal)
Two consecutive candles in one direction followed by a third candle that breaks the prior candle's extreme and closes with a body ratio above 0.5. This pattern captures short-term momentum reversals within the context of a broader structure.
Strong Directional Candle
A candle with a body ratio above 0.65 and a body size exceeding the average body — used as a supplementary structural signal within the confluence engine.
Pattern markers are context-filtered — they only appear when occurring at a key level, aligned with the trend structure, or accompanied by a bounce/rejection confirmation. This eliminates random pattern signals in the middle of nowhere.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
III. Institutional Footprint — Tracking Large Money Flow
Retail price action alone does not tell the full story. AlphaX Prism tracks two types of institutional activity that are invisible to most traders:
Institutional Candles — Directional Large-Body Moves
A bullish or bearish candle whose body exceeds the 20-bar average body by a configurable multiplier (default: 1.8×)
Volume exceeds the moving average by a configurable multiplier (default: 1.3×)
Body ratio above 0.55, with a close in the upper or lower third of the range — confirming directional conviction
These appear as bright colored dots at the bottom of the chart (yellow-green for bull, red for bear)
Absorption Candles — Hidden Accumulation and Distribution
A large wick (more than 2× the body) with high volume — indicating large orders absorbing supply or demand without a visible directional body
The wick must be at least 1.5× larger than the opposing wick, and the candle range must exceed the ATR minimum
These appear as dimmer dots at the bottom of the chart — subtler activity, but often a precursor to a directional move
Volume Spikes — when high volume occurs without an institutional candle pattern, a neutral gray dot appears — flagging elevated participation without clear directional conviction.
Institutional activity feeds into the confluence engine and acts as a significant signal amplifier when aligned with price action and key levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Two Signal Layers
AlphaX Prism produces two distinct signal types, each serving a specific role in the trade lifecycle:
1 ─ Entry Signals (▲ / ▼)
Entry signals are generated when the confluence engine determines that enough independent factors are aligned simultaneously. A bullish entry (▲) or bearish entry (▼) label appears offset from the bar with a dotted connector line for visual clarity.
Entry signals require ALL of the following to fire:
Confluence score meets or exceeds the minimum threshold (default: 4 out of 10 factors)
A qualifying Price Action pattern is present
A structural reason exists (key level, institutional candle, or trend context)
The candle is clean — not overextended, not at an RSI extreme, and with a meaningful body
ADX confirms a trending environment (not a ranging, directionless market)
Signal cooldown has elapsed since the last signal
When both bull and bear conditions trigger simultaneously, the higher-confluence side wins. If scores are equal, no signal fires — tie goes to caution.
2 ─ Exit Signals (✕)
Exit signals fire after an entry signal has been established and a reversal condition develops. They are filtered by the same cooldown as entries to prevent rapid oscillation.
Long Exit — price reaches a resistance zone and a bearish engulfing forms, or the trend shifts down with price below the medium EMA and MACD bearish, or an institutional selling candle closes below the fast EMA, or RSI is overbought with a bearish pattern
Short Exit — the inverse of the above conditions for a long exit
Exit signals indicate that the momentum behind the current trade is deteriorating. Use them to take partial or full profit, or to tighten your stop loss ahead of a potential reversal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 10-Factor Confluence Scoring System
Every bar is evaluated against ten independent confluence factors — each one a separate reason to consider a trade. Only setups where enough factors align simultaneously are displayed.
The 10 Confluence Factors:
1. Key Level — price is bouncing from support or rejecting resistance (highest weight)
2. Price Action Pattern — any qualifying PA pattern is present
3. Strong Pattern Bonus — engulfing or momentum shift (higher-conviction PA types)
4. Institutional Activity — institutional candle or absorption present in signal direction
5. Trend Structure — swing-based trend direction (HH/HL or LL/LH) aligns with signal
6. MACD Momentum — MACD line above/below signal line and histogram expanding in signal direction
7. RSI Alignment — RSI slope rising/falling within the mid-range zone (not extreme)
8. RSI Divergence — price makes a new extreme but RSI does not confirm, signaling exhaustion
9. Volume — current volume exceeds the moving average in the signal direction
10. EMA Alignment — fast, medium, and slow EMAs are stacked in the signal direction, or price is positioned correctly relative to the 200 EMA
The score (0–10) is displayed in the dashboard alongside a weighted confidence percentage (0–100%) and a letter grade (D through A+).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Weighted Confidence Engine
In addition to the 10-factor binary confluence score, AlphaX Prism computes a weighted confidence percentage that assigns different point values to each factor based on its structural importance.
Bull / Bear Confidence Scoring Breakdown:
Bounce from Support / Rejection from Resistance — up to 18 points (the single most important condition in price action trading)
Price at Key Level without confirmed bounce/rejection — 12 points
PA Pattern Type — Engulfing: 14 pts | Momentum Shift: 12 pts | Pin Bar: 10 pts | Inside Bar Break: 8 pts
Institutional Candle — 12 points | Absorption: 8 points
Trend Structure Aligned — 10 points | Structural confirmation only: 6 points
MACD Momentum — both line and histogram aligned: 6 pts | line only: 3 pts
RSI Slope in Range — 5 points
RSI Divergence — 8 points
Volume Spike — 6 points | Above average: 3 points
EMA Trend Fully Aligned — 8 points | Price above/below 200 EMA only: 3 points
ADX Strong — 6 points
Penalty Deductions:
RSI at opposite extreme — -12 points (signal in wrong RSI zone)
Counter-trend direction — -15 points (trading against the established structure)
ADX weak / no trend — -6 points
Price overextended from EMA — -8 points
No PA pattern at all — -10 points (structure without a trigger is not enough)
Below average volume — -4 points
Letter Grade Scale:
A+ — 70% and above: exceptional confluence, all major factors aligned
A — 55–69%: high-quality setup with strong structural backing
B — 40–54%: good setup with most factors aligned
C — 25–39%: marginal setup, use caution and tighter risk management
D — below 25%: weak confluence, typically filtered out before display
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 EMA System
Three Exponential Moving Averages provide structural context for trend bias and signal filtering:
Fast EMA (21) — yellow-green cross markers — the immediate momentum reference. When price holds above the Fast EMA, intrabar momentum favors longs.
Medium EMA (50) — gray line — the intermediate trend filter. Slope direction confirms trend momentum across recent bars.
Slow EMA (200) — dark gray line, thicker — the structural backbone. Price position relative to the 200 EMA contributes to the confidence score and defines the macro bias.
EMA Fan Analysis:
All three EMAs fanning outward in order (Fast > Medium > Slow for bullish) — healthy trend, re-entry signals carry higher confidence
EMAs converging — trend is weakening, expect chop or reversal
EMAs tangled and flat — range-bound market, step aside and wait for structure to return
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Trend Structure Detection
AlphaX Prism tracks swing-based market structure using configurable pivot detection:
Uptrend (▲ UPTREND) — confirmed when the most recent significant high is higher than the prior high AND the most recent significant low is higher than the prior low (Higher Highs + Higher Lows)
Downtrend (▼ DOWNTREND) — confirmed when the most recent significant high is lower than the prior high AND the most recent significant low is lower than the prior low (Lower Highs + Lower Lows)
A configurable cooldown prevents label spam during choppy structure transitions
The trend structure direction is used as a directional filter and adds directly to the confluence score. Signals trading against the identified structure receive a significant confidence penalty.
ADX is calculated alongside the swing structure to confirm whether the trend has sufficient momentum. The ADX threshold (default: 22) prevents signals from firing during flat, low-conviction periods — regardless of how many other factors align.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 RSI Divergence Detection
AlphaX Prism includes a built-in RSI divergence scanner that runs continuously alongside all other analysis:
Bullish Divergence — price makes a lower low but the RSI pivot low is higher than the prior RSI low — indicating weakening bearish momentum
Bearish Divergence — price makes a higher high but the RSI pivot high is lower than the prior RSI high — indicating weakening bullish momentum
Divergences are validated against pivot lookback windows to ensure they represent meaningful structural shifts rather than random oscillator noise. When detected, they are marked with small diamond shapes and contribute up to 8 points to the confidence score.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Prism — Step by Step
Step 1 — Read the Dashboard
Check PRICE POSITION: Is price bouncing from support, rejecting resistance, or between levels?
Check TREND: Is structure bullish, bearish, or ranging?
Check ADX: Is there a trending environment, or is it weak and directionless?
Check PA PATTERN: Is there a qualifying candle pattern on the current bar?
If VERDICT reads "WEAK TREND — WAIT" or "NO PA PATTERN — WAIT" → do not enter. Preserve capital.
Step 2 — Wait for an Entry Signal
A ▲ or ▼ signal label appears when all mandatory conditions are met
Check the dashboard for the BULL SCORE or BEAR SCORE and the letter grade — higher grades represent cleaner, higher-probability setups
An A or A+ grade at a confirmed key level with institutional activity is the highest-conviction setup the system can produce
Step 3 — Confirm the Setup Manually
Review FACTORS in the dashboard — which of the 10 conditions are confirmed?
Look for a Bounce from Support or Rejection from Resistance as the anchor
Verify that volume is above average and the institutional footprint dots support the direction
Place your stop loss beyond the recent swing high/low or beyond the key level zone
Step 4 — Manage the Trade
Monitor the dashboard for changes in trend, RSI state, and institutional flow
If the VERDICT shifts from your trade direction, begin tightening your stop loss
Use subsequent entry signals in the same direction as opportunities to add to a winning position
Step 5 — Exit on the ✕ Mark
When an exit marker appears, the system has detected a counter-trend structural condition
Take partial or full profit
Do not immediately reverse — wait for a new entry signal in the opposite direction before committing to a new trade
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🏗 Automatic Key Level detection with zone merging, touch counting, and age management
🕯 Five Price Action pattern types — Engulfing, Pin Bar, Inside Bar Breakout, Momentum Shift, and Strong Directional Candle
🏦 Institutional footprint tracking — directional institutional candles and absorption patterns with volume validation
🧠 10-factor confluence binary score + weighted percentage confidence engine with A+ to D letter grading
📐 Three EMAs (21 / 50 / 200) for structural context, fan analysis, and trend bias
📉 Swing-based trend structure detection with HH/HL and LL/LH logic and a configurable trend label cooldown
⚡ ADX integration — prevents signals from firing in low-conviction, ranging environments
💎 RSI divergence scanner — continuously monitors for bullish and bearish momentum divergence
📊 MACD momentum engine — directional and histogram-based momentum alignment
✕ Context-aware exit signals — fire only after an active entry and only under specific structural reversal conditions
🖥 Fully featured dashboard — price position, PA pattern, institutional activity, trend, EMA, RSI, volume, confluence scores, verdict, and last signal details all in one panel
🎨 Cohesive dual-tone color theme — yellow-green for bullish, red for bearish, gray for neutral and weak conditions
🔔 8 alert conditions — long/short signals, engulfing at key levels, institutional candles, and RSI divergences
⚙ Fully configurable — all swing lengths, thresholds, ATR multipliers, confluence minimums, EMA periods, colors, and display toggles are adjustable from the settings panel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Key Levels
Key Level Swing Length — pivot detection lookback for support/resistance identification (default: 8)
Merge Zones (x ATR) — how close two levels must be to merge into a single zone (default: 1.2× ATR)
Max Active Zones — maximum number of key level zones displayed simultaneously (default: 6)
Zone Max Age (bars) — how many bars before a zone is retired and removed (default: 250)
Show Key Level Zones — toggle zone box fills
Show Key Level Lines — toggle dotted center lines
Min Touches to Confirm — how many interactions before a zone is considered confirmed and color-coded (default: 2)
Price Action
Show PA Pattern Markers — toggle all price action pattern markers
Min Body Ratio (Engulf) — minimum body-to-range ratio required for engulfing patterns (default: 0.4)
Pin Bar Wick Ratio — minimum wick-to-body ratio required for pin bars (default: 2.5)
Show Inside Bar Breakouts — enable/disable inside bar breakout signals
Show Momentum Shift — enable/disable 3-bar momentum shift detection
Institutional Flow
Inst. Body Size (x Avg) — body size multiplier required for institutional candle detection (default: 1.8)
Inst. Volume (x Avg) — volume multiplier required for institutional candle detection (default: 1.3)
Show Institutional Candles — toggle all institutional footprint dots
Trend Context
Trend Swing Length — pivot lookback for trend structure HH/HL/LL/LH detection (default: 12)
Show Trend Shift Labels — toggle UPTREND/DOWNTREND structural labels
Trend Label Cooldown — minimum bars between consecutive trend labels (default: 18)
ADX Length — period for ADX trend strength calculation (default: 14)
ADX Trend Threshold — minimum ADX value required to permit signal generation (default: 22)
Momentum
RSI Length — period for RSI calculation (default: 14)
Show RSI Divergence — toggle the RSI divergence scanner and markers
Volume
Volume MA Length — period for volume moving average used in all volume comparisons (default: 20)
EMA Settings
Show Fast / Medium / Slow EMA — individual visibility toggles for each EMA
Fast EMA Length — default: 21
Medium EMA Length — default: 50
Slow EMA Length — default: 200
Confluence Engine
Min Confluence Score — minimum number of the 10 factors required to permit signal generation (default: 4)
Show Entry Signals — toggle all ▲ / ▼ entry signal labels
Signal Cooldown (bars) — minimum bars between consecutive signals (default: 12)
Show Exit Signals — toggle all ✕ exit signal markers
Display
Show Dashboard — toggle the full dashboard panel
Dashboard Position — Top Right / Top Left / Bottom Right / Bottom Left
Dashboard Text Size — Tiny / Small / Normal
Dashboard Background — configurable background color
Theme Colors
Bull Primary / Bright / Dim — the yellow-green family for all bullish elements
Bear Primary / Bright / Dim — the red family for all bearish elements
Support / Resistance / Neutral Zone Colors — configurable zone color scheme
Pattern Color — marker color for price action pattern labels
Institutional Color — dot color for institutional footprint markers
Individual EMA Colors — Fast (yellow-green), Medium (gray), Slow (dark gray)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
Prism Long Signal — fires when a confirmed ▲ entry signal appears
Prism Short Signal — fires when a confirmed ▼ entry signal appears
Engulf at Support — fires when a bullish engulfing pattern forms at a confirmed support zone
Engulf at Resistance — fires when a bearish engulfing pattern forms at a confirmed resistance zone
Institutional Buying — fires when an institutional bullish candle is detected
Institutional Selling — fires when an institutional bearish candle is detected
RSI Bull Divergence — fires when a confirmed bullish RSI divergence is detected
RSI Bear Divergence — fires when a confirmed bearish RSI divergence is detected
All alert messages include {{ticker}} and {{interval}} placeholders for clean webhook and bot integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Default Settings — Optimized For
The default configuration is tuned for intraday trading on XAUUSD, forex majors, and indices (NAS100, US30, SPX500) on timeframes from M1 to H1.
For best results across different instruments:
Higher timeframes (H1, H4) — increase Trend Swing Length to 18–25, increase Min Confluence to 5–6, increase Signal Cooldown to 20–30
Volatile instruments (Gold, NAS100) — use defaults or increase ADX threshold to 25 for tighter trend filtering
Forex majors (EURUSD, GBPUSD) — reduce Inst. Body Size multiplier to 1.5, keep defaults otherwise
Calmer instruments — reduce ADX threshold to 18–20, reduce Min Confluence to 3
Fewer, cleaner signals — increase Min Confluence Score, increase ADX Threshold, increase Signal Cooldown
More frequent signals — decrease Min Confluence Score to 3, decrease Signal Cooldown to 8, reduce ADX Threshold to 18
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Price action traders — built on the foundations of PA trading: key levels, candlestick patterns, and structural context, with no dependence on arbitrary indicator signals
🏦 Traders who want to track institutional activity — the footprint engine highlights where large money is likely entering and exiting the market
📊 Confluence-based traders — the 10-factor scoring system provides a systematic, quantified framework for evaluating setups rather than relying on intuition alone
🧠 Systematic and discretionary traders alike — the dashboard makes every condition transparent and readable at a glance, while the alert system supports fully automated notification workflows
📈 Traders who struggle with overtrading — the mandatory ADX filter, PA pattern requirement, and minimum confluence threshold physically prevent weak or unqualified setups from generating signals
🎨 Traders who value clean, uncluttered charts — all elements follow a cohesive color theme, and the system is designed to show you only what matters, when it matters
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are calculated on bar close — AlphaX Prism is non-repainting. A signal that appears will not disappear on the next bar.
The key level zone boxes extend to the right edge of the chart in real time. As new bars form, zones that have aged beyond the maximum bar count are automatically removed.
RSI divergence detection uses a 5-bar pivot lookback on each side — divergences are confirmed only when the current bar is within 3 bars of the pivot, and the two pivots are between 5 and 50 bars apart, ensuring only meaningful divergences are flagged.
Designed for M1 through H1 timeframes. On daily or weekly charts, the ADX and confluence filters still function, but key level zone density may need adjustment via the swing length and max zones settings.
Maximum 500 labels and 500 boxes are used — on very low timeframes with extended chart history, oldest elements may be automatically removed by PulseWire's rendering limits.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance of any signal type does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who trade what they see — not what they hope. Indicator

Inside / Outside BarsThis indicator highlights Inside Bars and Outside Bars directly on the chart, helping identify consolidation and expansion phases in price action.
Key Features:
Inside Bar Detection
An Inside Bar is a candle whose high and low are fully contained within the range of the previous candle.
This typically signals consolidation, reduced volatility, and potential buildup before a breakout.
Outside Bar Detection
An Outside Bar is a candle whose high is higher than the previous high and whose low is lower than the previous low.
This reflects range expansion, increased volatility, and possible reversal or continuation momentum.
Visual Highlighting
Inside and Outside Bars are clearly marked on the chart with customizable colors, allowing quick recognition without manual analysis.
Clean and Minimal Design
-The indicator is designed to avoid clutter, focusing only on key price action signals.
-Works on Any Market
-Can be applied to crypto, forex, stocks, and indices.
Use Cases:
-Identify breakout setups after consolidation (Inside Bars)
-Spot volatility expansion and potential reversals (Outside Bars)
-Combine with higher timeframe levels and liquidity concepts for improved decision-making
This tool is built for traders who rely on pure price action and want a clear, automated way to track key candle patterns. Indicator

Bar Count (Timezone Fixed | Colorful Multiples)Bar Count (Timezone Fixed | Colorful Multiples)
This indicator sequentially numbers each bar within a trading day, featuring two key improvements over traditional bar counters:
1. Timezone Fixed – No More Noon Reset
Uses the exchange’s timezone to detect a new trading day ( time("D", syminfo.timezone) ), rather than local time or calendar date. The counter resets only at the exchange’s actual session start, eliminating the common issue where numbers reset at noon due to timezone differences or lunch breaks.
2. Colorful Multiples – Highlight Key Intervals
Supports custom colors for bars at specific multiples (e.g., every 12th, 24th bar). Visual markers help you easily identify repeating cycles, important time windows, or rhythm points without manual calculation.
Input Parameters
Label Size : Text size (Auto/Huge/Large/Normal/Small/Tiny)
Display at every X bars : Show label every X bars (set to 1 for every bar)
Default Color : Default label color
every N bars : The multiple interval (e.g., 12 for every 12th bar)
N bars Color : Color for bars at the specified multiple
Use Case
Ideal for intraday traders, especially those trading futures, forex, or indices with overnight sessions or lunch breaks. The timezone fix ensures accurate continuous numbering, while the color-coded multiples provide visual cues for recurring intervals.
本指标为图表上的每根 K 线按交易日顺序连续编号,并针对传统同类指标的痛点进行了两项关键改进:
1. 时区修正,告别中午重置
使用交易所时区判断新交易日( time("D", syminfo.timezone) ),而非本地时间或自然日。无论图表时区如何设置,编号仅在交易所实际开盘时重置,彻底解决因午休、时区偏移导致的中午 12:00 后序号从 1 开始的错误。
2. 彩色倍数,关键节点一目了然
支持为指定倍数的 K 线(如每 12 根、每 24 根)设置独立颜色。通过直观的色彩标记,轻松识别固定周期循环(如每 12 根 K 线)、时间窗口或重要节奏点,无需额外计算。
输入参数
Label Size :标签文字大小(自动/特大/大/正常/小/微小)
Display at every X bars :每 X 根 K 线显示一次编号(设为 1 则每根显示)
Default Color :默认标签颜色
every N bars :倍数间隔(例如 12 表示每 12 根 K 线使用特殊颜色)
N bars Color :倍数序号的标签颜色
适用场景
日内交易者、期货、外汇、指数等有夜盘或午休的品种,确保编号连续准确;同时通过颜色区分固定周期,辅助识别关键时间节点。 Indicator

AG Pro Price Acceptance Profile [AGPro Series]AG Pro Price Acceptance Profile
OVERVIEW
AG Pro Price Acceptance Profile is a price-structure tool designed to reveal where the market is spending time, where it is repeatedly returning, and where it is rejecting price efficiently.
Instead of using volume distribution, signal arrows, or breakout-style triggers, this script builds an acceptance/rejection map from price-time interaction inside a rolling lookback window. The goal is simple: make it easier to identify where price is being accepted, where it is being rejected, and whether current price is trading inside balance or at its outer edges.
This is not a volume profile clone, not a support/resistance line generator, and not a momentum signal script. It focuses on one specific question:
Which price areas are currently showing repeated acceptance, and which areas are failing to hold price?
That narrow focus is intentional. The script is built as an analytical context tool rather than an entry engine.
UNIQUE EDGE
The core idea is to measure acceptance through price-time behavior rather than centralized volume data.
The profile logic evaluates how often price revisits a zone, how long it tends to remain there, and how efficiently it exits that zone. This creates a structured map of:
- Acceptance zones
- Rejection zones
- The active balance area
- The current market state relative to that balance
Because the methodology is based on price persistence and revisit behavior, the script can be useful on markets where volume-based profiling is either unavailable, fragmented, or not the preferred analytical lens.
METHODOLOGY
The script divides the rolling price range into rows and evaluates each row using multiple internal dimensions derived from recent bars:
1) Time at price
Measures how frequently the market occupies each row across the selected lookback.
2) Revisit density
Tracks how often price returns to a row after leaving it. Repeated revisits can indicate ongoing acceptance or unfinished balancing behavior.
3) Dwell persistence
Approximates whether the market tends to spend stable time in an area rather than only touching it briefly.
4) Rejection speed
Measures how efficiently price exits an area after interaction. Faster and cleaner exits tend to support rejection classification.
5) Balance mapping
Uses the strongest acceptance region to define the current balance area and then classifies the live market location relative to it.
The result is a simplified profile-style framework built from price behavior itself.
HOW TO READ IT
The large balance area highlights the current acceptance region derived from the profile engine.
Acceptance zones mark price areas that showed stronger persistence, repeated interaction, and better structural acceptance within the chosen lookback.
Rejection zones mark areas where price interacted but failed to remain stable, leading to less durable occupation and faster displacement.
The panel is designed to summarize the current profile state:
- Acceptance Strength: relative quality of the dominant accepted area
- Revisit Density: how actively the market is returning to profiled zones
- Balance Width: width of the accepted region relative to the full profiled range
- Rejection Speed: how efficiently price is leaving unstable areas
- Location: whether current price is inside, above, or below balance
In practice, traders can use the script to distinguish between stable trade location and unstable trade location, instead of treating every nearby level as equally important.
KEY INPUTS
Lookback
Controls how much recent history is used to build the profile.
Rows
Defines profile resolution. Higher values increase granularity but can also make the map more sensitive.
Acceptance Threshold / Rejection Threshold
Adjust how selective the script is when classifying stronger acceptance and rejection areas.
Maximum Acceptance / Rejection Zones
Controls chart density and visual focus.
Panel and label settings
Allow adaptation for different chart layouts and screen sizes.
LIMITATIONS AND TRANSPARENCY
This script does not predict future price movement.
It does not generate guaranteed reversal points.
It does not replace execution logic or risk management.
Acceptance and rejection are contextual measurements derived from the selected lookback and row resolution. Different settings can produce different maps because the profile is adaptive by design.
As with any charting tool based on rolling historical context, zones may evolve when older bars leave the lookback window and new bars enter it.
This script is best used as a contextual framework for market location, not as a standalone trade mandate.
RISK DISCLOSURE
This indicator is for analytical and educational use only. It does not provide financial advice, investment advice, or trading guarantees. All trading decisions remain the responsibility of the user. Indicator

Gold Scalper V4.2GOLD SCALPER V4.2 — GOLD (XAUUSD) SCALPING GUIDELINE
Kalman Filter + Double Bollinger Bands + 3-Confluence System
Version 4.2
PART 1 — WHAT IS THIS INDICATOR?
GOLD SCALPER V4.2 is a scalping tool built exclusively for Gold (XAUUSD). It combines three components:
COMPONENT | WHAT IT DOES
Kalman Filter | Smooths price baseline mathematically. Filters Gold's news spikes without lag.
SCALPER Architecture | Creates 3 price zones: Sell / Neutral / Buy. Identifies statistically extreme positions.
3-Confluence System | Requires 3 conditions before firing a signal. Filters signals during band-walking.
PART 2 — THE THREE ZONES ON THE CHART
The chart is always divided into three labeled zones. Each zone tells you exactly what to do.
🔴 SELL ZONE — Price > BB2 Upper — Overbought
DO NOT BUY here. Look for SELL only. Deeper in zone = potential reversal area.
⚪ NEUTRAL ZONE — Inside BB1 bands — Normal range
No extreme condition. WAIT. Do not trade here.
🟢 BUY ZONE — Price < BB2 Lower — Oversold
DO NOT SELL here. Look for BUY only. Deeper in zone = potential reversal area.
VOLUME GRADIENT (Zone fill color):
• Vibrant / saturated color → Strong volume conviction → Potential signal
• Faded / pale color → Weak volume → WAIT, skip signal
PART 3 — ENTRY, TARGETS, AND STOP LOSS
Logic: Price moves to one extreme zone → target is the OPPOSITE extreme zone. Bollinger Bands are mean-reverting by math.
── BUY SETUP (Entry from Green BUY ZONE) ─────────────────────
• Entry → Close of signal candle (below BB2 Lower)
• TP1 (50%) → LTF BB1 Upper (close HALF your position here)
• TP2 (50%) → LTF BB2 Upper (close remaining half here)
• Stop Loss → LTF BB2 Lower × 0.998 (0.2% buffer below band)
── SELL SETUP (Entry from Red SELL ZONE) ─────────────────────
• Entry → Close of signal candle (above BB2 Upper)
• TP1 (50%) → LTF BB1 Lower (close HALF your position here)
• TP2 (50%) → LTF BB2 Lower (close remaining half here)
• Stop Loss → LTF BB2 Upper × 1.002 (0.2% buffer above band)
NOTE: All four levels (Entry, TP1, TP2, SL) are drawn automatically on the chart as lines and labels when a signal fires. You do not need to calculate them manually.
PART 4 — THE 3-CONFLUENCE SIGNAL SYSTEM
A signal (▲ BUY or ▼ SELL) fires ONLY when ALL THREE conditions align at the same time. Missing even one = no signal fires.
── CONDITION 1: Statistical Exhaustion (The Zone) ────────────
• BUY → Price must close BELOW LTF BB2 Lower
• SELL → Price must close ABOVE LTF BB2 Upper
This confirms price has entered statistically extreme territory. An internal latch is set and stays active until price returns inside the BB1 bands (signal cycle complete).
── CONDITION 2: Momentum Shift (The Slope) ───────────────────
• BUY → LTF BB2 Lower band is RISING (current > previous bar)
• SELL → LTF BB2 Upper band is FALLING (current < previous bar)
*** THIS IS THE MOST IMPORTANT CONDITION ***
Gold often "walks the band" — price stays in the extreme zone for many bars during strong trends. Condition 2 prevents entries during band-walking by waiting for the band itself to reverse.
── CONDITION 3: Macro Trend Filter (HTF) ─────────────────────
• BUY → Current price must be ABOVE the HTF Basis line
• SELL → Current price must be BELOW the HTF Basis line
This ensures you trade WITH the macro trend, not against it.
── SIGNAL RESET LOGIC ────────────────────────────────────────
• After BUY fires → No new BUY until price returns above BB1 Lower (LTF + HTF)
• After SELL fires → No new SELL until price returns below BB1 Upper (LTF + HTF)
This prevents duplicate signals during a single move.
PART 5 — STEP-BY-STEP TRADE EXECUTION
── BEFORE THE SESSION ────────────────────────────────────────
1. Open XAUUSD chart with the indicator applied.
2. Set the correct HTF Timeframe in Settings.
3. Check the time — avoid trading 15 min before/after major USD news.
4. Confirm you are in an active session:
- London Open → 08:00–10:00 GMT
- NY Open → 13:00–17:00 GMT
── FINDING THE SETUP ─────────────────────────────────────────
1. Is price above or below the HTF Basis line?
- Above HTF Basis → BULLISH macro → BUY setups only today
- Below HTF Basis → BEARISH macro → SELL setups only today
2. Wait for price to enter the matching extreme zone:
- Bullish day → Wait for price to enter 🟢 BUY ZONE
- Bearish day → Wait for price to enter 🔴 SELL ZONE
3. Check the zone fill color:
- Vibrant saturated color → Strong volume → Proceed
- Faded pale color → Weak volume → Wait more
4. Wait for the signal triangle:
- ▲ green triangle → BUY signal confirmed
- ▼ red triangle → SELL signal confirmed
── ENTERING THE TRADE ────────────────────────────────────────
1. Enter at market price on close of signal candle.
2. Set Stop Loss, TP1, and TP2 at the lines shown on chart.
── MANAGING THE TRADE ────────────────────────────────────────
1. TP1 hit → Close 50% of position and move SL to Break Even.
2. TP2 hit → Close remaining 50%. Trade complete.
3. SL hit → Accept the loss.
★ GOLDEN RULE: Never let a winning trade turn into a loss.
PART 6 — THE VOLUME GRADIENT EXPLAINED
READING THE COLOR:
• Deep saturated GREEN in BUY zone → Strong buying pressure → Potential BUY signal
• Faded pale GREEN in BUY zone → Weak volume → Lower probability
• Deep saturated RED in SELL zone → Strong selling pressure → Potential SELL signal
PRACTICAL RULE: Only trade when the zone fill is vibrant.
PART 7 — TIMEFRAME SETTINGS FOR GOLD
CHART TF | HTF SETTING
1 minute | 5 minutes
3 minutes | 15 minutes
5 minutes | 15 minutes
15 minutes | 1 Hour
1 Hour | 4 Hours
RECOMMENDED START: 15-minute chart + 1-Hour HTF.
LTF BAND SETTINGS:
• Length → 20 bars
• Inner Multiplier → 1.0
• Outer Multiplier → 2.0
HTF BAND SETTINGS:
• Length → 20 bars
• Inner Multiplier → 1.5
• Outer Multiplier → 2.25
PART 8 — RISK MANAGEMENT RULES
• RULE 1 — POSITION SIZING: Never risk more than 1–2% of account per trade.
• RULE 2 — NEWS AVOIDANCE: Avoid new trades 15 minutes BEFORE and AFTER major news.
• RULE 3 — DAILY LOSS LIMIT: If you lose 3 trades in a row → STOP for the day.
• RULE 4 — MINIMUM RISK/REWARD: Only enter trades where RRR is 1.5:1 or better.
• RULE 5 — SESSION AWARENESS: Best hours: London Open (08:00–10:00), NY Open (13:00–15:00), Overlap (13:00–17:00).
• RULE 6 — TREND ALIGNMENT IS NON-NEGOTIABLE: HTF Bearish → SELL only. HTF Bullish → BUY only.
PART 9 — COMMON MISTAKES TO AVOID
MISTAKE | HOW TO AVOID
Trading against HTF trend | Check HTF Basis direction FIRST.
Entering in Neutral Zone | Only enter in Sell Zone or Buy Zone.
Ignoring volume gradient | Faded fill = low conviction.
Moving SL further away | Honor the calculated SL. Period.
Not taking TP1 | Always close 50% at TP1 and move SL to BE.
Chasing missed signals | If you missed the entry candle, skip it.
PART 10 — ZONE LABEL SETTINGS
The zone labels have fully customizable colors in Settings → Zone Labels.
PART 11 — ALERT SETUP (TRADINGVIEW)
• Alert 1 → "🟢 BUY Signal | Gold Scalper"
• Alert 2 → "🔴 SELL Signal | Gold Scalper"
QUICK REFERENCE CARD
PRE-TRADE CHECKLIST:
HTF Basis direction confirmed?
Price is in Sell Zone or Buy Zone?
Zone fill color is vibrant / saturated?
Signal triangle has appeared?
No major news in the next 15 minutes?
RRR is 1.5:1 or better?
---
Disclaimer: This guideline and the GOLD SCALPER V4.2 indicator are provided for educational purposes only. Trading carries a high level of risk. Always trade with capital you can afford to lose.
Indicator
