OPEN-SOURCE SCRIPT
[ A L P H A X ] Vertex

AlphaX Vertex — Volatility Squeeze Release, HTF Regime, Smart Confluence & Session-Ready Signals
AlphaX Vertex is a Pine Script v6 overlay indicator built around a classic volatility squeeze: Bollinger Bands fully inside Keltner Channels signal a coil in volatility; the first bar of expansion is the release. Vertex layers higher-timeframe regime, directional energy (+DI/−DI and ADX), RSI momentum with an optional hook, optional MACD histogram alignment, and optional volume — then separates hard gates from a compact soft confluence score so filters actually change outcomes. Factory defaults are tuned for responsive intraday work (including spot/CFD XAUUSD on 1-minute); every setting remains fully customizable. Visuals follow the AlphaX palette — yellow-green for bullish continuity, red for bearish, amber squeeze highlights, and a dark compact dashboard — consistent with AlphaX Titan / OMEGA styling.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📸 Visual Overview

AlphaX Vertex on chart — optional squeeze bar tint, triangle markers at confirmed releases with optional V↑ / V↓ score labels (soft score out of 3), optional Bollinger and Keltner plots, and a multi-row VERTEX dashboard showing coil state, HTF regime, bridge check, ADX, DI, RSI, and session gate.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 Squeeze Engine — Coil and Release
The core geometry is the TTM-style relationship between Bollinger Bands and Keltner Channels:
Inputs include Bollinger length and standard-deviation multiplier, Keltner length and ATR multiplier, and minimum coil bars. Optional Highlight Squeeze Bars tints bars during the coil; optional Plot BB & Keltner draws both channels for full transparency.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Direction on Release — Keltner Basis Bias
On the release bar, directional bias for long vs short is anchored to the Keltner basis (EMA midline):
This is the same directional cue used in textbook squeeze-plus-basis workflows: expansion plus which side of the midline price reclaims on the signal bar.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌐 Higher-Timeframe Regime — Hard Gate (No Lookahead)
When Use HTF Regime Filter is enabled, Vertex pulls the selected HTF without lookahead (barmerge.lookahead_off) and applies a strict regime test before any long or short can qualify:
The dashboard shows regime (BULL / BEAR / NEUTRAL / OFF), the active HTF string, an HTF filter row (Allows LONG, Allows SHORT, or Blocks both), and a Bridge row: Chart < HTF when your chart timeframe is strictly lower than the selected HTF (the intended use case), or Chart >= HTF as a warning that you are not stepping up to a higher timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💪 ADX and +DI / −DI — Hard Gates
When enabled, these are mandatory — not soft “minus one point” filters:
The live dashboard shows ADX value (and whether the gate is off) plus the current DI+ / DI− readout.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 RSI, MACD Histogram, Volume — Soft Confluence (Score / 3)
After all squeeze, session, HTF, ADX, and DI conditions pass for the candidate direction, Vertex scores a separate soft module:
Min Confluence is the minimum soft score (1–3) required in addition to all hard gates. Raising it tightens entries; lowering it relaxes the model.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🕐 Session Gate (UTC)
Optional London, London/NY overlap, and NY afternoon windows in UTC (same convention style as AlphaX Titan Signal). When disabled, structure is evaluated around the clock; when enabled, signals outside selected windows are blocked.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Markers, Labels, and Execution Timing
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 Live Dashboard (Compact Table)
Dashboard corner is selectable (Top Right, Top Left, Bottom Right, Bottom Left). Default is Bottom Left to reduce overlap with markers near the right-edge price scale.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Squeeze Engine
HTF Regime
Direction
Volume
Session
Signals
Display
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Vertex — Step by Step
Step 1 — Confirm squeeze state
Step 2 — Align with higher timeframe
Step 3 — Respect directional energy
Step 4 — Wait for the scored release
Step 5 — Session and repetition control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
Alert messages are fixed strings suitable for manual routing; add {{ticker}} and {{interval}} in TradingView’s alert message editor if your workflow requires them.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 derived from price and volume data via mathematical rules; profitability is not guaranteed. Past behavior of volatility coils does not guarantee future outcomes. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before trading. The author accepts no responsibility for losses arising from use of this tool.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who want squeeze releases vetted by higher-timeframe bias, trend energy, and a transparent momentum score — AlphaX Vertex: coil, release, confluence.
AlphaX Vertex is a Pine Script v6 overlay indicator built around a classic volatility squeeze: Bollinger Bands fully inside Keltner Channels signal a coil in volatility; the first bar of expansion is the release. Vertex layers higher-timeframe regime, directional energy (+DI/−DI and ADX), RSI momentum with an optional hook, optional MACD histogram alignment, and optional volume — then separates hard gates from a compact soft confluence score so filters actually change outcomes. Factory defaults are tuned for responsive intraday work (including spot/CFD XAUUSD on 1-minute); every setting remains fully customizable. Visuals follow the AlphaX palette — yellow-green for bullish continuity, red for bearish, amber squeeze highlights, and a dark compact dashboard — consistent with AlphaX Titan / OMEGA styling.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📸 Visual Overview
AlphaX Vertex on chart — optional squeeze bar tint, triangle markers at confirmed releases with optional V↑ / V↓ score labels (soft score out of 3), optional Bollinger and Keltner plots, and a multi-row VERTEX dashboard showing coil state, HTF regime, bridge check, ADX, DI, RSI, and session gate.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 Squeeze Engine — Coil and Release
The core geometry is the TTM-style relationship between Bollinger Bands and Keltner Channels:
- Coil (squeeze ON): The entire Bollinger envelope sits inside the Keltner envelope — volatility has contracted and energy is stored.
- Release: The first bar where that condition ends — Bollinger expands outside Keltner again — is the volatility release event (release_ok).
- Minimum coil length: Vertex counts how many consecutive bars stayed in the coil; releases shorter than Min Squeeze Bars are ignored to reduce one-bar noise (especially important on fast timeframes and symbols with spiky micro-ranges).
Inputs include Bollinger length and standard-deviation multiplier, Keltner length and ATR multiplier, and minimum coil bars. Optional Highlight Squeeze Bars tints bars during the coil; optional Plot BB & Keltner draws both channels for full transparency.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Direction on Release — Keltner Basis Bias
On the release bar, directional bias for long vs short is anchored to the Keltner basis (EMA midline):
- Long-side release — price closes at or above the Keltner basis when the coil fires.
- Short-side release — price closes at or below the Keltner basis when the coil fires.
This is the same directional cue used in textbook squeeze-plus-basis workflows: expansion plus which side of the midline price reclaims on the signal bar.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌐 Higher-Timeframe Regime — Hard Gate (No Lookahead)
When Use HTF Regime Filter is enabled, Vertex pulls the selected HTF without lookahead (barmerge.lookahead_off) and applies a strict regime test before any long or short can qualify:
- Bullish HTF — HTF close is above the HTF EMA and the EMA is sloped upward over your slope lookback.
- Bearish HTF — HTF close is below the HTF EMA and the EMA is sloped downward over the same lookback.
- Neutral — If neither bull nor bear condition is satisfied, Vertex blocks both directions for that bar (no cherry-picking HTF as a partial score — it is a real veto).
The dashboard shows regime (BULL / BEAR / NEUTRAL / OFF), the active HTF string, an HTF filter row (Allows LONG, Allows SHORT, or Blocks both), and a Bridge row: Chart < HTF when your chart timeframe is strictly lower than the selected HTF (the intended use case), or Chart >= HTF as a warning that you are not stepping up to a higher timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💪 ADX and +DI / −DI — Hard Gates
When enabled, these are mandatory — not soft “minus one point” filters:
- ADX minimum — Optional floor on ADX to avoid signaling releases in dead, non-trending chop.
- +DI / −DI bias — Longs require +DI > −DI when the gate is on; shorts require −DI > +DI.
The live dashboard shows ADX value (and whether the gate is off) plus the current DI+ / DI− readout.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 RSI, MACD Histogram, Volume — Soft Confluence (Score / 3)
After all squeeze, session, HTF, ADX, and DI conditions pass for the candidate direction, Vertex scores a separate soft module:
- RSI — Configurable length and bull/bear levels; optional RSI Hook demands a crossover or short ramp in the trade direction so momentum is not stale.
- MACD histogram — Optional confirm: histogram must agree with direction (or be building in that direction when enabled).
- Volume — Optional confirm versus a volume moving average and multiplier; when volume confirm is off, the volume slot still contributes to the soft score as a pass-through so Min Confluence remains intuitive (see tooltips in script).
Min Confluence is the minimum soft score (1–3) required in addition to all hard gates. Raising it tightens entries; lowering it relaxes the model.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🕐 Session Gate (UTC)
Optional London, London/NY overlap, and NY afternoon windows in UTC (same convention style as AlphaX Titan Signal). When disabled, structure is evaluated around the clock; when enabled, signals outside selected windows are blocked.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Markers, Labels, and Execution Timing
- Triangles — Small green up-triangles below the bar for qualifying longs; small red down-triangles above for qualifying shorts.
- Score labels — Optional V↑ n/3 / V↓ n/3 labels offset by ATR show the soft score on the signal bar.
- Shift markers right — Optional 0–3 bar horizontal offset for plotshapes (and aligned labels) e.g. to visualize “next bar” execution while alerts still reference the true signal bar.
- Cooldown — Minimum bars between signals to reduce duplicate fires in the same impulse.
- Bar-close logic — Conditions use completed bar data (OHLC, pivot-style squeeze state, etc.). The signal bar is the first bar where the full rule set is satisfied; intrabar entries at the open of that bar are not implied by the math.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 Live Dashboard (Compact Table)
- VERTEX — Brand header row.
- Squeeze — COIL vs OPEN (expansion) state.
- HTF — BULL / BEAR / NEUTRAL / OFF plus the configured HTF timeframe label.
- HTF filter — Which direction the HTF gate currently allows, or whether both are blocked.
- Bridge — Whether chart TF is strictly below the HTF or not.
- ADX — Live ADX with pass/fail coloring.
- DI+/DI− — Directional bias numerically.
- RSI — Live RSI reading.
- Session — OK or BLOCK when the session gate is used.
Dashboard corner is selectable (Top Right, Top Left, Bottom Right, Bottom Left). Default is Bottom Left to reduce overlap with markers near the right-edge price scale.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
- 🔬 TTM-style squeeze — Bollinger inside Keltner for coil; first expansion bar = release; minimum coil length filter
- Keltner basis bias — Long/short qualification tied to close vs EMA midline on the release bar
- 🌐 HTF regime gate — request.security with no lookahead; bull/bear/neutral with neutral blocking both sides
- 💪 ADX & +DI/−DI hard gates — Optional but structurally enforced when toggled on
- 📊 RSI + optional hook — Momentum filter with configurable levels
- 📉 Optional MACD histogram — Soft-score confirmation
- 📦 Optional volume — Soft-score vs volume MA
- 🎯 Soft score /3 — Separate from hard gates; Min Confluence control
- 🕐 UTC session filter — Optional London / overlap / NY afternoon
- ⏱ Signal cooldown — Limits back-to-back markers
- 📋 9-row dashboard — Real-time regime, bridge, ADX, DI, RSI, session
- 🔔 3 alert conditions — Vertex Long, Vertex Short, raw volatility release (unfiltered)
- ✅ Non-repainting historical signals — Confirmed bar-close style logic (standard indicator execution)
- 🎨 AlphaX theme — #A7D129 bull, #E43636 bear, dark table chrome
- 📌 Pine v6 — Built for TradingView Pine Script v6
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Squeeze Engine
- BB Length — Bollinger period (default 18 in factory XAUUSD M1 preset; full range 5–100)
- BB StdDev Mult — band width multiplier
- Keltner Length — basis/ATR channel period
- Keltner ATR Mult — channel width vs ATR
- Min Squeeze Bars — minimum consecutive coil bars before a release counts (default 6 in XAUUSD M1 factory preset)
HTF Regime
- Use HTF Regime Filter — master switch for HTF veto
- HTF Timeframe — e.g. 15, 60, 240, D (factory default 15 for 1m chart bridging)
- HTF EMA Length — regime EMA on that timeframe (factory default 21)
- HTF EMA Slope Lookback — bars back on HTF for slope direction (factory default 4)
Direction
- DMI / ADX Length — DI and ADX calculation period
- Require ADX ≥ Minimum — hard gate toggle
- ADX Minimum — threshold when gate is on
- Require +DI / −DI Bias — hard gate toggle
- RSI Length — momentum oscillator period
- Bullish / Bearish RSI Level — directional thresholds
- Require RSI Hook — momentum freshness filter
- MACD Histogram Confirm — include MACD in soft score when on (12,26,9 MACD)
Volume
- Volume Confirm — add volume-vs-MA requirement to soft score when on
- Volume MA Length — lookback for average volume
- Volume vs MA Mult — spike multiplier
Session
- Enable Session Gate (UTC) — master switch
- London 08:00–13:00 UTC — sub-window
- London/NY Overlap 13:00–17:00 UTC — sub-window
- NY Afternoon 17:00–21:00 UTC — sub-window
Signals
- Min Confluence (score / 3) — soft-score threshold after all hard gates
- Cooldown Bars — spacing between allowed signals
- Show Long / Short Markers — plotshape toggles
- Show Confluence Score on Marker — V↑ / V↓ labels with n/3
Display
- Highlight Squeeze Bars — barcolor tint during coil
- Plot BB & Keltner — show both channel sets
- Compact Dashboard — table on/off
- Dashboard Corner — table anchor
- Shift ▲▼ markers right (bars) — plotshape/label offset 0–3
- Label Offset (× ATR) — vertical label distance from bar extreme
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Vertex — Step by Step
Step 1 — Confirm squeeze state
- Watch the dashboard Squeeze row: COIL means volatility is compressed; you are hunting the OPEN transition to expansion.
- Optional: enable BB/Keltner plots to visually verify the envelope relationship.
Step 2 — Align with higher timeframe
- If HTF filter is on, require BULL regime for long-only bias and BEAR for short-only bias. NEUTRAL blocks both — stand aside until the HTF clears.
- Prefer Bridge: Chart < HTF so the regime is truly higher than your execution chart.
Step 3 — Respect directional energy
- With ADX gate on, avoid releases when ADX is below your floor — the move may lack trend strength.
- With DI gate on, ensure +DI leads for longs and −DI leads for shorts.
Step 4 — Wait for the scored release
- After release and Keltner bias, soft score must meet Min Confluence: RSI hook/levels, optional MACD, optional or pass-through volume slot.
- Triangles and optional V↑/V↓ n/3 labels mark the bar where the stacked logic first succeeds together.
Step 5 — Session and repetition control
- Apply session filter if you only trade specific liquidity windows.
- Use cooldown to avoid over-trading the same expansion cluster on very fast timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
- Vertex Long — full long stack: squeeze release, long bias, all active hard gates, soft score ≥ Min Confluence, cooldown respected, single direction resolution if both sides conflict
- Vertex Short — full short stack (mirror of long)
- Vertex Raw Release — volatility coil ended (expansion began) without the full Vertex filter stack — diagnostic for “something fired” even when regime/momentum vetoes
Alert messages are fixed strings suitable for manual routing; add {{ticker}} and {{interval}} in TradingView’s alert message editor if your workflow requires them.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
- 🥇 Volatility breakout and squeeze traders — systematic coil → expansion framing
- 📉 Forex, metals, indices, and liquid CFDs — any symbol where compress-expand behavior matters
- ⏱ Scalpers through swing traders — parameters and HTF bridge scale with your timeframe choices
- 🧠 Traders who want explicit hard vs soft logic — regime and trend-energy gates separate from RSI/MACD/volume confluence score
- 🔔 Alert-driven workflows — filtered long/short plus raw-release diagnostic
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
- Vertex is an indicator, not a strategy — it does not place orders; it visualizes conditions and exposes alertconditions.
- The squeeze release uses the relationship between completed bar ranges (high/low/close) inside the channel math; treat the marker bar as confirmed at bar close in line with standard Pine indicator behavior.
- Raising Min Squeeze Bars reduces false coils on noisy feeds; lowering it increases sensitivity.
- Turning MACD Histogram Confirm off and lowering Min Confluence increases signal frequency; tightening HTF, ADX, DI, and session does the opposite.
- Neutral HTF regime (Blocks both) is intentional — it prevents trading “squeeze only” when higher-timeframe bias is undefined.
- The statistical target and Fibonacci extension sections in other AlphaX products are not part of Vertex; Vertex focuses on coil, release, regime, energy, and scored momentum only.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 derived from price and volume data via mathematical rules; profitability is not guaranteed. Past behavior of volatility coils does not guarantee future outcomes. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before trading. The author accepts no responsibility for losses arising from use of this tool.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who want squeeze releases vetted by higher-timeframe bias, trend energy, and a transparent momentum score — AlphaX Vertex: coil, release, confluence.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
🌐 alphax.trading
Institutional Grade Signals --> Engineered for Retail
💎ᴠɪᴘ tradingview.com/v/TaXohZvb/
[ A L P H A X ] PRIME - Premium Signal Engine
🔢 alphax.trading/resources/calculators
AlphaX Calculators
Institutional Grade Signals --> Engineered for Retail
💎ᴠɪᴘ tradingview.com/v/TaXohZvb/
[ A L P H A X ] PRIME - Premium Signal Engine
🔢 alphax.trading/resources/calculators
AlphaX Calculators
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
🌐 alphax.trading
Institutional Grade Signals --> Engineered for Retail
💎ᴠɪᴘ tradingview.com/v/TaXohZvb/
[ A L P H A X ] PRIME - Premium Signal Engine
🔢 alphax.trading/resources/calculators
AlphaX Calculators
Institutional Grade Signals --> Engineered for Retail
💎ᴠɪᴘ tradingview.com/v/TaXohZvb/
[ A L P H A X ] PRIME - Premium Signal Engine
🔢 alphax.trading/resources/calculators
AlphaX Calculators
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.