Stochastic Resonance Signal [JOAT]Stochastic Resonance Signal
Introduction
Stochastic Resonance Signal is an open-source indicator built on the physical principle of stochastic resonance — the counterintuitive phenomenon where a moderate level of random noise actually enhances the detection of weak periodic signals rather than degrading it. In trading terms: markets with low volatility noise may suppress trend signals, while a calibrated level of volatility noise can help reveal underlying directional structure.
This indicator computes a signal-to-noise score that normalizes a smoothed price derivative against ATR-based noise. The score peaks when a meaningful directional signal is present within a noise environment that is neither too quiet (which produces false flatness) nor too loud (which obscures the signal entirely).
Core Concepts
1. Signal Component
The raw signal is the smoothed rate of change of price — the first derivative of a filtered price series. An EMA is applied to close to produce a noise-reduced price, then the bar-to-bar difference of that EMA serves as the signal. Positive signal indicates upward momentum; negative indicates downward:
float emaPrice = ta.ema(close, i_signalLen)
float rawSignal = emaPrice - emaPrice
float normSig = rawSignal / (ta.stdev(rawSignal, i_normLen) + 0.0001)
The signal is normalized by its own rolling standard deviation, making it dimensionless and comparable across instruments.
2. Noise Component
Noise is defined as ATR normalized by its rolling standard deviation. This separates the volatility component from the directional component. When noise is very low, it contributes little penalty. When noise is very high, it heavily discounts the signal. The optimal noise range produces the highest SR score:
float noisePenalty = ta.stdev(atrVal, i_normLen) / (ta.sma(atrVal, i_normLen) + 0.0001)
float srScore = math.abs(normSig) / (1.0 + noisePenalty)
3. SR Score and Threshold
The final SR score combines signal strength divided by noise penalty. The score is plotted as a histogram and compared against a configurable threshold. When the score exceeds the threshold in the positive signal direction, a bullish event fires. When in the negative direction, a bearish event fires. Both require barstate.isconfirmed.
4. Regime Context
The indicator categorizes the current noise state as Low, Optimal, or High. The Optimal zone — where stochastic resonance theory predicts signal enhancement — is highlighted in the background. Signals fired during the Optimal noise zone are the primary intended use case.
Features
Normalized signal derivative: EMA-smoothed price rate of change, dimensionless
ATR noise penalty: Volatility normalized by its own distribution, not a fixed threshold
SR Score histogram: Visual representation of the signal-to-noise ratio each bar
Threshold crossover signals: Bull and bear signals when SR score exceeds the gate
Noise regime classification: Low, Optimal, and High noise zones labeled
Optimal zone background: Chart shading during the resonance-optimal noise window
Candle coloring: Candles tinted by current SR score direction and magnitude
Dashboard: Current SR score, signal value, noise level, and regime state
Alerts: Configurable bull and bear SR threshold crossing alerts
Input Parameters
Signal Engine:
Signal EMA Length: Smoothing for price derivative calculation (default: 10)
Normalization Length: Rolling window for z-score normalization (default: 50)
Noise Engine:
ATR Period: ATR length for noise estimation (default: 14)
Optimal Noise Low: Lower bound of optimal noise zone (default: 0.3)
Optimal Noise High: Upper bound of optimal noise zone (default: 0.8)
Signal Gate:
SR Score Threshold: Minimum SR score to fire a signal (default: 1.5)
How to Use This Indicator
Step 1: Identify the Noise Regime
Check whether the background shading is active (Optimal zone). Signals fired during optimal noise conditions have the theoretical backing of stochastic resonance theory behind them.
Step 2: Read the SR Score
A rising histogram above the threshold line in positive territory indicates a developing bullish signal. Crossing below the negative threshold indicates a bearish signal.
Step 3: Apply as a Momentum Filter
Use SR score direction to confirm or reject signals from other tools. An SR score rising strongly above its threshold while a support level holds adds conviction to a long setup.
Indicator Limitations
Stochastic resonance as a trading construct is a theoretical analogy, not a proven quantitative edge on its own
The optimal noise zone boundaries are heuristic; the true optimal noise level varies by instrument and timeframe
Normalization requires a minimum lookback before scores stabilize — expect less meaningful output in the first normLen bars
Originality Statement
The application of stochastic resonance theory to price signal detection — computing a signal-to-noise ratio using a normalized price derivative divided by an ATR noise penalty, with an explicit optimal noise zone classification — is an original analytical framing not found in existing published Pine Script indicators. This is not a standard oscillator; it is a physics-inspired signal processing approach adapted to price data.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. The stochastic resonance framework is a conceptual model and does not guarantee profitable signals. Trading involves substantial risk of loss.
-Made with passion by jackofalltrades
Indicator

Fibonacci A-B-C Volles Strategie-Board(ENGLISH)
---
The Fibonacci Betting-Playbook 062026: How to read the Strategy Board
If you want to succeed in the markets, you need more than just a gut feeling, you need a system that delivers crystal-clear odds. This script is your personal bookmaker dashboard directly on the chart. It scans price movements for a highly profitable pattern and shows you exactly when the risk-reward ratio is as good as a massively overpriced underdog quote in La Liga.
Here is the official manual for you and your users, so that everyone knows exactly how to read the signals and when it's better to keep your feet still.
The Game Plan: The A-B-C Formation
In the background, the script constantly scans for a specific market movement, the so-called A-B-C ZigZag. Think of it like the perfect set piece:
Point A (The Kickoff): The lowest point where the movement begins.
Point B (The First Goal): The first high point. The momentum is here.
Point C (The Tactical Pause): The price drops back slightly. Exactly here, in this pullback, we calculate our entry before the second half – the next big price breakout – begins.
As soon as the script recognizes this formation, it paints your playing field (the boxes) onto the chart.
Your Betting Odds: The Zones on the Board
When the setup is "hot", you will see two distinct boxes on your screen. They take the guesswork out of the equation and tell you exactly where you need to place your chips.
🟢 The Green Zone: The Entry (The Value Bets)
Here is where you build your position. If the price falls into this box, we have a statistical advantage (edge).
Line 0.500 (Initial Entry): The market has corrected half of its rally. Here you place your first, smaller bet.
Line 0.618 (Ideal Reload): This is the "Golden Ratio". The absolute sweet spot in the Fibonacci system. If the price drops here, you double down. The chance of a bounce is highest here.
Line 0.667 (The Last Bastion / STOP): The red dashed line. If the price falls below this, the setup is busted. The trade is canceled, you pull the ripcord, and accept the small loss. No hoping, no praying – strict bankroll management.
🟠 The Orange Zone: The Cashout (Taking Profits)
If the trade plays out and the price shoots up, this box shows you where the bookie opens the register.
Line 1.618 (Potential Turning Point): Your first target (Take Profit 1). Here you take a portion of your winnings off the table. Ring the register!
Line 1.809 (Trailing Stop-Loss): The price keeps running? Perfect. Trail your stop-loss to your entry price now. You are now riding a risk-free bet.
Line 2.000 (Massive Resistance): The absolute maximum. The air gets extremely thin up here. Take your remaining profit and close the position.
🔴 The VAR Signal: The Red Warning Box
Markets are often chaotic. If the script fails to recognize a clear A-B-C pattern, the stop-loss has been hit, or the target has already been reached, the system immediately deletes all lines from the chart.
Instead, a red box appears in the center: "CURRENTLY NO RECOMMENDATION POSSIBLE - WAIT FOR FURTHER CHART SIGNALS".
This is like a suspended betting market during a VAR check. Your only task at this moment: Do not trade. Keep your hands off the buy button. Wait patiently until the system builds the next profitable setup.
What you as a user must absolutely pay attention to (The Golden Rules)
Patience is your best croupier: Do not trade blindly just because the price is moving. Always wait until the boxes appear on the chart and the price dips into the green zone.
Respect the Stop-Loss (0.667): Even in the best Spanish casinos, you don't win every hand. If the red line is breached, close the trade on Trade Republic immediately. Whoever hesitates here gambles away their bankroll.
Split your stakes: Do not wager your entire capital at the 0.500 line. Make a partial entry and keep your powder dry in case the price drops to the golden 0.618 line. This massively improves your average entry price.
Secure your profits: When the price reaches the orange 1.618 line, do not get greedy. Take a partial profit. Nothing is more frustrating than turning a fat paper profit back into a loss.
Indicator

Confluence FVG Finder | ProjectSyndicateConfluence FVG Finder automatically identifies and validates high-probability, non-repainting Fair Value Gaps. It filters for structural quality using an ATR-based imbalance filter, normalizes all zone heights for consistency, and embeds a live multi-timeframe confluence engine inside every zone to provide a quantifiable, data-driven edge.
🧠 Live Multi-Timeframe Engine — This is not a single-timeframe tool. Every FVG zone displayed on the chart is the result of a live, proximity-based confluence engine scanning three independent higher timeframes (default H1, H2, H4) simultaneously. Each label shows exactly how many timeframes confirmed the zone, its composite strength rating (0–10), the session it formed in, its age, and its exact pip height, giving you an instant structural edge.
🎯 Imbalance-Validated FVGs — The engine doesn't just mark any three-candle gap. It validates each Fair Value Gap on the higher timeframes by requiring the gap to exceed a user-defined multiple of ATR, filtering out insignificant micro-gaps and focusing only on imbalances that reflect true market-moving intent before they are even considered for merging.
🎨 ATR-Normalized Zones — Eliminates visual noise from inconsistent gap sizes. This feature forces every merged FVG zone to a uniform, ATR-based height (e.g., 0.75x ATR). This provides a clean, consistent chart and allows for a more objective analysis of price interaction with zones of equal visual weight, preventing oversized gaps from distorting the chart.
📊 Proximity-Based Merging — Timeframes rarely align perfectly to the pip. The confluence engine uses an intelligent ATR-based proximity tolerance to detect when Fair Value Gaps from different timeframes are clustered in the same price territory. It then mathematically merges them into a single, high-probability "Confluence Zone," ensuring you don't miss valid setups due to minor price discrepancies across timeframes.
✅ Chart-Timeframe Independent — The engine's credibility comes from its architectural stability. Each timeframe is detected entirely inside its own data context and every zone is anchored to the timestamp it formed on, so — unlike standard MTF indicators that repaint or shift zones depending on the chart you are viewing — the merged zones are mathematically identical whether you view them on a 5-minute, 15-minute, or 1-hour chart.
🔧 Fully Customizable — Control every aspect of the engine, including the 3 target timeframes (default H1 / H2 / H4), the Minimum Timeframe Confluence threshold (e.g., require 3 out of 3 TFs), the Proximity Tolerance multiplier, the Minimum Strength Filter, the per-timeframe strength bonus, the mitigation mode (Touch / Full Fill / 50% Fill), and the colors/visibility of Bullish and Bearish zones.
🔬 Why this algo is unique: Standard FVG indicators are subjective — often just shading every three-candle gap on the current timeframe with no proof of higher-timeframe alignment. The Confluence FVG Engine transforms this into an objective, multi-dimensional instrument. It doesn't just show you a gap; it proves the imbalance is backed by aligned intent across multiple timeframes, merging them into a single, undeniable area of interest on the exact chart you are viewing.
🌐 Apply to Gold (XAUUSD), Indices (US30, NAS100), Forex Majors, and Crypto. With the default H1 / H2 / H4 structure, execute from any timeframe at or below H1 (1m–1h) while the engine tracks the H1, H2, and H4 imbalances. The engine is designed for assets that exhibit clear impulsive moves and respect deep supply/demand dynamics.
🗂️ How to use this? The most critical metrics are the Timeframe Confluence Count and the Strength Rating. A zone confirmed by 3 timeframes with a Strength of 8.0+ indicates a massive structural edge. Consider only taking trades from these high-confluence zones that align with the prevailing higher-timeframe trend. The embedded label also shows the exact "pips away" distance, allowing for precise limit order placement. Note: Timeframe 1 is the anchor — keep your chart at or below it (H1 by default) so zones render exactly; an on-chart warning appears if your chart timeframe is set higher.
⚙️ IMPORTANT NOTICE: This indicator is a professional-grade tool designed to identify structural confluence. It should NOT be used as a standalone signal for entering trades blindly. Always use it in conjunction with your own trading strategy, price action analysis, and strict risk management to confirm trade setups. Indicator

Kalman Trend Filter [JOAT]Kalman Trend Filter
Introduction
Kalman Trend Filter is an open-source trend detection indicator that applies a two-state Kalman filter to price, tracking both the filtered price level and its velocity simultaneously. Unlike exponential moving averages — which apply a fixed exponential decay to past data — the Kalman filter dynamically adjusts its responsiveness based on the ratio of process noise to measurement noise. When price is moving consistently in one direction, the filter trusts new measurements more heavily. When price is noisy, it trusts its own model more heavily.
The practical result is a trend line that responds faster than an equivalent EMA during genuine trends while remaining smoother during chop. The velocity state is the direct indicator of trend direction and strength — it is what drives signal generation and candle coloring.
Core Concepts
1. Two-State Kalman Filter
The filter tracks two quantities: price (position state) and the rate at which price is changing (velocity state). The prediction step projects both states forward using simple kinematic equations. The correction step updates them based on how much the current close deviates from prediction:
// Prediction
float xPred = xEst + vEst
float pPred = pEst + qNoise
// Kalman gain
float kGain = pPred / (pPred + rNoise)
// Correction
float xEst = xPred + kGain * (close - xPred)
float vEst = vEst + kGain * (close - xPred)
The process noise (qNoise) and measurement noise (rNoise) parameters control how much the filter trusts its own momentum model versus new price data.
2. Velocity as Trend Proxy
The velocity state is the most analytically useful output. Positive velocity means the filtered price is accelerating upward; negative means downward. The magnitude of velocity indicates trend strength. Velocity crossing zero is a higher-quality trend reversal signal than a moving average crossover because it reflects the momentum of the filtered series, not the level.
3. Gradient Candle Coloring
Candles are painted using a two-sided gradient driven by the velocity state. Strongly positive velocity produces bright cyan candles; strongly negative produces bright magenta. Near-zero velocity transitions to neutral. The gradient intensity scales with velocity magnitude rather than applying a binary color switch.
4. Velocity Oscillator
The velocity state is plotted as a separate sub-indicator below the main chart, providing a visual oscillator that crosses zero at trend reversals. Unlike momentum oscillators derived from price differences, this oscillator represents the Kalman filter's internal estimate of trend rate — it is inherently smooth without additional EMA smoothing.
Features
Two-state Kalman filter: Tracks price level and velocity simultaneously
Configurable noise parameters: Process and measurement noise control filter responsiveness
Filtered price line overlay: Smooth trend line drawn on the price chart
Velocity oscillator: Kalman velocity state as a zero-line oscillator
Velocity zero-cross signals: Bull and bear signals when velocity crosses zero
Gradient candle coloring: Cyan for upward velocity, magenta for downward, scaled by magnitude
Dashboard: Current filtered price, velocity, trend state, and noise parameters
Alerts: Velocity zero-cross and extreme velocity alerts
Input Parameters
Kalman Engine:
Process Noise (Q): How much the filter trusts its own velocity model (default: 0.01)
Measurement Noise (R): How much the filter trusts new price measurements (default: 1.0)
Initial Velocity: Starting velocity state (default: 0.0)
Display:
Show Filter Line toggle
Show Velocity Oscillator toggle
Show Candle Color toggle
How to Use This Indicator
Step 1: Read Velocity Direction
Positive velocity (oscillator above zero, cyan candles) indicates the filter is trending upward. Negative velocity (below zero, magenta candles) indicates downward trend. The magnitude tells you how strong.
Step 2: Use Velocity Zero-Cross as Trend Change Signal
When velocity crosses from negative to positive, the filter's internal momentum model has flipped bullish. This is more reliable than a price crossover because it reflects the rate of change of the filtered series.
Step 3: Tune Noise Parameters to Timeframe
On faster timeframes, increase Q slightly (0.02–0.05) to make the filter more responsive. On weekly charts, reduce Q (0.001–0.005) for a smoother, slower-adjusting filter.
Step 4: Combine with Regime Context
The Kalman filter performs best in trending regimes. Combine with Fractal Dimension Oscillator: when FDO shows a trending regime, Kalman velocity direction provides the trend bias.
Indicator Limitations
The Kalman filter assumes a linear motion model; non-linear price dynamics (sudden gaps, news events) produce temporary distortion in the filter state
Optimal Q and R values are instrument and timeframe dependent; no universal setting works everywhere
Velocity zero-crosses during low-volatility consolidation can produce frequent false signals
Originality Statement
The two-state Kalman filter implementation combined with a velocity-driven gradient candle coloring system, a dedicated velocity oscillator, and dual-input noise parameter configuration in a single publication is the original contribution here. Most published Kalman filter scripts on PulseWire implement a single-state position filter with no velocity tracking and no gradient visualization.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Kalman filter outputs are mathematical estimates based on prior observations and do not predict future price. Trading involves substantial risk of loss.
-Made with passion by jackofalltrades
Indicator

RSI Divergence: Out-of-Sample Optimizer [LuxAlgo]The RSI Divergence: Out-of-Sample Optimizer indicator is a comprehensive backtesting and optimization tool designed to identify the most effective RSI period for trading price-RSI divergences within a specified historical window and validate those results through out-of-sample and forward testing.
🔶 USAGE
The script is divided into three distinct chronological phases to simulate a professional quantitative workflow:
🔹 In-Sample (IS) Optimization
During this period (highlighted by the first background gradient), the script simulates dozens of RSI periods simultaneously. It calculates divergence signals and trade outcomes for every period within the user-defined range (e.g., RSI 2 to 50). The "best" period is selected based on your chosen Optimization Metric, such as Net Profit or Profit Factor.
🔹 Out-of-Sample (OOS) Validation
Once the best RSI period is identified in the IS phase, the script "locks" that parameter and applies it to the next segment of data (the OOS period). This tests whether the strategy’s performance was due to genuine market alpha or simply "curve-fitting" to historical noise.
🔹 Forward Testing
The Forward period represents the most recent data leading up to the current bar. The script continues using the parameter validated during the OOS phase to show how the strategy is performing in the current market environment.
🔶 DETAILS
🔹 Divergence Detection
The script identifies regular bullish and bearish divergences. A bullish divergence occurs when price makes a lower low while the RSI makes a higher low. A bearish divergence occurs when price makes a higher high while the RSI makes a lower high. The script uses pivot lookback settings to confirm these peaks and troughs.
🔹 Trade Execution Logic
Trades are entered on the bar following a confirmed divergence. Stop loss and take profit levels are calculated using an ATR (Average True Range) multiplier to account for market volatility. Users can also enable "Exit on Opposite Signal" to close trades if a contrary divergence appears before hitting a price target.
🔹 Sensitivity Analysis (Heatmap)
The dashboard includes a "Sensitivity Table" that acts as a heatmap. It displays every RSI period tested during the In-Sample phase. Darker green cells indicate superior performance, while darker red cells indicate poorer performance based on the selected optimization metric. This allows you to see if your "best" setting is an outlier or part of a robust cluster of profitable periods.
🔶 SETTINGS
🔹 Optimization & Backtest Ranges
In-Sample Start/End: Defines the historical window used to find the best performing RSI period.
Out-of-Sample Start/End: Defines the validation window where the best IS period is tested on unseen data.
Min/Max RSI Period: The range of RSI lengths the script will simulate (e.g., 2 to 50).
Optimization Metric: The primary KPI used to rank RSI periods (e.g., Sharpe Ratio, Win Rate, Net Profit).
🔹 Divergence Settings
Pivot Left/Right Bars: The number of bars required on either side of a point to confirm a local high or low in the RSI.
Max Divergence Bars: The maximum distance allowed between two pivots to qualify as a divergence.
🔹 Trade Rules
Stop Loss/Take Profit ATR Multiplier: Controls the distance of exit levels based on recent volatility.
Exit on Opposite Signal: When enabled, a long trade will close immediately if a bearish divergence is detected.
🔹 Dashboard
Extra Dashboard Metric 1/2: Allows you to add two additional performance statistics to the dashboard (e.g., Z-Score or Average Trade) alongside the default metrics.
Dashboard Position/Size: Adjusts the UI elements to fit your screen resolution and preference.
Indicator

