Indicador

Indicador

Indicador

Trend Energy Filter
🚀 Trend Energy Filter
Introducing a new dimension in trend analysis: Trend Energy.
In automotive systems (like ECU sensor data), we use hysteresis and noise-gates to prevent "jitter" from triggering false responses.
This script applies that same logic to Momentum (Trend Energy):
ENERGY: Measures the "Engine Load" of the trend by calculating the distance from a long-term SMA.
NOISE FILTER: Uses an ATR-based threshold. The Energy value only updates if the change is significant, effectively filtering out the "market static" that causes false signals.
EXHAUSTION: Detects when the "Fuel" is running out by identifying peaks in energy and subsequent cooling.
While this type of signal processing is often hidden inside expensive commercial "black box" tools, this script provides it as a transparent, open-source engineering solution.
While standard indicators look at price in isolation, the Trend Energy Filter analyzes the "tension" between price and its long-term baseline (SMA). By focusing on the Surface Area of this tension, we gain a visual representation of market conviction that has been largely overlooked by traditional technical analysis.
The Innovation of the "Energy Surface"
Most traders view moving averages as simple static lines. The Trend Energy Filter reimagines the gap between price and the SMA as a dynamic surface.
Volumetric Visualization: Instead of thin lines, the indicator uses a neon-glow "Surface" with vertical gradients. This represents the total "Energy" currently held by the trend.
Volatility-Adjusted Noise Filter: Unlike standard oscillators that whipsaw during consolidation, this script utilizes a state-persistent ATR filter. It only updates the "Surface" when market energy moves significantly, effectively silencing the noise of minor price fluctuations.
XAUUSD 15min
Peak-Based Exhaustion Logic: By tracking the Highest energy peaks over a lookback period, the script identifies when a trend's "batteries" are running low—turning the surface blue when momentum begins to stall.
How to Trade with the Energy Surface:
1. Entering the Energy Flow (Momentum Resumption)
Watch for the "Surface" to break above its previous peak. When the color shifts from the "Exhaustion Blue" back to a vibrant Bullish Green or Bearish Red, it signals that the market has finished its rest and is ready to expand the surface area again.
NAS100 15min
Signal: Momentum Increasing alert.
2. Spotting the Blow-Off (Exhaustion Detection)
When the "Surface" is high but begins to contract (falling below its recent high), the trend is becoming "over-extended" or "exhausted." This is the ideal time to take profits or tighten trailing stops.
Visual: The surface turns blue (#5b9cf6) while still at high levels.
NAS100 15 min
3. The Squeeze (Energy Compression)
When the Energy Surface is exceptionally low and the Noise Filter prevents it from fluctuating, the market is in a "coiled spring" state. A sudden expansion of the surface from a flat baseline often precedes a massive directional breakout.
NAS100 15min
4. Baseline Context
Green Surface: Price is above the 200 SMA (Bullish Energy).
Red Surface: Price is below the 200 SMA (Bearish Energy).
Blue Surface: Trend is pausing or mean-reverting (Exhaustion). Indicador

[ 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 TradingView'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. Indicador

Macro & Hourly 1st P.FVGThis indicator highlights key intraday Macro time windows and Fair Value Gaps (FVGs) to help traders identify session-specific liquidity zones and directional bias on lower timeframes.
Macro Sessions
Visualizes 24 specific intraday Macro periods in America/New_York timezone (e.g., 02:50–03:10, 08:50–09:10, 09:50–10:10, up through 01:50–02:10).
Each enabled session draws an expanding box that captures the actual high/low range during that window.
Options include showing/hiding the box, text labels, and hour identifiers, plus full per-session toggles and a unified Macro box color with adjustable opacity.
Fair Value Gaps Inside Macro Sessions
Automatically detects FVGs that form within the active Macro windows.
1st Presented Hourly FVG
A dedicated hourly feature that plots the very first FVG presented in each hour.
Logic is tied exclusively to the middle candle (bar ) of the FVG formation, ensuring the FVG is assigned to the correct hour.
Up-closed middle candles (close > open ) receive one color; down-closed middle candles receive another.
Boxes extend to the end of the hour and include an optional midpoint line.
The indicator is optimized for timeframes of 15 minutes and below (including seconds) and works best during active trading hours. All visual elements, colors, extensions, and session filters are fully customizable in the settings panel, allowing users to tailor the display to their specific trading style and market focus. Indicador

Strong Gold Breakouts M5 | ProjectSyndicate⚙️ Gold short-term entries off M5 timeframe using dynamic consolidation zones with ADR-based TP targets.
📦 Advanced Consolidation Structure: The indicator detects and plots high-probability consolidation zones using a multi-dimensional 0–10 scoring algorithm. Only the strongest zones (score 6+) that span at least 10 candles are displayed, providing a robust breakout structure based on pure price compression. This is the default setting and is designed for intraday trading.
🎯 Precision Entry & Exit Levels: A color-coded consolidation box is plotted, with Buy Stop and Sell Stop dashed lines automatically placed 2 USD away from its borders. This buffer creates a neutral zone and helps filter out fakeouts.
💰 ADR-Based Profit Targets: Three Take Profit (TP) lines are plotted for both long and short trades (TP1, TP2, TP3). These levels are dynamically calculated as a percentage of the 10-day Average Daily Range (ADR), ensuring targets adapt to current market volatility.
⚙️ Fully Customizable Levels: Every element is adjustable. You can change the buffer between the consolidation box and stop lines, and customize the exact ADR percentages for TP1 (10%), TP2 (15%), and TP3 (20%) to suit your risk profile.
🔔 M5 Breakout Alerts: The indicator includes a powerful alerts module that triggers when an M5 candle closes above the Buy Stop level or below the Sell Stop level. This provides real-time notifications with full trade details for potential entries.
🎨 Clean Visuals & Clear Labels: The zones are color-coded based on strength — White=6, Yellow=7, Orange=8, Red=9–10 — for instant recognition. The Buy Stop, Sell Stop, and TP lines are fully labeled with exact price levels, ensuring zero confusion.
⚙️ Trading Strategy & Logic
This strategy is designed for precision and requires patience. The core idea is to wait for the market to confirm a breakout of an established high-scoring consolidation zone before entering a trade.
📌 Entry Logic
🕒 Wait for a Strong Zone: Allow the indicator to detect and plot a new high-scoring consolidation zone. Do not trade old or expired zones.
🔔 Set Your Alerts: In TradingView, create a new alert and select the indicator. For the condition, choose "Any alert() function call". This will notify you the moment an M5 candle closes across a stop level.
👀 Wait for the M5 Close: For a Long Buy Trade, wait for an M5 candle to close above the Buy Stop line. For a Short Sell Trade, wait for an M5 candle to close below the Sell Stop line.
✅ Enter on Confirmation: Once you receive the alert and visually confirm the M5 candle has closed past the level, you can enter the trade targeting the dynamic ADR levels. Indicador

SmartFlow SMCThis indicator provides automated market structure analysis
based on Smart Money Concepts (SMC). It identifies structural
breaks, liquidity levels, and session timing using confirmed-
candle logic to eliminate repainting.
█ METHODOLOGY
Market Structure Detection (BoS / MSS)
The script uses pivot-based swing detection with a configurable
lookback period. Swing highs and lows are identified using
ta.pivothigh() and ta.pivotlow() , then tracked
to maintain structural history.
Break of Structure (BoS) is detected when a confirmed
candle's body (close ) exceeds the current swing target level
in the direction of the existing trend. This indicates trend
continuation.
Market Structure Shift (MSS) is detected when a confirmed
candle's body breaks the key pullback level against the existing
trend — the interim low in an uptrend or interim high in a
downtrend. This signals a potential trend reversal.
All detections use the previous closed bar , not the
current forming bar, ensuring signals do not repaint.
After a BoS is confirmed, the script tracks the highest high
(in uptrends) or lowest low (in downtrends) in real-time using
tracking variables. This compensates for the inherent delay in
pivot detection, so the BoS target level reflects actual price
extremes even before the next pivot formally confirms.
MSS Candidate Line
A dashed line drawn at the level where a trend reversal would
occur if broken. In an uptrend, this is the most recent pivot
low. In a downtrend, it is the most recent pivot high. This
provides advance visibility of where a structural shift would
trigger.
BoS Target Line
A dashed line showing the next level price needs to break for
trend continuation. Updates in real-time using both confirmed
pivots and tracked extremes.
█ LIQUIDITY DETECTION
Equal Highs / Equal Lows (EQH / EQL)
When two consecutive pivot highs (or lows) form within a
configurable tolerance percentage, they are marked as equal
levels. These represent clustered liquidity where stop orders
tend to accumulate — above for EQH (buy-side), below for EQL
(sell-side).
Buy Side / Sell Side Liquidity (BSL / SSL)
The most recent pivot high is marked as BSL, the most recent
pivot low as SSL. Only the latest level for each side is
displayed to maintain chart clarity.
Sweep Detection
A Sweep occurs when price wicks beyond a pivot level but the
candle body closes back inside. For a bullish sweep (SSL sweep),
the bar's low penetrates below the pivot low while both open and
close remain above it. This pattern indicates a liquidity grab
— price triggered stops below the level and reversed, suggesting
institutional accumulation. Bearish sweeps work inversely.
█ EMA 200
A 200-period Exponential Moving Average provides directional
bias context. The EMA line changes color based on whether
price is above (cyan, bullish bias) or below (red, bearish
bias). The info panel displays the EMA relationship as an
additional confluence filter.
When structure direction and EMA200 bias conflict (e.g.,
bullish structure but price below EMA200), the setup carries
lower confluence. When both align, the signal is stronger.
█ SESSION HIGHLIGHTING
Trading sessions are displayed as small colored squares at the
bottom of the chart:
Tokyo (09:00–15:00)
London (16:00–21:00)
New York (21:00–02:00)
Session times are adjustable and timezone-aware. This non-
intrusive display helps identify which session produced each
structural break.
█ INFO PANEL
A real-time table in the top-right corner displays:
Bias (Long/Short based on structure direction)
EMA200 position (Above/Below)
Current active session
Structure direction (Bullish/Bearish)
Swing Lookback value in use
█ WHAT MAKES THIS ORIGINAL
This indicator combines several concepts into a unified
structure-reading system:
1 — Hybrid pivot + tracking approach: After a pivot confirms,
the script continues tracking real-time highs/lows to compensate
for pivot detection delay. This is not standard in most SMC
indicators, which rely solely on pivot confirmation.
2 — Confirmed-candle logic throughout: All BoS, MSS, and Sweep
detections use close , ensuring zero repainting.
3 — MSS candidate + BoS target as live projection lines:
Rather than only marking historical events, the script projects
forward where the next structural break or reversal would occur.
4 — Sweep as a distinct event: Most SMC indicators treat sweeps
as part of BoS/CHoCH logic. This script separates sweep
detection (wick-based liquidity grab) from structural breaks
(body-based), allowing traders to distinguish between the two.
█ SETTINGS
Swing Lookback — Number of bars left and right to confirm
a pivot point. Lower values (3–4) detect more frequent swings.
Higher values (6–10) detect only major structure. Adjust based
on timeframe and instrument.
EQH/EQL Tolerance — Maximum percentage difference between
two pivot highs (or lows) for them to count as "equal."
Default: 0.05%.
Session Timezone — Adjusts session highlighting. Options:
Asia/Tokyo, Asia/Shanghai, UTC, America/New_York, Europe/London.
All visual elements (colors, visibility toggles) are individually
configurable in the settings panel.
█ USAGE NOTES
Works on any instrument (Forex, Commodities, Crypto, Indices)
Works on any timeframe — adjust Swing Lookback accordingly
BoS and MSS labels appear one bar after the signal bar
Designed as an overlay indicator — apply directly to chart
Indicador

AlphaX Consolidation Engine Squeeze Detection Breakout SignalsAlphaX Consolidation Engine — Squeeze Detection, Breakout Signals & Range Intelligence
AlphaX Consolidation Engine is a professional-grade volatility and range analysis system built on a proprietary 5-Factor Consolidation Scoring engine. It identifies low-volatility compression zones, tracks range boundaries in real-time, and delivers high-probability breakout signals governed by institutional-grade confluence filters. Designed for traders who want to capture explosive moves after periods of market calm on instruments like XAUUSD, indices, and forex majors.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📸 Visual Overview
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Consolidation Engine — How It Works
At the core of AlphaX Consolidation Engine is the 5-Factor Consolidation Score — a proprietary composite metric calculated on every bar to determine if the market is truly compressing or just moving sideways. It evaluates five independent volatility and trend factors:
ATR Percentile — Measures if current volatility is historically low compared to recent price action
Bollinger Band Width — Detects price compression via narrowing band width percentiles
TTM Squeeze — Confirms energy building when Bollinger Bands sit inside Keltner Channels
Linear Regression Slope — Mathematically confirms flat price movement (lack of directional bias)
ADX Filter — Validates the absence of a strong trend (ranging market confirmation)
Each factor contributes to a score from 0 to 100. When the score exceeds the threshold (default 50), the market is marked as Consolidating .
The system then tracks the Active Range — the high and low boundaries established during the consolidation period. This range is visually displayed as a shaded box with dotted boundary lines.
Consolidation Zone expanding as price compresses — darker shading indicates higher confidence
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Four Signal Layers
AlphaX Consolidation Engine produces four distinct types of signals, each with a specific role in the trade lifecycle:
1 ─ Consolidation Zones (Shaded Boxes)
Shaded boxes with dashed borders marking confirmed consolidation areas
These are not entry signals but context markers . When a box appears, it tells you the market is building energy. The box expands dynamically as the range widens during compression. When the box border changes color (Green for Bull, Red for Bear), it indicates a breakout has occurred.
Green Box — Bullish consolidation context
Red Box — Bearish consolidation context
Gray/Neutral — Forming or weak consolidation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2 ─ Breakout Labels ( ▲ / ▼ )
www.tradingview.com
Primary breakout labels appearing when price escapes the consolidation range with confidence
These are the primary entry signals . A label appears when price closes beyond the range boundary with sufficient momentum and volume.
How the breakout is detected:
Price closes beyond Range High/Low + ATR Threshold
Candle body is strong (no weak wicks)
Volume confirms the move (optional filter)
Confidence Score meets minimum threshold
Once a breakout label fires, it sets the directional bias . The system then switches from "Range Tracking" mode to "Trend Follow" mode for that specific setup.
▲ Green Label (Bull Breakout) — Dark text on bright green background for maximum readability
▼ Red Label (Bear Breakout) — White text on deep red background for maximum readability
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
3 ─ Retest Entries ( ▲ RETEST / ▼ RETEST )
Secondary entry signals appearing when price pulls back to the breakout level and holds
Breakouts often fake out before continuing. The Retest Engine monitors for price returning to the breakout level (old range high/low) within a configurable window.
▲ RETEST (Teal) — Price pulled back to bull breakout level, held support, and confirmed with bullish candle
▼ RETEST (Light Red) — Price rallied back to bear breakout level, rejected resistance, and confirmed with bearish candle
Retest signals often offer better risk-to-reward than the initial breakout because the stop loss can be placed tighter around the retest candle.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4 ─ Exit Markers ( ✕ )
Small X marks indicating where the system detects trend exhaustion or reversal — time to consider taking profit
Exit signals appear as small marks and fire only after an entry has occurred. This prevents premature exit markers from cluttering the chart during strong trends.
TRAIL — Price hit the dynamic ATR trailing stop
FAILED — Price re-entered the original consolidation range (failed breakout)
FLIP — Opposite breakout signal fired (trend reversal)
Exit markers indicate that the trade thesis is no longer valid . Use them to close positions or tighten stops manually.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 Multi-Confluence Confidence Scoring
Every breakout signal is scored by a real-time confidence engine that evaluates multiple independent factors and produces a score from 0 to 100. Only signals meeting your configured Min Breakout Confidence % threshold are displayed.
The scoring factors include:
Squeeze Quality (up to 20 points)
Was the TTM Squeeze active immediately before breakout?
Higher scores for breaks occurring after prolonged squeeze conditions
Consolidation Quality (up to 15 points)
How high was the 5-Factor Consolidation Score during the range?
Scores higher for "Extreme" or "Strong" consolidation zones vs "Weak" ones
Duration Bonus (up to 10 points)
Longer consolidation periods typically yield stronger breakouts
Scores increase for ranges lasting >15 bars
Volume Confirmation (up to 15 points)
Volume on the breakout bar relative to the 20-bar average
Volume bias during consolidation (Accumulation vs Distribution) adds/subtracts points
Momentum Alignment (up to 17 points)
MACD Histogram direction and strength
EMA Alignment (Fast vs Slow)
RSI position (not overextended)
Candle Quality (up to 5 points)
Body-to-range ratio of the breakout candle
Strong bodies score higher than wicky candles
Penalty Deductions
RSI overextension (already too high/low) — up to -8 points
Contradicting Volume Bias — up to -12 points
EMA against trend — up to -5 points
The default minimum confidence is set to 35% — optimized to filter noise while capturing valid setups. Increase to 50–60% for higher probability but fewer signals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡 Range Intelligence & Volume Bias
Understanding what happened inside the range is key to predicting the breakout direction. AlphaX Consolidation Engine tracks volume flow during consolidation:
Accumulation — More bullish volume during consolidation suggests upward breakout probability
Distribution — More bearish volume during consolidation suggests downward breakout probability
Neutral — Balanced volume suggests a wait-and-see approach
This bias is factored into the Confidence Score. A bullish breakout with bearish accumulation bias receives a penalty, reducing the likelihood of a false signal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Choppy / Ranging Markets — When NOT to Trade
Knowing when to stay out is just as important as knowing when to enter. AlphaX Consolidation Engine is designed to help you identify the chop so you can trade the break.
How to identify low-probability conditions:
No Consolidation Box — If the 5-Factor Score never reaches threshold, the market is too noisy. No box = no edge.
Low Confidence Scores — If breakout labels rarely appear, the market lacks directional conviction.
Frequent "FAILED" Exits — If multiple breakouts immediately re-enter the range, the market is still ranging despite brief spikes.
Dashboard Shows "NEUTRAL" — If Vol Bias and Momentum are conflicting, wait for clarity.
What to do during low-confidence periods:
Do not force entries — wait for the Consolidation Score to rise
Wait for the Confidence Score on the breakout label to exceed 50%
Look for the Retest signal instead of the initial breakout for better confirmation
Consider switching to a higher timeframe to find the broader range structure
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Dashboard Intelligence
A comprehensive dashboard provides real-time metrics at a glance:
Consol Score — Current 5-Factor score (0-100) and intensity (Weak/Mod/Strong/Extreme)
State — Active, Forming, or None
TTM Squeeze — Status and bar count
Range Info — High/Low levels, Width in ATR, Price Position %
Vol Bias — Accumulation vs Distribution percentage
Momentum — RSI, MACD, EMA Trend status
Breakout Conf — Current Bull/Bear confidence scores and tiers (S/A/B)
Trade Status — Position direction and Open P&L
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Consolidation Engine — Step by Step
Step 1 — Identify Consolidation
Wait for a shaded Consolidation Box to appear
Check the Dashboard: Is Consol Score > 50? Is Squeeze ON?
If no box → do not trade. Wait for compression.
Step 2 — Wait for Breakout Label
A Green ▲ or Red ▼ label appears when price escapes the box
Check the Confidence % on the label (e.g., "A 65%")
If confidence is below your minimum → wait.
www.tradingview.com
Complete trade flow: Consolidation Box → Breakout Label → Retest → Exit
Step 3 — Enter on Breakout or Retest
Aggressive: Enter on the Breakout Label close
Conservative: Wait for the RETEST label after the breakout
Place stop loss below the breakout candle or opposite side of the range
Step 4 — Manage with Trailing Stop
The system plots a dynamic trailing stop line (stepped line)
Stay in the trade as long as price does not cross the line
Add to position on additional Retest signals if trend is strong
Step 5 — Exit on Signal
When a ✕ mark appears, the system detects exhaustion or reversal
Close position or tighten stop manually
Wait for the next Consolidation Box to form for the next cycle
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 Proprietary 5-Factor Consolidation Scoring (ATR, BB, KC, LR, ADX)
☁ Dynamic shaded consolidation zones with auto-expanding boundaries
🏷 Confidence-scored breakout labels (S/A/B Tier) with readable text colors
▲▼ High-probability retest entries after breakout confirmation
✕ Smart exit markers (Trail/Failed/Flip) to protect profits
🧠 Multi-factor confidence scoring — squeeze, volume, momentum, candle quality
📊 Volume Bias Analysis — tracks accumulation vs distribution inside ranges
📈 Comprehensive Dashboard — real-time range, momentum, and trade stats
🎨 Cohesive dual-tone color theme — Green for bull, Red for bear, Gray for neutral
🔔 15+ alert conditions — consolidation, squeeze, breakouts, retests, and exits
⚙ Fully configurable — all scoring weights, thresholds, and visuals adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Consolidation Detection
ATR / BB / KC Periods — Core volatility calculation lengths
Squeeze Percentile — Threshold for defining "low volatility"
Min Consolidation Bars — Minimum bars required to confirm a range
LR Slope Threshold — Sensitivity for detecting flat price action
Breakout Settings
Breakout ATR Threshold — How far price must close beyond range
Breakout Volume Ratio — Minimum volume required on breakout bar
Min Breakout Confidence % — Filter for signal quality (Default 35%)
Require Close Beyond Range — Prevents wick fake-outs
Momentum Confirmation
RSI / MACD / EMA Periods — Used for confidence scoring
RSI Levels — Overbought/Oversold thresholds for scoring penalties
Exits
Trailing Stop ATR Multiple — Distance for dynamic stop loss
Exit on Re-Enter Range — Close trade if price falls back into consolidation
Exit on Opposite Breakout — Close trade if reverse breakout occurs
Appearance & Dashboard
Show Consolidation Zones / Lines / Dots — Toggle visual elements
Label Size / Dashboard Text — Adjust readability
Colors — Fully customizable bull/bear/neutral palette
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
Consolidation Detected — Fires when a new range is confirmed
Squeeze Activated / Released — TTM Squeeze state changes
Extreme Squeeze — Consolidation Score > 80
S/A/B-Tier Bull/Bear Breakout — Confidence-based breakout alerts
Bull/Bear Retest Entry — Pullback entry signals
Any Exit — Trail, Failed, or Flip exit signals
All alert messages include {{ticker}} and {{interval}} placeholders for clean webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Default Settings — Optimized For
The default configuration is specifically tuned for XAUUSD (Gold) and Major Indices on the 5-minute timeframe :
Confidence threshold at 35% filters out low-quality noise while keeping valid setups
ATR and BB periods calibrated for intraday volatility profiles
Volume filters enabled to prevent low-liquidity fakeouts
Trailing stop set to 2.0 ATR for breathable trend following
For other instruments or timeframes, adjust:
Higher timeframes (1H, 4H) — Increase Min Confidence to 45–55%, increase ATR periods
Forex majors — Reduce Min Confidence to 25–30%, enable Strict Volume Filters
Crypto — Increase ATR Thresholds (higher volatility), increase Trailing Stop multiple
Less noise — Increase Min Confidence %, Increase Min Consolidation Bars
More signals — Decrease Min Confidence %, Disable Volume Filters
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Breakout Traders — Specifically designed to capture volatility expansions after compression
📉 Range Traders — Visual boxes help identify support/resistance boundaries clearly
📊 Index & Gold Traders — Tuned for assets with distinct consolidation/expansion cycles
🧠 Systematic Traders — Confidence scoring provides a quantitative framework for entry selection
📈 Traders who value clean charts — No indicator soup. Boxes, labels, and a dashboard.
⚠ Traders who struggle with choppy markets — The 5-Factor Score physically prevents signals during low-quality ranges
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All calculations are non-repainting — signals are confirmed on bar close
Dashboard updates on the last bar only for performance optimization
Maximum 500 labels and 500 bars lookback are used — on very low timeframes, oldest labels may be automatically removed by TradingView's rendering limits
Volume Bias requires volume data — may be less accurate on forex pairs without tick volume
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 demand clarity, confidence, and precision from their charts. Indicador

Indicador

GOLD ONLY SETUP BY RAVI GUPTA**📡 Trade Vidya Broadcast Tool — Powered by Experience**
The *Trade Vidya Broadcast Tool* is a premium manual trade visualization indicator designed for traders who want to present their market views with clarity, precision, and authority.
This tool allows you to display your complete trade plan directly on the chart — including Entry, Stop Loss, and multiple Target levels — with a clean, professional interface. Whether you are sharing setups with your trading community, students, or audience, this indicator helps you communicate your strategy in a structured and visually powerful way.
🔹 **Key Highlights:**
* Manual trade planning with full control
* Clear Entry, Stop Loss & Target visualization
* Dedicated Trade Logic panel to explain market reasoning
* Clean dashboard for quick trade summary
* Designed for live sharing, teaching, and signal broadcasting
Built for serious traders, this tool ensures that your analysis is not just accurate, but also presented with confidence and professionalism.
👤 **About the Creator**
This indicator is powered by **Ravi Gupta**, a dedicated market participant with over **8 years of experience** in trading and market analysis. His practical insights and real-market understanding are embedded into the structure and usability of this tool, making it highly effective for both learning and execution.
---
💎 *Trade Smart. Trade Clear. Trade with Trade Vidya.*
Indicador

Indicador

TPrecision MARKET PULSE Read the Energy, Not the DirectionHere's the full TradingView description text, ready to paste:
MARKET PULSE — Read the Energy, Not the Direction
Every indicator you've ever used tells you the same thing: which way price might go. RSI, MACD, stochastics — they're all measuring direction in different ways. Market Pulse does something fundamentally different. It measures the energy state of the market — the rhythm underneath price that exists before any move happens.
The concept is simple: markets breathe. Before every significant move, price compresses — ranges tighten, candles shrink, volatility collapses inward. The market is inhaling. Then it exhales. Price erupts, ranges expand, energy releases. Market Pulse makes that cycle visible in real time across four components stacked in a single clean pane.
BREATH (top section — blue/amber line)
This is the core reading. True range normalized against its own long-term average, so 1.0 always means "normal." When the line drops below the blue band (0.7), the market is compressing — inhaling, coiling, building potential energy. When it rises above the amber band (1.3), the market is expanding — exhaling, releasing, moving with conviction. A breath line that stays flat and low for many consecutive bars is the most important signal this indicator produces. That is a spring being loaded.
RHYTHM (middle section — green/red histogram)
Rhythm measures the rate of change of breath. Are we expanding faster than we were, or compressing faster? Green bars above the midline mean expansion is accelerating — the exhale is gaining momentum. Red bars below mean compression is deepening — the coil is getting tighter. The most powerful moment is when rhythm crosses from red to green after a prolonged compression period. That is the first sign the exhale has begun.
TENSION (bottom section — gradient fill)
Every bar that breath spends below 1.0 (below-normal range) accumulates tension. The fill builds from blue to amber as pressure increases. High tension means the spring has been coiled for a long time and release is statistically overdue. Tension does not decay instantly — it bleeds out slowly on expansion bars, reflecting how energy releases gradually after a long coil. When tension is at its peak and breath is still compressed, you are looking at maximum potential energy in the market.
PULSE RATE (dotted circles — overlay on breath section)
This tracks the average interval between breath peaks — how fast energy cycles are completing. When the dots are high, cycles are churning quickly (active, volatile market). When dots drop, cycles are slowing down. A decelerating pulse rate often precedes market exhaustion, regime change, or a significant transition in character. It is the one component that operates on a longer timescale than the others.
BACKGROUND ALERTS
🔵Blue background tint — Tension above 75% AND breath compressed below 0.7. The coil is tight. Maximum potential energy. The market is wound up.
🟠Amber background tint — Breath above 1.3 AND rhythm positive. Active release in progress. Energy is being deployed.
HOW TO USE IT
This indicator does not tell you to buy or sell. It tells you what state the market is in so you can make better decisions with whatever strategy you already use.
Use it to avoid trading in the wrong state — entering a trend trade during deep compression usually means getting chopped. Entering a range trade during active expansion means getting run over.
Use it to time entries on your existing signals — a buy signal that fires while tension is at extreme highs and breath is turning up is a very different trade than the same signal firing in a neutral state.
Use it to identify when something is about to happen — not what, but when the energy conditions are right for a significant move.
Use it across timeframes — compression on the daily while expansion fires on the 4H often means a powerful intraday move within a larger coiling structure.
SETTINGS
Base Period (default 20) — The lookback for ATR and breath calculation. Higher values = smoother, slower readings. Lower = more reactive.
Smoothing (default 5) — Applied to all components. Increase to reduce noise on lower timeframes.
Tension Lookback (default 50) — How far back tension and rhythm normalize themselves. Higher = tension builds more slowly, more selective extremes.
Pulse Rate Period (default 10) — How many breath cycles to average for the pulse rate calculation.
WORKS ON
All markets (Forex, Crypto, Equities, Futures, Indices) — All timeframes — Pine Script v6
This is not a signal generator. It is a market state reader. Learn the rhythm before you trade the move.
👉 Join the community, ask questions, share setups: discord.gg/8H4qdBDaEu Indicador

[ A L P H A X ] Bollinger/Keltner Volatility Pressure SystemAlphaX Volatility Pressure System — Bollinger/Keltner Squeeze Detection, Linear Regression Forecast, Multi-Confluence Band Touch Signals, Volatility Regime Classification & Institutional Dashboard
AlphaX Volatility Pressure System (VPS) is a professional-grade volatility analysis and signal system built on the interaction between Bollinger Bands and Keltner Channels — the foundation of squeeze-based trading. It combines a proprietary multi-layer squeeze engine, linear regression band forecasting, a six-factor confluence scoring system, and a comprehensive real-time dashboard into a single cohesive overlay. Designed and default-tuned for XAUUSD (Gold) on the 1-minute timeframe, fully adaptable to any instrument or timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📸 Visual Overview
The indicator displays Bollinger Bands as a gradient cloud, Keltner Channel boundaries as dotted lines, squeeze status dots on the basis line, a projected forecast envelope extending into the future, confidence-scored entry signals at band touches, mean reversion exit markers, and a full diagnostic dashboard — all in a clean, non-cluttered layout with a consistent yellow-green / red / gray color theme.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Volatility Pressure Architecture — How It Works
At the core of AlphaX VPS is the principle that volatility is cyclical — periods of compression (low volatility) are followed by periods of expansion (high volatility), and vice versa. The system detects exactly where you are in this cycle and provides actionable intelligence at every stage.
The system operates through seven integrated layers:
Layer 1 — Bollinger Bands (Volatility Envelope)
A Simple Moving Average (SMA) basis line with standard deviation bands above and below
Default: 30-period SMA with 2.2x multiplier — tuned for gold's micro-noise on 1-minute charts
The bands expand during volatile moves and contract during consolidation
Price touching or piercing the outer bands represents statistical extremes — potential reversal zones
The space between upper and lower bands is rendered as a gradient cloud that shifts color based on price position relative to the basis — yellow-green when price is above basis (bullish pressure), red when below (bearish pressure)
Layer 2 — Keltner Channels (ATR Volatility Wrapper)
An Exponential Moving Average (EMA) center line with Average True Range (ATR) bands
Default: 30-period EMA with 1.8x ATR multiplier using 20-period ATR — calibrated for gold
Keltner Channels represent the "normal" volatility range based on true range, while Bollinger Bands represent statistical deviation — the relationship between them reveals compression and expansion states
Plotted as subtle dotted lines at the channel boundaries for clean visual reference without chart clutter
Layer 3 — Squeeze Engine
Squeeze ON — detected when Bollinger Bands contract inside the Keltner Channel (BB upper < KC upper AND BB lower > KC lower). This means volatility has compressed below normal levels — a spring is being loaded
Squeeze Release — the first bar where BB breaks back outside KC after a squeeze period. This is the explosive moment where the compressed energy releases into a directional move
Squeeze status is displayed as colored dots on the BB basis line: red dots during active squeeze, yellow-green dots on squeeze release, gray dots during normal conditions
Squeeze Momentum — a John Carter-style linear regression calculation determines the direction of the squeeze release: bullish momentum (price likely to break upward) or bearish momentum (price likely to break downward)
Squeeze release events generate flash markers on the chart: "⚡ SQ↑" for bullish releases, "⚡ SQ↓" for bearish releases
The dashboard tracks how many of the last 20 bars were in squeeze state — prolonged squeezes (12+ bars) tend to produce the most explosive releases
Layer 4 — Linear Regression Forecast
A forward-looking projection of the Bollinger Band envelope using linear regression slopes
The system calculates the current slope of both the BB basis and the BB deviation, then projects them forward by the configured number of bars (default: 20 bars = 20 minutes on 1-minute chart)
The projection is smoothed using a weighted blend from current values to forecasted values, preventing jarring visual jumps
Displayed as a projected envelope with upper, basis, and lower forecast lines, plus a filled forecast cloud
Forecast color reflects projected direction: yellow-green if the basis is projected to rise, red if projected to fall
Price labels at the forecast endpoints show the projected upper and lower band values — giving you concrete target levels
A minimum bandwidth floor prevents the forecast from collapsing to zero during extreme compression
Layer 5 — Trend EMA
A 100-period Exponential Moving Average provides macro trend context
Color-coded: yellow-green when price is above (bullish structure), red when below (bearish structure)
The EMA slope direction (rising vs. falling over 3 bars) is factored into the confluence scoring system
Acts as a structural filter — signals aligned with the EMA trend receive bonus confidence, signals against it receive penalties
Layer 6 — RSI Filter
A 14-period Relative Strength Index provides momentum confirmation
Oversold threshold at 30, overbought at 70 — stricter than typical settings to filter gold noise
RSI must be in a supportive zone for signals to fire: below 45 for bullish signals, above 55 for bearish signals
Deeply oversold or overbought RSI readings contribute up to 15 points to the confluence score
Layer 7 — Volatility Regime Classification
The system continuously classifies the current market state into one of five regimes:
SQUEEZE 🔴 — BB inside KC, volatility compressed, spring loading
RELEASE ⚡ — first bar after squeeze ends, explosive move initiating
EXPANSION 📈 — bandwidth increasing and price trending directionally
COMPRESSION — bandwidth decreasing, volatility contracting
RANGING — no clear volatility trend, sideways movement
The current regime is displayed prominently in the dashboard and influences signal generation — signals during active squeeze are blocked entirely
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Signal System — Band Touch Signals
AlphaX VPS generates two types of chart signals: Entry Signals at band extremes and Exit Markers at mean reversion.
Entry Signals ( ⬆ / ⬇ )
Entry signals appear when price touches or pierces a Bollinger Band while multiple confluence factors align to confirm a high-probability reversal setup.
Bullish Entry (⬆) — a yellow-green label below the bar indicating a potential long opportunity:
Price touches or pierces the lower Bollinger Band
Confluence score meets the minimum confidence threshold (default: 60%)
RSI is below 45 (supportive of oversold bounce)
Volume is above average (institutional participation confirmed)
A swing low structure is present near the band (not just a random wick)
Candle shows bullish rejection — either a bullish close or a long lower wick (>50% of candle range)
Market is NOT in active squeeze (signals blocked during compression)
Cooldown period has elapsed since last bullish signal (default: 15 bars)
Bearish Entry (⬇) — a red label above the bar indicating a potential short opportunity:
Price touches or pierces the upper Bollinger Band
Confluence score meets the minimum confidence threshold
RSI is above 55 (supportive of overbought reversal)
Volume is above average
A swing high structure is present near the band
Candle shows bearish rejection — either a bearish close or a long upper wick
Market is NOT in active squeeze
Cooldown period has elapsed since last bearish signal
Each signal label displays the tier rating and confidence percentage :
S-Tier (80%+) — exceptional setup, maximum confluence — highest probability
A-Tier (70–79%) — strong setup, most factors aligned
B-Tier (60–69%) — decent setup, adequate confluence for a trade with proper risk management
Signals below B-Tier are automatically filtered out and never displayed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Exit Markers ( ✕ )
After an entry signal fires, the system tracks position direction and monitors for mean reversion to the BB basis line :
Long Exit ✕ — appears when price crosses back above the BB basis after a bullish entry, indicating the mean reversion target has been reached
Short Exit ✕ — appears when price crosses back below the BB basis after a bearish entry, indicating the mean reversion target has been reached
Exit markers serve as profit-taking signals — the statistical edge of a band touch trade is the reversion to the mean (basis line). Once price reaches the basis:
Take partial or full profit
Tighten stop loss to breakeven
Wait for the next band touch signal before re-entering
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 Multi-Confluence Confidence Scoring System
Every entry signal is evaluated by a real-time scoring engine that produces a confidence percentage from 0% to 100%. This is not a simple threshold check — it is a weighted multi-factor assessment that rewards alignment and penalizes contradiction.
Scoring Factors — Bullish Signals:
Band Touch Quality (up to 20 points)
How deeply price pierced the lower Bollinger Band
Pierce depth >5% of band width = 20 points (strong penetration)
Any pierce = 15 points
Near-touch (within 0.1%) = 10 points
%B Position (up to 10 points)
Bollinger %B measures where price sits within the band range (0 = lower band, 1 = upper band)
%B below 0 (outside lower band) = 10 points
%B below 0.05 = 8 points
%B below 0.15 = 5 points
RSI Depth (up to 15 points)
RSI below 20 = 15 points (deeply oversold)
RSI below 25 = 12 points
RSI below 30 = 10 points
RSI below 40 = 3 points
EMA Trend Alignment (up to 10 points)
Price above 100 EMA AND EMA slope rising = 10 points (full alignment)
Price above 100 EMA only = 5 points
Squeeze Release Confluence (up to 10 points)
Squeeze just released with bullish momentum = 10 points (explosive setup)
Bullish squeeze momentum without active squeeze = 5 points
Candle Rejection Pattern (up to 10 points)
Long lower wick (>50% of range) + bullish close = 10 points (textbook rejection)
Long lower wick only = 7 points
Bullish close only = 3 points
Volume Confirmation (up to 10 points)
Above-average volume + bullish close = 10 points (institutional buying)
Above-average volume only = 5 points
MACD Momentum (up to 8 points)
MACD line above signal line OR histogram rising for 2+ bars = 8 points
200 SMA Structure (up to 7 points)
Price above 200 SMA = 7 points (macro trend support)
Penalty Deductions:
Price BELOW EMA trend = -15 points (counter-trend signal)
RSI above 55 = -12 points (momentum doesn't support reversal)
Active squeeze = -8 points (wait for release)
Expanding but directionless = -5 points
No volume spike when volume filter enabled = -5 points
Bearish candle rejection present = -10 points (wrong candle structure)
The same structure applies to bearish signals with inverted logic — upper band touch, overbought RSI, price below EMA, bearish rejection candles, etc.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡 Signal Quality Gates — Why This Indicator Produces Clean Signals
Beyond the confidence score, every signal must pass through six independent quality gates before it can appear on the chart. If any single gate fails, the signal is blocked entirely — regardless of the confidence score:
Gate 1 — Band Touch Gate
Price must actually reach or pierce the Bollinger Band (within 0.1%)
Signals near the middle of the bands are impossible — only statistical extremes qualify
Gate 2 — RSI Zone Gate
Bullish signals require RSI below 45
Bearish signals require RSI above 55
This prevents signals when momentum is neutral or contradictory
Gate 3 — Volume Gate
Volume must exceed the 20-period volume moving average multiplied by 1.2x
Low-volume band touches are often noise — this gate requires institutional participation
Can be toggled off for instruments with unreliable volume data
Gate 4 — Swing Structure Gate
A swing low must be present within the last 3 bars for bullish signals (price formed a local bottom)
A swing high must be present within the last 3 bars for bearish signals (price formed a local top)
This prevents signals on through-band breakdowns where price is accelerating through the band, not bouncing off it
Can be toggled off for faster signal generation
Gate 5 — Candle Confirmation Gate
Bullish signals require either a bullish candle close (close > open) or a bullish rejection wick (lower wick > 50% of total range)
Bearish signals require either a bearish candle close or a bearish rejection wick
This confirms that price is actually rejecting the band level, not just touching it on the way through
Gate 6 — Squeeze Block Gate
No signals fire during active squeeze (BB inside KC)
During squeeze, volatility is compressed and band touches are unreliable — the bands themselves are artificially narrow
Signals resume after squeeze releases
Gate 7 — Cooldown Gate
A minimum of 15 bars (15 minutes on 1-minute chart) must elapse between signals of the same direction
Prevents signal spam during choppy band-walking conditions
This seven-gate architecture is why AlphaX VPS produces significantly fewer but higher-quality signals compared to basic Bollinger Band indicators.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Choppy / Ranging Markets — When NOT to Trade
Knowing when to stay out is just as important as knowing when to enter. AlphaX VPS provides multiple visual cues for choppy, range-bound conditions:
How to identify choppy conditions:
BB Cloud is extremely narrow — when the Bollinger Bands contract tightly, the cloud between upper and lower bands becomes paper-thin. Narrow bands = low volatility = no clean directional moves.
Squeeze dots are RED for extended periods — prolonged red dots on the basis line mean BB is trapped inside KC. While this predicts an eventual explosive move, trading during the squeeze is a losing strategy. Wait for the yellow-green release dot.
Forecast cloud is flat and narrow — if the projected envelope shows no significant expansion or directional slope, the system expects continued compression. No expansion forecast = no trade.
Regime dashboard shows "COMPRESSION" or "RANGING" — the volatility regime classifier explicitly tells you the current state. These regimes have the lowest signal quality.
No signals appearing despite price touching bands — this means the quality gates are doing their job. If you see band touches but no labels, the confluence score is too low or a gate is blocking. Trust the filter.
EMA (100) is flat and price is oscillating around it — no trend, no edge.
Basis distance in dashboard shows very small percentage — price is hugging the basis line, meaning there is no stretched rubber band to snap back. Mean reversion trades need extension first.
What to do during choppy markets:
Do not force trades — wait for squeeze release (yellow-green dot + ⚡ marker)
Watch for the forecast cloud to start expanding and tilting directionally
Monitor the regime dashboard — wait for "RELEASE ⚡" or "EXPANSION 📈" to appear
Consider moving to a higher timeframe where structure may be clearer
Use the squeeze bar counter in the dashboard — once squeeze bars reach 12+/20, the release is likely imminent
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX VPS — Step by Step
Step 1 — Assess Market Regime
Check the dashboard REGIME field: Is it EXPANSION, COMPRESSION, SQUEEZE, or RANGING?
Check the Bollinger Band cloud width: Is it expanded or collapsed?
Check squeeze dots: Red = stay out. Gray = normal. Yellow-green = just released.
If the regime is SQUEEZE or COMPRESSION → do not trade. Wait for RELEASE or EXPANSION.
Step 2 — Monitor the Forecast
Look at the projected envelope ahead of current price
Is the forecast expanding or narrowing? What direction is the basis slope?
A widening forecast with a clear directional slope tells you where the bands are heading
The forecast upper and lower price labels give you concrete projected targets
Step 3 — Wait for a Band Touch Signal
Do not chase price in the middle of the bands — wait for price to reach an extreme
A ⬆ or ⬇ label will appear only when all seven quality gates pass and the confidence score meets your threshold
The label shows the tier (S/A/B) and exact confidence percentage — use this to size your position (higher confidence = larger size)
Step 4 — Enter the Trade
Enter on the signal bar's close (signals are confirmed on bar close, non-repainting)
Place your stop loss beyond the Bollinger Band that was touched (for bullish: below the lower band, for bearish: above the upper band)
Your profit target is the BB basis line (mean reversion target) — the system will mark this with a ✕ when reached
Step 5 — Manage and Exit
Watch for the ✕ exit marker — this appears when price crosses back to the BB basis
Take partial or full profit at the basis line
If price continues past the basis toward the opposite band, you can trail your stop using the basis line as your new stop level
If a new signal appears in the same direction before the exit triggers, it can be used to add to the position
Step 6 — Squeeze Release Trades (Advanced)
When you see the "⚡ SQ↑" or "⚡ SQ↓" release marker, this is a momentum breakout setup
The squeeze release direction (bull/bear) is determined by the squeeze momentum calculation
Enter in the direction of the release
These moves tend to be explosive — use wider stops and larger targets than mean reversion trades
The forecast projection will often show an expanding envelope in the direction of the release — use the forecast band endpoints as extended targets
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 Real-Time Dashboard — Complete Market Intelligence
The dashboard provides a comprehensive snapshot of every metric the system monitors, organized into five sections:
─── VOLATILITY ───
REGIME — Current volatility state (Squeeze / Release / Expansion / Compression / Ranging) with color-coded background
BANDWIDTH — Current BB width as percentage of basis, colored relative to its 50-period average (narrow = green/opportunity, wide = red/extended)
BB %B — Where price sits within the bands (0% = lower band, 100% = upper band). Extreme readings are color-highlighted
SQUEEZE BARS — How many of the last 20 bars were in squeeze (higher = more compressed = bigger expected release)
KC RELATION — Whether BB is inside KC (squeeze), above KC (expansion), or near KC (transition)
─── MOMENTUM ───
RSI — Current RSI value with zone label (OB/OS/HIGH/LOW/MID) and appropriate coloring
EMA — Trend direction based on price vs. 100 EMA and EMA slope (▲ BULL / ▲ RISING / ▼ BEAR / ▼ FALLING)
SQ MOMENTUM — Squeeze momentum direction and strength (▲▲ STRONG UP / ▲ RISING / ▼▼ STRONG DOWN / ▼ FALLING / — FLAT)
MACD — MACD momentum status (▲ BULLISH / ▼ BEARISH / — NEUTRAL)
VOLUME — Whether current volume exceeds the moving average threshold (▲ ABOVE AVG / — NORMAL)
─── CONFIDENCE ───
BULL CONF — Current bullish confluence score with tier rating (S-TIER / A-TIER / B-TIER / C-TIER / LOW)
BEAR CONF — Current bearish confluence score with tier rating
These update in real-time so you can see confluence building before a signal fires
─── FORECAST ───
BASIS SLOPE — Direction the BB basis is heading (▲ RISING / ▼ FALLING / — FLAT)
BAND FORECAST — Whether bands are projected to widen (▲ WIDENING) or narrow (▼ NARROWING) or remain stable
─── STRUCTURE ───
SMA 200 — Price position relative to 200 SMA (▲ ABOVE / ▼ BELOW) — macro trend context
─── TRADE STATE ───
POSITION — Current tracked position direction (▲ LONG / ▼ SHORT / — FLAT) with color-coded background
BASIS DISTANCE — How far price is from the BB basis as a percentage — measures extension and mean reversion potential
Dashboard position (Top Left / Top Right / Bottom Left / Bottom Right) and text size (Tiny / Small / Normal) are configurable.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
📊 Bollinger Bands with gradient trend cloud — instant visual of price position within the volatility envelope
🔷 Keltner Channels with ATR-based boundaries — the volatility reference for squeeze detection
🔴 BB/KC Squeeze Engine — detects compression, tracks squeeze duration, classifies release direction
⚡ Squeeze Release Flash Markers — "⚡ SQ↑" and "⚡ SQ↓" labels mark the explosive moment
🔭 Linear Regression Forecast — projects the band envelope forward with directional slope and price targets
🎯 Multi-confluence band touch signals — six-factor scoring with seven independent quality gates
📐 Volume filter — requires above-average volume for signal confirmation (toggleable)
🏗 Swing structure filter — requires local swing formation near bands (toggleable)
🕯 Candle rejection analysis — wick ratio and close direction confirmation
📈 MACD momentum integration — histogram trend confirmation within the scoring system
📏 200 SMA macro structure — long-term trend context for scoring
📐 100 EMA trend filter — intermediate trend direction and slope analysis
✕ Mean reversion exit markers — automatic profit target detection at the BB basis
🏷 Tiered signal labels — S / A / B tier with confidence percentage for position sizing decisions
📋 22-row real-time dashboard — complete market intelligence across volatility, momentum, confidence, forecast, structure, and trade state
🎨 Cohesive dual-tone color theme — yellow-green for bullish, red for bearish, orange for neutral, gray for inactive
🔔 11 alert conditions — S-Tier, A-Tier, and any-tier for both bull and bear, plus squeeze releases and exits
⚙ Fully configurable — all periods, multipliers, thresholds, colors, gates, and dashboard settings adjustable from the settings panel
🚫 No candle coloring — clean chart by default, your candles remain untouched
📏 Non-repainting — all signals confirmed on bar close
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
📊 Bollinger Bands
BB Length — SMA period for the basis line (default: 30)
BB Multiplier — standard deviation multiplier for band width (default: 2.2)
Source — price source for calculations (default: close)
Show BB Cloud — toggle the gradient band fill
🔷 Keltner Channel
KC Length — EMA period for the center line (default: 30)
KC ATR Multiplier — ATR multiplier for channel width (default: 1.8)
KC ATR Length — ATR calculation period (default: 20)
Show KC Lines — toggle Keltner boundary display
⚡ Squeeze
Show Squeeze Dots — toggle colored dots on the basis line
Alert on Squeeze Release — enable squeeze release alerts
🔭 Forecast
Show Regression Forecast — toggle the projected envelope
Forecast Bars — how many bars forward to project (default: 20)
🎯 Signals
Show Band Touch Signals — master toggle for entry labels
Min Confidence % — minimum confluence score required (default: 60%)
Signal Cooldown — minimum bars between same-direction signals (default: 15)
Show Mean Reversion Exits — toggle ✕ exit markers
📈 RSI Filter
RSI Length — calculation period (default: 14)
RSI Oversold — threshold for oversold scoring bonus (default: 30)
RSI Overbought — threshold for overbought scoring bonus (default: 70)
📐 EMA Trend Filter
Show Trend EMA — toggle the 100 EMA display
EMA Length — EMA period (default: 100)
📊 Volume Filter
Use Volume Confirmation — enable/disable volume gate (default: ON)
Volume Threshold Multiplier — how far above average volume must be (default: 1.2x)
Volume MA Length — period for volume moving average (default: 20)
🏗 Structure Filter
Use Swing Structure Filter — enable/disable swing gate (default: ON)
Swing Lookback — bars to check for swing formation (default: 3)
🎨 Colors
Bull Primary — yellow-green family for all bullish elements
Bear Primary — red family for all bearish elements
Basis / Neutral — orange for basis and neutral elements
Squeeze ON / OFF / Neutral — dot colors for squeeze states
Forecast Bull / Bear — projection envelope colors
Dashboard BG / Text / Neutral — dashboard styling
📋 Dashboard
Show Dashboard — master toggle
Position — corner placement (default: Top Right)
Text Size — Tiny / Small / Normal (default: Small)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
S-Tier Bull Band Touch — fires when a bullish signal with 80%+ confidence appears
A-Tier Bull Band Touch — fires when a bullish signal with 70–79% confidence appears
Any Bull Band Touch — fires on any bullish signal meeting minimum threshold
S-Tier Bear Band Touch — fires when a bearish signal with 80%+ confidence appears
A-Tier Bear Band Touch — fires when a bearish signal with 70–79% confidence appears
Any Bear Band Touch — fires on any bearish signal meeting minimum threshold
Any Band Touch Signal — fires on any entry signal regardless of direction
Squeeze Release — Bullish — fires on bullish squeeze release
Squeeze Release — Bearish — fires on bearish squeeze release
Any Squeeze Release — fires on any squeeze release
Long Exit — Mean Reversion — fires when a long position reaches the BB basis
Short Exit — Mean Reversion — fires when a short position reaches the BB basis
All alert messages include {{ticker}}, {{interval}}, and {{close}} placeholders for webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Default Settings — Optimized For
The default configuration is specifically tuned for XAUUSD (Gold) on the 1-minute timeframe :
BB Length 30 and Multiplier 2.2 — smooths gold's micro-noise and widens bands to reduce false touches
KC Length 30 and ATR Multiplier 1.8 — matched to BB for proper squeeze detection on gold
Confidence threshold at 30% — aggressively filters low-quality signals while keeping genuine setups
Cooldown at 4 bars (4 minutes) — prevents signal spam during volatile gold transitions
Volume filter enabled with 1.2x threshold — confirms institutional participation
Swing structure filter enabled — requires actual price structure, not random wicks
100 EMA provides ~1.5 hours of trend context on 1-minute
20-bar forecast projects 20 minutes ahead — practical for scalping decisions
For other instruments or timeframes, adjust:
Higher timeframes (5m, 15m, 1H) — reduce BB Length to 20–25, reduce confidence to 45–55%, increase forecast bars to 30–50
Forex majors (EURUSD, GBPUSD) — reduce BB Multiplier to 2.0, reduce KC ATR Multiplier to 1.5, keep confidence at 50–60%
Indices (NAS100, US30, SPX500) — use defaults or increase BB Length to 35–40 for broader structure
Crypto (BTCUSD, ETHUSD) — increase BB Multiplier to 2.5, increase cooldown to 20–25 bars due to higher volatility
Less noise / fewer signals — increase Min Confidence to 70%+, increase Cooldown, enable all gates
More signals / aggressive scalping — decrease Min Confidence to 40–50%, reduce Cooldown to 8–10, disable Swing Structure gate
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Gold (XAUUSD) scalpers and intraday traders — built and default-tuned specifically for gold's volatility, noise profile, and session structure
📊 Bollinger Band traders — if you trade band touches and mean reversion, this system adds institutional-grade filtering to your existing strategy
⚡ Squeeze traders — the BB/KC squeeze engine with momentum direction and release markers provides a complete squeeze trading system
📉 Forex and index traders — applicable to all major instruments with minor setting adjustments
🧠 Systematic traders — the confidence scoring system provides a quantitative framework for position sizing and trade selection
📈 Traders who value clean charts — no indicator clutter, no candle painting, no overlapping signals. One cohesive system with consistent color coding
⚠ Traders who struggle with overtrading — the seven quality gates physically prevent low-quality signals from appearing. You cannot overtrade what you cannot see
🔭 Forward-looking traders — the regression forecast gives you a projected roadmap that most indicators do not provide
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All calculations are non-repainting — signals are confirmed on bar close only
The linear regression forecast updates on each new bar — the projection is a mathematical estimate, not a guarantee of future price action
Volume filter uses the volume data provided by your broker/data feed — for instruments or exchanges with unreliable volume, consider disabling the volume gate
The 200 SMA used in scoring requires 200 bars of history to calculate — on very short chart histories, this factor may not contribute to early signals
Maximum 500 labels per chart are supported by TradingView — on very low timeframes with extended history, oldest labels may be automatically removed
The forecast polyline uses TradingView's polyline drawing objects — a maximum of 100 polylines are allocated
Dashboard uses a table object that updates on the last bar — it reflects real-time values on live charts
Squeeze momentum calculation uses the John Carter method — linear regression of the midline-basis deviation over the BB length
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 demand clarity, precision, and institutional-grade filtering from their volatility analysis. Indicador

Indicador

Indicador

Estrategia

APEX ELITE . 2━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◈ APEX ELITE . 2
Open Source Pine Script v6 · Panel-Only Edition · Zero Chart Clutter
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ NOT FINANCIAL ADVICE — See full disclaimer at the bottom.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT IS APEX ELITE?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
APEX ELITE is a single, unified intraday dashboard that replaces what would otherwise require 8 or more separate indicators. Everything runs internally and surfaces through one clean, color-coded panel. Your chart stays completely uncluttered — no extra lines, no overlapping boxes, no noise.
Built specifically for intraday traders who need instant situational awareness:
→ Is there a signal right now?
→ What is the trend across multiple timeframes?
→ Where are the key levels?
→ How strong is the current edge?
All of that — answered in a single glance at the panel.
🔑 Key principles:
• All signals fire on confirmed bars only — zero repainting
• 12+ factors combine into one composite score before any signal fires
• Session clock tracks 8 intraday phases so you always know the market context
• Compact Mode available for smaller screens
• 22 configurable alert conditions built in
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE 12 MODULES — COMPLETE BREAKDOWN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ BLOCK A — SIGNAL COMMAND
───────────────────────────
The top block of the panel. Shows the current signal state in large text — ▲ CALL SIGNAL, ▼ PUT SIGNAL, or ● WATCHING — along with the live composite edge score and directional bias.
• Signal State: CALL / PUT / WATCHING — updates every confirmed bar
• Edge Direction: BULL / BEAR / NEUT with score out of 100 (e.g. "BULL 82/100")
• Edge Bar: 10-block visual bar showing edge % (████████░░)
• Bull / Bear pts: Raw scores shown side-by-side for comparison
The background color of this row changes: green for CALL, red for PUT, neutral for watching.
▸ BLOCK B — INTRADAY LEVELS
────────────────────────────
Every key price level an intraday trader needs, all in one place.
• VWAP Zone: Which of 6 zones price is in — Above +2σ / +1→+2σ / VWAP→+1σ / -1→VWAP / -2→-1σ / Below -2σ
• VWAP Distance: Real-time % distance of close from VWAP (e.g. +0.42% dist)
• PMH / PML: Pre-Market High and Low — the most important intraday reference levels. A break of PMH or PML triggers the maximum +20 trigger points.
• FCH / FCL: First Candle High and Low (configurable: 1/2/3/5/15 min). Also shows the first candle's range as a %.
• Supply / Demand: Nearest unmitigated supply zone above price and demand zone below price — with total active zone count.
• Level Break: Live readout when PMH, PML, FCH, or FCL is broken on the current bar.
▸ BLOCK C — MOMENTUM STACK
───────────────────────────
A complete multi-timeframe picture of trend alignment.
• SMA 9 (cyan): Short-term momentum MA. Above = bullish micro trend.
• SMA 21 (gold): Medium momentum MA. The primary intraday trend filter.
• SMA 50 (orange): Intermediate trend. Pullback entries reference this level.
• SMA 200 (red): Long-term macro trend. Above = bull market context.
• MA Alignment: Count of MAs on each side (e.g. 4/4 bull). Full stack = strongest signal.
• MA Stack Order: Full Bull Stack confirmed when 9 > 21 > 50 > 200 all correctly ordered.
• EMA Ribbon: EMA 8 vs EMA 21 — ribbon direction shows short-term momentum.
• MTF Alignment: Per-timeframe arrows (▲5m ▲15m ▼1h) — instantly see each TF at a glance.
• Daily Context: Daily EMA 9 vs EMA 21 — trade with the daily trend for the highest quality setups.
Tip: MTF 3/3 aligned + MA 4/4 bull + daily EMA bull = the highest conviction entries.
▸ BLOCK D — MARKET STRUCTURE
──────────────────────────────
The highest-conviction trigger events in the system.
• Liquidity Sweep: Price briefly violates a 20-bar extreme before reversing — a classic stop hunt. Tracks age in bars (e.g. "▲ Bull (3b ago)").
• Structure Break (MSB): Close crosses a confirmed 10-bar pivot high or low. The strongest directional confirmation. Also tracks age.
• Squeeze: Bollinger Bands contracting inside Keltner Channels = coiling volatility. Shows bars coiling. Fires on expansion.
• Squeeze Momentum: Rising / Falling / Flat direction of momentum during the squeeze.
• ADX: Average Directional Index — Strong (>30) / Trending (20-30) / Choppy (<20).
• DI+ / DI-: Split readout showing directional pressure.
Both Sweeps and MSBs add the maximum trigger bonus (+20 pts) to the score.
▸ BLOCK E — RISK ENGINE
────────────────────────
Everything needed to size and manage a trade the moment a signal appears.
• ATR 14: 14-period Average True Range — raw volatility in price points.
• Stop 1× / 1.5× / 2×: Three stop-loss distances pre-calculated simultaneously. Choose based on your risk tolerance.
• Volume Ratio: Current volume as a multiple of the 20-bar average (e.g. 1.8× avg).
• Volume: "▲ SPIKE" label when volume clears your configured threshold. "Normal" otherwise.
• RSI 14: 14-period RSI with contextual labels — OB (>70), OS (<30), Elevated, Depressed, Neutral.
▸ BLOCK F — LIQUIDITY HEATMAP
( Inspired by BigBeluga — Dynamic Liquidity HeatMap Profile )
──────────────────────────────────────────────────────────────
This module is inspired by the methodology from BigBeluga's excellent Dynamic Liquidity HeatMap Profile indicator. It uses ATR-normalized, volume-weighted pivot analysis over a configurable lookback (default 300 bars) to determine whether buy-side or sell-side liquidity is dominant.
• Liq Bias: Buy-Side / Sell-Side / Balanced — with dominant side percentage (e.g. "Buy-Side 73%")
• Vol Intensity: Graphical bar (▓▓▓░░) showing current volume activity as % of the 300-bar max
• Score Impact: +5 bull score when buy-side > 60% · +5 bear score when sell-side > 60%
Full credit to BigBeluga for the original concept. Please visit and support their work.
▸ BLOCK G — REVERSAL PROBABILITY ZONE
( Inspired by LuxAlgo — Reversal Probability Zone & Levels )
──────────────────────────────────────────────────────────────
This module ports the exact algorithmic core of LuxAlgo's Reversal Probability Zone & Levels indicator. It builds two separate databases of historical swing moves — one bullish, one bearish — tracking both the price magnitude and bar duration of every confirmed pivot. From these it calculates statistical percentile targets for the most likely next move.
• Forecast Bias: ▲ Bull or ▼ Bear — direction expected after the last pivot
• 25th / 50th Percentile: Conservative and median price targets (e.g. 518.40 / 521.20)
• 75th / 90th Percentile: Aggressive and maximum targets (e.g. 524.80 / 528.50)
• Duration: Expected bar count to reach each target (e.g. "8 bars / 22 bars")
• Pivot Count: Total swings tracked — more pivots = more statistically reliable readings
Full credit to LuxAlgo for the original algorithm. Licensed under CC BY-NC-SA 4.0.
▸ BLOCK H — STANDARD DEVIATION CHANNEL
────────────────────────────────────────
A linear regression channel fitted to the last N bars (default 128). Shows where price sits statistically within the current trend.
• Channel Zone: One of 6 zones — Above +2σ / +1→+2σ / Mid→+1σ / -1→Mid / -2→-1σ / Below -2σ
• Trend Direction: Rising / Falling / Flat based on the regression slope
• Pearson R: Correlation coefficient. Above 0.8 = very clean trend. Below 0.5 = noisy/ranging.
• Midline Distance: % distance of close from the regression center line
Best CALL zone: "Mid → +1σ" on a rising channel.
Best PUT zone: "Mid → -1σ" on a falling channel.
Avoid entries when zone shows "Above +2σ" or "Below -2σ" — price is statistically extended.
▸ BLOCK I — RSI DIVERGENCE
( Libertus Method )
─────────────────────────────────────────────
Detects bull and bear RSI divergences by comparing price swing extremes against RSI swing extremes over a configurable lookback window (default 90 bars).
• Bull Divergence: Price makes lower low but RSI makes higher low — hidden strength, potential reversal up
• Bear Divergence: Price makes higher high but RSI makes lower high — hidden weakness, potential reversal down
• Age Tracking: "Bull Div (3b ago)" or "Bull Div ✦ NOW" — shows exactly how fresh the divergence is
• RSI Value: Current reading with OB / OS labels
• Score Bonus: +5 bull score on bull divergence · +5 bear score on bear divergence
Credit to Libertus for the divergence detection methodology.
▸ BLOCK J — SESSION CLOCK
──────────────────────────
Intraday trading is entirely timing-dependent. This block tracks 8 distinct market phases, each color-coded by typical volatility profile.
PRE-MKT → 4:00 – 9:30 AM ET (PMH/PML building)
OPEN (HOD/LOD) → 9:30 – 10:00 AM ET (highest volatility, initial direction)
AM SESSION → 10:00 – 11:30 AM ET (best signal quality window)
LUNCH APPROACH → 11:30 – 12:00 PM ET (momentum slowing)
LUNCH CHOP → 12:00 – 1:30 PM ET (avoid new entries)
PM SESSION → 1:30 – 2:30 PM ET (trend continuation or reversal)
POWER HOUR NEAR → 2:30 – 3:00 PM ET (institutional activity increasing)
POWER HOUR → 3:00 – 4:00 PM ET (highest volume, strongest moves)
Also shows time remaining in RTH. Turns gold when less than 60 minutes remain.
▸ BLOCK K — COMPOSITE EDGE SCORE
───────────────────────────────────
Instead of just showing one number, this block breaks the score into individual factor bars — each showing exactly how much it is contributing. You can see not just THAT the score is high, but WHY.
VWAP → ████░ (max 15 pts)
MTF → █████ (max 15 pts)
MA → ████░ (max 12 pts)
Momentum → ███░░ (max 5 pts)
Volume → ██░░░ (max 10 pts)
Trigger → █████ (max 20 pts ← most important)
ADX → ████░ (max 8 pts)
Edge → ████░ (overall 0-100)
A high score driven purely by momentum without a trigger event is weaker than one with everything aligned.
▸ BLOCK L — FRACTAL BASE
( Inspired by LuxAlgo — Fractal Base Indicator )
──────────────────────────────────────────────────
This module ports the core logic from LuxAlgo's Fractal Base Indicator. A fractal is a confirmed swing pivot where price has N bars of context on both sides — these represent the most significant recent support and resistance levels because they show where price genuinely reversed.
• Fractal Res: Last confirmed fractal HIGH — price + bars since + % distance from close
• Fractal Sup: Last confirmed fractal LOW — price + bars since + % distance from close
• Price Bias: "Above Res" (price broke resistance) / "Below Sup" (broke support) / "In Range" (between levels)
• Fractal Event: "New High Fractal" or "New Low Fractal" when a new fractal confirms this bar
• Score Bonus: +4 pts near fractal support/resistance · +3 pts when level is broken
• Configurable: Fractal Periods input — 2 = 5-bar fractal (default), 1 = 3-bar, 3 = 7-bar
Full credit to LuxAlgo for the original indicator concept.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE SCORING ENGINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Bull and bear scores are calculated independently on every confirmed bar. A signal only fires when the score clears the threshold AND key filters are simultaneously met.
COMPONENT MAX PTS CONDITION
────────────────────────────────────────────────────────────
VWAP Zone 15 / 8 15 inside ±1σ · 8 correct side outside band
MTF Alignment 15 / 8 15 all 3 TFs aligned · 8 for 2 of 3
MA Alignment 12/7/3 12 for 4/4 · 7 for 3/4 · 3 for 2/4
EMA Ribbon 5 EMA 8 vs 21 direction
Volume Spike 10 Volume > mult × 20-bar avg AND correct direction
Trigger Event 20 ★ PMH/PML/FCH/FCL break · Sweep · MSB
ADX Strength 8 / 5 8 if ADX >30 · 5 if ADX 20-30
Squeeze Fire 5 Squeeze fires in signal direction
ABC Harmonic 5 Active harmonic pattern aligned
RSI Zone 5 RSI 50-70 for bull · 30-50 for bear
RSI Divergence 5 Bull/bear divergence active
Liq HeatMap Bias 5 Buy/sell-side >60%
Std Dev Channel 4 Price in sweet zone on correct trend
Daily EMA Trend 4 Daily chart EMA alignment
S/D Zone Proximity 3 Within 0.3% of demand (bull) or supply (bear)
Fractal Proximity 4 / 3 Within 0.25% of fractal level / level broken
────────────────────────────────────────────────────────────
★ Trigger Event carries the most weight. A signal without a trigger is unlikely to fire.
DEFAULT THRESHOLD: 65 pts
Raise to 75+ for fewer but higher-quality signals.
Lower to 55 on very active trending days.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SIGNAL CONDITIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A CALL signal requires ALL of the following simultaneously:
✅ Bull score ≥ threshold
✅ Close above VWAP (hard filter)
✅ MTF alignment 2/3 or better
✅ Active trigger event (PMH break / FCH break / Bull Sweep / MSB ▲ / Squeeze bull)
✅ barstate.isconfirmed — never fires mid-bar, zero repainting
✅ RTH session active (if RTH Only setting is on)
A PUT signal requires ALL of the following simultaneously:
✅ Bear score ≥ threshold
✅ Close below VWAP (hard filter)
✅ MTF alignment 2/3 or better (bearish)
✅ Active trigger event (PML break / FCL break / Bear Sweep / MSB ▼ / Squeeze bear)
✅ barstate.isconfirmed
✅ RTH session active (if RTH Only setting is on)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
22 ALERT CONDITIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
To set up: Right-click the indicator → Add Alert → Select condition.
All alerts include: ticker · close price · timestamp.
SIGNAL ALERTS
▲ CALL Signal — Full CALL criteria met
▼ PUT Signal — Full PUT criteria met
◆ Any Signal — Either CALL or PUT
LEVEL BREAK ALERTS
→ PMH Breakout — Close crosses pre-market high
→ PML Breakdown — Close crosses pre-market low
→ FCH Break — Close crosses first candle high
→ FCL Break — Close crosses first candle low
STRUCTURE ALERTS
→ Sweep CALL — Bull sweep + above VWAP
→ Sweep PUT — Bear sweep + below VWAP
→ MSB Bull — Market structure break upward
→ MSB Bear — Market structure break downward
MOMENTUM ALERTS
→ Squeeze Bull Fire — Squeeze fires with bullish close
→ Squeeze Bear Fire — Squeeze fires with bearish close
→ MA Full Bull Stack — All 4 MAs correctly ordered up
→ MA Full Bear Stack — All 4 MAs correctly ordered down
DIVERGENCE & LIQUIDITY
→ RSI Bull Divergence — Bull div detected
→ RSI Bear Divergence — Bear div detected
→ Liq Buy Bias — HeatMap buy-side > 60%
→ Liq Sell Bias — HeatMap sell-side > 60%
PREMIUM ALERTS
★ High Edge (80+) — Composite edge score reaches 80 — premium setup
→ New High Fractal — New confirmed fractal high (LuxAlgo logic)
→ New Low Fractal — New confirmed fractal low (LuxAlgo logic)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS QUICK REFERENCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SESSION & TIME
Pre-Market Session → 0400-0930 ET (adjust for your exchange)
RTH Session → 0930-1600 ET
First Candle Length → 1 / 2 / 3 / 5 / 15 minutes
RTH Signals Only → On by default (recommended)
SIGNAL ENGINE
Min Score to Signal → 65 (raise for fewer signals, lower for more)
Volume Spike Mult → 1.4× (volume must be this × the 20-bar average)
MOVING AVERAGES
MA Type → SMA / EMA / WMA (switches all 4 simultaneously)
MA Lengths → 9 / 21 / 50 / 200 (individually configurable)
REVERSAL PROB ZONE (LuxAlgo)
Swing Length → 20 (pivot sensitivity)
Max Reversals → 1000 (database cap)
Percentiles → 25 / 50 / 75 / 90 (target levels to display)
FRACTAL BASE (LuxAlgo)
Fractal Periods → 2 = 5-bar fractal | 1 = 3-bar | 3 = 7-bar
STD DEV CHANNEL
Regression Length → 128 bars (shorter = more reactive)
RSI DIVERGENCE
RSI Length → 14
OB / OS Levels → 70 / 30
Divergence Lookback → 90 bars
DISPLAY
Panel Position → Top Right / Top Left / Bottom Right / Bottom Left
Compact Mode → Hides sub-rows to shrink panel height
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO READ THE PANEL — QUICK CHECKLIST
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Before entering any trade, run through these 9 checks:
① Signal showing CALL or PUT? (not just Watching)
② Score at or above your threshold?
③ On the correct side of VWAP?
④ MTF at least 2/3 aligned?
⑤ Channel zone in a reasonable position? (avoid Above +2σ for CALLs)
⑥ Fractal Bias showing "Above Res" (CALL) or "Below Sup" (PUT)?
⑦ RPZ showing a clear price target with enough room for your R:R?
⑧ What was the trigger event? (MSB and Sweep are strongest)
⑨ Can you fit your stop within the 1.5× ATR distance?
If you can answer yes to most of these — the setup has strong confluence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CREDITS & ACKNOWLEDGEMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
APEX ELITE was built with deep respect for the Pine Script community. Several modules are directly inspired by the outstanding published work of:
🏆 LuxAlgo
Two modules in APEX ELITE are inspired by LuxAlgo's indicators:
→ Block G (Reversal Probability Zone) ports the core algorithmic logic
from LuxAlgo's "Reversal Probability Zone & Levels" — including the
exact pivot detection method, price/bar delta database, and percentile
target calculation. Licensed under CC BY-NC-SA 4.0.
→ Block L (Fractal Base) implements the fractal high/low detection and
support/resistance logic from LuxAlgo's "Fractal Base Indicator".
LuxAlgo's original indicators are published at:
tradingview.com/u/LuxAlgo/
All credit for these algorithmic approaches belongs entirely to LuxAlgo.
🏆 BigBeluga
→ Block F (Liquidity HeatMap) is inspired by BigBeluga's
"Dynamic Liquidity HeatMap Profile" indicator. The volume-normalized,
pivot-based liquidity bias methodology is adapted from their approach.
BigBeluga's work can be found at:
tradingview.com/u/BigBeluga/
Please visit and support their original publications directly.
🏆 Libertus
→ Block I (RSI Divergence) implements the divergence detection method
from Libertus's "RSI Divergences" indicator.
Thank you to all three creators for sharing their knowledge with the community.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER — PLEASE READ IN FULL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
APEX ELITE is a technical analysis tool published for EDUCATIONAL and INFORMATIONAL purposes only.
❌ It does NOT constitute financial advice.
❌ It does NOT constitute investment advice.
❌ It does NOT constitute trading recommendations.
❌ It is NOT a solicitation to buy or sell any financial instrument.
All information displayed by this indicator is derived from historical price data and mathematical calculations. Past signal performance does NOT guarantee or predict future results. Financial markets are inherently unpredictable and all trading involves significant risk, including the potential loss of your entire invested capital.
The author of APEX ELITE is not a licensed financial advisor, broker, dealer, or investment professional. Nothing in this indicator or its documentation should be interpreted as personalized investment advice tailored to your individual financial situation, risk tolerance, or investment objectives.
YOU are solely responsible for all trading decisions you make.
Always conduct your own independent research and due diligence.
Always use proper risk management — including position sizing and stop-loss orders.
Never trade with money you cannot afford to lose.
If you are uncertain about any aspect of trading or investing, consult a licensed financial professional in your jurisdiction.
By adding this indicator to your chart, you acknowledge that you have read and understood this disclaimer, and that any trading decisions you make based on or influenced by this indicator are entirely your own responsibility.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Pine Script v6 · Not Financial Advice · Educational Use Only
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF Indicador

Strong Liquidity Zones Pro | ProjectSyndicateStrong Liquidity Zones Pro
Strong Liquidity Zones Pro automatically identifies and power-ranks high-probability Sell Liquidity and Buy Liquidity zones by analyzing swing structure, zone age, and retest activity. It filters for quality, calculates a POWER score for every zone based on its freshness and historical interaction, and presents all data on the chart and in three comprehensive dashboards to eliminate clutter and focus on levels that matter.
•🎯 True First-Touch Engine — the built-in simulator is hard-coded to only enter on the first touch of a fresh or once-tested zone, ensuring backtest results are clean and reflect a real-world edge.
•🎨 Power-Based Visuals — zones are labeled with a POWER score from 0-10, calculated from age and retests. The simulator can be set to only trade zones with a minimum POWER score (e.g., >= 6/10) for higher-quality setups.
•🧠 Advanced Zone Management — automatically detects zones from confirmed swing pivots, merges overlapping zones to create stronger liquidity areas, and invalidates zones based on user-selected criteria (wick or close through).
•📈 Detailed On-Chart Markup — every zone is plotted with a detailed label: SELL SIDE LIQ. | FRESH | POWER 8/10 | 0.18% | London | 42 bars | 0.15% away. The simulator adds entry/SL/TP lines, shaded TP/SL boxes, and entry/exit labels with R-multiple results.
•🧭 Three-Panel Dashboard Display — get a complete market overview without leaving your chart:
•MTF Alignment: M5/M15/H1/H4/D1 direction, price, bars-ago, and a final MTF Bias score.
•Performance Statistics: 19 essential metrics covering core PnL, risk/reward, streaks, and long/short performance.
•Daily PnL Tracker: A running log of the last 20 trading days with PnL (R), PnL (Pips), and trade count, with green/red row backgrounds for at-a-glance performance.
•🔔 Comprehensive Alerts — get a simple alert whenever a new zone is confirmed, signaling that the liquidity map has been updated.
•✅ Quality Control Filters — user-configurable inputs for swing detection length, max/min zone height (ATR-based), minimum zone strength to trade, and lookback periods allow for deep customization to match any trading style.
•🔧 Fully Customizable — control everything from the max number of zones shown and simulator RR/SL settings to the text size of all labels and dashboard positions.
•🎯 Why this algo is unique: Standard S&D indicators either flood the chart with every potential zone or use simplistic logic. This algorithm intelligently filters, merges, and ranks them. It doesn't just show you where liquidity might be, it quantifies how powerful that zone is based on its history, and the built-in simulator provides a realistic edge by only trading the first touch of high-quality zones.
•🚀 Apply to Gold (XAUUSD), Forex, Crypto, and Indices on any timeframe. The ATR-based zone height and SL settings allow it to adapt to anything from scalping to swing trading.
•🎯 How to use this? Use the dashboards to confirm higher-timeframe bias. Focus on simulator entries from high-POWER zones (>= 6/10) that align with the MTF trend. Use the alerts to know when a new, potentially high-quality zone has formed.
•⚠️ IMPORTANT NOTICE: This indicator is designed to identify high-probability liquidity zones and provide a realistic backtesting simulator. It should NOT be used as a standalone signal for entering live trades. Always use it in conjunction with your own trading strategy, price action analysis, and other technical indicators to confirm trade setups and manage risk. Indicador

[ A L P H A X ] Edge - Support/Resistance | Breakout EntryAlphaX Edge — Support/Resistance × Breakout × Trend Confluence | Multi-Factor Confidence Scoring, Smart S/R Zones & Squeeze Detection
AlphaX Edge is a professional multi-confluence trading system that combines six independent analytical layers into a single unified signal engine. Rather than relying on any single indicator, it requires agreement across Support/Resistance structure, trend direction, momentum, volume, ADX strength, and squeeze dynamics before generating a signal — producing fewer, higher-quality setups and filtering out the noise that plagues single-indicator systems. Designed for intraday and swing traders across all instruments and timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📸 Visual Overview
The chart displays color-coded S/R zones, breakout and retest labels, trend structure labels, EMA ribbons, RSI divergence diamonds, and triangle entry signals — all governed by a real-time dashboard showing every active market condition at a glance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Six Analytical Layers
1 — Smart Support & Resistance Zones
AlphaX Edge automatically detects, merges, and manages S/R zones using pivot-based swing detection. Each zone is:
Built from confirmed swing highs and lows using a configurable swing length
Merged automatically when two levels fall within a user-defined ATR multiplier — preventing zone clutter
Color-coded by role: yellow-green for confirmed support, red for confirmed resistance, gray for untested levels
Aged out after a configurable number of bars to keep the chart clean and relevant
Upgraded from neutral to confirmed only after a minimum number of touches — preventing weak levels from triggering signals
When price approaches a confirmed zone from above, the zone acts as resistance. When approached from below, it acts as support. Broken zones flip polarity — a broken resistance becomes support and vice versa — and are tracked for retest opportunities.
2 — Breakout Detection with Anti-Fake Filter
A breakout is confirmed only when all of the following conditions are met simultaneously:
The candle body closes convincingly beyond the zone boundary (not just a wick poke)
The candle body represents at least 40% of the total candle range — no doji or indecision candles
Volume confirms participation (configurable: require spike or simply above-average volume)
A cooldown timer prevents repeated breakout labels during choppy back-and-forth action
RSI is not at an extreme overbought/oversold level — unless ADX confirms the trend is genuinely strong (preventing exhaustion breakout entries)
3 — Trend Structure Analysis
AlphaX Edge tracks market structure using higher swing pivots — independently from the S/R zone engine. It identifies:
Higher Highs + Higher Lows → confirmed uptrend structure
Lower Highs + Lower Lows → confirmed downtrend structure
Trend line drawn automatically connecting the most recent pivot lows (uptrend) or pivot highs (downtrend)
UPTREND ▲ and DOWNTREND ▼ labels fire when structure shifts — with a configurable cooldown to prevent label spam
4 — EMA Trend Ribbon
Three EMAs provide structural context at all times:
Fast EMA (21) — yellow-green cross marks — immediate momentum direction
Medium EMA (50) — gray line — intermediate trend filter
Slow EMA (200) — dark gray thick line — macro structural backbone
When all three are fanned in sequence (Fast > Medium > Slow for bull, reverse for bear), the trend is healthy and signals carry higher weight in the confluence engine. When they converge and flatten, the market is ranging — a visual warning to stand aside.
5 — Momentum Engine (RSI + MACD + Stochastic)
Three oscillators run simultaneously and vote on momentum direction:
RSI slope direction with smoothing — avoids single-bar noise
MACD line vs signal cross and histogram direction
Stochastic K vs D with overbought/oversold zone filtering
A minimum of two out of three must agree before momentum is considered bullish or bearish. This voting approach prevents a single oscillator spike from generating false signals.
6 — Bollinger Squeeze Detection
The squeeze engine monitors when Bollinger Bands contract inside Keltner Channels — indicating coiled volatility about to expand. When the squeeze fires (bands break outside the channels), directional momentum is assessed to determine which way the expansion is likely to break. Squeeze entries carry bonus weight in the confluence scoring system.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 Confluence Scoring & Confidence System
Every signal is evaluated across 10 independent factors , each contributing one point to the confluence score. Only signals meeting your configured minimum score threshold are displayed.
The 10 factors per direction:
✓ SUP — Price is at a confirmed support zone (bull) or resistance zone (bear)
✓ BRK — A valid breakout has just occurred in the signal direction
✓ RET — A confirmed post-breakout retest is occurring
✓ TRD — Trend structure (HH+HL or LH+LL) aligns with signal direction
✓ MOM — At least 2 of 3 momentum oscillators confirm direction
✓ PAT — A candlestick pattern is present (engulfing, pin bar, or RSI divergence)
✓ VOL — Volume is above average and candle closes in the signal direction
✓ EMA — EMA ribbon is aligned or price is on the correct side of the 200 EMA
✓ ADX — ADX confirms a trending market with directional dominance
✓ SQZ — Squeeze has fired or is expanding in the signal direction
Alongside the 10-point score, a confidence percentage (0–100%) is calculated using a weighted system that gives higher importance to structural factors (retest = 20 pts, breakout = 16 pts, support/resistance = 14 pts) and applies heavy penalties for counter-trend signals, overbought/oversold exhaustion, no-trend conditions, overextension from EMAs, and low volume. The resulting grade ranges from D to A+.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Signal Types — Complete Entry Guide
AlphaX Edge produces four distinct signal types. Below is a ranked guide to how each should be traded, from highest to lowest quality.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🥇 RANK 1 — Breakout + Volume Spike Confirmation (Highest Quality)
What it looks like: A BREAKOUT ▲ or BREAKOUT ▼ label appears, and within 1–2 candles a volume spike dot (●) appears in the same direction. The confluence triangle signal fires.
Why it's the strongest: The volume spike occurring immediately after or alongside the breakout label confirms that institutional participation is behind the move. A breakout without volume is frequently a trap — a breakout with a volume spike right after is significantly more likely to follow through.
How to enter:
Wait for the breakout label to appear AND see the volume spike dot on the same or next 1–2 candles
Enter at market on the close of the volume spike candle, or on a small pullback into the broken level
Stop loss: just below the broken resistance (for longs) or just above the broken support (for shorts) — beyond the zone boundary
Target: next S/R zone visible on the chart, or a 1.5–2x ATR minimum
⚠ If BREAKOUT ▲/▼ shows "⚠ STRETCHED": This means price is already significantly extended from the EMA ribbon at the moment of the breakout. A volume spike dot within 1–2 candles still validates the move — but be aware that a pullback to the EMAs is likely before continuation. In this case, reduce position size or wait for the retest instead of chasing the initial breakout.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🥈 RANK 2 — Retest Entry (High Quality, Lower Risk)
What it looks like: After a BREAKOUT label fires, price pulls back to the broken level within the retest window. A RETEST ▲ or RETEST ▼ label appears, and the confluence triangle signal fires.
Why it's strong: The retest is the classic institutional entry — the breakout already proved the level was breakable, and the pullback offers an optimal risk/reward entry with a nearby and well-defined stop.
How to enter:
Wait for the RETEST label — do not anticipate it. Price must close back in the broken zone's range and show a reversal candle (engulfing or pin bar adds confidence)
Enter on the close of the confirming candle at the retest zone
Stop loss: a close back below the retest zone (not a wick — a full candle body close on the wrong side)
Target: the breakout high/low target or the next S/R zone
Highest conviction retest setup: RETEST label + confluence triangle + volume above average + RSI not at extreme = A or A+ grade signal. These are the setups to size up on.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🥉 RANK 3 — Trend Confluence Signal at S/R (Medium-High Quality)
What it looks like: Price reaches a confirmed support or resistance zone while the trend structure, EMA alignment, momentum, and ADX all agree. The confluence triangle fires without a preceding breakout — price is bouncing from the zone within an established trend.
Why it works: This is the classic trend continuation pullback entry — price returns to a key level inside an ongoing trend, and multiple independent factors confirm the bounce has begun.
How to enter:
The UPTREND ▲ or DOWNTREND ▼ label must have already appeared — do not take confluence signals at S/R during a ranging market (no active trend label = lower confidence)
Wait for a confirming candle at the zone — a bullish engulfing, pin bar, or strong close in the trend direction adds significant weight
Enter on the close of the confirming candle
Stop loss: beyond the S/R zone boundary plus one ATR buffer
Target: the prior swing high/low, next resistance zone, or 2x ATR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4 — Trend Structure Label Entry (Use With Additional Confirmation)
What it looks like: An UPTREND ▲ or DOWNTREND ▼ label appears, marking a confirmed shift in market structure (a new Higher High + Higher Low, or Lower High + Lower Low).
Important — do not enter directly on the label: The trend label confirms that structure has already shifted — it is not an entry signal by itself. Price has typically already moved significantly by the time the label fires, and entering immediately carries the risk of chasing an extended move.
How to use the trend label:
Treat it as a directional bias reset — from this point forward, only look for long setups (after UPTREND ▲) or short setups (after DOWNTREND ▼)
Wait for the first confluence triangle signal that appears after the trend label — this is your primary entry in the new trend direction
Alternatively, wait for price to pull back to the nearest S/R zone or EMA and generate a confluence signal there
The closer the first post-label triangle is to an S/R zone and the 21 or 50 EMA, the higher the trade quality
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ The Stretched Breakout — When to Be Careful
When a breakout label shows "⚠ STRETCHED" , it means the breakout is occurring while price is already significantly extended from the EMA ribbon — the gap between price and the Fast EMA, or between the Fast and Slow EMA, has reached a level where mean reversion risk is elevated.
Stretched breakout without volume spike → Stand aside or reduce size significantly. The move has likely already travelled the bulk of its range for this leg, and a snapback to the EMAs is the more probable next event.
Stretched breakout with volume spike within 1–2 candles → Momentum is genuine, but manage it differently:
Do not chase — wait for a small pullback toward the broken level or the Fast EMA
Use a tighter stop and reduced position size
Take profit earlier than you normally would — the extended distance from EMAs means the move is borrowing from the next leg
Watch for RSI divergence forming quickly after the breakout — this is a sign the stretched move is exhausting
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Choppy / Ranging Markets — When NOT to Trade
AlphaX Edge has multiple visual signals that tell you to step aside:
EMAs converging and flattening — when all three EMAs cluster together and move sideways, there is no directional bias. Signals in this environment are lower quality regardless of score.
No active trend label — if neither UPTREND ▲ nor DOWNTREND ▼ has appeared recently, the market is in a structural no-man's-land. Wait for structure to develop.
Dashboard shows WEAK TREND — STAND ASIDE or MIXED — STAND ASIDE — these verdict states indicate that ADX is below threshold or bull and bear scores are close. Both are warning signs.
Squeeze is ON (● SQUEEZE ON in dashboard) — do not enter during an active squeeze. Wait for the squeeze to fire (◆ SQUEEZE FIRED) and for a directional confluence signal to follow.
Rapid alternating UPTREND/DOWNTREND labels — if the trend structure labels are flipping frequently, the market is whipsawing. The cooldown filter reduces this, but the message is clear: no clean trend is present.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 The Dashboard — Reading Your Market State at a Glance
The real-time dashboard displays 12 live metrics organized into three sections:
Structure Section:
Price Position — whether price is at support, resistance, breaking out, or retesting
Trend — current trend direction with active structure state (HH+HL, LH+LL, etc.)
EMA Trend — EMA ribbon alignment and price position relative to the 200 EMA
ADX — trend strength with numeric value
Squeeze — current squeeze state
Momentum Section:
Momentum — oscillator vote count (how many of the three confirm each direction)
RSI — current RSI state (rising, falling, overbought, oversold) with numeric value
Rel Volume — current volume relative to the moving average (Dry / Normal / High / Spike)
Scoring Section:
Bull Score — current confluence count out of 10 and confidence percentage with grade
Bear Score — same for bearish direction
Verdict — system's current market assessment (High Confidence Long/Short, Lean Long/Short, Mixed, Squeeze, Weak Trend)
Last Signal — direction, grade, confidence %, score, active factors, entry price, and bars since signal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
Edge Long Signal — confluence triangle long entry fires
Edge Short Signal — confluence triangle short entry fires
Bullish Breakout — confirmed resistance breakout
Bearish Breakout — confirmed support breakdown
Bullish Retest — post-breakout bullish retest confirmed
Bearish Retest — post-breakout bearish retest confirmed
RSI Bull Divergence — bullish RSI divergence detected
RSI Bear Divergence — bearish RSI divergence detected
All alert messages include {{ticker}} and {{interval}} for clean webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 Six-layer confluence engine — S/R, breakout, trend structure, EMA, momentum, squeeze must agree before a signal fires
🏷 Smart S/R zones — auto-merged, touch-confirmed, polarity-flipping, age-managed
⚠ Stretch filter — warns when breakouts occur at EMA-extended levels with visual label modification
🧠 10-factor confluence scoring with weighted confidence percentage and A+ to D grading
📊 Anti-fake breakout engine — body strength, volume, margin close, and RSI/ADX filter required
◆ Bollinger Squeeze integration — coiled volatility detection with directional momentum bias
📐 Three-EMA structural ribbon (21 / 50 / 200) with fan analysis
💎 RSI divergence detection with pivot-confirmed highs and lows
🕯 Candlestick pattern recognition — engulfing, pin bar, strong body candles
📋 Real-time 12-metric dashboard with live verdict and last signal tracker
🔔 8 alert conditions with ticker and interval placeholders
⚙ Fully configurable — all periods, thresholds, zone parameters, stretch filters, label sizes, and colors adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Support / Resistance
S/R Swing Length — pivot detection sensitivity (default: 7)
Merge Zones Within (x ATR) — how close two levels must be to merge (default: 1.2)
Max Active Zones — maximum number of zones displayed simultaneously (default: 6)
Zone Max Age (bars) — bars before an untouched zone is removed (default: 250)
Min Touches to Confirm — touches required before a zone is considered confirmed (default: 2)
Show S/R Zones / Show S/R Level Lines — visibility toggles
Breakout Detection
Show Breakout Labels — toggle breakout label display
Require Volume on Breakout — whether volume confirmation is required (default: on)
Breakout Volume Multiplier — volume threshold relative to average (default: 1.4x)
Breakout Cooldown (bars) — minimum bars between breakout labels (default: 10)
Show Retest Labels / Retest Window (bars) — retest detection controls
Trend Structure
Trend Swing Length — pivot length for structure analysis (default: 12)
Show Trend Lines / Show Trend Shift Labels — visibility toggles
Trend Label Cooldown — minimum bars between trend labels (default: 18)
Momentum
RSI Length (default: 14) — Show RSI Divergence toggle
ADX Length (default: 14) — ADX Trend Threshold (default: 22)
Volume
Volume MA Length (default: 20) — Show Volume Spike Dots toggle
Squeeze Filter
Bollinger Band Length / Multiplier — BB parameters for squeeze detection
Keltner Channel Length / Multiplier — KC parameters for squeeze detection
EMA Settings
Fast / Medium / Slow EMA lengths (defaults: 21 / 50 / 200) with individual visibility toggles
Stretch Filter
Stretch: Fast EMA Distance (x ATR) — how far price must be from Fast EMA to trigger stretch warning (default: 2.0)
Stretch: EMA Spread (x ATR) — how wide the EMA ribbon must be to trigger stretch warning (default: 3.0)
Confluence Engine
Min Confluence Score — minimum out of 10 factors required for a signal (default: 4)
Show Entry Signals — toggle triangle signals
Signal Cooldown (bars) — minimum bars between entry signals (default: 12)
Display
Show Dashboard — toggle dashboard visibility
Dashboard Position — Top Right / Top Left / Bottom Right / Bottom Left
Dashboard Text Size — Tiny / Small / Normal
Dashboard Background color
Label Size — controls size of all chart labels (Tiny / Small / Normal, default: Tiny)
Theme
Bull Primary / Bright / Dim — yellow-green family for all bullish elements
Bear Primary / Bright / Dim — red family for all bearish elements
Support / Resistance / Untested Zone Colors
Neutral color for inactive states
Individual EMA colors
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument
XAUUSD 1m–5m — defaults work well. Increase ADX threshold to 25 on 5m for cleaner trend filter.
Forex Majors — reduce S/R Swing Length to 5, reduce Breakout Volume Multiplier to 1.2
Indices (NAS100, US30) — increase Trend Swing Length to 15–18, increase Min Confluence to 5
Higher Timeframes (1H+) — increase all swing lengths by 30–50%, increase signal cooldowns
More signals — reduce Min Confluence Score to 3, reduce ADX threshold to 18
Cleaner signals — increase Min Confluence Score to 5–6, enable volume requirement
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Breakout traders — the anti-fake breakout engine with volume, body strength, and RSI/ADX filters is built specifically to eliminate the false breakouts that destroy breakout strategies
📉 Pullback and retest traders — the retest detection system with polarity-flipping zones provides textbook entries at confirmed levels
📊 Trend followers — trend structure analysis with EMA ribbon and ADX ensures signals only fire in genuine trending conditions
🧠 Systematic traders — the 10-factor scoring and confidence grading give a quantitative framework, not just colored arrows
📈 Traders who want clean charts — everything is on one indicator with a consistent visual language. No indicator soup.
⚠ Traders who struggle with overtrading — the confluence requirements, ADX filter, squeeze gate, and cooldown timers physically prevent low-quality signals from appearing
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — no repainting
S/R zones use extend.right — they project forward until broken or aged out
The squeeze engine compares Bollinger Bands against Keltner Channels on every bar — no external squeeze indicator required
RSI divergence uses confirmed pivot highs and lows with a minimum separation requirement — single-bar spikes do not qualify
Maximum 500 labels, boxes, and lines are used — on very low timeframes with extended history, oldest drawings may be removed by TradingView's rendering limits
The confidence percentage and grade are recalculated on every bar in real time — the dashboard always reflects the current bar's conditions
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 need more than arrows — a full analytical system that thinks before it signals. Indicador

Indicador

Fibonacci Clusters | ProjectSyndicateFibonacci Clusters automatically identifies and power-ranks high-probability Fibonacci confluence zones by clustering retracement levels from dozens of recent swing pairs. It filters for quality, calculates a strength score for every zone based on how many distinct swing pairs agree on that price, and presents all data on the chart and in a comprehensive dashboard to eliminate clutter and focus on levels that matter.
• 🎯 True Confluence Engine — every cluster's strength score is the number of distinct swing pairs that contribute a Fibonacci level to that zone. A strength of 6 means 6 independent swings all confirm the same price area.
• 🎨 Strength-Based Color Scheme — zones are colored by their confluence score: Elite (>=6 pairs), Strong (4-5 pairs), and Medium (2-3 pairs). Stronger zones get brighter, more prominent colors for immediate visual hierarchy.
• 🧠 Smart Swing-Pair Clustering — automatically detects up to 15 recent swing highs and 15 swing lows, pairs them up, and runs the confluence engine on all their Fibonacci retracement levels (0.236, 0.382, 0.500, 0.618, 0.786, 1.000).
• 📈 Fixed Extension Zones — plots four key extension levels (1.130, 1.270, -0.130, -0.270) from the single most dominant swing pair, providing clear structural targets above and below the main cluster range.
• 🧭 Full Dashboard Display — provides a complete market overview, including the current trading session, volatility state (based on ADR), and a two-column list of all active cluster zones and extension levels above and below the current price, with their strength and distance.
• 🔔 Comprehensive Alerts — get a simple alert whenever a new swing high or low is confirmed, signaling that the cluster map has been updated.
• ✅ Quality Control Filters — user-configurable inputs for swing detection length, minimum swing range (as a multiple of ATR), cluster tolerance (as a multiple of ATR), and minimum cluster strength allow for deep customization to match any trading style.
• 🔧 Fully Customizable — control everything from the max number of clusters shown and zone height to the text size of all labels and dashboard elements.
• 🎯 Why this algo is unique: Standard Fibonacci indicators either show levels from one arbitrary swing or flood the chart with dozens of lines from every swing. This algorithm intelligently filters, clusters, and ranks them. It doesn't just show you where Fibonacci levels are, it quantifies how strong the confluence is at that price, giving you a clear edge. You instantly see which zones have a proven history of being respected by multiple, independent market moves.
• 🚀 Apply to Gold (XAUUSD), Forex, Crypto, and Indices on any timeframe. The ATR-based tolerance and separation settings allow it to adapt to anything from scalping to swing trading.
• 🎯 How to use this? Focus on trading opportunities around high-strength Elite zones (rated 6+ pairs) as these have the highest probability of producing a significant reaction. Use the dashboard to quickly identify the most immediate zones and the alerts to know when the map has refreshed.
• ⚠️ IMPORTANT NOTICE: This indicator is designed to identify high-probability Fibonacci confluence zones. It should NOT be used as a standalone signal for entering trades. Always use it in conjunction with your own trading strategy, price action analysis, and other technical indicators to confirm trade setups and manage risk.
Indicador

[ A L P H A X ] Reversal - RSI Divergence + WPR Timing EngineAlphaX Reversal — RSI Divergence Engine, Triple WPR Timing System, Multi-Confluence Confidence Scoring & Smart Entry/Exit Signals
AlphaX Reversal is a professional-grade reversal detection and signal system built on a dual-engine architecture combining RSI Divergence analysis with a triple-timeframe Williams %R timing system. It detects both regular and hidden divergences, scores every signal through a real-time multi-factor confidence engine, and produces clean tier-graded entry labels and exit markers — all governed by intelligent filters that eliminate low-quality setups automatically. Designed for reversal traders and swing scalpers on instruments like XAUUSD, indices, and forex majors.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Two-Engine Architecture — How It Works
AlphaX Reversal is powered by two independent engines that must both agree before any signal fires.
Engine 1 — RSI Divergence Detector
The first engine continuously monitors RSI pivot highs and lows against price pivot highs and lows, detecting four divergence types in real time:
Regular Bullish Divergence — price makes a lower low while RSI makes a higher low (classic exhaustion reversal)
Regular Bearish Divergence — price makes a higher high while RSI makes a lower high (classic distribution signal)
Hidden Bullish Divergence — price makes a higher low while RSI makes a lower low (trend continuation after pullback)
Hidden Bearish Divergence — price makes a lower high while RSI makes a higher high (distribution within a downtrend)
When a valid divergence pair is found, a line is drawn on the price chart between the two pivot points — immediate visual confirmation of the structure that triggered the signal.
Engine 2 — Triple WPR Timing System
The second engine runs three Williams %R oscillators simultaneously at different periods:
WPR Fast — the primary signal generator, reacting quickly to momentum shifts
WPR Medium — intermediate confirmation, filtering out fast WPR noise
WPR Slow — macro trend direction, used to gate counter-trend entries
A divergence signal from Engine 1 must be confirmed by a qualifying WPR condition from Engine 2 — a cross from an extreme zone, rising velocity, or a multi-bar recovery. This two-layer gate is what prevents AlphaX Reversal from firing on every minor oscillator wiggle.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Four Divergence Types
AlphaX Reversal detects and distinguishes between four divergence structures, each labeled directly on the signal:
REG Bull — Regular Bullish. Price exhaustion at a new low while momentum is already recovering. Strongest reversal signal.
REG Bear — Regular Bearish. Price making new highs on declining momentum. Classic distribution.
HID Bull — Hidden Bullish. A pullback within an uptrend — trend continuation setup.
HID Bear — Hidden Bearish. A bounce within a downtrend — continuation of the bear move.
Regular divergences receive a higher base confidence score than hidden divergences, reflecting their stronger reversal probability.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Signal Tiers — S / A / B
Every entry signal is graded into one of three tiers based on its real-time confidence score:
S-Tier (70%+) — the highest quality setups. All major confluence factors aligned. Brightest label, strongest visual weight.
A-Tier (55–69%) — strong setups with most factors confirmed. Standard brightness.
B-Tier (35–54%) — valid setups that meet the minimum threshold. Dimmer label color.
Tier, divergence type, and confidence score are all displayed directly on every label — you always know the quality of the setup at a glance, without checking the dashboard.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 Multi-Confluence Confidence Scoring
Every signal is scored by a real-time engine evaluating eight independent factors. Only signals meeting your configured Min Confidence % threshold are displayed.
Divergence Type Quality (up to 30 points)
Regular divergence — 30 points
Hidden divergence — 22 points
WPR Extreme Depth (up to 20 points)
How deeply the Fast WPR penetrated into oversold or overbought territory before recovering — deeper penetration scores higher
WPR Cross Timing (up to 15 points)
Cross from extreme zone — 15 points
Strong WPR velocity — 10 points
Multi-bar recovery in progress — 6 points
WPR Multi-Timeframe Alignment (up to 10 points)
All three WPR timeframes simultaneously in extreme territory (Triple OS/OB) — 10 points
Medium WPR in extreme zone — 7 points
WPR Slow Structural Context (up to 8 points)
Slow WPR aligned with the signal direction adds structural confirmation
Candle Confirmation (up to 7 points)
Strong-bodied candle closing in the signal direction — 7 points
Weaker confirming close — 4 points
Volume (up to 5 points)
Volume spike (1.5× average) — 5 points
Above-average volume — 3 points
RSI Depth Bonus (up to 5 points)
RSI below 25 (bull) or above 75 (bear) adds a bonus for extreme readings that reinforce the divergence
Penalty Deductions
RSI at opposite extreme — up to 10 points deducted
WPR Slow against the signal direction — up to 8 points deducted
Extreme WPR velocity (likely spike or wick) — up to 5 points deducted
The default minimum confidence is 35% — optimized for XAUUSD 1-minute to filter noise while keeping valid reversal setups. Increase to 45–55% for cleaner signals on higher timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚪 Exit Markers
Red dot markers indicating where the WPR system detects counter-trend momentum building — time to consider taking profit or tightening stops
Exit markers appear as small red dots and fire only after a position is open:
During a long position — a bearish WPR signal triggers an exit dot above the bar
During a short position — a bullish WPR signal triggers an exit dot below the bar
Two independent exit modes are available and can be toggled separately:
Exit on Opposite Signal — exits the current position when a full opposing entry signal fires
Exit on WPR Exhaustion — exits when WPR crosses into the opposing extreme zone beyond your configured threshold
Use exit markers to take partial or full profit, tighten your stop loss, or pause new entries until the next signal confirms continuation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 Live Dashboard
The built-in dashboard displays full system state in real time:
RSI — current value with color-coded extremes
WPR Fast / Medium / Slow — all three values with directional coloring
WPR Velocity — FLAT / RISING / FALLING / FAST with color grading
Divergence Status — the active divergence type on the current bar
Bull Confidence % — live score for the current bullish setup
Bear Confidence % — live score for the current bearish setup
Position — LONG / SHORT / FLAT tracking the active signal direction
Open P&L — real-time unrealized profit and loss in price and percentage
Volume — NORMAL / HIGH / SPIKE with current ratio vs 20-bar average
The dashboard can be positioned in any corner and text size is independently configurable.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Reversal — Step by Step
Step 1 — Watch for a Divergence Line
When a divergence line appears connecting two pivots on the chart, Engine 1 has detected a valid structure
Check the dashboard Divergence Status row to confirm the type
Step 2 — Enter on the Signal Label
When the label fires, both engines have confirmed the setup
The label shows tier (S/A/B), divergence type (REG/HID), and confidence score directly on the bar
Place your stop loss beyond the price pivot that formed the divergence
Step 3 — Manage with the Dashboard
Monitor WPR Velocity and WPR Fast — rising values confirm the reversal is following through
Flat or reversing velocity warns that momentum is stalling early
Step 4 — Exit on the Red Dot
When a red exit dot appears, counter-trend momentum has built sufficiently to trigger the exit engine
Take partial or full profit, or tighten your stop
Step 5 — Reset and Wait
After an exit, wait for the next divergence structure before re-entering
Do not force entries between signals
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 Dual-engine architecture — RSI Divergence and triple WPR timing must both confirm before any signal fires
📐 Four divergence types — Regular Bullish, Regular Bearish, Hidden Bullish, Hidden Bearish — detected and labeled distinctly
🏷 Three signal tiers (S / A / B) — confidence-graded labels with visual weight matching signal quality
🧠 Multi-factor confidence scoring — divergence type, WPR depth, velocity, timing, candle body, volume, RSI depth, and penalties
📉 Divergence lines drawn automatically — visual confirmation of the exact pivot pair that triggered the signal
🔴 Smart exit markers — red dots that fire only after a position is open, triggered by WPR exhaustion or opposing signal
📋 Full live dashboard — RSI, three WPR values, velocity, divergence status, confidence scores, position, P&L, and volume in one panel
⏱ Signal cooldown filter — prevents repeated signals during volatile whipsaw conditions
🎨 Cohesive dual-tone color theme — yellow-green for bullish, red for bearish, gray for exits and neutral states
🔔 17 alert conditions — tiered entry alerts, exit alerts, divergence detection alerts, and WPR extreme alerts
⚙ Fully configurable — all periods, thresholds, divergence widths, colors, and exit modes adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
RSI Divergence
RSI Period — base RSI calculation period (default: 9)
RSI Pivot Lookback — pivot detection sensitivity (default: 3)
Max Divergence Width — maximum bars between the two pivot points (default: 40)
Min Divergence Width — minimum bars between the two pivot points (default: 5)
Show Divergence Lines — toggle the connecting lines on the price chart
WPR Timing
WPR Fast / Medium / Slow Period — three independent WPR periods (defaults: 8 / 21 / 55)
WPR Oversold / Overbought Levels — extreme zone thresholds (defaults: -82 / -18)
Signal Filters
Min Confidence % — minimum score to display a signal (default: 35%)
Signal Cooldown — minimum bars between consecutive signals (default: 6)
Require Volume Confirm — optional volume gate using a minimum ratio vs 20-bar average
Exits
Exit on Opposite Signal — exit the current position when an opposing signal fires
Exit on WPR Exhaustion — exit when WPR crosses into the opposing extreme zone
WPR Exit Bull / Bear Levels — configurable WPR thresholds for the exhaustion exit
Appearance & Dashboard
Label Size — Tiny / Small / Normal
Dashboard Text Size — Tiny / Small / Normal
Show Dashboard — toggle the live overlay panel
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
S-Tier Bull Reversal — bullish signals scoring 70%+
A-Tier Bull Reversal — bullish signals scoring 55–69%
B-Tier Bull Reversal — bullish signals scoring 35–54%
S-Tier Bear Reversal — bearish signals scoring 70%+
A-Tier Bear Reversal — bearish signals scoring 55–69%
B-Tier Bear Reversal — bearish signals scoring 35–54%
Any Bull Reversal — all bullish entry signals combined
Any Bear Reversal — all bearish entry signals combined
Any Reversal Signal — all entries combined
Bull Exit — long position exit signal
Bear Exit — short position exit signal
Any Exit — all exits combined
Regular Bull Divergence Detected
Regular Bear Divergence Detected
Hidden Bull Divergence Detected
Hidden Bear Divergence Detected
Triple WPR Oversold — all three WPR periods simultaneously in oversold territory
Triple WPR Overbought — all three WPR periods simultaneously in overbought territory
All alert messages include {{ticker}} and {{interval}} placeholders for clean webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Default Settings — Optimized For
The default configuration is specifically tuned for XAUUSD (Gold) on the 1-minute and 5-minute timeframes :
Confidence threshold at 35% filters low-quality setups while keeping valid reversal signals
Cooldown at 6 bars prevents label spam during volatile back-and-forth conditions
WPR periods (8 / 21 / 55) calibrated for gold's fast-moving intraday reversal structure
Divergence width of 5–40 bars captures the relevant reversal structures without reaching too far back
For other instruments or timeframes, adjust:
Higher timeframes (15m, 1H) — increase RSI Pivot Lookback to 4–5, increase Min Confidence to 40–50%, widen Max Divergence Width to 50–60
Forex majors — defaults work well; reduce RSI Period to 7 for faster detection
Indices (NAS100, US30) — increase WPR Slow to 89 for broader trend context
Less noise — increase Min Confidence %, increase Cooldown, reduce Max Divergence Width
More signals — decrease Min Confidence %, decrease Cooldown, widen divergence window
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Gold (XAUUSD) reversal traders — built and tested on gold's sharp intraday reversal character
📉 Forex and index swing traders — applicable to any instrument that exhibits momentum divergence at turning points
🧠 Systematic traders — the tiered confidence scoring gives a quantitative quality framework, not just visual arrows
📈 Traders who want to know why — every signal shows its tier, divergence type, and score directly on the label
⚠ Traders who struggle with overtrading — the dual-engine confirmation gate and confidence threshold physically prevent weak signals from appearing
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — no repainting
Divergence lines connect the actual price pivot points used to generate the signal
The position tracker and P&L display are internal to the indicator and do not connect to your broker account
Maximum 500 labels and 500 lines — on very low timeframes with extended history, oldest drawings may be removed automatically by TradingView'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 want to see the divergence, understand the confirmation, and act with confidence. Indicador