Adaptive Volatility Envelope [QuantAlgo]🟢 Overview
The Adaptive Volatility Envelope wraps price in a dynamic field of volatility bands centred on a self-adjusting baseline. Rather than tracking price at a fixed speed, the centerline measures how efficiently price is moving and accelerates when movement is more directional while slowing down in choppy conditions, so the baseline follows sustained moves more closely and reacts less to sideways noise. Around this adaptive centerline, layered ATR-scaled bands form a heat map that brightens toward the side price is moving into, giving traders a visual read on both trend state and momentum strength across any instrument or timeframe.
🟢 How It Works
The indicator's core methodology combines two mechanisms: an efficiency-driven centerline that adapts its tracking speed to market conditions, and a volatility-scaled band field that visualises momentum through colour and brightness.
First, market efficiency is measured by comparing net directional movement against total movement over the adaptation window. This ratio approaches one when movement is more directional and falls toward zero in choppy conditions, and it is used to blend between a slow choppy speed and a fast trending speed. The result is a smoothing factor that automatically tightens the centerline's tracking in directional moves and loosens it in noise, without manual recalibration:
efficiencyRatio = totalMovement != 0 ? priceChange / totalMovement : 0.0
smoothingFactor = choppySpeed + (trendSpeed - choppySpeed) * efficiencyRatio
Next, the centerline advances toward price by the smoothing factor on each bar, producing an adaptive baseline that closes the gap quickly when efficiency is high and slowly when it is low:
centerline := na(centerline ) ? src : centerline + smoothingFactor * (src - centerline )
Band width is then derived from Average True Range scaled by the band spacing, with a safety cap that measures total envelope height against the recent fifty bar price range. If the raw width would exceed this cap, every band is scaled down proportionally, preventing the field from blowing out and distorting the chart scale during volatility spikes:
widthScale = rawWidth > maxWidth and rawWidth != 0 and maxWidth > 0 ? maxWidth / rawWidth : 1.0
bandUnit = atr * bandSpacing * widthScale
Momentum is resolved from the centerline's slope normalised by ATR and scaled by the colour sensitivity, then clamped to a range of minus one to one. This drives a gradient that runs from the neutral colour at flat momentum toward the bullish or bearish colour as the move strengthens, while a directional brightness offset lights up the leading side of the envelope more than the trailing side:
momentumRaw = not na(atr) and atr != 0 ? slope / atr * colorSens : 0.0
momentum = math.max(-1.0, math.min(1.0, momentumRaw))
Finally, a confirmed-bars toggle governs what the script computes. In Live mode the centerline, momentum, bands and signals update intrabar on the developing bar for the fastest response, with the current bar able to change until it closes. In Confirmed mode everything is locked to closed bars only, so signals do not repaint and print on the bar that closes the move.
🟢 Signal Interpretation
▶ Bullish Momentum (Centerline and Bands Brightening Toward the Bullish Colour): When the centerline slopes upward relative to volatility, momentum turns positive and the envelope gradient shifts toward the bullish colour. The leading upper side of the field brightens through the directional brightness offset, making the direction of the move easier to read. The bullish state persists as long as the centerline continues rising, and a "Momentum Turned Bullish" alert fires on the bar where momentum crosses above zero.
▶ Bearish Momentum (Centerline and Bands Brightening Toward the Bearish Colour): When the centerline slopes downward relative to volatility, momentum turns negative and the gradient shifts toward the bearish colour, with the leading lower side of the field brightening to flag the downturn. As with the bullish state, the colour saturates as the move strengthens and fades toward neutral as momentum flattens. A "Momentum Turned Bearish" alert fires on the bar where momentum crosses below zero, flagging a potential short or exit condition.
▶ Neutral Momentum (Centerline and Bands at the Neutral Colour): When the centerline is flat or moving slowly relative to volatility, momentum sits near zero and the gradient settles at the neutral colour at the middle of its range. This indicates low conviction or sideways drift rather than a directional move, and the envelope brightens away from neutral only as the slope steepens enough to register on either side. Reading the neutral state helps separate genuine momentum from chop, since the field stays muted until price generates a meaningful directional slope.
🟢 Features
▶ Preconfigured Presets: Three parameter sets cover a range of trading styles and timeframes. "Default" delivers a balanced engine for swing trading on 4-hour and daily charts. "Fast Response" shortens the adaptation window and quickens both market speeds for tighter, more reactive bands on 5-minute to 1-hour charts, suiting intraday and scalping use. "Smooth Trend" lengthens the adaptation window and slows the speeds for wider, steadier bands on daily and weekly charts, suiting position trading. The presets deliberately leave Volatility Length untouched, so band width stays under independent manual control.
▶ Built-in Alerts: Three alert conditions support automated monitoring of momentum transitions. "Momentum Turned Bullish" fires on the bar momentum crosses above zero. "Momentum Turned Bearish" fires on the bar momentum crosses below zero. "Any Momentum Change" triggers on either transition for traders who want a single unified alert regardless of direction. All alerts include the exchange, ticker, and timeframe in the message for immediate context, and the confirmed-bars toggle determines whether they evaluate on live or closed-bar data.
▶ Visual Customisation: Six colour presets, Classic, Aqua, Cosmic, Cyber, Neon, and Custom, provide coordinated bullish and bearish colour pairings suited to different chart themes and personal preferences. Selecting Custom exposes independent colour pickers for full manual control over both states, alongside an adjustable neutral colour for the midpoint of the gradient. The number of band layers is configurable from one for a clean minimal look up to eight for a rich gradient field, and the bands can be hidden entirely to display only the centerline. Optional bar colouring tints price candles with the active trend colour at a configurable transparency level, reflecting the current momentum state without reading the centerline directly.
Indicator

AI Trend Detector | Adaptive Signals [NeuraLib Machine Learning]🔷 AI Trend Detector | Adaptive Signals
AI Trend Detector is a NeuraLib-powered Machine Learning indicator. It trains a compact supervised neural model on confirmed historical movement, then uses the current market state to estimate Bear , Neutral , and Bull pressure.
The model output is converted into a clean visual system:
Trend Oscillator : A 0-100 pressure gauge. Lower values suggest bullish pressure or oversold conditions. Higher values suggest bearish pressure or overbought conditions.
Adaptive MA Cloud : A main-chart adaptive moving average with an AI-biased cloud that expands as model pressure moves away from neutral.
Confirmed Triangles : Optional chart markers for overbought and oversold interactions, with modes for zone entry, zone exit, or confirmed rotation inside a zone.
Dashboard : A compact readout showing the current state, signal value and confidence.
Triangle Alerts : Alert conditions tied to the same confirmed marker logic shown on the chart.
Directional Confidence : An optional 0-100 line showing the stronger directional model probability, calculated from the larger of Bull or Bear pressure. It does not include Neutral probability, so it reflects directional conviction rather than overall model certainty.
This is not a fixed crossover system. The signals are the visual layer of a model-driven trend pressure engine.
---
🔷 How The Model Learns
Each bar contributes a compact feature row based on price movement, adaptive MA context, and distance from the adaptive baseline. NeuraLib stores these rows in a rolling dataset, normalizes the inputs, and trains the model on recent time-series windows.
The model is trained as a 3-class classifier:
Bear
Neutral
Bull
Historical training examples use future-resolved movement to create their target class, but only after that movement has already occurred. This is the supervised learning setup: the model learns from completed historical outcomes, then applies its learned weights to the current live feature window.
The exposed settings allow users to experiment with model size, learning rate, training frequency, smoothing, trend horizon, and signal behavior.
---
🔷 Model Architecture
The model uses a compact temporal classification architecture:
Flattened state window : Recent feature rows are combined into one temporal input.
Temporal convolution stack : Conv1D-style layers extract short-term structure from the recent market sequence.
Global average pooling : The temporal output is compressed into a compact state representation.
Dense classifier head : One or two dense layers process the pooled state.
Three output logits : The model produces Bear, Neutral, and Bull logits, which are converted into display probabilities.
This keeps the model small enough for Pine Script while still giving it a true sequence-learning structure rather than a simple crossover or rule-based signal engine.
---
🔷 Reading The Signals
The oscillator is intentionally inverted for intuitive market reading:
Low values : Oversold or bullish pressure.
Mid values : Balanced or neutral pressure.
High values : Overbought or bearish pressure.
Triangles can be configured through the Triangle trigger setting:
Crossing into : Prints when the oscillator crosses into an overbought or oversold zone.
Going out of : Prints when the oscillator exits an overbought or oversold zone.
Rotation inside zone : Prints when the signal forms a confirmed turn while still inside the zone.
In rotation mode, Rotation confirmation controls how many bars must pass without breaking the candidate peak or trough before the marker is accepted. Rotation triangles print on the confirmation bar, not on the older pivot bar.
The adaptive MA cloud is visual only. The model is not trained on the shifted cloud edge. The cloud simply applies model pressure around the adaptive MA baseline.
---
⚠️ Repainting And Signal Timing
The training and signal system is designed around confirmed bars:
Training rows are pushed on confirmed bars.
Triangle signals are gated with barstate.isconfirmed .
Rotation markers print on the confirmation bar.
No negative plot offsets are used to move markers into the past.
The smoothing path uses current and past values only.
Because this model does not train on the full price history, but instead learns from the most recent N bars, repainting may occur when the script is reloaded at a later date. This happens because the model may begin training from a different market environment.
To help preserve the original model state, adjust the Historical Train Window setting to account for any new bars that have been added since the original run.
---
⚠️ Limitations
Machine Learning inside Pine Script is powerful, but it is still bounded by PulseWire's execution model.
The model is compact by design.
Training history is bounded for performance.
Changing hyperparameters rebuilds the model.
Signals depend on the chosen horizon, threshold, smoothing, and triangle mode.
The model estimates directional pressure. It does not know your entries, exits, risk, fees, or position sizing.
This indicator is best treated as a model-based market pressure tool, not as a complete trading system by itself.
This indicator is powered by the NeuraLib Deep Learning Runtime
Disclaimer: This indicator is an analytical and educational tool. It does not guarantee future results, signal accuracy, or financial gain. Past behavior does not ensure future behavior. Use it as one component in a broader trading process, under your own responsibility. Conceptual architecture and quantitative development by Alien_Algorithms.
Indicator

Strong Geometric Patterns Engine | ProjectSyndicateStrong Geometric Patterns Engine automatically detects, validates, and grades nine classic chart patterns using an objective, non-repainting geometry engine. It confirms every signal on a breakout close, projects adaptive measured-move take-profit and structural stop-loss levels scaled to Average Daily Range (ADR), scores each setup 0–10 for quality, and presents a full statistical breakdown on a non-intrusive dashboard to provide a quantifiable edge.
🧠 9-Pattern Geometric Detection — identifies Head & Shoulders, Inverse Head & Shoulders, Double Top, Double Bottom, Ascending / Descending / Symmetrical Triangles, and Rising / Falling Wedges from a non-repainting confirmed-pivot engine, so signals are stable and never redraawn after the fact.
🔒 Breakout-Confirmed, Non-Repainting — a valid shape only sets a pending setup; the signal fires exclusively when price closes through the pattern's trigger level, eliminating the subjective, repainting behaviour of standard ZigZag and pattern tools.
🎯 ADR-Adaptive Measured-Move TP/SL — TP1, TP2, and SL are derived from the pattern's own projected height (a true measured move), bounded by a percentage of the 10-day ADR, so risk and targets adapt automatically to any asset's volatility instead of using fixed points.
⭐ 0–10 Quality Scoring — every setup is graded on symmetry, convergence, and a volume confirmation bump, displayed as a star rating next to each signal so you can instantly gauge setup strength and filter for the best ones.
🎨 Direction-Matched Visuals — clean upward/downward entry markers, green bullish and red bearish labels, and crisp horizontal SL / TP1 / TP2 levels give instant visual confirmation of trade direction with no chart clutter.
📊 Full Performance Dashboard — a complete statistical overview including the real-time ADR10 value, the active/pending setup with its targets, total signals, TP1/TP2 win rates, a per-pattern breakdown across all nine pattern types, and a log of the most recent trade outcomes.
✅ Advanced Quality-Control Filters — user-configurable Pivot Length, equality/slope/convergence tolerances, min & max pattern span, measured-move bounds, and minimum bars between signals eliminate low-quality or oversized patterns and prevent over-signaling.
🔔 Comprehensive Alerts — get alerted the moment a new pattern is detected (pending), when price is approaching the trigger, when a setup confirms on the breakout, or only on strong high-score patterns. Available as a single rich alert() message (symbol, timeframe, trigger, invalidation, entry, SL, TP1, TP2, quality) for automation, plus six individually selectable named alert conditions.
🔧 Fully Customizable — control everything from pivot length and pattern-quality tolerances to colors, level extension, persistent historic levels & labels, adjustable signal label size, and dashboard text size.
🎯 Why this algo is unique: Standard pattern indicators repaint and offer subjective signals with no statistical backing. This is an objective, fully-gated, non-repainting engine that doesn't just draw a pattern — it recognizes nine of them from raw geometry, confirms them on a breakout, builds a complete adaptive risk framework (measured-move, ADR-bounded zones) around each one, grades its quality, and proves its historical performance on the very chart you're trading.
🚀 Apply to Gold (XAUUSD), Forex, Crypto, and Indices on any M5/M10/M15/M30/H1. The ADR-based, self-scaling geometry and extensive quality filters let it adapt to anything from M5 scalping to H4 swing trading.
🎯 How to use this? Use the dashboard to understand how each pattern type has recently performed on the current asset and timeframe. Favour higher-quality (higher-star) setups and those aligned with the higher-timeframe trend. Tune the pattern tolerances and measured-move multipliers to match your own risk tolerance and the asset's character.
⚠️ IMPORTANT NOTICE: This indicator is designed to identify statistically-backed pattern signals. 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 setups and manage risk. Indicator

Normalized Candles RSI [Jamallo]🔹 Intro
The Normalized Candles RSI is a quantitative momentum and volatility indicator designed to transform raw, trending price action into a stationary 0-100 oscillator. By passing price data through a Fractional Differencing engine and a dynamic Z-Score normalization layer, it strips away market drift and presents pure, bounded candlestick momentum. This stationary price structure is then directly overlaid with a traditional RSI and Divergence engine for highly confluent signals.
🔹 Break down
Fractional Differencing (FFD): Transforms non-stationary price data into a stationary series while retaining deep historical memory (controlled by the "d" parameter). This prevents the data loss associated with standard period-to-period differencing.
Normalization Engine: Applies a rolling Z-Score to the differenced data, which is then passed through a Sigmoid compression function. This mathematically forces the resulting candlesticks into a strict 0-100 range without repainting.
RSI & Divergence Engine: Overlays a classic RSI with optional smoothing moving averages and Bollinger Bands. Built-in regular bullish and bearish divergence detection algorithms automatically scan for momentum exhaustion relative to the price.
🔹 Visual Guide: Indicator Anatomy
The true power of this indicator lies in its visual mapping. As shown in the snapshot, the indicator pane perfectly merges the structure of raw price action directly with a classic RSI oscillator.
1:1 Structural Mapping: Notice how the normalized candles in the middle pane mirror the raw price action in the main chart exactly (highlighted by the "1:1 with overlay candle sticks" annotation). You get the exact same highs, lows, and structural candlestick patterns, but stripped of drift and mathematically squashed into a stationary box.
Normalized Candles + Standard RSI: If you look at a standard RSI (bottom pane), you only see a floating line. By overlaying the normalized candles (middle pane), you can see exactly how the physical candlestick bodies and wicks behave relative to the RSI's 0-100 bounds and its smoothing moving average (the yellow line).
Actionable Context: When a localized top or bottom forms, you aren't just guessing based on a purple line peaking. You can see the actual candlestick structure exhausting itself, forming wicks and reversal patterns right against the upper (70+) or lower (30-) overextended boundaries.
🔹 Settings Parameters
- Diff Order (d) (0.01 - 0.99): The fractional differencing order. Higher values make the series more stationary but remove more historical memory.
- Z-Score Lookback: The rolling window used to calculate the mean and standard deviation for the 0-100 normalization engine.
- Sigmoid Compression Scale: Controls the elasticity of the 0-100 bounds. A higher value results in softer compression at the extremes, while a lower value makes it compress faster.
- RSI Settings & Smoothing: Standard parameters for the RSI length, smoothing moving averages (SMA, EMA, VWMA, etc.), Bollinger Bands, and the divergence lookback constraints.
🔹 Credits & Acknowledgements
The core RSI and Divergence engine utilized in this script is adapted from PulseWire's built-in Relative Strength Index indicator code. Indicator

Adaptive Trend Expansion Bands [BigBeluga]Adaptive Trend Expansion Bands is an advanced, volatility-scaled mathematical modeling terminal engineered for PulseWire. It operates as a dynamic trend-following corridor system that maps asset extension, mean-reversion horizons, and structural exhaustion thresholds across four distinct mathematical volatility tiers.
Rather than relying on static channels or fixed-percentage envelopes, this system uses an adaptive algorithmic architecture. It combines a selectable baseline smoothing core (such as an EMA or HMA) with standard Average True Range (ATR) step multipliers. This approach maps predictable, gradient-shaded risk corridors that expand and contract in perfect synchronization with real-time market volatility.
🔵 SYSTEM ARCHITECTURE & EXECUTING CORE ENGINES
1. Smooth Multi-Engine Core Baseline
Selectable Mathematical Foundations: The central anchor line runs your preferred moving average smoothing type ( SMA, EMA, WMA, or HMA ). This allows you to tailor the script to act as a responsive high-velocity scalp line or an institutional trend tracking system.
Volatility Expansion Envelopes: Spawns four upper and four lower risk bands symmetrically off the baseline. Driven by the asset's raw ATR Length , these bands act as a multi-layered support and resistance map, defining exactly where price action transitions from normal distribution into extreme variance.
2. Asymmetric Structural Trend Inversion Locking
Zone 3 Structural Threshold Flipped Tracking: The script utilizes a structural state machine that changes color parameters only when a candle successfully forces a crossover above the upper Zone 3 band ( Bullish Lock ) or a crossunder below the lower Zone 3 band ( Bearish Lock ).
Clean Workspace Overwrites: Once a trend direction is verified, the engine overwrites your primary layout candle bars with clear, customized hex-theme presets ( Bullish/Bearish Base Colors ) to maintain absolute structural awareness.
Dynamic Zone-Tier Mapping Labels: When a structural trend shift occurs, the system prints crisp zone indicators ( +1 to +4 or -1 to -4 ) directly in the background spaces to immediately define the volatility tiers.
3. High-Variance Exhaustion Spotting (Zone 4 Hits)
Counter-Trend Spike Identifiers: The terminal flags moments when an active trend experiences a sudden, high-velocity counter-trend surge into deep premium or discount territory ( Zone 4 Extreme Target Layers ).
Localized Inversion Candlestick Highlights: The exact candle that spikes into a Zone 4 level is instantly recolored with a high-visibility contrast override ( Zone 4 Hit Candle Color ). This provides immediate visual warning of exhaustion before any pullback begins.
Anti-Overlap Cooldown Guardrails: Built-in index buffer logic ( Zone 4 Label Bar Gap ) prevents the system from cluttering your workspace with consecutive text labels during high-velocity runs.
4. Automatic Order-Tracking Boxes & Escape Latches
Historical Low/High Sizing Brackets: The moment a Zone 4 anomaly is logged, the graphical engine automatically anchors a structural box tracking the recent 3-bar high/low territory.
Dynamic Trailing Tracker Dashed Lines: Extends crisp upper and lower horizontal tracker boundaries from the exhaustion point. These dashed lines track the consolidation range and remain active until the market breaches either boundary, triggering a directional arrow glyph ( ▲ or ▼ ) to mark the breakout.
🔵 SYSTEMATIC EXECUTION STRATEGIES & RISK INTERPRETATION
Counter-Trend Overextension Inversions: When an asset is structurally trading in a downtrend but experiences an aggressive squeeze that spikes into the upper Zone 4 envelope, it triggers a Zone 4 exhaustion print. This alerts you that buyers have pushed deep into an illiquid mathematical ceiling. Look for short-side setups as price targets a mean-reversion move back down toward the primary baseline.
Zone Range Breakdown Continuations: Monitor the horizontal dashed tracking lines spawned by a Zone 4 hit. If price action consolidates inside these boundaries and then prints a strong close outside the high/low bracket, look to trade the breakout in that direction, using the opposite dashed line as a hard risk invalidation level.
Trend Health Assessment via Gradient Fills: Use the layered background fills to gauge trend strength. Healthy, sustainable trends typically ride smoothly along the Zone 1 and Zone 2 channels. When price aggressively pierces into Zone 3 or Zone 4, it signals a climax state, warning you to tighten trailing protective lines or take profits before a mean-reversion event.
🔵 INTERFACE CONFIGURATION AND PARAMETERS
Core Mathematical Tuning: Easily adjust baseline types, lookback periods, and baseline multipliers to optimize the indicator for any asset class, volatility cycle, or chart time frame.
Exhaustion Label Cleanliness Filters: Customize the bar index gap parameters to keep your layout workspace clean and legible during highly volatile market conditions.
Visual Theme Customization Modifiers: Fully adjust color properties for bullish states, bearish states, and exhaustion candle overrides to blend seamlessly into your dark or light charting interface.
Transform your charting layout from flat geometric indicators into a highly responsive, volatility-scaled risk map with the Adaptive Trend Expansion Bands terminal. Indicator

Adaptive Momentum Strength Score (AMSS)There is a specific kind of frustration that every serious trader knows.
The setup looks right. The candle closes with conviction. The oscillator confirms. You enter and the move immediately stalls, reverses, or dissolves into noise. Later you realize the volume was weak, volatility never truly expanded, or directional pressure had already started fading before the entry.
That frustration is not a discipline problem. It is an information problem.
Most momentum indicators measure one piece of the puzzle. RSI measures price velocity. Volume indicators measure participation. Bollinger Bands measure volatility state. Each tells part of the story. The Adaptive Momentum Strength Score was built on the conviction that momentum quality can only be evaluated meaningfully when several complementary market forces are read together, not after the fact, but simultaneously, on every bar.
The Core Framework
The purpose of the composite score is straightforward: to answer not just whether price is moving, but whether the move is supported by the conditions that tend to give momentum its staying power.
The score is normalized between 0 and 100 and built from three independent components. The first measures candle impulse relative to ATR not raw candle size, but how decisive the current bar is in the context of what normal looks like for this asset right now. The second measures volume participation by comparing current volume against its moving average, distinguishing genuine momentum expansion from the kind of low-participation drift that precedes failed breakouts far more often than it precedes continuation. The third measures volatility expansion through Bollinger Band width relative to its own average, detecting the transition from compression into expansion as a market begins releasing stored energy.
Each component is independently normalized before combining. By default, volume participation carries the greatest weight of the three — a deliberate choice reflecting the observation that genuine participation tends to be the most reliable differentiator between momentum that follows through and momentum that fades. Candle impulse and volatility expansion carry equal secondary weight, acknowledging that decisive price movement and volatility expansion both contribute meaningfully to momentum quality without either being treated as a primary condition on its own. All weights remain fully adjustable for traders who prefer a different emphasis across different assets or timeframes.
What separates this framework from most traditional oscillators is that momentum strength, directional pressure, market regime, momentum acceleration, and signal confirmation are kept as independent layers that work together while remaining individually interpretable. The goal is not to compress everything into a single binary output but to provide a structured view of how momentum is developing and whether broader conditions are genuinely supportive.
Adaptive Thresholds
A composite score is only as useful as the threshold that determines when it becomes meaningful.
The indicator supports two threshold modes. Fixed mode works cleanly in stable trending environments where volatility expression is consistent. Adaptive mode the recommended default calculates the threshold dynamically using rolling score averages and standard deviation scaling, then clamps it within a defined range. As market character shifts, the threshold recalibrates automatically rather than forcing traders to manually adjust a static level every time volatility conditions change.
The practical consequence is worth understanding directly. In a static-threshold oscillator, a compression phase floods the chart with false crossovers while a genuine expansion phase can produce delayed or missed signals. The adaptive threshold adjusts to both conditions without intervention. The active level is always displayed as the orange reference line, there is never ambiguity about where the signal boundary sits.
The score is additionally classified into Weak, Moderate, and Strong states relative to the active threshold, allowing momentum quality to be evaluated quickly without relying on raw numerical values alone.
Directional Pressure
The score measures momentum magnitude. Direction is handled through a completely separate layer.
Directional bias is established through a two-part confirmation test on every bar. Price must sit on the correct side of a short-period directional EMA, and the average ATR-normalized candle direction over the recent lookback must clear a pressure threshold, meaning a single extended wick or isolated candle cannot flip the directional label on its own. The result is a three-state classification that updates in real time: Bullish, Bearish, or Neutral. This label colors the score line and feeds directly into the signal confirmation logic.
Regime Classification
Not all momentum signals carry equal weight. A score crossover during an expanding market is a categorically different event from the same crossover inside a compressed, coiling environment and treating them identically is one of the more common ways momentum-based approaches produce inconsistent results.
The indicator measures the range of the score over a lookback window and classifies conditions into three states. Compressed means the score has been operating within a narrow band, the market is coiling, energy may be building, and momentum signals in this state generally exhibit lower follow-through and greater variability, although strong expansions can emerge from prolonged compression. Balanced reflects normal trending or ranging conditions. Expanding means the score range has broken above the expansion threshold the market is releasing energy, and momentum signals carry stronger continuation characteristics during this state.
Regime classification can be applied as a filter to triangle signals or used purely as context within the dashboard.
Momentum Velocity
Knowing where the score is tells you the current momentum level. Knowing how fast it is changing tells you something more useful, where momentum is likely heading before price makes it obvious.
The velocity engine calculates the rate of change of the score relative to its own standard deviation, producing a normalized reading that classifies momentum as Accelerating, Decelerating, or Flat. When the score is rising rapidly against its recent volatility baseline, conditions are classified as Accelerating. When the score is fading even if it remains above the threshold the label shifts to Decelerating, and the score line renders at reduced opacity as a visual signal that underlying momentum may be exhausting before price visibly reacts.
For traders who have held into momentum reversals that showed no obvious price-level warning, this layer provides an early internal warning signal within the indicator's architecture that conditions are beginning to shift.
Two Signal Tiers
The indicator produces signals on two distinct levels, and the distinction between them is worth understanding precisely.
Threshold dots appear whenever the score crosses the active threshold while directional pressure is already aligned. They are intentionally sensitive as early directional momentum awareness signals indicating that conditions are beginning to strengthen, even though the broader filter stack may not yet be confirmed. Experienced traders use them to shift attention and begin evaluating whether a fuller setup is developing.
Triangle signals are the fully confirmed output. A triangle only appears when the score crosses the threshold, directional pressure agrees, and every enabled filter in the active gate stack also confirms simultaneously. This is not a smoothed version of the dot signal. It is a categorically different signal type representing the convergence of multiple independent conditions at the same moment.
The separation is deliberate. Dots keep traders informed of developing momentum. Triangles reserve the strongest visual output for the moments that genuinely earn it.
The Signal Gate Stack
Before any triangle reaches the chart it passes through up to four independent gates, stackable in any combination.
The current-timeframe EMA filter blocks signals running counter to local trend structure. The higher-timeframe EMA filter adds a structural second opinion from a broader timeframe, 4-hour by default with an option to use only confirmed closed bars to avoid incomplete higher-timeframe calculations. The regime filter restricts signals during compressed conditions or limits them to expanding phases only. The cooldown gate enforces a minimum bar gap between consecutive signals, suppressing the cluster of repeat triggers that commonly fire around a single momentum event and dilute signal quality.
The dashboard always displays exactly which gates are active. Traders never need to guess why a triangle did or did not appear, the filter logic is visible at all times.
Reading the Indicator: A Practical Workflow
1. Assess market regime first . Check the Info Table before anything else. Compressed conditions mean the score has been coiling in a tight range crossovers here often require greater selectivity, as follow-through tends to be less reliable until expansion begins, and participation should be approached more selectively. Expanding conditions deserve closer attention, as momentum signals generally carry stronger continuation characteristics during these phases.
2. Verify directional alignment. Confirm that the score line color and the Direction label in the dashboard match your intended trade direction. A technically valid score crossover against prevailing directional pressure is a lower-quality setup by design.
3. Watch for the threshold dot on the score pane . A small circle plots on the score line the moment momentum crosses the active threshold while directional pressure is already aligned. This is your early awareness signal. It means conditions are beginning to strengthen, but the broader confirmation stack may not yet be complete. Use it to shift attention to the price chart, not necessarily to trigger execution.
4. Wait for the triangle on the price chart . The triangle is the confirmed execution signal. It only appears when the score has crossed the threshold, directional pressure agrees, and every enabled gate in your active filter stack has confirmed simultaneously. Depending on your settings, this may include EMA alignment, regime validation, and cooldown logic. No triangle means at least one required condition has not been met, regardless of how the score looks in the pane below.
5. Check momentum velocity before entry. An Accelerating label at the point of the triangle adds meaningful weight to the setup. A Decelerating label on an otherwise valid triangle is a caution not necessarily a reason to avoid the trade, but a reminder that momentum quality may be less aggressive, follow-through may develop more gradually, or reversal risk may be beginning to increase.
6. Manage the trade with velocity as context, not as a standalone exit signal . If the score remains above or near the threshold but the line has dimmed signaling Decelerating momentum the move may be losing force even while price continues in the same direction. This does not automatically invalidate the trade or imply immediate exit. Instead, use velocity as an additional layer of context alongside price structure, trend conditions, and your existing risk-management framework.
What This Indicator Is Designed For
The Adaptive Momentum Strength Score is not a standalone trading system and does not attempt to be one. It is a momentum context engine — a structured framework for evaluating whether the conditions behind a price move reflect genuine strength and participation or whether they represent the kind of isolated, low-quality momentum that tends to produce less reliable continuation.
Every design decision in this script traces back to a single conviction: durable edge in trading does not come from reacting faster to a single signal. It comes from reading multiple independent market forces simultaneously and acting only when they converge. That is what this indicator was built to do and that is the only thing it claims to do well.
My Scripts/Indicators/Systems are for educational purposes only! Indicator

[ A L P H A X ] FORTRESS - Supply & Demand Zone EngineAlphaX FORTRESS — Supply & Demand Zone Engine with Zone Grading, Session VWAP Confluence, Liquidity Sweep Signals, HTF Zone Overlay & Live Backtest Statistics
AlphaX FORTRESS is a professional-grade supply and demand system built around an institutional zone detection engine that identifies, grades, and tracks every significant supply and demand zone on the chart — then fires precision entry signals only when price returns to those zones with genuine rejection confirmation, multi-layer filter alignment, and a qualifying zone grade. Where most supply and demand indicators simply draw boxes and leave the trader to decide what to do, FORTRESS integrates a five-factor zone grading algorithm (A+ through C), session VWAP confluence scoring, higher timeframe zone overlay, liquidity sweep detection, a full suite of entry quality filters, and a live on-chart backtest statistics tracker that counts wins, losses, and win rate in real time directly from the chart's history. Every signal is supported by zone grade verification, trend alignment, ADX confirmation, volume delta pressure, premium/discount positioning, and rejection wick quality — producing a complete, self-contained supply and demand trading system. Designed for active traders across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏛 Supply & Demand — The Institutional Framework
Supply and demand zones are the foundational building blocks of institutional price delivery. Unlike horizontal support and resistance drawn from price memory, genuine supply and demand zones are identified from the origin of explosive moves — the exact price range where institutions accumulated or distributed their positions before driving price aggressively in one direction.
Demand Zone: Formed when price makes an explosive bullish move away from a base. The base — one or more low-momentum candles directly preceding the explosive candle — represents the range where institutional buyers accumulated their full position. When price returns to this zone, unfilled buy orders are waiting. The most reliable demand zone retests produce sharp, rejection-candle bounces from within the zone.
Supply Zone: The mirror image. An explosive bearish move preceded by a base of low-momentum candles. Institutions distributed their position in the base before driving price aggressively lower. On return, unfilled sell orders produce sharp rejection moves downward from within the zone.
Why FORTRESS detects zones differently from most indicators: Most zone detectors use a simple pivot or pattern check. FORTRESS requires three simultaneous conditions for a zone to qualify — the departure candle must be explosive (ATR-scaled range), the body must represent a minimum proportion of the total range (body quality filter), and volume must confirm when enabled. Only zones formed by genuine institutional displacement are registered.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 Zone Detection Engine — Quality Filters
Every zone formed by FORTRESS passes three mandatory quality gates before being registered:
Explosive Move Filter:
The departure candle (the candle that leaves the base and drives price) must have a total range exceeding the ATR by a configurable multiplier (default: 1.2×). This filters out zones formed by slow, grinding moves — only impulsive, institutionally driven departures qualify. Smaller ATR multipliers produce more zones; larger values produce fewer, higher-quality zones.
Body Quality Filter:
The departure candle's body must represent at least a configurable percentage of its total range (default: 55%). A small body in a large-range candle indicates indecision — the candle moved far but closed near its midpoint, suggesting weak directional conviction. A large body relative to range confirms genuine one-directional pressure on the departure move.
Volume Confirmation (optional):
When enabled, the departure candle's volume must exceed the average volume (configurable period, default: 20 bars) by a minimum multiplier (default: 1.1×). High-volume departures carry more institutional weight than same-range moves on average volume. The volume filter is off by default — this allows the system to work effectively on instruments where volume data is unreliable (forex spot, crypto perpetuals) while providing an additional quality gate when reliable volume is available.
Base Detection:
The base candles immediately preceding the explosive departure are automatically detected — up to the configurable maximum (default: 2 candles). Base candles must have a body smaller than 0.5× ATR and must not themselves be explosive. The full base range is incorporated into the zone boundaries, accurately reflecting the complete accumulation or distribution range rather than just the departure candle alone.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏅 Zone Grading System — A+ Through C
Not all supply and demand zones are equal. A zone formed on massive volume with VWAP confluence during a premium price area carries fundamentally more institutional weight than the same pattern on average volume in a random price area. FORTRESS quantifies this difference with a five-factor algorithmic grading system that assigns every zone a grade of A+, A, B, or C at the moment of formation.
Grading factors and their weights:
Move Strength (up to 30 points) — the ratio of the departure candle's range to ATR, capped at 30 points. Stronger, more explosive departures score higher. A 3× ATR departure scores maximum; a 1.2× departure (the minimum threshold) scores proportionally lower
Volume Ratio (up to 20 points) — when volume confirmation is enabled, the ratio of departure volume to average volume, capped at 20 points. When volume confirmation is off, a flat 10 points is awarded to maintain grade comparability across instruments. High-volume departures receive the full bonus
VWAP Confluence (20 points) — full 20 points awarded when the session VWAP is within a configurable ATR tolerance of the zone boundaries at the time of formation. A zone that forms directly at the institutional session reference level carries significantly more weight than a zone formed far from VWAP. This is the VWAP Boosts Grade feature
HTF Zone Match (20 points) — full 20 points when the zone overlaps with an active higher timeframe supply or demand zone. Confluence between the current timeframe zone and the HTF zone indicates institutional activity at multiple timeframe levels simultaneously — the strongest possible zone quality condition
PD Zone Match (15 points) — awarded when the zone forms in the institutionally correct price area: supply zones in premium (above dealing range equilibrium) and demand zones in discount (below equilibrium). A supply zone in premium and a demand zone in discount are positioned where institutions naturally distribute and accumulate respectively
Base bonus (5 points) — a flat quality bonus applied to all qualifying zones
Grade thresholds:
A+ (80+ points) — elite institutional zone. All or most factors aligned. Maximum conviction
A (65–79 points) — strong zone with multiple confirming factors. High quality
B (50–64 points) — solid zone with partial confirmation. Standard quality
C (below 50 points) — low-quality zone. Formed with minimal supporting factors
The grade badge is displayed directly on the zone box on the chart. The minimum grade filter (default: B) blocks signals from C-grade zones entirely — preventing entries at the lowest-quality institutional levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌐 Session VWAP Confluence
The session VWAP is plotted as a continuous purple line and serves two distinct roles in FORTRESS.
Visual reference: The VWAP line and optional ±1σ bands provide the institutional session fair value reference directly on the price chart. Optional band display shows the first standard deviation envelope around VWAP.
Grade booster: When VWAP Boosts Grade is enabled (default: on), every zone that forms within ATR tolerance of the session VWAP receives 20 additional grade points — frequently elevating a B-grade zone to A or A+ when VWAP proximity confirms institutional positioning at that level.
Why VWAP at the zone matters: The session VWAP is the single most widely watched intraday reference level by institutional desks, algorithms, and market makers. When a supply or demand zone forms directly at the VWAP, it means the institutional activity that created the zone coincided with the session's fairest price level — the most contested and significant price in the session. Retests of these zones carry the highest probability of generating a sharp institutional response.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📡 HTF Zone Overlay
FORTRESS pulls supply and demand zones from a configurable higher timeframe (default: 60-minute) and overlays them on the current chart as purple dashed boxes.
What HTF zones represent: A supply or demand zone on H1 was created by a significantly larger impulsive move than anything visible on M5 or M1. These zones represent institutional positioning decisions made on a multi-hour timeframe — they carry far more weight than same-pattern zones on the current timeframe. When a current timeframe demand zone overlaps with an active H1 demand zone, two independent timeframes of institutional evidence are concentrated at the same price level.
Zone matching in the grader: When a newly formed current timeframe zone overlaps with an active HTF zone of the same type, it receives the full 20-point HTF Match bonus in the grading system — frequently pushing the zone from B to A or A+ grade. The label also appends ·HTF to confirm the match.
HTF zone lifecycle: HTF zones are maintained in real time. When price closes above an HTF supply zone or below an HTF demand zone, the zone is deleted automatically — mitigated zones are no longer relevant and are removed to keep the chart clean.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💧 Liquidity Sweep Signal Mode
In addition to standard zone rejection signals, FORTRESS detects a powerful second entry type: the liquidity sweep — where price wicks through a zone's boundary to grab stop orders before reclaiming back inside.
Demand sweep (bull): Price wicks below the demand zone bottom by at least the minimum sweep depth (default: 0.15× ATR), then closes back above the zone bottom. Retail stops placed just below the demand zone have been triggered — institutions used that liquidity to accumulate. The reclaim close is the entry signal.
Supply sweep (bear): Price wicks above the supply zone top by at least the minimum sweep depth, then closes back below the zone top. Buy stops above supply have been triggered; the close back below is the entry.
Why sweeps are powerful: A standard zone rejection is a clean, textbook entry. A zone sweep adds an additional dimension — institutions have actively manufactured a liquidity event at the zone boundary, triggered counterparty stops to fill their own orders, and then reversed. This sequence is a clear signature of institutional stop hunting followed by directional commitment. Sweep signals are marked with an orange circle rather than a triangle to distinguish them visually from standard rejections.
Stop placement for sweeps: The SL for sweep entries is placed at the wick extreme (the sweep low for bull sweeps, the sweep high for bear sweeps) plus a small ATR buffer — anchored to the actual manipulation point rather than the zone boundary.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 Signal Entry Logic — Multi-Layer Filtering
A FORTRESS signal fires when a zone touch is detected with candle rejection and all configured filters pass. The full filter stack applied to every potential entry:
Zone touch verification:
The current bar's low must reach within the demand zone (for longs) or the current bar's high must reach within the supply zone (for shorts). Touch detection includes a small ATR tolerance (0.05×) to account for minor overshoot or spread differences.
Rejection candle confirmation:
The bar must close in the correct direction — bullish close (close above open) for demand entries, bearish close for supply entries. Additionally, the rejection wick must meet the minimum wick percentage requirement (default: 50% of bar range). A bar touching a zone with a tiny lower wick but a large body is a weak rejection — the minimum wick filter ensures the zone produced a genuine, visible rejection impulse.
Filter stack (all must pass):
Trend EMA — price must be above the trend EMA (default: 50-period) for demand longs, below for supply shorts. Prevents counter-trend entries
ADX minimum — market must be trending above the configured ADX threshold (default: 18). Blocks zone entries in choppy, ranging conditions
Volume Delta — estimated directional volume pressure must agree with the signal direction. Bull volume dominance for longs, bear for shorts
PD Zone requirement — price must be in discount for demand entries (below dealing range equilibrium) and in premium for supply entries (above equilibrium)
Zone grade minimum — only zones at or above the configured minimum grade (default: B) can trigger signals
Fresh zone filter — when enabled, only zones that have not been previously tested can trigger signals. A zone that has already been retested once carries less institutional fresh-order weight
One signal per zone — when enabled, each zone can only generate one signal regardless of how many valid touches occur. Prevents repeated entries at the same level
Signal cooldown — minimum bars between any two signals (default: 5). Prevents signal clustering during complex multi-touch zone reactions
Session filter — when enabled, restricts all signals to the configured active hours window
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Zone Mitigation & Lifecycle Management
FORTRESS tracks the full lifecycle of every zone from formation through mitigation. The mitigation mode is configurable:
Body Close (default): A zone is mitigated when price closes beyond its boundary — a close above a supply zone top or a close below a demand zone bottom. This is the stricter, lower-noise mode. Wicks through the zone do not count as mitigation unless they are accompanied by a body close — consistent with the idea that a wick through the zone is a sweep (an opportunity) rather than a genuine break.
Wick Touch: A zone is mitigated as soon as any price touches the boundary — high above supply top, low below demand bottom. This is a more aggressive mitigation mode that removes zones faster, keeping the chart cleaner but potentially removing zones that could have produced more entries.
When a zone is mitigated under either mode, its box, label, and grade badge are immediately deleted from the chart. The system maintains a rolling maximum of the configured number of active zones per side (default: 3), automatically removing the oldest zones when the limit is exceeded.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Live Backtest Statistics Tracker
One of FORTRESS's most distinctive features is its on-chart live backtest statistics system . Every signal fired is tracked in memory with its entry price, ATR at signal time, direction, and grade. On every subsequent bar, the tracker evaluates whether each open signal has hit the configured target (default: 2.0× ATR) or stop (default: 1.0× ATR).
Statistics tracked and displayed on the dashboard:
Total Signals — the total count of signals logged in the tracking window
Wins — signals that reached the target before the stop
Losses — signals that hit the stop before the target
Win Rate — wins as a percentage of all closed (decided) signals. Color-coded yellow-green when at or above 50%, red when below
Pending — signals still open — neither target nor stop hit yet. Shown in orange
What this tells you: The win rate displayed is not a theoretical backtest result — it is computed directly from the current chart's historical signals using the exact filter configuration currently active. Change the zone grade minimum and the win rate updates. Enable the ADX filter and it updates. This gives you immediate, live feedback on how your configuration is performing on the current instrument and timeframe without leaving the chart.
Important note on interpretation: The statistics reflect signals fired at the current settings on the current chart's visible history. They are not forward-tested results and do not account for slippage, spread, or live execution. They serve as a real-time tuning tool — not a performance guarantee.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The real-time dashboard displays the complete internal state across four sections.
ZONES
Supply — count of currently active, unmitigated supply zones on the chart
Demand — count of currently active, unmitigated demand zones on the chart
FILTERS
Trend — current EMA trend state: ▲ BULL, ▼ BEAR, or —
PD Zone — current premium/discount position: ◧ DISCOUNT, ◧ PREMIUM, or — EQ
ADX — live ADX value with ✓ or ✗ pass/fail indicator
Vol Delta — current volume delta direction: ▲ BULL, ▼ BEAR, or —
STATS
Signals — total signals tracked in the current window
Wins — confirmed target-hit signals
Losses — confirmed stop-hit signals
Win Rate — live win percentage across all closed signals, color-coded
Pending — signals awaiting outcome
Min Grade — the currently configured minimum zone grade filter
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
Demand Zone Boxes (yellow-green) — semi-transparent yellow-green filled boxes with solid yellow-green borders. Extend right until mitigated
Supply Zone Boxes (red) — semi-transparent red filled boxes with solid red borders. Extend right until mitigated
DEMAND / SUPPLY Labels — appear at zone formation with ·VWAP and ·HTF suffixes when those confluences are present
Grade Badges (A+ / A / B / C) — small labels at the zone's left edge showing the computed quality grade. Color-coded: A+ bright yellow-green, A yellow-green, B orange, C gray
HTF Zone Boxes (purple dashed) — higher timeframe supply and demand zones overlaid from the configured HTF. Automatically deleted when mitigated
Session VWAP Line (purple) — continuous VWAP anchored to each session's first bar
VWAP Bands (purple, optional) — ±1σ envelope around the session VWAP
Equilibrium Line (purple dotted) — the 50% midpoint of the dealing range
Trend EMA (optional gray line) — the trend filter EMA plotted when Show EMA is enabled
▲ Triangle (below bar, yellow-green) — standard demand rejection long signal
▼ Triangle (above bar, red) — standard supply rejection short signal
● Circle (below bar, orange) — liquidity sweep long signal at demand zone
● Circle (above bar, orange) — liquidity sweep short signal at supply zone
SL Guide (red dotted circles) — stop loss reference level on signal bars
TP Guide (yellow-green dotted circles) — take profit reference level on signal bars
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX FORTRESS — Step by Step
Step 1 — Assess the Zone Landscape
Check the dashboard: how many supply and demand zones are active? Multiple demand zones stacked in the same price area indicate a strong institutional accumulation cluster — a high-priority retest target
Identify the highest-grade zones on the chart. An A+ demand zone with ·VWAP ·HTF in the label is the highest-conviction level FORTRESS can display. Mark these as priority levels
Note the equilibrium line — are you in discount (favorable for longs) or premium (favorable for shorts)?
Step 2 — Confirm the Filter Environment
Check the dashboard: Trend ▲ BULL, PD Zone ◧ DISCOUNT, ADX ✓, Vol Delta ▲ BULL — all four green simultaneously is the ideal filter state for long entries
If any critical filter is failing, reduce position size on signals or skip the setup entirely
Watch the VWAP line — is it near the zone you are watching? VWAP proximity at the zone level confirms the highest-grade setups
Step 3 — Enter on the Signal
A ▲ triangle below the bar is a confirmed demand rejection — all quality and filter conditions met. Enter on the close or next bar open
An orange ● circle below the bar is a sweep long — the zone was violated, stops triggered, and price reclaimed. Enter on the close. Place the stop at the wick extreme
Both signal types display SL and TP guide levels (dotted circles) when Show SL / TP on Signal is enabled
Step 4 — Monitor with the Stats Dashboard
Watch the Win Rate row on the dashboard. If the current configuration is producing a win rate below 50% on this instrument and timeframe, consider tightening the filters — raise the minimum grade, increase the ADX threshold, or enable the volume filter
The Pending count tells you how many trades are currently open and unresolved — useful for position sizing decisions
If Losses are rising without corresponding Wins, check whether the market has entered a choppy regime (ADX dropping) and consider pausing trading until ADX recovers
Step 5 — Zone Management and Exit
When price reaches the TP guide level, take partial or full profit
If price closes through the zone boundary opposite to your entry (body close mitigation), the zone is invalidated — this is also your stop signal if not already stopped out
Watch for the zone to be deleted from the chart — when the box disappears, the zone has been mitigated and the trade thesis is over
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
ADX ✗ on the dashboard — the market is ranging. Supply and demand zones in range conditions are frequently tested and broken repeatedly without producing clean continuation moves. The ADX filter blocks signals in these conditions automatically
All active zones are grade C — no high-quality institutional levels are present. The zones on the chart were formed by weak, low-displacement moves and are unlikely to produce sharp institutional responses on retest
Win Rate is below 40% on the live stats tracker — the current configuration is underperforming on this instrument and timeframe. Tighten filters or review whether the instrument is suitable for zone-based trading at this time
Zones are being mitigated rapidly before retesting — fast, impulsive markets break through zones without retesting them. In this environment, wait for a new zone to form in the direction of the impulse rather than trying to catch retests of quickly broken levels
PD Zone shows — EQ — price is at the dealing range midpoint. Entries from equilibrium carry the worst risk/reward — the institutional advantage of buying in deep discount or selling in deep premium is absent
Vol Delta opposes the signal direction — institutional volume pressure is working against the zone entry. Even if all other conditions pass, a demand zone long with bearish volume delta means selling pressure is still dominant — the zone may not hold
No HTF zones visible and current timeframe zones are grading mostly B and C — the institutional context on the higher timeframe is not confirming the current timeframe levels. Wait for HTF supply or demand to align before entering aggressively
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🏛 Institutional supply and demand zone detection — explosive move filter, body quality filter, and optional volume confirmation identify only genuine displacement zones
📦 Automatic base detection — incorporates up to the configured maximum of low-momentum candles preceding the explosive departure into the zone boundaries
🏅 Five-factor algorithmic zone grading — Move Strength, Volume Ratio, VWAP Confluence, HTF Match, and PD Zone together produce an A+/A/B/C grade for every zone at formation
🌐 Session VWAP integration — plotted live with optional bands, boosts zone grades when VWAP is within tolerance of the zone, and confirmed in zone labels
📡 Higher timeframe zone overlay — pulls supply and demand zones from a configurable HTF and overlays them as purple dashed boxes. HTF-matching zones receive maximum grade bonus
💧 Liquidity sweep detection — identifies stop-hunt sequences where price wicks through a zone boundary and reclaims, marking these with distinct orange circle signals
🧠 Multi-layer filter stack — Trend EMA, ADX, Volume Delta, PD Zone, Zone Grade, Fresh Zone, One-Shot, Cooldown, and Session filters all independently configurable
⚖ Premium/Discount zone requirement — enforces institutionally correct entry positioning using a dynamic equilibrium across the dealing range
📊 Live backtest statistics tracker — tracks every signal's win/loss outcome in real time on the chart, displaying signal count, wins, losses, win rate, and pending count on the dashboard
🔀 Two zone mitigation modes — Body Close (stricter, lower noise) and Wick Touch (more aggressive zone clearance)
📝 Zone labels with confluence indicators — DEMAND / SUPPLY labels append ·VWAP and ·HTF when those confluences are present at formation
🏷 Grade badges — A+/A/B/C badges displayed directly on each zone box with color-coded visual hierarchy
🎯 SL and TP guide levels — dotted circle plots at the stop and target levels on every signal bar
📊 16-row live dashboard — Zones, Filters, and Stats sections updated in real time
🔔 6 alert conditions — demand long, supply short, sweep long, sweep short, new demand zone formation, new supply zone formation
🎨 Fully cohesive dual-tone color system — yellow-green for all demand/bullish elements, red for supply/bearish, orange for sweeps and pending stats, purple for VWAP/HTF/equilibrium
⚙ Fully configurable — all zone detection thresholds, grading weights, filter settings, mitigation mode, backtest parameters, display options, and colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Zone Detection
Max Base Candles — maximum number of low-momentum base candles to incorporate into zone boundaries (default: 2)
Move Strength (ATR x) — minimum departure candle range as a multiple of ATR (default: 1.2)
ATR Length — lookback for ATR calculation (default: 14)
Volume Multiplier — minimum volume relative to average when volume confirmation is enabled (default: 1.1)
Volume Avg Length — lookback for volume average (default: 20)
Min Body % of Range — minimum body size as a fraction of the departure candle's total range (default: 0.55)
Require Volume Confirmation — when on, departure candle must exceed the volume average by the configured multiplier (default: off)
Signal Filters
Fresh Zones Only — when on, only zones that have not been previously touched can trigger signals
One Signal Per Zone — when on, each zone produces a maximum of one signal regardless of subsequent valid touches
Min Rejection Wick % — minimum lower/upper wick as a fraction of bar range for rejection confirmation (default: 0.50)
Cooldown Bars — minimum bars between consecutive signals (default: 5)
Chart EMA Trend Filter — when on, requires price to be on the correct side of the trend EMA
Trend EMA Length — EMA period for the trend filter (default: 50)
Min Zone Grade — minimum grade required for a zone to generate signals. A+ / A / B / C (default: B)
ADX Filter — toggle the ADX trend strength gate
ADX Length / ADX Minimum — ADX calculation and threshold parameters (defaults: 14 / 18)
Volume Delta Filter — toggle the directional volume pressure requirement
Volume Delta Length — smoothing length for volume delta calculation (default: 14)
Require PD Zone — when on, longs require discount positioning, shorts require premium
Dealing Range Length — bars used for the equilibrium midpoint calculation (default: 50)
Liquidity Sweep
Enable Sweep Signals — toggle the sweep entry signal mode
Min Sweep Depth (ATR x) — minimum wick extension beyond the zone boundary to qualify as a sweep (default: 0.15)
HTF Zones
Show HTF Zones — toggle the higher timeframe zone overlay
HTF Resolution — the timeframe to pull HTF zones from (default: 60-minute)
VWAP Confluence
Show Session VWAP — toggle the VWAP line on the chart
VWAP Boosts Grade — when on, zones within VWAP tolerance receive 20 additional grade points
VWAP Tolerance (ATR x) — maximum distance from VWAP to qualify for the grade boost (default: 0.5)
Show VWAP Bands — toggle ±1σ band plots around the session VWAP
Backtest Stats
Track Signal Stats — toggle the live win/loss tracking system
Target (ATR x) — take-profit distance for stat tracking purposes (default: 2.0)
Stop (ATR x) — stop-loss distance for stat tracking purposes (default: 1.0)
Max Signals Tracked — rolling window size for the statistics tracker (default: 50)
Display
Max Active Zones / Side — maximum supply zones and demand zones maintained simultaneously (default: 3 per side)
Mitigation — Body Close or Wick Touch zone invalidation mode
Extend Zones Right — when on, zone boxes extend indefinitely to the right until mitigated
Show Zone Labels — toggle SUPPLY/DEMAND text labels on zones
Show Grade Badge — toggle A+/A/B/C grade badges on zone boxes
Show Stats Dashboard — toggle the full dashboard panel
Plot Trend EMA — toggle the trend EMA line on the chart
Show SL / TP on Signal — toggle stop and target guide circle plots on signal bars
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Session
Buy / Sell Signals — master toggle for all entry signals
Session Filter — toggle the active hours restriction
Active Session — configurable session window string
Colors
Demand / Bull / Bull Bright — yellow-green family for all demand zones, signals, and labels
Supply / Bear / Bear Bright — red family for all supply zones, signals, and labels
HTF Zone — purple for higher timeframe zone overlays
VWAP / Equilibrium — purple for VWAP and equilibrium lines
SL Guide / TP Guide — stop and target circle colors
Sweep Signal — orange for liquidity sweep entry circles
Dash Text / Neutral / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (6 total)
Entry Alerts
Fortress Demand Long — standard demand zone rejection long signal. All quality and filter conditions met
Fortress Supply Short — standard supply zone rejection short signal
Fortress Sweep Long — liquidity sweep and reclaim at demand zone. Sweep entry confirmed
Fortress Sweep Short — liquidity sweep and reclaim at supply zone
Zone Formation Alerts
New Demand Zone — a qualifying demand zone has been detected and added to the chart
New Supply Zone — a qualifying supply zone has been detected and added to the chart
All alert messages are formatted as const strings for clean webhook and notification platform integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD, major forex pairs, and crypto on M1–M15 :
Move Strength at 1.2× ATR — sensitive enough to catch meaningful departures on fast-moving intraday instruments
Min Grade at B — filters out the lowest-quality zones while allowing solid B-grade setups to signal
Fresh Zones Only on — fresh, untested zones carry the most unfilled institutional orders
HTF at 60-minute — provides meaningful confluence context for intraday M1–M15 trading
Volume Confirmation off — reliable for futures and equities, unreliable for spot forex and crypto perpetuals
For other instruments or timeframes, adjust:
Higher timeframes (H1, H4) — increase Move Strength to 1.5–2.0× ATR, set HTF to Daily or Weekly, raise Min Grade to A, increase Dealing Range Length to 100–200
Crypto (BTC, ETH) — enable Volume Confirmation with 1.2× multiplier on exchanges with reliable volume data, increase Move Strength to 1.4–1.6, increase Min Sweep Depth to 0.25×
Indices (NAS100, US30) — enable Session Filter to 09:30–16:00, enable Volume Confirmation, set Min Grade to A for cleaner signal quality
More zones and signals — reduce Move Strength to 1.0, lower Min Grade to C, disable Fresh Zones Only, disable One Signal Per Zone
Fewer, highest-quality signals only — raise Min Grade to A or A+, enable Volume Confirmation, enable HTF Zones, set VWAP Boosts Grade on. Only A+ zones with VWAP and HTF alignment will produce signals
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🏛 Supply and demand traders — FORTRESS is the most complete quantitative implementation of supply and demand zone trading available in the AlphaX suite. Every concept — zone quality, freshness, grade, mitigation, sweep detection — is encoded objectively and applied consistently
📊 Traders who want data on their strategy — the live backtest statistics tracker provides immediate, chart-specific feedback on how the current configuration is performing without leaving the platform
🥇 Gold (XAUUSD) and forex traders — supply and demand zone mechanics are most consistent on highly liquid institutional instruments. Default settings are calibrated for gold and major pairs
🌐 Multi-timeframe traders — the HTF zone overlay and VWAP confluence create a natural two-timeframe framework within a single indicator
🧠 Systematic traders — every entry parameter is quantified and configurable. The grading system replaces subjective zone quality assessment with objective numerical scoring
💧 Stop hunt and sweep traders — the dedicated sweep signal mode is purpose-built for traders who specifically want to enter on liquidity grab and reclaim events at institutional zones
⚠ Traders who want to stop chasing entries — FORTRESS enforces patience by design. You wait for institutional zones to form, wait for price to return, wait for the rejection candle, and wait for all filters to confirm — discipline is built into the system architecture
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. Zone detection, grading, mitigation, and signal logic all finalize on confirmed bars only
The live backtest statistics use ATR-based fixed targets and stops for tracking purposes. These are not the same as any broker-level trade execution. The purpose is configuration tuning, not performance reporting
Maximum 200 boxes, 200 labels, and 100 lines are rendered. On charts with long history and frequent zone formation, the oldest zones are automatically removed by PulseWire's rendering limits. The Max Active Zones / Side setting provides additional control over zone count
HTF zone detection uses Pine Script's request.security function with lookahead off — HTF zones are non-repainting and reflect the HTF close price at each lower timeframe bar
The PD Zone equilibrium is calculated from the highest high and lowest low over the Dealing Range Length. On strongly trending instruments this level will shift progressively — it is a relative measure within the recent range, not a fixed level
The session VWAP resets at each session's first bar. For 24-hour crypto instruments, the VWAP anchors to the first bar of each calendar day. Consider disabling the VWAP grade boost on instruments where session definition is ambiguous
The sweep signal mode and standard zone rejection signal mode are independent. A zone that produces a sweep signal is marked as used (when One Signal Per Zone is enabled), preventing a subsequent standard rejection signal from the same zone — ensuring only one entry per zone regardless of which entry type fires first
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 believe that the strongest entries are not found by predicting where price will go — but by knowing exactly where institutions have left their orders waiting. Indicator

Gravity Trend Levels [BOSWaves]Gravity Trend Levels - Acceleration-Derived Gravity Modeling with Adaptive Cloud Trail and Fail Level Projection
Overview
Gravity Trend Levels is a momentum acceleration-based trend system that models directional gravity through the normalized rate of change of an EMA-derived velocity measurement, where cloud thickness, trail distance, and trend state are continuously adapted based on whether gravitational pull is building, sustained, or decaying rather than through fixed volatility multipliers or static band thresholds.
Instead of relying on conventional moving average crossovers or ATR-scaled bands that treat all market conditions identically, trend state and cloud positioning are determined by measuring price acceleration relative to MAD-normalized volatility, converting that acceleration into a gravity score that decays exponentially when momentum diminishes and drives adaptive band interpolation between configurable tight and wide trail distances.
This creates a trend framework where the cloud reflects genuine momentum dynamics rather than arbitrary indicator levels. The cloud tightens and hugs price during high gravity periods when acceleration is strong and directional pull is confirmed, expands during gravity decay when momentum is weakening, and generates gravity fail levels at the precise price points where trend state changed, marking the exact locations where prior gravitational force collapsed and direction reversed.
Price is therefore evaluated against a cloud that continuously updates its distance from price based on measured acceleration dynamics, producing a trail that reflects the actual pull state of the current trend rather than applying a uniform band regardless of momentum conditions.
Conceptual Framework
Gravity Trend Levels is founded on the principle that trend confidence should be measured through the acceleration characteristics of price momentum rather than through price position relative to fixed indicators, and that the distance between price and its trailing cloud boundary should dynamically reflect whether momentum is actively pulling price in the trend direction or losing gravitational force.
Traditional trend-following tools apply consistent band distances regardless of whether momentum is surging or stalling, producing identical visual representations for high-conviction and deteriorating trend conditions. This framework replaces uniform band geometry with an acceleration-driven gravity model where band distance shrinks under strong gravitational pull and expands as gravity decays, communicating trend health through cloud behavior rather than requiring separate momentum indicators for context.
Three core principles guide the design:
Gravitational pull should be derived from normalized price acceleration rather than from price position alone, ensuring that cloud behavior reflects actual momentum intensity rather than the mere direction of a smoothed average.
Cloud thickness and trail distance should adapt continuously to the measured pull state, contracting during strong gravity and expanding during decay to provide a visual representation of trend conviction at all times.
Gravity fail levels should be projected from the precise price points where trend state changed, marking the locations where gravitational force reversed as permanent structural references for future price interaction.
This shifts trend analysis from static band monitoring into continuous gravitational force measurement where cloud dynamics communicate momentum state and fail levels preserve the structural evidence of prior gravity collapses.
Theoretical Foundation
The indicator combines EMA-based trend baseline construction, MAD volatility measurement, velocity and acceleration derivation from baseline rate of change, gravity scoring with exponential decay, and adaptive trail interpolation that maps pull strength to band distance.
The trend baseline is calculated as an EMA of close over the configured length, providing a smoothed directional reference. Velocity measures the change in baseline over the gravity lookback period, and acceleration measures the bar-to-bar change in velocity. Acceleration is normalized by MAD to produce a dimensionless score that reflects momentum change intensity relative to current volatility. When normalized acceleration exceeds the minimum threshold, gravity is set proportionally to the acceleration reading and capped at a maximum value. When acceleration falls below the threshold, gravity decays multiplicatively by the configured decay rate each bar. Pull converts gravity to a normalized 0-1 range that drives trail multiplier interpolation between the minimum tight distance and the maximum wide distance.
Four internal systems operate in tandem:
Gravity Detection Engine : Derives velocity from EMA baseline change over the gravity lookback, calculates acceleration as the bar-to-bar velocity change, normalizes against MAD, and updates the gravity state either by setting it proportional to current acceleration or applying exponential decay when acceleration subsides.
Adaptive Trail Construction : Converts gravity to a normalized pull value and interpolates the trail multiplier between the configured minimum and maximum settings, scaling MAD to produce upper and lower band distances from the baseline that tighten with strong pull and widen with decay.
Gravity Cloud System : Constructs a one-sided cloud positioned below price in uptrends and above price in downtrends, with cloud thickness scaling proportionally to current pull strength through a separate MAD-scaled thickness calculation that produces a visually dynamic pull indicator.
Gravity Fail Level Engine : On each trend state switch, projects a horizontal line from the flip bar's low for bullish flips and high for bearish flips, extending forward for the configured projection length to mark the price level where prior gravitational force collapsed and direction changed.
This design allows the cloud and trail to respond continuously to gravity dynamics while fail levels accumulate as a historical record of structural gravity collapses.
How It Works
Gravity Trend Levels evaluates price through a sequence of acceleration-aware and gravity-driven processes:
Baseline Calculation : EMA smoothing of close over the configured trend length produces the directional reference from which velocity and acceleration are derived.
MAD Volatility Measurement : Mean Absolute Deviation over the configured length provides the adaptive volatility unit that normalizes acceleration and scales all band and cloud distances.
Velocity Derivation : The difference between the current baseline and the baseline a configurable number of bars ago provides the velocity reading that captures the rate of directional change in the smoothed trend.
Acceleration Calculation : The bar-to-bar change in velocity produces the acceleration reading, which captures whether directional momentum is intensifying or diminishing.
Gravity State Update : Normalized acceleration above the minimum threshold sets gravity proportionally to the acceleration magnitude scaled by eight and capped at two. Below the threshold, gravity decays by multiplying by the configured decay rate each bar.
Pull Normalization : Gravity is divided by 1.5 and capped at one to produce a normalized pull value that maps the full gravity range to a 0-1 scale for trail interpolation.
Trail Multiplier Interpolation : The pull value interpolates between the maximum trail distance at zero pull and the minimum trail distance at full pull, producing a continuously adapting multiplier that scales MAD into upper and lower band distances.
Trend State Logic : Price crossing above the upper band triggers bullish state. Price crossing below the lower band triggers bearish state. State persists until the opposing band is breached.
Cloud Construction : The active cloud positions at the lower band in uptrends and upper band in downtrends, with an inner boundary offset by a pull-scaled thickness producing a two-edge cloud whose depth visually reflects current gravitational pull.
Gravity Fail Level Projection : On each trend switch, a horizontal line is projected from the flip bar at the bar's low for bullish flips and high for bearish flips, extending forward for the configured projection length as a structural fail reference.
Retest Diamond Detection : After the configured signal buffer period from the most recent flip, price touching the cloud inner edge triggers a retest diamond marker with a configurable minimum bar cooldown between consecutive signals on the same side.
Together, these elements form a continuously updating gravity-driven trend system where cloud dynamics reveal pull strength, fail levels mark structural collapse points, and retest diamonds identify price interactions with the inner cloud boundary throughout the trend.
Interpretation
Gravity Trend Levels should be interpreted as a momentum-gravity conviction system with dynamically adaptive cloud geometry and structural fail level mapping:
Bullish Trend State (Green) : Established when price closes above the upper adaptive band, with the gravity cloud positioned below price reflecting the upward gravitational pull state.
Bearish Trend State (Red) : Established when price closes below the lower adaptive band, with the gravity cloud positioned above price reflecting the downward gravitational pull state.
Gravity Cloud : The one-sided filled zone between the outer and inner cloud boundaries reflects current pull strength through its thickness. A thick cloud indicates strong gravitational pull with high trend conviction. A thin cloud indicates gravity decay and diminishing directional force.
Cloud Outer Edge : The primary structural boundary of the gravity cloud, positioned at the active adaptive band and colored fully in the trend direction, representing the outer limit of the gravitational field.
Cloud Inner Edge : The pull-scaled inner boundary of the cloud, representing the nearer edge of the gravitational zone and the threshold for retest diamond detection.
Gravity Fail Levels : Horizontal lines projected from trend flip bars at the flip bar's low for bullish flips and high for bearish flips, marking the exact price level where prior gravitational force collapsed. These levels persist as structural references for the configured projection length.
𝑩 Buy Signals : Green labels appearing below the bar when trend state switches from bearish to bullish, marking the gravity flip bar where upward pull has been established.
𝑺 Sell Signals : Red labels appearing above the bar when trend state switches from bullish to bearish, marking the gravity flip bar where downward pull has been established.
✦ Retest Diamonds : Small star diamonds plotted below bars during bullish retests and above bars during bearish retests when price touches the cloud inner edge after the signal buffer period, identifying interactions with the gravitational boundary during the trend.
Colored Candles : Optional bar coloring reflects current trend state direction, providing continuous directional context independent of cloud proximity or signal generation. Note: The original chart candles must be disabled in chart settings for the trend-colored candles to display properly.
Cloud thickness dynamics, fail level locations, and retest diamond positioning collectively provide more information than trend direction alone.
Signal Logic & Visual Cues
Gravity Trend Levels presents two primary trend transition signals alongside continuous cloud retest monitoring:
Buy Signal (𝑩) : Green label appears when trend state switches from bearish to bullish via upper band crossover, indicating gravitational pull has reversed to the upside and a fail level is projected from the flip bar's low.
Sell Signal (𝑺) : Red label appears when trend state switches from bullish to bearish via lower band crossunder, indicating gravitational pull has reversed to the downside and a fail level is projected from the flip bar's high.
Retest diamond detection provides continuous secondary monitoring, marking price touches of the cloud inner edge throughout the established trend after the signal buffer period with per-side cooldown enforcement.
Alert generation covers bullish and bearish gravity trend flips and any retest diamond occurrence for systematic monitoring workflows.
Strategy Integration
Gravity Trend Levels fits within momentum-informed and adaptive trend-following approaches:
Gravity Flip Entries : Use trend state switches as primary entry triggers where gravitational acceleration has driven price through the adaptive band, entering in the flip direction with the projected fail level providing an immediate structural reference for invalidation.
Cloud Thickness Conviction Reading : Monitor cloud thickness as a real-time gravity strength gauge. A thick, prominent cloud indicates strong active pull supporting the trend. A thin, contracting cloud warns of gravitational decay and warrants reduced confidence in trend continuation.
Fail Level Framework : Use gravity fail levels as structural references for subsequent price interaction, monitoring whether price respects or violates the level where prior gravity collapsed to assess the structural significance of the most recent trend change.
Retest Diamond Re-entry : Treat cloud inner edge retests after the signal buffer period as potential continuation opportunities within the established trend, using the diamond signal as a lower-risk re-entry reference relative to the initial flip signal.
Cloud Proximity Risk Management : Use the outer cloud edge as a dynamic trailing reference for position management, maintaining directional bias while price remains beyond the cloud and reassessing when price approaches or enters the gravitational zone.
Multi-Timeframe Gravity Alignment : Apply higher-timeframe gravity trend state as a directional bias filter, engaging with lower-timeframe flip signals only when they align with the established higher-timeframe gravitational direction.
Technical Implementation Details
Core Engine : EMA baseline with MAD volatility measurement for adaptive scaling
Gravity Model : Velocity from baseline rate of change, acceleration from velocity change, MAD normalization, proportional gravity setting with exponential decay
Adaptive Trail : Pull-normalized interpolation between configurable minimum and maximum MAD multipliers
Cloud Construction : One-sided pull-scaled thickness fill between outer and inner boundaries with EMA smoothing on both edges
Fail Levels : Flip-triggered horizontal line projection from bar extreme at configurable length and width
Retest System : Inner cloud edge proximity detection with signal buffer and per-side cooldown enforcement
Visualization : Gravity cloud fill, fail level lines, trend flip labels, retest diamond markers, and optional trend candle coloring
Performance Profile : Optimized for real-time execution across all timeframes with stateful gravity variable maintaining continuous decay between acceleration events
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Intraday gravity tracking for scalping with shorter trend length and gravity lookback for faster acceleration detection and responsive cloud behavior
15 - 60 min : Session-level trend identification with balanced gravity decay and moderate trail settings for reliable intraday directional framing
4H - Daily : Swing-level gravity trend mapping with longer trend length and higher decay rate for sustained gravitational pull persistence across multi-session moves
Suggested Baseline Configuration:
Trend Length : 14
Gravity Lookback : 19
Gravity Decay : 0.96
MAD Length : 24
Trail Min (Strong Pull) : 1.0
Trail Max (Weak Pull) : 1.0
Show Gravity Cloud : Enabled
Show Gravity Fail Levels : Enabled
Show Buy/Sell Signals : Enabled
Retest Diamonds : Enabled
Color Bars : Enabled (requires disabling original chart candles in chart settings)
These suggested parameters should be used as a baseline; their effectiveness depends on the instrument's momentum characteristics, volatility behavior, and preferred signal frequency, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Cloud too wide throughout : Decrease Trail Max to reduce band distance during low gravity periods, bringing the cloud closer to price during momentum decay phases.
Cloud too tight throughout : Increase Trail Max to allow greater band expansion during gravity decay, producing a more visually prominent cloud separation during low-conviction conditions.
Gravity builds too slowly : Decrease Gravity Lookback toward 5 for a shorter velocity measurement window that captures acceleration shifts more rapidly, producing faster gravity activation on momentum changes.
Gravity activates too frequently : Increase Gravity Lookback to smooth the velocity measurement across more bars, requiring more sustained directional change before acceleration registers as gravitational pull.
Gravity decays too quickly : Increase Gravity Decay toward 0.99 to sustain gravitational pull longer between acceleration events, maintaining cloud contraction for more bars after acceleration subsides.
Gravity lingers too long : Decrease Gravity Decay toward 0.80 for faster pull dissipation, allowing the cloud to expand more quickly when momentum weakens and reducing lag between gravity collapse and visual cloud response.
Too many retest diamonds : Increase Retest Cooldown to enforce greater bar separation between consecutive diamond markers, or increase Signal Buffer Period to delay retest detection further from each flip event.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
Trending markets with clear momentum phases where gravitational acceleration builds and sustains across multiple bars, producing thick, persistent clouds that visually confirm directional pull throughout the move
Instruments with consistent volatility behavior where MAD normalization accurately calibrates acceleration significance and cloud distance across varying market conditions
Momentum continuation strategies where cloud retest diamonds identify lower-risk re-entry points within established gravity trends after the initial flip signal
Structural reference frameworks where gravity fail levels provide meaningful historical markers at the exact price points where prior directional momentum collapsed
Reduced Effectiveness:
Choppy, low-momentum markets where acceleration readings oscillate without sustained directional pull, producing frequent gravity flips and thin clouds that fail to establish meaningful directional framing
Extremely volatile environments where individual bar acceleration spikes generate momentary gravity readings that decay before producing sustained cloud contraction or reliable trend state persistence
News-driven or gap-heavy instruments where instantaneous momentum changes trigger gravity activation and immediate flip signals without the gradual acceleration buildup the model is designed to detect
Consolidation and sideways conditions where velocity and acceleration remain near zero, preventing meaningful gravity generation and causing the cloud to remain in its expanded low-pull state without directional conviction
Mean-reversion dominant markets where band crossovers trigger frequent state changes that repeatedly project fail levels without the subsequent directional follow-through that validates their structural significance
Integration Guidelines
Confluence : Combine with BOSWaves order flow tools, volume analysis, or structural indicators to validate gravity flip signals with participation context before committing to directional positions
Cloud Thickness Monitoring : Track cloud thickness evolution throughout the trend as an ongoing gravity health assessment. Consistently thick clouds support continuation confidence while progressive thinning signals approaching decay and warrants defensive position management.
Fail Level Awareness : Monitor price behavior when it returns to prior gravity fail levels. These levels mark the exact prices where directional force previously collapsed, making them structurally meaningful references for future support, resistance, or reversal reactions.
Decay Anticipation : Use cloud thinning as an early warning of approaching gravity decay before a formal flip signal is generated. Thinning during an extended trend suggests acceleration is subsiding and the probability of a state change is increasing.
State Discipline : Maintain directional bias aligned with current gravity trend state until a confirmed band crossover flip occurs. Cloud retests and fail level interactions within an established trend do not constitute state changes and should be interpreted as continuation context rather than reversal signals.
Disclaimer
Gravity Trend Levels is a professional-grade momentum acceleration and trend conviction analysis tool. It uses acceleration-derived gravity modeling with adaptive cloud construction and structural fail level projection but does not predict future price movements. Results depend on market conditions, instrument momentum characteristics, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates order flow context, volume analysis, and comprehensive risk management. Indicator

Indicator

[ A L P H A X ] ANCHOR Delta Volume Adaptive Entry EngineAlphaX ANCHOR — Liquidity-Anchored Trailing Stop System with Delta Volume Profile, Adaptive Band Scaling, HVN Confluence & 6-Layer Entry Engine
AlphaX ANCHOR is a professional-grade trend-following and entry precision system built around a proprietary four-band liquidity-anchored trailing stop engine that adapts to volatility in real time. Where conventional trailing stops use a fixed ATR distance and flip on any close beyond it, ANCHOR builds a structured four-layer band system that breathes with market conditions — tightening automatically during low-volatility squeeze phases and expanding during expansion phases — while simultaneously computing a delta-weighted volume profile anchored to the current trend segment. The result is a system that does three things simultaneously: tells you the trend direction with structural confidence, shows you exactly where the institutional volume is concentrated within the current move, and fires precision entries only when price returns to the outer anchor band within a qualifying 6-layer confluence environment. Designed for swing traders, position traders, and trend-following scalpers across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚓ The Anchor Trail Engine — How It Works
The core of AlphaX ANCHOR is the four-band liquidity-anchored trailing stop system — a structured set of concentric ATR bands that trail price in the trend direction, each band serving a distinct role in the trade management framework.
Band architecture:
Band 1 (Inner) — the closest band to price. Set at the base multiplier × ATR distance (default: 6.5×). Acts as the tightest stop reference — for aggressive traders who want minimal drawdown and are willing to accept more noise exits
Band 2 (Mid-Inner) — base + 1.0× ATR additional offset. The intermediate reference zone
Band 3 (Mid-Outer) — base + 2.0× ATR additional offset. Structural breathing room for normal pullbacks
Band 4 (Anchor — Outer) — base + 3.0× ATR additional offset. The primary trend invalidation level. A close beyond this band flips the trend. This is the band the confluence engine watches for retest entries
Trailing mechanics:
In a bull trend, all four bands trail price upward — ratcheting higher with every bar that closes higher, never moving down. The trail is one-directional: in a bull trend, bands can only move up; in a bear trend, bands can only move down. This ratchet behavior prevents the bands from widening on pullbacks — once a level is established, price must return all the way to Band 4 before a trend flip is triggered. This single property is what makes ANCHOR bands structurally superior to simple ATR trailing stops: they do not exit on noise, only on genuine structural breakdowns.
Trend flip logic:
A trend flip occurs when the source price closes beyond Band 4 — the outer anchor level. On the flip bar, all four bands immediately reset to the opposite side of price at their respective ATR distances. A ▲ ANCHOR BULL or BEAR ▼ ANCHOR label marks every flip on the chart, giving you clear visual confirmation of every structural trend change.
Heatmap visualization:
When the Trailing Stop Heatmap is enabled, the space between all four bands is filled with gradient color layers — progressively more opaque from Band 1 to Band 4. This creates an immediate visual depth map of the trailing stop structure: the closer price is to Band 4, the deeper into the "danger zone" the pullback has penetrated. At a glance, you can see whether a pullback is shallow (barely in the inner fill) or deep (approaching the outer anchor line) without reading a single number.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌊 Adaptive Band Scaling — Breathing With Volatility
Standard ATR trailing stops maintain a fixed multiplier regardless of whether the market is in a squeeze or an expansion phase. ANCHOR solves this with an adaptive scaling system that continuously adjusts the effective band multiplier based on current volatility context.
How it works:
The current ATR value is percentile-ranked over the last 100 bars using a percentrank function, producing a real-time volatility percentile reading. Additionally, the system monitors whether Bollinger Bands are compressed inside Keltner Channels — the squeeze condition.
Three scaling states:
Squeeze active (BB inside KC) — multiplier scales down to the Adaptive Min Scale (default: 0.85×). Bands tighten. During a squeeze, price movement is compressed and the natural pullback range is narrower — tighter bands correctly reflect this reduced volatility and avoid giving back gains unnecessarily when the market is coiling
High volatility (ATR in top 75th percentile) — multiplier scales up to the Adaptive Max Scale (default: 1.15×). Bands widen. During expansion phases, price swings are larger and a wider band correctly avoids being stopped out by normal volatility noise
Normal conditions — multiplier stays at 1.0× the base setting. No adjustment needed
Dashboard readout:
The current adaptive scale is displayed live on the dashboard as a multiplier value (e.g., 0.85x SQZ or 1.15x) in real time, so you always know whether the system is in tight, normal, or wide band mode.
Why adaptive scaling matters: A fixed 6.5× ATR trailing stop is too wide during a squeeze and too tight during a volatility spike. Adaptive scaling means ANCHOR is always correctly sized for the current market environment — without any manual adjustment from you.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Delta-Weighted Volume Profile — Anchored to the Trend Segment
The volume profile in AlphaX ANCHOR is not a standard fixed-range profile. It is a trend-segment-anchored profile — recomputed from the exact bar where the current trend began (the last Band 4 flip) to the current bar. Every time the trend flips, the profile resets and starts building fresh from the new trend origin.
What this means in practice: The profile always shows you the volume distribution of the current institutional delivery move — not an arbitrary date range, not the last N bars, but specifically the price levels where volume has concentrated since the institutional trend began. This is the most relevant possible volume profile for understanding the current trade's context.
Delta weighting:
When Delta-Weighted Volume is enabled (default: on), each bar's contribution to the volume profile is adjusted by the estimated directional bias of that candle:
In a bull trend — the bull volume estimate (close position within the high-low range × total volume) is used. Bullish candles contribute more weight to their price levels than bearish candles
In a bear trend — the bear volume estimate is used. Bearish candles carry more weight
This delta weighting creates a profile that reflects not just where volume occurred, but where directionally committed volume occurred — the levels where buyers (in a bull trend) or sellers (in a bear trend) were most active. These are the genuine institutional accumulation and distribution zones, not just high-activity noise zones.
Profile structure:
The profile is divided into a configurable number of rows (default: 30), each representing an equal price bin across the trend segment's high-low range. The width of each bar in the rendered profile is proportional to the volume in that bin relative to the maximum bin volume — the widest bar is always the highest-volume level.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📍 POC, Value Area & HVN Detection
Point of Control (POC):
The single price bin with the highest volume in the current trend segment. This is the price level where the most delta-weighted volume has traded since the trend began — the most liquid price in the current institutional move. Plotted as a solid purple line extending from the trend start to the right edge of the profile. The POC price is displayed live on the dashboard and is available as a take-profit target mode.
Value Area High (VAH) and Value Area Low (VAL):
The price range containing a configurable percentage of total segment volume (default: 70%). The value area represents the zone where the market spent 70% of its time and volume — the institutional fair value range for the current trend segment. VAH is plotted as a dashed yellow-green line; VAL as a dashed red line. These levels act as natural support and resistance within the trend — price frequently respects VAH and VAL on pullbacks before continuing in the trend direction.
High Volume Nodes (HVNs):
Local volume peaks within the profile — bins where volume is higher than both the bin immediately below and the bin immediately above. These are the institutional congregation zones — price levels where significant two-sided activity occurred. HVNs frequently act as magnets: price is attracted to them, and once reached, tends to spend time at them before continuing. Identified algorithmically across all bins, HVN levels are plotted as horizontal lines extending from the trend start, styled and colored by the configured settings. The highest-volume HVN receives a bold line and a price label.
HVN confluence scoring:
The confluence engine awards 1 point when either the current close or the outer Band 4 level is within a tolerance of ±0.35× ATR of any HVN level. An entry that fires at the anchor band while simultaneously sitting at an HVN level means you are buying or selling at a level where the most institutional volume has transacted — a genuinely high-conviction entry location.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚖ Trend Equilibrium — Premium/Discount Positioning
The Trend Equilibrium line is the midpoint between the highest high and the lowest low since the current trend began (the trendHigh and trendLow of the segment). Plotted as a purple dotted line directly on the chart.
This level serves as the dynamic premium/discount divider for the current trend segment:
Below equilibrium = discount — price is in the lower half of the trend segment range. For bull trends, this is the institutional accumulation zone — the preferred entry location for long positions
Above equilibrium = premium — price is in the upper half of the range. For bear trends, this is the institutional distribution zone — the preferred entry location for short positions
The Require PD Zone setting enforces that long signals only fire when price is in discount and short signals only fire when price is in premium. This one filter alone eliminates a substantial class of low-quality entries — those that occur when price has already extended far from the segment midpoint and the risk/reward is structurally poor.
Unlike a fixed-range PD calculation, this equilibrium adapts dynamically to the current trend segment — it is always the midpoint of this trend's range, making it the most contextually accurate premium/discount reference available.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 The 6-Layer Confluence Engine
Entry signals fire only when price touches the outer Band 4 anchor level within a qualifying 6-layer confluence environment. Each layer votes independently. The default minimum is 4 of 6.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 1 — Anchor Trend Direction
Awards 1 point when the ANCHOR system's current trend direction agrees with the signal. Bull signals require trend == 1; bear signals require trend == -1. This is also a hard positional requirement — the anchor touch condition itself requires a bull trend for longs (price touching Band 4 from above) and a bear trend for shorts (price touching Band 4 from below). The trend direction is therefore inherently confirmed by the signal trigger condition.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 2 — HTF Bias
Awards 1 point when the higher timeframe EMA structure (default: 60-minute, 21/55 EMAs) agrees with the signal direction. The HTF condition for ANCHOR is stricter than in other AlphaX systems: the HTF fast EMA must be above the slow EMA and the HTF close must be above the HTF fast EMA for a bull vote — requiring both EMA alignment and price confirmation on the higher timeframe simultaneously.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 3 — ADX Trend Strength
Awards 1 point when ADX meets the minimum threshold (default: 18). Confirms the market is in a genuine trending phase where Band 4 retests are likely to produce continuation moves rather than range reversals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 4 — Volume Delta
Awards 1 point when the estimated volume delta (bull volume EMA minus bear volume EMA) agrees with the signal direction. Confirms that the institutional order flow pressure at the anchor touch is directionally consistent with the trend. A Band 4 touch with opposing volume delta is a warning sign — institutions may be distributing at the level, not accumulating.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 5 — Premium/Discount Zone
Awards 1 point when price is in the correct zone relative to the trend equilibrium level — discount for longs, premium for shorts. A Band 4 touch in the discount zone means you are entering at the outer structural boundary of the trend and the lower half of the segment range — the optimal dual positioning that maximizes risk/reward.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 6 — HVN Confluence
Awards 1 point when the current close or the Band 4 level is within ATR tolerance of any detected High Volume Node from the segment profile. This is the layer that bridges the trailing stop system and the volume profile — when a Band 4 retest coincides with an HVN, price is returning to the outer structural boundary precisely where the most institutional volume has traded. The convergence of structural (Band 4) and volumetric (HVN) confluence at the same price level is the highest-quality entry condition ANCHOR can detect.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Signal Firing Logic
An ANCHOR signal fires when all of the following are simultaneously true:
Price has touched Band 4 from the correct side — low within Band 4 tolerance for longs (bull trend), high within Band 4 tolerance for shorts (bear trend)
The close is back on the correct side of Band 4 — close above Band 4 for longs, close below for shorts (confirming the touch was a retest, not a breakdown)
Confluence score meets or exceeds the configured minimum (default: 4 of 6)
Session filter confirms active hours (when enabled)
Signal cooldown has elapsed since the last signal (default: 8 bars)
Show Entry Signals is enabled
Live confluence display:
A small label near the current Band 4 level on the last bar shows the live bull and bear scores in the format B 5/6 · S 2/6 — updating in real time so you can monitor the confluence state without looking at the dashboard.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Exit Guidance System
ANCHOR provides two live guidance levels plotted as dotted circles on the chart when a signal fires — not hard mechanical exits, but institutionally informed price targets for use in your own exit planning.
SL Guide:
The stop loss guide is anchored to a configurable band (default: Band 4 — the outer anchor). The SL band can be set to any of the four bands depending on your risk tolerance. Band 4 represents the structural invalidation level — the trend has flipped if price closes beyond it. Band 1 is the tightest option for aggressive stop placement.
TP Guide (three modes):
POC Target (default) — the take-profit guide points to the current segment POC. This is the most structurally meaningful target: in a bull trend, a Band 4 retest entry with a POC target means you are entering at the lowest point of the trend's volume structure and targeting the price where the most institutional activity occurred. The POC frequently acts as a magnet — price is drawn back to it after pullbacks
Opposite Band — the TP guide points to the trendHigh (bull) or trendLow (bear) of the current segment — the opposite extreme of the trend range. Maximum trend extension target
ATR Multiple — a fixed ATR distance from the entry close (default: 2.5×). Simple and consistent across all instruments and timeframes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The real-time dashboard displays the complete internal state across four sections, updated on every bar.
TREND
Anchor Trend — current ANCHOR system trend direction: ▲ BULLISH or ▼ BEARISH. This is the primary trend state — the direction all long entries must align with
Adaptive — current adaptive scale multiplier (e.g., 0.85x SQZ, 1.00x, or 1.15x) with squeeze state flag. Tells you whether bands are currently tighter or wider than the base setting
PD Zone — current premium/discount position relative to the trend equilibrium: ◧ DISCOUNT, ◧ PREMIUM, or — EQ
FILTERS
HTF Bias — higher timeframe EMA alignment: ▲ BULL, ▼ BEAR, or — FLAT
ADX — live ADX value with ✓ or ✗ pass/fail
Vol Delta — current volume delta direction: ▲ BULL, ▼ BEAR, or —
Session — ✓ ACTIVE or ✗ OFF
VOLUME
POC — current Point of Control price level. Updated in real time as the profile builds
VAH / VAL — Value Area High and Value Area Low levels for the current trend segment
HVN Count — number of High Volume Nodes currently detected in the segment profile
CONFLUENCE
Bull Score — live 0–6 score. Background highlights yellow-green when threshold is met
Bear Score — live 0–6 score. Background highlights red when threshold is met
Anchor Band — the current Band 4 price level in real time — the exact price where the next retest entry would occur
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
Band 4 (Anchor — thick solid line) — the outer trailing stop and primary structural level. Yellow-green in bull trend, red in bear trend. The most important line on the chart
Band 3 (semi-transparent) — mid-outer reference, 2× ATR inside Band 4
Band 2 (more transparent) — mid-inner reference, 1× ATR inside Band 4
Band 1 (most transparent) — inner reference, base ATR distance from price
Heatmap fills — gradient color fills between all four bands. Deepening opacity toward Band 4 creates a visual depth map of trailing stop risk
Trend Equilibrium Line (purple dots) — the dynamic midpoint of the current trend segment's high-low range
▲ ANCHOR BULL / BEAR ▼ ANCHOR label — appears on every trend flip at the Band 4 flip price, marking each structural direction change
▲ Triangle (below bar) — long entry signal at Band 4 retest with confluence confirmed
▼ Triangle (above bar) — short entry signal at Band 4 retest with confluence confirmed
Live confluence label — B x/6 · S x/6 score label near the current Band 4 level on the last bar, updating in real time
Volume profile bars — delta-weighted horizontal bars rendered to the right of the current price, color-matched to trend direction, proportional to bin volume
POC line (purple solid) — the highest-volume level in the current trend segment
VAH line (yellow-green dashed) — Value Area High boundary
VAL line (red dashed) — Value Area Low boundary
HVN lines — horizontal lines at every local volume peak. The dominant HVN (highest volume) receives a bold line and price label
SL Guide (red dotted circles) — stop loss reference level at the configured anchor band
TP Guide (yellow-green dotted circles) — take-profit reference pointing to POC, opposite band extreme, or ATR target
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX ANCHOR — Step by Step
Step 1 — Establish Trend Context
Check the dashboard: what is the Anchor Trend? This is your trading direction — only take longs in ▲ BULLISH, only take shorts in ▼ BEARISH
Check HTF Bias — does the higher timeframe agree? A bull Anchor Trend with bull HTF Bias is the ideal setup condition
Check the Adaptive row — is the system in squeeze mode (0.85x SQZ)? If so, bands are tighter and a Band 4 touch is more likely. Expansion mode (1.15x) means wider bands and deeper pullbacks to reach Band 4
Note the POC and VAH/VAL levels on the dashboard and the chart. These are your key target and support/resistance levels within the current trend
Step 2 — Watch for Band 4 Approach
Monitor the heatmap — as price pulls back from the trend high, it moves progressively through the Band 1, 2, 3 fills. By the time price is deep in the Band 3 fill and approaching the solid Band 4 line, a retest touch is imminent
Check the live confluence label near Band 4. Is the bull score at or near the threshold? If so, a signal may fire on the next bar
Check the PD Zone row — is price in discount for a long entry? A Band 4 touch in discount zone is the optimal entry scenario
Step 3 — Enter on the ANCHOR Triangle
A ▲ triangle confirms the Band 4 touch with qualifying confluence. Enter on the close or next bar open
Note whether an HVN level is near the entry price — an HVN + Band 4 confluence entry is the highest-quality ANCHOR setup
The SL Guide dotted line shows your stop reference. The TP Guide shows the POC, opposite extreme, or ATR target depending on your mode setting
Step 4 — Manage with the Band Structure
As the trade moves in your favor, watch the bands ratchet upward (bull) with price — your trailing stop is automatically rising
The POC line is your primary profit target in POC Target mode. As price approaches the POC, consider scaling out
The VAH level (bull trend) acts as the next resistance after POC — if price clears VAH with momentum, the trade has potential to reach the trendHigh
If price pulls back into the Band 3 or Band 4 zone again without a trend flip, this is a secondary entry opportunity — the same confluence check applies
Step 5 — Trend Flip Exit
A close beyond Band 4 triggers a trend flip — the BEAR ▼ ANCHOR label appears, the bands invert, and the volume profile resets for the new trend segment
Exit the prior trend position on the flip bar or the following open
Wait for the new trend to establish and a Band 4 retest to develop in the new direction before re-entering
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
Trend flips are occurring rapidly — multiple ▲ / ▼ ANCHOR flip labels in quick succession indicate a choppy, oscillating market where the Band 4 trailing stop is being crossed repeatedly. The volume profile will be very short (few bars since last flip) and the POC will be meaningless. Wait for a trend to establish and sustain for at least 10–15 bars before looking for Band 4 retest entries
HTF Bias opposes the anchor trend — a bull ANCHOR trend with bear HTF Bias means the current timeframe is moving against the higher timeframe flow. Band 4 retest entries in this environment carry significantly reduced success rates
ADX ✗ on the dashboard — the market is not trending. ANCHOR is a trend-following system by design — Band 4 touches in ranging markets frequently result in immediate trend flips rather than continuations
HVN Count shows 0 — the volume profile has not yet built enough data to identify volume nodes. This typically occurs immediately after a fresh trend flip. Wait for the trend to develop more bar history before relying on HVN confluence
Adaptive shows 1.15x (expansion) and price is approaching Band 4 rapidly — high-volatility expansion phases can produce fast, aggressive moves to Band 4 and beyond. Reduce position size in expansion mode entries
Price is in premium for a bull entry or discount for a bear entry — the PD Zone filter will block these automatically when enabled, but if disabled, be aware that entries at the wrong side of equilibrium carry structurally poor risk/reward
The ideal ANCHOR setup condition:
Anchor Trend established for 15+ bars — sufficient history for meaningful volume profile
HTF Bias aligned with trend direction
ADX ✓ confirming a trending market
Adaptive at 1.0x or 0.85x (normal or squeeze — not expansion)
Price in discount (bull) or premium (bear)
Band 4 touch coincides with a visible HVN level
Confluence score at 5/6 or 6/6
When all these conditions align simultaneously, an ANCHOR entry is the closest to a textbook institutional continuation setup the system can produce.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
⚓ Four-band liquidity-anchored trailing stop — Band 1 through Band 4, each ATR offset apart, ratcheting in trend direction with a one-directional lock preventing widening on pullbacks
🌊 Adaptive band scaling — automatically tightens during squeeze phases and widens during high-volatility expansion. Scale multiplier displayed live on dashboard
🔥 Trailing stop heatmap — gradient opacity fills between all four bands creating a real-time visual depth map of pullback risk from shallow to deep
📊 Delta-weighted volume profile — anchored to the current trend segment from the last Band 4 flip, using directional volume weighting for institutional accuracy
📍 POC detection — highest-volume level in the current trend segment plotted live and available as a TP target mode
📐 Value Area High/Low — 70% volume concentration zone for the current trend segment, plotted as dynamic support/resistance levels
🔮 HVN detection — algorithmic local volume peak identification across all profile bins. Lines extend from the trend origin through the profile
⚖ Trend equilibrium — dynamic PD zone midpoint anchored to the current trend segment high and low, updating in real time as the segment expands
📡 HTF bias filter — dual-EMA + price confirmation from a configurable higher timeframe, stricter condition than standard EMA crossover
🧠 6-layer confluence gate — Anchor Trend, HTF Bias, ADX, Volume Delta, PD Zone, and HVN Confluence all scored independently on every bar
📊 Live confluence label on chart — B x/6 · S x/6 displayed near Band 4 in real time without requiring dashboard attention
🎯 Three TP target modes — POC Target (institutional magnet), Opposite Band (maximum trend extension), or ATR Multiple (fixed distance)
⚙ Configurable SL anchor band — choose Band 1 through Band 4 for stop placement based on your risk preference and trading style
🏷 Trend flip labels — ▲ ANCHOR BULL and BEAR ▼ ANCHOR labels mark every structural trend change on the chart
📊 18-row live dashboard — Trend, Filters, Volume, and Confluence sections updated in real time
🔔 6 alert conditions — bull/bear trend flips, long/short entries, and HVN + anchor confluence touches
🎨 Fully cohesive dual-tone color system — yellow-green for all bullish elements, red for all bearish, orange for squeeze, purple for VWAP/equilibrium/POC
⚙ Fully configurable — ATR length, base multiplier, adaptive scaling range, volume profile rows and width, value area percentage, HTF timeframe and EMA periods, ADX threshold, PD zone requirement, TP mode, SL band, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Anchor Trail Engine
ATR Length — lookback for the ATR calculation used in all band offsets (default: 14)
Source — price source for trailing stop calculations (default: close)
Band Offset (Base) — ATR multiplier for Band 1, the innermost band. Bands 2–4 add +1, +2, +3 automatically (default: 6.5)
Adaptive Band Scaling — toggles the volatility-adaptive multiplier adjustment
Adaptive Min Scale — multiplier floor applied during squeeze conditions (default: 0.85)
Adaptive Max Scale — multiplier ceiling applied during high-volatility expansion (default: 1.15)
Volume Profile
Show Volume Profile — toggle the rendered profile bars to the right of price
Profile Rows — number of price bins in the volume profile (default: 30)
Profile Width (Bars) — maximum horizontal width of the profile in bars (default: 40)
Delta-Weighted Volume — when on, weights each bar's contribution by directional candle bias
Show HVN Levels — toggle horizontal High Volume Node lines
HVN Line Style — Dotted / Solid / Dashed
HVN Line Width — thickness of HVN lines (default: 1)
Show Value Area (POC/VAH/VAL) — toggle POC, VAH, and VAL line plots
Value Area % — percentage of total volume used to define the value area boundaries (default: 70%)
Show Trend Equilibrium — toggle the dynamic segment midpoint line
Confluence & Entries
HTF Trend Filter — toggle the higher timeframe EMA bias requirement
HTF Timeframe — the higher timeframe for EMA calculations (default: 60-minute)
HTF Fast / Slow EMA — EMA periods on the higher timeframe (defaults: 21 / 55)
ADX Trend Filter — toggle the ADX minimum requirement
ADX Length — ADX calculation lookback (default: 14)
ADX Minimum — threshold below which signals are suppressed (default: 18)
Volume Delta Filter — toggle the volume delta directional requirement
Volume MA Length — EMA smoothing length for volume delta calculation (default: 14)
Require PD Zone — when on, longs require discount positioning, shorts require premium
Session Filter — toggle active hours restriction (default: off — ANCHOR is designed for all-session use on most instruments)
Active Session — configurable session window
Min Layers (of 6) — minimum confluence score to fire a signal (default: 4)
Signal Cooldown — minimum bars between consecutive signals (default: 8)
Show Entry Signals — toggle signal triangles on or off
Show Confluence Label — toggle the live B/S score label near Band 4
Exit Guidance
Show SL / TP Guides — toggle the guide level dotted circle plots
SL Anchor Band — which of the four bands to use as the stop loss reference (default: Band 4)
TP Target Mode — POC Target / Opposite Band / ATR Multiple
TP ATR Mult — ATR distance for the ATR Multiple TP mode (default: 2.5)
Display
Trailing Stop Heatmap — toggle the gradient opacity fills between bands
Trend Flip Labels — toggle the ▲ ANCHOR BULL / BEAR ▼ ANCHOR labels
Show Dashboard — toggle the full dashboard panel
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Colors
Bull / Bull Bright — yellow-green family for all bullish bands, fills, and labels
Bear / Bear Bright — red family for all bearish elements
Squeeze — orange for squeeze state indicators
Equilibrium — purple for the trend equilibrium line
POC Line — purple for the Point of Control
VAH / VAL Lines — yellow-green and red for value area boundaries
SL Guide / TP Guide — stop and target guide line colors
Bull / Bear Label Text — text color for confluence and flip labels
Dash Text / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (6 total)
Trend Alerts
Anchor Bull Flip — trend has anchored bullish. Band 4 closed above, all bands reset upward. Watch outer band for pullback entry development
Anchor Bear Flip — trend has anchored bearish. Band 4 closed below, all bands reset downward
Entry Alerts
Anchor Long Entry — Band 4 touched from above with confluence confirmed. Long signal fired
Anchor Short Entry — Band 4 touched from below with confluence confirmed. Short signal fired
HVN Confluence Alerts
HVN + Anchor Long Touch — price is touching the anchor band at or near a High Volume Node support zone. Pre-signal awareness alert
HVN + Anchor Short Touch — price is touching the anchor band at or near a High Volume Node resistance zone
All alert messages are formatted as const strings for clean webhook and notification platform integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD, major forex pairs, crypto, and indices on M5–H1 . ANCHOR is uniquely versatile — the volume profile adapts to any trend length and the adaptive scaling handles any volatility regime:
Band Offset at 6.5× — wide enough to avoid noise exits on intraday timeframes while keeping the trail structurally relevant
HTF at 60-minute — provides meaningful context for M5–M15 intraday trading
Delta-Weighted Volume on — directional weighting produces the most institutionally relevant profile on all liquid instruments
Value Area at 70% — the standard institutional value area definition used by professional volume profile traders
Session filter off by default — ANCHOR is designed for continuous multi-session trading on most instruments
For other instruments or timeframes, adjust:
M1–M3 scalping — reduce Band Offset to 4.5–5.5, reduce ATR Length to 10, increase Profile Rows to 20 for faster profile builds
H4 / Daily swing trading — increase Band Offset to 8.0–10.0, set HTF to Weekly, reduce Profile Rows to 15–20 for cleaner node identification, increase TP ATR Mult to 4.0–5.0
Crypto (BTC, ETH) — increase Adaptive Max Scale to 1.25 to accommodate wider expansion swings, increase Band Offset to 7.5–8.5
Low-volatility forex pairs — reduce Band Offset to 5.5–6.0, reduce Adaptive Min Scale to 0.80 for tighter squeeze-phase bands
Tighter signal quality — raise Min Layers to 5/6, enable PD Zone requirement, raise ADX minimum to 22
More frequent signals — lower Min Layers to 3, disable HTF filter, disable PD Zone requirement
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
📈 Trend followers and swing traders — the four-band trailing stop with heatmap visualization is built specifically for riding extended directional moves with structural confidence, not second-guessing every pullback
📊 Volume profile traders — the delta-weighted, trend-anchored profile provides the most contextually relevant volume analysis available for any given trend segment
🥇 Gold (XAUUSD) and forex traders — default settings are tuned for these instruments. The adaptive band scaling handles XAUUSD's distinctive alternation between low-volatility coiling and high-velocity expansion
🎯 Pullback entry traders — ANCHOR is specifically designed to fire at the outer structural boundary of the trend (Band 4) rather than on breakouts or initial moves. Every entry is a pullback-to-structure trade at the institutional trailing stop level
📡 Multi-timeframe traders — the HTF bias filter and trend equilibrium system create a natural multi-timeframe framework within a single indicator
🧠 Traders who want volume context with every entry — the live POC, VAH/VAL, and HVN levels provide immediate institutional volume context for every trade without requiring a separate volume profile tool
🔥 Visual traders — the heatmap, gradient fills, trend flip labels, and volume profile create one of the richest single-indicator chart environments in the AlphaX suite. Everything needed for a complete trend trade is visible on the chart simultaneously
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. Band positions and trend state finalize on confirmed bars only
The volume profile is recomputed on every bar using the full trend segment history. On very long trend segments (hundreds of bars), this computation is resource-intensive. The max_bars_back is set to 5000 to accommodate extended trend segments. If you notice performance degradation on very low timeframes with long chart history, reduce Profile Rows or reduce the chart's visible bar count
The volume profile is rendered only on the last bar and redrawn on every real-time update. Historical bars show the band structure but not the profile rendering — the profile always reflects the current trend segment state
When a trend flip occurs, the volume profile resets completely. The first few bars after a flip will show a very short profile with minimal data — meaningful HVN confluence typically requires 15–20+ bars of trend history to develop
The adaptive scale is based on ATR percentrank over 100 bars. On instruments or timeframes with less than 100 bars of history, the percentrank may not be fully calibrated. This is a warm-up effect and resolves naturally as history accumulates
The session filter is off by default because ANCHOR is designed as a multi-session trend system. Unlike scalping systems that are most effective during active hours, ANCHOR band retests can occur at any time during a developing trend. Enable the session filter only if you specifically want to restrict entries to active trading hours on your instrument
The Trade Status section tracks position direction from signal to exit within the chart session — it does not connect to your broker or brokerage account
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 understand that the most powerful entries are not at the breakout — they are at the moment price returns to the structural anchor where institutions are waiting. Indicator

XAU Smart Money Bot V10.3 [SMC + EMA Confluence]XAU Smart Money Bot V10.3
XAU Smart Money Bot V10.3 is a Smart Money Concepts (SMC) based trading indicator designed specifically for Gold (XAUUSD).
The indicator combines multiple market structure and momentum concepts into a single confluence-based system to identify high-probability BUY and SELL opportunities.
Core Components
The script combines:
• 9 EMA / 21 EMA trend analysis
• Higher Timeframe Bias filtering
• Fair Value Gaps (FVG)
• Order Blocks (OB)
• Liquidity Sweeps
• Market Structure Shifts (BOS / CHoCH)
• Premium and Discount Zones
• Displacement Candles
• Volume Confirmation using OBV
• ATR Volatility Filter
The purpose of combining these concepts is to filter out weak setups and only generate signals when trend, liquidity, momentum and market structure align in the same direction.
Signals are generated only when several conditions align simultaneously, reducing low-quality entries and helping traders focus on stronger setups.
Unlike traditional SMC indicators that only display structure, this script combines Smart Money Concepts, EMA trend filtering, momentum confirmation and volatility filtering into a single scoring model. Signals are generated only when multiple conditions align, helping traders avoid low-probability setups.
This indicator is not a simple combination of existing tools. It uses a custom confluence model that evaluates trend direction, market structure, liquidity events, momentum and volatility conditions before generating a signal.
Signal Logic
The indicator evaluates multiple bullish and bearish factors and creates a score-based confirmation model.
A signal is generated when:
Trend direction agrees with higher timeframe bias
Market structure supports the trade direction
Momentum and displacement are present
Liquidity conditions are favorable
Volatility requirements are met
Entry System
Instead of using market execution, the indicator calculates a Smart Money style entry zone based on recent price action.
For every signal the script automatically plots:
• Entry Level
• Stop Loss Level
• Take Profit Level
The entry is designed to provide better risk-to-reward opportunities compared to chasing price after a signal appears.
Visual Features
The indicator displays:
BUY / SELL labels
Entry levels
Stop Loss levels
Take Profit levels
EMA trend structure
This allows traders to quickly evaluate potential setups directly on the chart.
Recommended Markets
Designed primarily for:
XAUUSD (Gold)
Recommended Timeframes
15 Minute
30 Minute
1 Hour
Risk Disclaimer
This indicator is intended for educational and analytical purposes only.
No indicator can predict market movements with certainty. Always use proper risk management and perform your own analysis before entering any trade. Indicator

Indicator

Phase Exhaustion Reversal [BullByte]Phase Exhaustion Reversal (PXR) is an intraday reversal engine that measures one specific market phenomenon: the moment a short-horizon directional burst exhausts itself against a broader structural gradient. It is built on a single mathematical primitive - directional efficiency - applied at two horizons, and turns the gap between them into an exhaustion-detection framework.
This is not a mashup of existing indicators. The entire engine is derived from one calculation family: how cleanly price travels over a window. The regime classifier, the signal trigger, the risk engine, and the dashboard are all layers of that single concept rather than separate components.
---
Why This Indicator Exists
Most reversal tools fire on oscillator extremes or candlestick patterns. They answer the question "is price stretched?" but not "has the energy actually run out? " A market can stay stretched for a long time before reverting. PXR was built to answer a more precise question: when has a short-horizon momentum burst exhausted its energy against the prevailing structural direction? That moment - the exhaustion-and-recede - is what PXR isolates.
The phenomenon being studied can be observed on historical price data.
When price moves with high short-horizon efficiency in a direction that contradicts the medium-horizon efficiency gradient, that move is consuming energy faster than structure supports. Such bursts can appear to exhaust and then realign with the broader gradient on historical data. PXR visualizes that potential realignment as an observation worth studying.
---
Why a Trader Might Use It
Intraday traders on 5-minute and 15-minute charts frequently face counter-trend bursts that look like reversals but are actually just temporary dislocations. PXR offers a structured way to read those bursts: it waits for the burst to peak, confirms the peak has begun receding, and only then marks the realignment as armed. The next-bar open execution model means the entry price on the chart matches what a real-time observer could actually have achieved.
PXR is designed for traders who want a single coherent reading of market state - regime, bias, setup progression, and signal - rather than juggling multiple unrelated indicators.
---
The Concept
Imagine price as a hiker walking through terrain. Two things can be measured about that hiker over any window of time:
One - how far they ended up from where they started. This is transport.
Two - how much total ground they covered while getting there. This is agitation.
The ratio of transport to agitation is efficiency. If a hiker walked 100 meters in a straight line, transport equals agitation, and efficiency is 1.0 - perfectly directional. If a hiker zigzagged 500 meters total but ended up only 100 meters away, efficiency is 0.2 - most of the energy was wasted on the zigzag.
PXR computes this efficiency at two horizons simultaneously. The short horizon (around 35 minutes of bars, regardless of timeframe, by default) captures reactive bursts. The medium horizon (around 2 hours of bars by default) captures the structural gradient - the broader direction price is actually flowing in.
When the short-horizon efficiency spikes far from the medium-horizon efficiency, the two have dislocated. PXR normalizes this dislocation into a value called the Phase Gap. When the Phase Gap stretches to an extreme and then begins to recede, the short-horizon burst is exhausting. If the medium-horizon gradient points the opposite direction at that moment, PXR marks a realignment signal - the observed behavior is a possible realignment with the structural gradient.
---
What Makes This Different From a Standard Momentum Tool
Three architectural choices separate PXR from typical oscillator-based reversal tools.
First, the use of two-horizon efficiency phase-gap normalization. The raw difference between two efficiency readings is rescaled by its own rolling maximum so the threshold stays meaningful across all volatility regimes. A 0.6 reading means the same thing on a quiet day as on a volatile one.
Second, regime-conditional adaptive thresholds. The signal threshold is not a fixed constant. It adapts based on whether the market is currently classified as Extended (clean trend), Compressed (range), Transitioning (regime shifting), or Neutral. Each regime gets a different sensitivity, and each timeframe gets its own scaling on top of that.
Third, an exhaustion-and-recede state machine gated by structural gradient sign. The signal does not fire when the Phase Gap simply crosses a level. It fires only when the gap has first reached a qualified peak and then receded by a meaningful fraction of that peak - confirming exhaustion has begun - and only when that exhaustion direction opposes the sign of the medium-horizon efficiency. This is a directional fade of short-horizon energy against the prevailing structural gradient.
---
Mathematical Foundation
The script is built from three primitive calculations. All other logic flows from these.
Transport over n bars equals close minus close n bars ago. This measures net displacement.
Agitation over n bars equals the sum of absolute bar-to-bar price changes across that window. This measures total path length.
Efficiency over n bars equals transport divided by agitation. This produces a signed value bounded between -1 and +1. Positive values indicate net upward directional purity, negative values indicate net downward directional purity, and values near zero indicate chop.
The Phase Gap is the short-horizon efficiency minus the medium-horizon efficiency, divided by the rolling maximum of the absolute raw gap. This normalization keeps the Phase Gap roughly within plus or minus one regardless of market conditions.
A realignment signal fires when the Phase Gap has peaked beyond a regime-adjusted threshold and then receded by a meaningful fraction of that peak, AND the sign of the medium-horizon efficiency points in the direction opposite to the burst that just exhausted.
This calculation family is conceptually related to efficiency-ratio style measurements. PXR's originality lies in the multi-horizon phase-gap construction, the regime-adaptive thresholding, and the exhaustion-and-recede state machine.
---
Recommended Timeframes and Markets
PXR is built for intraday operation. The timeframe-adaptive logic is tuned for 1-minute through 15-minute charts. The default Auto-Scale setting recalibrates the horizons so the same physical time window of analysis is used regardless of timeframe.
The phenomenon PXR studies appears most cleanly on liquid intraday instruments. Crypto majors such as BTCUSDT and ETHUSDT on 5-minute and 15-minute charts work well because crypto exhibits meaningful path tortuosity - the agitation-to-transport ratio carries real information. Index futures such as NQ and ES on 5-minute and 15-minute charts also work, though session boundaries can affect the normalization window on overnight sessions.
PXR is built for intraday use. Higher timeframes such as 1H, 4H, or daily may behave differently because the regime thresholds and recede fractions are tuned for intraday energy cycles rather than multi-day structural shifts.
---
Chart Examples
The two examples below are illustrative historical signals chosen to show the engine's mechanics and visual elements. They are not representative of typical or expected outcomes. Many signals fail and reach the INVALIDATION level instead. These examples are educational only.
1. Example - Bull Realignment on BTCUSDT 15m
The annotated chart shows a complete PXR realignment cycle.
Price experienced a sharp short-horizon bearish burst from roughly 77,650 down to 76,150. During this drop, the medium-horizon efficiency gradient remained bullish - the slower 24-bar window still carried the structural upward bias from earlier hours. The yellow diagonal line traces this bullish medium-horizon gradient that the bearish burst was working against.
At the bottom of the move, the Phase Gap reached its negative peak . The bearish burst's energy was fully spent. The yellow rectangle marks the exhaustion zone where two indecision candles stalled the fall.
Beginning shortly after, the Phase Gap began receding from its negative peak. Once it had receded by the configured fraction, the exhaustion-and-recede condition was satisfied. The medium-horizon efficiency was still positive, so the structural gradient gate qualified the direction. The state machine flipped upward and the signal armed on the close of the trigger bar.
On the next bar, the entry executed at the open at 76,410. The four rails drew automatically - INVALIDATION at 75,982, TARGET 1 at 76,923, TARGET 2 at 77,351.
In this illustrative example, the price moved upward after the signal and later reached TARGET 1 and TARGET 2. This is one historical instance only. Outcomes vary, and many signals reach the INVALIDATION level instead.
2. Example - Bear Realignment and Engine
This chart illustrates three aspects of PXR that complement the phenomenon view.
First, the engine is bidirectional. The red downward callout marks a BEAR realignment signal. A short-horizon bullish burst pushed price upward over several hours. When that burst exhausted near 77,400, the Phase Gap reached its positive peak . As the gap began receding and the medium-horizon gradient pointed bearish, the exhaustion-and-recede condition triggered a BEAR signal . The four rails drew at INVALIDATION 77,465, ENTRY 76,765, TARGET 1 75,925, and TARGET 2 75,226.
Second, the regime ribbon is visible across the background. Subtle orange tints mark COMPRESSED periods where both efficiencies are low and the market is consolidating. Subtle cyan tints mark TRANSITIONING periods where the Phase Gap has stretched far and a regime shift is underway. These background colors give an at-a-glance read of market state without requiring a glance at the dashboard.
Third, the live dashboard in the top-right shows engine state in real time. State, Setup, Bias, Phase Gap, and Last all update on every bar. The five-line legend overlay explains what each field represents. At the moment of this screenshot, the BEAR signal was Triggered, the regime was COMPRESSED , and the Phase Gap reading was -0.07 - a sign the dislocation had largely normalized after the signal fired.
Together with the dashboard and regime ribbon, the engine provides a continuous reading of market state - not just point-in-time signals, but a live framework that contextualizes each signal as it forms.
---
How to Read the Chart
PXR draws several elements. Each one represents something specific.
The PHASE EXHAUSTION label, marked with an upward or downward arrow, appears at the bar where the signal arms. An upward arrow with the text " Realign Up " means a short-horizon bearish burst has exhausted against a bullish gradient , and the studied behavior is upward realignment. A downward arrow means the opposite. The label is anchored outside the bar's price extreme so it does not clash with other chart elements.
The ENTRY rail is a dashed line drawn at the open of the bar immediately after the signal armed. This is the reference entry level. The script does not place orders - it visualizes the reference level a real-time user could have acted on.
The INVALIDATION rail is a solid red line. If price reaches this level, the realignment thesis is rejected. This level is calculated as the worse of two values: a structural swing high or low with an ATR buffer, or a minimum ATR-floored distance from entry. Whichever is further from entry is used. This guarantees the invalidation level is never crammed inside short-term noise.
The TARGET 1 and TARGET 2 rails are teal solid lines placed at user-configurable R-multiples of the invalidation distance. These represent profit objectives. The defaults are 1.2R and 2.2R, which can be modified in the Risk Settings group.
All four rails extend forward bar by bar while the trade is conceptually active, and their labels trail slightly ahead of the live bar so they remain visible at the right edge of the chart.
The regime ribbon is a subtle background tint. Red indicates an Extended regime, orange indicates Compressed, cyan indicates Transitioning, and faint grey indicates Neutral. The ribbon helps users see at a glance which regime the engine currently classifies the market in.
The active tint colors bars green during an active long observation and red during an active short observation. This is purely visual and can be toggled off.
---
How to Read the Dashboard
The dashboard sits in the top-right of the chart and shows six live readings.
State shows the current regime classification. Extended means the medium-horizon efficiency is high - the market has a clean directional gradient. Compressed means both efficiencies are low - the market is ranging. Transitioning means the Phase Gap has stretched far - a regime change is in progress. Neutral means none of the above.
Setup shows the realignment setup progress. No Setup means nothing is forming. Forming means the Phase Gap has reached 60 percent of the threshold. Watching means the Phase Gap has reached 85 percent of the threshold - a setup is building but no signal has fired yet. Armed means a confirmed signal has fired and is awaiting next-bar execution. Triggered means a trade observation is currently active.
Bias shows the direction of the medium-horizon efficiency gradient. BULL means the structural gradient points up. BEAR means it points down. A dash means it is neutral.
Phase Gap shows the live normalized Phase Gap value, roughly bounded within plus or minus one. The color brightens when the absolute value exceeds the threshold.
Last shows the direction of the most recently triggered realignment.
---
Settings Explained
Core Settings.
Auto-Scale Horizons: when on, the Short and Medium horizons are automatically recomputed per timeframe so the analysis covers similar physical time on every chart. When off, the manually entered horizon lengths are used. Recommended on for users who switch between timeframes.
Short Horizon: bars used to measure short-horizon efficiency. Lower values are more reactive but noisier. Default 7. Ignored when Auto-Scale is on.
Medium Horizon: bars used to measure the structural efficiency gradient. Should span one meaningful intraday cycle. Default 24. Ignored when Auto-Scale is on.
Phase Gap Threshold: the normalized Phase Gap level required for a peak to qualify as exhaustion-grade. Higher values yield fewer but stronger signals. Default 0.58.
Cooldown Bars: minimum bars between two consecutive signals. Prevents clustering during noisy regimes. Default 3.
Risk Settings.
ATR Length: the ATR window used for the volatility-based stop floor. Default 14.
ATR Floor Multiplier: minimum stop distance expressed as a multiple of ATR. Ensures the stop is never inside short-term noise. Default 1.0.
TP1 R-Multiple: first profit target expressed as a multiple of the invalidation distance. Default 1.2.
TP2 R-Multiple: final profit target expressed as a multiple of the invalidation distance. Default 2.2.
Visuals.
Show Regime Ribbon: toggles the background regime tint.
Show Active Tint: toggles the green or red bar coloring during an active observation.
Show Dashboard: toggles the top-right state dashboard.
---
Execution Model - Why This Is Honest
PXR uses a strict two-bar workflow. The signal arms only on the close of a confirmed bar - this is enforced by a barstate-confirmed gate inside the engine. The entry then executes at the open of the next bar. This means the entry price shown on the chart matches what a real-time user could have achieved by placing a market order the moment the signal arms.
This workflow prevents the most common form of repaint illusion. The script does not use lookahead data. It does not use future bars. It does not modify past signal positions. Historical signals on the chart represent the same logic that fires in real time.
---
What the Indicator Does Not Do
PXR does not predict future price. It identifies a measurable energy state and labels the observation. It does not place trades. It does not guarantee outcomes. It does not work on all markets in all conditions. It is not a substitute for risk management, position sizing, or contextual judgment.
The realignment behavior is an observed tendency on historical data, not a certainty or guarantee.
The invalidation rail exists precisely because failure is expected and must be bounded.
---
Limitations You Should Know
Session boundaries on instruments such as NQ and ES can compress the rolling normalization window during overnight low-liquidity periods. This can make the Phase Gap appear weaker than it would on a continuous session.
The engine is intentionally reversal-focused. It does not generate continuation signals. In strong trending markets, reversal signals may underperform compared to a continuation tool because the structural gradient is not exhausting - it is reinforcing itself.
Auto-Scale produces horizon values that may differ substantially from the manual input defaults. If a user toggles Auto-Scale off after operating with it on, the manual values will be used immediately and behavior will shift.
On very long historical lookbacks at 1-minute resolution, the efficiency calculation may require additional processing time due to the bar-by-bar path-length computation. If performance is a concern, reducing the Medium Horizon input or enabling Auto-Scale on faster timeframes will reduce the load.
---
Disclaimer
This script is provided for educational and analytical use only. It does not provide financial, investment, or trading advice. It does not guarantee any specific outcome. Past behavior of the indicator on historical data does not imply future results. Markets carry risk. Use independent judgment, sound risk control, and full market context before acting on any signal or observation produced by this tool. The author is not responsible for any decisions made on the basis of this script.
Indicator

Hilbert Bandwidth [LB]🔬 Concept
The Hilbert Bandwidth Index, derived from John Ehlers' analytic signal approach, measures the instantaneous stability of the dominant market cycle by computing the bandwidth — the absolute deviation between the raw instantaneous period and its smoothed counterpart. A narrow bandwidth indicates a clean, well-defined cycle suitable for trading.
📐 Mathematical Foundation
The price median is transformed via a 7‑coefficient FIR Hilbert Transform to extract the analytic signal's real and imaginary components :
real = 0.0962·P + 0.5769·P - 0.5769·P - 0.0962·P
imag = 0.0962·P + 0.5769·P - 0.5769·P - 0.0962·P
The instantaneous phase φ is obtained via the two‑argument arctangent of imag and real . After exponential smoothing, the phase difference Δφ between consecutive bars yields the instantaneous period :
T = 2π / |Δφ|
Finally, the bandwidth is defined as :
B = |T - EMA(T, L) |
where L is the period smoothing length. The result is expressed in bars.
🎯 What Problem Does It Solve ?
Traditional cycle indicators assume a persistent dominant cycle, producing unreliable signals during chaotic or transitional markets — the Hilbert Bandwidth quantifies cycle cleanliness in real time, allowing traders to filter out low‑quality cyclic signals and act only when the market exhibits a stable, tradeable rhythm.
📊 How To Interpret
Bandwidth below threshold (background colored) → the dominant cycle is narrow, well‑defined, and stable ; trend‑following and cycle‑based strategies have higher probability of success.
Bandwidth above threshold → the cycle is broad and unstable ; the market is either noisy or in transition ; avoid cycle‑dependent entries.
Bandwidth rapidly contracting → the market is shifting from chaos to order ; anticipate a breakout or the emergence of a clean trend.
⚙️ Parameters
Phase Smoothing – exponential smoothing length applied to the instantaneous phase (default 50) ; higher values stabilize the phase estimate but introduce lag.
Period Smoothing – EMA length applied to the instantaneous period (default 10) ; controls the responsiveness of the bandwidth calculation.
Narrow Band Threshold – the bandwidth value in bars below which the cycle is considered "clean" (default 3.0) ; the background is highlighted when bandwidth falls below this level.
📚 Reference
Ehlers J.F., "Rocket Science for Traders : Digital Signal Processing Applications", Chapter 7 – The Hilbert Transform, John Wiley & Sons, 2001.
Ehlers J.F., "Cycle Analytics for Traders", Chapter 9 – Bandwidth Measurement, John Wiley & Sons, 2014. Indicator

Polar Auto Fibonacci Pro - [Rehan Khanani]Polar AutoFib Pro
Polar AutoFib Pro is a professional all-in-one trading indicator that combines two powerful systems into a single clean overlay—a trend-following buy/sell signal engine and an automatic Fibonacci retracement tool. No need to juggle multiple indicators; everything you need is right here on the chart.
─────────────────────────────
HOW IT WORKS
─────────────────────────────
This indicator runs two engines simultaneously:
Engine 1 — PolarEdge Signal System
Generates high-probability Buy and Sell signals by combining three confirmations:
1. EMA 200 — The primary trend filter. When the price is above the EMA, the system looks for Buy setups. When the price is below, it looks for Sell setups. This keeps you trading with the dominant trend at all times.
2. Supertrend — A dynamic volatility-based band that confirms trend direction. The green band confirms bullish momentum; the red band confirms bearish momentum.
3. RSI (Relative Strength Index) — Used as a momentum trigger. A BUY signal fires when RSI crosses up from the oversold zone (default 30). A SELL signal fires when RSI crosses down from the overbought zone (default 70).
All three conditions must align simultaneously—this triple-confirmation logic filters out weak and false signals.
Engine 2 — Auto Fibonacci Retracement
Automatically detects the most recent swing high and swing low using pivot point calculations, then draws the complete Fibonacci retracement grid in real time — no manual drawing required.
The indicator identifies whether the last major pivot was a high or a low, determines the swing direction, and plots all key levels accordingly. When a new swing forms, the levels update automatically.
─────────────────────────────
FIBONACCI LEVELS INCLUDED
─────────────────────────────
0 / 0.236 / 0.382 / 0.5 / 0.618 / 0.786 / 1
1.618 / 2.618 / 3.618 / 4.236
Each level is independently toggleable with its own color control. You can show values as decimals or as percentages. Labels can be positioned on the left or right side of the chart. Line extension can be set to Left, Right, or Both directions.
─────────────────────────────
KEY FEATURES
─────────────────────────────
- Triple-confirmation Buy/Sell signals (EMA + Supertrend + RSI)
- Automatic Fibonacci retracement — no manual drawing needed
- Real-time swing detection using pivot high/low logic
- Dynamic trend background (subtle green/red shading behind candles)
- 11 fully customizable Fibonacci levels with individual color pickers
- Toggle each Fib level on/off independently
- Show prices and/or level values on labels
- Labels position: Left or Right
- Line extension: Left, Right, or Both
- Reverse Fib direction toggle
- Works on all assets: Forex, Crypto, Commodities, Indices, Stocks
- Works on all timeframes
- 6 built-in alert conditions (see Alerts section below)
─────────────────────────────
SETTINGS GUIDE
─────────────────────────────
Group 1 — PolarEdge Signal Settings
- Trend Baseline EMA: Period for the main trend filter (default 200)
- RSI Length: RSI calculation period (default 14)
- RSI Overbought Level: Sell trigger threshold (default 70)
- RSI Oversold Level: Buy trigger threshold (default 30)
- Show EMA 200: Toggle the EMA line on/off
- Show Supertrend Bands: Toggle the Supertrend lines on/off
Group 2 — Auto Fibonacci Settings
- Pivot Depth: Number of bars to look back for swing detection (default 10). Lower = more sensitive, Higher = fewer but stronger pivots
- Reverse Fib Direction: Flips the Fib measurement direction
- Extend Left / Right: Controls how far Fib lines extend on the chart
- Show Prices: Displays exact price on each level label
- Show Level Values: Displays the Fib ratio on each level label
- Level Format: Choose between decimal values or percentage display
- Labels Position: Place labels on the Left or Right side
Group 3 — Fibonacci Levels
- Toggle each of the 11 levels individually
- Customize the value and color of every level
─────────────────────────────
ALERT CONDITIONS (6 Total)
─────────────────────────────
1. BUY Alert — fires on every confirmed Buy signal
2. SELL Alert — fires on every confirmed Sell signal
3. Any Signal — fires on either Buy or Sell
4. Fib 0.618 Cross — price crosses the Golden Ratio level
5. Fib 0.5 Cross — price crosses the midpoint level
6. Fib 0.382 Cross — price crosses the key retracement level
To activate: click the alarm clock icon on the indicator, select your desired condition, and set your notification method.
─────────────────────────────
HOW TO USE
─────────────────────────────
Step 1 — Identify trend direction using the EMA 200 and the background color. Green background means bullish bias; red background means bearish bias.
Step 2 — Watch for a BUY or SELL label to appear. This confirms all three conditions (EMA, Supertrend, RSI) have aligned.
Step 3 — Use the automatically drawn Fibonacci levels to plan your entry, stop loss, and take profit targets. Common setups: enter near the 0.382 or 0.5 retracement, target the 0 or -0.236 extension, stop below the 0.618 or 0.786 level.
Step 4 — Set alerts on your preferred Fibonacci levels to be notified when price reaches key zones.
─────────────────────────────
RECOMMENDED TIMEFRAMES
─────────────────────────────
- Scalping: 1m, 5m, 15m
- Intraday: 30m, 1H
- Swing Trading: 4H, Daily
- Position Trading: Weekly
The indicator adapts to any timeframe automatically.
─────────────────────────────
DISCLAIMER
─────────────────────────────
This indicator is a technical analysis tool designed to assist in identifying potential trading opportunities. It does not guarantee future results. Always apply proper risk management and conduct your own analysis before entering any trade. Past signal performance is not indicative of future results. Indicator

Indicator

Signal Forge [LuxAlgo]The Signal Forge indicator is a modular technical analysis engine that allows users to blend 11 distinct technical filters into a unified signal and backtest the results in real-time. This tool aims to simplify strategy development by providing a visual framework for testing indicator confluence and risk management settings without writing code.
🔶 USAGE
The script provides a flexible logic system for generating signals based on the alignment of multiple technical components. Users can toggle specific indicators on or off and choose between "strict" mode (requiring ALL active indicators to agree) or "any" mode (where ANY active indicator can trigger a signal).
Signals are displayed on the chart as glowing orbs connected to the price action. Each signal includes a real-time historical win rate label at the moment of entry, allowing for a visual audit of the strategy's performance over time.
🔹 Indicator Selection
The tool includes 11 harmonized indicators:
SMA Crossover
RSI Filter (Levels)
MACD Crossover
Supertrend
Stochastic (Trend-based)
Bollinger Bands (Basis Filter)
EMA Crossover
Awesome Oscillator
Parabolic SAR
CCI Filter
ADX/DI Filter
🔹 Risk Management
Users can enable ATR-based Take Profit, Stop Loss, and Trailing Stop levels. When active, these levels are plotted on the chart. The Trailing Stop feature includes a specialized gradient fill that highlights the "breathing room" between the price and the exit level.
🔶 DETAILS
🔹 Dashboards
The script features two distinct dashboards to provide a comprehensive overview of the strategy:
Indicator Dashboard: Shows the real-time bullish/bearish status of all 11 indicators, their individual "standalone" win rates visualized with histograms, and their current toggle status.
Performance Dashboard: Provides a high-level summary of the combined strategy performance, including Net Profit %, Win Rate, Profit Factor, and Total Trades.
🔹 Logic Harmonization
To ensure different indicator types work together effectively, mean-reversion tools like the Stochastic and Bollinger Bands have been reconfigured to act as trend-confirmation filters. For example, the Stochastic signal is bullish when the %K is in the upper half of its range (> 50) rather than looking for oversold extremes, ensuring it aligns with trend-following components like Moving Averages.
🔶 SETTINGS
🔹 Signal Logic
Require All Enabled Indicators to Align: When enabled, every checked indicator must have the same directional bias to generate a signal.
🔹 Risk Management (ATR)
ATR Length: The period used for volatility-based exit calculations.
Take Profit/Stop Loss/Trailing Stop: Toggles and multipliers for managing trade exits.
🔹 Visuals
Orb Distance (ATR): Controls the vertical offset of signal orbs from the price candle.
Orb Base Size: Adjusts the thickness and glow intensity of the signal markers.
🔹 Dashboards
Dashboards: Enable or disable the table overlays.
Position/Size: Options to move and scale the Indicator and Performance tables to fit different screen layouts.
Indicator

[ A L P H A X ] VOIDAlphaX VOID — Fair Value Gap Confluence System: FVG Detection, 5-Layer Retest Entries, CE Rejection Filter & ATR Trailing Exit Engine
AlphaX VOID is a professional-grade smart money confluence system built around the single most powerful concept in institutional price action: the Fair Value Gap. Where price moves so aggressively that it leaves an unmitigated imbalance in the order book — a void — institutions return to fill orders at those levels. VOID detects every qualifying gap in real time, tracks its state, and waits. When price returns to retest that void, a 5-layer confluence engine evaluates the quality of that retest across EMA structure, squeeze momentum, volume delta pressure, VWAP bias, and ADX directional strength. Only when enough layers agree does a signal fire — not on the gap formation, not on the first touch, but on a confirmed, high-quality institutional retest with the trend and momentum behind it. Designed for active traders on crypto, forex, gold, and indices across the 1-minute to 15-minute timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🕳 What Is a Fair Value Gap?
A Fair Value Gap (FVG) is a three-candle price structure where the middle candle moves with such force that it creates a gap between the wick of the first candle and the wick of the third candle — a zone where no two-sided trading occurred. Price moved through that area too fast for the market to establish fair value.
Bull FVG: The low of candle 3 is above the high of candle 1. Price left a gap to the upside — an unmitigated bullish imbalance. When price returns to this zone, institutions are likely resting buy orders there.
Bear FVG: The high of candle 3 is below the low of candle 1. Price left a gap to the downside — an unmitigated bearish imbalance. When price returns to this zone, institutions are likely resting sell orders there.
Why FVGs matter to institutional traders: Market makers and large institutions cannot fill their full order size in a single fast move. When price revisits the FVG zone, they use the retest to complete their position. This is why FVG retests so frequently produce high-velocity continuation moves — they are not random support/resistance, they are unfilled institutional order clusters.
AlphaX VOID does not simply draw FVG boxes. It tracks the lifecycle of every gap — from formation through active, retest, and filled — and only presents entry signals when the retest coincides with genuine multi-layer confluence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 FVG Detection Engine — Quality Filters
Not every gap is worth trading. Gaps formed during weak, choppy price action are noise. VOID applies two mandatory quality filters to every detected gap before registering it as valid.
Displacement Filter:
The middle candle of the three-candle structure must show genuine displacement — its body must exceed the average body size over the last 14 bars by a configurable multiplier (default: 1.15×). This ensures the gap was formed by a real impulsive move, not a slow grind that happened to leave a small gap. A gap without displacement is a weak gap.
Minimum Gap Size Filter:
The physical size of the gap (the distance between the relevant wicks of candle 1 and candle 3) must meet a minimum threshold expressed as a multiple of ATR (default: 0.15×). This eliminates micro-gaps that are too small to be meaningful — gaps so narrow that spread and noise would immediately invalidate any retest entry.
Only gaps passing both filters are registered, stored, and tracked.
FVG Lifecycle Tracking:
Every registered FVG is stored in memory arrays with its top, bottom, direction, formation bar, and fill state. On every bar, VOID updates the state of all active gaps:
Active — gap is unmitigated. Box and CE line extend forward in real time
Filled — price has fully closed through the gap boundary. Box color shifts to neutral gray, CE line fades. Optionally hidden entirely via the Hide Filled FVGs setting
Age cutoff — gaps older than the configured Max FVG Age (default: 120 bars) are excluded from retest scanning. Old gaps lose institutional relevance as market structure evolves
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 The FVG Visual System
Every active FVG is rendered directly on the price chart as a structured visual zone with three components.
FVG Box:
A shaded rectangle spanning the full gap from top to bottom. Bull gaps are shaded in semi-transparent yellow-green; bear gaps in semi-transparent red. The box extends forward by the configured number of bars (default: 30) and updates in real time as price evolves. When a gap fills, the box shifts to neutral gray — or is removed entirely if Hide Filled FVGs is enabled.
CE Line (Consequent Encroachment — 50% Level):
A dashed line at the exact midpoint of the FVG zone. This is the Consequent Encroachment level — the 50% retracement into the gap. This level is critical for entries: the most reliable FVG retests are those where price dips into the gap but closes back above (bull) or below (bear) the CE line, demonstrating that the institutional zone held and rejected price cleanly. The CE Rejection filter is on by default and can be toggled in settings.
FVG Formation Dots:
Small squares appear below (bull FVG) or above (bear FVG) the bar at the moment a new qualifying gap is formed, providing instant chart-level notification of every new gap without requiring dashboard attention.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 The Retest Detection Engine
Detecting a gap is the easy part. Detecting a high-quality retest of that gap is the core intellectual challenge VOID is built to solve.
On every bar, VOID scans all active, unfilled FVGs of the appropriate direction for a valid retest condition. A retest requires all of the following to be true simultaneously:
1. Price overlap: The current bar's low must be at or below the FVG top, and the current bar's high must be at or above the FVG bottom. Price is physically inside or touching the zone.
2. Candle rejection: The bar must close in the correct direction — a bullish close (close above open) for a bull FVG retest, a bearish close for a bear FVG retest. Price entered the gap but the candle closed back out, demonstrating rejection.
3. CE rejection (when enabled): For bull retests, the close must be at or above the CE midline — not just any bullish close, but one that reclaims the institutional midpoint. For bear retests, the close must be at or below the CE midline. This is the single most important retest quality filter in the system. A retest that fails to reclaim the 50% level is a weak, indecisive retest.
4. Age validation: The gap must be no older than the configured maximum age. Gaps older than this threshold are excluded even if all other conditions are met.
5. Most recent qualifying gap priority: When multiple gaps qualify simultaneously, VOID selects the most recently formed gap — the freshest institutional imbalance takes precedence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 The 5-Layer Confluence Engine
A valid FVG retest alone is not sufficient for a signal. VOID requires that the retest occur within a high-quality confluence environment across five independent layers. Each layer casts a directional vote on every bar. Signals only fire when a configurable minimum number of votes align (default: 3 of 5).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 1 — EMA Ribbon (Trend Structure)
A triple EMA ribbon using Fast (default: 8), Slow (default: 21), and Signal (default: 50) EMAs. All three must stack in directional order and price must be on the correct side for a full ribbon vote.
Bull: Fast above Slow above Signal, close above Fast EMA.
Bear: Fast below Slow below Signal, close below Fast EMA.
A separate EMA Trend Alignment setting (default: on) enforces that bull FVG retest signals only fire when the fast EMA is above the slow EMA — the minimum trend structure condition — even if the full ribbon stack is not met. This prevents counter-trend FVG entries that carry the lowest success rate.
The ribbon is plotted on the chart as a gradient fill between the Fast and Slow EMA lines — yellow-green fill during bull structure, red during bear, gray during flat.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 2 — Squeeze Momentum (Energy Detection)
The TTM Squeeze momentum engine measures whether energy is building or releasing and in which direction.
Squeeze state: When Bollinger Bands compress inside Keltner Channels, volatility is contracting and a directional breakout is loading. This state is displayed as an orange background tint and flagged on the dashboard as ⚡ SQZ. An FVG retest that coincides with a squeeze release is one of the highest-quality setups the system can detect — the gap provides the structural level, the squeeze provides the breakout energy.
Momentum direction: Calculated via linear regression of price relative to the midpoint of the recent high-low range. Positive and rising = bull momentum. Negative and falling = bear momentum.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 3 — Volume Delta (Institutional Pressure)
A proprietary volume pressure model that splits each candle's volume into estimated bullish and bearish components based on the close position within the high-low range, smoothed by EMA. A secondary OBV slope confirms the dominant pressure direction over the configured lookback.
Bull vote: Bull volume EMA exceeds bear, delta EMA is positive, and OBV slope is rising — three independent volume signals all confirming buying pressure.
Bear vote: The full inverse.
An FVG retest with genuine volume delta confirmation means real capital is flowing into the gap zone, not just price drifting back. This is the distinction between a high-probability institutional retest and a low-energy drift that is likely to fail.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 4 — VWAP Bias (Institutional Session Reference)
The Volume Weighted Average Price anchored to the session provides the clearest single reference for institutional directional bias. Price above VWAP means institutions are net buyers for the session. Price below means net sellers.
Bull vote: Close above VWAP.
Bear vote: Close below VWAP.
A bull FVG retest that occurs while price is above VWAP is a with-institution trade. A bull FVG retest while price is below VWAP is counter-institutional — the gap exists, the retest is clean, but the session-level bias is working against the entry. This distinction is worth one full confluence point and often determines whether a retest succeeds or fails.
The VWAP filter can be toggled off, and the VWAP line itself can be shown or hidden independently.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 5 — ADX Directional Strength (+DI / -DI)
The ADX filter in VOID operates at two levels. First, the ADX value must meet the minimum threshold (default: 18) confirming the market is trending rather than ranging. Second, the directional component is used — +DI versus -DI — to confirm that the ADX strength is aligned with the signal direction.
Bull vote: ADX above threshold and +DI exceeding -DI — the trend strength is directionally bullish.
Bear vote: ADX above threshold and -DI exceeding +DI — the trend strength is directionally bearish.
This is fundamentally different from a simple ADX on/off gate. An ADX reading of 25 with +DI above -DI in a bull FVG setup is confirming. An ADX reading of 25 with -DI above +DI in a bull FVG setup means the trend strength is bearish — directionally opposed to the signal — and this layer will not vote for it.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Signal Firing Logic
A VOID signal fires when all of the following are simultaneously true:
A valid FVG retest is detected (overlap + candle rejection + CE rejection if enabled + age check)
The confluence score meets or exceeds the configured minimum (default: 3 of 5 layers)
ADX confirms a trending market (value above minimum threshold)
Session filter confirms active hours
Signal cooldown has elapsed since the last signal (default: 8 bars) — prevents repeated signals during extended retest zones
EMA trend alignment condition is met if the Require EMA Trend Alignment setting is enabled
Edge triggering: The signal fires only on the bar where all conditions first become true simultaneously — not on every bar they remain true. Each triangle on the chart represents a distinct, fresh confluence event.
Score label: Every signal prints a label (e.g., 4/5 FVG ) showing the live confluence score at signal time. The FVG suffix confirms this is an institutional gap retest entry, not a generic momentum entry.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 FVG-Anchored Stop Loss Placement
VOID includes a purpose-built stop loss mode unique to FVG trading: Place SL Beyond FVG Edge (default: on).
When enabled, the stop loss for a bull retest entry is placed at the bottom of the retested FVG minus an ATR buffer — not below the current bar's low. For a bear retest, the stop is placed at the top of the retested FVG plus an ATR buffer.
Why this matters: The FVG boundary is the institutional invalidation level. If price closes beyond the far edge of the gap, the imbalance has been fully absorbed — the institutional thesis for the retest is gone and the trade is structurally invalid. Using the FVG edge as the stop base produces stops that are:
Structurally meaningful — anchored to the actual invalidation level, not an arbitrary ATR distance from entry
Tighter when gaps are narrow — better risk-reward on high-quality, precise gaps
Wider when gaps are large — providing the trade room to breathe within the full institutional zone
When this setting is off, the stop reverts to a standard ATR-based distance from the bar's low or high — consistent with the Pulse Scalper behavior.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡 Dynamic ATR Exit System
All three exit mechanisms from the VOID exit engine work together on every open trade:
Stop Loss: Placed at the FVG far edge (when enabled) or bar low/high, minus/plus an ATR buffer (default: 1.2×). Your maximum risk boundary. Does not move.
TP1 — Partial Target (50%): 1.8× ATR from entry. Scale out half the position here and move the remainder to breakeven. A small circle marker appears at the TP1 bar.
TP2 — Full Target: 3.5× ATR from entry. Full position exits and the system resets. A labeled TP marker confirms the exit on the chart.
ATR Trailing Stop: A dynamic stop that advances with price every bar — always positioned 1.5× ATR behind the current bar's low (bull) or high (bear). Plotted as a live orange line. In strong institutional continuation moves, the trail captures significantly more than the fixed TP2 target. In weak retests that stall early, the trail cuts the loss before the fixed SL is reached — providing a tighter actual exit than the structural stop.
All exit levels are plotted as live lines on the chart for the duration of the trade and cleared automatically on exit.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The real-time dashboard displays the complete internal state of the indicator across four sections, updated on every bar.
FVG STATE
Bull FVGs — count of currently active, unfilled bull FVGs being tracked
Bear FVGs — count of currently active, unfilled bear FVGs being tracked
Retest — live retest detection status: ▲ BULL RETEST or ▼ BEAR RETEST when a valid gap touch is occurring, — NONE otherwise. This updates in real time so you can see a retest developing before the full signal fires
MARKET
Session — ✓ ACTIVE or ✗ OFF-HOURS. Confirms whether the session filter gate is open
ADX — live ADX value with ✓ or ✗ pass/fail. Confirms whether market structure is trending strongly enough to support FVG retest entries
CONFLUENCE
L1 EMA — current ribbon state: ▲ BULL, ▼ BEAR, or — FLAT
L2 Momentum — current momentum state: ⚡ SQZ (squeeze building), ▲ BULL, ▼ BEAR, or — FLAT. The squeeze state is the highest pre-signal alert condition
L3 Vol Delta — current volume pressure: ▲ BULL, ▼ BEAR, or — NEUTRAL
L4 VWAP — current VWAP position: ▲ ABOVE (institutional bull bias) or ▼ BELOW (institutional bear bias)
L5 ADX Dir — ADX directional vote: ▲ BULL (+DI dominant), ▼ BEAR (-DI dominant), or — FLAT
Bull Score — live 0–5 score. Background highlights yellow-green when the minimum threshold is met
Bear Score — live 0–5 score. Background highlights red when the minimum threshold is met
POSITION
Position — current tracked position: ▲ LONG, ▼ SHORT, or — FLAT with background color highlight
Stop Loss — the active SL level (FVG-anchored or ATR-based depending on settings), color-coded by direction
TP1 / TP2 — the active first take-profit level; TP2 is tracked internally and triggers the full exit marker
Bars in Trade — bars elapsed since entry, tracking trade duration
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
FVG Boxes (yellow-green / red) — active imbalance zones extending forward in real time. Color shifts to gray on fill
CE Dashed Lines — the 50% midpoint of every active FVG. The key level for CE rejection filtering
Formation Dots — small squares marking the exact bar a new qualifying FVG was detected
▲ Triangle (below bar) — bull retest entry signal. All conditions met
▼ Triangle (above bar) — bear retest entry signal. All conditions met
Score Label (e.g. 4/5 FVG) — confluence score at signal time, printed on every entry triangle
EMA Ribbon Fill — yellow-green fill during bull EMA structure, red during bear, gray during flat
VWAP Line (purple) — optional, toggleable session VWAP reference
Orange Squeeze Background — active during Bollinger/Keltner squeeze conditions
Yellow-green background tint — active during open long trades
Red background tint — active during open short trades
SL Line — fixed stop loss level, active while trade is open
TP1 Line — first partial take-profit target
TP2 Line (bright) — full exit target
Trail Line (orange) — dynamic trailing stop, advances with price every bar
TP marker — confirms TP2 hit and full exit
SL marker — confirms stop loss or trail triggered
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX VOID — Step by Step
Step 1 — Read the FVG State
Check the dashboard: how many active bull and bear FVGs are on the chart?
Multiple active FVGs in one direction indicate a well-defined institutional order cluster — a zone with stacked imbalances that price is likely to respect strongly on retest
Zero active FVGs in a direction means no institutional retest opportunity exists yet — wait for a new gap to form
Step 2 — Watch for Retest Alert on the Dashboard
The RETEST row updates in real time. ▲ BULL RETEST or ▼ BEAR RETEST appearing means price is currently inside a valid FVG zone with a rejection candle forming
This is your cue to check the confluence score rows. Watch the bull or bear score building in real time on the current bar — if it is approaching or has crossed the threshold, a signal may be seconds away
Step 3 — Enter on the Signal Triangle
A ▲ triangle below the bar is a confirmed bull FVG retest entry. All conditions — FVG retest quality, confluence score, ADX, session, cooldown, trend alignment — are met simultaneously
A ▼ triangle above the bar is a confirmed bear FVG retest entry
Read the score label. A 5/5 signal is the maximum confluence available — all five layers and the gap retest aligned simultaneously. These are the highest-conviction setups VOID produces
Enter on the close of the signal bar or the open of the next bar
Step 4 — Manage the Trade with Live Exit Lines
The SL line is your structural invalidation. If you used the FVG-anchored SL, price closing beyond this level means the institutional gap has been fully absorbed — the thesis is invalid
Watch the orange Trail Stop advancing with price as the trade moves in your favor
At TP1, scale out 50% of the position. Move your stop to breakeven on the remainder
Let the trailing stop manage the rest — it captures whatever continuation the institutional imbalance produces
Step 5 — Exit and Reset
A TP marker confirms TP2 hit. Full exit and system reset
An SL marker confirms stop or trail triggered. Accept the loss and wait — the FVG that was retested is now filled or invalidated, and a new setup will develop from the next qualifying gap
Never re-enter immediately after a stopped trade. Wait for the confluence score to rebuild and a new qualifying gap to form or a fresh retest of a different active gap
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
ADX ✗ on the dashboard — the market is not trending. FVG retests in ranging markets are frequently absorbed rather than rejected, producing whipsaw exits
RETEST shows ▲ or ▼ but no triangle appears — a retest is occurring but the confluence score or other filters are blocking the signal. This is the system explicitly telling you the quality threshold is not met — do not override it manually
Session ✗ OFF-HOURS — thin liquidity environments produce unreliable FVG reactions. The institutional actors who created the gap are not active
Multiple gap fills in quick succession — if several FVGs are filling rapidly without producing entries, the market is in a trending impulse phase eating through old imbalances rather than respecting them. Wait for the new gaps being created by this impulse to age and become valid retest candidates
Score stuck at 1 or 2 of 5 — the confluence environment is fragmented. Too few layers agree for a reliable institutional retest
Orange squeeze background present but score below threshold — energy is coiling but the directional confluence is not established. Wait for the squeeze to release in a clear direction with score confirmation before acting
What to do:
Monitor the dashboard for the RETEST row and confluence scores building simultaneously — the ideal setup shows both developing on the same bar
Prioritize gaps with the CE Rejection filter active — CE-rejected retests are the cleanest institutional entries available
Wait for ADX to confirm — a trending ADX above threshold combined with a directional +DI/-DI alignment is the ideal background for FVG retest entries
The highest-quality VOID setup: active squeeze on the dashboard, price retesting a fresh FVG at the CE level, 5/5 confluence score, ADX ✓, session ✓. These conditions together rarely occur — when they do, they produce the strongest continuation moves the system identifies
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🕳 Real-time FVG detection engine — identifies all qualifying bull and bear Fair Value Gaps with displacement and minimum gap size filters
📦 Full FVG lifecycle tracking — every gap stored in memory arrays with top, bottom, direction, age, and fill state updated on every bar
📐 CE (Consequent Encroachment) filter — requires price to reclaim the 50% midpoint of the gap on retest, eliminating weak, indecisive touches
🧠 5-layer confluence gate — EMA Ribbon, Squeeze Momentum, Volume Delta, VWAP Bias, and ADX Directional Strength must agree before a retest signal fires
📊 Live confluence scoring — bull and bear scores updated every bar, displayed on the dashboard before the signal appears
🎯 FVG-anchored stop loss — places the SL at the structural invalidation level (the far FVG edge) rather than a generic ATR distance, producing structurally meaningful risk levels
⚡ Squeeze momentum integration — TTM-style Bollinger/Keltner squeeze detection flags pre-breakout energy buildup with orange background tint and dashboard state
📡 VWAP session bias — confirms whether a retest is with or against institutional session direction
🔬 ADX directional filter — uses both the ADX value and +DI/-DI directionality, not just a simple trend/no-trend gate
🛡 Dynamic ATR trailing stop — orange line advances with price every bar, capturing extended institutional continuation moves beyond the fixed TP2 level
📈 EMA ribbon with trend alignment enforcement — prevents counter-trend FVG entries that carry the lowest success rate
🕐 Session filter — restricts entries to active market hours, eliminating thin-liquidity false retest reactions
⏱ Signal cooldown — prevents repeated signals during extended retest zones, ensuring each entry represents a distinct high-quality event
📊 21-row live dashboard — FVG State, Market, Confluence, and Position sections updated in real time
🔔 10 alert conditions — new FVG formation, retest entry, TP1/TP2 hits, stop hits for both bull and bear
🎨 Fully cohesive dual-tone color system — yellow-green for all bullish elements, red for all bearish elements, orange for squeeze and trail, gray for filled gaps and neutral states
⚙ Fully configurable — FVG parameters, confluence layers, EMA periods, squeeze settings, VWAP filter, ADX threshold, exit multipliers, session window, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Fair Value Gaps
Show FVG Zones — toggle FVG boxes on or off
Show CE (50%) Lines — toggle the consequent encroachment midpoint lines
Max Active FVGs — maximum number of FVGs stored in memory simultaneously (default: 40)
Zone Extend (bars) — how many bars forward the FVG box and CE line project (default: 30)
Max FVG Age for Entries — gaps older than this bar count are excluded from retest scanning (default: 120)
Min Gap Size (ATR x) — minimum gap width as a multiple of ATR required for gap registration (default: 0.15)
Min Displacement (body x) — middle candle body must exceed average body by this multiplier (default: 1.15)
Require CE Rejection — close must reclaim the 50% gap midpoint on retest (default: on — strongly recommended)
Hide Filled FVGs — removes boxes and CE lines for gaps that have been fully mitigated (default: off)
EMA Ribbon
Fast EMA — fastest ribbon line (default: 8)
Slow EMA — intermediate ribbon line (default: 21)
Signal EMA — macro trend anchor (default: 50)
Show EMA Ribbon — toggle ribbon fill and lines
Squeeze Momentum
BB Length / BB Mult — Bollinger Band parameters for squeeze detection (defaults: 20 / 2.0)
KC Length / KC Mult — Keltner Channel parameters (defaults: 20 / 1.5)
Momentum Length — linear regression period for momentum direction (default: 12)
Volume Delta
Volume MA Length — EMA smoothing for bull and bear volume estimates (default: 14)
OBV Slope Length — lookback for OBV slope directionality (default: 10)
VWAP
Use VWAP Filter — when on, Layer 4 requires close to be on the correct side of VWAP (default: on)
Show VWAP Line — toggle the VWAP line on the chart (default: off)
Confluence Gate
Min Layers Required — minimum confluence votes needed for a signal (default: 3 of 5)
Session Filter — toggle active hours restriction
Active Session — configurable session window (default: 0700-2000)
Signal Cooldown — minimum bars between consecutive signals (default: 8)
Require EMA Trend Alignment — enforces minimum EMA directional alignment even when full ribbon is not stacked (default: on)
ADX Filter
Use ADX Filter — toggle the trend quality and directional gate
ADX Length — calculation lookback (default: 14)
ADX Minimum — threshold below which all signals are suppressed (default: 18)
Exit Settings
ATR Length — lookback for all ATR exit calculations (default: 10)
SL ATR Mult — stop loss ATR buffer beyond FVG edge or bar low/high (default: 1.2)
TP1 ATR Mult — first take-profit target (default: 1.8)
TP2 ATR Mult — full exit target (default: 3.5)
Use ATR Trailing Stop — toggle dynamic trailing stop
Trail ATR Mult — trailing distance from current bar's extreme (default: 1.5)
Show Exit Levels — toggle SL, TP1, TP2, and trail lines on the chart
Place SL Beyond FVG Edge — anchors stop to the structural gap invalidation level (default: on)
Display
Show Confluence Score Label — prints live score on every signal triangle
Show Dashboard — toggle the full dashboard panel
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Colors
Bull / Bull Bright — yellow-green family for all bullish signals, fills, ribbons, and labels
Bear / Bear Bright — red family for all bearish signals, fills, ribbons, and labels
Squeeze — orange for squeeze tint and trailing stop line
Bull FVG / Bear FVG — gap box fill and border colors
Filled FVG — neutral gray for mitigated gaps
EMA Fast / Slow / Signal — individual EMA line colors
Ribbon Fill Bull / Bear / Flat — ribbon fill colors for each trend state
VWAP Line — VWAP plot color (default: purple)
SL / TP / TP2 / Trail Lines — individual exit level line colors
Long Zone BG / Short Zone BG — active trade background tints
Bull Label Text / Bear Label Text — text color for score labels on bull and bear signals
Dash Text / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (10 total)
FVG Formation Alerts
New Bull FVG Formed — a qualifying bullish Fair Value Gap has been detected. Watch for retest entry
New Bear FVG Formed — a qualifying bearish Fair Value Gap has been detected. Watch for retest entry
Entry Alerts
Bull FVG Retest Entry — all conditions met: bull FVG retest, CE rejection, confluence score, ADX, session
Bear FVG Retest Entry — all conditions met for a short institutional retest entry
Exit Alerts
Bull TP1 Hit — price reaches the first bull take-profit. Scale out 50%
Bull TP2 Hit — price reaches the full bull exit target. Position closed
Bull Stop Hit — stop loss or trailing stop triggered on a long position
Bear TP1 Hit — price reaches the first bear take-profit. Scale out 50%
Bear TP2 Hit — price reaches the full bear exit target. Position closed
Bear Stop Hit — stop loss or trailing stop triggered on a short position
All alert messages are formatted as const strings for clean webhook and notification platform integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD, major forex pairs, and crypto on M1–M5 :
Min Layers at 3/5 — strong confluence without requiring perfection on every bar
CE Rejection on — the single most important FVG quality filter. Leave this enabled in all configurations
ADX minimum at 18 — slightly more permissive than the Pulse Scalper default, accounting for the structural quality already provided by the FVG retest condition
FVG-anchored SL on — structurally superior stop placement for all FVG-specific entries
Max FVG Age at 120 bars — covers approximately 2 hours on M1, 10 hours on M5. Sufficient for intraday imbalances without trading excessively old gaps
For other instruments or timeframes, adjust:
Higher timeframes (M15, H1, H4) — increase Max FVG Age to 200–300, increase Retest Cooldown to 15–25, increase TP2 to 4.5–5.5× ATR, raise Min Confidence to 4/5
Crypto (BTC, ETH) — increase Min Gap Size to 0.25–0.35× ATR to filter micro-gaps in volatile crypto price action, increase KC Mult to 2.0 for the squeeze layer
Indices (NAS100, US30) — use defaults with session tightened to 09:30–16:00. Increase displacement multiplier to 1.3 for cleaner gap quality on index moves
More signals — lower Min Layers to 2, disable CE Rejection, increase Max FVG Age, reduce Cooldown
Fewer, higher-quality signals — raise Min Layers to 4 or 5, keep CE Rejection on, raise ADX minimum to 22–25, reduce Max FVG Age to 60–80 bars
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🏦 Smart money and institutional price action traders — VOID is built on the core concept that institutional order flow creates imbalances and returns to fill them. This is the foundational logic of ICT methodology applied with quantitative confluence filters
🥇 Gold (XAUUSD) and forex scalpers — FVGs are particularly reliable on gold and major forex pairs where institutional order flow is most dominant
📊 Crypto and index traders — the displacement and gap size filters adapt the system to higher-volatility instruments without producing noise
🎯 Precision entry traders — the CE rejection filter and FVG-anchored stop produce tighter, more structurally defined entries than generic momentum systems
🧠 Systematic traders — the 5-layer confluence score provides a quantitative quality metric for every retest event, not just a visual signal
📉 Traders who want to stop chasing breakouts — VOID forces you to wait for price to return to the institutional level, eliminating the discipline failure of entering on extended, overheated moves
⚠ Traders who struggle with stop placement — the FVG-anchored SL system provides structurally meaningful stop levels determined by the market's own imbalance boundaries, not arbitrary ATR multiples
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. FVG boxes and CE lines may extend or update visually on the current bar, but no signal is generated until bar close confirmation
The CE Rejection filter is strongly recommended. Disabling it allows signals on any touch of the FVG box, including weak wicks that are unlikely to produce clean continuation moves
Maximum 500 labels, 500 lines, and 500 boxes are rendered. On very low timeframes with extended chart history, the oldest FVG boxes, CE lines, and signal markers may be automatically removed by PulseWire's rendering limits. Reduce Max Active FVGs if this becomes an issue
FVG fill state is based on bar close — a wick through the gap boundary that closes inside or above the zone does not mark the gap as filled. Only a close beyond the boundary constitutes a fill
The VWAP calculation resets at the start of each session. On 24-hour crypto instruments, the VWAP anchors to the chart's visible history. For best VWAP behavior on crypto, consider disabling the VWAP filter (Layer 4) and relying on the remaining four layers
Gap age counting begins from the formation bar. A gap formed 5 bars ago on M5 is 25 minutes old — very fresh. The same gap age on H1 is 5 hours old — potentially stale. Adjust Max FVG Age to your timeframe context
The Trade Status section tracks position direction from signal to exit within a single chart session — it does not connect to your broker or brokerage account
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 understand that price always returns to where it left unfinished business — and who want a system precise enough to be there when it does. Indicator
